/* 月寒こどもクリニック 予約システム テーマ
   ビルド不要。このファイルを public/css/ に置くだけで反映されます。
   色を変えるときは、下の :root の値だけ書き換えてください。 */

:root {
  --brand: #00C9A7;          /* ヘッダー・フッター(サイトのミントグリーン) */
  --brand-dark: #00836F;     /* ボタン・選択中・強調(白文字が読める濃さ) */
  --brand-darker: #006B5B;   /* ボタンのホバー */
  --brand-tint: #E6F9F5;     /* 薄い背景 */
  --on-brand: #00332B;       /* ミントグリーンの上に載せる文字色 */
  --title: #FFF799;          /* クリニック名(タイトル)の黄色 */
  --page-bg: #EFF1F1;
  --ink: #1f2937;
}

/* ---- 全体 ---- */
.clinic-theme {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}
.clinic-main { flex: 1 0 auto; }

/* ---- ヘッダー ---- */
.clinic-header { background: var(--brand); color: var(--on-brand); }
.clinic-header__inner { max-width: 64rem; margin: 0 auto; padding: .75rem 1rem; }

/* 1段目: タイトル(左) + アイコン(右) */
.clinic-header__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.clinic-brand {
  min-width: 0; color: var(--title); text-decoration: none;
  font-size: 1.25rem; font-weight: 700; line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 51, 43, .35); /* 明るい背景の上でも文字の輪郭が見えるように */
}
.clinic-brand small { display: block; font-size: .75rem; font-weight: 500; color: var(--on-brand); text-shadow: none; }
@media (min-width: 640px) { .clinic-brand { font-size: 1.5rem; } }

