/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --beige: #c4ab9a;
  --beige-deep: #a68e7d;
  --ink: #37332f;
  --ink-soft: #767069;
  --bg-top: #dcdcdf;
  --bg-bottom: #c7c6ca;
}

body {
  font-family: "Didot", "Bodoni MT", "Playfair Display", Georgia, serif;
  color: var(--ink);
  /* 商品写真と同じクールなスタジオグレー */
  background: linear-gradient(175deg, var(--bg-top) 0%, #d3d2d6 55%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ===== ヒーローの光だまり ===== */
.hero-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 62% 50% at 50% 66%,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0) 72%
  );
}

/* ===== 3D Canvas ===== */
#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  z-index: 50;
}

.logo {
  font-family: "Didot", "Bodoni MT", "Hiragino Mincho ProN", serif;
  font-size: 22px;
  letter-spacing: 0.35em;
  font-weight: 600;
}

.logo-sub {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--beige-deep);
  margin-left: 12px;
  vertical-align: middle;
  font-family: "Hiragino Sans", sans-serif;
}

.header-link {
  font-family: "Hiragino Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(58, 51, 48, 0.3);
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

.header-link:hover {
  color: var(--ink);
}

/* ===== ファーストビュー(人物+艶USP) ===== */
.fv {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 46% 54%;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "head  media"
    "body  media";
  /* 背面の3Dキャンバスを覆う不透明背景 */
  background: linear-gradient(175deg, var(--bg-top) 0%, #d3d2d6 55%, var(--bg-bottom) 100%);
}

.fv-head {
  grid-area: head;
  align-self: end;
  padding: 86px 4vw 0 7vw;
}

.fv-copy {
  grid-area: body;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 18px 4vw 34px 7vw;
}

.fv-eyebrow {
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--beige-deep);
  margin-bottom: 18px;
}

.fv-title {
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0.005em;
  margin-bottom: 0;
}

.fv-title .line {
  display: block;
  overflow: hidden;
}

.fv-title .line-inner {
  display: inline-block;
}

.fv-sub {
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 460px;
}

/* --- FV Before/After 比較 --- */
.fv-compare {
  display: flex;
  gap: 14px;
  width: 100%;
  max-width: 460px;
}

.fvc-panel {
  flex: 1;
  margin: 0;
  padding: 16px 14px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(55, 51, 47, 0.1);
  text-align: center;
}

.fvc-after {
  background: rgba(255, 252, 248, 0.92);
  border-color: rgba(166, 142, 125, 0.45);
  box-shadow: 0 10px 30px rgba(120, 96, 78, 0.14);
}

.fvc-chip {
  display: inline-block;
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(55, 51, 47, 0.08);
  margin-bottom: 10px;
}

.fvc-chip-gold {
  color: #fff;
  background: linear-gradient(135deg, #b09681, var(--beige-deep));
  letter-spacing: 0.24em;
}

.fvc-svg {
  display: block;
  width: 100%;
  max-width: 74px;
  height: auto;
  margin: 0 auto 10px;
}

.fvc-panel figcaption {
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.fvc-after figcaption {
  color: var(--ink);
  font-weight: 600;
}

.fv-hint {
  margin-top: 24px;
  align-self: flex-start;
  font-size: 9px;
  letter-spacing: 0.34em;
}

.fv-hint .scroll-line {
  height: 40px;
}

.fv-media {
  grid-area: media;
  position: relative;
  overflow: hidden;
}

.fv-media img,
.fv-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* モデルの顔となびく髪が入る位置(反転後の構図に合わせる) */
  object-position: 45% 22%;
  display: block;
}

@media (max-width: 900px) {
  /* 見出し → 動画 → 比較 の順に積む(視線が最初にコピーへ行く) */
  .fv {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "head"
      "media"
      "body";
    min-height: auto;
  }

  .fv-head {
    padding: 78px 22px 16px;
  }

  .fv-media {
    height: 34vh;
    min-height: 210px;
  }

  .fv-copy {
    padding: 18px 22px 30px;
  }

  .fv-eyebrow {
    font-size: 9px;
    letter-spacing: 0.26em;
    margin-bottom: 10px;
  }

  .fv-title {
    font-size: clamp(29px, 7.8vw, 40px);
    line-height: 1.22;
  }

  .fv-sub {
    font-size: 12.5px;
    line-height: 1.75;
    margin-bottom: 20px;
  }

  .fv-compare {
    max-width: none;
    gap: 10px;
  }

  .fvc-panel {
    padding: 12px 8px 11px;
  }

  .fvc-svg {
    max-width: 52px;
    margin-bottom: 8px;
  }

  .fvc-panel figcaption {
    font-size: 9.5px;
  }

  .fv-hint {
    margin-top: 22px;
  }
}

/* ===== お悩み訴求 ===== */
#spain {
  height: 140vh;
}

.pain-card {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(250, 249, 248, 0.85);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 52px 56px 48px;
  box-shadow: 0 24px 80px rgba(60, 52, 46, 0.12);
}

.pain-title {
  margin-bottom: 30px;
}

.pain-list {
  list-style: none;
  margin-bottom: 30px;
}

.pain-item {
  position: relative;
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 14px 0 14px 38px;
  border-bottom: 1px solid rgba(55, 51, 47, 0.12);
  opacity: 0; /* JSでフェードイン */
}

.pain-item::before {
  content: "\2715"; /* ✕ */
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #b0685c;
}

.pain-bridge {
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}

@media (max-width: 768px) {
  .pain-card {
    padding: 32px 24px 30px;
  }
}

/* ===== Sections ===== */
#scroll-container {
  position: relative;
  z-index: 10;
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 折りたたみ区間(スクロール負荷を抑えつつ重厚さは維持) */
#sfold {
  height: 150vh;
  position: relative;
}

