/* なびく（美容室・業種別サンプル⑧）TOP 2026-11-14（試しの1場面 2026-11-14 に、③〜⑥ と見せ場の下を足した）
   色：感熱紙の白・墨・うすいグレー＋紫のインクだけ（髪の色を選ぶ所だけ色が増える）
   字：見出し・本文 Murecho／伝票の文字と数字 M PLUS 1 Code（どちらも自前。tools/jpfont.py） */

/* jpfont:start */
@font-face{font-family:"Murecho";src:url(../fonts/murecho-400.14e385f8.woff2) format("woff2");font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:"Murecho";src:url(../fonts/murecho-700.64ea5ab3.woff2) format("woff2");font-style:normal;font-weight:700;font-display:swap;}
@font-face{font-family:"Murecho";src:url(../fonts/murecho-900.c257c132.woff2) format("woff2");font-style:normal;font-weight:900;font-display:swap;}
@font-face{font-family:"M PLUS 1 Code";src:url(../fonts/mplus1code-400.2e2453f9.woff2) format("woff2");font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:"M PLUS 1 Code";src:url(../fonts/mplus1code-600.5ba532c2.woff2) format("woff2");font-style:normal;font-weight:600;font-display:swap;}
/* jpfont:end */

:root {
  --paper: #F5EDE3;
  --paper-2: #EBDFD1;
  --slip: #FDFAF5;
  --grey: #8C8696;
  --line: #DCCFC3;
  --ink: #1F1B26;
  --violet: #4A3A94;
  --violet-2: #6B5BB5;
  /* 見せ場の 3D の色（hair.js が読む） */
  --st-bg: #EFDCC6; --st-clear-a: 0; --st-derive: 1; --st-glass: #F6EDE2; --st-cape-l: #FFF8EE; --st-cape-d: #D8C1A6; --st-chair: #DCC8B1; --st-line: #6E5E58; --st-cut: #4A3A94;
  --vh: 1vh;
  --rcw: 252px;
  --code: "M PLUS 1 Code", ui-monospace, monospace;
}

