/* ═══════════════════════════════════════════════════════════
   baby fuwari（架空・制作デモ）— tone-64 やさしいベビー用品EC
   base #FEFEFE / text #55535A / accent #FE9EA4
   見出し・本文: Zen Maru Gothic ／ 密度3/5・有機的・低コントラスト
   ═══════════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --base: #FEFEFE;
  --text: #55535A;
  --accent: #FE9EA4;
  --accent-deep: #EE8790;
  --pink-pale: #FDE3E6;
  --blue-pale: #DCEBF5;
  --blue-soft: #BFD9EC;
  --cream: #FFF8F2;
  --muted: #8B8792;
  --lvl: 0.2;
}

html { scroll-behavior: auto; } /* smooth禁止（検品ハーネス対策）— ページ内リンクはJSアンカー */

body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  background: var(--base);
  color: var(--text);
  line-height: 1.9;
  font-size: 15px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }

/* ── ふわふわブロブ（固定背景キャンバス・morph-blob翻案） ── */
#blob {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  filter: blur(30px);
  opacity: 0.85;
}

.hero, .section, .footer { position: relative; z-index: 1; }

/* ── ジャンルタグ（左上） ── */
.site-tag {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none; /* 重なってもタップ・クリックを吸わない */
}
.tag-pill {
  background: rgba(254, 254, 254, 0.85);
  border: 1.5px solid var(--pink-pale);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}
.tag-sub {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  background: rgba(254, 254, 254, 0.75);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ── 共通 ── */
.container { max-width: 1060px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }
.container.narrow { max-width: 780px; }
.section { padding: clamp(3.5rem, 9vh, 6rem) 0; }

.sec-head { text-align: center; margin-bottom: 2.4rem; }
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--accent-deep);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.6rem;
}
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.5; }
.sec-lead { max-width: 34em; margin: 1rem auto 0; color: var(--muted); }

/* EQアイコン（wave-synth: scaleY 0.3↔1 / 1.1s ease-in-out infinite / delays 0,0.08,0.15,0.3） */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq b {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  transform-origin: bottom;
  animation: eqBounce 1.1s ease-in-out infinite alternate;
}
.eq b:nth-child(1) { animation-delay: 0s; }
.eq b:nth-child(2) { animation-delay: 0.08s; }
.eq b:nth-child(3) { animation-delay: 0.15s; }
.eq b:nth-child(4) { animation-delay: 0.3s; }
@keyframes eqBounce { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }

/* ── FV（左右分割型・SPは縦積み） ── */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem 0 3rem;
}
.hero-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  color: var(--accent-deep);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.45;
  font-weight: 900;
  margin-bottom: 1.1rem;
}
.hero-lead { color: var(--muted); max-width: 30em; margin-bottom: 1.6rem; }
.hero-cta-row { margin-bottom: 1.2rem; }
.hero-info { font-size: 0.8rem; color: var(--muted); }
.nw { white-space: nowrap; }

