@charset "UTF-8";
/* ==========================================================================
   バウバウ文庫 共通スタイル
   コンセプト：ページをめくる。昼は「ひるのえほん」、夜は「ねるまえのえほん」。
   ・色はすべて :root の変数で定義（ダークモードは下で上書き）
   ・ページの角は「背表紙側は小さく、めくる側は大きく」で統一
   ========================================================================== */

/* ---------- 1. 色・書体の定義（ひるのえほん） ---------- */
:root {
  color-scheme: light;

  /* 面 */
  --bg: #E3F1F9;            /* 空 */
  --bg-deep: #CDE5F2;       /* 少し深い空 */
  --surface: #FFFCF6;       /* えほんの紙 */
  --surface-warm: #FFF3D3;  /* バターいろの紙 */
  --line: #E5D8C0;
  --line-sky: #8DBAD3;
  --field-line: #877B63;

  /* 文字 */
  --text: #2F2B4D;
  --text-2: #57537A;

  /* アクセント */
  --accent: #FFCB47;
  --accent-soft: #FFEBAE;
  --accent-ink: #2F2B4D;
  --cta: #C23A5E;
  --cta-ink: #FFFFFF;
  --cta-edge: #8E2343;
  --cta-soft: #FBDCE3;
  --mint-soft: #D2EEDF;
  --mint-ink: #1F5A45;

  /* 状態 */
  --focus: #1D5FD1;
  --err: #B3261E;
  --err-bg: #FDE8E5;
  --ok-bg: #DDF1E6;

  /* 影・綴じ目 */
  --shade: rgba(47, 43, 77, 0.20);
  --gutter: rgba(47, 43, 77, 0.13);

  /* イラスト用（見本の絵・アイコン） */
  --art-ink: #2F2B4D;
  --art-white: #FFFFFF;
  --art-fur: #EBC48E;
  --art-fur-d: #D4A468;
  --art-ear: #A9744A;
  --art-muzzle: #FFF1D6;
  --art-blush: #F59AA8;
  --art-tongue: #F27C8E;
  --cat-fur: #B9B5D6;
  --cat-fur-d: #8E89B6;
  --cat-eye: #F3B63F;
  --cat-nose: #F29AA7;
  --cloud: #FFFFFF;
  --candy: #F9BFD0;
  --candy-d: #EE8FAE;
  --art-stick: #EAD3A8;
  --art-grass: #A9D9A1;
  --art-grass-d: #86C58C;
  --art-leaf: #7FC287;
  --art-trunk: #A9744A;
  --art-sun: #FFCB47;
  --art-spark: #FFD866;
  --art-moon: #FFF1C4;
  --art-moon-d: #F0D98E;
  --art-flower: #F7A6B8;
  --art-roof: #181D49;
  --art-room: #F6D9B8;
  --art-floor: #D9A97E;
  --art-curtain: #F3A9B8;
  --sky-a: #B9E0F4;
  --sky-b: #F3FAFD;
  --night-a: #1E2352;
  --night-b: #4A4F93;
  --night-text: #FFF4D6;
  --rb-1: #F58CA2;
  --rb-2: #FFD25E;
  --rb-3: #8FD1B0;
  --rb-4: #8DB9EA;
  --icon-a: #FFD566;
  --icon-b: #F8B9C7;
  --icon-c: #A9DEC4;
  --icon-d: #BCD9F2;

  /* 書体：見出し・お話はやわらかい丸みの明朝系、本文は丸ゴシック */
  --font-display: "Kiwi Maru", "Hiragino Maru Gothic ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP", serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

/* ---------- 2. ダークモード（ねるまえのえほん） ---------- */
/* 注意：下の2つのブロックは同じ値にしておくこと */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #161939;
    --bg-deep: #1F2350;
    --surface: #2A2E5C;
    --surface-warm: #38396A;
    --line: #444A7E;
    --line-sky: #5560A6;
    --field-line: #9399D0;
    --text: #F6EFE0;
    --text-2: #C9C6E3;
    --accent: #FFD266;
    --accent-soft: #4D4A7C;
    --accent-ink: #2F2B4D;
    --cta: #FFA3BA;
    --cta-ink: #2B1530;
    --cta-edge: #C86B88;
    --cta-soft: #5B3764;
    --mint-soft: #2F5A66;
    --mint-ink: #CFF3E2;
    --focus: #9CC4FF;
    --err: #FFB4AB;
    --err-bg: #5A2B3E;
    --ok-bg: #2B5A59;
    --shade: rgba(4, 5, 20, 0.55);
    --gutter: rgba(4, 5, 20, 0.30);
    --cloud: #D9DCFF;
    --art-grass: #7FB98D;
    --art-grass-d: #5E9E78;
    --art-leaf: #5FA97A;
    --sky-a: #222861;
    --sky-b: #4F559B;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161939;
  --bg-deep: #1F2350;
  --surface: #2A2E5C;
  --surface-warm: #38396A;
  --line: #444A7E;
  --line-sky: #5560A6;
  --field-line: #9399D0;
  --text: #F6EFE0;
  --text-2: #C9C6E3;
  --accent: #FFD266;
  --accent-soft: #4D4A7C;
  --accent-ink: #2F2B4D;
  --cta: #FFA3BA;
  --cta-ink: #2B1530;
  --cta-edge: #C86B88;
  --cta-soft: #5B3764;
  --mint-soft: #2F5A66;
  --mint-ink: #CFF3E2;
  --focus: #9CC4FF;
  --err: #FFB4AB;
  --err-bg: #5A2B3E;
  --ok-bg: #2B5A59;
  --shade: rgba(4, 5, 20, 0.55);
  --gutter: rgba(4, 5, 20, 0.30);
  --cloud: #D9DCFF;
  --art-grass: #7FB98D;
  --art-grass-d: #5E9E78;
  --art-leaf: #5FA97A;
  --sky-a: #222861;
  --sky-b: #4F559B;
}

