/* ミセログ 販売LP v2（2026-10-17）
   書体＝見出しと数字 Kaisei Opti、本文 Zen Kaku Gothic New（taiga 指定）。文字は大きめ。
   背景＝写真（壁に落ちる葉の影）・和紙の質感・ローズの色面を節ごとに変えて、平たい印象をなくす。
   色は ローズ1色＋白に近い地。角は 20px（写真・枠）と丸（ボタン）の2種。 */
:root {
  --bg: #fbf7f6;
  --bg-2: #f3e9e8;
  --rose-50: #f7e8ea;
  --rose-100: #efd3d8;
  --ink: #26232a;
  --sub: #4a4650;
  --line: #e6dadb;
  --accent: #b23f63;
  --accent-deep: #8f2e4d;
  --accent-ink: #ffffff;
  --mark: rgba(178, 63, 99, .2);
  --shadow: 0 24px 50px rgba(90, 40, 55, .18);
  --r: 20px;
  --font-head: 'Kaisei Opti', 'Hiragino Mincho ProN', serif;
  --font-body: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 19.5px; line-height: 1.75; letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.ph { display: inline-block; }
h1, h2, .logo, .road strong, .faq summary, .price-num, .step-head { font-family: var(--font-head); }
h1, h2 { font-weight: 700; letter-spacing: .01em; line-height: 1.38; margin: 0 0 22px; font-feature-settings: 'palt' 1; }
h1 { font-size: clamp(41.4px, 11.5vw, 69px); line-height: 1.3; }
h2 { font-size: clamp(33.3px, 9vw, 52.9px); }
p { margin: 0 0 16px; }
section { padding: 96px 22px; position: relative; }
.inner { max-width: 1120px; margin: 0 auto; }
.body, .lead { color: var(--sub); max-width: 32em; font-size: 20.7px; }
@media (min-width: 900px) { body { font-size: 20.7px; } section { padding: 132px 44px; } .body, .lead { font-size: 21.8px; } }

/* 読んだ割合の線 */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 30; }
@supports (animation-timeline: scroll()) { @media (prefers-reduced-motion: no-preference) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
} }

/* 追従ヘッダー */
.bar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 16px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { font-weight: 700; font-size: 27.6px; text-decoration: none; letter-spacing: .03em; font-feature-settings: 'palt' 1; }

/* 申込ボタン（1つの名前・1つの色） */
.cta { font-family: var(--font-body); font-weight: 700; letter-spacing: .03em; display: inline-flex; align-items: center; justify-content: center; min-height: 62px; padding: 0 34px; border-radius: 999px; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: var(--accent-ink); font-size: 21.8px; text-decoration: none; white-space: nowrap; box-shadow: 0 14px 28px rgba(143, 46, 77, .32), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.cta:active { transform: scale(.98); }
.cta-sm { min-height: 46px; padding: 0 20px; font-size: 17.2px; box-shadow: none; }

/* 1. 最初の画面：壁に落ちる葉の影の写真を背景に */
.hero { min-height: calc(100dvh - 64px); display: grid; gap: 30px; align-content: center; padding-top: 44px; padding-bottom: 60px; background: url(img/bg/bg-hero-tall.jpg) center bottom / cover no-repeat, var(--bg); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251,247,246,.82) 0%, rgba(251,247,246,.35) 45%, rgba(251,247,246,0) 70%); pointer-events: none; }
.hero > * { position: relative; }
.hero .lead { font-size: 21.8px; color: var(--ink); }
.price-note { color: var(--sub); font-size: 19.5px; margin-top: 14px; font-family: var(--font-head); }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; background-image: url(img/bg/bg-hero-wide.jpg); background-position: center; padding-left: max(44px, calc((100vw - 1180px) / 2)); padding-right: max(44px, calc((100vw - 1180px) / 2)); }
  .hero::before { background: linear-gradient(90deg, rgba(251,247,246,.9) 0%, rgba(251,247,246,.55) 45%, rgba(251,247,246,0) 75%); }
}

