/* atoato — LP と背景色プレビュー
   色はデザインシステム「atoato（Noto Sans JP版）」に合わせる。
   レイアウトの決まり：要素を枠や角丸の箱で囲まない。区切りは余白と細い直線だけ。
   文字の決まり：見出しは Noto Sans JP 700・こげ茶。大見出しは本文の2.5倍以上。字間はすべて0.07em。本文・注記・数字は読みやすさと揃いを優先。左揃え。
   見出しの大事なことば（落書き・色・線）には、クレヨンでひいたような線を添える。 */

@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/noto-sans-jp-400.woff') format('woff'); }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/noto-sans-jp-700.woff') format('woff'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/montserrat-600.woff') format('woff'); }

:root {
  --bg: #FFFDF8;
  --soft: #FAF5E9;
  --ink: #2B2623;
  --head: #4A3A30;  /* 見出しのこげ茶 */
  --sub: #6B625B;
  --muted: #8C837B;
  --line: #E3DCCF;
  --green: #2E7D3E;
  --green-dark: #245F30;
  --pink: #F7C0BA;
  --yellow: #E6C742;
  --red: #C0503A;
  --danger: #B3261E;
  /* 文字 */
  --ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --num: 'Montserrat', 'Noto Sans JP', sans-serif;
  --body: 15px;     /* 本文 */
  --h2: 38px;       /* 大見出し（本文の約2.5倍） */
  --h3: 18px;       /* 小見出し */
  --cap: 12px;      /* 注記 */
  --side: 20px;     /* 左右の余白 */
  color-scheme: light;
}
* { box-sizing: border-box; }
/* 字間はすべて 0.07em（各要素の文字の大きさに対して。ロゴだけは別） */
*, *::before, *::after { letter-spacing: .07em; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ja);
  font-size: var(--body);
  line-height: 1.9;
  font-feature-settings: 'palt';
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.lock { overflow: hidden; }
button, input, select { font-family: inherit; color: inherit; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; color: var(--head); }
.screen-dark h1 { color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.wrap > .deco { z-index: 0; }
.wrap > :not(.deco) { position: relative; z-index: 1; }
.b { font-weight: 700; }
.small { font-size: var(--cap); line-height: 1.75; color: var(--sub); }
.page { position: relative; overflow: hidden; }
.wrap { position: relative; max-width: 350px; margin: 0 auto; }
.sec-story .wrap { max-width: 390px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.deco { position: absolute; pointer-events: none; user-select: none; -webkit-user-select: none; }
.logo { display: inline-flex; align-items: center; line-height: 0; color: inherit; text-decoration: none; }
.logo img { display: block; height: 34px; width: auto; }
.logo-28 img { height: 28px; }
.logo-48 img { height: 48px; }
.logo:hover { color: inherit; }
.num { font-family: var(--num); font-weight: 600; font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* ボタン：角のない面。文字は左、矢印やアイコンは右 */
.btn {
  height: 60px; width: 100%; padding: 0 52px; border: 0; border-radius: 0;
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 16px; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--green); color: var(--bg); }
.btn-primary:hover { background: var(--green-dark); color: var(--bg); }
/* 「うちの子の絵でためす」「この絵で申し込む」だけは角丸（ほかのボタンは角なし） */
.btn-round { border-radius: 30px; padding: 0 56px; }
/* 文字はまん中、矢印とアイコンは右端 */
.btn > svg { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); flex: none; }
.btn-arrow::after {
  content: ''; position: absolute; right: 22px; top: 50%; margin-top: -6px; flex: none; width: 22px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M0 6h20M15 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M0 6h20M15 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* 二番目の操作：線一本の上に文字 */
.btn-outline { height: 56px; padding: 0 36px; background: transparent; color: var(--ink); border-bottom: 1px solid var(--ink); }
.btn-outline:hover { color: var(--green); border-color: var(--green); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
/* 小さな操作：下線つきの文字 */
.btn-small {
  height: 44px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.btn-small:hover { color: var(--green); }
.btn-outline > svg { right: 2px; }
.btn-round > svg, .btn-round.btn-arrow::after { right: 28px; }
.icon-btn { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.link-btn { border: 0; background: none; padding: 10px 0; font-size: 13px; color: var(--sub); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; align-self: flex-start; }

/* 1. ファーストビュー */
.hero { position: relative; height: var(--hero-h, 844px); max-width: 390px; margin: 0 auto; overflow: hidden; }
.hero-cluster { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform-origin: 195px 724px; transform: translateY(var(--hero-dy, 0px)) scale(var(--hero-s, 1)); }
.hero-panel { position: absolute; object-fit: cover; }
.hero-panel-1 { left: 108px; top: 378px; width: 256px; height: 200px; transform: rotate(-5deg); box-shadow: 0 18px 32px rgba(43, 38, 35, .24); }
.hero-panel-2 { left: 20px; top: 532px; width: 192px; height: 150px; transform: rotate(6deg); box-shadow: 0 14px 26px rgba(43, 38, 35, .22); }
.hero-header { position: absolute; left: 0; top: 0; width: 100%; height: 64px; padding: 0 12px 0 var(--side); display: flex; align-items: center; justify-content: space-between; z-index: 4; }
.hero-copy { position: absolute; left: var(--side); top: 88px; width: 350px; display: flex; flex-direction: column; gap: 18px; z-index: 2; }
.hero-copy h1 { font-size: var(--hero-h1, 48px); line-height: 1.3; font-weight: 700; }
.hero-copy p { font-size: var(--body); line-height: 1.7; }
.hero-cta { position: absolute; left: 0; bottom: 0; width: 100%; height: 120px; padding: 16px var(--side) 0; background: var(--bg); display: flex; flex-direction: column; gap: 10px; z-index: 3; }
.hero-cta p { font-size: var(--cap); line-height: 1.5; color: var(--sub); text-align: center; }
.menu {
  position: absolute; top: 60px; right: 12px; z-index: 5; min-width: 220px; padding: 4px 20px; background: var(--bg);
  box-shadow: 0 16px 40px rgba(43, 38, 35, .14); display: flex; flex-direction: column;
}
.menu a { display: block; padding: 14px 0; color: var(--ink); text-decoration: none; font-size: 15px; }
.menu a + a { border-top: 1px solid var(--line); }
.menu a:hover { color: var(--green); }

/* 見出しまわり：番号＋短い線の小見出し、その下に大見出し */
.sec { position: relative; padding: 96px var(--side) 104px; overflow: hidden; }
.sec::before { content: ''; position: absolute; top: 0; left: max(var(--side), calc(50% - 175px)); right: max(var(--side), calc(50% - 175px)); height: 1px; background: var(--line); }
.sec-head { display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-size: var(--cap); font-weight: 700; line-height: 1; color: var(--green); }
.sec h2, .sec-story h2, .sec-cta h2 { font-size: var(--h2); line-height: 1.38; font-weight: 700; }
.lead { font-size: var(--body); line-height: 1.95; }

/* 見出しの大事なことばに、クレヨンでひいたような線 */
.mk { background-repeat: no-repeat; background-size: 100% .5em; background-position: 0 96%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .04em; }
.mk-y { background-image: url('../assets/marker-yellow.webp'); }
.mk-p { background-image: url('../assets/marker-pink.webp'); }
.mk-g { background-image: url('../assets/marker-green.webp'); }

/* 2. プレビュー（絵の場面は端まで。角も枠もつけない） */
.stage { position: relative; height: 340px; margin: 0 calc(var(--side) * -1); background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.chip { position: absolute; left: var(--side); top: 16px; z-index: 2; font-size: 11px; font-weight: 700; line-height: 1; color: var(--sub); }
.panel { display: block; width: 276px; height: 216px; background: var(--pink); box-shadow: 0 16px 28px rgba(43, 38, 35, .22); }
.room { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-busy, .stage-error { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 24px var(--side); background: rgba(250, 245, 233, .92); }
.stage-busy p { font-size: 14px; font-weight: 700; }
.stage-error p { font-size: 14px; line-height: 1.8; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(46, 125, 62, .2); border-top-color: var(--green); animation: spin .9s linear infinite; }
.spinner-small { width: 22px; height: 22px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.caption { font-size: var(--cap); color: var(--sub); font-variant-numeric: tabular-nums; }
.viewtabs { display: flex; gap: 20px; flex: none; }
.viewtabs button { height: 40px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.viewtabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.mine { display: flex; align-items: center; gap: 20px; }
.mine-thumb { flex: none; width: 44px; height: 44px; object-fit: cover; background: var(--soft); }
.studio { padding: 4px 0 4px 14px; border-left: 2px solid var(--muted); font-size: var(--cap); color: var(--sub); display: flex; flex-direction: column; gap: 4px; }
.studio div { display: flex; gap: 20px; }

/* サイズ：一本の線の上に3つ。えらんだものだけ太い線 */
.sizes { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--line); }
.sizes button {
  margin-top: -1px; padding: 14px 0 4px; border: 0; border-top: 2px solid transparent; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 20px; line-height: 1.2; font-weight: 700; cursor: pointer; text-align: center;
  transition: color .15s ease, border-color .15s ease;
}
.sizes button span { font-family: var(--num); font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.sizes button[aria-pressed="true"] { color: var(--ink); border-top-color: var(--ink); }
.sizes button[aria-pressed="true"] span { color: var(--sub); }
.colors { margin: 0; padding: 0; border: 0; min-width: 0; }
.colors legend { padding: 0; margin-bottom: 14px; font-size: var(--cap); font-weight: 700; color: var(--sub); }
.swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.swatches button { padding: 4px 0 0; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.swatches .dot { display: block; width: 36px; height: 36px; border-radius: 50%; transition: transform .15s ease; }
.swatches .dot.light { box-shadow: inset 0 0 0 1px #CFC7BA; }
.swatches .name { position: relative; padding-bottom: 6px; font-size: 11px; line-height: 1.4; color: var(--muted); white-space: nowrap; }
.swatches .name::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 14px; height: 2px; margin-left: -7px; background: transparent; }
.swatches button[aria-pressed="true"] .dot { transform: scale(1.12); }
.swatches button[aria-pressed="true"] .name { font-weight: 700; color: var(--ink); }
.swatches button[aria-pressed="true"] .name::after { background: var(--ink); }
.tip { display: flex; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.tip img { flex: none; width: 28px; height: 28px; margin-top: 2px; }
.tip p { font-size: 13px; line-height: 1.85; }
.tip .b { display: block; margin-bottom: 2px; font-size: 14px; }
.notes p { font-size: 13px; line-height: 1.85; color: var(--sub); }
.notes p.small { font-size: var(--cap); }

/* 価格アンケート：箱にせず、上の線と余白で区切る */
.psm { padding-top: 32px; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 18px; }
.psm-head { display: flex; flex-direction: column; gap: 12px; }
.psm-head .eyebrow { color: var(--sub); }
.psm h3 { font-size: 20px; line-height: 1.5; font-weight: 700; }
.psm-q { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 2px; font-size: 14px; line-height: 1.6; }
.psm-q > span:first-child { flex: 1; padding-bottom: 10px; }
.yen { display: flex; align-items: flex-end; gap: 6px; flex: none; }
.yen input { width: 108px; height: 44px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; font-family: var(--num); font-weight: 600; font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none; }
.yen input::placeholder { font-family: var(--ja); font-weight: 400; font-size: 13px; color: var(--muted); }
.yen i { font-style: normal; font-size: 13px; padding-bottom: 10px; }
.psm-thanks { padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.85; }

/* 3. とどくまで */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 18px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .num { position: relative; flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.steps .num img { position: absolute; left: 0; top: 0; width: 44px; height: 44px; }
.steps .num span { position: relative; }
.steps h3 { margin: 4px 0 6px; font-size: var(--h3); line-height: 1.5; font-weight: 700; }
.steps p { font-size: 14px; line-height: 1.85; }

/* 4. atoatoについて */
.sec-story { position: relative; padding: 0 0 104px; overflow: hidden; }
.story-photo { width: 100%; height: 320px; object-fit: cover; }
.story-text { padding: 56px var(--side) 0; }
.points { list-style: none; margin: 48px var(--side) 0; padding: 0; display: flex; flex-direction: column; }
.points li { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points img { flex: none; width: 40px; height: 40px; }
.points h3 { margin: 2px 0 4px; font-size: 16px; line-height: 1.6; font-weight: 700; }
.points p { font-size: 13px; line-height: 1.85; color: var(--sub); }

/* 5. サイズと価格 */
.compare { margin: 8px 0 0; padding: 0; }
.compare-boxes { display: flex; align-items: flex-end; justify-content: flex-start; gap: 14px; height: 112px; }
.compare-labels { display: flex; gap: 14px; margin-top: 10px; font-size: 13px; font-weight: 700; }
.compare figcaption { margin-top: 12px; font-size: var(--cap); color: var(--sub); }
.plans { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.plan { position: relative; padding: 22px 0 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.plan:last-child { border-bottom: 1px solid var(--line); }
.plan-rec { border-top: 2px solid var(--green); padding-top: 21px; }
.rec { font-size: 11px; font-weight: 700; line-height: 1; color: var(--green); margin-bottom: 8px; }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.plan h3 { font-size: 28px; line-height: 1.2; font-weight: 700; }
.price { font-family: var(--num); font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; text-align: right; }
.price span { font-family: var(--ja); font-size: 13px; font-weight: 400; margin-left: 3px; }
.plan-name { margin-top: 6px; font-size: 14px; line-height: 1.7; }
.plan-place { font-size: 13px; line-height: 1.7; color: var(--sub); }
.tags { margin-top: 2px; font-size: var(--cap); line-height: 1.7; color: var(--green); }
.tags span + span::before { content: '／'; margin: 0 6px; color: var(--muted); }
.note { font-size: 13px; line-height: 1.85; color: var(--sub); }

/* 6. よくある質問 */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa button {
  width: 100%; min-height: 64px; padding: 18px 0; border: 0; background: transparent; color: var(--ink); text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; line-height: 1.6; font-weight: 700; cursor: pointer;
}
.qa .ico { flex: none; color: var(--sub); }
.qa button[aria-expanded="true"] .v { display: none; }
.qa p { margin: -4px 36px 24px 0; font-size: 14px; line-height: 1.9; color: var(--sub); }

/* 7. 最後の呼びかけ（箱にせず、余白と飾りの丸だけ） */
.sec-cta { position: relative; padding: 96px var(--side) 112px; overflow: hidden; }
.sec-cta::before { content: ''; position: absolute; top: 0; left: max(var(--side), calc(50% - 175px)); right: max(var(--side), calc(50% - 175px)); height: 1px; background: var(--line); }
.cta-body { position: relative; max-width: 350px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.cta-body > *:not(.deco) { position: relative; }
.cta-body p { font-size: var(--body); line-height: 1.9; }
.cta-body .btn { margin-top: 16px; }
.cta-body p.small { font-size: var(--cap); margin-top: -8px; text-align: center; }

/* 8. フッター */
.footer { position: relative; padding: 56px var(--side) 48px; border-top: 1px solid var(--ink); }
.footer-tag { font-size: var(--cap); color: var(--sub); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.footer-links li + li { border-top: 1px solid var(--line); }
.footer-links a { display: block; padding: 13px 0; color: var(--ink); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--green); }
.copy { font-family: var(--num); font-size: 11px; font-weight: 600; color: var(--muted); }

/* 申し込み・受付番号の画面 */
.screen { position: fixed; inset: 0; z-index: 50; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); -webkit-overflow-scrolling: touch; }
.screen > * { max-width: 390px; margin-left: auto; margin-right: auto; }
.screen-header { position: relative; height: 64px; padding: 0 var(--side) 0 8px; display: flex; align-items: center; justify-content: space-between; }
.screen-header-plain { padding: 0 var(--side); }
.screen-main { position: relative; padding: 24px var(--side) 56px; }
.screen-main h1 { font-size: var(--h2); line-height: 1.38; font-weight: 700; }
.summary { display: flex; gap: 18px; align-items: center; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.summary-panel { flex: none; width: 112px; height: 88px; box-shadow: 0 8px 16px rgba(43, 38, 35, .18); }
.summary dl { margin: 0; flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; line-height: 1.6; }
.summary dt { color: var(--sub); }
.summary dd { margin: 0; }
.summary .tax { display: block; font-weight: 400; font-size: 11px; color: var(--sub); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 700; }
.req, .opt { font-size: 11px; white-space: nowrap; }
.req { color: var(--red); font-weight: 700; margin-left: 6px; }
.opt { color: var(--muted); font-weight: 400; margin-left: 6px; }
.field label .req, .field label .opt { margin-left: 0; }
.field input, .field select {
  height: 48px; width: 100%; padding: 0 2px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font-size: 16px; -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: var(--muted); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232B2623' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 32px; }
.field input:focus, .field select:focus { outline: none; border-bottom: 2px solid var(--green); }
.field input[aria-invalid="true"] { border-bottom-color: var(--danger); }
.hint { margin-top: 4px; font-size: var(--cap); line-height: 1.7; color: var(--sub); }
.field-error, .form-error { font-size: 13px; line-height: 1.7; color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.agree label { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.7; cursor: pointer; }
.agree input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--green); }
.note-sub { font-size: 13px; line-height: 1.8; color: var(--sub); }
.closed { padding-top: 24px; border-top: 1px solid var(--ink); }
.closed h2 { font-size: 22px; line-height: 1.5; font-weight: 700; }
.done-msg { font-size: 14px; line-height: 1.85; }
.receipt { padding: 24px 0 18px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.receipt-label { font-size: var(--cap); font-weight: 700; color: var(--sub); }
.receipt-num { font-family: var(--num); font-size: 44px; font-weight: 600; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.howto { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.75; }
.howto li { display: flex; gap: 12px; }
.badge { flex: none; width: 24px; height: 24px; background: center / 100% 100% no-repeat; display: flex; align-items: center; justify-content: center; font-family: var(--num); font-size: 12px; font-weight: 600; margin-top: 1px; }
.demo-note { padding: 2px 0 2px 14px; border-left: 2px solid var(--muted); font-size: var(--cap); line-height: 1.75; color: var(--sub); }

/* 切り抜きを直す */
.screen-dark { background: #1F1B19; color: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.screen-dark > * { max-width: 560px; width: 100%; }
.corners-head { padding: 18px var(--side) 10px; display: flex; flex-direction: column; gap: 4px; flex: none; }
.corners-head h1 { font-size: 22px; line-height: 1.4; font-weight: 700; }
.corners-head p { font-size: 13px; line-height: 1.6; color: #D9D2C8; }
.corners-head .corners-sub { font-size: var(--cap); color: #B8AFA5; }
.corners-stage { position: relative; flex: 1; min-height: 0; margin: 0 auto; touch-action: none; -webkit-user-select: none; user-select: none; }
.corners-stage canvas#corners-photo { position: absolute; display: block; }
.corners-stage svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.corners-stage .handle { cursor: grab; }
.loupe { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); pointer-events: none; background: #000; }
.corners-foot { flex: none; padding: 12px var(--side) calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 16px; }
.corners-preview { position: relative; flex: none; width: 88px; height: 68px; overflow: hidden; background: #2E2926; display: flex; align-items: center; justify-content: center; }
.corners-preview canvas { width: 100%; height: 100%; display: block; }
.corners-preview .spinner { position: absolute; }
.corners-actions { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.btn-small-dark { color: var(--bg); }
.btn-small-dark:hover { color: #D9D2C8; }
.btn-done { grid-column: 1 / -1; height: 52px; font-size: 16px; }

/* 保存の案内・お知らせ */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(31, 27, 25, .72); display: flex; align-items: center; justify-content: center; padding: var(--side); }
.sheet-card { width: 100%; max-width: 360px; max-height: 100%; overflow-y: auto; padding: 24px var(--side) 12px; background: var(--bg); display: flex; flex-direction: column; gap: 16px; }
.sheet-card h2 { font-size: 16px; line-height: 1.6; font-weight: 700; }
.sheet-card img { width: 100%; height: auto; -webkit-touch-callout: default; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80; transform: translateX(-50%); max-width: calc(100% - 40px); padding: 14px 22px; background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }

/* 規約・プライバシーのページ */
.doc { max-width: 680px; margin: 0 auto; padding: 24px var(--side) 88px; }
.doc header { height: 64px; display: flex; align-items: center; }
.doc h1 { font-size: var(--h2); line-height: 1.38; font-weight: 700; margin: 32px 0 12px; }
.doc h2 { font-size: var(--h3); line-height: 1.6; font-weight: 700; margin: 40px 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc p, .doc li { font-size: var(--body); line-height: 1.95; }
.doc ul { padding-left: 1.4em; margin: 8px 0; }
.doc .meta { color: var(--sub); font-size: 13px; }
.doc .todo { background: linear-gradient(transparent 60%, #FDECC8 60%); }

/* 幅の狭い画面では、長い見出しを言葉の切れ目でもう一度折り返す */
.br-narrow { display: none; }
@media (max-width: 389px) { .br-narrow { display: inline; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sizes button, .swatches .dot { transition: none; }
  .spinner { animation-duration: 2.4s; }
}