/* ---------- 3. 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  overflow-wrap: break-word;
  overflow-x: clip;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
  font-feature-settings: "palt" 1;
  word-break: auto-phrase;
  text-wrap: balance;
}
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-color: var(--cta); }
svg { max-width: 100%; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
@media (min-width: 1024px) { .wrap { padding-inline: 32px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 50;
  padding: 10px 16px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 12px; }
.nb { white-space: nowrap; }

/* ---------- 4. ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px;
  padding: 12px 28px;
  border: 0; border-radius: 999px;
  background: var(--cta); color: var(--cta-ink);
  box-shadow: 0 4px 0 var(--cta-edge);
  font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; line-height: 1.4;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--cta-edge); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--cta-edge); }
.btn-ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 2px var(--text);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--text); background: var(--accent-soft); transform: none; }
.btn-ghost:active { transform: none; }
.btn-sm { min-height: 44px; padding: 8px 20px; font-size: 0.9375rem; box-shadow: 0 3px 0 var(--cta-edge); }
.btn-lg { min-height: 60px; padding: 14px 40px; font-size: 1.1875rem; }

/* ---------- 5. ヘッダー・フッター ---------- */
.site-header { padding-block: 14px; }
.site-header-in { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; margin-right: auto;
}
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name {
  font-family: var(--font-display); font-size: 1.3125rem; letter-spacing: 0.03em; line-height: 1.2;
}
.brand-name small { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0; margin-left: 2px; color: var(--text-2); }
.nav { display: flex; flex-wrap: wrap; gap: 2px 6px; order: 3; width: 100%; }
.nav a {
  padding: 6px 10px; border-radius: 10px;
  font-size: 0.9375rem; text-decoration: none;
}
.nav a:hover { text-decoration: underline wavy var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 6px 12px;
  border: 2px solid var(--text); border-radius: 999px;
  background: transparent; cursor: pointer;
  font-size: 0.875rem; font-weight: 500;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-moon { display: none; }
.theme-toggle[data-mode="light"] .i-sun { display: none; }
.theme-toggle[data-mode="light"] .i-moon { display: block; }
.theme-ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; padding: 6px 10px; }
.nav-toggle .theme-ic { width: 22px; height: 22px; }
.head-cta { display: none; }

/* JSが使えるときだけ、スマホ幅でメニューを開閉式にする */
@media (max-width: 879px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; padding-top: 8px; border-top: 2px dotted var(--line-sky); margin-top: 4px; flex-direction: column; }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 10px 8px; }
}
@media (min-width: 640px) { .head-cta { display: inline-flex; } }
@media (min-width: 880px) {
  .nav { order: 0; width: auto; flex-wrap: nowrap; margin-right: 8px; }
  .brand { margin-right: 0; }
  .site-header-in { flex-wrap: nowrap; }
  .nav { margin-left: auto; }
}

.site-footer {
  margin-top: 0;
  padding: 56px 0 48px;
  background: var(--bg-deep);
}
.foot-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.foot-brand { font-family: var(--font-display); font-size: 1.375rem; }
.foot-mission { color: var(--text-2); }
.foot-ai { margin-top: 12px; font-size: 0.9375rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 20px; }
.foot-links a { display: inline-block; padding: 6px 0; font-size: 0.9375rem; }
.copy { margin-top: 20px; font-size: 0.8125rem; color: var(--text-2); }

/* ---------- 6. セクション共通 ---------- */
.section { padding-block: 64px; }
@media (min-width: 880px) { .section { padding-block: 96px; } }

/* 雲のふち：前のセクションにせり出す丸い縁 */
.band { --band: var(--surface); position: relative; background: var(--band); }
.band-warm { --band: var(--surface-warm); }
.band-deep { --band: var(--bg-deep); }
.band::before {
  content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 18px;
  background: radial-gradient(circle at 18px 100%, var(--band) 17.5px, transparent 18px) 0 0 / 36px 18px repeat-x;
  pointer-events: none;
}

