/* ================================================
   Contact Pages Responsive CSS
   対象: contact.html, contact_confirm.html, contact_complete.html
   ================================================ */

/* --- コンテナの最大幅制限を解除 --- */
.container-center-horizontal {
    max-width: 100%;
}

/* ===========================================
   タブレット (max-width: 1024px)
   =========================================== */
@media screen and (max-width: 1024px) {

    /* --- ヘッダー（共通） --- */
    #global-header-v2 {
        width: 100% !important;
    }

    #global-header-v2 .gh-container {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    /* --- 全体コンテナ --- */
    .contact {
        width: 100% !important;
        max-width: 100%;
    }

    /* --- ヘッダー --- */
    .contact .view {
        width: 100% !important;
    }

    /* --- ヒーロー --- */
    .contact .hero-section {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 70px 20px 40px;
        border-radius: 0 0 32px 32px;
    }

    .contact .hero-title {
        font-size: 34px;
        line-height: 1.5;
        white-space: normal;
    }

    /* --- 導入テキスト --- */
    .contact .intro-text {
        font-size: 22px;
        line-height: 1.8;
        padding: 0 20px;
    }

    /* --- ステップインジケーター --- */
    .contact .step-circle {
        font-size: 22px;
        line-height: 48px;
        padding: 0 16px;
    }

    .contact .step-label {
        font-size: 16px;
    }

    .contact .step-line {
        width: 80px;
    }

    /* --- 注意書き --- */
    .contact .form-notes {
        width: 90%;
        font-size: 18px;
        line-height: 2;
    }

    /* --- フォームコンテナ --- */
    .contact .form-container {
        width: 90%;
        padding: 20px 30px 40px;
    }

    /* --- セクション見出し --- */
    .contact .form-section-title {
        font-size: 24px;
        line-height: 2;
    }

    /* --- フォーム行 --- */
    .contact .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* --- ラベル --- */
    .contact .form-label-area {
        min-width: 100%;
    }

    .contact .form-input-area {
        width: 100%;
    }

    .contact .form-label {
        font-size: 22px;
        line-height: 2;
    }

    .contact .badge-required {
        font-size: 18px;
        padding: 6px 10px;
    }

    /* --- 入力 --- */
    .contact .form-input,
    .contact .form-select,
    .contact .form-textarea {
        font-size: 20px;
    }

    /* --- 確認ページ --- */
    .contact .confirm-label {
        font-size: 22px;
        min-width: 240px;
    }

    .contact .confirm-value {
        font-size: 22px;
    }

    /* --- ボタン --- */
    .contact .submit-button {
        font-size: 26px;
        min-width: 320px;
        padding: 16px 40px;
    }

    .contact .back-button {
        font-size: 24px;
        min-width: 260px;
        padding: 16px 30px;
    }

    /* --- サンクス --- */
    .contact .thanks-container {
        width: 90%;
        padding: 40px 30px;
    }

    .contact .thanks-title {
        font-size: 30px;
    }

    .contact .thanks-message {
        font-size: 20px;
    }
}


/* ===========================================
   スマートフォン (max-width: 768px)
   =========================================== */
