/* =========================================================
   T-M・サポート — お問い合わせページ専用スタイル

   contact.php / thanks.php でのみ読み込む。
   DESIGN_GUIDELINES.md に準拠。

   このページのテーマは「迷わず、気軽に相談できる」。
   フォームカード＋電話カードの2枚構成をやめ、
   電話 → フォーム という自然な縦の流れにしている。
   ========================================================= */

:root {
    --ct-ink: #16233A;
    --ct-navy: #2C4773;
    --ct-body: #4E5966;
    --ct-mute: #5F6874;
    --ct-red: #C32B38;
    --ct-line: #DFD8CA;
    --ct-line-in: #C9C2B4;
    --ct-paper: #FBF8F2;
}

.ct { background: #fff; color: var(--ct-ink); }
.ct-wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
/* 枠は他ページと同じ1180pxに揃えつつ、読む・入力する部分は詰めた幅にする */
.ct-open > .ct-wrap > *,
.ct-tel > .ct-wrap > *,
.ct-form-sec > .ct-wrap > *,
.ct-tips > .ct-wrap > *,
.ct-done > .ct-wrap > * { max-width: 720px; }

.ct-label {
    display: block;
    font-size: 12px; font-weight: 700; letter-spacing: .2em;
    color: var(--ct-red); margin: 0 0 18px;
}

/* ---------------------------------------------------------
   冒頭 ── 事務的な導入をやめ、相談のハードルを下げる
   --------------------------------------------------------- */
.ct-open { padding: clamp(44px, 7vw, 88px) 0 clamp(30px, 4vw, 48px); }
.ct-open h1 {
    font-size: clamp(25px, 4.4vw, 44px);
    font-weight: 900; line-height: 1.45; letter-spacing: -.01em;
    margin: 0 0 26px; word-break: auto-phrase;
}
.ct-open p {
    font-size: clamp(15px, 1.9vw, 16.5px);
    line-height: 2.2; color: var(--ct-body); margin: 0 0 16px;
}
.ct-open p strong { color: var(--ct-ink); font-weight: 700; }

/* ---------------------------------------------------------
   お急ぎの方は電話 ── 濃紺カード＋黄色巨大番号をやめる
   --------------------------------------------------------- */
.ct-tel { background: var(--ct-paper); padding: clamp(34px, 5vw, 56px) 0; }
.ct-tel h2 {
    font-size: clamp(19px, 2.6vw, 25px);
    font-weight: 800; line-height: 1.6; margin: 0 0 16px;
}
.ct-tel p { font-size: 15px; line-height: 2.1; color: var(--ct-body); margin: 0 0 26px; max-width: 39em; }
.ct-tel-no {
    display: inline-block;
    font-size: clamp(30px, 5.4vw, 46px);
    font-weight: 900;
    letter-spacing: .02em;
    color: var(--ct-ink);
    text-decoration: none;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    border-bottom: 3px solid var(--ct-red);
    padding-bottom: 4px;
    transition: color .18s ease;
}
.ct-tel-no:hover { opacity: 1; color: var(--ct-red); }
.ct-hours {
    margin: 20px 0 0; font-size: 14px; color: var(--ct-body); line-height: 2;
}

/* ---------------------------------------------------------
   フォーム ── 大きな白い角丸カードに入れない
   --------------------------------------------------------- */
.ct-form-sec { padding: clamp(44px, 7vw, 84px) 0 clamp(30px, 4vw, 48px); }
.ct-form-sec h2 {
    font-size: clamp(20px, 2.8vw, 27px);
    font-weight: 800; line-height: 1.6; margin: 0 0 14px;
}
.ct-form-sec .ct-note-lead { font-size: 15px; line-height: 2.1; color: var(--ct-body); margin: 0 0 8px; }
.ct-required-note { font-size: 13px; color: var(--ct-mute); margin: 0 0 32px; }

.ct-field { margin-bottom: 28px; }
.ct-field > label,
.ct-field > .ct-legend {
    display: block;
    font-size: 15px; font-weight: 700; color: var(--ct-ink);
    margin-bottom: 8px; line-height: 1.7;
}
.ct-field .req { color: var(--ct-red); margin-left: 4px; }
.ct-field .hint { display: block; font-size: 13.5px; font-weight: 400; color: var(--ct-mute); margin-top: 4px; line-height: 1.8; }

.ct-field input[type="text"],
.ct-field input[type="tel"],
.ct-field input[type="email"],
.ct-field input[type="file"],
.ct-field select,
.ct-field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 16px;              /* スマホで拡大されないように16px以上 */
    line-height: 1.7;
    color: var(--ct-ink);
    background: #fff;
    border: 1px solid var(--ct-line-in);
    border-radius: 2px;
    padding: 15px 16px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.ct-field textarea { min-height: 190px; resize: vertical; }
.ct-field select { appearance: none; background-image: none; }
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
    outline: none;
    border-color: var(--ct-navy);
    box-shadow: 0 0 0 3px rgba(44, 71, 115, .12);
}
.ct-field input:focus-visible,
.ct-field select:focus-visible,
.ct-field textarea:focus-visible { outline: 2px solid var(--ct-navy); outline-offset: 1px; }
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: #A9A396; }

