/* ご予約サイト — 見た目（お客様の画面・確認ページ・管理画面で共通） */
:root {
  /* 写真の「青みのある白」と、パンツの紺・髪の茶色から取った色 */
  --bg: #eef5f4;
  --paper: #f9fcfc;
  --ink: #1b2a35;
  --sub: #566770;
  --faint: #93a3aa;
  --line: #d3dfe0;
  --soft: #e3eeee;
  --acc: #24414f;
  --acc-soft: #dcebec;
  --brass: #9a6c55;
  --err: #a2423a;
  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --serif-jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  /* 数字は読みやすさ優先：高さのそろったゴシック体 */
  --num: "Noto Sans JP", "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.9; letter-spacing: .04em;
  -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
.en { font-family: var(--serif-en); letter-spacing: .06em; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 22px; }

/* ---------- 上の帯 ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(238, 245, 244, .9); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-family: var(--serif-en); font-size: 19px; letter-spacing: .14em; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56%; }
.brand.jp { font-family: var(--serif-jp); text-transform: none; font-size: 17px; letter-spacing: .14em; }
.nav { display: flex; gap: 14px; flex: none; margin-left: 12px; }
.nav a { font-family: var(--serif-en); font-size: 12px; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; color: var(--sub); }
.nav a:hover { color: var(--ink); }

/* ---------- はじめの写真（小さめ。すぐ予約に入れるように） ---------- */
.hero { position: relative; }
.hero-img { margin: 0; aspect-ratio: 16 / 10; max-height: 46vh; width: 100%; overflow: hidden; background: #e9f6f5; position: relative; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 28%; display: block; animation: fade .9s ease both;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero-v { position: absolute; top: 18px; left: 22px; margin: 0; writing-mode: vertical-rl; font-family: var(--serif-jp); font-size: 12px; letter-spacing: .5em; color: var(--ink); }
.hero-text { margin-top: -54px; position: relative; }
.hero h1 { font-family: var(--serif-en); font-weight: 300; font-size: clamp(34px, 9.6vw, 56px); line-height: 1.05; letter-spacing: .01em; margin: 0; color: var(--ink); }
.hero h1 i { font-style: italic; color: var(--acc); }
.hours { margin: 10px 0 0; font-size: 12px; color: var(--sub); letter-spacing: .06em; display: flex; flex-wrap: wrap; gap: 0 14px; }

/* ---------- セラピスト ---------- */
.about figure { margin: 0; overflow: hidden; }
.about img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 18%; }
.therapist { display: grid; grid-template-columns: 38% 1fr; gap: 20px; align-items: center; }
.therapist figure { aspect-ratio: 3 / 4; }
.therapist .label { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); margin: 0 0 8px; }
.therapist .tname { font-size: 24px; letter-spacing: .08em; margin: -4px 0 12px; line-height: 1.2; }
.intro { margin: 0 0 10px; font-size: 14px; line-height: 2; white-space: pre-wrap; }
.therapist .profile { font-size: 13px; line-height: 2; color: var(--sub); white-space: pre-wrap; margin: 0; }

/* ---------- 区切りの見出し ---------- */
.sec { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin: 0 0 28px; }
.sec-head h2 { font-family: var(--serif-en); font-weight: 400; font-size: 34px; letter-spacing: .04em; margin: 0; line-height: 1.1; }
.sec-head .no { font-family: var(--num); font-size: 12px; letter-spacing: .1em; color: var(--brass); align-self: flex-start; margin-top: 4px; }
.sec-head span { font-family: var(--serif-jp); font-size: 13px; letter-spacing: .24em; color: var(--sub); }

/* ---------- ステップ ---------- */
.reserve { padding-top: 30px; border-top: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0 0 26px; padding: 0; counter-reset: s; }
.steps li { position: relative; padding-top: 14px; font-size: 12px; color: var(--faint); letter-spacing: .1em; border-top: 1px solid var(--line); }
.steps li b { display: block; font-family: var(--num); font-weight: 500; font-size: 14px; letter-spacing: .06em; }
.steps li.on { color: var(--ink); border-top: 2px solid var(--ink); padding-top: 13px; }
.steps li.done { color: var(--sub); border-top-color: var(--acc); }
.steps li.done b::after { content: " ✓"; color: var(--acc); font-family: var(--sans); font-size: 12px; }

