/* ==========================================================================
   Hyperphagic — main.css
   全セクション完全実装
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg:       oklch(96.5% 0.018 85);
  --color-surface:  oklch(98.5% 0.009 85);
  --color-ink:      oklch(17%   0.018 145);
  --color-mute:     oklch(52%   0.025 145);
  --color-border:   oklch(88%   0.015 85);
  --color-green:    oklch(37%   0.095 143);
  --color-green-lt: oklch(72%   0.080 148);
  --color-teal:     oklch(49%   0.105 193);
  --color-mist:     oklch(62%   0.055 245);
  --color-hero-bg:  oklch(18%   0.030 185);
  --color-hero-ink: oklch(94%   0.012 85);

  /* Typography */
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Hina Mincho', serif;
  /*
   * Type scale — ジャンプ率設計
   *
   * ★ Oswald Bold (condensed display) 補正について:
   *   Condensed フォントは同 px でも文字の面積が通常より大きく見える。
   *   Oswald 700 は特に字面が大きく、視覚上のサイズが数値の 1.15〜1.2 倍に感じられる。
   *   そのため、通常フォント想定のジャンプ率計算値より 15〜20% 小さい数値を設定する。
   *
   * body ≈ 17px 基準 / 視覚補正後のジャンプ率目安:
   *   --fs-h2   max 1.6rem  (25.6px) → ratio ≈ 1.5  セクション副見出し
   *   --fs-h1   max 2.2rem  (35.2px) → ratio ≈ 2.1  セクション主見出し
   *   --fs-hero max 2.75rem (44px)   → ratio ≈ 2.6  ヒーロー大見出し
   *               Oswald 補正後の視覚ジャンプ率 ≈ 3.0〜3.1（上品な強さ）
   *
   * プレミアム/ウェルネス系の目標: 視覚ジャンプ率 2.8〜3.2。
   * 数値ジャンプ率 3.5+ はスポーツ・セール系の印象を与える。
   */
  --fs-hero:  clamp(1.75rem, 3vw, 2.75rem);
  --fs-h1:    clamp(1.375rem, 2.2vw, 2.2rem);
  --fs-h2:    clamp(1.1rem, 1.8vw, 1.6rem);
  --fs-body:  clamp(1rem, 1.2vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fw-hero:  700;
  --fw-title: 600;
  --fw-body:  400;
  --fw-light: 300;
  --lh-body:  1.85;
  --lh-head:  1.2;

  /* Spacing */
  --space-section: clamp(96px, 14vw, 220px);
  --space-lg:      clamp(48px, 6vw, 96px);
  --space-md:      clamp(24px, 3vw, 48px);
  --space-sm:      clamp(12px, 1.5vw, 24px);

  /* Layout */
  --container-wide:   1280px;
  --container-narrow: 720px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:  200ms;
  --dur-slow:  700ms;

  /* Z-index */
  --z-header:  200;
  --z-overlay: 900;
  --z-modal:   1000;
}

/* --------------------------------------------------------------------------
   1. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   2. Accessibility
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  z-index: calc(var(--z-modal) + 1);
  padding: 0.5rem 1rem;
  background: var(--color-green);
  color: var(--color-hero-ink);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
}
.skip-link:focus {
  top: 1rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container-wide {
  width: min(100%, var(--container-wide));
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.container-narrow {
  width: min(100%, var(--container-narrow));
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

/* --------------------------------------------------------------------------
   4. Typography Utilities
   -------------------------------------------------------------------------- */