/* 扇の見本（10枚・左右にめくる） */
.fan { margin: 0; position: relative; user-select: none; -webkit-user-select: none; }
.fan-stage { position: relative; height: 470px; outline: none; touch-action: pan-y; }
.fan .card { position: absolute; left: 50%; top: 10px; width: 58%; max-width: 270px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); transform-origin: 50% 110%; transition: transform .6s cubic-bezier(.16, 1, .3, 1), opacity .4s ease; cursor: grab; }
.fan-ui { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 8px; }
.fan-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--accent); font-size: 29.9px; line-height: 1; cursor: pointer; box-shadow: 0 6px 14px rgba(90,40,55,.1); }
.fan-count { font-family: var(--font-head); font-size: 20.7px; color: var(--sub); min-width: 64px; text-align: center; }
.fan-count b { color: var(--ink); font-size: 25.3px; }
.sample-note { text-align: center; font-size: 16.1px; color: var(--sub); margin-top: 6px; }
@media (min-width: 900px) { .fan-stage { height: 600px; } .fan .card { max-width: 320px; } }
@media (prefers-reduced-motion: reduce) { .fan .card { transition: none; } }

/* 作例の帯（1本だけ） */
.marquee { overflow: hidden; padding: 26px 0; background: var(--rose-50); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee .track { display: flex; gap: 14px; width: max-content; }
.marquee img { width: 120px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; }
@media (prefers-reduced-motion: no-preference) { .marquee .track { animation: slide 60s linear infinite; } @keyframes slide { to { transform: translateX(-50%); } } }

/* 和紙の質感の地 */
.paper { background: url(img/bg/bg-paper.jpg) center / cover no-repeat, var(--bg); }

/* 2. 今日の1枚（PCはピン留め） */
.pin { display: grid; gap: 30px; max-width: 1120px; margin: 0 auto; }
.pin-visual { display: none; }
.step { padding: 26px 0 12px; }
.step-img { width: min(76vw, 300px); margin: 0 auto 22px; border-radius: 24px; box-shadow: var(--shadow); border: 6px solid var(--ink); }
.step-head { font-weight: 700; font-size: 26.4px; color: var(--ink); line-height: 1.45; }
.step p:not(.step-head) { color: var(--sub); font-size: 20.7px; text-wrap: pretty; line-break: strict; }
.phone { position: relative; width: 300px; aspect-ratio: 390 / 700; border-radius: 32px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); border: 7px solid var(--ink); }
.pin-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .45s ease; }
.pin-img.on { opacity: 1; }
@media (min-width: 900px) {
  .pin { grid-template-columns: 1fr 1fr; align-items: start; }
  .pin-visual { display: flex; justify-content: center; position: sticky; top: 116px; }
  .step-img { display: none; }
  .step { padding: 5vh 0; display: flex; flex-direction: column; justify-content: center; }
  .pin-steps h2 { margin-top: 6vh; }
}

/* 3. 1週間分（ローズの色面に横スクロール） */
.week { background: linear-gradient(180deg, var(--rose-50), var(--rose-100)); padding-right: 0; }
.week .inner { padding-right: 22px; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 22px 22px 0; scrollbar-width: none; max-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; flex: 0 0 auto; width: min(64vw, 270px); scroll-snap-align: start; }
.rail img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.rail figcaption { text-align: center; font-family: var(--font-head); font-size: 20.7px; margin-top: 10px; }
@media (min-width: 900px) { .week { padding-left: max(44px, calc((100vw - 1120px) / 2)); } }