/* ギャラリー区間 */
#sgal {
  height: 160vh;
}

/* ラインナップ区間 */
#slineup {
  height: 140vh;
}

/* 回転区間:スクロールの尺を稼ぐ */
#s2 {
  height: 260vh;
  position: relative;
}

#s3 {
  height: 170vh;
}

#s4 {
  height: 190vh;
}

.sticky-frame {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 8vw;
}

/* ===== Typography ===== */
.kicker {
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.45em;
  color: var(--beige-deep);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(44px, 6.8vw, 88px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

/* ロードイン用のマスクリビール */
.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line-inner {
  display: inline-block;
}

h2 {
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.unit {
  font-size: 0.5em;
}

.content.center {
  text-align: center;
  transform: translateY(-16vh); /* 商品(中央下)と重ならないよう上へ */
}

/* ===== Hero scroll hint ===== */
.scroll-hint {
  margin-top: 56px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: "Hiragino Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--ink-soft);
}

.scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--beige-deep), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== 回転区間のフレーズ ===== */
.float-phrase {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10vw;
  opacity: 0;
  pointer-events: none;
}

/* 2つ目以降は同じsticky領域に重ねる */
#phrase2,
#phrase3,
#phrase4 {
  margin-top: -100vh;
}

/* 偶数フレーズは右寄せ */
#phrase2,
#phrase4 {
  align-items: flex-end;
  padding-left: 0;
  padding-right: 10vw;
  text-align: right;
}

/* ===== スペックパネル(右側) ===== */
.spec-panel {
  margin-left: auto;
  width: min(460px, 44vw);
}

.spec-title {
  margin-bottom: 40px;
}

.spec-list {
  list-style: none;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid rgba(58, 51, 48, 0.15);
  opacity: 0; /* JSでフェードイン */
}

.spec-label {
  font-family: "Hiragino Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.spec-value {
  font-family: "Didot", "Hiragino Mincho ProN", serif;
  font-size: 26px;
  letter-spacing: 0.06em;
}

.spec-value small {
  font-size: 14px;
  margin-left: 2px;
}

/* ===== ギャラリー ===== */
.gallery-card {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  background: rgba(250, 249, 248, 0.82);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 56px 64px 64px;
  box-shadow: 0 24px 80px rgba(60, 52, 46, 0.12);
}

.gallery-title {
  margin-bottom: 40px;
}

.gallery-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.gphoto {
  flex: 1;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #e8ddd2, #d9cabb);
  opacity: 0; /* JSでフェードイン */
  transform: translateY(40px);
}

.gphoto.tall-photo {
  margin-top: -28px;
}

.gphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gphoto.empty img {
  display: none;
}

.gphoto.empty {
  position: relative;
}

.gphoto.empty::after {
  content: "PHOTO";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Hiragino Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: rgba(120, 100, 85, 0.55);
}

@media (max-width: 768px) {
  .gallery-card {
    padding: 28px 20px 32px;
  }

  .gallery-row {
    gap: 12px;
  }

  .gphoto.tall-photo {
    margin-top: -14px;
  }
}

/* ===== ラインナップ ===== */
.lineup-card {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  background: rgba(250, 249, 248, 0.85);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 52px 64px 56px;
  box-shadow: 0 24px 80px rgba(60, 52, 46, 0.12);
}

.lineup-title {
  margin-bottom: 36px;
}

.lineup-row {
  display: flex;
  gap: 40px;
}

.lineup-item {
  flex: 1;
  opacity: 0; /* JSでフェードイン */
  transform: translateY(40px);
}

