/* ========================================
   ALUMINUM PAGE — Technical Showcase Design

   デザインコンセプト:
   - ダーク基調 × メタリックシルバー
   - 大判写真中心のビジュアル構成
   - 技術力を視覚的に訴求
   - page-service.css とは異なる独自デザイン
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ========================================
   CUSTOM PROPERTIES
   ======================================== */
:root {
  /* Typography */
  --alu-font-en: "Space Grotesk", "Inter", system-ui, sans-serif;
  --alu-font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;

  /* Dark palette */
  --alu-dark: #0d1117;
  --alu-darker: #080c12;
  --alu-surface: #161b22;
  --alu-surface-light: #1c2129;
  --alu-border: rgba(255, 255, 255, 0.08);
  --alu-border-accent: rgba(245, 130, 32, 0.3);

  /* Text */
  --alu-text: rgba(255, 255, 255, 0.92);
  --alu-text-muted: rgba(255, 255, 255, 0.55);
  --alu-text-subtle: rgba(255, 255, 255, 0.35);
  --alu-silver: #c9d1d9;

  /* Light sections */
  --alu-light-bg: #f8f9fb;
  --alu-light-surface: #ffffff;
  --alu-light-text: #1a1f36;
  --alu-light-text-muted: rgba(26, 31, 54, 0.6);
  --alu-light-border: rgba(26, 31, 54, 0.1);

  /* Accent */
  --alu-accent: #F58220;
  --alu-accent-bright: #ff9a40;
  --alu-accent-soft: rgba(245, 130, 32, 0.12);

  /* Layout */
  --alu-section-py: clamp(80px, 10vw, 140px);
  --alu-container-max: 1200px;
  --alu-gutter: clamp(20px, 4vw, 48px);
}

/* ========================================
   BODY OVERRIDE
   ======================================== */
body.page-template-page-bankin-aluminum .site-main {
  padding-top: 0;
}

/* ========================================
   PHOTO PLACEHOLDER (共通)
   ======================================== */
.alu-photo--blank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--alu-surface);
  border: 2px dashed var(--alu-border);
  min-height: 300px;
  width: 100%;
  height: 100%;
}

.alu-photo__icon {
  color: var(--alu-text-subtle);
  opacity: 0.6;
}

.alu-photo__text {
  font-family: var(--alu-font-ja);
  font-size: 13px;
  color: var(--alu-text-subtle);
  letter-spacing: 0.1em;
}

/* ========================================
   HERO — スプリットレイアウト
   ======================================== */
.alu-hero {
  background: var(--alu-darker);
  overflow: hidden;
}

.alu-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--content-max, 1600px);
  margin: 0 auto;
  min-height: clamp(500px, 70vh, 720px);
}

@media (min-width: 960px) {
  .alu-hero__inner {
    grid-template-columns: 55% 45%;
  }
}

.alu-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 80px) var(--alu-gutter);
  position: relative;
  z-index: 2;
}

.alu-hero__eyebrow {
  display: inline-block;
  margin: 0 0 clamp(16px, 3vw, 28px);
  font-family: var(--alu-font-en);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--alu-accent);
  padding-left: 40px;
  position: relative;
}

.alu-hero__eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  background: var(--alu-accent);
  transform: translateY(-50%);
}

.alu-hero__title {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-family: var(--alu-font-ja);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--alu-text);
}

.alu-hero__br-sp {
  display: none;
}

@media (max-width: 480px) {
  .alu-hero__br-sp {
    display: block;
  }
}

.alu-hero__lead {
  margin: 0 0 clamp(32px, 5vw, 48px);
  font-family: var(--alu-font-ja);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 2;
  color: var(--alu-silver);
}

/* Hero badges */
.alu-hero__badges {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  flex-wrap: wrap;
}

.alu-hero__badge {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: clamp(12px, 2vw, 16px) clamp(16px, 2.5vw, 24px);
  background: var(--alu-surface);
  border: 1px solid var(--alu-border);
  border-radius: var(--radius-md, 12px);
  flex-wrap: wrap;
}

.alu-hero__badge-num {
  font-family: var(--alu-font-en);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--alu-accent);
  line-height: 1;
}

.alu-hero__badge-unit {
  font-family: var(--alu-font-ja);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 600;
  color: var(--alu-accent-bright);
  line-height: 1;
}

.alu-hero__badge-label {
  width: 100%;
  font-family: var(--alu-font-ja);
  font-size: clamp(11px, 1vw, 12px);
  color: var(--alu-text-muted);
  margin-top: 4px;
}

