/* ════════════════════════════════════════════════
   Inquire — カウンセリング予約フォーム + 出勤予定表
   Quiet Evidence: 明朝・広い余白・線は最小限・墨/オフホワイト。
   ════════════════════════════════════════════════ */

.inquire {
  max-width: 1120px;
  margin: 0 auto;
  padding: 128px 24px 128px;
}

/* ─── Page header（journal と同じ組み＝英大見出し＋和文小、配置は中央） ─── */
.inquire__header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 108px;
}
.inquire__label {
  font-family: var(--serif-en);
  font-size: 12px;
  font-style: italic;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 28px;
}
.inquire__title {
  font-family: var(--serif-en);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.05;
  margin: 0;
}
.inquire__title .jp {
  display: block;
  font-family: var(--serif-jp);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 400;
  color: var(--sub);
  margin-top: 18px;
  letter-spacing: .2em;
}
.inquire__lead {
  max-width: 640px;
  font-size: 15px;
  line-height: 2.0;
  color: var(--sub);
  margin: 32px auto 0;
}

/* ─── Layout: 既定は1カラム（スマホ／タブレット）。PCは2カラム（後述） ─── */
.inquire__grid { display: block; }

/* ─── Schedule（全幅・中央寄せ） ─── */
.schedule {
  max-width: 860px;
  margin: 0 auto 88px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.schedule__head {
  text-align: center;
  margin-bottom: 40px;
}
.schedule__head .section__label { justify-content: center; }
.schedule__title {
  font-family: var(--serif-jp);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  letter-spacing: .03em;
  margin: 8px 0 0;
}
.schedule__lead {
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: .02em;
  color: var(--sub);
  margin: 12px 0 0;
}
.schedule__list { list-style: none; margin: 0; padding: 0; }
.schedule__item {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.schedule__date {
  flex: 0 0 auto;
  min-width: 82px;
  font-family: var(--serif-jp);
  font-size: 14px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.schedule__wd { color: var(--sub); font-size: 12px; }
.schedule__body { display: flex; flex-direction: column; gap: 2px; }
.schedule__name {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}
.schedule__time {
  font-family: var(--serif-en);
  font-size: 12px;
  font-style: italic;
  letter-spacing: .06em;
  color: var(--sub);
}
.schedule__note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--sub);
  margin: 18px 0 0;
}

/* Fallback (iCal 取得不可時): 各院の定例スケジュール */
.schedule__fallback { list-style: none; margin: 0; padding: 0; }
.schedule__fallback .schedule__item { flex-direction: column; gap: 4px; }
.schedule__sched { font-size: 13px; color: var(--sub); }

/* ─── 出勤カレンダー: 1ヶ月表示＋前月/次月ページ送り ───
   Quiet Evidence: 罫線ボックスや色チップは使わず、余白・明朝・Cormorant で静かに。 */
.cal-nav {
  max-width: 620px;
  margin: 0 auto;
}
.cal-nav__head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 22px;
  margin-bottom: 28px;
}
.cal-nav__cap {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-width: 190px;
  justify-content: center;
}
.cal-nav__m {
  font-family: var(--serif-jp);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .05em;
}
.cal-nav__en {
  font-family: var(--serif-en);
  font-size: 14px;
  font-style: italic;
  letter-spacing: .1em;
  color: var(--sub);
}
.cal-nav__btn {
  border: 0;
  background: none;
  color: var(--sub);
  font-family: var(--serif-en);
  font-size: 26px;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
  transition: color .2s, opacity .2s;
}
.cal-nav__btn:hover { color: var(--ink); }
.cal-nav__btn:disabled { opacity: .22; cursor: default; }