.section-label {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: var(--fw-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-mute);
  display: block;
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: var(--fw-title);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

/* Primary */
.btn--primary {
  background-color: var(--color-green);
  color: var(--color-hero-ink);
}
.btn--primary:hover {
  background-color: oklch(42% 0.095 143);
  box-shadow: 0 8px 24px oklch(37% 0.095 143 / 0.3);
}

/* Hero CTA */
.btn--hero {
  background-color: var(--color-hero-ink);
  color: var(--color-hero-bg);
  font-size: 1rem;
  padding: 1rem 2.5rem;
}
.btn--hero:hover {
  background-color: #fff;
  box-shadow: 0 8px 32px oklch(94% 0.012 85 / 0.3);
}

/* Outline */
.btn--outline {
  background-color: transparent;
  color: var(--color-green);
  border: 1.5px solid var(--color-green);
}
.btn--outline:hover {
  background-color: var(--color-green);
  color: var(--color-hero-ink);
}

/* --------------------------------------------------------------------------
   6. Fade-in Animation
   -------------------------------------------------------------------------- */
.js-fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for siblings */
.js-fade-in:nth-child(2) { transition-delay: 100ms; }
.js-fade-in:nth-child(3) { transition-delay: 200ms; }
.js-fade-in:nth-child(4) { transition-delay: 300ms; }

/* --------------------------------------------------------------------------
   6b. Hero Text Animation — 文字単位 stagger reveal
   -------------------------------------------------------------------------- */

/* 見出し全体は opacity 制御しない（js-fade-in を外すため） */
.section-hero__headline {
  /* opacity と transform はデフォルト visible のまま（JS で上書き） */
}
.section-hero__sub,
.btn--hero {
  /* JS が transitionDelay を動的セットし、is-visible クラスで表示 */
}

/* 各文字スパン */
.hero-char {
  display: inline-block;
  white-space: pre;    /* 空白文字を保持 */
  opacity: 0;
  transform: translateY(0.55em);
}

/* is-animating が付いたら各文字を順番に出現させる */
.hero-headline--split.is-animating .hero-char {
  animation: hero-char-in 0.72s var(--ease-out) forwards;
  /* --char-i は JS で各 span に setProperty() している */
  animation-delay: calc(var(--char-i, 0) * 35ms + 180ms);
}

@keyframes hero-char-in {
  0%   { opacity: 0; transform: translateY(0.55em); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}

/* reduced-motion 対応: アニメなしで即表示 */
@media (prefers-reduced-motion: reduce) {
  .hero-char {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .section-hero__sub,
  .btn--hero {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   7. Site Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  color: var(--color-hero-ink);
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.site-header.scrolled {
  background-color: var(--color-bg);
  color: var(--color-ink);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  height: 72px;
}

/* Logo */
.site-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-header__logo img {
  color: currentColor; /* SVG uses currentColor */
  filter: brightness(0) invert(1); /* default: white on dark hero */
  transition: filter var(--dur-fast) var(--ease-out);
}
.site-header.scrolled .site-header__logo img {
  filter: none; /* show original colors when scrolled */
}

/* Nav */
.site-header__nav {
  margin-inline-start: auto;
}
.site-header__nav-list {
  display: flex;
  gap: var(--space-md);
}
.site-header__nav-list a {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: var(--fw-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity var(--dur-fast) ease;
}
.site-header__nav-list a:hover {
  opacity: 1;
}

/* CTA */
.site-header__cta {
  margin-inline-start: var(--space-sm);
  padding: 0.5rem 1.25rem;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: var(--fw-title);
  letter-spacing: 0.08em;
  transition:
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease;
}
.site-header__cta:hover {
  background-color: currentColor;
}
/* Invert text on CTA hover */
.site-header:not(.scrolled) .site-header__cta:hover {
  color: var(--color-hero-bg);
}
.site-header.scrolled .site-header__cta:hover {
  color: var(--color-bg);
}

/* Hamburger */
.site-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-inline-start: auto;
}
.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}

@media (max-width: 768px) {
  .site-header__nav,
  .site-header__cta {
    display: none;
  }
  .site-header__hamburger {
    display: flex;
  }
  .site-header__inner {
    height: 60px;
  }
}

/* --------------------------------------------------------------------------
   8. Mobile Nav Overlay
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background-color: var(--color-hero-bg);
  color: var(--color-hero-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-fast) ease,
    visibility var(--dur-fast) ease;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__inner {
  text-align: center;
  width: 100%;
  padding: var(--space-lg) var(--space-md);
}

.mobile-nav__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2rem;
  color: var(--color-hero-ink);
  line-height: 1;
  padding: 0.25rem 0.5rem;
  opacity: 0.7;
  transition: opacity var(--dur-fast) ease;
}
.mobile-nav__close:hover {
  opacity: 1;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity var(--dur-fast) ease;
}
.mobile-nav__link:hover {
  opacity: 1;
}

.mobile-nav__cta {
  margin-top: var(--space-md);
}

/* --------------------------------------------------------------------------
   9. Section: Hero (#hero)
   -------------------------------------------------------------------------- */
.section-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-hero-bg);
  color: var(--color-hero-ink);
  overflow: hidden;
}

.section-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.section-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    oklch(18% 0.030 185 / 0.6) 0%,
    oklch(18% 0.030 185 / 0.4) 50%,
    oklch(18% 0.030 185 / 0.75) 100%
  );
}

.section-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: 10vh;
}

