/**
 * 資料請求・お問い合わせ 入力(Step1) 専用スタイル
 * BEM prefix: .page-contact
 * トークン: assets/tokens.css の --technoauto-*
 * PC 1240px 基準・SP は 768px 以下で縦積み。
 */

/* ========================================
   Container
   ======================================== */
.page-contact {
    background-color: var(--technoauto-bg-base, #ffffff);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 50px 0;
    width: 100%;
    font-family: var(--technoauto-font-jp);
    color: var(--technoauto-text-primary, #000);
    box-sizing: border-box;
}
.page-contact *,
.page-contact *::before,
.page-contact *::after { box-sizing: border-box; }
.page-contact p { margin: 0; }
.page-contact img { display: block; max-width: 100%; }

/* ========================================
   Hero
   ======================================== */
.page-contact__hero {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    min-height: 300px;
    width: 1240px;
    max-width: 100%;
}
.page-contact__hero-panel {
    flex: 1 0 0;
    min-width: 0;
    background-color: var(--technoauto-bg-brand, #4ea5ff);
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 20px 0 0 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: flex-start;
}
.page-contact__hero-en {
    font-family: var(--technoauto-font-en);
    font-style: italic;
    font-weight: 700;
    font-size: 20px;
    line-height: 22px;
    color: #398be2;
    text-transform: uppercase;
    white-space: nowrap;
}
.page-contact__hero-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}
.page-contact__hero-wordmark {
    position: relative;
    display: inline-flex;
    padding-bottom: 3px;
    font-family: var(--technoauto-font-en);
    font-style: italic;
    font-weight: 700;
    font-size: 60px;
    line-height: 1;
    white-space: nowrap;
}
.page-contact__hero-wordmark-shadow {
    position: absolute;
    top: 3px;
    left: 3px;
    color: var(--technoauto-bg-brand, #439fff);
}
.page-contact__hero-wordmark-front {
    position: relative;
    color: var(--technoauto-bg-base, #ffffff);
}
.page-contact__hero-title {
    font-family: var(--technoauto-font-jp);
    font-weight: 700;
    font-size: 40px;
    line-height: 1.4;
    color: var(--technoauto-text-inverse, #fff);
    margin: 0;
    width: 100%;
}
.page-contact__hero-sub {
    font-family: var(--technoauto-font-jp);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
    color: var(--technoauto-text-inverse, #fff);
    width: 100%;
}
.page-contact__breadcrumb {
    background: var(--technoauto-bg-brand-strong, #2f8aee);
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    line-height: 1;
}
.page-contact__breadcrumb-item {
    font-family: var(--technoauto-font-jp);
    font-weight: 400;
    font-size: 12px;
    color: var(--technoauto-text-inverse, #fff);
}
.page-contact__breadcrumb-sep {
    font-family: var(--ytc-font-jp, "Noto Sans JP", sans-serif);
    font-style: normal;
    font-size: 10px;
    color: #6bd0ff;
}
.page-contact__breadcrumb--top { display: none; }

/* ========================================
   Steps Indicator
   ======================================== */
.page-contact__steps-wrap {
    width: 1240px;
    max-width: 100%;
    margin-top: 60px;   /* Hero との間隔 (パンくずの上に被らない) */
    margin-bottom: 40px;
    padding: 0 20px;
}
.page-contact__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.page-contact__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.page-contact__step-circle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--technoauto-border-base, #39364e);
    color: var(--technoauto-text-primary, #000);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--technoauto-font-en);
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}
.page-contact__step-label {
    font-family: var(--technoauto-font-jp);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--technoauto-text-secondary, #787878);
}
.page-contact__step.is-active .page-contact__step-circle {
    background: var(--technoauto-bg-brand, #439fff);
    border-color: var(--technoauto-border-base, #39364e);
    color: #ffffff;
}
.page-contact__step.is-active .page-contact__step-label {
    color: var(--technoauto-text-primary, #000);
}
.page-contact__step.is-done .page-contact__step-circle {
    background: var(--technoauto-bg-success, #20d99b);
    border-color: var(--technoauto-border-base, #39364e);
    color: #ffffff;
}
.page-contact__steps-line {
    list-style: none;
    width: 174px;
    height: 1px;
    background: var(--technoauto-border-gray, #c1c1c1);
    margin-top: -22px;
}

/* ========================================
   Section (Form wrapper)
   ======================================== */
.page-contact__section {
    width: 1240px;
    max-width: 100%;
}
.page-contact__section-inner {
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 20px;
    padding: 50px 60px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.page-contact__notice {
    font-family: var(--technoauto-font-jp);
    font-size: 14px;
    line-height: 1.7;
    color: var(--technoauto-text-secondary, #787878);
    background: var(--technoauto-bg-section, #d7f2ff);
    border-radius: 8px;
    padding: 14px 18px;
    text-align: center;
}

/* ========================================
   Form Fields
   ======================================== */
.page-contact__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.page-contact__field {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 24px;
}
.page-contact__field-label {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    font-family: var(--technoauto-font-jp);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: var(--technoauto-text-primary, #000);
}
.page-contact__req {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--technoauto-badge-exam, #fc3855);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22px;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1;
}
.page-contact__field-input {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}
.page-contact__field-input--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
.page-contact__field-input input[type="text"],
.page-contact__field-input input[type="email"],
.page-contact__field-input input[type="tel"],
.page-contact__field-input input[type="date"],
.page-contact__field-input select,
.page-contact__field-input textarea {
    width: 100%;
    max-width: 480px;
    font-family: var(--technoauto-font-jp);
    font-size: 15px;
    line-height: 1.6;
    padding: 12px 16px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background: #ffffff;
    color: var(--technoauto-text-primary, #000);
}
.page-contact__field-input textarea {
    max-width: 100%;
    resize: vertical;
}
.page-contact__field-input input:focus,
.page-contact__field-input select:focus,
.page-contact__field-input textarea:focus {
    outline: none;
    border-color: var(--technoauto-bg-brand, #439fff);
    box-shadow: 0 0 0 3px rgba(67, 159, 255, 0.15);
}
.page-contact__field-input--stack input {
    max-width: 100% !important;
}

.page-contact__radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--technoauto-font-jp);
    font-size: 15px;
    color: var(--technoauto-text-primary, #000);
}
.page-contact__radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--technoauto-bg-brand, #439fff);
}

/* ========================================
   Consent + Submit
   ======================================== */
.page-contact__consent {
    margin-top: 10px;
    text-align: center;
}
.page-contact__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--technoauto-font-jp);
    font-size: 14px;
    color: var(--technoauto-text-primary, #000);
}
.page-contact__checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--technoauto-bg-brand, #439fff);
}
.page-contact__checkbox a {
    color: var(--technoauto-bg-brand, #439fff);
    text-decoration: underline;
}
.page-contact__submit {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.page-contact__submit-btn {
    appearance: none;
    background: var(--technoauto-bg-brand, #439fff);
    color: #ffffff;
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-radius: 40px;
    padding: 18px 60px;
    font-family: var(--technoauto-font-jp);
    font-weight: 700;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    min-width: 300px;
}
.page-contact__submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ========================================
   SP (< 768px)
   ======================================== */
@media screen and (max-width: 768px) {
    .page-contact {
        gap: 30px;
        padding: 0 0 40px;
        overflow-x: hidden;
    }
    .page-contact__breadcrumb--top {
        display: flex;
        background: transparent;
        border: 0;
        border-radius: 0;
        height: auto;
        padding: 14px 16px 12px;
        gap: 8px;
        width: 100%;
    }
    .page-contact__breadcrumb--top .page-contact__breadcrumb-item { color: #000; font-size: 12px; }
    .page-contact__breadcrumb--top .page-contact__breadcrumb-sep { color: #439fff; }
    .page-contact__breadcrumb--inline { display: none; }

    .page-contact__hero {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        padding: 0 16px;
    }
    .page-contact__hero-panel {
        padding: 30px 24px 30px;
        border-radius: 16px;
        gap: 20px;
        align-items: center;
    }
    .page-contact__hero-en { display: none; }
    .page-contact__hero-body { gap: 14px; align-items: center; text-align: center; }
    .page-contact__hero-wordmark { font-size: 44px; }
    .page-contact__hero-wordmark-shadow { display: none; }
    .page-contact__hero-wordmark-front {
        position: static;
        color: transparent;
        -webkit-text-stroke: 2px #ffffff;
        text-stroke: 2px #ffffff;
    }
    .page-contact__hero-title { font-size: 22px; text-align: center; }
    .page-contact__hero-sub { font-size: 13px; text-align: center; }

    .page-contact__steps-wrap { width: 100% !important; padding: 0 16px; }
    .page-contact__steps { gap: 8px; }
    .page-contact__steps-line { width: 30px; }
    .page-contact__step-circle { width: 40px; height: 40px; font-size: 16px; }
    .page-contact__step-label { font-size: 12px; }

    .page-contact__section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px;
    }
    .page-contact__section-inner {
        padding: 24px 18px;
        border-radius: 12px;
        gap: 20px;
    }
    .page-contact__notice { font-size: 13px; padding: 12px 14px; }

    .page-contact__form { gap: 18px; }
    .page-contact__field {
        flex-direction: column;
        gap: 8px;
        padding-bottom: 18px;
    }
    .page-contact__field-label {
        flex-basis: auto;
        padding-top: 0;
        font-size: 14px;
    }
    .page-contact__field-input input,
    .page-contact__field-input select,
    .page-contact__field-input textarea { max-width: 100%; font-size: 14px; }

    .page-contact__consent { text-align: left; }
    .page-contact__checkbox { font-size: 13px; align-items: flex-start; }
    .page-contact__submit-btn { width: 100%; min-width: 0; padding: 16px; font-size: 15px; }
}


/* hero-kv (Figma photo) */
.page-contact__hero {
    display: flex;
    gap: 0;
    align-items: stretch;
    width: 1240px;
    max-width: 100%;
    margin: 0 auto;
    height: 423px;
}
.page-contact__hero-panel { flex: 0 0 51.6%; min-width: 0; border-radius: 20px 0 0 20px; }
.page-contact__hero-kv {
    flex: 1 1 0;
    min-width: 0;
    border: 1px solid var(--technoauto-border-base, #39364e);
    border-left: 0;
    border-radius: 0 20px 20px 0;
    overflow: hidden;
    background: #eaf6ff;
}
.page-contact__hero-kv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media screen and (max-width: 768px) {
    .page-contact__hero { flex-direction: column; gap: 12px; }
    .page-contact__hero-panel, .page-contact__hero-kv { flex-basis: auto; width: 100%; }
    .page-contact__hero-kv { aspect-ratio: 16 / 10; }
}

/* ==================================================================
 * CHOOSE: お問い合わせ方法 3カード (Figma 準拠)
 * ================================================================== */
.page-contact__choose {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}
.page-contact__choose-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 24px 20px;
    background: #fff;
    border: 1px solid var(--ytc-border-strong, #39364e);
    border-radius: 10px;
    text-align: center;
}
.page-contact__choose-icon {
    font-family: var(--ytc-font-jp, "Noto Sans JP", sans-serif);
    font-weight: 900;
    font-size: 32px;
    line-height: 1;
    color: var(--ytc-bg-brand, #439fff);
    margin-bottom: 4px;
}
.page-contact__choose-title {
    margin: 0;
    font-family: var(--ytc-font-jp, "Noto Sans JP", sans-serif);
    font-weight: 700;
    font-size: 18px;
    color: var(--ytc-text-primary, #000);
}
.page-contact__choose-desc {
    margin: 0;
    font-family: var(--ytc-font-jp, "Noto Sans JP", sans-serif);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.7;
    color: var(--ytc-text-secondary, #787878);
}
.page-contact__choose-cta {
    margin-top: auto;
    align-self: stretch;
}
@media screen and (max-width: 768px) {
    .page-contact__choose { grid-template-columns: 1fr; gap: 12px; }
    .page-contact__choose-card { padding: 20px 16px; }
}

/* ==================================================================
 * 自前フォーム (入力→確認→完了) 3ステップ
 * ================================================================== */
.page-contact__steps {
    list-style: none;
    margin: 0 auto 20px;
    padding: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
    max-width: 720px;
}
.page-contact__steps li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--ytc-border-strong, #39364e);
    border-radius: 999px;
    font-family: var(--ytc-font-jp, "Noto Sans JP", sans-serif);
    font-weight: 700;
    font-size: 13px;
    color: var(--ytc-text-secondary, #787878);
    justify-content: center;
}
.page-contact__steps li span {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.page-contact__steps li.is-current {
    background: var(--ytc-bg-brand, #439fff);
    color: #fff;
    border-color: var(--ytc-bg-brand, #439fff);
}
.page-contact__steps li.is-current span { background: #fff; color: var(--ytc-bg-brand, #439fff); }
.page-contact__steps li.is-done {
    background: var(--ytc-bg-success, #20d99b);
    color: #fff;
    border-color: var(--ytc-bg-success, #20d99b);
}
.page-contact__steps li.is-done span { background: #fff; color: var(--ytc-bg-success, #20d99b); }

/* エラーアラート */
.page-contact__alert {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 20px;
    padding: 16px 20px;
    background: #fde9ec;
    border: 1px solid var(--ytc-bg-error, #fc3855);
    border-radius: 8px;
    color: var(--ytc-bg-error, #fc3855);
    font-weight: 700;
}
.page-contact__alert p { margin: 0; }

/* 申込種類 */
.page-contact__kinds {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.page-contact__kind {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--ytc-border-strong, #39364e);
    border-radius: 10px;
}
.page-contact__kind.is-disabled { opacity: 0.6; }
.page-contact__kind-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
}
.page-contact__kind-check input { width: 20px; height: 20px; cursor: pointer; }
.page-contact__kind-flag {
    display: inline-block;
    padding: 2px 10px;
    background: #e5e5e5;
    color: #555;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}
.page-contact__kind-dates {
    margin-top: 10px;
    padding-left: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.page-contact__kind-dates[hidden] { display: none; }
.page-contact__date-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f6fbff;
    border: 1px solid var(--ytc-border-base, #d7d7d7);
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
}
.page-contact__date-check input { width: 16px; height: 16px; }

/* 必須ピル */
.page-contact__req {
    display: inline-block;
    padding: 2px 8px;
    background: var(--ytc-bg-error, #fc3855);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

/* 入力フィールド */
.page-contact__fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.page-contact__field {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: center;
}
.page-contact__field.has-error input,
.page-contact__field.has-error select,
.page-contact__field.has-error textarea { border-color: var(--ytc-bg-error, #fc3855) !important; background: #fff6f7; }
.page-contact__label {
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.page-contact__input { margin: 0; }
.page-contact__input input,
.page-contact__input select,
.page-contact__input textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ytc-border-base, #d7d7d7);
    border-radius: 6px;
    font-family: var(--ytc-font-jp, "Noto Sans JP", sans-serif);
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
}
.page-contact__input input:focus,
.page-contact__input select:focus,
.page-contact__input textarea:focus {
    outline: 2px solid var(--ytc-bg-brand, #439fff);
    outline-offset: -2px;
    border-color: var(--ytc-bg-brand, #439fff);
}
.page-contact__radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.page-contact__radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.page-contact__radio input { width: 18px; height: 18px; }
.page-contact__error-msg {
    color: var(--ytc-bg-error, #fc3855);
    font-size: 13px;
    margin: 6px 0 0;
    font-weight: 700;
}

/* 送信ボタン */
.page-contact__submit {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin-top: 20px;
}
.page-contact__submit .c-btn { min-width: 280px; height: 56px; font-size: 16px; }
.page-contact__submit--confirm { flex-wrap: wrap; }

/* 確認画面 review */
.page-contact__review {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0;
    background: var(--ytc-border-base, #d7d7d7);
    border: 1px solid var(--ytc-border-base, #d7d7d7);
    border-radius: 8px;
    overflow: hidden;
}
.page-contact__review > div {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
}
.page-contact__review dt {
    margin: 0;
    font-weight: 700;
    color: var(--ytc-text-primary, #000);
}
.page-contact__review dd { margin: 0; }

/* 完了画面 */
.page-contact__thanks {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    padding: 20px;
}
.page-contact__thanks-text { font-size: 16px; line-height: 2; }

@media screen and (max-width: 768px) {
    .page-contact__steps { gap: 6px; }
    .page-contact__steps li { padding: 8px 10px; font-size: 11px; }
    .page-contact__field,
    .page-contact__review > div { grid-template-columns: 1fr; gap: 6px; }
    .page-contact__kind-dates { padding-left: 0; }
    .page-contact__submit { flex-direction: column; }
    .page-contact__submit .c-btn { min-width: 100%; }
}

/* ============================================================================
 * 日本人 / 留学生 切替ボタン (2026-10-14 佐藤様指摘: タブではなく独立ボタン化)
 * ========================================================================== */
.contact-form__applicant-tabs {
    display: flex;
    gap: 16px;
    margin: 0 0 28px;
    border-bottom: none;
    justify-content: center;
}
.contact-form__applicant-tab {
    flex: 1 1 50%;
    max-width: 360px;
    padding: 18px 24px;
    border: 2px solid var(--ytc-border-strong, #39364e);
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ytc-border-strong, #39364e);
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 3px 0 var(--ytc-border-strong, #39364e);
}
/* 日本人の方 = イエロー (footer CTA--oc と同じ) */
.contact-form__applicant-tab[data-applicant="japanese"] {
    background: var(--technoauto-bg-accent, #FFEF6B);
}
/* 留学生の方 = グリーン (footer CTA--doc と同じ) */
.contact-form__applicant-tab[data-applicant="international"] {
    background: var(--technoauto-bg-success, #20D99B);
}
.contact-form__applicant-tab:hover {
    filter: brightness(1.05);
}
.contact-form__applicant-tab:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--ytc-border-strong, #39364e);
}
.contact-form__applicant-tab.is-active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--ytc-border-strong, #39364e);
    outline: 3px solid var(--ytc-border-strong, #39364e);
    outline-offset: 2px;
}

/* 2026-10-14 佐藤様指摘: 日本人/留学生ボタンを押すまで入力項目は非表示 */
.contact-form.contact-form--applicant-pending > *:not(.contact-form__pending-note) {
    display: none !important;
}
.contact-form.contact-form--applicant-pending {
    text-align: center;
}
.contact-form__pending-note {
    display: none;
    padding: 24px;
    color: var(--ytc-text-secondary, #555);
    font-size: 14px;
}
.contact-form.contact-form--applicant-pending .contact-form__pending-note {
    display: block;
}

/* 留学生向け追加項目: 非 international のときは非表示 */
.contact-form__intl-fields {
    display: block;
}
.contact-form__intl-fields[aria-hidden="true"] {
    display: none;
}
.contact-form--applicant-international .contact-form__intl-fields {
    display: block;
}

/* 2026-10-15 鈴木様指摘④: 日本人/留学生タブに応じて申込種類チェックボックスを切替
   データ属性 data-applicant-type="japanese|international|both" を見て非対象を非表示 */
.contact-form--applicant-japanese .contact-form__check[data-applicant-type="international"],
.contact-form--applicant-international .contact-form__check[data-applicant-type="japanese"] {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .contact-form__applicant-tabs { flex-direction: column; gap: 12px; }
    .contact-form__applicant-tab { max-width: none; }
}

/* ========================================
   v2 (2026-10-13) 本番準拠 刷新
   - 複数カテゴリ checkbox / 条件付きグループ / 住所5項目
   ======================================== */

/* カテゴリ・日程 checkbox / radio リスト */
.contact-form__checkbox-list,
.contact-form__radio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    width: 100%;
}
.contact-form__checkbox-list--column {
    flex-direction: column;
    gap: 10px;
}
.contact-form__checkbox-list .contact-form__check,
.contact-form__radio-list .contact-form__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.6;
    user-select: none;
}

/* 2026-10-16 佐藤様指摘: 個人情報保護方針 同意チェックとテキストの間隔を広げる */
.contact-form__agree .contact-form__check {
    display: inline-flex;
    align-items: center;
    gap: 1.6em;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.6;
}
.contact-form__agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ytc-bg-brand, #439fff);
    flex-shrink: 0;
}
.contact-form__checkbox-list input[type="checkbox"],
.contact-form__radio-list input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ytc-bg-brand, #439fff);
    flex-shrink: 0;
}

/* カテゴリ行のラベル (span版: for なし) */
.contact-form__row--category > .contact-form__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.contact-form__label-sub {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    font-weight: normal;
    color: var(--technoauto-text-secondary, #666);
}

/* 条件付きグループ */
.contact-form__conditional {
    width: 100%;
    animation: ytcFadeIn 0.2s ease-out;
}
.contact-form__conditional[hidden] {
    display: none !important;
}
@keyframes ytcFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 住所5項目グループ */
.contact-form__address-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: #f6f8fb;
    border-radius: 10px;
    border-left: 4px solid var(--ytc-bg-brand, #439fff);
}
.contact-form__control--zip {
    max-width: 240px;
}

/* 注意文・ヒント */
.contact-form__note {
    width: 100%;
    padding: 12px 16px;
    background: #fff8e5;
    border-left: 4px solid #e8a500;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.7;
    color: #5a4800;
    margin: 0;
}
.contact-form__hint {
    width: 100%;
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--technoauto-text-secondary, #666);
    line-height: 1.5;
}

/* SP: 住所グループと checkbox リストを縦詰め */
@media screen and (max-width: 768px) {
    .contact-form__checkbox-list,
    .contact-form__radio-list {
        gap: 10px 16px;
    }
    .contact-form__address-group {
        padding: 16px;
    }
    .contact-form__control--zip {
        max-width: 100%;
    }
}

/* 2026-10-14 Cloudflare Turnstile ウィジェット配置 */
.contact-form__turnstile.cf-turnstile {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* 2026-10-16 鈴木様指摘: 就職先企業/教職員エントリーフォーム用の追加スタイル */
.contact-form__section-title {
    margin: 24px 0 16px;
    padding: 10px 14px;
    background: var(--ytc-bg-brand-soft, #ddebff);
    border-left: 4px solid var(--ytc-bg-brand, #439fff);
    font-size: 17px;
    font-weight: 700;
    color: var(--ytc-text-primary, #000);
}
.contact-form__submit--row {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.contact-form__submit--row .c-btn {
    min-width: 180px;
}
.c-btn--ghost {
    background: #fff;
    border: 2px solid var(--ytc-border-strong, #39364e);
    color: var(--ytc-text-primary, #000);
}
.c-btn--ghost:hover {
    background: #f6f6fa;
}
/* 確認画面「修正する」ボタン: 送信するに高さを揃える (2026-10-16) */
.contact-form__submit--row .c-btn--ghost {
    min-width: 200px;
    height: 58px;
    padding: 0 28px;
    font-size: 16px;
}
@media screen and (max-width: 768px) {
    .contact-form__submit--row .c-btn--ghost {
        width: 100%;
        height: 52px;
        font-size: 15px;
    }
}

/* ==========================================================================
   2026-10-19 Figma 準拠レイアウト調整 (送信完了 /request/thanks/)
   ※ ヒーロー有無・成功アイコン・NEXT セクションは PHP 構成の差なので未対応 (レポート参照)
   ========================================================================== */
/* ステップ 3 (完了) は緑 #20d99b */
body.page-template-page-contact-thanks .page-contact .page-contact__steps li.is-current span {
    background: var(--ytc-bg-success, #20d99b);
    color: #fff;
}
body.page-template-page-contact-thanks .page-contact .page-contact__steps li {
    font-size: 16px;
    color: var(--ytc-text-secondary, #787878);
}
body.page-template-page-contact-thanks .page-contact .page-contact__steps li:first-child { color: var(--ytc-text-primary, #000); }
/* 完了ボックス: 薄緑 #d8f7ec、pad 40、中央寄せ */
body.page-template-page-contact-thanks .page-contact > .c-section-box.c-section-box {
    padding: 40px;
    background: #d8f7ec;
}
body.page-template-page-contact-thanks .page-contact__thanks { gap: 30px; padding: 0; }
body.page-template-page-contact-thanks .page-contact__thanks-text { font-size: 18px; line-height: 1.8; }
/* ボタン: Figma「TOPに戻る」= 青のピル */
body.page-template-page-contact-thanks .page-contact__thanks .c-btn--primary {
    min-width: 360px;
    height: 58px;
    background: var(--ytc-bg-brand, #439fff);
    font-size: 18px;
}
@media screen and (max-width: 768px) {
    body.page-template-page-contact-thanks .page-contact > .c-section-box.c-section-box { padding: 30px 20px; }
    body.page-template-page-contact-thanks .page-contact__thanks-text { font-size: 15px; }
    body.page-template-page-contact-thanks .page-contact__thanks .c-btn--primary { min-width: 0; width: 100%; height: 50px; font-size: 16px; }
    body.page-template-page-contact-thanks .page-contact .page-contact__steps li { font-size: 13px; }
}
/* 2026-10-19 [common] 画像なしヒーローの英字食い込み / イラスト無しの下余白は共通 (custom.css / figma-components.css) で根本対応したので削除 */
/* SP: 完了ページはヒーローのイラスト未設定なのにイラスト用の下余白 170px が残り空白になっていた */
@media screen and (max-width: 768px) {
    body.page-template-page-contact-thanks .c-page-hero.c-page-hero { margin-bottom: 30px; }
}

/* 2026-10-19 Figma 準拠 (/request/ SP): FORM は箱なし (見出し + ステップ + 入力欄をページ地に直接) */
@media screen and (max-width: 768px) {
    body.page-template-page-contact .page-contact .c-section-box.c-section-box.page-contact__form-box {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 30px 20px 40px;
        background: transparent;
        border: 0;
        border-radius: 0;
    }
}

/* ---------------------------------------------------------------------------
 * [layout-restore] 2026-10-19 送信完了: Figma「Success Mark」(緑 #20d99b の丸 + 白いサムズアップ、濃色 1px 枠) を
 *   メッセージの上に追加。PC 120px (アイコン 46px)、SP 88px (アイコン 34px)。装飾のみ (CSS の ::before、文言なし)
 * ------------------------------------------------------------------------- */
body.page-template-page-contact-thanks .page-contact__thanks::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border: 1px solid var(--ytc-border-strong, #39364e);
    border-radius: 999px;
    background: #20d99b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M313.4 32.9c26 5.2 42.9 30.5 37.7 56.5l-2.3 11.4c-5.3 26.7-15.1 52.1-28.8 75.2H464c26.5 0 48 21.5 48 48c0 18.5-10.5 34.6-25.9 42.6C497 275.4 504 288.9 504 304c0 23.4-16.8 42.9-38.9 47.1c4.4 7.3 6.9 15.8 6.9 24.9c0 21.3-13.9 39.4-33.1 45.6c.7 3.3 1.1 6.8 1.1 10.4c0 26.5-21.5 48-48 48H294.5c-19 0-37.5-5.6-53.3-16.1l-38.5-25.7C176 420.4 160 390.4 160 358.3V320 272 247.1c0-29.2 13.3-56.7 36-75l7.4-5.9c26.5-21.2 44.6-51 51.2-84.2l2.3-11.4c5.2-26 30.5-42.9 56.5-37.7zM32 192H96c17.7 0 32 14.3 32 32V448c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32V224c0-17.7 14.3-32 32-32z'/%3E%3C/svg%3E") center / 46px 46px no-repeat;
}
@media screen and (max-width: 768px) {
    body.page-template-page-contact-thanks .page-contact__thanks::before {
        width: 88px;
        height: 88px;
        background-size: 34px 34px;
    }
}

/* 2026-10-21 佐藤様指示: 留学生の方には 学科・住所(都道府県以外) を出さない */
.contact-form--applicant-international .contact-form__ja-only {
    display: none !important;
}

/* 2026-10-21 学校様依頼: 日本語学校名は留学生の方のみ表示 */
.contact-form:not(.contact-form--applicant-international) .contact-form__intl-only {
    display: none !important;
}