.hero-photo {
  border-radius: 46% 54% 52% 48% / 54% 46% 54% 46%;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(254, 158, 164, 0.22);
  background: var(--cream);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.scroll-cue {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 2.2rem;
}
.cue-arrow { display: inline-block; animation: cueBob 1.8s ease-in-out infinite; }
@keyframes cueBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ── CTAボタン（コーラルピンクのピル型） ── */
.btn-cta, .btn-final {
  display: inline-block;
  background: linear-gradient(120deg, var(--accent), #FFB3B8);
  color: #FFFDFD;
  font-family: inherit;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(254, 158, 164, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-cta { font-size: 0.95rem; padding: 0.85em 2.2em; }
.btn-cta:hover, .btn-final:hover { transform: scale(1.045); box-shadow: 0 10px 30px rgba(254, 158, 164, 0.5); }

/* ── 3つのやさしさ ── */
.sec-yasashisa { background: rgba(255, 248, 242, 0.55); }
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.feature {
  background: rgba(254, 254, 254, 0.82);
  border: 1.5px solid rgba(253, 227, 230, 0.9);
  border-radius: 28px;
  padding: 1.8rem 1.4rem;
  text-align: center;
}
.feature svg { width: 58px; height: 58px; margin: 0 auto 0.8rem; }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--accent-deep); }
.feature p { font-size: 0.88rem; color: var(--muted); text-align: left; }

/* ゆりかごの波（wave-synth・ひかえめ） */
.wave-band { margin-top: 2.8rem; text-align: center; }
#wave { width: 100%; height: 110px; display: block; }
.wave-note { font-size: 0.68rem; letter-spacing: 0.22em; color: var(--blue-soft); margin-top: 0.4rem; }

/* ── 人気アイテム ── */
.item-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 2vw, 1.4rem);
}
.item-card {
  background: rgba(254, 254, 254, 0.88);
  border: 1.5px solid rgba(220, 235, 245, 0.9);
  border-radius: 26px;
  padding: 1rem 1rem 1.3rem;
  text-align: center;
  /* 見出し・説明の行数が違っても価格・購入ボタンの縦位置をそろえる（§4.5） */
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(191, 217, 236, 0.4);
}
.item-photo {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: var(--cream);
}
.item-card h3 { font-size: 0.98rem; margin-bottom: 0.4rem; }
.item-desc { font-size: 0.8rem; color: var(--muted); text-align: left; margin-bottom: 0.6rem; }
.item-price { font-size: 1.3rem; font-weight: 900; color: var(--accent-deep); margin-top: auto; margin-bottom: 0.7rem; }
.item-price span { font-size: 0.72rem; font-weight: 700; color: var(--muted); margin-left: 2px; }

.btn-buy {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-deep);
  background: var(--pink-pale);
  border: none;
  border-radius: 999px;
  padding: 0.6em 1.6em;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn-buy:hover { background: var(--accent); color: #FFFDFD; transform: scale(1.045); }
.item-card .btn-buy { align-self: center; }

.ec-line {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(220, 235, 245, 0.45);
  border-radius: 999px;
  padding: 0.6em 1.4em;
  display: table;
  margin-left: auto;
  margin-right: auto;
}
.demo-note {
  text-align: center;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--accent-deep);
}

/* ── ギフトバナー ── */
.sec-gift { padding-top: 1rem; }
.gift-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: center;
  background: rgba(255, 248, 242, 0.9);
  border: 1.5px solid rgba(253, 227, 230, 0.9);
  border-radius: 36px;
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
}
.gift-photo { border-radius: 26px; overflow: hidden; }
.gift-text h2 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); margin-bottom: 0.8rem; }
.gift-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.8rem; }
.gift-price { font-size: 1.7rem; font-weight: 900; color: var(--accent-deep); margin-bottom: 1rem; }
.gift-price span { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-left: 4px; }
.gift-note { text-align: left; }

/* ── ものづくり ── */
.sec-story { background: rgba(220, 235, 245, 0.32); }
.story-copy p { margin-bottom: 1.2rem; max-width: 40em; margin-left: auto; margin-right: auto; }

/* ── おかいもののご案内（peek-list行のindent+invert） ── */
.guide-list { border-top: 1.5px solid var(--pink-pale); }
.guide-row {
  position: relative;
  display: flex;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1rem 0.4rem;
  border-bottom: 1.5px solid var(--pink-pale);
  overflow: hidden;
  transition: padding-left 0.35s ease; /* ROW_INDENT 26px / 0.35s */
}
.guide-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0% 50%;
  transition: transform 0.35s ease;
  z-index: 0;
}
.guide-row.is-active { padding-left: 26px; }
.guide-row.is-active::before { transform: scaleX(1); }
.guide-row dt, .guide-row dd {
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}
.guide-row.is-active dt, .guide-row.is-active dd { color: #FFFDFD; }
.guide-row dt { flex: 0 0 6.5em; font-weight: 700; color: var(--accent-deep); }
.guide-row dd { font-size: 0.9rem; color: var(--text); }

/* ── ママの声（掲載準備中の空枠） ── */
.voice-sub { font-size: 0.75em; font-weight: 400; color: var(--muted); }
.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.voice-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(254, 254, 254, 0.85);
  border: 1.5px dashed var(--blue-soft);
  border-radius: 24px;
  padding: 1.3rem;
}
.voice-face { width: 52px; height: 52px; flex: 0 0 52px; }
.voice-body { font-size: 0.85rem; color: var(--muted); }