.section-hero__headline {
  font-family: var(--font-body);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: var(--fw-body);
  line-height: 1.5;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  color: var(--color-hero-ink);
}

.section-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: var(--fw-light);
  line-height: 1.8;
  color: oklch(94% 0.012 85 / 0.85);
  margin-bottom: var(--space-lg);
  max-width: 36ch;
  margin-inline: auto;
}

/* Scroll hint */
.section-hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.section-hero__scroll-line {
  display: block;
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--color-hero-ink), transparent);
  margin-inline: auto;
  animation: scroll-hint 2s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 0.6; transform: scaleY(1); transform-origin: top; }
}

/* --------------------------------------------------------------------------
   10. Section: Concept (#concept)
   -------------------------------------------------------------------------- */
.section-concept {
  position: relative;
  overflow: hidden;
  padding-block: 0;           /* パディングは inner 側で管理 */
  background-color: var(--color-ink); /* 画像未設定時のフォールバック */
  text-align: center;
}

/* 単色オーバーレイ（ミニマル：グラデーションなし） */
.section-concept::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: oklch(10% 0.025 185 / 0.48);
}

/* テキストレイヤー（オーバーレイより前面） */
.section-concept__inner {
  position: relative;
  z-index: 2;
  padding-block: var(--space-section);
  max-width: 70ch;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.section-concept .section-label {
  color: var(--color-hero-ink);
  opacity: 0.75;
}

.section-concept__text {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: var(--fw-body);
  line-height: 2.1;
  color: var(--color-hero-ink);
}

/* 背景画像レイヤー */
.section-concept__visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 0;
}

.section-concept__visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 1.4s var(--ease-out);
}

/* セクション全体へのホバーで背景画像がわずかに動く */
.section-concept:hover .section-concept__visual-img {
  transform: scale(1.03);
}

.section-concept__visual-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--color-ink);
}

/* --------------------------------------------------------------------------
   11. Section: Product (#product)
   -------------------------------------------------------------------------- */
.section-product {
  padding-top: var(--space-section);
  padding-bottom: 0;           /* グリッド下端は写真で締める */
  background-color: var(--color-surface);
  overflow: hidden;
}

.section-product__inner {
  /* label above grid */
}

.section-product__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;                      /* 写真同士を密着させる */
  margin-top: var(--space-md);
}

.section-product__item {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  position: relative;
}

/* キャプションは写真の下に配置（overlay なし） */
.section-product__item figcaption {
  /* position: static — オーバーレイ不使用 */
}

.section-product__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 1.1s var(--ease-out);
}

.section-product__item:hover .section-product__img {
  transform: scale(1.04);
}

.section-product__img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-mute);
  font-size: var(--fs-small);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-product__caption {
  font-size: var(--fs-small);
  color: var(--color-mute);
  letter-spacing: 0.06em;
  padding: var(--space-sm) var(--space-sm);
  background: none;
}

@media (max-width: 600px) {
  .section-product__grid {
    grid-template-columns: 1fr;
  }
  .section-product__img,
  .section-product__img-placeholder {
    aspect-ratio: 4 / 3;
  }
}

/* --------------------------------------------------------------------------
   12. Section: Comfort (#comfort)
   -------------------------------------------------------------------------- */
.section-comfort {
  padding-block: var(--space-section);
  background-color: var(--color-bg);
  overflow: hidden;
}

/* 左半分: テキスト（container 幅内） / 右半分: 写真（viewport端まで伸ばす） */
.section-comfort__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  position: relative;
  /* container-wide の外側に写真を伸ばすため、このブロック自体は max-width なし */
  width: min(100%, var(--container-wide));
  margin-inline: auto;
}

.section-comfort__text-col {
  padding-inline: clamp(1rem, 4vw, 3rem);
  padding-block: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 左に装飾ライン */
  border-left: 3px solid var(--color-teal);
}

.section-comfort__text {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 2;
  color: var(--color-ink);
  margin-top: var(--space-md);
}

/* 写真カラム: 右端を viewport 端まで広げる */
.section-comfort__img-col {
  position: relative;
  overflow: hidden;
  /* 右余白分だけ広げて viewport 端にぴたり合わせる */
  margin-right: calc(
    (100vw - min(100%, var(--container-wide))) / -2
  );
}

.section-comfort__img {
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 55vw, 640px);
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1.1s var(--ease-out);
}

.section-comfort__img-col:hover .section-comfort__img {
  transform: scale(1.04);
}

