/* カミヨヤク — HAKUA 北堀江 公式予約アプリ
   トークン：純白 × グレージュ × 墨。角丸なし・影なし・1px の罫線で組む雑誌的なサロンUI */
:root {
  --white: #FFFFFF;
  --paper: #F6F4F0;          /* 沈んだ面 */
  --greige: #DDD6CC;         /* グレージュの面 */
  --greige-2: #C9BFB2;       /* 帯の濃い段 */
  --greige-3: #A89C8D;       /* 線・装飾のみ */
  --ink: #111111;            /* 文字・主ボタン */
  --ink-2: #47423C;          /* 副文字 9.6:1 */
  --taupe: #675D52;          /* キャプション 6.3:1 */
  --ok: #2E5546;             /* 空きの印 */
  --alert: #8E2F22;
  --line: #111111;
  --hair: rgba(17, 17, 17, .14);

  --ff-logo: "Italiana", "Bodoni Moda", serif;
  --ff-num: "Bodoni Moda", "Zen Old Mincho", serif;
  --ff-head: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ff-body: "Zen Kaku Gothic Antique", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;

  --g: 20px;
  --bar-h: 52px;
  --tab-h: 62px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .7, 0, 1);
  --t: 240ms;
  --t-push: 380ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.75;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.num { font-family: var(--ff-num); font-variant-numeric: lining-nums tabular-nums; }
.nw { white-space: nowrap; }
.kw { word-break: keep-all; overflow-wrap: anywhere; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- 端末の枠 ---------- */
.device {
  position: relative;
  height: 100vh; height: 100dvh;
  max-width: 430px; margin: 0 auto;
  overflow: hidden; background: var(--white); isolation: isolate;
}
@media (min-width: 600px) {
  body { background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(17, 17, 17, .06) 79px 80px), #E7E1D8; }
  .device { border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); }
}
.stage { position: absolute; inset: 0; }
.boot-fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 32px; text-align: center; color: var(--ink-2); }
.boot-fallback__title { font-family: var(--ff-logo); font-size: 34px; color: var(--ink); letter-spacing: .2em; }
.noscript { padding: 24px; }

