/* 予約画面（booking.jfsmi.co.jp）。新しいホームページの色（白・黒鉛・群青）にそろえる。スクリプトは使わない。 */
:root {
  --ink: #141513; --ink-2: #2d2f2c; --mute: #5d5f5a; --line: #e2ded5; --paper: #f6f4ef;
  --blue: #2236e0; --blue-2: #1a29b8; --blue-tint: #eceefc; --red: #b3261e; --ok: #1d6b4c; --ok-bg: #e5f2eb;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "YuGothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink-2); font-family: var(--sans); font-size: 16px; line-height: 1.8; letter-spacing: .02em; }
a { color: var(--blue); }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

header.site { background: #fff; border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; min-height: 64px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.3; padding: 10px 0; }
.brand .name { font-weight: 700; font-size: 19px; letter-spacing: .06em; }
.brand .sub { font-size: 12px; color: var(--mute); }

main.wrap { background: #fff; margin-top: 24px; margin-bottom: 24px; padding: 32px 40px 40px; border: 1px solid var(--line); border-radius: 6px; }
.page-title { font-size: 22px; color: var(--ink); margin: 0 0 16px; }

.hero { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; margin-bottom: 32px; }
.photo { margin: 0; position: relative; }
.photo img { display: block; width: 240px; height: auto; border-radius: 4px; }
.photo figcaption { position: absolute; left: 8px; top: 8px; background: #fff; border-radius: 3px; padding: 0 8px; font-size: 12px; color: var(--ink); line-height: 1.8; }
.intro h1 { font-size: 28px; line-height: 1.4; color: var(--ink); margin: 0 0 12px; letter-spacing: .04em; }
.lead { color: var(--blue); font-weight: 700; font-size: 17px; margin: 0 0 12px; }
.notes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.notes li { background: var(--blue-tint); color: var(--blue-2); border-radius: 999px; padding: 2px 14px; font-size: 14px; font-weight: 600; }

.notice { background: #fff4e5; border: 1px solid #f0c27a; color: #6b4300; border-radius: 6px; padding: 12px 16px; }
.ok { background: var(--ok-bg); color: var(--ok); border-radius: 6px; padding: 10px 16px; }
.errors { background: #fdecea; border: 1px solid #f3b8b3; color: #7a1d16; border-radius: 6px; padding: 10px 16px; margin: 0 0 16px; }
.errors p { margin: 0; font-weight: 700; }
.errors ul { margin: 4px 0 0; padding-left: 1.2em; }

/* 週の表 */
.cal { background: #f7f7f5; border-radius: 6px; padding: 24px 28px 28px; }
.cal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-head h2 { font-size: 17px; color: var(--ink); margin: 0; line-height: 1.6; }
.cal-head .dur { font-weight: 600; }
.legend { margin: 4px 0 0; font-size: 13px; color: var(--mute); }
.lg-o { color: var(--blue); font-weight: 700; }
.weeknav { display: flex; gap: 10px; }
.btn { display: inline-block; border: 1.5px solid var(--blue); color: var(--blue); background: #fff; border-radius: 999px; padding: 6px 18px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--blue-tint); }
.btn.off { border-color: #c9cdf3; color: #a6acea; background: #fff; }
.btn.ghost { border-color: var(--line); color: var(--ink-2); }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
table.week { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.week thead th { background: var(--blue-tint); color: var(--ink); font-size: 15px; font-weight: 700; padding: 12px 2px; text-align: center; }
table.week thead th small { font-size: 12px; font-weight: 600; }
table.week thead th.sat { color: var(--blue-2); }
table.week thead th.sun { color: var(--red); }
table.week th.corner { width: 88px; }
table.week th.time { font-weight: 700; color: var(--ink); text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
table.week td, table.week tbody th { padding: 4px 5px; text-align: center; height: 44px; border-top: 1px solid #f0eee8; }
.o { display: block; background: var(--blue); color: #fff; border-radius: 4px; text-decoration: none; font-size: 18px; line-height: 32px; height: 34px; font-weight: 400; }
.o:hover, .o:focus-visible { background: var(--blue-2); outline: none; }
.o:focus-visible { box-shadow: 0 0 0 3px #b8c0f7; }
.x { color: #8c8f88; font-size: 18px; }
.n { color: #c3c5bf; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: 4px; padding: 20px; margin: 0; }

/* 入力・確認 */
.when { background: var(--blue-tint); border-radius: 6px; padding: 10px 16px; }
.form { display: flex; flex-direction: column; gap: 16px; max-width: 620px; margin: 16px 0; }
.form.back { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.lbl { font-weight: 700; color: var(--ink); font-size: 15px; }
.req, .opt { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; border-radius: 3px; padding: 0 6px; line-height: 1.8; vertical-align: 1px; }
.req { background: var(--red); color: #fff; }
.opt { background: #e9e7e1; color: var(--mute); }
input:not([type=checkbox]), textarea { font: inherit; font-size: 16px; width: 100%; padding: 10px 12px; border: 1px solid #c6c1b6; border-radius: 4px; background: #fff; color: var(--ink); }
select { font: inherit; font-size: 16px; padding: 10px 8px; border: 1px solid #c6c1b6; border-radius: 4px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid #b8c0f7; border-color: var(--blue); }
.area-row { display: flex; gap: 8px; }
.area-row select { flex: 0 0 11em; }
.area-row input { flex: 1 1 auto; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 4px; flex: none; }
button { font: inherit; font-weight: 700; border-radius: 4px; padding: 12px 22px; cursor: pointer; border: 1px solid #c6c1b6; background: #fff; color: var(--ink); }
button.primary { background: var(--blue); border-color: var(--blue); color: #fff; font-size: 17px; padding: 14px 22px; }
button.primary:hover { background: var(--blue-2); }
button.danger { background: var(--red); border-color: var(--red); color: #fff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.summary { display: grid; grid-template-columns: 9em 1fr; gap: 8px 16px; background: #f7f7f5; border-radius: 6px; padding: 16px 20px; margin: 16px 0; }
.summary dt { color: var(--mute); font-size: 14px; }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; }
.done .big, .big { font-size: 20px; font-weight: 700; color: var(--ink); }
.small { font-size: 13px; color: var(--mute); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 16px 0; }

footer.site { color: var(--mute); font-size: 13px; padding: 8px 0 32px; }
footer.site p { margin: 2px 0; }
footer.site a { color: var(--mute); margin-right: 1em; }

@media (max-width: 720px) {
  main.wrap { margin: 0; border: 0; border-radius: 0; padding: 20px 12px 28px; }
  .hero { grid-template-columns: 112px 1fr; gap: 16px; align-items: start; margin-bottom: 20px; }
  .photo img { width: 112px; }
  .photo figcaption { display: none; }
  .intro h1 { font-size: 18px; margin-bottom: 6px; letter-spacing: .02em; word-break: keep-all; overflow-wrap: anywhere; }
  .lead { font-size: 14px; font-weight: 600; }
  .notes li { font-size: 12.5px; padding: 1px 10px; }
  .cal { padding: 14px 8px 16px; margin: 0 -4px; }
  .cal-head h2 { font-size: 15px; }
  .cal-head .dur { display: block; font-size: 13px; }
  .weeknav { width: 100%; justify-content: space-between; }
  table.week th.corner { width: 46px; }
  table.week thead th { font-size: 12.5px; padding: 8px 0; line-height: 1.35; }
  table.week thead th small { display: block; font-size: 11px; }
  table.week th.time { font-size: 12.5px; }
  table.week td, table.week tbody th { padding: 3px 2px; height: 40px; }
  .o { font-size: 16px; line-height: 30px; height: 32px; }
  .summary { grid-template-columns: 1fr; gap: 2px; }
  .summary dd { margin-bottom: 8px; }
}