@media screen and (max-width: 768px) {

    /* --- ヘッダー --- */
    #global-header-v2 .gh-container {
        padding: 0 12px !important;
    }

    #global-header-v2 .gh-title {
        font-size: 20px !important;
    }

    /* --- ヒーロー --- */
    .contact .hero-section {
        height: 260px;
        position: relative;
        padding: 60px 16px 0;
        margin-top: -60px;
        border-radius: 0 0 24px 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .contact .hero-title {
        font-size: 26px;
        letter-spacing: 1px;
    }

    /* --- 導入テキスト --- */
    .contact .intro-text {
        font-size: 16px;
        line-height: 1.8;
        padding: 0 16px;
    }

    /* --- ステップインジケーター --- */
    .contact .step-indicator {
        margin-top: 24px;
    }

    .contact .step {
        width: auto;
        min-width: 70px;
    }

    .contact .step-circle {
        font-size: 16px;
        line-height: 38px;
        padding: 0 10px;
    }

    .contact .step-label {
        font-size: 13px;
    }

    .contact .step-line {
        width: 40px;
        margin-bottom: 20px;
    }

    /* --- 注意書き --- */
    .contact .form-notes {
        width: calc(100% - 32px);
        font-size: 14px;
        line-height: 1.8;
        margin-top: 24px;
    }

    /* --- フォームコンテナ --- */
    .contact .form-container {
        width: calc(100% - 32px);
        padding: 16px 16px 30px;
    }

    /* --- セクション見出し --- */
    .contact .form-section-title {
        font-size: 20px;
        line-height: 1.8;
    }

    /* --- フォーム行: 縦積み --- */
    .contact .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px 0;
    }

    .contact .form-row.align-top {
        padding-top: 14px;
    }

    /* --- ラベルエリア --- */
    .contact .form-label-area {
        min-width: unset;
    }

    .contact .form-label {
        font-size: 18px;
        line-height: 1.6;
    }

    .contact .badge-required {
        font-size: 14px;
        padding: 4px 8px;
    }

    /* --- 入力エリア --- */
    .contact .form-input-area {
        width: 100%;
    }

    /* --- 入力 --- */
    .contact .form-input,
    .contact .form-select {
        font-size: 16px;
        height: 44px;
        width: 100%;
        box-sizing: border-box;
    }

    .contact .form-textarea {
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .contact .form-select.short {
        width: 100px;
    }

    /* --- 入力行 --- */
    .contact .input-row {
        flex-wrap: wrap;
    }

    .contact .input-row .form-input,
    .contact .input-row .form-select {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .contact .input-row .form-input.half {
        flex: 1;
        min-width: 120px;
    }

    .contact .input-prefix,
    .contact .input-suffix,
    .contact .phone-sep {
        font-size: 18px;
    }

    .contact .phone-part {
        width: 80px !important;
        flex: 1;
    }

    /* --- チェックボックス --- */
    .contact .checkbox-label {
        font-size: 18px;
    }

    /* --- プライバシー --- */
    .contact .privacy-agree-label {
        font-size: 14px;
        line-height: 1.5;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .contact .privacy-agree-label input[type="checkbox"] {
        margin-top: 4px;
    }

    .contact .privacy-notes {
        font-size: 14px;
        color: #777;
        margin-top: 10px;
        line-height: 1.6;
    }

    /* --- 送信ボタン --- */
    .contact .submit-area {
        margin: 30px 0 40px;
    }

    .contact .submit-button {
        font-size: 22px;
        min-width: unset;
        width: 100%;
        max-width: 360px;
        padding: 16px 30px;
    }

    /* --- 確認ページ --- */
    .contact .confirm-row {
        flex-direction: column;
        gap: 4px;
        padding: 12px 0;
    }

    .contact .confirm-label {
        font-size: 18px;
        min-width: unset;
        line-height: 1.6;
    }

    .contact .confirm-value {
        font-size: 18px;
        line-height: 1.6;
    }

    .contact .confirm-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 30px;
    }

    .contact .back-button {
        font-size: 20px;
        min-width: unset;
        width: 100%;
        max-width: 360px;
        padding: 14px 24px;
    }

    .contact .back-button .arrow {
        font-size: 18px;
    }

    /* --- サンクスページ --- */
    .contact .thanks-container {
        width: calc(100% - 32px);
        padding: 30px 16px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .contact .thanks-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .contact .thanks-message {
        font-size: 16px;
        line-height: 1.8;
        text-align: left;
    }
}


/* ===========================================
   小型スマートフォン (max-width: 480px)
   =========================================== */
@media screen and (max-width: 480px) {

    /* --- ヒーロー --- */
    .contact .hero-section {
        height: 260px;
        position: relative;
        padding: 60px 12px 0;
        margin-top: -60px;
        border-radius: 0 0 16px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .contact .hero-title {
        font-size: 22px;
        letter-spacing: 0.5px;
    }

    /* --- 導入テキスト --- */
    .contact .intro-text {
        font-size: 14px;
    }

    /* --- ステップインジケーター --- */
    .contact .step-circle {
        font-size: 13px;
        line-height: 32px;
        padding: 0 8px;
    }

    .contact .step-label {
        font-size: 11px;
    }

    .contact .step-line {
        width: 24px;
    }

    /* --- フォーム --- */
    .contact .form-container {
        padding: 12px 12px 24px;
    }

    .contact .form-section-title {
        font-size: 18px;
    }

    .contact .form-label {
        font-size: 16px;
    }

    .contact .form-input,
    .contact .form-select {
        font-size: 15px;
        height: 40px;
        width: 100%;
        box-sizing: border-box;
    }

    .contact .form-textarea {
        font-size: 15px;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    /* --- 確認ページ --- */
    .contact .confirm-label {
        font-size: 16px;
    }

    .contact .confirm-value {
        font-size: 16px;
    }

    /* --- ボタン --- */
    .contact .submit-button {
        font-size: 18px;
        padding: 14px 20px;
    }

    .contact .back-button {
        font-size: 18px;
        padding: 12px 20px;
    }

    /* --- サンクス --- */
    .contact .thanks-title {
        font-size: 20px;
    }

    .contact .thanks-message {
        font-size: 14px;
    }
}