/* ============================================================
   contact.html 専用スタイル
   色は必ず style.css の --yg-*/--sb-*/--text-* トークンを var() で使用
============================================================ */

/* ---------- ヒーロー(左:見出し / 右:流れの3ステップ) ---------- */
.c-hero {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 56px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--yg-50) 100%);
}
.c-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 44px; align-items: center;
}
.c-hero h1 {
  margin-top: 10px; font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.5;
}
.c-hero__lead { margin-top: 16px; color: var(--text-mid); font-size: 16px; }
.c-hero .chip-list { margin-top: 20px; }

.c-hero__steps {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 26px 24px; box-shadow: var(--shadow-card);
}
.c-hero__steps-title { font-size: 13px; font-weight: 800; color: var(--yg-700); letter-spacing: .06em; margin-bottom: 14px; }
.c-hero__steps ol { display: grid; gap: 14px; }
.c-hero__steps li {
  display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--text-strong);
}
.c-hero__steps li span {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--yg-100); color: var(--yg-800); font-weight: 800; font-size: 13px;
  display: grid; place-items: center;
}
@media (max-width: 860px) { .c-hero__inner { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 2カラムレイアウト(フォーム + 補足サイドバー) ---------- */
.c-form-sec { background: var(--bg-tint-blue); }
.c-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 32px; align-items: start;
}
@media (max-width: 900px) { .c-layout { grid-template-columns: 1fr; } }

/* ---------- フォームカード ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow-card);
}
@media (max-width: 560px) { .form-card { padding: 4px; } }

/* セクション(1 基本情報=緑 / 2・3=水色) */
.form-section { padding: 30px 32px; }
.form-section + .form-section { border-top: 1px solid var(--line-soft); }
.form-section--blue { background: var(--bg-tint-blue); }
.form-section:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.form-section:last-of-type { border-radius: 0 0 var(--radius) var(--radius); }
@media (max-width: 560px) { .form-section { padding: 22px 18px; } }

.form-section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.form-section__no {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--yg-700); color: #fff; font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
}
.form-section--blue .form-section__no { background: var(--sb-700); }
.form-section__head h2 { font-size: 17px; font-weight: 800; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .form-field:nth-child(-n+3) { grid-column: span 1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-weight: 700; font-size: 14.5px; }
.form-field__hint { font-size: 12.5px; color: var(--text-weak); margin-bottom: 14px; }
.form-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: 1px;
}
.form-tag--req { color: var(--err-fg); background: var(--err-bg); }
.form-tag--opt { color: var(--text-weak); background: #fff; border: 1px solid var(--line-soft); }

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="date"],
.form-card select,
.form-card textarea {
  padding: 12px 14px;
  border: 1px solid var(--line-ui);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-strong);
  background: #fff;
  width: 100%;
}
.form-card textarea { resize: vertical; min-height: 88px; }
.form-card input:focus-visible,
.form-card select:focus-visible,
.form-card textarea:focus-visible {
  outline: none;
  border-color: var(--sb-700);
  box-shadow: 0 0 0 3px var(--sb-100);
}

/* 日程の第1〜第3希望 */
.form-schedule { display: grid; gap: 14px; }
.form-schedule__row {
  display: grid;
  grid-template-columns: 88px 1fr 1fr;
  gap: 10px;
  align-items: center;
}
.form-schedule__row span { font-size: 13.5px; font-weight: 700; color: var(--sb-900); }
@media (max-width: 560px) {
  .form-schedule__row { grid-template-columns: 1fr; }
}

/* チェックボックス群 */
.form-check-group { display: flex; flex-wrap: wrap; gap: 10px; }
.form-check {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 10px 16px; font-size: 14px; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.form-check:has(input:checked) { border-color: var(--sb-700); background: var(--sb-50); }
.form-check input { accent-color: var(--sb-700); width: 16px; height: 16px; flex-shrink: 0; }

/* 送信・注意書き */
.form-submit { padding: 26px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.form-fine { font-size: 12.5px; color: var(--text-weak); }
.form-submit .btn { align-self: flex-start; }
@media (max-width: 560px) { .form-submit { padding: 20px 18px 26px; } .form-submit .btn { align-self: stretch; } }

/* ---------- サイドバー ---------- */
.c-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.c-aside__card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px 24px;
}
.c-aside__card h3 { font-size: 14.5px; font-weight: 800; margin-bottom: 12px; }
.c-aside__list li {
  display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-mid);
  padding: 5px 0; line-height: 1.6;
}
.c-aside__list li::before {
  content: "✓"; flex: none; color: var(--yg-700); font-weight: 800; margin-top: 1px;
}
.c-aside__card--blue { background: var(--sb-50); border-color: var(--sb-100); }
.c-aside__faq div + div { margin-top: 14px; }
.c-aside__faq dt { font-size: 13px; font-weight: 700; color: var(--sb-900); }
.c-aside__faq dd { margin: 4px 0 0; font-size: 12.5px; color: var(--text-mid); line-height: 1.6; }
.c-aside__note { font-size: 12.5px; color: var(--text-mid); text-align: center; line-height: 1.7; }
@media (max-width: 900px) { .c-aside { position: static; } }

/* 送信完了メッセージ */
.form-success {
  display: none;
  grid-column: 1 / -1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 32px;
  background: #fff;
  border: 1px solid var(--yg-200);
  border-radius: var(--radius);
}
.form-success.is-show { display: block; }
.form-success h3 { font-size: 20px; font-weight: 800; color: var(--yg-700); }
.form-success p { margin-top: 12px; color: var(--text-mid); }