/* Hero visual */
.alu-hero__visual {
  position: relative;
  overflow: hidden;
}

.alu-hero__photo {
  min-height: 400px;
}

@media (max-width: 959px) {
  .alu-hero__visual {
    min-height: 280px;
  }

  .alu-hero__photo {
    min-height: 280px;
  }
}

.alu-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   SECTION COMMON
   ======================================== */
.alu-section {
  position: relative;
  padding: var(--alu-section-py) 0;
  overflow: hidden;
}

.alu-section__container {
  max-width: var(--alu-container-max);
  margin: 0 auto;
  padding: 0 var(--alu-gutter);
}

/* ========================================
   HEADING COMMON
   ======================================== */
.alu-heading {
  text-align: center;
  margin-bottom: clamp(48px, 7vw, 72px);
}

.alu-heading__en {
  display: block;
  font-family: var(--alu-font-en);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--alu-accent);
  margin-bottom: clamp(10px, 2vw, 16px);
}

.alu-heading__title {
  margin: 0;
  font-family: var(--alu-font-ja);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--alu-text);
}

.alu-heading--light .alu-heading__title {
  color: var(--alu-light-text);
}

.alu-heading__lead {
  margin: clamp(16px, 2.5vw, 24px) auto 0;
  font-family: var(--alu-font-ja);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 2;
  max-width: 700px;
}

/* Dark section heading lead */
.alu-section--challenges .alu-heading__lead,
.alu-section--specs .alu-heading__lead {
  color: var(--alu-text-muted);
}

/* Light section heading lead */
.alu-heading--light .alu-heading__lead {
  color: var(--alu-light-text-muted);
}

/* ========================================
   CHALLENGES — 6枚カードグリッド（ダーク背景）
   ======================================== */
.alu-section--challenges {
  background: var(--alu-dark);
}

.alu-challenges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

@media (max-width: 900px) {
  .alu-challenges {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .alu-challenges {
    grid-template-columns: 1fr;
  }
}

.alu-challenge {
  padding: clamp(28px, 3.5vw, 40px);
  background: var(--alu-surface);
  border: 1px solid var(--alu-border);
  border-radius: var(--radius-md, 12px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.alu-challenge:hover {
  border-color: var(--alu-border-accent);
  transform: translateY(-4px);
}

.alu-challenge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: clamp(16px, 2vw, 24px);
  background: var(--alu-accent-soft);
  border-radius: var(--radius-sm, 6px);
  color: var(--alu-accent);
}

.alu-challenge__title {
  margin: 0 0 8px;
  font-family: var(--alu-font-ja);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 700;
  color: var(--alu-text);
}

.alu-challenge__num {
  display: inline-block;
  margin: 0 0 clamp(12px, 1.5vw, 16px);
  font-family: var(--alu-font-en);
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 600;
  color: var(--alu-accent-bright);
  letter-spacing: 0.02em;
}

.alu-challenge__text {
  margin: 0;
  font-family: var(--alu-font-ja);
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.85;
  color: var(--alu-text-muted);
}

/* ========================================
   CAPABILITIES — 写真+テキスト交互（ライト背景）
   ======================================== */
.alu-section--capabilities {
  background: var(--alu-light-bg);
}

.alu-capability {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: clamp(40px, 6vw, 80px);
  background: var(--alu-light-surface);
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26, 31, 54, 0.08);
}

.alu-capability:last-child {
  margin-bottom: 0;
}

@media (min-width: 800px) {
  .alu-capability {
    grid-template-columns: 1fr 1fr;
  }

  .alu-capability--reverse {
    direction: rtl;
  }

  .alu-capability--reverse > * {
    direction: ltr;
  }
}

.alu-capability__media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.alu-capability__media .alu-photo--blank {
  min-height: 320px;
  background: #e8ebf0;
  border: none;
  border-radius: 0;
}

.alu-capability__media .alu-photo__icon {
  color: rgba(26, 31, 54, 0.2);
}

.alu-capability__media .alu-photo__text {
  color: rgba(26, 31, 54, 0.3);
}

.alu-capability__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.alu-capability:hover .alu-capability__media img {
  transform: scale(1.03);
}

.alu-capability__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px);
}

.alu-capability__num {
  display: block;
  font-family: var(--alu-font-en);
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--alu-accent);
  margin-bottom: clamp(12px, 2vw, 20px);
}

.alu-capability__title {
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  font-family: var(--alu-font-ja);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--alu-light-text);
}

.alu-capability__text {
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-family: var(--alu-font-ja);
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 2;
  color: var(--alu-light-text-muted);
}

