@charset "UTF-8";
/* お問い合わせ（contact.html）専用 — 子CC-F
   左＝フォーム（2/3）／右＝追従する案内（1/3）。入力欄・表・ボタンは base.css の部品をそのまま使う
   色は base.css のトークンと、base の入力エラー色（#C8102E）だけを使う */

/* ---------- 枠 ---------- */
.contact-sec { padding-block: 56px 120px; }
.contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 80px; align-items: start; }
.contact__main { grid-column: 1; grid-row: 1; min-width: 0; }
.contact-aside { grid-column: 2; grid-row: 1; position: -webkit-sticky; position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 1279px) { .contact { column-gap: 56px; } }
@media (max-width: 1023px) {
  .contact { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
  .contact__main, .contact-aside { grid-column: 1; grid-row: auto; }
  .contact-aside { position: static; }
}
@media (max-width: 767px) { .contact-sec { padding-block: 32px 72px; } }

/* 見出しへ移すフォーカスは枠を出さない（読み上げの起点を移すためだけのもの） */
#page-title:focus, .contact-step__title:focus, .form-alert:focus { outline: none; }

/* ---------- 右の案内 ---------- */
.contact-aside { border-top: 1px solid var(--ink); }
.contact-aside__free { padding: 28px 0 26px; border-bottom: 1px solid var(--line); }
.contact-aside__free-title { font-family: var(--ff-serif); font-weight: 300; font-size: 28px; line-height: 1.35; color: var(--ink); }
.contact-aside__free-text { margin-top: 12px; font-size: 15px; line-height: 1.8; color: var(--text); }
.contact-aside__block { padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.contact-aside__h { font-size: 14px; line-height: 1.5; font-weight: 500; letter-spacing: .06em; color: var(--ink); }
.contact-aside__num {
  display: inline-block; margin-top: 8px;
  font-size: 28px; line-height: 1.2; font-weight: 400; letter-spacing: .02em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.contact-aside__num:hover { color: var(--blue-ink); }
.contact-aside__time { margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--mute); }

/* ご相談の流れ：縦の細い罫と青い点（番号は振らない） */
.contact-flow__list { margin-top: 18px; }
.contact-flow__item { position: relative; padding: 0 0 22px 26px; }
.contact-flow__item:last-child { padding-bottom: 0; }
.contact-flow__item::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.contact-flow__item:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 21px; bottom: -4px; width: 1px; background: var(--line); }
.contact-flow__title { font-size: 15px; line-height: 1.6; font-weight: 500; color: var(--ink); }
.contact-flow__text { margin-top: 4px; font-size: 14px; line-height: 1.75; font-weight: 400; color: var(--text); }

@media (max-width: 1023px) {
  .contact-aside {
    border-top: 0; background: var(--gray-2); padding: 24px 28px; margin-bottom: 44px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center;
  }
  .contact-aside__free, .contact-aside__block { padding: 0; border: 0; }
  .contact-aside__free-title { font-size: 22px; }
  .contact-aside__free-text { margin-top: 6px; font-size: 14px; line-height: 1.7; font-weight: 400; }
  .contact-aside__tel { text-align: right; }
  .contact-aside__num { margin-top: 2px; font-size: 26px; }
  .contact-flow { display: none; }
}
@media (max-width: 767px) {
  .contact-aside { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; margin-bottom: 36px; }
  .contact-aside__free-title { font-size: 20px; }
  .contact-aside__tel { text-align: left; padding-top: 14px; border-top: 1px solid var(--line); }
  .contact-aside__h { font-size: 13px; }
  .contact-aside__num { font-size: 24px; }
}

/* ---------- 手順（入力 → 確認 → 完了）：ナビと同じ「青い3pxの棒」で現在地 ---------- */
.form-steps { display: flex; align-items: flex-start; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.form-steps__item { display: flex; align-items: flex-start; font-size: 14px; line-height: 1.5; font-weight: 400; color: var(--mute); }
.form-steps__sep { flex: none; width: 7px; height: 11px; margin: 5px 22px 0; color: var(--line); }
.form-steps__label { position: relative; display: block; padding-bottom: 14px; }
.form-steps__item.is-past { color: var(--text); }
.form-steps__item[aria-current="step"] { color: var(--ink); font-weight: 500; }
.form-steps__item[aria-current="step"] .form-steps__label::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--blue);
}
@media (max-width: 767px) { .form-steps { margin-bottom: 28px; } .form-steps__sep { margin-inline: 16px; } }