.cal[hidden] { display: none; }

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
}
.cal__wd {
  text-align: center;
  font-family: var(--serif-en);
  font-size: 11px;
  font-style: italic;
  letter-spacing: .1em;
  color: var(--sub);
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.cal__cell {
  position: relative;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 6px;
}
.cal__cell--blank { visibility: hidden; }
.cal__daynum {
  font-family: var(--serif-en);
  font-size: 15px;
  line-height: 1;
  color: #bdbab2;
}
.cal__cell.has-event .cal__daynum { color: var(--ink); }
.cal__cell.is-today {
  background: rgba(14, 38, 56, .038);
  border-radius: 3px;
}
.cal__cell.is-today .cal__daynum { color: var(--accent); }

/* 院名ラベル（マス目に直接テキスト表示・記号なし） */
.cal__evs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}
.cal__ev {
  font-family: var(--serif-jp);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}
.cal__ev-time {
  display: block;
  font-family: var(--serif-jp);
  font-size: 11px;
  letter-spacing: .02em;
  line-height: 1.3;
  color: var(--sub);
}
.cal__ev::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  transform: translateY(-1px);
  background: var(--sub);
}

/* 拠点ごとのくすんだ色分け（低彩度・色相を離して判別しやすく） */
.cal__ev--kai::before,
.cal-key__item--kai .cal-key__dot     { background: #4d6f92; } /* dusty blue（青系） */
.cal__ev--stluke::before,
.cal-key__item--stluke .cal-key__dot  { background: #8f6a80; } /* dusty plum（赤紫系） */
.cal__ev--kato::before,
.cal-key__item--kato .cal-key__dot    { background: #a9805c; } /* dusty clay（茶系） */
.cal__ev--other::before,
.cal-key__item--other .cal-key__dot   { background: var(--sub); }

/* 予定が1件もない月の注記（未入力月を「出勤なし」と誤読させない） */
.cal__note {
  margin: 24px 0 0;
  font-size: 12.5px;
  letter-spacing: .04em;
  line-height: 1.9;
  color: var(--sub);
  text-align: center;
}

/* 略称 → 正式クリニック名の対応表（カレンダー下・細罫の四角で囲う） */
.cal-key {
  list-style: none;
  width: fit-content;
  max-width: 100%;
  margin: 40px auto 0;
  padding: 18px 30px;
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
}
.cal-key__item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif-jp);
  font-size: 12.5px;
  letter-spacing: .02em;
}
.cal-key__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--sub);
}
.cal-key__abbr { color: var(--ink); }
.cal-key__sep { color: var(--line); }
.cal-key__full { color: var(--sub); }

/* ─── Form shell（中央寄せ・読みやすい幅） ─── */
.inquire__formwrap {
  min-width: 0;
  max-width: 680px;
  margin: 0 auto;
}

/* ページ冒頭の注意書き（ヘッダーのリード文直下・常時表示） */
.inq-notice {
  list-style: none;
  text-align: left;
  max-width: 640px;
  margin: 40px auto 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .012);
}
.inq-notice li {
  position: relative;
  padding-left: 1.3em;
  font-size: 12.5px;
  line-height: 1.85;
  letter-spacing: .01em;
  color: var(--sub);
}
.inq-notice li + li { margin-top: 8px; }
.inq-notice li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--sub);
}

.inq-form__progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.inq-form__progress-label {
  font-family: var(--serif-en);
  font-size: 12px;
  font-style: italic;
  letter-spacing: .12em;
  color: var(--sub);
  white-space: nowrap;
}
.inq-form__progress-bar {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
}
.inq-form__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 16.6%;
  background: var(--ink);
  transition: width .35s ease;
}