.alu-capability__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alu-capability__points li {
  position: relative;
  padding-left: 24px;
  font-family: var(--alu-font-ja);
  font-size: clamp(13px, 1.3vw, 14px);
  line-height: 1.7;
  color: var(--alu-light-text);
  font-weight: 500;
}

.alu-capability__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--alu-accent);
  border-radius: 50%;
}

/* ========================================
   SPECS — テーブル（ダーク背景）
   ======================================== */
.alu-section--specs {
  background: var(--alu-dark);
}

.alu-specs {
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
}

.alu-specs__table {
  width: 100%;
  border-collapse: collapse;
}

.alu-specs__table th,
.alu-specs__table td {
  padding: clamp(16px, 2.5vw, 24px) clamp(16px, 2vw, 24px);
  font-family: var(--alu-font-ja);
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--alu-border);
}

.alu-specs__table th {
  width: clamp(120px, 20vw, 180px);
  font-weight: 700;
  color: var(--alu-accent-bright);
  white-space: nowrap;
}

.alu-specs__table td {
  color: var(--alu-silver);
}

.alu-specs__table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Alloy badges */
.alu-specs__alloys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alu-specs__alloy {
  display: inline-block;
  padding: 4px 14px;
  background: var(--alu-accent-soft);
  border: 1px solid var(--alu-border-accent);
  border-radius: var(--radius-pill, 999px);
  font-family: var(--alu-font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--alu-accent-bright);
}

.alu-specs__alloy--other {
  background: transparent;
  border-color: var(--alu-border);
  color: var(--alu-text-muted);
  font-family: var(--alu-font-ja);
  font-weight: 400;
}

/* ========================================
   SURFACE — 表面処理（ライト背景）
   ======================================== */
.alu-section--surface {
  background: var(--alu-light-bg);
}

.alu-surface-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .alu-surface-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .alu-surface-grid {
    grid-template-columns: 1fr;
  }
}

.alu-surface-item {
  text-align: center;
  padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 24px);
  background: var(--alu-light-surface);
  border: 1px solid var(--alu-light-border);
  border-radius: var(--radius-md, 12px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.alu-surface-item:hover {
  border-color: var(--alu-accent);
  box-shadow: 0 8px 24px rgba(245, 130, 32, 0.08);
}

.alu-surface-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto clamp(12px, 2vw, 20px);
  background: var(--alu-accent-soft);
  border-radius: 50%;
  color: var(--alu-accent);
}

.alu-surface-item__title {
  margin: 0 0 6px;
  font-family: var(--alu-font-ja);
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 700;
  color: var(--alu-light-text);
}

.alu-surface-item__text {
  margin: 0;
  font-family: var(--alu-font-ja);
  font-size: clamp(12px, 1.2vw, 13px);
  color: var(--alu-light-text-muted);
}

/* ========================================
   GALLERY — 横スクロールカード（ダーク背景）
   ======================================== */
.alu-section--gallery {
  background: var(--alu-surface);
}

.alu-gallery {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--alu-accent) var(--alu-dark);
  padding: 0 var(--alu-gutter) 24px;
}

.alu-gallery::-webkit-scrollbar {
  height: 6px;
}

.alu-gallery::-webkit-scrollbar-track {
  background: var(--alu-dark);
  border-radius: 3px;
}

.alu-gallery::-webkit-scrollbar-thumb {
  background: var(--alu-accent);
  border-radius: 3px;
}

.alu-gallery__track {
  display: flex;
  gap: clamp(20px, 3vw, 32px);
  max-width: var(--content-max, 1600px);
  margin: 0 auto;
}

