:root {
  --brand: #7fc0b1;         /* 公式サイトのブランドカラー */
  --green: #337766;         /* ボタン・リンク（白文字のコントラスト比 4.5 以上） */
  --green-dark: #2b6a5c;
  --green-bg: #eef7f4;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --line: #dcdcdc;
  --bg: #fafaf7;
  --red: #b3372f;
  --orange: #b06a00;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px; line-height: 1.7;
}
a { color: var(--green-dark); }
.site-header { background: #fff; border-top: 4px solid var(--brand); border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.site-header .brand { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; text-decoration: none; min-width: 0; }
.site-header .logo { height: 30px; width: 170px; display: block; }
.site-header .tagline { color: var(--green-dark); font-size: clamp(10px, 3vw, 13px); font-weight: 700; line-height: 1.4; white-space: nowrap; }
.site-header .home-link { color: var(--green-dark); font-size: 12px; white-space: nowrap; align-self: flex-start; }
.places-link { margin: 16px 0 0; }
.wrap { max-width: 640px; margin: 0 auto; padding: 12px 16px 32px; }
.site-footer { text-align: center; font-size: 12px; color: var(--muted); padding: 24px 16px; border-top: 4px solid var(--brand); background: #fff; }
.site-footer p { margin: 4px 0; }

h1 { font-size: 22px; margin: 0 0 8px; line-height: 1.4; }
.lead { margin: 8px 0 16px; }
.sub { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.small { font-size: 13px; color: var(--muted); }
.notice { background: var(--green-bg); border-left: 4px solid var(--green); padding: 8px 12px; font-size: 14px; }
.alert { background: #fdecea; color: var(--red); padding: 8px 12px; border-radius: 6px; font-weight: 700; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.card.done h1 { color: var(--green-dark); }

/* 店舗一覧 */
.store-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.store-list a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.store-list a:hover { border-color: var(--green); }
.store-list strong { display: block; font-size: 17px; color: var(--green-dark); }
.store-list span { font-size: 13px; color: var(--muted); }

/* カレンダー */
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 8px; }
.cal-nav strong { font-size: 18px; }
.cal-nav a { text-decoration: none; font-size: 14px; padding: 6px 4px; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; }
.cal th { font-size: 12px; font-weight: 600; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cal td { border: 1px solid #eee; text-align: center; height: 58px; padding: 0; vertical-align: middle; }
.cal td a, .cal td > span { display: block; }
.cal td a { text-decoration: none; color: var(--text); height: 100%; padding: 6px 0; }
.cal td.open { background: #fff; }
.cal td.open a:hover { background: var(--green-bg); }
.cal td.open .m { color: var(--green); font-weight: 700; }
.cal td.full, .cal td.none, .cal td.empty { background: #f4f4f1; color: #aaa; }
.cal .d { display: block; font-size: 14px; }
.cal .m { display: block; font-size: 16px; line-height: 1.2; }
.cal .sun .d, .cal th.sun { color: #c0392b; }
.cal .sat .d, .cal th.sat { color: #2c6aa0; }
.cal td.none .d, .cal td.full .d { color: #aaa; }
.legend { font-size: 12px; color: var(--muted); margin: 8px 0 16px; }

/* 時間枠 */
.slot-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.slot-list li a, .slot-list li.ng { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 8px; }
.slot-list li a { background: #fff; border: 2px solid var(--green); text-decoration: none; color: var(--text); }
.slot-list li a:hover { background: var(--green-bg); }
.slot-list li.ng { background: #f1f1ee; color: #999; border: 2px solid transparent; }
.slot-list .time { font-size: 18px; font-weight: 700; }
.slot-list .rest { font-size: 13px; color: var(--green-dark); font-weight: 600; }
.slot-list li.ng .rest { color: #999; }

/* 予約内容 */
.summary { display: grid; grid-template-columns: 6.5em 1fr; gap: 6px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 12px 0; }
.summary dt { color: var(--muted); font-size: 14px; }
.summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.summary dd.no { font-family: ui-monospace, Menlo, monospace; font-size: 18px; letter-spacing: .05em; color: var(--green-dark); }

/* フォーム */
.form { display: grid; gap: 16px; margin-top: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.field em { font-style: normal; font-size: 11px; background: var(--red); color: #fff; border-radius: 3px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
.field small { color: var(--orange); }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; font-size: 16px; padding: 10px 12px; border: 1px solid #bbb; border-radius: 6px; background: #fff; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.radio { display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; font-weight: 400; }
.check { display: flex; align-items: center; gap: 8px; }
.err { color: var(--red); font-size: 13px; margin: 0; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ボタン */
.actions { display: grid; gap: 10px; margin: 16px 0; }
.btn { display: block; width: 100%; text-align: center; padding: 14px 16px; border-radius: 8px; font-size: 16px; font-weight: 700; text-decoration: none; border: 2px solid var(--green); background: #fff; color: var(--green-dark); cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); }
.btn.ghost { border-color: var(--line); color: var(--muted); font-weight: 500; }
.btn.danger { border-color: var(--red); color: var(--red); }
form.sending .btn { opacity: .6; pointer-events: none; }
.nw { white-space: nowrap; }
.center { text-align: center; margin: 0; color: var(--muted); }
.hint { color: var(--muted) !important; }
.choice { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #bbb; border-radius: 6px; padding: 12px; font-weight: 400; margin-bottom: 8px; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-bg); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0 0; border-bottom: 2px solid var(--green); }
.tabs a { text-align: center; padding: 10px 4px; text-decoration: none; font-size: 14px; color: var(--muted); background: #eee; border-radius: 8px 8px 0 0; margin-right: 4px; }
.tabs a.on { background: var(--green); color: #fff; font-weight: 700; }
.store-switch { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.store-switch label { font-weight: 700; white-space: nowrap; }
.store-switch select { font-size: 17px; font-weight: 700; color: var(--green-dark); border: 2px solid var(--green); }
.pair { display: inline-block; font-size: 10px; line-height: 1; padding: 2px 4px; border-radius: 3px; background: var(--green); color: #fff; font-weight: 700; margin-top: 2px; }
.cal td .pair { display: block; width: fit-content; margin: 2px auto 0; }
.menu-tabs { margin: 4px 0 12px; }
.member-box { background: var(--green-bg); border: 2px solid var(--green); border-radius: 8px; padding: 12px 14px; }
.member-box p { margin: 4px 0; }
.store-list { gap: 8px; }
.store-list li.store-card { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 8px 12px; }
.store-card .store-info-col { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.store-card strong { font-size: 16px; color: var(--green-dark); }
.store-card .addr { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-card a.store-detail { display: inline; background: none; border: 0; padding: 2px 0 0; font-size: 11.5px; color: var(--green-dark); text-decoration: underline; }
.store-card a.store-book { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 92px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: var(--green); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.store-card a.store-book:hover { background: var(--green-dark); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead-sm { margin: 0 0 10px; font-size: 14px; }
.day-nav { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: 14px; }
.day-nav a { text-decoration: none; padding: 6px 0; }
.opt { background: #999 !important; }
textarea { min-height: 96px; resize: vertical; }
.store-info { margin: 0 0 8px; }
.store-links { margin-top: 16px; }
.store-links h2 { font-size: 17px; margin: 0 0 8px; }
.store-links ul { margin: 8px 0; padding-left: 1.2em; }
.foot-stores a { white-space: nowrap; }
.tab-hint { margin: 8px 0 0; line-height: 1.6; }
.store-notes { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 8px 0 12px; font-size: 13px; line-height: 1.6; }
.store-notes p { margin: 2px 0; }
.store-notes details { margin-top: 6px; }
.store-notes summary { cursor: pointer; color: var(--green-dark); font-weight: 700; }
.store-notes details p { margin: 6px 0; }
.lang-switch { max-width: 640px; margin: 0 auto; padding: 6px 16px 0; text-align: right; font-size: 13px; }
.lang-switch a, .lang-switch strong { margin-left: 12px; }
.lang-switch strong { color: var(--green-dark); }
.store-card a.store-book span { color: inherit; font-size: inherit; display: inline; margin-left: 2px; }

/* 電話番号の補足・事前記入（枕カルテ）のご案内 */
label.field small.hint { display: block; font-size: 12px; margin-top: 4px; font-weight: normal; }
.karte { margin: 18px 0; padding: 14px 16px; border: 2px solid var(--green); border-radius: 10px; background: var(--green-bg); }
.karte h2 { margin: 0 0 6px; font-size: 16px; color: var(--green-dark); }
.karte p { margin: 6px 0; }
.karte a.karte-btn { background: var(--green); color: #fff; margin: 10px 0 6px; }
.karte a.karte-btn:hover { background: var(--green-dark); }
.karte .karte-multi { font-weight: bold; }
.karte .karte-btn.sub { display: inline-block; margin-top: 6px; background: #fff; color: var(--green-dark); border: 1px solid var(--green); }

/* ベッドの予約：ベッドのない店舗は押せない表示 */
.store-list li.store-card.disabled { background: #f3f3f3; }
.store-card.disabled strong, .store-card.disabled .addr { color: #999; }
.store-card span.store-book.off { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 92px; min-height: 44px; padding: 0 12px; border-radius: 22px; background: #ddd; color: #777; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: not-allowed; }
.bed-head { font-size: 18px; margin: 4px 0 6px; color: var(--green-dark); }

.choice-text { display: block; flex: 1; min-width: 0; }
.choice-note { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.free-note, .hint.free-note { display: block; color: var(--green-dark) !important; font-weight: 700; }

/* 店舗一覧：はじめての方への案内・最寄り駅と駐車場 */
.first-guide { margin: 0 0 10px; padding: 8px 12px 8px; background: #eef6f3; border-radius: 10px; }
.first-guide h2 { margin: 0 0 3px; font-size: 14px; color: var(--green-dark); }
.first-guide ul { margin: 0; padding: 0 0 0 1.1em; font-size: 12.5px; line-height: 1.45; }
.first-guide li { margin: 0; }
.first-guide li strong { color: var(--green-dark); }
.store-card .access { font-size: 11.5px; color: var(--text); line-height: 1.35; }