/* ---------- 画面 ---------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--white); }
.scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }
.has-tabbar .screen .scroll { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 8px); }
.has-tabbar .screen .dock { bottom: calc(var(--tab-h) + var(--safe-b)); }
.spacer { height: 96px; }

/* 遷移 */
@keyframes inPush { from { transform: translateX(100%); } to { transform: none; } }
@keyframes outPush { to { transform: translateX(-28%); opacity: .6; } }
@keyframes inPop { from { transform: translateX(-28%); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes outPop { to { transform: translateX(100%); } }
@keyframes inFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes outFade { to { opacity: 0; } }
@keyframes inNext { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes inPrev { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.in-push { animation: inPush var(--t-push) var(--ease) both; z-index: 2; box-shadow: -1px 0 0 var(--ink); }
.out-push { animation: outPush var(--t-push) var(--ease) both; }
.in-pop { animation: inPop var(--t-push) var(--ease) both; }
.out-pop { animation: outPop var(--t-push) var(--ease) both; z-index: 2; box-shadow: -1px 0 0 var(--ink); }
.in-fade { animation: inFade var(--t) var(--ease) both; z-index: 2; }
.out-fade { animation: outFade 160ms linear both; }
.in-swipe-next { animation: inNext var(--t) var(--ease) both; z-index: 2; }
.in-swipe-prev { animation: inPrev var(--t) var(--ease) both; z-index: 2; }
.out-swipe-next, .out-swipe-prev { animation: outFade 140ms linear both; }

/* ---------- 上のバー ---------- */
.bar {
  flex: none; position: relative; z-index: 3;
  height: calc(var(--bar-h) + var(--safe-t)); padding: var(--safe-t) 8px 0 var(--g);
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border-bottom: 1px solid transparent;
  transition: border-color var(--t) linear;
}
.bar.is-scrolled { border-bottom-color: var(--ink); }
.bar--push, .bar--flow { padding-left: 4px; }
.brand { display: flex; align-items: baseline; gap: 10px; min-height: 44px; align-items: center; }
.brand__logo { font-family: var(--ff-logo); font-size: 25px; letter-spacing: .32em; line-height: 1; }
.brand__branch { font-family: var(--ff-head); font-size: 12px; letter-spacing: .2em; color: var(--ink-2); }
.bar__mini {
  position: absolute; left: 50%; top: calc(var(--safe-t) + var(--bar-h) / 2); transform: translate(-50%, -30%);
  font-family: var(--ff-head); font-weight: 600; font-size: 15px; opacity: 0; transition: opacity var(--t), transform var(--t) var(--ease); pointer-events: none;
}
.bar.is-scrolled .bar__mini { opacity: 1; transform: translate(-50%, -50%); }
.bar--home .bar__mini { display: none; }
.bar__title { flex: 1; text-align: center; font-family: var(--ff-head); font-weight: 600; font-size: 16px; letter-spacing: .06em; line-height: 1.3; }
.bar__sp { width: 44px; flex: none; margin-left: auto; }
.bar--root .iconbtn, .bar--root .bar__sp { margin-left: auto; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; flex: none; transition: transform 120ms; }
.iconbtn:active { transform: scale(.88); }

.bigtitle { padding: 6px var(--g) 18px; }
.eyebrow { font-family: var(--ff-num); font-style: italic; font-size: 15px; letter-spacing: .02em; color: var(--ink-2); line-height: 1.3; }
.h1 { font-family: var(--ff-head); font-weight: 600; font-size: 30px; line-height: 1.35; letter-spacing: .04em; font-feature-settings: "palt"; margin-top: 2px; }
.h2 { font-family: var(--ff-head); font-weight: 600; font-size: 22px; line-height: 1.4; letter-spacing: .04em; font-feature-settings: "palt"; }

/* ---------- ボタン ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; width: 100%;
  font-size: 15px; font-weight: 700; letter-spacing: .08em; text-align: center; word-break: keep-all;
  transition: transform 120ms var(--ease), background-color 160ms, color 160ms;
}
.btn:active { transform: scale(.98); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:active { background: #2A2724; }
.btn--line { border: 1px solid var(--ink); background: var(--white); }
.btn--line:active { background: var(--paper); }
.btn--text { min-height: 44px; text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.btn--s { min-height: 44px; font-size: 14px; padding: 0 14px; width: auto; }
.btn[aria-disabled="true"] { background: var(--greige); color: var(--ink); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.shake { animation: shake 320ms linear; }

/* ---------- タブバー ---------- */
.tabbar {
  position: absolute; z-index: 10; left: 0; right: 0; bottom: 0;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr;
  background: var(--white); border-top: 1px solid var(--ink);
}
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; letter-spacing: .04em; color: var(--ink-2); transition: color var(--t);
}
.tab .ic { width: 23px; height: 23px; transition: transform 160ms var(--ease); }
.tab:active .ic { transform: scale(.86); }
.tab::before { content: ""; position: absolute; top: -1px; left: 50%; width: 0; height: 3px; background: var(--ink); transform: translateX(-50%); transition: width var(--t) var(--ease); }
.tab.is-on { color: var(--ink); font-weight: 700; }
.tab.is-on::before { width: 28px; }
.tab--book { background: var(--ink); color: var(--white); margin: -1px 0 0; }
.tab--book::before { display: none; }
.tab--book:active { background: #2A2724; }

/* ---------- 下に固定のボタン ---------- */
.dock {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 12px var(--g) calc(12px + var(--safe-b)); background: var(--white); border-top: 1px solid var(--ink);
}

/* ---------- 引っぱって更新 ---------- */
.ptr { height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; transition: height 220ms var(--ease); }
.ptr__line { width: 1px; height: 18px; background: var(--ink); transform-origin: top; transition: transform 200ms; }
.ptr.is-ready .ptr__line { transform: scaleY(1.8); }
.ptr__txt { font-size: 12px; color: var(--ink-2); padding-bottom: 8px; }

/* ---------- サロン ---------- */
.cover { position: relative; margin: 0 var(--g); }
.cover__img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 30%; }
.cover__band { position: relative; margin: -46px 0 0 28px; padding: 16px 18px 14px; background: var(--white); border: 1px solid var(--ink); }
.cover__en { font-family: var(--ff-num); font-style: italic; font-size: 15px; color: var(--ink-2); line-height: 1.3; }
.cover__ja { font-family: var(--ff-head); font-weight: 600; font-size: 23px; line-height: 1.45; letter-spacing: .06em; font-feature-settings: "palt"; }

.nextcard {
  position: relative; display: grid; gap: 2px; margin: 20px var(--g) 0; padding: 16px 48px 16px 18px;
  background: var(--ink); color: var(--white); transition: transform 140ms var(--ease);
}
.nextcard:active { transform: scale(.985); }
.nextcard__lbl { font-size: 11px; letter-spacing: .24em; font-weight: 700; }
.nextcard__date { display: flex; align-items: baseline; gap: 10px; }
.nextcard__date .num { font-size: 34px; line-height: 1.1; }
.nextcard__wk { font-family: var(--ff-num); font-size: 14px; letter-spacing: .14em; }
.nextcard__date .nextcard__time { font-size: 26px; margin-left: auto; }
.nextcard__meta { display: flex; flex-direction: column; font-size: 14px; color: #E8E3DC; line-height: 1.6; margin-top: 4px; }
.nextcard__who { font-weight: 700; color: var(--white); }
.nextcard__chev { position: absolute; right: 14px; top: 50%; margin-top: -12px; }

.sec { padding: 36px var(--g) 0; }
.sec__head { margin-bottom: 14px; }
.sec__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sec__sub { font-size: 14px; color: var(--ink-2); margin-top: 2px; line-height: 1.6; }
.more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.more .ic { width: 18px; height: 18px; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.week__day { display: flex; flex-direction: column; align-items: center; padding: 12px 0 10px; min-height: 44px; transition: background-color 160ms; }
.week__day + .week__day { border-left: 1px solid var(--hair); }
.week__day:active { background: var(--paper); }
.week__bar { position: relative; width: 12px; height: 64px; background: var(--paper); display: flex; align-items: flex-end; }
.week__fill { display: block; width: 100%; background: var(--ink); transform-origin: bottom; animation: grow 600ms var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.week__day:nth-child(2) .week__fill { animation-delay: 40ms; } .week__day:nth-child(3) .week__fill { animation-delay: 80ms; }
.week__day:nth-child(4) .week__fill { animation-delay: 120ms; } .week__day:nth-child(5) .week__fill { animation-delay: 160ms; }
.week__day:nth-child(6) .week__fill { animation-delay: 200ms; } .week__day:nth-child(7) .week__fill { animation-delay: 240ms; }
.week__n { font-size: 15px; margin-top: 6px; line-height: 1.2; }
.week__d { font-size: 22px; line-height: 1.2; margin-top: 4px; }
.week__w { font-size: 12px; color: var(--ink-2); }
.week__w.is-sun { color: var(--alert); }
.week__day.is-off .week__n { color: var(--taupe); }
.refreshed { font-size: 13px; color: var(--taupe); margin-top: 8px; }

.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(-1 * var(--g)); padding: 0 var(--g) 4px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--g); scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.pcard { flex: none; width: 150px; scroll-snap-align: start; display: grid; gap: 1px; transition: transform 140ms var(--ease); }
.pcard:active { transform: scale(.97); }
.pcard__img { width: 150px; height: 200px; object-fit: cover; object-position: 50% 20%; margin-bottom: 8px; background: var(--greige); }
.pcard__rank { font-size: 11px; letter-spacing: .1em; color: var(--ink-2); }
.pcard__name { font-family: var(--ff-head); font-weight: 600; font-size: 17px; line-height: 1.35; }
.pcard__tags { font-size: 12px; color: var(--taupe); }

.plist { border-top: 1px solid var(--ink); padding: 12px 0 14px; }
.plist__cat { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.plist__en { font-family: var(--ff-num); font-size: 12px; letter-spacing: .2em; color: var(--ink-2); font-weight: 400; }
.plist__row { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 15px; }
.plist__name { flex: none; max-width: 56%; }
.plist__dots { flex: 1; border-bottom: 1px dotted var(--greige-3); transform: translateY(-4px); min-width: 12px; }
.plist__min { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.plist__price { font-size: 17px; min-width: 70px; text-align: right; white-space: nowrap; }
.sec .btn--line { margin-top: 8px; }

.sec--salon { padding-top: 40px; }
.salon__img { width: calc(100% + 2 * var(--g)); max-width: none; margin: 0 calc(-1 * var(--g)); aspect-ratio: 3 / 2; object-fit: cover; }
.salon__info { padding-top: 18px; }
.salon__info .h2 { margin-bottom: 10px; }
.dl > div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.dl > div:last-child { border-bottom: 1px solid var(--hair); }
.dl dt { color: var(--ink-2); font-weight: 700; }
.dl--tight { margin-top: 18px; }
.foot-note { padding: 28px var(--g) 12px; font-size: 13px; color: var(--taupe); line-height: 1.7; }
.foot-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ---------- スタイリスト ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--g) 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--ink); font-size: 14px; white-space: nowrap; transition: background-color 160ms, color 160ms, transform 120ms;
}
.chip:active { transform: scale(.95); }
.chip.is-on { background: var(--ink); color: var(--white); }
.chip .ic { width: 18px; height: 18px; }
.chip--saved.is-on .ic { fill: currentColor; }
.stlist { border-top: 1px solid var(--ink); margin: 0 var(--g); }
.strow { display: grid; grid-template-columns: 22px 108px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--hair); transition: background-color 160ms; }
.strow:active { background: var(--paper); }
.strow__no { font-size: 14px; color: var(--ink-2); padding-top: 2px; }
.strow__img { width: 108px; height: 144px; object-fit: cover; object-position: 50% 18%; background: var(--greige); }
.strow__body { display: flex; flex-direction: column; min-width: 0; }
.strow__rank { font-size: 12px; color: var(--ink-2); letter-spacing: .06em; }
.strow__name { font-family: var(--ff-head); font-weight: 600; font-size: 20px; line-height: 1.35; margin-top: 2px; }
.strow__en { font-family: var(--ff-num); font-size: 11px; letter-spacing: .18em; color: var(--ink-2); }
.strow__catch { font-family: var(--ff-head); font-size: 14px; line-height: 1.55; margin-top: 8px; }
.strow__open { display: flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--ok); }
.strow__open .ic { width: 16px; height: 16px; }
.strow__open .num { font-size: 15px; }

.sthero { position: relative; }
.sthero__img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; }
.sthero__band { position: relative; margin: -56px var(--g) 0; padding: 16px 18px; background: var(--white); border: 1px solid var(--ink); }
.sthero__rank { font-size: 13px; color: var(--ink-2); }
.sthero__name { font-family: var(--ff-head); font-weight: 600; font-size: 30px; line-height: 1.3; letter-spacing: .06em; }
.sthero__en { font-family: var(--ff-num); font-size: 12px; letter-spacing: .24em; color: var(--ink-2); }
.quote { font-family: var(--ff-head); font-size: 17px; line-height: 1.9; padding-left: 16px; border-left: 1px solid var(--ink); }
.slotchips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slotchip { display: flex; flex-direction: column; padding: 10px 14px; border: 1px solid var(--ink); min-height: 64px; transition: background-color 140ms, transform 120ms; }
.slotchip:active { transform: scale(.97); background: var(--paper); }
.slotchip__d { font-size: 13px; color: var(--ink-2); }
.slotchip__t { font-size: 22px; line-height: 1.2; }
.hscroll--works { padding-bottom: 8px; }
.wcard { flex: none; width: 140px; scroll-snap-align: start; }
.wcard img { width: 140px; height: 176px; object-fit: cover; object-position: 50% 30%; background: var(--greige); }
.wcard__name { display: block; font-size: 14px; margin-top: 6px; line-height: 1.5; }

/* ---------- 予約フロー ---------- */
.rail { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--white); }
.rail__step + .rail__step { border-left: 1px solid var(--hair); }
.rail__step > a, .rail__step > span { display: flex; align-items: baseline; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 2px 8px; color: var(--taupe); }
.rail__no { font-size: 17px; line-height: 1; }
.rail__lbl { font-size: 12px; font-weight: 700; }
.rail__step.is-done > a, .rail__step.is-done > span { color: var(--ink); }
.rail__step.is-now > span { background: var(--ink); color: var(--white); }
.scroll--flow { padding-bottom: 210px; }
.flowtitle { padding: 22px var(--g) 18px; }
.flowtitle .h1 { font-size: 27px; }
.flowtitle__sub { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.7; }