.alu-gallery__card {
  flex: 0 0 clamp(300px, 35vw, 400px);
  background: var(--alu-dark);
  border: 1px solid var(--alu-border);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.alu-gallery__card:hover {
  border-color: var(--alu-border-accent);
  transform: translateY(-4px);
}

.alu-gallery__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.alu-photo--gallery {
  min-height: auto;
  aspect-ratio: 4 / 3;
}

.alu-gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.alu-gallery__card:hover .alu-gallery__media img {
  transform: scale(1.05);
}

.alu-gallery__body {
  padding: clamp(20px, 2.5vw, 28px);
}

.alu-gallery__title {
  margin: 0 0 clamp(12px, 1.5vw, 16px);
  font-family: var(--alu-font-ja);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  color: var(--alu-text);
}

.alu-gallery__specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.alu-gallery__spec {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.alu-gallery__spec dt {
  flex-shrink: 0;
  font-family: var(--alu-font-ja);
  font-size: 12px;
  font-weight: 600;
  color: var(--alu-accent);
  min-width: 36px;
}

.alu-gallery__spec dd {
  margin: 0;
  font-family: var(--alu-font-ja);
  font-size: clamp(12px, 1.2vw, 13px);
  color: var(--alu-text-muted);
  line-height: 1.6;
}

/* ========================================
   FAQ — アコーディオン（ダーク背景）
   ======================================== */
.alu-section--faq {
  background: var(--alu-dark);
}

.alu-faq {
  max-width: 800px;
  margin: 0 auto;
}

.alu-faq__item {
  border-bottom: 1px solid var(--alu-border);
}

.alu-faq__item:first-child {
  border-top: 1px solid var(--alu-border);
}

.alu-faq__question {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  width: 100%;
  padding: clamp(20px, 3vw, 28px) 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.alu-faq__question::-webkit-details-marker {
  display: none;
}

.alu-faq__question::marker {
  content: '';
}

.alu-faq__q {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--alu-accent);
  border-radius: 50%;
  font-family: var(--alu-font-en);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.alu-faq__question-text {
  flex: 1;
  font-family: var(--alu-font-ja);
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 700;
  color: var(--alu-text);
  line-height: 1.6;
  text-align: left;
}

.alu-faq__toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s ease;
}

.alu-faq__toggle::before,
.alu-faq__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--alu-text-muted);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.alu-faq__toggle::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.alu-faq__toggle::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.alu-faq__item[open] .alu-faq__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.alu-faq__answer {
  padding: 0 0 clamp(20px, 3vw, 32px) 68px;
}

@media (max-width: 600px) {
  .alu-faq__answer {
    padding-left: 48px;
  }
}

.alu-faq__answer p {
  margin: 0;
  font-family: var(--alu-font-ja);
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 2;
  color: var(--alu-silver);
}

/* FAQ More Link */
.alu-faq__more {
  text-align: center;
  margin-top: clamp(32px, 5vw, 48px);
}

.alu-faq__more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--alu-font-ja);
  font-size: clamp(13px, 1.3vw, 14px);
  font-weight: 600;
  color: var(--alu-accent-bright);
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
}

.alu-faq__more-link:hover {
  color: #fff;
  gap: 14px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
  .alu-heading,
  .alu-challenge,
  .alu-capability,
  .alu-specs,
  .alu-surface-item,
  .alu-gallery__card,
  .alu-faq__item {
    opacity: 0;
    transform: translateY(24px);
    animation: aluReveal 0.6s ease-out forwards;
  }

  .alu-heading { animation-delay: 0.1s; }

  .alu-challenge:nth-child(1) { animation-delay: 0.1s; }
  .alu-challenge:nth-child(2) { animation-delay: 0.15s; }
  .alu-challenge:nth-child(3) { animation-delay: 0.2s; }
  .alu-challenge:nth-child(4) { animation-delay: 0.25s; }
  .alu-challenge:nth-child(5) { animation-delay: 0.3s; }
  .alu-challenge:nth-child(6) { animation-delay: 0.35s; }

  .alu-capability:nth-child(1) { animation-delay: 0.1s; }
  .alu-capability:nth-child(2) { animation-delay: 0.2s; }
  .alu-capability:nth-child(3) { animation-delay: 0.3s; }

  .alu-surface-item:nth-child(1) { animation-delay: 0.1s; }
  .alu-surface-item:nth-child(2) { animation-delay: 0.15s; }
  .alu-surface-item:nth-child(3) { animation-delay: 0.2s; }
  .alu-surface-item:nth-child(4) { animation-delay: 0.25s; }
  .alu-surface-item:nth-child(5) { animation-delay: 0.3s; }
  .alu-surface-item:nth-child(6) { animation-delay: 0.35s; }

  .alu-gallery__card:nth-child(1) { animation-delay: 0.1s; }
  .alu-gallery__card:nth-child(2) { animation-delay: 0.2s; }
  .alu-gallery__card:nth-child(3) { animation-delay: 0.3s; }

  .alu-specs { animation-delay: 0.15s; }

  @keyframes aluReveal {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ========================================
   PRINT
   ======================================== */
@media print {
  .alu-hero {
    min-height: auto;
    background: #fff;
    color: #000;
  }

  .alu-section--challenges,
  .alu-section--specs,
  .alu-section--gallery,
  .alu-section--faq {
    background: #fff;
    color: #000;
  }

  .alu-photo--blank {
    display: none;
  }
}
