/* オンライン面談のご予約・キャンセル（マネビタ v2。workspaces/mv-clinic-portal/DESIGN.md）
   紺の面だけに白文字。グラデ・オレンジの上の文字は紺。白地のオレンジの文字は使わない。文字は 14px 以上 */

:root {
  --ink: #1A1A2E;
  --body: #3A3A4A;
  --sub: #6B6B78;
  --orange: #FF9900;
  --yellow: #FFB700;
  --apricot: #FFF5E8;
  --line: #F0E2C9;
  --warn: #B72402;
  --grad: linear-gradient(135deg, #FFB700 0%, #FF9900 52%, #FF6B6B 100%);
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --num: "Montserrat", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  color: var(--body);
  background: #fff;
  overflow-wrap: break-word;
}

.main { flex: 1; padding: 8px 0 24px; }
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }

p { margin: 0 0 14px; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- 上の帯 ---- */
.topbar { background: #fff; padding: 14px 0 12px; }
.topbar__logo { display: block; width: 134px; height: auto; }

.band {
  position: relative;
  overflow: hidden;
  padding: 40px 0 62px;
  background: var(--grad);
}
.band::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -1px;
  height: 26px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.band__title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
}

/* ---- 宛名・前書き・メッセージ ---- */
.guest {
  margin: 4px 0 14px;
  padding: 2px 0 2px 14px;
  border-left: 5px solid var(--orange);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.lead { margin: 0 0 26px; text-wrap: pretty; word-break: auto-phrase; }

.notice {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-left: 6px solid var(--orange);
  border-radius: 16px;
  background: var(--apricot);
  font-weight: 700;
  color: var(--ink);
  text-wrap: pretty;
  word-break: auto-phrase;
}
.notice--error { border-left-color: var(--warn); color: var(--warn); }

/* ---- 完了・予約済み・キャンセルの面 ---- */
.state {
  margin: 4px 0 24px;
  padding: 26px 22px 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 24px;
  background: var(--apricot);
  box-shadow: 0 24px 60px -30px rgba(26, 26, 46, .18);
  color: var(--ink);
}
.state:focus { outline: none; }
.state p { word-break: auto-phrase; }
/* 文節のまとまり。Safari は auto-phrase が効かず語の途中で折れるので、stop.html・cancel.html は文節ごとにこれで包む */
.nb { display: inline-block; max-width: 100%; }
.state__title { margin: 0 0 10px; font-size: 22px; font-weight: 900; line-height: 1.5; color: var(--ink); text-wrap: balance; }
.state__label { font-family: var(--num); font-size: 20px; font-weight: 800; line-height: 1.6; color: var(--ink); }
p.state__label { margin: 0 0 16px; }
.state__text { margin: 0 0 14px; text-wrap: pretty; }
/* 文の中に入る日時は、途中で改行されないよう、ひとまとまりで折り返す */
.state__text .state__label { display: inline-block; max-width: 100%; font-size: 18px; }
.state .actions { margin: 20px 0 8px; }

/* ---- 見出し・日付・枠 ---- */
.h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 14px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--ink);
}
.h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--grad);
}

.day__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 12px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink);
}
.day:first-child .day__label { margin-top: 0; }
.day__label::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.chip { position: relative; display: block; }
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--apricot);
  font-family: var(--num);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 0 3px var(--yellow);
}
.chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (hover: hover) {
  .chip input:not(:checked):hover + span { border-color: var(--orange); }
}

.mail-to { margin: 0 0 28px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

/* ---- 同意文 ---- */
.consent { margin: 34px 0 0; }
.mv-privacy {
  height: 200px;
  margin: 0 0 12px;
  padding: 14px 16px;
  overflow-y: auto;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-size: 14px;
  line-height: 1.8;
  color: var(--body);
  -webkit-overflow-scrolling: touch;
}
.mv-privacy p { margin: 0 0 6px; }
.mv-privacy__title { font-weight: 700; color: var(--ink); }
.mv-privacy__h { margin-top: 12px !important; font-weight: 700; color: var(--ink); }
.mv-privacy a { color: var(--ink); }
.mv-privacy-agree { display: block; padding: 10px 0; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; }
.mv-privacy-agree input { width: 24px; height: 24px; margin: 0 10px 0 0; vertical-align: -6px; accent-color: var(--ink); cursor: pointer; }

/* ボット除けの隠し欄（画面の外に置く。display:none にすると自動入力するボットに見抜かれやすい） */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- ボタン ---- */
.actions { margin: 26px 0 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 58px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
  color: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn:disabled { background: #B4B4BE; cursor: not-allowed; }

/* ---- フッター ---- */
.footer { margin-top: 40px; padding: 28px 0 32px; background: var(--ink); font-size: 14px; line-height: 1.8; color: #fff; }
.footer__name { margin: 0 0 8px; font-weight: 700; }
.footer__links { margin: 0; }
.footer__links a { display: inline-block; margin: 0 20px 0 0; padding: 6px 0; color: #fff; }

/* ---- 幅320pxの端末: 枠の文字が丸い枠からはみ出さないよう、少し詰める ---- */
@media (max-width: 359px) {
  .chip span { padding: 0 6px; font-size: 14px; }
  .state { padding-left: 16px; padding-right: 16px; }
}

/* ---- 広い画面 ---- */
@media (min-width: 640px) {
  .band { padding: 52px 0 74px; }
  .band__title { font-size: 34px; }
  .chips { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .state { padding: 30px 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .chip span { transition: none; }
}