.lphoto {
  margin: 0 0 20px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #e6e0d8, #d5cabd);
}

.lphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lineup-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.lineup-tagline {
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.lineup-price {
  font-size: 24px;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.lineup-tax {
  font-family: "Hiragino Sans", sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
}

.lineup-cta {
  font-size: 12px;
}

@media (max-width: 768px) {
  .lineup-card {
    padding: 28px 20px 32px;
  }

  .lineup-row {
    gap: 16px;
  }

  .lineup-name {
    font-size: 14px;
  }

  .lineup-price {
    font-size: 18px;
  }

  .lineup-tagline {
    font-size: 10px;
  }
}

/* ===== フィナーレ ===== */
.finale .sticky-frame {
  justify-content: center;
}

.finale-copy {
  text-align: center;
  opacity: 0; /* JSでフェードイン */
}

.finale-title {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.35;
  margin-bottom: 44px;
  text-shadow: 0 2px 30px rgba(239, 237, 236, 0.9);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Hiragino Sans", sans-serif;
  font-size: 15px;
  letter-spacing: 0.3em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #b09681, var(--beige-deep));
  padding: 20px 72px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(183, 156, 137, 0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(183, 156, 137, 0.5);
}

.ig-icon {
  width: 18px;
  height: 18px;
}

/* CTA直上のプレミアム感マイクロコピー */
.cta-microcopy {
  font-family: "Didot", "Bodoni MT", Georgia, serif;
  font-size: clamp(15px, 1.6vw, 19px);
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--beige-deep);
  margin-bottom: 20px;
}

.lineup-lead {
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin: -22px 0 34px;
  max-width: 620px;
}

.cta-hint {
  margin-top: 16px;
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.note {
  margin-top: 26px;
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

/* ===== 取扱店舗募集(ディーラー向け) ===== */
.dealer-box {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(55, 51, 47, 0.18);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.dealer-kicker {
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--beige-deep);
  margin-bottom: 14px;
}

.dealer-text {
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.dealer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(55, 51, 47, 0.4);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.dealer-link:hover {
  color: var(--beige-deep);
  border-color: var(--beige-deep);
}

.dealer-link .ig-icon {
  width: 15px;
  height: 15px;
}

/* 正規取扱店の直下に続く注記は間隔を詰める */
.trust-line + .note {
  margin-top: 12px;
}

/* ===== 正規取扱店の表記(左右に細いラインを添えたバッジ調) ===== */
.trust-line {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--beige-deep);
}

.trust-line::before,
.trust-line::after {
  content: "";
  flex: 0 1 56px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(166, 142, 125, 0.75), transparent);
}

@media (max-width: 768px) {
  .trust-line {
    font-size: 9.5px;
    letter-spacing: 0.22em;
    gap: 10px;
  }

  .trust-line::before,
  .trust-line::after {
    flex-basis: 24px;
  }
}

/* ===== 法務リンク ===== */
.legal-line {
  margin-top: 32px;
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.legal-link {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(118, 112, 105, 0.35);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.legal-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 768px) {
  .dealer-box {
    margin-top: 40px;
    padding-top: 28px;
  }

  .dealer-text br {
    display: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-header {
    padding: 20px 24px;
  }

  .content.center {
    transform: translateY(-20vh);
  }

  .float-phrase,
  #phrase2,
  #phrase4 {
    padding-left: 24px;
    padding-right: 24px;
  }

  .spec-panel {
    width: 100%;
    margin: 0;
    padding: 0 24px;
    align-self: flex-end;
    margin-bottom: 8vh;
  }

  .spec-value {
    font-size: 20px;
  }
}

/* ===== ヘッダーの折返し・ヒーローとの重なり対策 ===== */
.site-header {
  gap: 24px;
}

.logo {
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.header-link {
  white-space: nowrap;
}

/* 中間幅ではロゴとリンクを少し詰めて1行に収める */
@media (max-width: 1100px) {
  .site-header {
    padding: 20px 28px;
  }

  .logo {
    font-size: 18px;
    letter-spacing: 0.22em;
  }

  .logo-sub {
    font-size: 9.5px;
    letter-spacing: 0.18em;
    margin-left: 8px;
  }

  .header-nav {
    gap: 16px;
  }

  .header-link {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

/* さらに狭い幅ではロゴのサブ表記を隠す */
@media (max-width: 560px) {
  .logo-sub {
    display: none;
  }
}

/* 高さの低いウィンドウではヒーロー文言を上げすぎない
   (ヘッダーとキッカーが重なるため) */
@media (max-height: 760px) and (min-width: 769px) {
  .content.center {
    transform: translateY(-5vh);
  }
}