/* 土台 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Murecho", "Hiragino Sans", sans-serif; font-weight: 400;
  line-height: 1.8; letter-spacing: .02em;
  word-break: keep-all; overflow-wrap: anywhere;
  font-feature-settings: "palt";
}
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.cl-p { display: inline-block; }
.nw { white-space: nowrap; }

/* ページ頭 */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; pointer-events: none;
}
.hd > * { pointer-events: auto; }
.hd { transition: background .3s, box-shadow .3s; }
.hd.over, .hd.solid { background: rgba(245,237,227,.985); box-shadow: 0 1px 0 rgba(60,40,25,.07); }
.hd.over { background: rgba(241,224,204,.96); } /* 見せ場の上は、窓の光の地に近い色 */
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo-j { font-weight: 900; font-size: 26px; letter-spacing: .06em; display: inline-flex; }
.logo-j span { display: inline-block; transform-origin: 50% 90%; }
.logo.sway .logo-j span { animation: sway 1.1s cubic-bezier(.3,.6,.3,1); }
.logo.sway .logo-j span:nth-child(2) { animation-delay: .09s; }
.logo.sway .logo-j span:nth-child(3) { animation-delay: .18s; }
@keyframes sway { 0% { transform: none; } 25% { transform: translateX(3px) skewX(-9deg); } 55% { transform: translateX(-2px) skewX(6deg); } 80% { transform: translateX(1px) skewX(-2deg); } 100% { transform: none; } }
.logo-e { font-family: var(--code); font-size: 11px; letter-spacing: .18em; color: var(--violet); }
.hd-nav { display: flex; align-items: center; gap: 22px; margin-right: calc(var(--rcw) + 44px); }
.hd-nav a { font-size: 14px; text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none; line-height: 1.5; }
.btn-v { background: var(--violet); color: #fff; }
.btn-o { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn:focus-visible, .chip:focus-visible, .hd-nav a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* 見せ場（スクロールで進む） */
.show { position: relative; height: calc(var(--vh) * 1560); }
.stage { position: sticky; top: 0; height: calc(var(--vh) * 100); overflow: hidden; }
#hairCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }

.cap { position: absolute; z-index: 5; will-change: opacity, transform; }
.cap-1 { left: 6vw; top: 50%; width: min(35rem, 38vw); transform: translateY(-50%); }
.card {
  right: calc(var(--rcw) + 64px); top: calc(50% + 38px); width: min(27rem, 33vw); transform: translateY(-50%); opacity: 0; visibility: hidden;
  background: var(--slip); padding: 30px 32px 26px; box-shadow: 0 12px 30px rgba(31,27,38,.10), 0 1px 0 rgba(31,27,38,.04);
}
.cap-4 { padding-top: 26px; padding-bottom: 22px; }
.grp { margin: 18px 0 0; font-family: var(--code); font-size: 12px; letter-spacing: .12em; color: var(--grey); }
.grp + .chips { margin-top: 8px; }
.cap-4 .lead { margin-top: 14px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.chip-face { display: inline-flex; align-items: center; gap: 7px; padding-left: 5px; }
.chip-face img { width: 26px; height: 26px; border-radius: 50%; display: block; background: var(--slip); object-fit: cover; }
.rsv6 { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; pointer-events: none; }
.rsv6.on { opacity: 1; transform: none; pointer-events: auto; }
.rsv6 .btn { padding: 8px 16px; font-size: 13px; }
.lbl { margin: 0 0 14px; font-family: var(--code); font-weight: 600; font-size: 14px; letter-spacing: .16em; color: var(--violet); }
.h1 { margin: 0; font-weight: 900; font-size: clamp(40px, 4.4vw, 70px); line-height: 1.22; letter-spacing: .02em; }
.h2 { margin: 0; font-weight: 900; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.3; }
.lead { margin: 22px 0 0; font-size: 15px; line-height: 2; color: #3A3542; }
.hint { margin: 30px 0 0; font-family: var(--code); font-size: 12px; letter-spacing: .12em; color: var(--violet); display: flex; align-items: center; gap: 10px; }
.hint::before { content: ""; width: 34px; height: 1px; background: currentColor; animation: hint 2.4s ease-in-out infinite; transform-origin: left; }
@keyframes hint { 0%, 100% { transform: scaleX(.3); } 50% { transform: scaleX(1); } }
.hint-sp { display: none; }
@media (hover: none) { .hint-pc { display: none; } .hint-sp { display: inline; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.chip {
  border: 1px solid var(--ink); background: transparent; border-radius: 999px;
  padding: 8px 16px; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.chip[aria-checked="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.price { margin: 18px 0 0; font-family: var(--code); font-weight: 600; font-size: 14px; color: var(--violet); }
.price small { font-size: 11px; font-weight: 400; }
.cond { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: #3A3542; }

.scroll-hint {
  position: absolute; left: 6vw; bottom: 26px; z-index: 5; margin: 0;
  font-family: var(--code); font-size: 11px; letter-spacing: .3em; color: var(--grey);
  padding-bottom: 34px;
}
.scroll-hint::after { content: ""; position: absolute; left: 0; bottom: 0; width: 1px; height: 26px; background: var(--grey); animation: sh 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes sh { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* はけ（③ カラー） */
.brush { position: absolute; left: 0; top: 0; z-index: 4; width: 230px; height: 92px; opacity: 0; pointer-events: none; overflow: visible; }
.brush .br-h { fill: var(--slip); stroke: #6B6475; stroke-width: 1.2; stroke-linejoin: round; }
.brush .br-f { fill: #CFCAD3; stroke: #6B6475; stroke-width: 1.2; }
.brush .br-t { fill: #857A72; stroke: #6B6475; stroke-width: 1; stroke-linejoin: round; }
.brush .br-l { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1; }

/* はさみ・擬音 */
.scissors { position: absolute; left: 0; top: 0; z-index: 4; width: 196px; height: 98px; opacity: 0; pointer-events: none; overflow: visible; }
.scissors .bl path:first-child { fill: var(--slip); stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.scissors .bl path:last-child { fill: none; stroke: var(--ink); stroke-width: 4.2; stroke-linecap: round; }
.scissors .bl circle { fill: none; stroke: var(--ink); stroke-width: 3.6; }
.scissors .pin { fill: var(--violet); }
.sfx { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.sfx span, .sfx-print {
  position: absolute; font-family: var(--code); font-weight: 600; font-size: 24px; letter-spacing: .08em; color: var(--violet);
  white-space: nowrap; animation: sfx 1s cubic-bezier(.2,.8,.2,1) forwards; pointer-events: none;
  text-shadow: 0 0 1px var(--slip), 2px 0 0 var(--slip), -2px 0 0 var(--slip), 0 2px 0 var(--slip), 0 -2px 0 var(--slip),
    2px 2px 0 var(--slip), -2px 2px 0 var(--slip), 2px -2px 0 var(--slip), -2px -2px 0 var(--slip), 0 3px 8px rgba(31,27,38,.18);
}
.sfx-print { position: fixed; z-index: 46; font-size: 18px; }
.fly { position: fixed; z-index: 45; margin: 0; pointer-events: none; transition: transform .6s cubic-bezier(.5,0,.2,1), opacity .6s ease-in; }
@keyframes sfx { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -14px) scale(1.06); } 100% { opacity: 0; transform: translate(-50%, -34px) scale(1); } }

/* 伝票（PC は右、スマホは下の帯から） */
.rc { position: fixed; top: 0; right: 28px; z-index: 31; width: var(--rcw); pointer-events: none; }
.rc-slot {
  position: relative; z-index: 2; height: 16px; margin: 66px -10px 0; border-radius: 8px;
  background: linear-gradient(#2A2531, #17141C); box-shadow: 0 2px 0 rgba(0,0,0,.15);
}
.rc-paper {
  position: relative; z-index: 1; margin-top: -7px; padding: 26px 20px 30px;
  background: var(--slip); color: var(--violet); font-family: var(--code); font-size: 12px; line-height: 1.75; letter-spacing: .04em;
  box-shadow: 0 10px 24px rgba(31,27,38,.10), 0 1px 0 rgba(31,27,38,.04);
  pointer-events: auto;
  transition: transform .5s cubic-bezier(.3,.7,.2,1);
}
.rc-paper::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: linear-gradient(-45deg, transparent 6px, var(--slip) 0) 0 0 / 12px 8px repeat-x,
              linear-gradient(45deg, transparent 6px, var(--slip) 0) 0 0 / 12px 8px repeat-x;
}
.rc-name { margin: 0; font-family: "Murecho", sans-serif; font-weight: 900; font-size: 20px; letter-spacing: .12em; text-align: center; color: var(--ink); }
.rc-sub { margin: 0 0 12px; font-size: 10px; letter-spacing: .14em; text-align: center; }
.rc-row { display: flex; justify-content: space-between; gap: 8px; margin: 0; white-space: nowrap; }
.rc-head { padding-bottom: 10px; border-bottom: 1px dashed currentColor; }
.rc-lines { list-style: none; margin: 0; padding: 0; }
.rc-lines li { overflow: hidden; max-height: 0; transition: max-height .55s steps(6, end), opacity .2s; }
.rc-lines li.in { max-height: 100px; }
.rc-lines li > div { padding: 10px 0 0; }
.rc-it { margin: 0; white-space: normal; word-break: break-all; color: var(--ink); } /* 感熱紙のように、幅の端で折り返す */
.rc-it-s { display: flex; justify-content: flex-end; gap: 16px; margin: 0; white-space: nowrap; }
.rc-empty { margin: 12px 0 0; font-size: 11px; text-align: center; color: var(--grey); min-height: 1.75em; }
.rc.empty .rc-sum { display: none; }
.rc-sum { margin-top: 12px; padding-top: 10px; border-top: 1px dashed currentColor; }
.rc-total { font-size: 13px; }
.rc-total b { font-size: 18px; font-weight: 600; color: var(--ink); }
.rc-sum small { font-size: 10px; }
.rc-note { margin: 8px 0 0; font-size: 11px; line-height: 1.7; color: #5E5868; white-space: normal; }
.rc-perf { margin-top: 16px; border-top: 2px dotted var(--line); }
.rc-stub { display: flex; justify-content: space-between; height: 26px; margin: 8px 0 -8px; overflow: hidden; font-size: 10px; letter-spacing: .14em; color: var(--grey); transition: height .35s .15s, margin .35s .15s, opacity .15s; }
.rc.torn .rc-stub { height: 0; margin: 0; opacity: 0; }
.rc.torn .rc-perf { border-top-color: transparent; margin-top: 4px; }
.rc-fall { position: fixed; z-index: 44; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 20px 22px; box-sizing: border-box; pointer-events: none;
  background: var(--slip); color: var(--grey); font-family: var(--code); font-size: 10px; letter-spacing: .14em;
  -webkit-mask: linear-gradient(-45deg, transparent 5px, #000 0) 0 0 / 10px 100% repeat-x, linear-gradient(45deg, transparent 5px, #000 0) 0 0 / 10px 100% repeat-x;
  mask: linear-gradient(-45deg, transparent 5px, #000 0) 0 0 / 10px 100% repeat-x, linear-gradient(45deg, transparent 5px, #000 0) 0 0 / 10px 100% repeat-x;
  box-shadow: 0 6px 14px rgba(31,27,38,.12); transition: transform 1.1s cubic-bezier(.45,0,.7,.6), opacity 1.1s ease-in; }
.rc-fall.go { transform: translate(-30px, 260px) rotate(-16deg); opacity: 0; }
.rc-close { display: none; }
.rc-paper.feed { animation: feed .9s steps(9, end); }
@keyframes feed { 0% { transform: translateY(-22px); } 100% { transform: translateY(0); } }

.rcbar { display: none; }
.rcbar-open, .rcbar-go { display: none; }

/* 見せ場の下の段（PC は右の伝票のぶんをあける） */
.sec { --cw: 940px; /* 段の中身の幅（右端をそろえる） */ position: relative; z-index: 2; background: var(--paper); padding: 120px calc(var(--rcw) + 70px) 40px 6vw; }
.sec + .sec { padding-top: 110px; }
.sec-h { margin: 0; font-weight: 900; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.3; }
.sec-lead { margin: 18px 0 0; max-width: 36em; font-size: 15px; line-height: 2; color: #3A3542; }

/* メニューと料金 */
.mt { width: 100%; max-width: var(--cw); margin: 44px 0 0; border-collapse: collapse; font-family: var(--code); }
.mt th, .mt td { padding: 16px 0; border-bottom: 1px dashed #C9BBAE; text-align: left; vertical-align: baseline; font-weight: 400; }
.mt thead th { padding: 0 0 10px; font-size: 11px; letter-spacing: .14em; color: var(--grey); border-bottom: 1px solid var(--ink); }
.mt tbody th { font-family: "Murecho", sans-serif; font-size: 16px; font-weight: 700; color: var(--ink); }
.mt tbody th small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: #5E5868; }
.mt-t { width: 7.5em; font-size: 13px; color: #5E5868; white-space: nowrap; }
.mt-p { width: 7.5em; text-align: right !important; font-size: 16px; font-weight: 600; color: var(--violet); white-space: nowrap; }
.mt thead th:last-child { text-align: right; }
.mt-note { margin: 18px 0 0; font-size: 13px; color: #3A3542; }

/* スタイリスト */
.st-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 44px 0 0; max-width: var(--cw); }
.st { background: var(--slip); padding: 26px 24px 24px; box-shadow: 0 10px 24px rgba(31,27,38,.07); display: flex; flex-direction: column; }
.st-head { display: flex; align-items: center; gap: 16px; }
.st-photo { display: block; width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin: -26px -24px 22px; background: var(--paper-2); } /* 働いている姿（11/15〜。正面の顔写真は「遺影みたい」とオーナー） */
.st-name { margin: 0; font-weight: 900; font-size: 24px; letter-spacing: .06em; line-height: 1.3; }
.st-name small { margin-left: 8px; font-family: var(--code); font-size: 11px; font-weight: 400; letter-spacing: .12em; color: var(--violet); }
.st-good { margin: 4px 0 0; font-family: var(--code); font-size: 12px; color: #5E5868; }
.qa { margin: 20px 0 0; flex: 1; }
.qa dt { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed #DCCFC3; font-weight: 700; font-size: 14px; }
.qa dt::before { content: "Q"; margin-right: 8px; font-family: var(--code); font-weight: 600; color: var(--violet); }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: 6px 0 0; font-size: 14px; line-height: 1.9; color: #3A3542; }
.qa dd::before { content: "A"; margin-right: 8px; font-family: var(--code); font-weight: 600; color: var(--grey); }
.st-pick { margin-top: 22px; align-self: flex-start; padding: 8px 18px; font-size: 13px; }

/* スタイル */
.sy-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 26px; margin: 44px 0 0; max-width: var(--cw); }
.sy { margin: 0; }
.sy img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--paper-2); }
.sy figcaption { position: relative; margin: -22px 14px 0; padding: 16px 18px 18px; background: var(--slip); box-shadow: 0 8px 20px rgba(31,27,38,.09); font-family: var(--code); }
.sy-name { margin: 0; font-family: "Murecho", sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); }
.sy-menu { margin: 4px 0 0; font-size: 12px; color: #5E5868; }
.sy-price { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--violet); }
.sy-price small { font-size: 10px; font-weight: 400; }
.sec-note { margin: 8px 0 0; font-size: 13px; color: #5E5868; }
.sy .btn { margin-top: 12px; padding: 7px 16px; font-size: 13px; font-family: "Murecho", sans-serif; }

/* はじめての方へ */
.fv { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: var(--cw); }
.fv li { border-top: 2px solid var(--ink); padding-top: 18px; }
.fv-n { margin: 0; font-family: var(--code); font-weight: 600; font-size: 13px; letter-spacing: .14em; color: var(--violet); }
.fv-h { margin: 6px 0 0; font-weight: 900; font-size: 20px; }
.fv-h small { margin-left: 8px; font-family: var(--code); font-size: 11px; font-weight: 400; color: var(--grey); }
.fv li > p:last-child { margin: 10px 0 0; font-size: 14px; line-height: 1.95; color: #3A3542; }
.rules { margin: 40px 0 0; max-width: var(--cw); }
.rules > div { display: grid; grid-template-columns: 13em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed #C9BBAE; }
.rules dt { font-weight: 700; font-size: 14px; }
.rules dd { margin: 0; font-size: 14px; line-height: 1.9; color: #3A3542; }

/* お店とアクセス */
.ac { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 32px; margin: 44px 0 0; max-width: var(--cw); }
.ac figure { margin: 0; }
.seats, .map { display: block; width: 100%; height: auto; background: var(--slip); }
.seats .w { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.seats .mir rect { fill: #EFE6DA; stroke: var(--ink); stroke-width: 1.2; }
.seats .ch circle { fill: var(--slip); stroke: var(--violet); stroke-width: 1.6; }
.seats .sh rect { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 3; }
.seats .dr { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.seats text, .map text { font-family: var(--code); font-size: 12px; fill: #5E5868; text-anchor: middle; }
.map text { font-size: 14px; }
.map .tl { text-anchor: start; }
.ac-tb { margin: 0; font-size: 14px; }
.ac-tb > div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #C9BBAE; }
.ac-tb dt { font-family: var(--code); font-size: 12px; color: var(--grey); padding-top: 2px; }
.ac-tb dd { margin: 0; line-height: 1.8; }
.ac-map { grid-column: 1 / -1; max-width: 560px; }
.map .rail { fill: none; stroke: var(--ink); stroke-width: 6; }
.map .rail-t { fill: none; stroke: var(--slip); stroke-width: 3; stroke-dasharray: 14 14; }
.map .stn { fill: var(--slip); stroke: var(--ink); stroke-width: 1.5; }
.map .rd { fill: none; stroke: #C9BBAE; stroke-width: 10; stroke-linecap: square; }
.map .shop-st { fill: none; stroke: #E3D3C2; stroke-width: 10; }
.map .route { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-dasharray: 6 5; }
.map .pin circle:first-child { fill: var(--violet); }
.map .pin circle:last-child { fill: var(--slip); }
.map .mt-p2 { font-family: "Murecho", sans-serif; font-weight: 900; font-size: 15px; fill: var(--ink); text-anchor: start; }

/* 予約の3つ */
#reserve { padding-bottom: 120px; }
.rv-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 44px 0 0; max-width: var(--cw); }
.rv { background: var(--slip); padding: 26px 24px; box-shadow: 0 10px 24px rgba(31,27,38,.07); display: flex; flex-direction: column; }
.rv-h { margin: 0; font-weight: 900; font-size: clamp(16px, 1.3vw, 20px); } /* 「ホットペッパー」と「ビューティー」のあいだに幅のない区切り（U+200B）。折れるならそこで */
.rv-w { margin: 4px 0 0; font-family: var(--code); font-size: 12px; color: var(--violet); }
.rv > p:not([class]) { margin: 12px 0 0; flex: 1; font-size: 14px; line-height: 1.9; color: #3A3542; }
.rv .btn { margin-top: 18px; align-self: flex-start; }

/* フッター（伝票の最後の1行） */
.ft { position: relative; z-index: 2; background: var(--paper); padding: 54px calc(var(--rcw) + 70px) 70px 6vw; border-top: 1px dashed #C9BBAE; text-align: center; font-family: var(--code); color: var(--violet); }
.ft-thanks { margin: 0; font-size: 13px; letter-spacing: .14em; }
.ft-name { margin: 18px 0 0; font-family: "Murecho", sans-serif; font-weight: 900; font-size: 22px; letter-spacing: .12em; color: var(--ink); }
.ft-name span { margin-left: 8px; font-family: var(--code); font-weight: 400; font-size: 11px; letter-spacing: .18em; color: var(--violet); }
.ft-info { margin: 6px 0 0; font-size: 12px; }
.barcode { display: block; width: 240px; height: 40px; margin: 22px auto 0; }
.barcode rect { fill: var(--ink); }
.ft-credit { margin: 14px 0 0; font-size: 11px; color: var(--grey); }

/* LINE の送る文（見本） */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(31,27,38,.42); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.sheet.on { opacity: 1; visibility: visible; }
.sheet-in { width: min(420px, 100%); max-height: calc(var(--vh) * 88); overflow: auto; background: var(--slip); padding: 26px 24px 22px; box-shadow: 0 20px 50px rgba(31,27,38,.3); }
.sheet-h { margin: 0; font-weight: 900; font-size: 20px; }
.sheet-t { margin: 16px 0 0; padding: 16px; background: var(--paper); font-family: var(--code); font-size: 13px; line-height: 1.85; white-space: pre-wrap; color: var(--ink); }
.sheet-b { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }

/* 知らせ */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 13px; white-space: nowrap;
  transition: opacity .25s, transform .25s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* スマホ */
@media (max-width: 760px) {
  :root { --rcw: 0px; }
  .hd { padding: 14px 18px; }
  .logo-j { font-size: 22px; }
  .logo-e { font-size: 9px; }
  .hd-nav { gap: 14px; margin-right: 0; }
  .hd-nav a:not(.btn) { display: none; }
  .btn { padding: 8px 16px; font-size: 13px; }

  .cap-1, .card { left: 22px; right: 22px; top: calc(var(--vh) * 11); width: auto; transform: none; }
  .card { left: 12px; right: 12px; top: calc(var(--vh) * 9.5); padding: 18px 18px 16px; }
  .cap-4 { padding-top: 16px; padding-bottom: 14px; }
  .cap-4 .lead, .cap-3 .lead { display: none; }
  .cap-3 .chips { gap: 5px; }
  .cap-3 .chip { padding: 5px 10px; font-size: 12px; }
  .cap-3 .sw { width: 10px; height: 10px; margin-right: 5px; }
  .rc-close { display: block; position: absolute; top: 10px; right: 10px; border: 0; background: none; padding: 6px 8px; font-family: var(--code); font-size: 11px; color: var(--grey); }
  .rcbar.flash { animation: flash 1.2s ease-out; }
  .grp { margin-top: 10px; font-size: 11px; }
  .grp + .chips { margin-top: 6px; }
  .cap-4 .price { margin-top: 6px; }
  .rsv6 { margin-top: 12px; gap: 6px; }
  .rsv6 .btn { padding: 7px 12px; font-size: 12px; }
  .chip-face img { width: 22px; height: 22px; }
  .brush { width: 130px; height: 52px; }
  .h1 { font-size: 36px; }
  .h2 { font-size: 28px; }
  .lead { margin-top: 12px; font-size: 13px; line-height: 1.85; }
  .hint { margin: 14px 0 0; }
  .chips { margin-top: 14px; gap: 6px; }
  .chip { padding: 6px 12px; font-size: 13px; }
  .price { margin-top: 10px; font-size: 13px; }
  .scroll-hint { display: none; }
  .scissors { width: 132px; height: 66px; }
  .sfx span { font-size: 19px; }
  .sfx-print { font-size: 16px; }
  .sec { padding: 84px 20px 20px; }
  .sec + .sec { padding-top: 76px; }
  .sec-lead { font-size: 14px; }
  .mt { margin-top: 28px; }
  .mt thead { display: none; }
  .mt tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 14px 0; border-bottom: 1px dashed #C9BBAE; }
  .mt th, .mt td { padding: 0; border: 0; }
  .mt tbody th { grid-column: 1; grid-row: 1 / span 2; font-size: 15px; }
  .mt-t { grid-column: 2; text-align: right; width: auto; font-size: 12px; }
  .mt-p { grid-column: 2; grid-row: 1; width: auto; font-size: 15px; }
  .st-list, .fv, .rv-list { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
  .st { padding: 22px 18px 20px; }
  .st-photo { width: calc(100% + 36px); margin: -22px -18px 18px; }
  .sy-list { grid-template-columns: 1fr; gap: 26px; margin-top: 28px; }
  .rules > div { grid-template-columns: 1fr; gap: 2px; }
  .ac { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
  #reserve { padding-bottom: 60px; }

  .rc { z-index: 25; top: auto; bottom: 0; left: 0; right: 0; width: auto; padding: 0 18px calc(78px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .45s cubic-bezier(.3,.7,.2,1); }
  .rc.open { transform: translateY(0); pointer-events: auto; }
  .rc-slot { display: none; }
  .rc-paper { margin: 0 auto; max-width: 340px; box-shadow: 0 -8px 30px rgba(31,27,38,.16); }

  .rcbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 26;
    display: flex; align-items: stretch; height: 54px; border-radius: 14px; overflow: hidden;
    background: var(--slip); box-shadow: 0 6px 22px rgba(31,27,38,.16);
    transform: translateY(140%); transition: transform .45s cubic-bezier(.3,.7,.2,1);
  }
  .rcbar.on { transform: translateY(0); }
  .rcbar.on.away { transform: translateY(140%); }
  .rcbar-open {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 14px; border: 0; background: none;
    color: var(--violet); font-family: var(--code); font-size: 12px; text-align: left;
  }
  .rcbar-go { display: flex; align-items: center; padding: 0 16px; background: var(--violet); color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
  .rcbar-l { font-weight: 600; letter-spacing: .14em; padding-right: 12px; border-right: 1px dashed currentColor; }
  .rcbar-m { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
  .rcbar-r { white-space: nowrap; font-weight: 600; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
  .rcbar-t { font-size: 10px; font-weight: 400; }
  .rcbar-r small { font-size: 9px; font-weight: 400; }
  .rcbar-open::after { content: "▲"; margin-left: 2px; font-size: 9px; color: var(--violet); }
  .rcbar-open[aria-expanded="true"]::after { content: "▼"; }
  .ft { padding: 44px 20px calc(96px + env(safe-area-inset-bottom)); }
  .hd-nav .btn { padding: 8px 16px; font-size: 13px; }
}
/* スマホ：押す所を 44px 以上に（11/15 評価係：⑥ の予約・担当・スタイルのボタン・伝票の「とじる」が 31〜37px だった）。チップは見た目を変えず、押せる所だけ上下に広げる */
@media (max-width: 760px) {
  .btn { min-height: 44px; } /* ページ頭の「予約する」・この人を伝票に・予約の段のボタンも */
  .rc-close { min-width: 44px; min-height: 44px; }
  .chip { position: relative; }
  .chip::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
}
/* 小さいスマホ（読み込み時の高さ 720px 以下＝site.js が html に .short）：④ ⑥ の札から短い説明の文を外して、髪の場所を広げる（11/15 評価係：375×667 で人が幅 約60px になった）。料金と条件は残す。
   CSS の max-height で決めると、iPhone の Safari でツールバーの出入りのたびに札が変わるので、固定した高さで決める */
@media (max-width: 760px) {
  .short .cap-4 .lead, .short .cap-6 .cond { display: none; }
  .short .cap-6 .lead .cl-p:not(:last-child) { display: none; } /* ⑥ は「指名料はかかりません。」だけ残す（担当を選ぶ所のそばの条件） */
  .short .cap-6 .h2 { font-size: 24px; }
  .short .cap-4 .h2 { font-size: 24px; }
  .short .cap-4 .grp-perm { display: none; } /* 「パーマ」の見出し：チップの名前（パーマなし・毛先だけゆるく…）でわかる */
  .short .cap-4 .chip { padding: 5px 10px; font-size: 12px; } /* 3つを1段に */
  .short .cap-4 .chip::after { top: -7px; bottom: -7px; } /* 見た目は約30px、押せる所は 44px */
  .short .cap-4 .cond { font-size: 11px; line-height: 1.55; }
}

@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--violet), 0 6px 22px rgba(31,27,38,.16); } 100% { box-shadow: 0 6px 22px rgba(31,27,38,.16); } }

#colorChips.try .chip[aria-checked="false"] .sw { animation: swTry .9s ease-out both; }
#colorChips.try .chip:nth-child(1) .sw { animation-delay: 0.50s; }
#colorChips.try .chip:nth-child(2) .sw { animation-delay: 0.62s; }
#colorChips.try .chip:nth-child(3) .sw { animation-delay: 0.74s; }
#colorChips.try .chip:nth-child(4) .sw { animation-delay: 0.86s; }
#colorChips.try .chip:nth-child(5) .sw { animation-delay: 0.98s; }
#colorChips.try .chip:nth-child(6) .sw { animation-delay: 1.10s; }
#colorChips.try .chip:nth-child(7) .sw { animation-delay: 1.22s; }
@keyframes swTry { 0%, 100% { transform: none; } 45% { transform: scale(1.5); box-shadow: 0 0 0 3px rgba(74,58,148,.18); } }

/* 見せ場の地：窓の光（11/15 オーナーが選んだ「h」）。3D の地は透かし（--st-clear-a: 0）、うしろに暖かい光、上に窓枠の影を重ねる（人とケープの上にも落ちる）。
   スクロールで午後 → 夕方（hair.js が --sun 0→1 を書く。来てから帰るまで約3時間20分）：光の中心が左下へ・色が橙に・影が長く */
.stage { --sun: .35; } /* 始まりは午後の遅め（11/15 評価係：最初の画面がいちばん淡かった）。hair.js が 0.35 → 1 を書く */
.stage::before { content: ""; position: absolute; inset: -40px; pointer-events: none;
  background: radial-gradient(ellipse 72% 92% at calc(80% - var(--sun, 0) * 24%) calc(20% + var(--sun, 0) * 12%),
    color-mix(in srgb, #FFEAC6, #FFBE84 calc(var(--sun, 0) * 100%)) 0%,
    color-mix(in srgb, #F7DFC1, #F1BF95 calc(var(--sun, 0) * 100%)) 42%,
    color-mix(in srgb, #DDBC99, #C9966F calc(var(--sun, 0) * 100%)) 100%); }
.stage::after { content: ""; position: absolute; inset: -12% -30%; z-index: 2; pointer-events: none; mix-blend-mode: multiply; will-change: transform;
  background:
    linear-gradient(100deg, transparent 0 13%, rgba(120,84,56,.31) 14.6% 17.4%, transparent 19% 40%, rgba(120,84,56,.31) 41.6% 44.4%, transparent 46% 66%, rgba(120,84,56,.24) 67.4% 70%, transparent 71.6%),
    linear-gradient(7deg, transparent 0 50%, rgba(120,84,56,.21) 51.4% 54%, transparent 55.6%),
    radial-gradient(ellipse 80% 75% at 55% 45%, transparent 55%, rgba(110,76,50,.2) 100%); /* 影は濃いめ（11/15 評価係：日なたと影の差が約7%で、縞の壁紙に見えた） */
  transform: translateX(calc(var(--sun, 0) * -9%)) skewX(calc(var(--sun, 0) * -16deg));
  opacity: calc((.8 + var(--sun, 0) * .2) * var(--shd, 1)); } /* --shd：③ のあいだだけ 0.5（hair.js）。髪の上の横の影が、はけの境目に見えた */
.ft { background: linear-gradient(180deg, #EFDCC6 0, #E6C3A2 100%); } /* フッター：閉店の時刻の色（午後 → 夕方の流れを閉じる） */
.ft-credit { color: #5E5868; }
/* 見せ場の下へ、窓の光を少し持ち越す（11/15 評価係：見せ場を抜けると、レシートの地だけになった）。メニューの段の上は夕方の色と窓の影 → 紙の色へ。スタイリストの段は夕方の色へ寄せる */
#menu { background:
    linear-gradient(180deg, rgba(245,237,227,0) 0, rgba(245,237,227,0) 60px, #F5EDE3 300px) 0 0 / 100% 300px no-repeat,
    linear-gradient(118deg, transparent 0 22%, rgba(120,84,56,.11) 24% 27%, transparent 29% 56%, rgba(120,84,56,.11) 58% 61%, transparent 63%) 0 0 / 100% 300px no-repeat, /* 窓の影は見出しのまわりだけ・見せ場の終わりと同じ斜め（縦の帯だと、表の上の汚れに見えた） */
    linear-gradient(180deg, #F1CFAD 0, #F3DCC4 160px, #F5EDE3 300px) 0 0 / 100% 300px no-repeat, /* 3つの層は同じ 300px で終える（長さがずれると横の境目が出た） */
    var(--paper); }
#staff { background: linear-gradient(180deg, var(--paper) 0, #F3E2CF 45%, #F0D9C1 100%); }

@media (prefers-reduced-motion: reduce) {
  #colorChips.try .sw { animation: none; }
  .stage::after { transform: none; }
  .hint::before, .scroll-hint::after, .logo.sway .logo-j span { animation: none; }
  .rc-lines li { transition: none; }
}
