/* =========================================================
   湯凪（ゆなぎ）LP — style.css
   設計：モバイルファースト／上→下で 生成り→淡い湯気色→藍
   ========================================================= */

:root {
  /* ブランド色 */
  --c-ink:       #2a3550;  /* 濃紺：ロゴ・FV文字 */
  --c-ink-soft:  #3b486a;
  --c-paper:     #F5F0E8;  /* 生成り（最明） */
  --c-mist:      #E5EBEE;  /* 淡い湯気色 */
  --c-haze:      #C5D1DA;  /* 湯気〜うす藍 */
  --c-twilight:  #6F7E96;  /* 黄昏 */
  --c-indigo:    #3B4866;  /* 藍 */
  --c-deep:      #2A3550;  /* 最暗藍（ロゴ色と同じ着地点） */

  --c-text:      #2a3550;
  --c-text-soft: #4d5874;
  --c-text-on-dark: #F5F0E8;

  /* SKU（くすみ・彩度を揃える） */
  --c-yururi:    #7B7FA8;  /* 緩：スレートラベンダー */
  --c-kaeri:     #9A8A6A;  /* 還：くすみゴールド   */
  --c-kutsurogi: #B07A8A;  /* 寛：くすみローズ    */

  /* タイポ */
  --ff-display: "Kaisei Decol", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ff-body:    "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* レイアウト（PCコンテンツ幅860px基準・11-2） */
  --max-w: 860px;
  --gap:   clamp(20px, 6vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--c-text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* ページ全体：上→下で 生成り→湯気→藍。
     ドキュメント全高でマッピングさせるため attachment: fixed は使わない */
  background:
    linear-gradient(180deg,
      var(--c-paper)    0%,
      var(--c-mist)    18%,
      var(--c-haze)    38%,
      var(--c-twilight) 65%,
      var(--c-indigo)  85%,
      var(--c-deep)   100%);
}

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

a { color: inherit; }

/* a11y */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-ink); color: var(--c-paper);
  padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

body.is-nav-open { overflow: hidden; }


/* =========================================================
   Header / Hamburger
   ========================================================= */

.site-header {
  position: fixed; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  z-index: 50;
  pointer-events: none; /* 中身だけ拾う */
}
.site-header > * { pointer-events: auto; }

.site-logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
  opacity: .92;
}
.site-logo img {
  width: 44px; height: 44px;
  object-fit: contain;
}

/* hamburger button: 細い線・静かなトーン */
.menu-toggle {
  position: relative;
  z-index: 60; /* オーバーレイ(40)より上＝開いた後も閉じられる */
  appearance: none;
  border: 1px solid rgba(42, 53, 80, .35);
  background: rgba(245, 240, 232, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--c-ink);
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body);
  font-size: 12px; letter-spacing: .12em;
  line-height: 1; /* 2本線とラベルの縦センタリングを揃える */
  cursor: pointer;
  transition: background .4s ease, border-color .4s ease, color .4s ease;
}
.menu-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle__bar {
  display: block;
  width: 18px; height: 1px;
  background: currentColor;
  transition: transform .4s ease, opacity .4s ease;
}
.menu-toggle__label {
  display: block;
  letter-spacing: .18em;
  line-height: 1;
  /* Shippori Minchoの英小文字はemボックス内で約2.6px低く座るため光学補正 */
  transform: translateY(-2.5px);
}