.section-comfort__img-placeholder {
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 55vw, 640px);
  background-color: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-mute);
  font-size: var(--fs-small);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .section-comfort__inner {
    grid-template-columns: 1fr;
  }
  .section-comfort__text-col {
    border-left: none;
    border-top: 3px solid var(--color-teal);
    padding-inline: clamp(1rem, 4vw, 3rem);
    order: 2;
  }
  .section-comfort__img-col {
    order: 1;
    margin-right: 0;
  }
  .section-comfort__img,
  .section-comfort__img-placeholder {
    min-height: 280px;
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

/* --------------------------------------------------------------------------
   13. Section: Spec (#spec)
   -------------------------------------------------------------------------- */
.section-spec {
  padding-block: var(--space-section);
  background-color: var(--color-surface);
  text-align: center;
}

.section-spec__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-title);
  color: var(--color-ink);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.01em;
}

.section-spec__table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin-bottom: var(--space-lg);
  font-size: var(--fs-body);
}
.section-spec__table tr {
  border-bottom: 1px solid var(--color-border);
}
.section-spec__table tr:first-child {
  border-top: 1px solid var(--color-border);
}
.section-spec__table th,
.section-spec__table td {
  padding: 1.25rem 1rem;
  vertical-align: middle;
}
.section-spec__table th {
  font-weight: var(--fw-body);
  color: var(--color-mute);
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  width: 40%;
  white-space: nowrap;
}
.section-spec__table td {
  color: var(--color-ink);
  font-family: var(--font-display), var(--font-body);
  font-weight: var(--fw-light);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.section-spec__note {
  font-size: var(--fs-small);
  color: var(--color-mute);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   14. Section: Contact (#contact)
   -------------------------------------------------------------------------- */
.section-contact {
  padding-block: var(--space-section);
  background-color: var(--color-hero-bg);
  color: var(--color-hero-ink);
  text-align: center;
}

.section-contact .section-label {
  color: var(--color-green-lt);
}

.section-contact__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-title);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

.section-contact__lead {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.85;
  color: oklch(94% 0.012 85 / 0.8);
  margin-bottom: var(--space-lg);
  max-width: 50ch;
  margin-inline: auto;
}

.section-contact__form {
  text-align: left;
  max-width: 560px;
  margin-inline: auto;
}

.section-contact__form-placeholder {
  background-color: oklch(24% 0.025 185);
  border: 1px solid oklch(35% 0.025 185);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  color: oklch(70% 0.030 185);
  font-size: var(--fs-small);
  line-height: 1.7;
}

/* CF7 styles within dark section */
.section-contact .wpcf7-form label {
  display: block;
  font-size: var(--fs-small);
  color: oklch(80% 0.015 85);
  margin-bottom: 0.375rem;
  margin-top: var(--space-sm);
}
.section-contact .wpcf7-form input[type="text"],
.section-contact .wpcf7-form input[type="email"],
.section-contact .wpcf7-form input[type="tel"],
.section-contact .wpcf7-form select,
.section-contact .wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: oklch(22% 0.025 185);
  border: 1px solid oklch(35% 0.035 185);
  border-radius: var(--radius-sm);
  color: var(--color-hero-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast) ease;
}
.section-contact .wpcf7-form input:focus,
.section-contact .wpcf7-form select:focus,
.section-contact .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-teal);
}
.section-contact .wpcf7-form textarea {
  min-height: 160px;
  resize: vertical;
}
.section-contact .wpcf7-form .wpcf7-submit {
  margin-top: var(--space-md);
  width: 100%;
  padding: 1rem 2rem;
  background-color: var(--color-green);
  color: var(--color-hero-ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--fw-title);
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.section-contact .wpcf7-form .wpcf7-submit:hover {
  background-color: oklch(42% 0.095 143);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   15. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-hero-bg);
  color: var(--color-hero-ink);
  padding-top: var(--space-lg);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: flex-start;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid oklch(30% 0.025 185);
}

.site-footer__brand {
  flex: 1;
  min-width: 200px;
}
.site-footer__logo img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.site-footer__tagline {
  margin-top: 0.75rem;
  font-size: var(--fs-small);
  color: oklch(70% 0.020 85);
  font-style: italic;
  letter-spacing: 0.05em;
}

.site-footer__nav {
  flex: 1;
  min-width: 200px;
}
.site-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.site-footer__nav-list a {
  font-size: var(--fs-small);
  color: oklch(75% 0.015 85);
  transition: color var(--dur-fast) ease;
}
.site-footer__nav-list a:hover {
  color: var(--color-hero-ink);
}

