/* ==========================================================================
   TOP page — front-page.php
   Figma: tst-top-page-alt (desktop) / tst-top-page-mobile (mobile)
   ========================================================================== */

/* ---------- Hero (desktop / mobile 切り替え) ---------- */
.hero-mobile { display: none; }

.hero-desktop {
  position: relative;
  height: 840px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-30) var(--space-20);
}
.hero-desktop__bg { position: absolute; inset: 0; }
.hero-desktop__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-desktop__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
}
.hero-desktop__nav {
  position: absolute;
  right: var(--space-20);
  top: var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-4);
}
.hero-desktop__nav a {
  font-family: var(--font-sans-en);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-ink);
}
.hero-desktop__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  width: 720px;
  max-width: 100%;
  text-align: center;
}
.hero-desktop__logo { width: 544px; max-width: 100%; height: auto; margin-inline: auto; }
.hero-desktop__tagline {
  font-family: var(--font-serif-en);
  font-size: 24px;
  letter-spacing: 2px;
  line-height: 1.6;
  color: var(--color-ink);
}
.hero-desktop__scroll {
  position: absolute;
  left: var(--space-20);
  bottom: var(--space-20);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.hero-desktop__scroll span {
  writing-mode: vertical-rl;
  font-family: var(--font-sans-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.hero-desktop__scroll img { width: 1px; height: 48px; }

@media (max-width: 900px) {
  .hero-desktop { display: none; }
  .hero-mobile {
    display: flex;
    position: relative;
    height: 640px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-30) var(--space-6);
  }
  .hero-mobile__bg { position: absolute; inset: 0; }
  .hero-mobile__bg img { width: 100%; height: 100%; object-fit: cover; }
  .hero-mobile__bg::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.35); }
  .hero-mobile__menu {
    position: absolute;
    right: 14px;
    top: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 44px;
    height: 44px;
    padding-right: 10px;
  }
  .hero-mobile__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    text-align: center;
  }
  .hero-mobile__logo { width: 240px; height: auto; }
  .hero-mobile__tagline {
    font-family: var(--font-serif-en);
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1.4;
  }
  .hero-mobile__scroll {
    position: absolute;
    left: var(--space-6);
    bottom: var(--space-8);
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }
  .hero-mobile__scroll span {
    font-family: var(--font-sans-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
  }
  .hero-mobile__scroll img { width: 24px; height: 1px; }
}

/* ---------- About ---------- */
.about {
  display: flex;
  align-items: center;
  gap: var(--space-20);
  padding-block: var(--space-30);
}
.about__title { flex: 0 0 400px; }
.about__eyebrow {
  font-family: var(--font-serif-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin-bottom: var(--space-4);
}
.about__heading {
  font-family: var(--font-serif-en);
  font-weight: 300;
  font-size: 64px;
  line-height: 1.1;
  color: var(--color-ink);
}
.about__divider { flex: 0 0 1px; align-self: stretch; background: var(--color-gray-200); }
.about__body { flex: 1; display: flex; flex-direction: column; gap: var(--space-8); }
.about__subheads { display: flex; flex-direction: column; gap: var(--space-2); }
.about__subhead-en { font-family: var(--font-serif-en); font-size: 32px; color: var(--color-ink); }
.about__subhead-jp { font-family: var(--font-sans-jp); font-weight: 500; font-size: 18px; color: var(--color-gray-500); }
.about__text { font-size: 14px; line-height: 1.8; color: var(--color-gray-700); }

@media (max-width: 900px) {
  .about { flex-direction: column; align-items: stretch; gap: var(--space-6); padding: var(--space-16) var(--space-6); background: var(--color-gray-50); }
  .about__title { flex: none; }
  .about__eyebrow { font-family: var(--font-serif-en); font-size: 14px; }
  .about__heading { font-size: 44px; }
  .about__divider { width: 100%; height: 1px; }
  .about__subhead-en { font-size: 24px; }
}

/* ---------- Editorial quote + Brand Identity CTA ----------
   Figma実データ(node 945:20)は単純なflex行(photo / center-typography / photo)。
   以前CSS Gridでphotoに2行分spanさせていたが、auto行のサイズ計算が写真の高さに
   引っ張られてquoteとボタンの間に大きな空白ができるバグがあったため、
   Figmaの構造どおりflexboxで組み直した。 ---------- */
.editorial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-gray-50);
  padding: 0 var(--space-20);
  height: 680px;
}
.editorial__photo { flex: 0 0 220px; height: 520px; overflow: hidden; }
.editorial__photo img { width: 100%; height: 100%; object-fit: cover; }
.editorial__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  max-width: 640px;
}
.editorial__quote {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
}
.editorial__quote-title {
  font-family: var(--font-serif-jp);
  font-weight: 300;
  font-size: 40px;
  line-height: 1.5;
  color: var(--color-ink);
}
.editorial__quote-text { font-size: 14px; line-height: 1.8; color: var(--color-gray-500); max-width: 34em; }