/* 開いている間は2本線を静かに×へ */
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child {
  transform: translateY(3px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* nav: ふわっとオーバーレイ */
.global-nav {
  position: fixed; inset: 0;
  background: rgba(245, 240, 232, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
  z-index: 40;
  display: flex; align-items: center; justify-content: center;
}
.global-nav[data-open="true"] {
  opacity: 1; visibility: visible;
}
.global-nav ul {
  list-style: none; margin: 0; padding: 0;
  text-align: center;
}
.global-nav li { margin: 18px 0; }
.global-nav a {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none;
  font-family: var(--ff-display);
  font-size: 22px;
  letter-spacing: .12em;
  color: var(--c-ink);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .5s ease, opacity .5s ease;
}
.global-nav[data-open="true"] a {
  transform: translateY(0); opacity: 1;
}
.global-nav a span {
  font-family: var(--ff-body);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--c-text-soft);
}
.global-nav li:nth-child(1) a { transition-delay: .05s; }
.global-nav li:nth-child(2) a { transition-delay: .10s; }
.global-nav li:nth-child(3) a { transition-delay: .15s; }
.global-nav li:nth-child(4) a { transition-delay: .20s; }
.global-nav li:nth-child(5) a { transition-delay: .25s; }


/* =========================================================
   FV
   ========================================================= */

.fv {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  display: grid; place-items: center;
}

.fv__bg {
  position: absolute; inset: 0;
  background:
    /* 上に乳白の薄いベール（写真の重さを抜き、生成りに寄せる） */
    linear-gradient(180deg,
      rgba(245, 240, 232, .55) 0%,
      rgba(229, 235, 238, .35) 50%,
      rgba(197, 209, 218, .25) 100%),
    url("assets/fv_bg.jpg") center/cover no-repeat;
  z-index: -2;
}

.fv__bottle {
  position: absolute;
  left:   -2vw;
  bottom: 5vh; /* 下端から浮かせ、自然な置き位置に */
  width:  clamp(200px, 50vw, 360px); /* テキスト領域と重ねない */
  height: auto;
  z-index: -1;
  filter: drop-shadow(0 12px 32px rgba(42, 53, 80, .18));
  pointer-events: none;
  user-select: none;
}

.fv__inner {
  text-align: center;
  padding: 0 24px;
  max-width: 560px;
  /* コピー群を上へ寄せ、サブコピーと瓶上端の間に明確な余白を確保
     （短いビューポートでもサブコピー1.5行分以上空く量） */
  margin-bottom: 26vh;
}

.fv__brand img {
  width: clamp(120px, 36vw, 180px);
  height: auto;
  margin: 0 auto 22px;
  opacity: .96;
}

.fv__copy {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.8;
  letter-spacing: .04em;
  color: var(--c-ink);
  margin: 0;
}
.fv__copy em {
  font-style: normal;
  font-weight: 700;
  font-size: 1.16em;
  position: relative;
  padding: 0 .05em;
  background: linear-gradient(transparent 62%, rgba(123, 127, 168, .25) 62%);
}

/* サブコピー：商品カテゴリの一行。主役はメインコピー、控えめに */
.fv__lede {
  margin: 22px 0 0;
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--c-text-soft);
}

/* scroll cue */
.fv__scroll {
  position: absolute;
  left: 50%; bottom: 20px;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid rgba(42, 53, 80, .45);
  border-radius: 12px;
  display: grid; place-items: center;
}
.fv__scroll span {
  width: 2px; height: 8px;
  background: var(--c-ink);
  border-radius: 1px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(-6px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(8px);  opacity: 0; }
}


/* =========================================================
   Section base
   ========================================================= */

.section {
  position: relative;
  padding: clamp(72px, 14vw, 120px) 20px;
}
.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section__label {
  font-family: var(--ff-body);
  font-size: 11px;
  letter-spacing: .35em;
  text-align: center;
  color: var(--c-text-soft);
  margin: 0 0 18px;
}
.section__label--ja {
  letter-spacing: .15em;
  font-size: 13px;
}
.section__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(22px, 5.4vw, 30px);
  line-height: 1.7;
  letter-spacing: .04em;
  text-align: center;
  color: var(--c-ink);
  margin: 0 0 36px;
}

/* 見出しの改行禁則（12-4）：「に。」等の短い文節落ちを防ぐ */
.section__title,
.scene__title,
.product-unit__name {
  text-wrap: balance;
  word-break: auto-phrase;
}


/* =========================================================
   CONCEPT
   ========================================================= */

.section--concept { /* 背景はbody側のグラデに任せる */ }

.concept__body {
  text-align: center;
  font-size: clamp(15px, 4vw, 17px);
  color: var(--c-ink-soft);
}
.concept__body p { margin: .2em 0; }

/* 織り込み配置（12-1）：テキストと画像を交互に、大小差＋左右差をつける */
.concept__photo {
  background: #fff;
  padding: 10px;
  box-shadow: 0 14px 40px rgba(42, 53, 80, .12);
  border-radius: 2px;
}
.concept__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.concept__photo--bottle {
  width: 85%;
  margin: clamp(40px, 8vw, 64px) auto clamp(40px, 8vw, 64px) 0; /* 左寄せ */
}
.concept__photo--hands {
  width: 70%;
  margin: clamp(40px, 8vw, 64px) 0 0 auto; /* 右寄せ */
}


/* =========================================================
   SCENE / 3つの夜
   ========================================================= */

.section--scene { padding-top: clamp(60px, 12vw, 100px); }

.scenes {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 22px;
}
.scene {
  /* 下地のグラデを透かし、ページ全体の「深まり」を切らない */
  background: rgba(245, 240, 232, .70);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  overflow: hidden;
  border-top: 2px solid currentColor;
  box-shadow: 0 10px 32px rgba(42, 53, 80, .12);
}
.scene--yururi    { color: var(--c-yururi);    }
.scene--kaeri     { color: var(--c-kaeri);     }
.scene--kutsurogi { color: var(--c-kutsurogi); }

/* シーン画像：4:3・カード幅いっぱい（11-1） */
.scene__photo {
  margin: 0;
}
.scene__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.scene__content {
  padding: 22px 24px 26px;
}