.ct-pair-note {
    font-size: 14px; color: var(--ct-body); line-height: 1.9;
    margin: 0 0 10px;
}
.ct-pair-note strong { color: var(--ct-ink); font-weight: 700; }
.ct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 560px) { .ct-two { grid-template-columns: 1fr; gap: 24px; } }

/* エラー */
.ct-field.has-error input,
.ct-field.has-error textarea,
.ct-field.has-error select { border-color: var(--ct-red); }
.ct-err {
    display: flex; align-items: baseline; gap: 8px;
    margin-top: 8px; font-size: 13.5px; color: var(--ct-red); line-height: 1.8;
}
.ct-err::before { content: "！"; font-weight: 800; }
.ct-alert {
    border-left: 3px solid var(--ct-red);
    background: #FBF1F1;
    padding: 16px 20px; margin-bottom: 28px;
    font-size: 14.5px; line-height: 1.9; color: var(--ct-ink);
}

/* 送信 */
.ct-submit { margin-top: 36px; }
.ct-submit button {
    font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 18px 42px;
    font-size: 16px; font-weight: 800; letter-spacing: .03em;
    color: #fff; background: var(--ct-red);
    border: 0; border-radius: 2px; cursor: pointer;
    transition: background-color .18s ease;
}
.ct-submit button:hover { background: #A81F2B; }
.ct-submit button:focus-visible { outline: 3px solid var(--ct-navy); outline-offset: 3px; }
.ct-submit-note { margin: 14px 0 0; font-size: 13.5px; color: var(--ct-mute); line-height: 1.9; }

/* ---------------------------------------------------------
   ご相談時にあると便利なもの ── カード4枚にしない
   --------------------------------------------------------- */
.ct-tips { padding: clamp(36px, 5vw, 64px) 0 clamp(52px, 7vw, 88px); }
.ct-tips h2 { font-size: clamp(18px, 2.4vw, 22px); font-weight: 800; line-height: 1.6; margin: 0 0 22px; }
.ct-tips ul { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--ct-line); }
.ct-tips li {
    padding: 15px 0; border-bottom: 1px solid var(--ct-line);
    font-size: 15px; color: var(--ct-ink); line-height: 1.8;
}
.ct-tips li span { color: var(--ct-mute); font-size: 13.5px; margin-left: 10px; }
.ct-tips > .ct-wrap > p { font-size: 15px; line-height: 2.1; color: var(--ct-body); margin: 0; }
.ct-tips > .ct-wrap > p strong { color: var(--ct-ink); font-weight: 700; }

/* ---------------------------------------------------------
   送信完了
   --------------------------------------------------------- */
.ct-done { padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); }
.ct-done h1 {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 900; line-height: 1.5; margin: 0 0 24px;
}
.ct-done p { font-size: 15.5px; line-height: 2.15; color: var(--ct-body); margin: 0 0 18px; max-width: 41em; }
.ct-done-tel { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--ct-line); }
.ct-done-tel .lead { font-size: 15px; color: var(--ct-body); margin: 0 0 12px; }
.ct-done-links { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 36px); margin-top: 34px; }
.ct-link {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 15px; font-weight: 800; color: var(--ct-navy);
    text-decoration: none; padding: 12px 0;
    border-bottom: 2px solid var(--ct-navy);
    transition: color .18s ease, border-color .18s ease;
}
.ct-link::after {
    content: ""; width: 8px; height: 8px;
    border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
    transform: rotate(45deg); transition: margin-left .2s ease;
}
.ct-link:hover { opacity: 1; color: var(--ct-red); border-color: var(--ct-red); }
.ct-link:hover::after { margin-left: 8px; }

@media (prefers-reduced-motion: reduce) { .ct * { transition: none !important; } }