@media (max-width: 900px) {
  .editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "quote quote"
      "photoL photoR"
      "cta cta";
    height: auto;
    gap: var(--space-8);
    padding: var(--space-16) var(--space-6);
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
  }
  /* モバイルではquote/ctaを直接のグリッドアイテムとして展開する */
  .editorial__center { display: contents; }
  .editorial__quote { grid-area: quote; }
  .editorial__quote-title { font-size: 24px; letter-spacing: 2px; }
  .editorial__quote-text { font-size: 13px; }
  .editorial__photo { flex-basis: auto; height: 200px; }
  .editorial__photo--left { grid-area: photoL; }
  .editorial__photo--right { grid-area: photoR; }
  .editorial__cta { grid-area: cta; justify-self: center; }
}

/* ---------- Brand grid ---------- */
.brand-grid { display: flex; flex-direction: column; gap: var(--space-20); padding-block: var(--space-30); background: var(--color-gray-50); border-bottom: 1px solid var(--color-gray-200); }
.brand-grid__header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-8); }
.brand-grid__heading { display: flex; flex-direction: column; gap: var(--space-3); }
.brand-grid__eyebrow { font-family: var(--font-serif-en); font-weight: 600; font-size: 40px; line-height: 1.1; letter-spacing: 3px; text-transform: uppercase; color: var(--color-gray-500); }
.brand-grid__label { font-size: 14px; font-weight: 300; line-height: 1.2; color: var(--color-ink); }
.brand-grid__desc { max-width: 400px; font-size: 14px; line-height: 1.6; color: var(--color-gray-700); }

.brand-grid__row { display: flex; gap: var(--space-12); align-items: flex-start; }
.brand-card { flex: 1; display: flex; flex-direction: column; gap: var(--space-6); }
.brand-card__image { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--color-white); }
.brand-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-card__image-link { position: absolute; inset: 0; z-index: 1; }
/* ロゴはFigma上でカード枠からはみ出す配置のため、位置・サイズはマークアップ側のstyleで%指定 */
.brand-card__logo { position: absolute; max-width: none; pointer-events: none; }
.brand-card__meta { display: flex; flex-direction: column; gap: var(--space-4); }
.brand-card__title-row { display: flex; align-items: baseline; justify-content: space-between; line-height: normal; }
.brand-card__name { font-family: var(--font-serif-en); font-weight: 300; font-size: 32px; color: var(--color-ink); }
.brand-card__category { font-family: var(--font-sans-en); font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--color-gray-500); }
.brand-card__cat-short { display: none; }
.brand-grid__desc-sp, .brand-grid__pagination { display: none; }
.brand-card__desc { font-size: 14px; line-height: 1.8; color: var(--color-gray-700); border-top: 1px solid var(--color-gray-200); padding-top: var(--space-4); }
.brand-card__link { display: inline-flex; align-items: center; gap: var(--space-2); line-height: normal; font-family: var(--font-sans-jp); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; color: var(--color-ink); }
.brand-card__link img { width: 12px; height: 12px; }

/* モバイル: Figma brand-sp-swipe (1330:461) — 上48/下64・要素間32・背景#faf9f6 */
@media (max-width: 900px) {
  .brand-grid { padding: 48px 0 64px; gap: var(--space-8); background: var(--color-warm-bg); }
  .brand-grid__header { padding-inline: var(--space-6); }
  .brand-grid__heading { width: 100%; }
  .brand-grid__heading::after { content: ''; display: block; height: 1px; background: var(--color-gray-200); }
  .brand-grid__eyebrow { font-weight: 300; font-size: 36px; line-height: normal; letter-spacing: 4px; color: var(--color-ink); }
  .brand-grid__label { font-size: 12px; font-weight: 400; line-height: normal; letter-spacing: 2px; color: var(--color-gray-500); }
  .brand-grid__header .brand-grid__desc { display: none; }
  .brand-grid__desc-sp { display: block; padding-inline: var(--space-6); font-size: 13px; line-height: 1.7; color: var(--color-gray-700); }

  .brand-grid__row {
    padding-inline: var(--space-6);
    scroll-padding-inline: var(--space-6);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-4);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .brand-grid__row::-webkit-scrollbar { display: none; }
  .brand-card { flex: 0 0 280px; scroll-snap-align: start; gap: var(--space-4); }
  .brand-card__meta { opacity: 0.6; transition: opacity 300ms ease; }
  .brand-card.is-current .brand-card__meta { opacity: 1; }
  .brand-card__meta { gap: 10px; }
  .brand-card__name { font-size: 24px; }
  .brand-card__category { font-size: 9px; letter-spacing: 1px; }
  .brand-card__cat-full { display: none; }
  .brand-card__cat-short { display: inline; }
  .brand-card__desc { font-size: 12px; line-height: 1.6; border-top: 0; padding-top: 0; }
  .brand-card__link { gap: 6px; padding-block: 4px; font-size: 13px; letter-spacing: 1px; }
  .brand-card__link img { width: 10px; height: 10px; }

  .brand-grid__pagination { display: flex; justify-content: center; gap: var(--space-2); }
  .brand-grid__pagination span { display: block; width: 8px; height: 2px; border-radius: 1px; background: var(--color-gray-200); transition: width 300ms ease, background 300ms ease; }
  .brand-grid__pagination span.is-active { width: 24px; background: var(--color-ink); }
}