/* ── 最終CTA（淡いブルー面＋大型丸ボタン） ── */
.sec-final {
  background: rgba(220, 235, 245, 0.75);
  text-align: center;
}
.final-title { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.9rem; }
.final-lead { color: var(--muted); margin-bottom: 2rem; }
.btn-final {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  padding: 1.1em 3.2em;
  border-radius: 999px;
}
.final-info {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem 2.2rem;
  margin-top: 2.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.final-info li { display: flex; align-items: center; gap: 7px; }
.lvl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  /* wave-synth: --lvl連動（opacity 0.35+lvl*0.65 / scale 1+lvl*0.6） */
  opacity: calc(0.35 + var(--lvl, 0.2) * 0.65);
  transform: scale(calc(1 + var(--lvl, 0.2) * 0.6));
}

/* ── フッター ── */
.footer {
  background: var(--blue-pale);
  text-align: center;
  padding: 2.6rem 1.2rem 2.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-name { font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.footer-meta { margin-bottom: 0.9rem; }
.footer-law { max-width: 560px; margin: 0 auto 1rem; }
.footer-law summary { cursor: pointer; color: var(--accent-deep); font-weight: 700; font-size: 0.8rem; }
.footer-law p { font-size: 0.74rem; text-align: left; margin-top: 0.5rem; }
.footer-demo { margin-bottom: 0.7rem; }
.footer-credit { font-size: 0.68rem; letter-spacing: 0.1em; }

/* ── 商品peekプレビュー（peek-list: 280×360 / lerp0.18 / tilt±9°） ── */
.peek {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  z-index: 60;
  pointer-events: none;
  will-change: transform;
}
.peek-inner {
  width: 280px;
  height: 360px;
  display: flex;
  flex-direction: column;
  background: var(--base);
  border: 1.5px solid var(--pink-pale);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(85, 83, 90, 0.18);
  opacity: 0;
  transform: scale(0.82);
}
.peek-photo { flex: 1; overflow: hidden; background: var(--cream); }
.peek-photo img { width: 100%; height: 100%; object-fit: cover; }
.peek-cap {
  padding: 0.55em 1em;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  background: var(--cream);
  border-top: 1.5px solid var(--pink-pale);
}
@media (max-width: 859px), (hover: none) {
  .peek { display: none; }
}

/* ── レスポンシブ ── */
@media (max-width: 900px) {
  /* 狭い画面では固定タグが本文・価格・購入ボタンに重なるため、ページ上端に置く */
  .site-tag { position: absolute; }
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .gift-banner { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .hero { min-height: 0; padding: 4.6rem 0 2.2rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero-visual { order: -1; }
  .hero-photo { max-height: 38vh; }
  .hero-photo img { max-height: 38vh; }
  .hero-title { font-size: clamp(1.55rem, 7.2vw, 1.9rem); margin-bottom: 0.7rem; }
  .hero-lead { margin-bottom: 1rem; font-size: 0.86rem; }
  .hero-eyebrow { margin-bottom: 0.6rem; }
  .scroll-cue { margin-top: 1.4rem; }
  .item-grid { grid-template-columns: 1fr; }
  .guide-row { flex-direction: column; gap: 0.2rem; }
  .ec-line { display: block; border-radius: 20px; }
}

/* ── prefers-reduced-motion: canvas・ループ・リビール全無効 ── */
@media (prefers-reduced-motion: reduce) {
  #blob, #wave, .wave-band, .peek { display: none !important; }
  .eq b, .cue-arrow { animation: none !important; }
  .btn-cta, .btn-final, .btn-buy, .item-card, .guide-row, .guide-row::before, .guide-row dt, .guide-row dd { transition: none !important; }
  .lvl-dot { opacity: 0.7; transform: none; }
}

/* 見出しの文節単位改行（§4.5 日本語改行品質） */
.bunsetsu { display: inline-block; }
