:root {
  --green: #2f4a3a;
  --green-2: #46684f;
  --green-soft: #e8efe9;
  --accent: #a8743a;
  --accent-soft: #f6eee3;
  --ink: #2b2b2b;
  --sub: #666;
  --line: #ddd8cc;
  --bg: #ffffff;
  --panel: #faf8f3;
  --error: #b3261e;
  --error-soft: #fbeceb;
  --ok: #2e7d32;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: auto; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 920px; margin: 0 auto; padding: 24px 16px 40px; }
.in-frame .wrap { padding-top: 8px; }
h1 { font-size: 22px; margin: 0 0 4px; color: var(--green); letter-spacing: .04em; }
h2 { font-size: 18px; margin: 0 0 12px; color: var(--green); }
h3 { font-size: 16px; margin: 0 0 8px; }
p { margin: 0 0 10px; }
a { color: var(--green-2); }
.muted { color: var(--sub); }
.small { font-size: 13px; }
.lead { color: var(--sub); margin-bottom: 18px; }

/* 進行表示 */
.steps { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: s; }
.steps li { flex: 1; text-align: center; font-size: 12px; color: #999; padding: 8px 2px 6px; border-bottom: 3px solid #e6e2d8; line-height: 1.3; }
.steps li.on { color: var(--green); border-color: var(--green); font-weight: 700; }
.steps li.done { color: var(--green-2); border-color: #a9bfae; }
@media (max-width: 520px) { .steps li { font-size: 10.5px; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card.white { background: #fff; }

/* フォーム */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 680px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field > label, .field > .label { font-size: 13px; font-weight: 700; color: var(--ink); }
.req::after { content: "必須"; font-size: 10.5px; color: #fff; background: var(--accent); border-radius: 3px; padding: 1px 5px; margin-left: 6px; font-weight: 400; vertical-align: 1px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  font: inherit; font-size: 16px; /* iOSで拡大されないよう16px */
  padding: 9px 10px; border: 1px solid #c9c3b5; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; min-height: 44px;
}
textarea { min-height: 88px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #9cc2a5; outline-offset: 1px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
.inline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inline select { width: auto; min-width: 88px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.err-msg { color: var(--error); font-size: 13px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); background: var(--error-soft); }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; font-size: 16px; border-radius: 999px; padding: 12px 28px; min-height: 48px; cursor: pointer; border: 1px solid var(--green); background: var(--green); color: #fff; text-decoration: none; }
.btn:hover { background: var(--green-2); }
.btn.secondary { background: #fff; color: var(--green); }
.btn.secondary:hover { background: var(--green-soft); }
.btn.small { font-size: 14px; padding: 8px 18px; min-height: 40px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.actions.between { justify-content: space-between; }

/* カウンター */
.counter { display: inline-flex; align-items: center; border: 1px solid #c9c3b5; border-radius: 6px; background: #fff; overflow: hidden; }
.counter button { width: 44px; height: 44px; border: 0; background: #f3f0e8; font-size: 20px; cursor: pointer; color: var(--green); }
.counter button[disabled] { color: #bbb; cursor: default; }
.counter output { min-width: 46px; text-align: center; font-weight: 700; font-size: 16px; }

/* カレンダー */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 8px; }
.cal-head strong { font-size: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal .wd { text-align: center; font-size: 12px; color: var(--sub); padding: 4px 0; }
.cal .wd.sun { color: #c0392b; } .cal .wd.sat { color: #2c64a8; }
.cal button.day { border: 1px solid var(--line); background: #fff; border-radius: 6px; min-height: 58px; padding: 4px 2px; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; line-height: 1.25; }
.cal button.day .d { font-size: 14px; font-weight: 700; }
.cal button.day .s { font-size: 13px; }
.cal button.day .p { font-size: 10.5px; color: var(--sub); }
.cal button.day.hol .d, .cal button.day.sun .d { color: #c0392b; }
.cal button.day.sat .d { color: #2c64a8; }
.cal button.day.none { background: #f2f1ee; color: #aaa; cursor: not-allowed; }
.cal button.day.none .d { color: #aaa; }
.cal button.day.sel { outline: 3px solid var(--accent); background: var(--accent-soft); }
.cal button.day.range { background: var(--accent-soft); }
.cal .blank { min-height: 58px; }
.cal-legend { font-size: 12px; color: var(--sub); margin-top: 6px; }
@media (max-width: 520px) { .cal button.day { min-height: 52px; } .cal button.day .p { display: none; } }

/* プラン一覧 */
.room { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.room-head { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px; }
@media (max-width: 680px) { .room-head { grid-template-columns: 112px 1fr; gap: 12px; padding: 12px; } .room-head .thumbs { display: none; } .room-name { font-size: 15.5px; } }
.room-head img, .gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: #eee; display: block; }
.thumbs { display: flex; gap: 4px; margin-top: 4px; overflow-x: auto; }
.thumbs img { width: 52px; height: 40px; object-fit: cover; border-radius: 4px; cursor: pointer; opacity: .8; flex: none; }
.thumbs img.on { outline: 2px solid var(--accent); opacity: 1; }
.room-name { font-size: 17px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.tag { font-size: 12px; background: var(--green-soft); color: var(--green); border-radius: 4px; padding: 1px 8px; }
.tag.accent { background: var(--accent-soft); color: #7a5222; }
.desc { font-size: 14px; color: #444; }
.desc.clamp { max-height: 7.5em; overflow: hidden; position: relative; }
.desc.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.more { background: none; border: 0; color: var(--green-2); font: inherit; font-size: 13px; padding: 4px 0; cursor: pointer; text-decoration: underline; }
.plan { border-top: 1px solid var(--line); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
@media (max-width: 680px) { .plan { grid-template-columns: 1fr; } }
.plan-name { font-weight: 700; margin-bottom: 2px; }
.price { text-align: right; }
@media (max-width: 680px) { .price { text-align: left; } }
.price .total { font-size: 20px; font-weight: 700; color: var(--accent); }
.price .note { font-size: 12px; color: var(--sub); }

/* 表 */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.tbl th { background: #f3f0e8; width: 34%; font-weight: 700; }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl.price-tbl th { width: auto; }
.tbl tr.sum td, .tbl tr.sum th { font-weight: 700; background: var(--accent-soft); }
@media (max-width: 520px) { .tbl th { width: 38%; } }

/* お知らせ */
.notice { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 12px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.alert { border-left: 4px solid var(--error); background: var(--error-soft); color: #7d1a14; padding: 12px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.success { border-left: 4px solid var(--ok); background: #eaf5ea; padding: 14px 16px; border-radius: 6px; margin-bottom: 14px; }
.scroll-box { max-height: 220px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 13px; }

.bookno { font-size: 28px; font-weight: 700; letter-spacing: .08em; color: var(--green); margin: 6px 0; }
.center { text-align: center; }
.loading { text-align: center; padding: 40px 0; color: var(--sub); }
.spinner { width: 34px; height: 34px; border: 3px solid #ddd; border-top-color: var(--green); border-radius: 50%; animation: sp 0.9s linear infinite; margin: 0 auto 10px; }
@keyframes sp { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ts-box { min-height: 70px; display: flex; justify-content: center; margin: 14px 0 4px; }
.summary-bar { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; background: var(--green-soft); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.summary-bar b { color: var(--green); }
hr.sep { border: 0; border-top: 1px dashed var(--line); margin: 16px 0; }

.noimg-box { width: 100%; aspect-ratio: 4/3; border-radius: 8px; background: #f0ede5; color: #a39d8f; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.plan-more { border-top: 1px solid var(--line); padding: 8px 16px; text-align: center; }
.card.filter { padding: 14px 16px 4px; }
input[type=search] { font: inherit; font-size: 16px; padding: 9px 10px; border: 1px solid #c9c3b5; border-radius: 6px; background: #fff; width: 100%; min-height: 44px; }
@media (max-width: 680px) { .card.filter .field[style] { grid-column: span 2; } }
.gallery.noimg .noimg-box { font-size: 11px; }
@media (max-width: 680px) {
  .plan { gap: 6px; padding: 12px; }
  .price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; }
  .price .note { order: 2; flex-basis: 100%; }
  .price .btn { order: 1; margin-top: 0 !important; }
}
.room-head.nopic { grid-template-columns: 1fr; }