.sec-head { max-width: 40rem; margin-bottom: 40px; }
.h2 { font-size: clamp(1.5rem, 1.15rem + 1.7vw, 2.25rem); }
.lead { margin-top: 14px; color: var(--text-2); max-width: 36rem; }
.lead-strong { color: var(--text); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.prep-note {
  display: inline-block;
  margin-top: 14px; padding: 6px 14px;
  border: 2px dashed var(--field-line); border-radius: 12px;
  background: var(--accent-soft);
  font-size: 0.9375rem; font-weight: 500;
}

/* ---------- 7. ファーストビュー（開いたえほん） ---------- */
.hero { padding-top: 12px; padding-bottom: 72px; }
.spread { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.page {
  position: relative; background: var(--surface);
  box-shadow:
    0 2px 0 var(--line),
    0 5px 0 var(--surface), 0 6px 0 var(--line),
    0 9px 0 var(--surface), 0 10px 0 var(--line),
    0 26px 30px -16px var(--shade);
}
.page-l {
  border-radius: 32px 6px 6px 32px;
  padding: clamp(28px, 4.6vw, 60px) clamp(24px, 4.4vw, 56px);
  display: flex; flex-direction: column; justify-content: center;
}
.page-l::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 52px;
  background: linear-gradient(90deg, transparent, var(--gutter));
  border-radius: 0 6px 6px 0; pointer-events: none;
}
.page-r { border-radius: 6px 32px 32px 6px; overflow: hidden; min-height: 460px; }
.page-r::before {
  content: ""; position: absolute; z-index: 2; top: 0; left: 0; bottom: 0; width: 52px;
  background: linear-gradient(270deg, transparent, var(--gutter)); pointer-events: none;
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-title {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  line-height: 1.38; letter-spacing: 0.04em;
}
.hero-title .line { display: block; }
.hero-lead { margin-top: 22px; max-width: 28rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  display: inline-block; padding: 3px 14px;
  border-radius: 999px; background: var(--mint-soft); color: var(--mint-ink);
  font-size: 0.875rem; font-weight: 700;
}
.hero .btn-row { margin-top: 28px; }

.sample-tag {
  position: absolute; z-index: 3; left: 14px; top: 12px;
  max-width: calc(100% - 28px);
  padding: 2px 12px; border-radius: 999px;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--text);
  font-size: 0.8125rem; font-weight: 700; line-height: 1.6;
}
.page-r .sample-tag { left: auto; right: 16px; top: 16px; }

.bob { animation: bob 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bob-b { animation-delay: -3.5s; }
@keyframes bob { 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .bob { animation: none; } }

@media (max-width: 759px) {
  .hero { padding-bottom: 56px; }
  .spread { grid-template-columns: 1fr; }
  .page-l { border-radius: 28px 28px 6px 6px; padding-bottom: 36px; }
  .page-l::after {
    top: auto; left: 0; width: auto; height: 40px;
    background: linear-gradient(180deg, transparent, var(--gutter)); border-radius: 0;
  }
  .page-r { border-radius: 6px 6px 28px 28px; min-height: 320px; }
  .page-r::before {
    bottom: auto; right: 0; width: auto; height: 40px;
    background: linear-gradient(0deg, transparent, var(--gutter));
  }
  .page-r .sample-tag { right: auto; left: 14px; top: 46px; }
}

/* ---------- 8. 3ステップ ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; }
.step-ic {
  position: relative; width: 92px; height: 92px;
  border-radius: 50%; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 0 var(--line-sky);
}
.step-ic svg { width: 58px; height: 58px; }
.step-no {
  position: absolute; right: -6px; top: -4px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-size: 1.0625rem; line-height: 1;
  border: 2px solid var(--bg);
}
.step h3 { margin-top: 20px; font-size: 1.3125rem; }
.step p { margin-top: 8px; color: var(--text-2); max-width: 22rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; left: 112px; right: -20px;
  border-top: 4px dotted var(--line-sky);
}
@media (max-width: 759px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 36px 116px; min-height: 96px; }
  .step:last-child { padding-bottom: 0; }
  .step-ic { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 0; padding-top: 4px; }
  .step:not(:last-child)::after {
    top: 100px; bottom: 6px; left: 44px; right: auto; width: 0;
    border-top: 0; border-left: 4px dotted var(--line-sky);
  }
}

/* ---------- 9. 絵本の中身の見本 ---------- */
.leaf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.leaf-item { display: flex; flex-direction: column; gap: 14px; }
.leaf {
  position: relative; flex: 1;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: 6px 22px 22px 6px;
  overflow: hidden;
  box-shadow:
    3px 0 0 var(--surface-warm), 4px 0 0 var(--line),
    7px 0 0 var(--surface-warm), 8px 0 0 var(--line),
    12px 20px 26px -14px var(--shade);
}
.leaf::after {
  content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 22px;
  background: linear-gradient(90deg, var(--gutter), transparent); pointer-events: none;
}
.leaf-art { display: block; width: 100%; height: auto; }
.leaf-text {
  flex: 1; padding: 14px 22px 22px 30px;
  font-family: var(--font-display); font-size: 1.0625rem; line-height: 2;
}
.leaf-letter {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 56px 28px 40px 36px; gap: 18px;
  background: var(--surface-warm);
}
.leaf-letter svg { width: 44px; height: 44px; }
.leaf-letter p { font-family: var(--font-display); font-size: 1.3125rem; line-height: 2; }
.leaf-cap {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 0.875rem; color: var(--text-2); line-height: 1.7;
  padding-left: 8px; border-left: 4px solid var(--accent);
}
.sample-note {
  margin-top: 40px; max-width: 44rem;
  padding: 14px 20px; border-radius: 6px 18px 18px 6px;
  background: var(--accent-soft); border-left: 6px solid var(--accent);
  font-size: 0.9375rem;
}
@media (max-width: 959px) { .leaf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .leaf-grid { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-inline: auto; gap: 40px; }
}

/* ---------- 10. 商品と価格 ---------- */
.products { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: stretch; }
.product {
  position: relative; background: var(--surface);
  padding: 28px 28px 30px 36px;
  border-radius: 6px 22px 22px 6px;
}
.product-main {
  display: flex; flex-direction: column;
  grid-row: span 2;
  padding: 36px 36px 40px 52px;
  border-left: 16px solid var(--cta);
  box-shadow:
    4px 4px 0 -1px var(--surface), 5px 5px 0 0 var(--line),
    9px 9px 0 -1px var(--surface), 10px 10px 0 0 var(--line),
    18px 28px 30px -16px var(--shade);
}
.product-sub { border-left: 8px solid var(--accent); box-shadow: 6px 8px 0 -1px var(--line), 14px 20px 24px -14px var(--shade); }
.product h3 { font-size: 1.4375rem; }
.product-main h3 { font-size: 1.75rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 12px; }
.price-num { font-family: var(--font-display); font-size: 2.5rem; line-height: 1.2; letter-spacing: 0.02em; }
.product-main .price-num { font-size: 3.5rem; }
.price-unit { font-size: 0.9375rem; color: var(--text-2); }
.product-desc { margin-top: 10px; color: var(--text-2); }
.product-main .checks { margin-bottom: 22px; }
.checks { margin-top: 18px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; line-height: 1.7; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--text);
}
.product-eta {
  margin-top: auto; align-self: stretch; padding: 8px 14px; border-radius: 12px;
  background: var(--mint-soft); color: var(--mint-ink);
  font-size: 0.9375rem; font-weight: 700;
}
.note-strip {
  margin-top: 36px; display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; border-radius: 6px 20px 20px 6px;
  background: var(--surface); border-left: 8px solid var(--cta);
}
.note-strip svg { width: 32px; height: 32px; flex: none; margin-top: 4px; }
.note-strip p + p { margin-top: 4px; color: var(--text-2); font-size: 0.9375rem; }
.price-foot { margin-top: 20px; color: var(--text-2); font-size: 0.9375rem; }
@media (max-width: 879px) {
  .products { grid-template-columns: minmax(0, 1fr); }
  .product-main { grid-row: auto; padding: 28px 24px 32px 36px; border-left-width: 14px; }
  .product-main .price-num { font-size: 3rem; }
}

/* ---------- 11. 笑顔保証 ---------- */
.guarantee { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.seal { width: 180px; height: auto; transform: rotate(-6deg); justify-self: center; }
.seal-text { font-family: var(--font-display); font-size: 17px; fill: var(--art-ink); text-anchor: middle; }
.gflow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin-top: 26px; }
.gstep {
  padding: 18px 20px; border-radius: 6px 18px 18px 6px;
  background: var(--surface); border-left: 6px solid var(--accent);
}
.gstep:last-child { border-left-color: var(--cta); }
.gstep h3 { font-size: 1.1875rem; }
.gstep p { margin-top: 4px; font-size: 0.9375rem; color: var(--text-2); }
.garrow { align-self: center; width: 28px; height: 28px; }
.garrow path { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.guarantee-foot { margin-top: 20px; font-size: 0.9375rem; color: var(--text-2); }
.mission { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); margin-top: 14px; }
@media (max-width: 759px) {
  .guarantee { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .seal { justify-self: start; width: 140px; }
  .gflow { grid-template-columns: minmax(0, 1fr); }
  .garrow { transform: rotate(90deg); justify-self: center; }
}

/* ---------- 12. AIで作っていることの説明 ---------- */
.pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; }
.pipe {
  padding: 16px 16px 18px; border-radius: 18px;
  background: var(--surface);
}
.pipe h3 { font-size: 1.125rem; }
.pipe p { margin-top: 4px; font-size: 0.9375rem; color: var(--text-2); line-height: 1.7; }
.pipe-ai { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.pipe-arrow { align-self: center; width: 22px; height: 22px; }
.pipe-arrow path { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ai-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; margin-top: 48px; }
.ai-cols h3 { font-size: 1.3125rem; }
.ai-cols .checks { margin-top: 14px; }
.ai-cols p { margin-top: 10px; }
.ai-cols .checks li::before { background: var(--mint-soft); }
.ai-limit {
  margin-top: 36px; padding: 18px 22px; border-radius: 6px 18px 18px 6px;
  background: var(--surface); border-left: 8px solid var(--cta);
}
.ai-limit h3 { font-size: 1.1875rem; }
.ai-limit p { margin-top: 6px; }
@media (max-width: 959px) {
  .pipeline { grid-template-columns: minmax(0, 1fr); }
  .pipe-arrow { transform: rotate(90deg); justify-self: center; }
  .ai-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 13. よくある質問 ---------- */
.faq { max-width: 52rem; }
.faq-item { border-bottom: 3px dotted var(--line-sky); }
.faq-item:first-child { border-top: 3px dotted var(--line-sky); }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 18px 52px 18px 4px;
  font-family: var(--font-display); font-size: 1.125rem; line-height: 1.7;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after {
  content: ""; position: absolute; right: 12px; top: 50%;
  width: 16px; height: 3px; margin-top: -1.5px; background: var(--text); border-radius: 2px;
  transition: transform 0.2s ease;
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item summary:hover { background: var(--accent-soft); }
.faq-a { padding: 2px 8px 22px 4px; max-width: 42rem; }
.faq-a p + p { margin-top: 10px; }
.faq-a .soft { color: var(--text-2); font-size: 0.9375rem; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::before, .faq-item summary::after { transition: none; } }

/* ---------- 14. 最後の呼びかけ ---------- */
.final { text-align: center; padding-block: 72px 80px; }
.final .h2 { max-width: 28rem; margin-inline: auto; }
.final .lead { margin-inline: auto; }
.final .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- 15. 注文ページ ---------- */
.page-head { padding-block: 12px 28px; }
.page-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
.page-sub { margin-top: 10px; color: var(--text-2); max-width: 38rem; }
.status-banner {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 22px; padding: 14px 18px; max-width: 46rem;
  border: 2px dashed var(--field-line); border-radius: 6px 18px 18px 6px;
  background: var(--accent-soft);
}
.status-banner svg { width: 28px; height: 28px; flex: none; margin-top: 2px; }
.status-banner p + p { margin-top: 2px; font-size: 0.9375rem; color: var(--text-2); }

.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; padding-bottom: 72px; }
.form-page {
  background: var(--surface);
  border-radius: 6px 28px 28px 6px;
  padding: clamp(20px, 4vw, 44px) clamp(18px, 4vw, 48px) clamp(28px, 4vw, 48px) clamp(22px, 4vw, 56px);
  box-shadow:
    4px 4px 0 -1px var(--surface), 5px 5px 0 0 var(--line),
    9px 9px 0 -1px var(--surface), 10px 10px 0 0 var(--line),
    18px 28px 30px -16px var(--shade);
  border-left: 12px solid var(--accent);
}
.fsec { padding-block: 28px; border-top: 3px dotted var(--line-sky); }
.fsec:first-child { border-top: 0; padding-top: 0; }
.fsec h2 { font-size: 1.4375rem; display: flex; align-items: center; gap: 10px; }
.fsec-no {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 1rem; line-height: 1; font-family: var(--font-display);
}
.fsec-lead { margin-top: 6px; color: var(--text-2); font-size: 0.9375rem; }
.fgroup { margin-top: 22px; border: 0; padding: 0; min-width: 0; }
.flabel, .fgroup > legend {
  display: block; padding: 0; margin-bottom: 6px;
  font-weight: 700; font-size: 1rem; line-height: 1.6;
}
.req, .opt {
  display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; vertical-align: 0.1em; line-height: 1.7;
}
.req { background: var(--cta-soft); color: var(--text); }
.opt { background: var(--bg); color: var(--text-2); }
.hint { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; margin-bottom: 8px; }
.input, .textarea, .select {
  display: block; width: 100%; min-height: 50px;
  padding: 10px 14px;
  border: 2px solid var(--field-line); border-radius: 14px;
  background: var(--surface); color: var(--text);
  font-size: 1rem; line-height: 1.6;
}
.textarea { min-height: 112px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.input::placeholder, .textarea::placeholder { color: var(--text-2); opacity: 0.8; }
.is-invalid { border-color: var(--err); background: var(--err-bg); }
.field-error {
  margin-top: 6px; color: var(--err); font-size: 0.9375rem; font-weight: 700; line-height: 1.6;
}
.field-error::before { content: "！"; margin-right: 4px; }
.field-error[hidden] { display: none; }
.trait-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.count { margin-top: 4px; text-align: right; font-size: 0.875rem; color: var(--text-2); }
.count.is-over { color: var(--err); font-weight: 700; }
.chips-ex { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip-btn {
  min-height: 40px; padding: 4px 14px; border-radius: 999px;
  border: 2px dashed var(--field-line); background: transparent; cursor: pointer;
  font-size: 0.9375rem;
}
.chip-btn:hover { background: var(--accent-soft); }

/* 選択肢（ラジオ・チェック） */
.choices { display: grid; gap: 12px; }
.choices-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.choice-body {
  display: block; padding: 14px 18px 14px 52px; min-height: 56px;
  border: 2px solid var(--field-line); border-radius: 6px 16px 16px 6px;
  background: var(--surface);
  position: relative;
}
.choice-body::before {
  content: ""; position: absolute; left: 16px; top: 18px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--field-line); background: var(--surface);
}
.choice input:checked + .choice-body { border-color: var(--text); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--text); }
.choice input:checked + .choice-body::before { border-color: var(--text); background: var(--cta); box-shadow: inset 0 0 0 4px var(--accent-soft); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--focus); outline-offset: 3px; }
.choice-title { display: block; font-weight: 700; }
.choice-price { display: block; font-family: var(--font-display); font-size: 1.125rem; }
.choice-sub { display: block; font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }
.choices-check .choice-body { padding-left: 48px; border-radius: 12px; }
.choices-check .choice-body::before { border-radius: 6px; top: 16px; left: 14px; }
.choices-check .choice input:checked + .choice-body::before {
  border-radius: 6px; background: var(--cta);
  box-shadow: inset 0 0 0 4px var(--accent-soft);
}
.choice-link { text-decoration: underline; }
.choice-link-wrap { position: relative; z-index: 2; }
.season-box { margin-top: 14px; }

/* 写真スロット */
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.slot { position: relative; }
.slot-drop {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer;
  border: 3px dashed var(--field-line); border-radius: 18px;
  background: var(--bg);
  text-align: center;
}
.slot-drop:hover { background: var(--accent-soft); }
.slot-drop.is-invalid { border-color: var(--err); background: var(--err-bg); }
.slot-drop.has-img { border-style: solid; border-color: var(--text); }
.slot-input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.slot-drop:has(.slot-input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.slot-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; font-size: 0.875rem; line-height: 1.5; font-weight: 700; }
.slot-empty svg { width: 36px; height: 36px; }
.slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-img[hidden], .slot-clear[hidden], .slot-empty[hidden] { display: none; }
.slot-clear {
  margin-top: 8px; width: 100%; min-height: 40px;
  border: 2px solid var(--text); border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 0.875rem; font-weight: 700;
}
.slot-clear:hover { background: var(--accent-soft); }

/* 同意 */
.consents { display: grid; gap: 10px; }

/* 送信 */
.submit-area { padding-top: 28px; border-top: 3px dotted var(--line-sky); }
.submit-area .btn { width: 100%; max-width: 420px; }
.prep-line { margin-top: 14px; font-weight: 700; }
.form-status { margin-top: 18px; padding: 16px 20px; border-radius: 6px 18px 18px 6px; }
.form-status:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.form-status[hidden] { display: none; }
.form-status.is-error { background: var(--err-bg); border-left: 8px solid var(--err); }
.form-status.is-ok { background: var(--ok-bg); border-left: 8px solid var(--mint-ink); }
.form-status h3 { font-size: 1.125rem; }
.form-status ul { margin-top: 8px; display: grid; gap: 4px; list-style: disc; padding-left: 1.3em; }
.form-status a { font-weight: 700; }

.summary {
  position: sticky; top: 16px;
  background: var(--surface);
  border-radius: 6px 22px 22px 6px; border-left: 10px solid var(--cta);
  padding: 22px 22px 24px 24px;
  box-shadow: 6px 8px 0 -1px var(--line), 14px 20px 24px -14px var(--shade);
}
.summary h2 { font-size: 1.1875rem; }
.summary dl { margin-top: 12px; display: grid; gap: 10px; }
.summary dt { font-size: 0.8125rem; color: var(--text-2); line-height: 1.5; }
.summary dd { margin: 0; font-weight: 700; }
.summary .sum-price { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.3; }
.summary .sum-badge {
  display: inline-block; margin-top: 14px; padding: 2px 14px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 0.875rem; font-weight: 700;
}
@media (max-width: 959px) {
  .order-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 519px) {
  .choices-row { grid-template-columns: minmax(0, 1fr); }
  .trait-row { grid-template-columns: minmax(0, 1fr); }
  .slot-empty { font-size: 0.75rem; }
  .slot-empty svg { width: 28px; height: 28px; }
}

/* ---------- 16. 法定ページ（特商法・プライバシー・規約） ---------- */
.draft-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 28px; padding: 14px 18px;
  border: 2px dashed var(--err); border-radius: 6px 16px 16px 6px;
  background: var(--err-bg); font-size: 0.9375rem;
}
.draft-note svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.doc-wrap { padding-bottom: 72px; }
.doc {
  background: var(--surface);
  border-radius: 6px 28px 28px 6px; border-left: 12px solid var(--accent);
  padding: clamp(22px, 4.5vw, 56px) clamp(18px, 5vw, 64px) clamp(28px, 4.5vw, 56px) clamp(22px, 5vw, 68px);
  box-shadow:
    4px 4px 0 -1px var(--surface), 5px 5px 0 0 var(--line),
    9px 9px 0 -1px var(--surface), 10px 10px 0 0 var(--line),
    18px 28px 30px -16px var(--shade);
  max-width: 880px; margin-inline: auto;
}
.doc h1 { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem); }
.doc-meta { margin-top: 8px; color: var(--text-2); font-size: 0.9375rem; }
.doc-intro { margin-top: 20px; }
.doc h2 { margin-top: 44px; font-size: 1.3125rem; padding-bottom: 6px; border-bottom: 3px dotted var(--line-sky); }
.doc h3 { margin-top: 24px; font-size: 1.0625rem; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 1.4em; }
.doc ol { list-style: decimal; padding-left: 1.6em; }
.doc li + li { margin-top: 6px; }
.doc a { font-weight: 500; }
.toc { margin-top: 24px; padding: 16px 20px; border-radius: 6px 16px 16px 6px; background: var(--bg); }
.toc p { font-weight: 700; margin-top: 0; }
.toc ol { margin-top: 6px; display: grid; gap: 0 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 1.6em; font-size: 0.9375rem; }
.toc li + li { margin-top: 2px; }
@media (max-width: 599px) { .toc ol { grid-template-columns: minmax(0, 1fr); } }