.panel { animation: rise .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-title { font-family: var(--serif-jp); font-weight: 500; font-size: 19px; letter-spacing: .12em; margin: 0 0 6px; }
.panel-note { font-size: 13px; color: var(--sub); margin: 0 0 22px; }

/* 選んだ内容のまとめ */
.picked { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); margin: 0 0 26px; font-size: 14px; }
.picked .k { font-family: var(--serif-en); color: var(--faint); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; margin-right: 8px; }
.linkbtn { background: none; border: 0; padding: 4px 0; font-size: 13px; color: var(--sub); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }
.back { margin: 0 0 18px; display: inline-flex; align-items: center; gap: 8px; }
.back::before { content: "←"; text-decoration: none; display: inline-block; }

/* ---------- メニュー ---------- */
.menus { display: grid; gap: 0; border-top: 1px solid var(--line); }
.menu {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: start; text-align: left; width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--line); padding: 18px 4px 18px 0; cursor: pointer; position: relative; transition: background .2s, padding .2s;
}
.menu:hover { background: rgba(249, 252, 252, .7); }
.menu:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.menu .nm { font-family: var(--serif-jp); font-size: 17px; font-weight: 500; letter-spacing: .08em; line-height: 1.6; }
.menu .meta { grid-column: 1 / -1; display: flex; gap: 20px; font-size: 15px; color: var(--ink); align-items: baseline; }
.menu .meta .en { font-family: var(--num); font-size: 18px; font-weight: 500; letter-spacing: .02em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.menu .ds { grid-column: 1 / -1; font-size: 13px; color: var(--sub); white-space: pre-wrap; line-height: 1.8; margin-top: 4px; }
.menu .go { font-family: var(--serif-en); font-size: 22px; color: var(--faint); line-height: 1; padding-top: 4px; transition: transform .25s, color .25s; }
.menu:hover .go { transform: translateX(4px); color: var(--ink); }
.empty { padding: 28px 0; color: var(--sub); font-size: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- カレンダー ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.cal-head .m { text-align: center; }
.cal-head .m b { display: block; font-family: var(--serif-en); font-weight: 400; font-size: 28px; letter-spacing: .06em; line-height: 1.1; }
.cal-head .m small { font-size: 12px; color: var(--sub); letter-spacing: .2em; }
.arrow { width: 46px; height: 46px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-family: var(--serif-en); font-size: 20px; display: grid; place-items: center; }
.arrow:disabled { opacity: .3; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--paper); }
.cal .wd { font-size: 11px; text-align: center; padding: 8px 0; color: var(--sub); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); letter-spacing: .1em; background: var(--bg); }
.cal .wd.sun { color: #a2423a; } .cal .wd.sat { color: #2f5f86; }
.day {
  aspect-ratio: 1 / 1.08; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; padding: 6px 0 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: default; position: relative; min-width: 0;
}
.day .n { font-family: var(--num); font-size: 17px; font-weight: 500; line-height: 1.3; }
.day .mk { font-size: 11px; line-height: 1; color: var(--faint); height: 12px; }
.day.open { cursor: pointer; }
.day.open .mk { color: var(--acc); font-size: 13px; }
.day.open:hover { background: var(--acc-soft); }
.day.open:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.day.na .n { color: var(--faint); }
.day.full .mk, .day.closed .mk { color: var(--faint); }
.day.today .n { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.day.sel { background: var(--ink); color: var(--paper); }
.day.sel .mk { color: var(--paper); }
.day .ev { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--sub); margin: 14px 0 0; }
.legend i { font-style: normal; display: inline-block; margin-right: 6px; color: var(--acc); }
.legend .dia { width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); vertical-align: 2px; margin-right: 8px; }
.cal-msg { padding: 40px 10px; text-align: center; color: var(--sub); font-size: 14px; border: 1px solid var(--line); background: var(--paper); }