.opts { border-top: 1px solid var(--ink); }
.opt { display: grid; grid-template-columns: 64px 1fr 28px; gap: 14px; align-items: center; width: 100%; padding: 14px var(--g); border-bottom: 1px solid var(--hair); transition: background-color 160ms; }
.opt:active { background: var(--paper); }
.opt__ph { width: 64px; height: 84px; object-fit: cover; object-position: 50% 18%; background: var(--greige); }
.opt__ph--any { display: grid; place-items: center; background: var(--paper); border: 1px solid var(--hair); }
.opt__ph--any .ic { width: 32px; height: 32px; }
.opt__body { display: flex; flex-direction: column; min-width: 0; }
.opt__name { font-family: var(--ff-head); font-weight: 600; font-size: 18px; line-height: 1.35; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.opt__rank { font-family: var(--ff-body); font-weight: 400; font-size: 12px; color: var(--ink-2); }
.opt__sub { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.opt__open { font-size: 13px; font-weight: 700; color: var(--ok); margin-top: 2px; }
.opt__open .num { font-size: 15px; }
.radio { width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transition: background-color 160ms; }
.radio .ic { width: 16px; height: 16px; stroke: var(--white); stroke-width: 2; opacity: 0; transform: scale(.4); transition: opacity 160ms, transform 220ms var(--ease); }
.opt.is-on { background: var(--paper); }
.opt.is-on .radio { background: var(--ink); }
.opt.is-on .radio .ic { opacity: 1; transform: none; }

.mcat { margin-top: 10px; }
.mcat__head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; padding: 10px var(--g) 8px; border-top: 1px solid var(--ink); }
.mcat__en { font-family: var(--ff-num); font-size: 12px; letter-spacing: .22em; color: var(--ink-2); }
.mcat__ja { font-weight: 700; font-size: 15px; }
.mcat__note { font-size: 12px; color: var(--ink-2); flex-basis: 100%; }
.mrow { display: grid; grid-template-columns: 1fr auto auto 22px; gap: 12px; align-items: center; width: 100%; min-height: 60px; padding: 10px var(--g); border-top: 1px solid var(--hair); transition: background-color 180ms, color 180ms; }
.mrow:active { background: var(--paper); }
.mrow__body { display: flex; flex-direction: column; min-width: 0; }
.mrow__name { font-size: 15px; font-weight: 700; line-height: 1.45; }
.mrow__note { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.mrow__min { font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.mrow__price { font-size: 18px; white-space: nowrap; min-width: 72px; text-align: right; }
.mrow__chk { width: 22px; height: 22px; border: 1px solid var(--ink); display: grid; place-items: center; }
.mrow__chk .ic { width: 16px; height: 16px; stroke-width: 2; opacity: 0; }
.mrow.is-on { background: var(--ink); color: var(--white); }
.mrow.is-on .mrow__note, .mrow.is-on .mrow__min { color: #DDD6CC; }
.mrow.is-on .mrow__chk { border-color: var(--white); }
.mrow.is-on .mrow__chk .ic { opacity: 1; }

/* 伝票（下に固定） */
.ticket {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 12px var(--g) calc(12px + var(--safe-b)); background: var(--white); border-top: 1px solid var(--ink);
  animation: rise 360ms var(--ease) both;
}
@keyframes rise { from { transform: translateY(100%); } }
.ticket__sum { display: block; width: 100%; padding-bottom: 10px; }
.ticket__who { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.ticket__when { font-size: 15px; color: var(--ink); white-space: nowrap; }
.segbar { display: flex; height: 26px; margin: 6px 0 8px; background: var(--paper); overflow: hidden; }
.seg { display: flex; align-items: center; min-width: 0; padding: 0 6px; border-right: 1px solid var(--white); animation: segIn 300ms var(--ease) both; transform-origin: left; overflow: hidden; }
@keyframes segIn { from { transform: scaleX(.2); opacity: 0; } }
.seg__lbl { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.seg--0 { background: var(--ink); color: var(--white); }
.seg--1 { background: var(--greige-2); color: var(--ink); }
.seg--2 { background: var(--greige); color: var(--ink); }
.seg--3 { background: #EDE8E1; color: var(--ink); }
.seg--empty { background: var(--paper); color: var(--ink-2); justify-content: center; }
.ticket__row { display: flex; align-items: baseline; gap: 8px; }
.ticket__k { font-size: 12px; color: var(--ink-2); }
.ticket__v { font-size: 18px; margin-right: auto; white-space: nowrap; }
.ticket__v--big { font-size: 26px; margin-right: 0; line-height: 1.1; }

/* カレンダー */
.cal { border-top: 1px solid var(--ink); }
.cal__month { padding: 10px var(--g) 0; font-size: 18px; }
.cal__strip { display: flex; overflow-x: auto; padding: 8px var(--g) 12px; gap: 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.cal__strip::-webkit-scrollbar { display: none; }
.cday { flex: none; width: 50px; display: flex; flex-direction: column; align-items: center; padding: 8px 0 6px; border: 1px solid var(--hair); scroll-snap-align: start; transition: background-color 160ms, color 160ms, transform 120ms; }
.cday:active { transform: scale(.94); }
.cday__w { font-size: 12px; color: var(--ink-2); }
.cday__n { font-size: 22px; line-height: 1.2; }
.cday__m { font-size: 13px; font-weight: 700; color: var(--ok); }
.cday.is-sun .cday__w { color: var(--alert); }
.cday.is-off .cday__m { color: var(--taupe); }
.cday.is-off .cday__n { color: var(--taupe); }
.cday.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cday.is-on .cday__w, .cday.is-on .cday__m, .cday.is-on .cday__n { color: var(--white); }
.cal__legend { display: flex; gap: 14px; padding: 0 var(--g) 6px; font-size: 12px; color: var(--ink-2); }
.times { padding: 4px var(--g) 0; }
.times__g { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 14px 0 6px; border-top: 1px solid var(--hair); }
.times__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tslot { min-height: 46px; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 17px; transition: background-color 140ms, color 140ms, transform 120ms; }
.tslot:active { transform: scale(.94); }
.tslot.is-on { background: var(--ink); color: var(--white); }
.tslot.is-full {
  border-color: var(--hair); color: var(--taupe);
  background: repeating-linear-gradient(135deg, var(--white) 0 6px, var(--paper) 6px 7px);
}
.tslot.is-full .num { background: var(--white); padding: 0 4px; text-decoration: line-through; }
.picked { display: flex; align-items: center; gap: 8px; margin: 16px var(--g) 0; padding: 12px 14px; background: var(--paper); font-size: 14px; font-weight: 700; border-left: 3px solid var(--ink); }
.picked .ic { width: 18px; height: 18px; stroke-width: 2; }
@keyframes flash { from { opacity: .2; transform: translateY(6px); } }
.flash { animation: flash 280ms var(--ease) both; }
.emptyday { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px var(--g) 8px; text-align: center; }
.emptyday__art { width: 120px; height: 60px; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.emptyday__t { font-family: var(--ff-head); font-weight: 600; font-size: 19px; }
.emptyday__s { font-size: 14px; color: var(--ink-2); }

/* 確認 */
.confirm { margin: 0 var(--g); border: 1px solid var(--ink); padding: 18px 18px 6px; }
.confirm__date { display: flex; align-items: baseline; gap: 10px; }
.confirm__big { font-size: 48px; line-height: 1; }
.confirm__wk { font-family: var(--ff-num); letter-spacing: .16em; font-size: 15px; }
.confirm__time { font-size: 26px; margin-top: 6px; }
.confirm__to { padding: 0 6px; }
.confirm__ja { font-size: 14px; color: var(--ink-2); }
.confirm__who { display: flex; align-items: center; gap: 12px; padding: 14px 0; margin-top: 12px; border-top: 1px solid var(--hair); }
.confirm__ph { width: 48px; height: 48px; object-fit: cover; object-position: 50% 20%; flex: none; }
.confirm__ph--any { display: grid; place-items: center; background: var(--paper); }
.confirm__k { display: block; font-size: 12px; color: var(--ink-2); }
.confirm__v { display: block; font-weight: 700; font-size: 15px; }
.bill { width: 100%; border-collapse: collapse; font-size: 14px; }
.bill th { text-align: left; font-weight: 400; padding: 9px 0; border-top: 1px solid var(--hair); }
.bill td { text-align: right; padding: 9px 0 9px 10px; border-top: 1px solid var(--hair); white-space: nowrap; font-size: 16px; }
.bill td:nth-child(2) { color: var(--ink-2); font-size: 14px; }
.bill tfoot th, .bill tfoot td { border-top: 1px solid var(--ink); font-weight: 700; padding: 12px 0 12px 10px; }
.bill tfoot th { padding-left: 0; }
.bill tfoot td:last-child { font-size: 26px; }
.field { display: block; margin: 22px var(--g) 0; position: relative; }
.field__l { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field__ta { display: block; width: 100%; border: 1px solid var(--ink); border-radius: 0; padding: 12px 14px 26px; font-size: 16px; line-height: 1.7; resize: none; background: var(--white); }
.field__ta::placeholder { color: var(--taupe); }
.field__c { position: absolute; right: 10px; bottom: 6px; font-size: 12px; color: var(--ink-2); }
.policy { margin: 20px var(--g) 0; padding: 14px 16px; background: var(--paper); font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.policy p + p { margin-top: 6px; }
.policy__t { font-weight: 700; color: var(--ink); }

/* 完了 */
.scroll--done { background: var(--paper); }
.done { padding: calc(40px + var(--safe-t)) var(--g) 40px; display: flex; flex-direction: column; gap: 12px; }
.done__en { font-family: var(--ff-num); font-style: italic; font-size: 54px; line-height: 1; animation: inFade 600ms var(--ease) both; }
.done__ja { font-family: var(--ff-head); font-weight: 600; font-size: 24px; letter-spacing: .06em; margin-bottom: 8px; }
.card-appt { position: relative; background: var(--white); border: 1px solid var(--ink); padding: 20px 20px 10px; margin-bottom: 4px; animation: inFade 600ms 120ms var(--ease) both; }
.card-appt::before, .card-appt::after { content: ""; position: absolute; top: 96px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); }
.card-appt::before { left: -9px; clip-path: inset(0 0 0 50%); }
.card-appt::after { right: -9px; clip-path: inset(0 50% 0 0); }
.card-appt__salon { font-family: var(--ff-logo); font-size: 20px; letter-spacing: .3em; }
.card-appt__salon span { font-family: var(--ff-head); font-size: 12px; letter-spacing: .1em; }
.card-appt__date { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.card-appt__date .num { font-size: 44px; line-height: 1; }
.card-appt__wk { font-family: var(--ff-num); letter-spacing: .16em; }
.card-appt__time { font-size: 22px; padding-bottom: 14px; border-bottom: 1px dashed var(--ink); }
.card-appt__dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--hair); }
.card-appt__dl > div:last-child { border-bottom: 0; }
.card-appt__dl dt { color: var(--ink-2); }
.card-appt__dl dd { font-weight: 700; }
.done__note { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* ---------- ヘアカタログ ---------- */
.masonry { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 var(--g); }
.masonry__col { display: flex; flex-direction: column; gap: 18px; }
.masonry__col:nth-child(2) { padding-top: 36px; }
.hcard { position: relative; }
.hcard__link { display: block; transition: transform 160ms var(--ease); }
.hcard__link:active { transform: scale(.97); }
.hcard__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; background: var(--greige); }
.hcard--tall .hcard__img { aspect-ratio: 3 / 4.4; }
.hcard__name { display: block; font-family: var(--ff-head); font-weight: 600; font-size: 15px; line-height: 1.45; margin-top: 8px; padding-right: 4px; }
.hcard__by { display: block; font-size: 12px; color: var(--ink-2); }
.heart { position: absolute; right: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--white); color: var(--ink); }
.heart .ic { width: 20px; height: 20px; transition: transform 200ms var(--ease); }
.heart.is-on .ic { fill: var(--ink); }
.heart.pop .ic { animation: pop 360ms var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
.heart--bar { position: static; }
.emptycat { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 30px var(--g); }
.emptycat__art { width: 120px; height: 80px; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.emptycat__t { font-family: var(--ff-head); font-weight: 600; font-size: 19px; }
.emptycat__s { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.emptycat .btn { width: auto; margin-top: 6px; }

.shero { position: relative; touch-action: pan-y; }
.shero__img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.shero__pager { position: absolute; right: var(--g); bottom: -22px; display: flex; align-items: center; background: var(--white); border: 1px solid var(--ink); }
.shero__pager .num { font-size: 15px; padding: 0 6px; min-width: 64px; text-align: center; }
.pgbtn { width: 44px; height: 44px; display: grid; place-items: center; }
.pgbtn:active { background: var(--paper); }
.pgbtn .ic { width: 20px; height: 20px; }
.sec--style { padding-top: 26px; }
.lead { font-size: 15px; line-height: 1.9; margin-top: 10px; color: var(--ink-2); }
.spec { margin-top: 18px; border-top: 1px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.spec dt { color: var(--ink-2); font-weight: 700; }
.spec dd .num { font-size: 18px; }
.spec__s { font-size: 12px; color: var(--ink-2); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 0; min-height: 64px; }
.byline__ph { width: 52px; height: 52px; object-fit: cover; object-position: 50% 20%; border-radius: 50%; }
.byline > span { flex: 1; }
.byline__k { display: block; font-family: var(--ff-num); font-size: 11px; letter-spacing: .24em; color: var(--ink-2); }
.byline__n { display: block; font-family: var(--ff-head); font-weight: 600; font-size: 17px; }
.likes { font-size: 13px; color: var(--ink-2); }
.likes .num { font-size: 16px; color: var(--ink); margin-right: 2px; }

/* ---------- マイページ ---------- */
.member { display: flex; align-items: center; gap: 4px; margin: 0 var(--g); padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.member > div:first-child { flex: 1; }
.member__name { font-family: var(--ff-head); font-weight: 600; font-size: 21px; }
.member__name span { font-size: 14px; }
.member__no { font-size: 13px; color: var(--ink-2); }
.member__stat { display: flex; flex-direction: column; align-items: center; width: 64px; border-left: 1px solid var(--hair); }
.member__stat .num { font-size: 26px; line-height: 1.15; }
.member__stat span:last-child { font-size: 12px; color: var(--ink-2); }
.appt { display: grid; grid-template-columns: 96px 1fr; border: 1px solid var(--ink); }
.appt + .appt { margin-top: 12px; }
.appt__date { background: var(--ink); color: var(--white); padding: 14px 12px; display: flex; flex-direction: column; }
.appt__big { font-size: 30px; line-height: 1.1; }
.appt__wk { font-family: var(--ff-num); letter-spacing: .16em; font-size: 13px; }
.appt__rel { margin-top: auto; font-size: 13px; font-weight: 700; color: #E8E3DC; white-space: nowrap; }
.appt__body { padding: 12px 14px 8px; min-width: 0; }
.appt__time { font-size: 22px; line-height: 1.2; }
.appt__who { font-weight: 700; font-size: 15px; margin-top: 4px; }
.appt__rank { display: block; font-weight: 400; font-size: 12px; color: var(--ink-2); }
.appt__menu { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.appt__price { font-size: 13px; color: var(--ink-2); }
.appt__price .num { font-size: 18px; color: var(--ink); }
.appt__memo { font-size: 13px; margin-top: 6px; padding: 6px 10px; background: var(--paper); line-height: 1.6; }
.appt__acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.emptyappt { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 22px 16px; border: 1px solid var(--ink); }
.emptyappt__art { width: 110px; height: 64px; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.emptyappt__t { font-family: var(--ff-head); font-weight: 600; font-size: 19px; }
.emptyappt__s { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.tl { border-left: 1px solid var(--ink); margin-left: 6px; }
.tl__item { position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 0 0 26px 18px; }
.tl__item::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; background: var(--ink); }
.tl__date { display: flex; flex-direction: column; }
.tl__date .num:first-child { font-size: 22px; line-height: 1.2; }
.tl__y { font-size: 13px; color: var(--ink-2); }
.tl__body { min-width: 0; }
.tl__menu { font-weight: 700; font-size: 15px; line-height: 1.5; }
.tl__who { font-size: 13px; color: var(--ink-2); }
.tl__who .num { font-size: 15px; color: var(--ink); }
.karte { margin: 8px 0 10px; }
.karte summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; list-style: none; }
.karte summary::-webkit-details-marker { display: none; }
.karte dl { background: var(--paper); padding: 4px 12px; }
.karte dl > div { padding: 8px 0; font-size: 14px; line-height: 1.7; }
.karte dl > div + div { border-top: 1px solid var(--hair); }
.karte dt { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.karte__style { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.karte__style img { width: 52px; height: 52px; object-fit: cover; }
.karte__sn { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.empty { font-size: 14px; color: var(--ink-2); padding: 12px 0; line-height: 1.7; }
.linklist { margin: 30px var(--g) 0; border-top: 1px solid var(--ink); }
.linklist a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; border-bottom: 1px solid var(--hair); font-weight: 700; }
.linklist .ic { width: 18px; height: 18px; }

/* ---------- 設定・アプリについて ---------- */
.setgroup { margin: 20px var(--g) 0; }
.setgroup__t { font-family: var(--ff-num); font-style: italic; font-size: 15px; color: var(--ink-2); padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.setrow { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.setrow__body { flex: 1; display: flex; flex-direction: column; }
.setrow__l { font-weight: 700; font-size: 15px; }
.setrow__s { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.setrow--link { justify-content: space-between; }
.setrow--link .ic { width: 18px; height: 18px; }
.setrow--danger .setrow__l { color: var(--alert); }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 52px; height: 30px; border: 1px solid var(--ink); background: var(--white); position: relative; cursor: pointer; transition: background-color 200ms; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: var(--ink); transition: transform 240ms var(--ease), background-color 200ms; }
.switch:checked { background: var(--ink); }
.switch:checked::after { transform: translateX(22px); background: var(--white); }
.about { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px var(--g) 40px; text-align: center; }
.about__icon { width: 96px; height: 96px; border-radius: 22px; }
.about__name { font-family: var(--ff-head); font-weight: 600; font-size: 24px; }
.about__ver { font-size: 13px; color: var(--ink-2); }
.about__disc { font-size: 14px; line-height: 1.8; text-align: left; padding: 14px 16px; background: var(--paper); margin-top: 8px; }
.about__tech { width: 100%; text-align: left; margin: 6px 0 10px; }
.about__tech li { font-size: 14px; line-height: 1.7; padding: 8px 0 8px 14px; border-bottom: 1px solid var(--hair); position: relative; }
.about__tech li::before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 1px; background: var(--ink); }

/* ---------- シート・トースト ---------- */
.sheet-layer { position: absolute; inset: 0; z-index: 30; }
.scrim { position: absolute; inset: 0; background: rgba(17, 17, 17, .42); opacity: 0; transition: opacity 260ms; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); border-top: 1px solid var(--ink); padding-bottom: var(--safe-b);
  transform: translateY(100%); transition: transform 300ms var(--ease);
}
.sheet-layer.is-open .scrim { opacity: 1; }
.sheet-layer.is-open .sheet { transform: none; }
.sheet__grab { width: 40px; height: 3px; background: var(--ink); margin: 10px auto 0; }
.sheet__body { padding: 14px var(--g) 18px; display: flex; flex-direction: column; gap: 10px; }
.sheet__body .h2 { margin-bottom: 4px; }
.sheet__p { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin-bottom: 6px; }
.bd { border-top: 1px solid var(--ink); }
.bd__row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.bd__t { font-size: 15px; color: var(--ink-2); }
.bd__n { grid-column: 2; }
.bd__m { color: var(--ink-2); white-space: nowrap; }
.bd__p { font-size: 16px; white-space: nowrap; text-align: right; min-width: 70px; }
.bd__sum { display: flex; align-items: baseline; gap: 12px; padding: 6px 0 4px; font-weight: 700; }
.bd__sum span:first-child { margin-right: auto; }
.bd__big { font-size: 28px; }
.bd__note { font-size: 13px; color: var(--ink-2); }

.toast {
  position: absolute; z-index: 40; left: var(--g); right: var(--g); bottom: calc(var(--tab-h) + var(--safe-b) + 14px);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; min-height: 48px;
  background: var(--ink); color: var(--white); font-size: 14px; line-height: 1.55;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 200ms, transform 260ms var(--ease);
}
.toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.toast__msg { flex: 1; }
.toast__act { flex: none; min-height: 40px; padding: 0 10px; color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.device:not(.has-tabbar) .toast { bottom: calc(190px + var(--safe-b)); }

/* ---------- スプラッシュ・オンボーディング ---------- */
.splash { position: absolute; inset: 0; z-index: 50; background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; transition: opacity 360ms; }
.splash.is-out { opacity: 0; }
.splash__icon { width: 112px; height: 112px; border-radius: 26px; animation: inFade 500ms var(--ease) both; }
.splash__name { font-family: var(--ff-head); font-weight: 600; font-size: 22px; letter-spacing: .12em; margin-top: 8px; }
.splash__sub { font-family: var(--ff-logo); font-size: 15px; letter-spacing: .3em; color: var(--ink-2); }
.onboard { position: absolute; inset: 0; z-index: 45; background: var(--white); display: flex; flex-direction: column; transition: opacity 300ms; }
.onboard.is-out { opacity: 0; }
.onboard__img { flex: 1; min-height: 0; overflow: hidden; }
.onboard__img img { width: 100%; height: 100%; object-fit: cover; animation: inFade 500ms var(--ease) both; }
.onboard__panel { padding: 22px var(--g) calc(18px + var(--safe-b)); border-top: 1px solid var(--ink); }
.onboard__no { font-size: 15px; color: var(--ink-2); }
.onboard__t { font-family: var(--ff-head); font-weight: 600; font-size: 25px; line-height: 1.45; letter-spacing: .04em; margin: 4px 0 8px; font-feature-settings: "palt"; }
.onboard__s { font-size: 15px; color: var(--ink-2); line-height: 1.8; min-height: 3.6em; }
.onboard__acts { display: flex; gap: 10px; margin-top: 16px; }
.onboard__acts .btn--text { width: auto; padding: 0 12px; }
.onboard__acts .btn--ink { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}