.ph {
  display: inline; padding: 1px 8px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 0.9375em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.law { margin-top: 28px; display: grid; grid-template-columns: 1fr; border-top: 3px dotted var(--line-sky); }
.law-row { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-bottom: 3px dotted var(--line-sky); }
.law-row dt { font-weight: 700; }
.law-row dd { margin: 0; }
.law-row dd p + p, .law-row dd ul { margin-top: 8px; }
.law-row dd ul { list-style: disc; padding-left: 1.3em; }
.law-price { width: 100%; border-collapse: collapse; margin-top: 4px; }
.law-price th, .law-price td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.law-price th { font-weight: 500; }
.law-price td { white-space: nowrap; font-weight: 700; }
@media (max-width: 599px) {
  .law-row { grid-template-columns: minmax(0, 1fr); }
  .law-price td { white-space: normal; }
}

/* ---------- 17. イラスト用クラス（色はすべて上の変数から） ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.a-fur { fill: var(--art-fur); }
.a-fur-d { fill: var(--art-fur-d); }
.a-ear { fill: var(--art-ear); }
.a-muz { fill: var(--art-muzzle); }
.a-ink { fill: var(--art-ink); }
.a-white { fill: var(--art-white); }
.a-blush { fill: var(--art-blush); opacity: 0.55; }
.a-tongue { fill: var(--art-tongue); }
.a-cfur { fill: var(--cat-fur); }
.a-cfur-d { fill: var(--cat-fur-d); }
.a-ceye { fill: var(--cat-eye); }
.a-cnose { fill: var(--cat-nose); }
.a-cloud { fill: var(--cloud); }
.a-candy { fill: var(--candy); }
.a-candy-d { fill: var(--candy-d); }
.a-stick { fill: var(--art-stick); }
.a-grass { fill: var(--art-grass); }
.a-grass-d { fill: var(--art-grass-d); }
.a-leaf { fill: var(--art-leaf); }
.a-trunk { fill: var(--art-trunk); }
.a-sun { fill: var(--art-sun); }
.a-spark { fill: var(--art-spark); }
.a-moon { fill: var(--art-moon); }
.a-moon-d { fill: var(--art-moon-d); }
.a-flower { fill: var(--art-flower); }
.a-roof { fill: var(--art-roof); }
.a-room { fill: var(--art-room); }
.a-floor { fill: var(--art-floor); }
.a-curtain { fill: var(--art-curtain); }
.ear-c { fill: var(--cat-fur); stroke: var(--cat-fur); stroke-linejoin: round; stroke-width: 10; }
.ear-in { fill: var(--cat-nose); stroke: var(--cat-nose); stroke-linejoin: round; stroke-width: 4; }
.nose-c { fill: var(--cat-nose); stroke: var(--cat-nose); stroke-linejoin: round; stroke-width: 3; }

.s-ink, .s-ink-soft, .s-fur-d, .s-cfur, .s-cfur-d, .s-candy-d, .s-trunk, .s-rb-1, .s-rb-2, .s-rb-3, .s-rb-4 {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.s-ink { stroke: var(--art-ink); }
.s-ink-soft { stroke: var(--art-ink); opacity: 0.6; }
.s-fur-d { stroke: var(--art-fur-d); }
.s-cfur { stroke: var(--cat-fur); }
.s-cfur-d { stroke: var(--cat-fur-d); }
.s-candy-d { stroke: var(--candy-d); }
.s-trunk { stroke: var(--art-trunk); }
.s-rb-1 { stroke: var(--rb-1); stroke-linecap: butt; }
.s-rb-2 { stroke: var(--rb-2); stroke-linecap: butt; }
.s-rb-3 { stroke: var(--rb-3); stroke-linecap: butt; }
.s-rb-4 { stroke: var(--rb-4); stroke-linecap: butt; }

.stop-sky-a { stop-color: var(--sky-a); }
.stop-sky-b { stop-color: var(--sky-b); }
.stop-night-a { stop-color: var(--night-a); }
.stop-night-b { stop-color: var(--night-b); }
.flood-grain { flood-color: var(--art-ink); flood-opacity: 0.55; }

.svg-title { font-family: var(--font-display); font-weight: 500; text-anchor: middle; letter-spacing: 0.04em; }
.t-day { fill: var(--art-ink); }
.t-night { fill: var(--night-text); }

/* アイコン（3ステップ・注意書きなど） */
.ic-a { fill: var(--icon-a); }
.ic-b { fill: var(--icon-b); }
.ic-c { fill: var(--icon-c); }
.ic-d { fill: var(--icon-d); }
.ic-w { fill: var(--art-white); }
.ic-k { fill: var(--art-ink); }
.ic-s { stroke: var(--art-ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.ic-line { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 639px) {
  .theme-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* ---------- 価格の一覧・ガイドページ ---------- */
.price-table-h { margin-top: 36px; font-size: 1.1875rem; }
.price-table { max-width: 640px; }
.price-table td { white-space: normal; }
.price-notes { margin-top: 14px; display: grid; gap: 6px; list-style: disc; padding-left: 1.3em; color: var(--text-2); font-size: 0.9375rem; }
.price-notes + .note-strip { margin-top: 28px; }
.guide-steps { counter-reset: gs; list-style: none; padding-left: 0; display: grid; gap: 12px; }
.guide-steps li { position: relative; padding-left: 2.4em; }
.guide-steps li::before { counter-increment: gs; content: counter(gs); position: absolute; left: 0; top: 0; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-align: center; line-height: 1.8em; }

/* ---------- タップで選ぶチップ（性格・好きなもの・行き先・家族） ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag { position: relative; display: inline-block; }
.tag input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tag span { display: inline-block; padding: 9px 16px; min-height: 44px; line-height: 1.6; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); }
.tag input:checked + span { border-color: var(--text); background: var(--accent-soft); font-weight: 700; }
.tag input:disabled + span { opacity: .45; }
.tag input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.slot-role { display: block; font-size: 0.75rem; color: var(--text-2); line-height: 1.4; margin-top: 2px; }

/* 正式ロゴ（蔵書印スタンプ） */
.brand-mark { display: block; }
.foot-stamp { display: block; width: 96px; height: 96px; }
.foot-top:has(.foot-stamp) { align-items: center; }

/* お問い合わせ */
.contact-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-block: 8px 16px; }
.contact-mail { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; word-break: break-all; min-width: 0; user-select: all; }
.contact-copied { flex-basis: 100%; font-size: 13px; color: var(--text-2); min-height: 1em; }

/* ---------- 見本（実際の制作物） ---------- */
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seal { width: 180px; height: 180px; flex: none; }

.book-feature { display: grid; gap: 20px; margin-top: 8px; }
.book-head { display: grid; gap: 10px; max-width: 46rem; }
.book-kicker { font-size: 13px; letter-spacing: 0.08em; color: var(--text-2); }
.book-title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.3; text-wrap: balance; }
.book-hint { font-size: 13px; color: var(--text-2); }
.book-strip {
  list-style: none; margin: 0; padding: 4px 2px 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 30%);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.book-strip:focus-visible { outline: 3px solid var(--line-sky); outline-offset: 4px; border-radius: 12px; }
.book-page { position: relative; scroll-snap-align: start; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 16px -10px rgba(47, 43, 77, .35); }
.book-page img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.book-no { position: absolute; right: 8px; bottom: 6px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text-2); background: var(--surface); border-radius: 999px; padding: 1px 8px; opacity: .9; }

.works-h { font-family: var(--font-display); font-size: 1.375rem; margin-top: 48px; margin-bottom: 18px; }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.work { display: grid; gap: 14px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; min-width: 0; }
.work-cover { position: relative; border-radius: 12px; overflow: hidden; }
.work-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.work-title {
  position: absolute; left: 0; right: 0; top: 0; padding: 18px 14px 34px; text-align: center;
  font-family: var(--font-display); font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); line-height: 1.35; color: #3B2A20;
  background: linear-gradient(to bottom, rgba(255, 252, 246, .88), rgba(255, 252, 246, 0));
  text-wrap: balance;
}
.work-title span { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: 0.12em; margin-bottom: 4px; color: #6A5646; }
.work-body { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; align-items: start; }
.work-scene { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.work-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; font-size: 13px; line-height: 1.55; }
.work-meta dt { color: var(--text-2); white-space: nowrap; }
.work-meta dd { margin: 0; }
.work-meta-inline { font-size: 14px; }

@media (max-width: 900px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-strip { grid-auto-columns: minmax(200px, 44%); }
}
@media (max-width: 600px) {
  .works { grid-template-columns: minmax(0, 1fr); }
  .book-strip { grid-auto-columns: 78%; }
}
.page-r .sample-tag { top: auto; bottom: 16px; right: 16px; left: auto; }
@media (max-width: 760px) {
  .page-r { aspect-ratio: 1 / 1; min-height: 0; height: auto; }
  .page-r .sample-tag { top: auto; bottom: 14px; left: 14px; right: auto; }
}

/* 任意の写真スロット（4〜6枚目） */
.slot-opt .slot-drop { border-style: dashed; opacity: .92; }
.slot-optlabel { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); vertical-align: 1px; }