/* 商品アイコン（円形）＋見出しの横並び（11-1b） */
.scene__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.scene__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(42, 53, 80, .12);
}
.scene__title {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
  color: var(--c-ink);
}

/* 香り名：固有名（漢字＋ふりがな）＋香り系統 */
.scene__fragrance {
  margin: 0 0 12px;
  display: flex; align-items: baseline; gap: 12px;
}
.scene__name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 20px;
  color: currentColor;
  line-height: 1;
}
.scene__name ruby rt {
  font-size: 10px;
  letter-spacing: .15em;
  color: currentColor;
  opacity: .85;
}
.scene__note {
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--c-text-soft);
}
.scene__body {
  margin: 0;
  font-size: 15px;
  color: var(--c-ink-soft);
}


/* =========================================================
   STORY
   ========================================================= */

.section--story {
  padding: 0;
}
.section--story .section__inner {
  max-width: 860px; /* 画像も860px基準（11-2/11-3） */
  position: relative;
}
.story__photo {
  margin: 0;
}
.story__photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.story__card {
  background: rgba(245, 240, 232, .82);
  backdrop-filter: blur(4px);
  max-width: 560px;
  /* A案（11-3）：重なり量＝画像高さの1/4（16:9画像で幅の14%≒高さの25%） */
  margin: -14% auto 0;
  padding: clamp(36px, 7vw, 56px) clamp(24px, 6vw, 44px);
  text-align: center;
  box-shadow: 0 18px 50px rgba(42, 53, 80, .18);
  border-radius: 3px;
  position: relative;
  z-index: 2;
}
.story__body {
  font-size: clamp(14px, 3.8vw, 16px);
  color: var(--c-ink-soft);
  line-height: 2;
}
.story__body p { margin: .2em 0; }
.story__break { height: .8em; }


/* =========================================================
   PRODUCT
   ========================================================= */

.section--product {
  padding-top: clamp(80px, 14vw, 120px);
}
.section--product .section__title,
.section--product .section__label {
  color: var(--c-text-on-dark);
}
.section--product .section__label { opacity: .8; }

.product__body {
  text-align: center;
  font-size: clamp(14px, 3.8vw, 16px);
  color: var(--c-text-on-dark);
  opacity: .92;
  line-height: 2;
}
.product__body p { margin: .15em 0; }

.product__lineup {
  margin: clamp(40px, 8vw, 64px) 0 0;
  text-align: center;
}
.product__lineup img {
  width: 100%;
  border-radius: 2px;
  background: var(--c-paper);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
}
.product__spec {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--c-text-on-dark);
  opacity: .8;
}

/* 個別ユニット（12-2）：1香り1ユニット */
.product__units {
  margin-top: clamp(56px, 10vw, 88px);
  display: grid;
  gap: clamp(48px, 9vw, 72px);
}
.product-unit {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}
.product-unit--yururi    { --sku-color: var(--c-yururi);    }
.product-unit--kaeri     { --sku-color: var(--c-kaeri);     }
.product-unit--kutsurogi { --sku-color: var(--c-kutsurogi); }

.product-unit__photo {
  margin: 0;
  width: min(190px, 52vw);
}
.product-unit__photo img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}
.product-unit__name {
  margin: 0 0 18px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--c-text-on-dark);
  position: relative;
  padding-bottom: 16px;
}
.product-unit__name ruby rt {
  font-size: 11px;
  letter-spacing: .15em;
  opacity: .85;
}
/* SKUカラーの短い罫線（見出し下・約40×2px） */
.product-unit__name::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 2px;
  background: var(--sku-color);
}
.product-unit__type {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .12em;
  margin-left: 12px;
  opacity: .75;
}
.product-unit__body {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 2.1;
  color: var(--c-text-on-dark);
  opacity: .92;
  word-break: auto-phrase; /* 文節単位の自然な折り返し */
}
/* モバイルは自然折返し優先（brはPCのみ有効） */
.product-unit__body br { display: none; }
.product-unit__spec {
  margin: 0;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--c-text-on-dark);
  opacity: .65;
}


/* =========================================================
   CLOSING
   ========================================================= */

.section--closing {
  padding: clamp(96px, 16vw, 140px) 20px clamp(80px, 12vw, 120px);
  text-align: center;
}
.section--closing .section__label,
.section--closing .section__title {
  color: var(--c-text-on-dark);
}
.section--closing .section__label {
  letter-spacing: .35em;
  opacity: .8;
}
.section--closing .section__title em {
  font-style: normal;
  font-weight: 700;
  font-size: 1.16em;
  background: linear-gradient(transparent 62%, rgba(245, 240, 232, .25) 62%);
  padding: 0 .05em;
}

