/* たかみち針灸接骨院 オンライン予約 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #1e8a5e;
  --green-dark: #166b49;
  --green-pale: #e8f5ef;
  --ink: #1a1a1a;
  --gray: #666;
  --line: #e2e8e5;
  --bg: #f6f8f7;
  --ng: #c9ccd1;
  --danger: #d84343;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner {
  max-width: 860px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.clinic-sub { font-size: 11px; color: var(--gray); display: block; line-height: 1.2; }
.clinic-name h1 { font-size: 19px; font-weight: 900; letter-spacing: .02em; }
.header-tel { text-decoration: none; text-align: right; color: var(--ink); }
.tel-label { display: block; font-size: 10px; color: var(--gray); line-height: 1.2; }
.tel-number { font-size: 18px; font-weight: 900; color: var(--green-dark); letter-spacing: .02em; }

/* hero */
.hero-band { background: var(--green); color: #fff; text-align: center; padding: 26px 16px 24px; }
.hero-band h2 { font-size: 24px; font-weight: 900; letter-spacing: .06em; }
.hero-band p { font-size: 13px; opacity: .92; margin-top: 4px; }

/* steps nav */
.steps { background: var(--bg); border-bottom: 1px solid var(--line); }
.steps ol {
  list-style: none; display: flex; max-width: 860px; margin: 0 auto;
  padding: 10px 8px; gap: 2px;
}
.steps li {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: #9aa5a0; position: relative;
}
.steps li .num {
  width: 26px; height: 26px; border-radius: 50%; background: #d8dedb; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.steps li.active { color: var(--green-dark); font-weight: 700; }
.steps li.active .num { background: var(--green); }
.steps li.done .num { background: var(--green-dark); }
.steps li.done { color: var(--green-dark); }

/* layout */
.container { max-width: 860px; margin: 0 auto; padding: 26px 16px 60px; }
.panel-title { font-size: 19px; font-weight: 900; margin-bottom: 14px; }
.panel-title.center { text-align: center; }
.panel-note { font-size: 13px; color: var(--gray); margin: -8px 0 14px; }

/* course cards */
.course-list { display: flex; flex-direction: column; gap: 12px; }
.course-card {
  border: 2px solid var(--line); border-radius: 12px; padding: 16px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
  background: #fff; text-align: left; width: 100%;
  font-family: inherit; font-size: inherit; color: inherit;
}
.course-card:hover { border-color: var(--green); box-shadow: 0 2px 10px rgba(30,138,94,.12); }
.course-head { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.course-name { font-size: 16px; font-weight: 700; flex: 1; min-width: 200px; }
.course-badge {
  background: #fff3e0; color: #ef6c00; font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}
.course-meta { display: flex; gap: 14px; margin-top: 6px; font-size: 13px; color: var(--gray); flex-wrap: wrap; }
.course-meta strong { color: var(--green-dark); font-weight: 700; }
.course-desc { font-size: 13px; color: var(--gray); margin-top: 8px; white-space: pre-line; }
.course-cta { color: var(--green); font-weight: 700; font-size: 13px; margin-top: 10px; display: inline-block; }

/* staff cards */
.staff-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.staff-card {
  border: 2px solid var(--line); border-radius: 12px; padding: 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  background: #fff; text-align: left; width: 100%;
  font-family: inherit; font-size: inherit; color: inherit;
}
.staff-card:hover { border-color: var(--green); box-shadow: 0 2px 10px rgba(30,138,94,.12); }
.staff-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-pale); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
}
.staff-card.nominate .staff-avatar { background: var(--green); color: #fff; font-size: 22px; }
.staff-info { min-width: 0; }
.staff-name { font-weight: 700; font-size: 15px; }
.staff-role { font-size: 11px; color: var(--green-dark); font-weight: 700; }
.staff-intro { font-size: 12px; color: var(--gray); line-height: 1.5; margin-top: 2px; }

/* selection summary */
.selection-summary {
  background: var(--green-pale); border-radius: 10px; padding: 10px 14px;
  font-size: 13px; margin-bottom: 16px; line-height: 1.9;
}
.selection-summary b { color: var(--green-dark); }

/* week nav + grid */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.week-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--green-dark); font-family: inherit;
}
.week-btn:disabled { color: #b9c2be; cursor: default; }
.week-range { font-weight: 700; font-size: 14px; }

.grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; }
.slot-grid { border-collapse: collapse; width: 100%; min-width: 640px; background: #fff; }
.slot-grid th, .slot-grid td {
  border: 1px solid var(--line); text-align: center; font-size: 13px;
  padding: 0; height: 40px; min-width: 76px;
}
.slot-grid th.time-col, .slot-grid td.time-col {
  min-width: 64px; font-weight: 700; background: var(--bg); font-size: 12px;
  position: sticky; left: 0; z-index: 1;
}
.slot-grid thead th { background: var(--bg); font-size: 12px; padding: 6px 2px; height: auto; line-height: 1.4; }
.slot-grid thead th .dow { display: block; font-size: 11px; color: var(--gray); }
.slot-grid thead th.sat .dow { color: #2a6bd8; }
.slot-grid thead th.sun .dow { color: var(--danger); }
.slot-grid td.lunch-row { background: var(--bg); color: #b0b8b4; font-size: 11px; height: 26px; }
.slot-cell { width: 100%; height: 100%; border: 0; background: none; cursor: default; font-size: 15px; font-family: inherit; display: flex; align-items: center; justify-content: center; }
td .slot-cell.ok { color: var(--green); font-weight: 900; cursor: pointer; }
td:has(.slot-cell.ok):hover { background: var(--green-pale); }
.slot-cell.ng { color: var(--ng); }
.slot-cell.off { color: #d5dad7; }
.grid-legend { display: flex; gap: 18px; font-size: 12px; color: var(--gray); margin-top: 10px; flex-wrap: wrap; }
.grid-legend .mark { font-style: normal; font-weight: 900; margin-right: 3px; }
.grid-legend .ok { color: var(--green); }
.grid-legend .ng { color: var(--ng); }
.grid-legend .off { color: #d5dad7; }
.grid-note { font-size: 12px; color: var(--gray); margin-top: 8px; }

/* form */
.field { margin-bottom: 18px; }
.field label, .field .field-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.req, .opt {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  vertical-align: 2px; margin-left: 6px;
}
.req { background: var(--danger); color: #fff; }
.opt { background: #eef1f0; color: var(--gray); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 16px; font-family: inherit; background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field input.invalid, .field textarea.invalid { border-color: var(--danger); background: #fff7f7; }
.field-help { font-size: 12px; color: var(--gray); margin-top: 4px; }
.radio-row { display: flex; gap: 10px; }
.radio-pill { cursor: pointer; }
.radio-pill input { display: none; }
.radio-pill span {
  display: inline-block; padding: 10px 22px; border: 1.5px solid var(--line);
  border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--gray);
}
.radio-pill input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* buttons */
.panel-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; align-items: center; }
.btn-back {
  border: 1px solid var(--line); background: #fff; color: var(--gray);
  border-radius: 8px; padding: 12px 18px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.btn-primary {
  border: 0; background: var(--green); color: #fff; border-radius: 8px;
  padding: 14px 28px; font-size: 15px; font-weight: 900; cursor: pointer;
  font-family: inherit; letter-spacing: .02em;
  box-shadow: 0 3px 0 var(--green-dark);
}
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-dark); }
.btn-primary:disabled { opacity: .55; cursor: default; }
.btn-lg { padding: 16px 34px; font-size: 17px; }

/* confirm */
.confirm-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.confirm-list > div { display: flex; border-bottom: 1px solid var(--line); }
.confirm-list > div:last-child { border-bottom: 0; }
.confirm-list dt {
  width: 128px; flex-shrink: 0; background: var(--bg); padding: 12px 14px;
  font-size: 13px; font-weight: 700; color: var(--gray);
}
.confirm-list dd { padding: 12px 14px; font-size: 14px; flex: 1; word-break: break-word; }
.confirm-list dd b { color: var(--green-dark); }
.confirm-note { font-size: 13px; color: var(--gray); margin-top: 14px; }
.error-msg { color: var(--danger); font-weight: 700; font-size: 14px; margin-top: 14px; }

/* done */
.done-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green);
  color: #fff; font-size: 34px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; margin: 10px auto 16px;
}
.done-note { text-align: center; margin-top: 20px; font-size: 14px; }
.done-tel {
  display: inline-block; margin-top: 10px; font-size: 20px; font-weight: 900;
  color: var(--green-dark); text-decoration: none;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg);
  text-align: center; padding: 26px 16px; font-size: 12px; color: var(--gray);
}
.site-footer .f-name { font-weight: 900; font-size: 14px; color: var(--ink); }

@media (max-width: 560px) {
  .clinic-name h1 { font-size: 16px; }
  .tel-number { font-size: 15px; }
  .hero-band h2 { font-size: 20px; }
  .steps li .label { font-size: 10px; }
  .confirm-list dt { width: 100px; }
}

/* --- 共栄 追加 --- */
.notice-band {
  max-width: 860px; margin: 12px auto 0; padding: 12px 16px;
  background: #fff8e6; border: 1px solid #f0d9a0; border-radius: 8px;
  font-size: 13.5px; line-height: 1.7;
}
.notice-band p { margin: 0; }
.notice-band p + p { margin-top: 6px; }
.course-meta .cap { color: var(--danger); }
