:root {
  --brand: #12b3a6;
  --brand-dark: #0c8d83;
  --brand-soft: #e6f7f5;
  --ink: #1c2b2f;
  --ink-soft: #5c6f75;
  --line: #e2e9ea;
  --bg: #f6f9f9;
  --white: #fff;
  --danger: #d9534f;
  --danger-soft: #fdeceb;
  --warn: #b8860b;
  --warn-soft: #fdf6e3;
  --ok: #1f9d55;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(18, 60, 60, .07);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand-dark); }

/* ---------- レイアウト ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .inner {
  max-width: 1040px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.logo { font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink); letter-spacing: .01em; }
.logo span { color: var(--brand); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .nav button {
  font-size: 14px; text-decoration: none; color: var(--ink-soft);
  padding: 7px 12px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font-family: inherit;
}
.nav a:hover, .nav button:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 28px 16px 72px; }
.wrap.narrow { max-width: 720px; }

.site-footer {
  border-top: 1px solid var(--line); background: var(--white);
  padding: 24px 16px; text-align: center; color: var(--ink-soft); font-size: 13px;
}
.site-footer a { color: var(--ink-soft); margin: 0 8px; }

/* ---------- パーツ ---------- */
h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: .01em; }
h2 { font-size: 18px; margin: 32px 0 12px; }
h3 { font-size: 15px; margin: 20px 0 8px; }
.lead { color: var(--ink-soft); margin: 0 0 24px; font-size: 15px; }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.card.tight { padding: 16px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }

.btn {
  display: inline-block; background: var(--brand); color: #fff; border: 0;
  padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; font-family: inherit; text-align: center;
  transition: background .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { background: #c4d1d2; cursor: not-allowed; }
.btn.block { display: block; width: 100%; }
.btn.ghost { background: #fff; color: var(--brand-dark); border: 1.5px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.small { padding: 8px 16px; font-size: 13px; }
.btn.link { background: none; color: var(--ink-soft); padding: 8px 4px; font-weight: 400; text-decoration: underline; }

.badge {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 600;
}
.badge.gray { background: #eef1f2; color: var(--ink-soft); }
.badge.ok { background: #e6f6ec; color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }

.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.alert.error { background: var(--danger-soft); color: #a33; border: 1px solid #f3c9c7; }
.alert.info { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #c7e9e5; }
.alert.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #f0e2b8; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- フォーム ---------- */
.field { margin-bottom: 18px; }
.field > label, .field > .label {
  display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px;
}
.req { color: var(--danger); font-size: 12px; margin-left: 6px; font-weight: 600; }
.opt { color: var(--ink-soft); font-size: 12px; margin-left: 6px; font-weight: 400; }
.hint { font-size: 12.5px; color: var(--ink-soft); margin: 4px 0 0; }

input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 84px; resize: vertical; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
@media (max-width: 560px) { .row { flex-direction: column; gap: 18px; } }

.choices { display: flex; flex-direction: column; gap: 8px; }
.choices.inline { flex-direction: row; flex-wrap: wrap; }
.choice {
  display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  font-size: 14.5px; line-height: 1.5;
}
.choice:hover { border-color: var(--brand); }
.choice input { margin: 4px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; margin-bottom: 10px; }
.consent input { margin-top: 5px; accent-color: var(--brand); }

/* ---------- ステップ ---------- */
.steps { display: flex; gap: 4px; margin: 0 0 24px; overflow-x: auto; padding-bottom: 4px; }
.steps li {
  list-style: none; flex: 1; min-width: 84px; text-align: center; font-size: 12px;
  color: var(--ink-soft); padding: 9px 4px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px;
}
.steps li .n { display: block; font-weight: 700; font-size: 15px; }
.steps li.done { background: var(--brand-soft); color: var(--brand-dark); border-color: #c7e9e5; }
.steps li.now { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }

/* ---------- 予約カレンダー ---------- */
.day-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; }
.day-tab {
  flex: 0 0 auto; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; cursor: pointer; font-family: inherit; color: var(--ink);
  white-space: nowrap;
}
.day-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.day-tab.sun { color: var(--danger); }
.day-tab.sat { color: #2b7bb9; }
.day-tab.active.sun, .day-tab.active.sat { color: #fff; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot {
  padding: 13px 6px; text-align: center; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-size: 15px; cursor: pointer; font-family: inherit; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.slot:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.slot.selected { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.slot:disabled { color: #c0cbcd; background: #f7f9f9; cursor: not-allowed; }
.slot .mark { display: block; font-size: 11px; opacity: .85; }

.sticky-cta {
  position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--line);
  padding: 14px 16px; margin: 24px -16px -72px; box-shadow: 0 -3px 14px rgba(0,0,0,.05);
}

/* ---------- 一覧・テーブル ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f2f6f6; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
tr.alert-row td { background: var(--danger-soft); }

.list-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: 0; }
.list-item .main { flex: 1; min-width: 0; }
.muted { color: var(--ink-soft); font-size: 13.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.thumb {
  aspect-ratio: 1 / 1; margin: -4px 0 14px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.thumb-empty { background: #f4f7f7; color: #b4c3c5; font-size: 12.5px; letter-spacing: .05em; }
.thumb-large { aspect-ratio: 4 / 3; max-width: 420px; margin: 0 auto 18px; }

.product-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.product-card .price { font-size: 21px; font-weight: 700; margin: 10px 0 2px; }
.product-card .price small { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.product-card .desc { font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.product-card .btn { margin-top: 14px; }

.meet-box {
  background: var(--brand-soft); border: 1px solid #c7e9e5; border-radius: 12px;
  padding: 18px; text-align: center;
}
.meet-box .url { font-size: 14px; word-break: break-all; margin: 8px 0 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; }
.stat .n { font-size: 26px; font-weight: 700; line-height: 1.3; }
.stat .l { font-size: 12.5px; color: var(--ink-soft); }

.qa { border-bottom: 1px dashed var(--line); padding: 9px 0; font-size: 14px; }
.qa:last-child { border-bottom: 0; }
.qa .q { color: var(--ink-soft); font-size: 12.5px; }
.qa .a { font-weight: 600; }
.qa.flagged .a { color: var(--danger); }

.env-note { font-size: 12px; color: var(--ink-soft); background: #fff8e1; border: 1px dashed #e6d48a; padding: 8px 12px; border-radius: 8px; margin-bottom: 16px; }