/* =====================================================================
   動きと、申し込みやすさ（2026-11）
   ===================================================================== */

/* ---------- ボタン：矢印がすこし進む ---------- */
.btn-arrow { flex: none; transition: transform 0.18s ease; }
.btn:hover .btn-arrow, .btn:focus-visible .btn-arrow { transform: translateX(4px); }
.hero-easy { margin-top: 12px; font-size: 0.9375rem; font-weight: 700; color: var(--mint-ink); }
.hero-easy::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.5em; border-radius: 50%; background: var(--accent); vertical-align: 0.08em; }

/* ---------- ファーストビュー：題名が1行ずつ立ち上がる ---------- */
.js .hero-title .line { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js .hero-title .line:nth-child(2) { animation-delay: 0.12s; }
.js .hero-title .line:nth-child(3) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(0.5em); } }

/* ---------- ファーストビュー：めくれる絵本 ---------- */
.page-r { display: flex; flex-direction: column; aspect-ratio: auto; }
.flipbook { position: relative; flex: 1 1 auto; min-height: 380px; perspective: 1800px; overflow: hidden; background: var(--surface-warm); }
.flip-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.flip-img.is-on { opacity: 1; }
.flip-leaf {
  position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none;
  background-size: cover; background-position: center;
  transform-origin: left center; backface-visibility: hidden;
}
.flip-leaf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(47, 43, 77, 0.28), transparent 60%); opacity: 0; }
.flip-leaf.turn { animation: leaf-turn 0.85s cubic-bezier(0.45, 0.05, 0.3, 1) both; }
.flip-leaf.turn::after { animation: leaf-shade 0.85s ease both; }
.flip-leaf.turn-back { animation: leaf-fade 0.5s ease both; }
@keyframes leaf-turn { 0% { opacity: 1; transform: rotateY(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: rotateY(-104deg); } }
@keyframes leaf-shade { 0% { opacity: 0; } 60% { opacity: 1; } 100% { opacity: 0; } }
@keyframes leaf-fade { from { opacity: 1; } to { opacity: 0; } }
.flip-bar {
  position: relative; z-index: 3; flex: none;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 10px 16px 12px 22px; background: var(--surface); border-top: 1px solid var(--line);
}
.flip-bar .sample-tag, .page-r .flip-bar .sample-tag { position: static; max-width: 100%; border-width: 1px; font-size: 0.75rem; }
.flip-ui { display: flex; align-items: center; gap: 6px; }
.flip-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px;
  border: 1.5px solid var(--text); background: var(--surface); color: var(--text);
  font: 700 0.8125rem/1 var(--font-body); cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.flip-btn:hover { background: var(--accent-soft); }
.flip-btn:active { transform: scale(0.94); }
.flip-btn:disabled { opacity: 0.35; cursor: default; background: var(--surface); }
.flip-pause { padding-inline: 14px; }
.flip-count { min-width: 3.6em; text-align: center; font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }
@media (max-width: 760px) {
  .page-r { aspect-ratio: auto; }
  .flipbook { min-height: 0; aspect-ratio: 1 / 1; flex: none; }
  .flip-bar { padding-left: 16px; }
}

/* ---------- 見本の16ページ：ボタン ---------- */
.book-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.book-nav .book-hint { margin-left: 4px; }
.sample-cta { margin-top: 36px; }
.product-cta { margin-top: 22px; align-self: flex-start; }

/* ---------- スクロールに合わせて出す（待っているあいだも、うすく見えている） ---------- */
.js .rv { opacity: 0.2; transform: translateY(26px); }
.js .rv.rv-in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .step.rv-in .step-ic { animation: pop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both; animation-delay: inherit; }
@keyframes pop { from { transform: scale(0.7) rotate(-6deg); } }

/* ---------- 追いかける注文ボタン ---------- */
.sticky-cta {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface); border-top: 1.5px solid var(--text);
  box-shadow: 0 -10px 24px -14px var(--shade);
  transform: translateY(110%); visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.35s;
}
.sticky-cta.is-on { transform: none; visibility: visible; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }
.sticky-cta-text { display: grid; line-height: 1.4; min-width: 0; }
.sticky-cta-text strong { font-size: 0.9375rem; }
.sticky-cta-text span { font-size: 0.8125rem; color: var(--text-2); }
.sticky-cta .btn { flex: none; }
body.has-sticky { padding-bottom: 76px; }
@media (min-width: 760px) {
  .sticky-cta {
    left: auto; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    padding: 12px 14px 12px 20px; gap: 18px;
    border: 1.5px solid var(--text); border-radius: 999px;
    box-shadow: 0 14px 28px -14px var(--shade);
    transform: translateY(140%);
  }
  body.has-sticky { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-title .line, .flip-leaf.turn, .flip-leaf.turn::after, .flip-leaf.turn-back, .js .step.rv-in .step-ic { animation: none; }
  .btn-arrow, .sticky-cta, .sticky-cta.is-on, .flip-btn { transition: none; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- 注文フォーム：進み具合 ---------- */
.progress {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--surface); border-block: 1.5px solid var(--text);
  box-shadow: 0 10px 20px -16px var(--shade);
}
.progress-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding-block: 10px; }
.progress-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; line-height: 1.4; }
.progress-text strong { font-size: 1rem; font-variant-numeric: tabular-nums; display: inline-block; }
.progress-text span { font-size: 0.8125rem; color: var(--text-2); }
.progress-text strong.bump { animation: bump 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes bump { 40% { transform: scale(1.12); } }
.progress-track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--bg-deep); overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.progress.is-complete .progress-track span { background: var(--mint-ink); }
.progress-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; grid-column: 2; grid-row: 1; }
.pstep {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--field-line); background: var(--surface); color: var(--text-2);
  font-size: 0.8125rem; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pstep[data-state="opt"] { border-style: dashed; }