/* SKUは「取っ手」＝脇役。小さく静かに、主役のCTAへ視線を渡す */
.sku-handles {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: flex; justify-content: center; gap: 14px;
  flex-wrap: wrap;
  opacity: .88;
}
.sku {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 0 0 96px; /* 3つ等幅＝センタリングを揃える（12-3） */
  padding: 6px 0;
}
.sku--yururi    { --sku-color: var(--c-yururi);    color: var(--c-yururi);    }
.sku--kaeri     { --sku-color: var(--c-kaeri);     color: var(--c-kaeri);     }
.sku--kutsurogi { --sku-color: var(--c-kutsurogi); color: var(--c-kutsurogi); }

.sku__name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--c-text-on-dark);
  line-height: 1;
  position: relative;
  padding-bottom: 12px;
}
/* SKUカラーの短い下線（12-3・案A。12-2の罫線と同じ色システム） */
.sku__name::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--sku-color);
}
.sku__name ruby rt {
  font-size: 10px;
  color: currentColor;
  letter-spacing: .15em;
  opacity: .9;
}
.sku__note {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--c-text-on-dark);
  opacity: .7;
  white-space: nowrap;
}

/* CTA＝このページの着地点。余白と大きさで主役に立てる */
.cta {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-family: var(--ff-display);
  font-size: clamp(18px, 4.6vw, 21px);
  letter-spacing: .25em;
  color: var(--c-text-on-dark);
  background: #1f2840; /* ページ背景よりさらに一段濃い藍＝最暗の着地点 */
  border: 1px solid rgba(245, 240, 232, .4);
  padding: 24px 0;
  width: min(340px, 86%);
  margin-top: clamp(72px, 14vw, 104px);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  transition: transform .3s ease, background .3s ease;
}
/* SKUからCTAへ視線を落とす、静かな一本の糸 */
.cta::before {
  content: "";
  position: absolute;
  left: 50%; top: calc(-1 * clamp(56px, 11vw, 84px));
  width: 1px; height: clamp(40px, 8vw, 60px);
  background: rgba(245, 240, 232, .35);
}
.cta:hover, .cta:focus-visible {
  transform: translateY(-1px);
  background: #1a2236;
}
.cta__rebut {
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--c-text-on-dark);
  opacity: .7;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  text-align: center;
  padding: 24px 16px 40px;
  color: var(--c-text-on-dark);
  opacity: .55;
  font-size: 11px;
  letter-spacing: .15em;
}


/* =========================================================
   Desktop adjustments (mobile-first → above 768)
   ========================================================= */
@media (min-width: 768px) {
  /* ヘッダーを max-width 860px の中央寄せコンテナに
     （%はスクロールバーを除いたビューポート基準・狭幅では16px確保） */
  .site-header {
    left: max(16px, calc((100% - 860px) / 2));
    right: max(16px, calc((100% - 860px) / 2));
    padding: 20px 0;
  }

  /* SCENE：カード3枚を横並び（11-2） */
  .scenes {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
  }
  .scene__content { padding: 20px 20px 24px; }
  .scene__icon { width: 68px; height: 68px; }
  .scene__title { font-size: 16px; }
  .scene__body { font-size: 14px; }

  /* CONCEPT織り込み（12-1）PC：画像1＝左寄せ60%／画像2＝右寄せ50% */
  .concept__photo--bottle { width: 60%; }
  .concept__photo--hands  { width: 50%; }

  /* PRODUCT個別ユニット（12-2）PC：2カラム・画像左右交互 */
  .product-unit {
    grid-template-columns: 240px 1fr;
    align-items: center;
    gap: 48px;
    justify-items: start;
    text-align: left;
  }
  .product-unit__photo { width: 240px; }
  .product-unit__name::after { left: 0; transform: none; }
  .product-unit--kaeri { grid-template-columns: 1fr 240px; }
  .product-unit--kaeri .product-unit__photo { order: 2; }
  .product-unit--kaeri .product-unit__text  { order: 1; }
  .product-unit__body br { display: inline; } /* PCはコピーの3行構造を再現 */
  /* ロゴはモバイル同等の存在感に */
  .site-logo img { width: 72px; height: 72px; }

  /* FV背景：縦長素材のためcoverでは下側の帯を見せる
     （浴槽・入浴する人物の後ろ姿・キャンドルが入る範囲） */
  .fv__bg { background-position: center 70%; }

  /* PC版FV：要素間の余白を詰め、視線を中央のコピーに集める */
  .fv__inner { max-width: 640px; margin-bottom: 12vh; }
  .fv__brand img { width: 150px; margin-bottom: 16px; }
  .fv__copy { font-size: 32px; line-height: 1.7; }
  .fv__lede { margin-top: 14px; font-size: 14px; }
  .fv__bottle { width: clamp(300px, 30vw, 400px); left: 3vw; bottom: 6vh; }

  .global-nav a { font-size: 26px; }
}