.site-footer__sns {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}
.site-footer__sns-link {
  color: oklch(70% 0.020 85);
  transition: color var(--dur-fast) ease;
}
.site-footer__sns-link:hover {
  color: var(--color-hero-ink);
}

.site-footer__bottom {
  padding: var(--space-sm) 0;
  text-align: center;
}
.site-footer__copyright {
  font-size: var(--fs-small);
  color: oklch(50% 0.020 185);
}

/* --------------------------------------------------------------------------
   16. Page Templates
   -------------------------------------------------------------------------- */

/* Generic page */
.page_main--page,
.page_main--index,
.page_main--search,
.page_main--404 {
  padding-top: calc(72px + var(--space-section));
  padding-bottom: var(--space-section);
}

.page-header {
  margin-bottom: var(--space-lg);
}
.page-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-title);
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.page-lead {
  font-size: var(--fs-body);
  color: var(--color-mute);
  margin-top: var(--space-sm);
  max-width: 60ch;
}

/* page-article */
.page-article__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-title);
  margin-bottom: var(--space-md);
}
.entry-content {
  line-height: var(--lh-body);
  max-width: 70ch;
}
.entry-content h2 { font-size: var(--fs-h2); margin-block: var(--space-md) var(--space-sm); }
.entry-content h3 { font-size: 1.3rem; margin-block: var(--space-sm) 0.5rem; }
.entry-content p  { margin-bottom: var(--space-sm); }
.entry-content a  { color: var(--color-teal); text-decoration: underline; }

/* --------------------------------------------------------------------------
   17. Dealers Page
   -------------------------------------------------------------------------- */
.page_main--dealers {
  padding-top: calc(72px + var(--space-section));
  padding-bottom: var(--space-section);
}
.page-header--dealers {
  margin-bottom: var(--space-lg);
}

.dealers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

.dealer-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.dealer-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-title);
  color: var(--color-ink);
}
.dealer-card__info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.375rem 1rem;
  font-size: var(--fs-small);
}
.dealer-card__info dt {
  color: var(--color-mute);
  font-weight: var(--fw-title);
  white-space: nowrap;
}
.dealer-card__info dd a {
  color: var(--color-teal);
}
.dealer-card__map-link {
  align-self: flex-start;
  margin-top: auto;
}

.dealers-empty {
  text-align: center;
  padding-block: var(--space-section);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-mute);
}

/* --------------------------------------------------------------------------
   18. 404 Page
   -------------------------------------------------------------------------- */
.page_main--404 {
  display: flex;
  align-items: center;
  min-height: 100vh;
}
.error-page {
  text-align: center;
}
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: var(--fw-hero);
  color: var(--color-border);
  line-height: 1;
}
.error-page__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-title);
  margin-bottom: var(--space-md);
  color: var(--color-ink);
}
.error-page__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-mute);
}

/* --------------------------------------------------------------------------
   19. Posts Grid
   -------------------------------------------------------------------------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.post-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur-fast) ease;
}
.post-card:hover {
  box-shadow: 0 8px 32px oklch(17% 0.018 145 / 0.08);
}
.post-card__thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.post-card__title {
  font-family: var(--font-display), var(--font-body);
  font-size: 1.25rem;
  font-weight: var(--fw-title);
  line-height: var(--lh-head);
}
.post-card__title a:hover {
  color: var(--color-green);
}
.post-card__meta {
  font-size: var(--fs-small);
  color: var(--color-mute);
}
.post-card__footer {
  margin-top: auto;
  padding-top: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.post-card__readmore {
  font-size: var(--fs-small);
  color: var(--color-teal);
  font-weight: var(--fw-title);
}

/* --------------------------------------------------------------------------
   20. No Results
   -------------------------------------------------------------------------- */
.no-results {
  text-align: center;
  padding-block: var(--space-section);
}

/* --------------------------------------------------------------------------
   21. Responsive — General
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .site-footer__inner {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   22. Spec セクション — 背景画像オプション
   -------------------------------------------------------------------------- */
/* JS / PHP が --spec-bg を style 属性で渡した場合に適用 */
.section-spec--has-bg {
  position: relative;
  overflow: hidden;
  background-color: transparent;
}
.section-spec--has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--spec-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
}
.section-spec--has-bg .section-spec__inner {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-fade-in {
    opacity: 1;
    transform: none;
  }
}