.clinic-icons { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 9999px;
  background: rgba(255, 255, 255, .35); color: var(--on-brand);
  text-decoration: none; cursor: pointer;
}
.icon-btn:hover, .icon-btn:focus-visible { background: rgba(255, 255, 255, .7); }
.icon-btn.is-active { background: #fff; color: var(--brand-dark); }
.icon-btn svg { width: 1.5rem; height: 1.5rem; }

/* 2段目: メインメニュー(スマホは3等分のタブ) */
.clinic-nav { display: flex; gap: .25rem; margin-top: .75rem; }
.clinic-nav a {
  flex: 1; padding: .5rem .25rem; border-radius: .5rem; text-align: center; white-space: nowrap;
  font-size: .8125rem; font-weight: 600; color: var(--on-brand); text-decoration: none;
}
.clinic-nav a:hover { background: rgba(255, 255, 255, .4); }
.clinic-nav a.is-active { background: #fff; color: var(--brand-dark); }
@media (min-width: 640px) {
  .clinic-nav a { flex: none; padding: .5rem 1.25rem; font-size: .9375rem; }
}

/* ページ見出し(サイトの「ログイン画面」と同じ、左に縦線) */
.page-title { background: #fff; border-bottom: 1px solid #e5e7eb; }
.page-title__inner { max-width: 64rem; margin: 0 auto; padding: 1rem; }
.page-title h2 {
  margin: 0; padding-left: .75rem; border-left: 6px solid var(--brand);
  font-size: 1.25rem; font-weight: 700; color: var(--ink);
}

/* ---- フッター ---- */
.clinic-footer {
  flex-shrink: 0; margin-top: 3rem; padding: 1.5rem 1rem; text-align: center;
  background: var(--brand); color: var(--on-brand); font-size: .875rem; line-height: 1.8;
}
.clinic-footer p { margin: 0; }
.clinic-footer .name { font-weight: 700; }

/* ---- ログイン・登録画面(ゲスト) ---- */
.guest-card {
  max-width: 28rem; margin: 2rem auto; padding: 1.5rem;
  background: #fff; border-radius: .5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

/* Breeze 標準の主要ボタン(濃いグレー)をテーマ色に */
.clinic-theme .bg-gray-800 { background-color: var(--brand-dark); }
.clinic-theme .bg-gray-800:hover,
.clinic-theme .bg-gray-800:focus,
.clinic-theme .bg-gray-800:active { background-color: var(--brand-darker); }

/* ---- 共通パーツ ---- */
.page { max-width: 48rem; margin: 0 auto; padding: 2rem 1rem; }
.stack > * + * { margin-top: 1.5rem; }
.stack-sm > * + * { margin-top: 1rem; }

.card { background: #fff; border-radius: .5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); padding: 1.5rem; }
.card-list { background: #fff; border-radius: .5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.card-list > * + * { border-top: 1px solid #e5e7eb; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; }
.row p { margin: 0; }

.section-title {
  margin: 0 0 1rem; padding-left: .75rem; border-left: 6px solid var(--brand);
  font-size: 1.05rem; font-weight: 700;
}

.alert { padding: 1rem; border-radius: .375rem; }
.alert p { margin: 0; }
.alert-success { background: #ecfdf5; color: #047857; }
.alert-error { background: #fef2f2; color: #b91c1c; }

.muted { color: #6b7280; }
.small { font-size: .875rem; }
.xs { font-size: .75rem; }
.center { text-align: center; }
.strong { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ボタン */
.btn {
  display: inline-block; padding: .5rem 1.25rem; border: 1px solid transparent; border-radius: .375rem;
  font: inherit; line-height: 1.5; text-decoration: none; cursor: pointer;
}
.btn-brand { background: var(--brand-dark); color: #fff; }
.btn-brand:hover { background: var(--brand-darker); }
.btn-outline { background: #fff; border-color: var(--brand-dark); color: var(--brand-dark); }
.btn-outline:hover { background: var(--brand-tint); }
.btn-large { padding: .75rem 1.75rem; font-size: 1.125rem; }
.link-danger { background: none; border: 0; padding: 0; color: #b91c1c; font-size: .875rem; cursor: pointer; }
.link-danger:hover { text-decoration: underline; }

/* フォーム */
.field { margin-top: 1.5rem; }
.field-label { display: block; font-size: .875rem; font-weight: 500; color: #374151; }
.input-text {
  box-sizing: border-box; width: 100%; margin-top: .25rem; padding: .5rem;
  border: 1px solid #d1d5db; border-radius: .375rem; font: inherit;
}
.input-text:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand-dark); }
.field .btn { margin-top: 1.5rem; }

/* ---- 予約画面: 日付と時間の選択 ---- */
.grid-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.grid-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 640px) {
  .grid-days { grid-template-columns: repeat(7, 1fr); }
  .grid-slots { grid-template-columns: repeat(5, 1fr); }
}

.day-pill {
  display: block; padding: .5rem 0; text-align: center; font-size: .875rem; line-height: 1.4;
  background: #fff; color: var(--ink); text-decoration: none;
  border: 1px solid #d1d5db; border-radius: .375rem;
}
.day-pill:hover { background: var(--brand-tint); }
.day-pill.is-selected { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.day-pill.is-disabled { background: #f3f4f6; color: #9ca3af; }
.day-pill.is-disabled:hover { background: #f3f4f6; }

.slot { position: relative; display: block; cursor: pointer; }
.slot-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot-pill {
  display: block; padding: .5rem 0; text-align: center; background: #fff;
  border: 1px solid #d1d5db; border-radius: .375rem;
}
.slot:hover .slot-pill { background: var(--brand-tint); }
.slot-input:checked + .slot-pill { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.slot-input:focus-visible + .slot-pill { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---- 順番待ち画面 ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: center; }
.big-number { margin: 0; font-size: 2rem; font-weight: 700; }
.big-number span { font-size: 1rem; font-weight: 400; }
.huge-number { margin: .25rem 0; font-size: 3.75rem; font-weight: 700; line-height: 1.1; color: var(--brand-dark); }
.huge-number span { font-size: 1.5rem; }
.call-banner { padding: .75rem; border-radius: .375rem; background: #ecfdf5; color: #047857; font-weight: 700; }
.ticket-box { text-align: center; }
.ticket-box p { margin: .25rem 0; }