.pstep[data-state="done"] { background: var(--mint-soft); border-color: var(--mint-ink); color: var(--mint-ink); }
.pstep[data-state="done"] .pstep-no { font-size: 0; }
.pstep[data-state="done"] .pstep-no::before { content: "✓"; font-size: 0.9375rem; }
.pstep.is-next { background: var(--accent); border-color: var(--text); color: var(--accent-ink); transform: scale(1.12); }
.fsec, .form-page input, .form-page select, .form-page textarea { scroll-margin-top: 110px; }
.fsec.is-done .fsec-no { background: var(--mint-soft); color: var(--mint-ink); }
@media (max-width: 519px) {
  .progress-in { grid-template-columns: minmax(0, 1fr); }
  .progress-steps { grid-column: 1; grid-row: auto; justify-content: space-between; }
  .pstep { width: 28px; height: 28px; }
  .fsec, .form-page input, .form-page select, .form-page textarea { scroll-margin-top: 150px; }
}

.draft-note { background: var(--accent-soft); color: var(--accent-ink); }
.draft-note-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 10px; font-size: 0.9375rem; }
.order-layout { margin-top: 20px; }

.bulk { display: grid; gap: 8px; margin-block: 16px 14px; justify-items: start; }
.bulk-btn { min-height: 48px; }
.sum-left { margin-top: 14px; font-weight: 700; font-size: 0.9375rem; }
@media (min-width: 960px) { .order-bar { display: none; } }
@media (min-width: 760px) and (max-width: 959px) { .order-bar { padding-right: 14px; } }

@media (prefers-reduced-motion: reduce) {
  .progress-track span, .pstep { transition: none; }
  .progress-text strong.bump { animation: none; }
}
.draft-note { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 0; }