/* ─── Step (fieldset) ─── */
.inq-step {
  border: 0;
  margin: 0;
  padding: 0;
}
/* JS 有効時は 1 ステップずつ表示。no-JS では全ステップ縦積み。 */
.inq-form.is-stepped .inq-step { display: none; }
.inq-form.is-stepped .inq-step.is-active { display: block; }
.inq-form:not(.is-stepped) .inq-step + .inq-step {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.inq-step__legend {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif-jp);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  letter-spacing: .03em;
  padding: 0;
  margin-bottom: 10px;
}
.inq-step__no {
  font-family: var(--serif-en);
  font-size: 15px;
  font-style: italic;
  letter-spacing: .1em;
  color: var(--sub);
}
.inq-step__help {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--sub);
  margin: 0 0 26px;
}
.inq-step__anchor {
  color: var(--sub);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .25s ease;
}
.inq-step__anchor:hover { color: var(--ink); }

.inq-req,
.inq-opt {
  font-family: var(--serif-en);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 1px;
  vertical-align: middle;
}
.inq-req { color: var(--accent); border: 1px solid rgba(14,38,56,.28); }
.inq-opt { color: var(--sub); border: 1px solid var(--line); }
.inq-step__legend .inq-req,
.inq-step__legend .inq-opt { margin-left: auto; transform: translateY(-6px); }

/* ─── Choices (radio / checkbox as cards) ─── */
.inq-choices { display: flex; flex-direction: column; gap: 12px; }
.inq-choice { position: relative; display: block; cursor: pointer; }
.inq-choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.inq-choice__box {
  display: block;
  padding: 18px 22px 18px 52px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: .02em;
  transition: border-color .2s, background .2s;
}
.inq-choice__box::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 1px solid var(--sub);
  border-radius: 50%;
  transition: border-color .2s;
}
.inq-choices--multi .inq-choice__box::before { border-radius: 2px; }
.inq-choice:hover .inq-choice__box { border-color: var(--sub); }
.inq-choice input:focus-visible + .inq-choice__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.inq-choice input:checked + .inq-choice__box {
  border-color: var(--ink);
  background: #fff;
}
.inq-choice input:checked + .inq-choice__box::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}
.inq-choices--multi .inq-choice input:checked + .inq-choice__box::before {
  box-shadow: none;
}
.inq-choices--multi .inq-choice input:checked + .inq-choice__box::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 50%;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-60%) rotate(45deg);
}

/* ラベル＋注釈（先生の括弧書き＝対象施術例）を持つ選択肢 */
.inq-choice__label { display: block; }
.inq-choice__note {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: .01em;
  color: var(--sub);
}
.inq-choice__access {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--sub);
  opacity: .85;
}
/* 注釈付き（2行以上）の選択肢はラジオを先頭行に合わせて上寄せ */
.inq-choice__box:has(.inq-choice__note)::before {
  top: 24px;
  transform: none;
}

/* ─── Text fields ─── */
.inq-field { margin-bottom: 24px; }
.inq-field:last-child { margin-bottom: 0; }
.inq-label {
  display: block;
  font-family: var(--serif-jp);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.inq-label .inq-req,
.inq-label .inq-opt { margin-left: 10px; position: relative; top: -2px; }
.inq-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--serif-jp);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.inq-input:hover { border-color: var(--sub); }
.inq-input:focus {
  outline: none;
  border-color: var(--ink);
}
.inq-textarea { resize: vertical; min-height: 132px; }
.inq-input::placeholder { color: #b8b5ad; }

/* 見出し直後にフィールドが来るステップ（STEP5等・補足文なし）は間隔を確保 */
.inq-step__legend + .inq-field { margin-top: 24px; }

/* 生年月日: 年 / 月 / 日 プルダウン */
.inq-dob {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
}
.inq-dob__group {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}
.inq-dob__unit {
  font-family: var(--serif-jp);
  font-size: 14px;
  color: var(--sub);
}
.inq-select {
  padding: 14px 38px 14px 15px;
  border: 1px solid var(--line);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%236B6B6B' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  font-family: var(--serif-jp);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s;
}
.inq-select:hover { border-color: var(--sub); }
.inq-select:focus { outline: none; border-color: var(--ink); }

/* ─── Disclaimer + consent ─── */
.inq-disclaimer {
  margin: 44px 0 20px;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: rgba(14,38,56,.03);
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink);
}
.inq-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.7;
}
.inq-consent input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.inq-consent__text a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--sub);
}
.inq-consent .inq-req { margin-left: 8px; }

