/* 共通の見た目。強い色は「行動してほしいボタン」だけに使う */
:root {
  --accent: #8a6d5a;
  --accent-ink: #fff;
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-2: #f1eeea;
  --line: #e4dfd8;
  --ink: #2b2723;
  --ink-2: #6b635b;
  --ink-3: #9a928a;
  --ok: #3f7d5a;
  --warn: #a8741a;
  --ng: #b04a3c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 4px 16px rgba(40, 30, 20, .05);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 15px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.4; margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(.95); }
.btn.danger { color: var(--ng); border-color: #e7c9c3; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }

.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--ng); font-weight: 600; margin-left: 4px; font-size: 12px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px;
}
textarea.input { min-height: 88px; resize: vertical; }
.input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: #e6f1ea; color: var(--ok); }
.badge.warn { background: #f7eedc; color: var(--warn); }
.badge.ng { background: #f6e3e0; color: var(--ng); }
.badge.accent { background: color-mix(in srgb, var(--accent) 14%, #fff); color: color-mix(in srgb, var(--accent) 85%, #000); }

.alert { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.alert.ng { background: #f6e3e0; color: #7c2e24; }
.alert.ok { background: #e6f1ea; color: #24543a; }
.alert.warn { background: #f7eedc; color: #6b4a10; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #2b2723; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 1000; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-back { position: fixed; inset: 0; background: rgba(30, 25, 20, .38); display: grid; place-items: center; z-index: 500; padding: 16px; }
.modal { background: var(--surface); border-radius: 16px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.modal h3 { margin-bottom: 12px; font-size: 18px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* 栞のロゴ（A1）：教科書体のやさしい「栞」＋先の丸いしおり紐（himo）＋SHIORI。フォントは Google Fonts（Klee One・Zen Maru Gothic）を使う文字だけ読む */
.brand-logo { display: inline-flex; align-items: flex-end; gap: 14px; color: #4a3f37; text-decoration: none; }
.brand-logo .k { font: 600 68px/1 "Klee One", "Hiragino Mincho ProN", serif; }
.brand-logo .himo { width: 12px; height: 88px; border-radius: 7px 7px 1px 1px; background: linear-gradient(#c9a58c, #b48a70); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%); margin-bottom: -4px; flex: none; }
.brand-logo .r { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.brand-logo .en { font: 500 16px/1 "Zen Maru Gothic", var(--font); letter-spacing: .38em; color: #b48a70; }
.brand-logo .jp { font: 500 14px/1 "Zen Maru Gothic", var(--font); letter-spacing: .14em; color: #8a8079; }
@media (max-width: 520px) {
  .brand-logo { gap: 10px; }
  .brand-logo .k { font-size: 50px; }
  .brand-logo .himo { height: 66px; width: 10px; }
  .brand-logo .en { font-size: 13px; }
  .brand-logo .jp { font-size: 11px; letter-spacing: .06em; }
}

/* 「予約システム by 栞」：目立たせず、でも読める濃さで（紹介ページへのリンク） */
.by-shiori { margin: 0; text-align: center; font-size: 12px; color: var(--ink-3); }
.by-shiori a { color: inherit; text-decoration: none; padding: 8px 4px; display: inline-block; }
.by-shiori a:hover { text-decoration: underline; }
.by-shiori .k { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 600; color: var(--ink-2); }