/* 4. 間違えない（深いローズの面・白い字） */
.safe { background: radial-gradient(120% 90% at 85% 10%, #c4577a 0%, var(--accent-deep) 55%, #6e2139 100%); color: #fff7f8; }
.safe h2 { color: #fff; }
.safe .inner > p, .safe-grid p { color: #fbe9ee; font-size: 21.8px; }
.safe-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .safe-grid { grid-template-columns: 1fr 1fr; gap: 44px; } }
.mark { background-image: linear-gradient(rgba(255, 214, 226, .38), rgba(255, 214, 226, .38)); background-repeat: no-repeat; background-position: 0 88%; background-size: 0% 42%; transition: background-size .9s cubic-bezier(.16, 1, .3, 1) .15s; }
.in .mark, .mark.in { background-size: 100% 42%; }

/* 5. 学習 */
.learn .inner { display: grid; gap: 34px; align-items: center; }
.learn-shot { margin: 0; justify-self: center; width: min(86vw, 380px); }
.learn-shot img { border-radius: var(--r); box-shadow: var(--shadow); }
@media (min-width: 900px) { .learn .inner { grid-template-columns: 1.1fr .9fr; } }

/* 6. 積み上がる（写真を大きく、字を重ねる） */
.stack { padding: 0; }
.stack-photo { margin: 0; position: relative; }
.stack-photo img { width: 100%; height: min(120vw, 760px); object-fit: cover; }
.stack-copy { background: #fff; margin: -110px 22px 0; position: relative; padding: 34px 26px; border-radius: var(--r); box-shadow: var(--shadow); }
@media (min-width: 900px) { .stack { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; } .stack-photo img { height: 760px; } .stack-copy { margin: 0 44px 0 -120px; padding: 52px 48px; } }

/* 7. これから増える道具 */
.roadmap { background: linear-gradient(160deg, var(--bg) 0%, var(--rose-50) 100%); }
.road { list-style: none; padding: 0; margin: 10px 0 30px; display: grid; gap: 4px; border-left: 2px solid var(--rose-100); }
.road li { position: relative; padding: 16px 0 16px 30px; }
.road li::before { content: ""; position: absolute; left: -8px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--rose-100); }
.road li.now::before { background: var(--accent); border-color: var(--accent); }
.road .when { display: block; font-size: 18.4px; color: var(--sub); }
.road strong { font-size: clamp(24.1px, 6.4vw, 29.9px); font-weight: 700; }

/* 8. 料金（色が動き続ける背景） */
.price { background: linear-gradient(120deg, #f6e4e7, #fbf3ee, #f1dce2, #fbf3ee); background-size: 300% 300%; }
@media (prefers-reduced-motion: no-preference) { .price { animation: hue 18s ease-in-out infinite alternate; } @keyframes hue { to { background-position: 100% 50%; } } }
.price .inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: stretch; } /* 10/23：1列の時も中身の最小幅で広がらない（値段が画面の右へはみ出していた） */
.price-card { background: rgba(255,255,255,.86); border-radius: var(--r); padding: 36px 28px; box-shadow: var(--shadow); }
.price-name { font-weight: 700; font-size: 21.8px; }
.price-num { white-space: nowrap; font-size: clamp(44px, 12vw, 101.2px); font-weight: 700; line-height: 1.1; margin: 8px 0 18px; letter-spacing: .01em; }
@media (min-width: 900px) { .price-num { font-size: clamp(56px, 6.5vw, 96px); } }
.price-num span { font-family: var(--font-body); font-size: 19.5px; font-weight: 700; margin-left: 6px; }
.price-card p:not(.price-name):not(.price-num) { color: var(--sub); font-size: 20.7px; }
.price-card .cta { margin: 12px 0 16px; max-width: 100%; white-space: normal; text-align: center; line-height: 1.4; padding-top: 14px; padding-bottom: 14px; } /* 長いボタンの文言（販売開始のお知らせを希望する）が改行できず右へはみ出していた */
.price-sub { font-size: 18.4px; }
.price-photo { margin: 0; }
.price-photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: var(--r); }
@media (min-width: 900px) { .price .inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* 9. 質問 */
.faq .inner { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 24.1px; padding: 16px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--accent); }
.faq details[open] summary::after { content: "－"; }
.faq details p { color: var(--sub); font-size: 20.7px; }

.last { text-align: center; background: url(img/bg/bg-hero-wide.jpg) center / cover no-repeat; }
.last::before { content: ""; position: absolute; inset: 0; background: rgba(251,247,246,.55); }
.last > * { position: relative; }
.foot { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: center; padding: 34px 20px 64px; font-size: 17.2px; color: var(--sub); border-top: 1px solid var(--line); background: var(--bg); }
.foot a { text-decoration: none; padding: 10px 4px; }

/* 画面に入ったら、ふわっと（0.6秒・下から18px） */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .mark { background-size: 100% 42%; transition: none; } }