/* ─── Errors ─── */
.inq-error {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #a3352b;
  min-height: 0;
}
.inq-error:empty { display: none; }
.inq-form__formerror {
  margin: 20px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(163,53,43,.3);
  background: rgba(163,53,43,.04);
  font-size: 13.5px;
  line-height: 1.7;
  color: #a3352b;
}

/* ─── Honeypot ─── */
.inq-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─── Nav / buttons ─── */
.inq-form__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.inq-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 9px;
  padding: 13px 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s, background .2s, color .2s;
}
.inq-btn__en {
  font-family: var(--serif-en);
  font-size: 14px;
  font-style: italic;
  letter-spacing: .1em;
  color: inherit;
}
.inq-btn__jp {
  font-size: 12px;
  letter-spacing: .1em;
  color: inherit;
}
.inq-btn:hover { opacity: .85; }
.inq-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.inq-btn--ghost:hover { border-color: var(--ink); opacity: 1; }
.inq-btn--next { margin-left: auto; }
.inq-btn--submit { margin-left: auto; }
.inq-btn[disabled] { opacity: .5; cursor: default; }
.inq-btn[hidden] { display: none; }

/* ─── Done ─── */
.inq-done { text-align: center; padding: 40px 0; }
.inq-done__title {
  font-family: var(--serif-jp);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 500;
  letter-spacing: .04em;
  margin: 12px 0 20px;
}
.inq-done__msg {
  font-size: 15px;
  line-height: 2.0;
  color: var(--sub);
  max-width: 540px;
  margin: 0 auto;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .inquire { padding: 96px 20px 96px; }
  .inquire__header { margin-bottom: 72px; }
  .inquire__title { font-size: 32px; }
  .schedule { margin-bottom: 64px; padding-bottom: 40px; }
  .cal-nav__head { gap: 18px; }
  .cal__cell { min-height: 62px; padding: 6px 3px; }
  .cal__ev { font-size: 10px; }
  .cal-key { flex-direction: column; align-items: center; gap: 8px; }
  .inq-choice__box { padding: 16px 18px 16px 48px; font-size: 14px; }
  .inq-form__nav { gap: 10px; }
  .inq-btn { padding: 14px 22px; }
}

/* ─── PC: カレンダー(左) ＋ フォーム(右) の2カラム（基本ルールより後に置いて確実に上書き） ─── */
@media (min-width: 1080px) {
  .inquire { max-width: 1280px; }
  .inquire__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    gap: 72px;
    align-items: start;
  }
  .schedule {
    max-width: none;
    margin: 0;
    padding-bottom: 0;
    border-bottom: 0;
    position: sticky;
    top: 96px;
  }
  .cal-nav { max-width: none; }
  .inquire__formwrap { max-width: none; margin: 0; }
  /* 2列時は見出し・カレンダー月表示を左寄せ（フォーム側と揃える） */
  .schedule__head { text-align: left; }
  .schedule__head .section__label { text-align: left; }
  /* SCHEDULE ラベルの右にも罫線（右列の STEP 進捗バーとミラー・同じ gap 16px） */
  .schedule__head .section__label {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .schedule__head .section__label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
  }
  /* 2列時はカレンダーがすぐ左に見えているので、STEP6のアンカーリンクは不要 */
  .inq-step__anchorline { display: none; }
  /* 2列時: 「出勤予定」と「ご相談内容」の見出し開始位置を揃える。
     右列の「ご相談内容」(legend) は進捗バー下 40px＋legend行高の分だけ低い。
     ヘッドレスChromeの実測でタイトル字面が一致する値に調整（22px では 18px 不足）。 */
  .schedule__title { margin-top: 40px; }
}