/* ---------- 入力画面 ---------- */
.contact-lead { font-size: 15px; line-height: 1.9; color: var(--text); }
.contact-noscript { margin-top: 20px; padding: 16px 20px; border: 1px solid #C8102E; font-size: 14px; line-height: 1.8; font-weight: 400; color: var(--ink); }
.contact-form { position: relative; margin-top: 44px; }

/* エラーの一覧（送信時にフォームの上へ） */
.form-alert { margin-top: 32px; padding: 20px 24px 22px; border: 1px solid #C8102E; background: #fff; }
.form-alert + .contact-form { margin-top: 36px; }
.form-alert__title { font-size: 16px; line-height: 1.5; font-weight: 500; color: #C8102E; }
.form-alert__list { margin-top: 10px; padding-left: 1.2em; list-style: disc; color: #C8102E; }
.form-alert__list li + li { margin-top: 4px; }
.form-alert__list a { font-size: 14px; line-height: 1.6; font-weight: 400; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-alert__list a:hover { color: var(--blue-ink); }

/* まとまり（ご用件／お客様情報／お問い合わせ内容） */
.form-part + .form-part { margin-top: 56px; }
.form-part__h { font-size: 18px; line-height: 1.5; font-weight: 500; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.form-part > * + * { margin-top: 28px; }
.form-part > .cond { margin-top: 12px; }
.form-part--agree { padding-top: 32px; border-top: 1px solid var(--line); }

.field-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-set > legend { display: block; padding: 0; margin-bottom: 12px; }
.field__legend-note { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--mute); }
.field__hint { font-size: 13px; line-height: 1.6; font-weight: 400; color: var(--mute); }
.field__hint a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.field-set .field__error { margin-top: 8px; }
.w-m { max-width: 480px; }
.w-s { max-width: 320px; }
@media (max-width: 767px) { .w-m, .w-s { max-width: none; } }
.textarea { display: block; }

/* 種別：四角い選択枠（選択中は青い2px） */
.type-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.type-tile {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 16px; cursor: pointer;
  font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--ink);
}
.type-tile__frame {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  border: 1px solid var(--line); transition: border-color .2s linear;
}
.type-tile:hover .type-tile__frame { border-color: var(--ink); }
.type-tile .choice-input:checked ~ .type-tile__frame { border: 2px solid var(--blue); }
.type-tile .choice-input:focus-visible { outline: none; }
.type-tile .choice-input:focus-visible ~ .type-tile__frame { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 1279px) and (min-width: 1024px) { .type-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .type-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .type-tile { padding: 10px 12px; gap: 10px; font-size: 14px; } }

/* 丸（ラジオ）と四角（チェック）：OSの見た目に頼らず描く（iOS/Android/PCで同じに） */
.choice-input {
  -webkit-appearance: none; appearance: none;
  flex: none; width: 20px; height: 20px; margin: 0; padding: 0;
  border: 1px solid var(--ink); border-radius: 0; background-color: #fff;
  background-position: center; background-repeat: no-repeat;
  cursor: pointer; vertical-align: middle;
  transition: border-color .2s linear, background-color .2s linear;
}
.choice-input[type="radio"] { border-radius: 50%; }
.choice-input[type="radio"]:checked {
  border-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='5' fill='%232251FF'/%3E%3C/svg%3E");
  background-size: 10px 10px;
}
.choice-input[type="checkbox"]:checked {
  border-color: var(--blue); background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2l3.4 3.3L11 1.5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E");
  background-size: 12px 10px;
}
.choice-input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.choice-input:disabled { cursor: default; }

.choice { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; cursor: pointer; font-size: 16px; line-height: 1.5; font-weight: 400; color: var(--ink); }
.choice .choice-input { margin-top: 2px; }
.choice__sub { display: block; margin-top: 2px; font-size: 13px; line-height: 1.6; color: var(--mute); }
.choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.choice-stack { display: grid; gap: 4px; }
@media (max-width: 767px) { .choice-list { grid-template-columns: minmax(0, 1fr); } .choice { font-size: 15px; } }

/* 誤りのあるまとまり */
.is-invalid .choice-input { border-color: #C8102E; }

/* 種別で出し分ける枠（灰の面） */
.cond { padding: 24px 28px 26px; background: var(--gray-2); }
@media (max-width: 767px) { .cond { padding: 20px 18px 22px; } }
.seminar-info { padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.seminar-info__title { font-size: 16px; line-height: 1.6; font-weight: 500; color: var(--ink); }
.seminar-info__meta { margin-top: 6px; font-size: 14px; line-height: 1.75; font-weight: 400; color: var(--text); }
.seminar-info .link-arrow { margin-top: 10px; }

/* 同意 */
.agree-note { font-size: 14px; line-height: 1.8; font-weight: 400; color: var(--text); }
.agree-note a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.agree-note .ext { display: inline-block; width: 11px; height: 11px; margin: 0 2px 0 4px; vertical-align: -1px; }
.choice--agree { margin-top: 8px; }

/* ハニーポット：画面の外（上）へ。読み上げ・Tab移動の対象外 */
.hp { position: absolute; left: 0; top: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 送信 */
.form-submit { margin-top: 48px; }
.form-submit .btn { min-width: 300px; min-height: 56px; }
.form-submit .btn:disabled { opacity: .45; cursor: default; }
@media (max-width: 767px) { .form-submit { margin-top: 40px; } .form-submit .btn { width: 100%; min-width: 0; } }

/* ---------- 確認・完了 ---------- */
.contact-step__title { font-family: var(--ff-serif); font-weight: 300; font-size: 32px; line-height: 1.3; color: var(--ink); }
.contact-step__lead { margin-top: 16px; font-size: 16px; line-height: 1.8; color: var(--text); }
.contact-confirm { margin-top: 32px; table-layout: fixed; }
.contact-confirm th { width: 200px; }
.contact-confirm td { overflow-wrap: anywhere; word-break: break-word; }
.contact-confirm .is-pre { white-space: pre-wrap; }
.contact-confirm .is-empty { color: var(--mute); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.contact-actions .btn { min-width: 220px; min-height: 56px; }
.contact-actions .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.btn--back:hover .arrow { transform: translateX(-4px); }
.contact-done__text { margin-top: 20px; font-size: 18px; line-height: 1.8; color: var(--text); }
.contact-done__note { margin-top: 28px; padding: 20px 24px; background: var(--gray-2); font-size: 15px; line-height: 1.8; font-weight: 400; color: var(--text); }
.contact-done__note a { font-size: 20px; letter-spacing: .02em; color: var(--ink); }
@media (max-width: 767px) {
  .contact-step__title { font-size: 24px; line-height: 1.4; }
  .contact-step__lead { font-size: 15px; }
  .contact-confirm { margin-top: 24px; }
  .contact-actions { flex-direction: column; margin-top: 32px; }
  .contact-actions .btn { width: 100%; min-width: 0; }
  .contact-done__text { font-size: 16px; }
}
