@charset "UTF-8";

/* =========================================
   Contact Page: 導入・全体レイアウト
   ========================================= */
.contact-section {
    padding: 80px 0 120px;
}

.contact-intro {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* =========================================
   Contact Page: 電話番号ボックス
   ========================================= */
.contact-tel-box {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--gold);
    border-radius: 12px;
}
.tel-label { color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.tel-link {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    display: block;
    margin: 15px 0;
    transition: 0.3s;
}
.tel-link:hover { color: var(--gold-bright); }
.tel-note { color: var(--text-light); font-size: 0.9rem; opacity: 0.8; }

/* =========================================
   Contact Page: フォームパーツ
   ========================================= */
.contact-form {
    background: rgba(255, 255, 255, 0.02);
    padding: 50px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
}

.form-group {
    margin-bottom: 35px;
}

.form-group label {
    display: block;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

/* 必須・任意バッジ */
.badge-req { background: #e63946; color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 3px; margin-left: 10px; vertical-align: middle; }
.badge-opt { background: rgba(255, 255, 255, 0.2); color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 3px; margin-left: 10px; vertical-align: middle; }

/* 入力フィールド基本設定 */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold) !important;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* --- 同意チェックボックスエリア --- */
.form-agreement {
    margin: 40px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--gold);
}

.agreement-label {
    color: var(--white);
    font-size: 0.95rem;
    cursor: pointer;
    line-height: 1.5;
}

.legal-link {
    color: var(--gold);
    text-decoration: underline;
    font-weight: 700;
    transition: 0.3s;
}

.legal-link:hover { opacity: 0.7; text-decoration: none; }

.form-submit {
    text-align: center;
}

.success-msg {
    text-align: center;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--gold) !important;
    animation: fadeIn 0.6s ease forwards;
}

.success-msg i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.success-msg h3 {
    color: var(--white);
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Contact Page: レスポンシブ調整 (768px以下)
   ========================================= */
@media (max-width: 768px) {
    .contact-section { padding: 60px 0 80px; }
    
    .contact-intro { font-size: 0.95rem; margin-bottom: 40px; }

    .contact-form {
        padding: 30px 20px; /* 余白を詰めて入力エリアを広く */
    }

    /* 【最重要】iPhoneの勝手にズームを防止 */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px !important; /* 16px以上に設定することでiOSのズームを回避 */
    }

    .tel-link { font-size: 1.6rem; }
    .tel-box { padding: 30px 20px; }

    /* 同意エリアの微調整 */
    .checkbox-wrapper {
        align-items: flex-start; /* チェックボックスを上揃えに */
        text-align: left;
    }
    input[type="checkbox"] {
        margin-top: 3px; /* テキストの1行目と高さを合わせる */
        flex-shrink: 0;
    }
    .agreement-label {
        font-size: 0.85rem;
    }

    /* 送信ボタンを横いっぱいに広げて押しやすくする */
    .form-submit .btn-primary {
        width: 100%;
        padding: 18px 0;
        font-size: 1.1rem;
    }

    .success-msg {
        padding: 30px 15px; /* パディングを少し詰めて文字の幅を確保 */
        margin-bottom: 30px;
    }

    .success-msg i {
        font-size: 2.5rem; /* アイコンを少し小さく */
        margin-bottom: 15px;
    }

    .success-msg h3 {
        font-size: 1.3rem; /* 見出しをスマホ向けに最適化 */
    }

    .success-msg p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}