/* ---------- 時間 ---------- */
.dayevents { border-left: 2px solid var(--brass); padding: 4px 0 4px 16px; margin: 0 0 22px; }
.dayevents p { margin: 0; font-size: 14px; }
.dayevents .k { font-family: var(--serif-en); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.time {
  height: 54px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-family: var(--num); font-size: 19px; font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  transition: background .15s, border-color .15s, color .15s;
}
.time:hover:not(:disabled) { border-color: var(--ink); }
.time:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.time:disabled { cursor: default; color: var(--faint); background: transparent; text-decoration: line-through; text-decoration-thickness: 1px; border-style: dashed; }
.time .lb { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .1em; text-decoration: none; margin-top: -6px; }
.times-note { font-size: 12px; color: var(--sub); margin: 14px 0 0; }

/* ---------- 入力 ---------- */
.field { margin: 0 0 22px; }
.field label, .field .lab { display: block; font-size: 13px; letter-spacing: .12em; margin: 0 0 8px; color: var(--sub); }
.field label .req { font-size: 11px; color: var(--brass); margin-left: 8px; letter-spacing: .1em; }
.in, textarea.in, select.in {
  width: 100%; min-height: 54px; padding: 13px 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 0; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
textarea.in { min-height: 150px; line-height: 1.8; resize: vertical; }
.in:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(36, 65, 79, .12); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; padding: 6px 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--acc); flex: none; }
.small { font-size: 12px; color: var(--sub); line-height: 1.8; }
.notice { font-size: 13px; color: var(--sub); background: var(--paper); border: 1px solid var(--line); padding: 16px 18px; white-space: pre-wrap; margin: 0 0 22px; }
.notice b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; letter-spacing: .12em; }
details.priv { font-size: 13px; color: var(--sub); margin: 0 0 18px; }
details.priv summary { cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
details.priv p { white-space: pre-wrap; margin: 10px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 58px; padding: 0 24px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); cursor: pointer; font-size: 15px; letter-spacing: .24em; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--acc); border-color: var(--acc); }
.btn:disabled { opacity: .45; cursor: default; }
.btn .en { font-size: 18px; letter-spacing: .12em; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.err { color: var(--err); font-size: 14px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(162, 66, 58, .35); background: rgba(162, 66, 58, .05); }
.ok-msg { color: var(--acc); font-size: 14px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(36, 65, 79, .3); background: var(--acc-soft); }

/* 確認の表 */
.sum { border-top: 1px solid var(--line); margin: 0 0 26px; }
.sum div { display: grid; grid-template-columns: 6.5em 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sum dt { font-size: 12px; color: var(--sub); letter-spacing: .14em; padding-top: 3px; }
.sum dd { margin: 0; }
.sum .big { font-family: var(--num); font-size: 21px; font-weight: 500; letter-spacing: .02em; line-height: 1.4; }

/* 完了 */
.done { text-align: center; padding: 20px 0 10px; }
.done .ring { width: 72px; height: 72px; border: 1px solid var(--acc); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 26px; color: var(--acc); font-size: 26px; }
.done h3 { font-family: var(--serif-en); font-weight: 300; font-size: 40px; margin: 0; line-height: 1.1; }
.done .jp { font-family: var(--serif-jp); letter-spacing: .2em; color: var(--sub); font-size: 14px; margin: 10px 0 30px; }
.done .no { font-family: var(--num); font-size: 20px; font-weight: 500; letter-spacing: .08em; }
.done .sum { text-align: left; }

/* ---------- 下 ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 12px; color: var(--faint); text-align: center; letter-spacing: .14em; }
.foot .brand { display: inline-block; max-width: none; color: var(--sub); margin-bottom: 8px; }

/* 読み込み中 */
.loading { padding: 40px 0; text-align: center; color: var(--faint); font-family: var(--serif-en); letter-spacing: .3em; font-size: 14px; }
.loading::after { content: ""; display: block; width: 40px; height: 1px; background: var(--ink); margin: 16px auto 0; animation: bar 1.2s ease-in-out infinite; }
@keyframes bar { 0%, 100% { transform: scaleX(.2); opacity: .3; } 50% { transform: scaleX(1); opacity: 1; } }

@media (min-width: 720px) {
  .sec { padding: 80px 0 96px; }
  .reserve { padding-top: 40px; }
  .times { grid-template-columns: repeat(4, 1fr); }
  .hero-img { aspect-ratio: auto; height: 40vh; }
  .hero-text { margin-top: -70px; }
  .hero-v { left: calc(50% - 320px); }
  .therapist { grid-template-columns: 220px 1fr; gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.gap { height: 18px; }
.center { text-align: center; }

/* 施術／講座の切りかえ */
.modes { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); margin: 0 0 28px; }
.modes button { min-height: 50px; border: 0; background: var(--paper); font-size: 15px; letter-spacing: .1em; cursor: pointer; color: var(--ink); }
.modes button.on { background: var(--ink); color: var(--paper); }
.modes button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.menu.course .meta + .meta { margin-top: -2px; }
.menu .left { font-size: 13px; color: var(--acc); border: 1px solid var(--acc); padding: 0 8px; }
.menu .full { font-size: 13px; color: var(--err); }
.menu.closed { cursor: default; opacity: .6; }
