/* ===== 基本 ===== */
input,
textarea {
    border-radius: 10px;
    border: 1px solid #c9d6e4;
    /* 黒より柔らかい境界 */
    padding: 10px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* A11y: フォーカス可視化 */
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 3px solid #64a3e2;
    outline-offset: 2px;
    border-radius: 8px;
}

textarea {
    min-height: 6em;
    resize: vertical;
}

/* ===== フォーム枠 ===== */
form {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
    border-left: 4px solid #ffe2f6;
    padding: 1rem;
    margin: 0 auto 30px;
    border-radius: 8px;
    max-width: 700px;
    text-align: left;
}

/* 縦並びの間隔 */
form>*+* {
    margin-top: .9rem;
}

.form-group {
    display: block;
}

.form-help {
    display: block;
    color: #d33;
    margin-top: .25rem;
}

/* 同意チェックの並び */
.consent-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
}

.consent-row a {
    text-decoration: underline;
}

/* ===== 送信ボタン ===== */
button,
input[type="submit"] {
    background-color: #64a3e2;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .2s ease;
}

button:hover,
input[type="submit"]:hover {
    background-color: #4d92d0;
}

/* ===== コンテナ ===== */
main {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    /* 見出しだけ中央 */
}

main form {
    text-align: left;
    /* フォームは左寄せに戻す */
}

/* モバイル */
@media (max-width: 480px) {
    form {
        padding: .9rem;
        margin: 0 12px 24px;
    }
}

.contact-form-section.is-hidden {
    display: none;
}

/* ===== 青い丸ボタン（FAQボタン＆フォームオープン兼用） ===== */
.contact-open-btn {
    margin: 1.5rem auto 2rem;
    padding: 0.75rem 2.5rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    background: #7fa8ff;
    color: #fff;
    display: inline-flex;
    /* a / button 共通 */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: background-color .2s ease, transform .1s ease;
}

.contact-open-btn:hover {
    background-color: #6b98ff;
    transform: translateY(-1px);
}

/* ===== プライバシーボックス ===== */
.privacy-box {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 8px;
    background: #f7f8ff;
    font-size: 0.9rem;
}

.privacy-box__scroll {
    max-height: 180px;
    overflow-y: auto;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
}

.privacy-box__note {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

/* プライバシーポリシー同意チェックの横並び＆折り返し防止 */
.privacy-box__agree {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.privacy-box__agree span {
    white-space: nowrap;
}

/* チェックボックスだけ width:100% を解除 */
input[type="checkbox"] {
    width: auto;
}

/* ===== よくある質問エリア ===== */
.contact-faq-box {
    margin-top: 1.5rem;
}

.contact-faq-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

/* Q&Aカード全体 */
.contact-faq-cards {
    max-width: 900px;
    margin: 1.5rem auto 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
}

/* 1カード */
.faq-open-card {
    background: #f0f6ff;
    border-radius: 14px;
    border: 1px solid rgba(140, 199, 255, .35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    overflow: hidden;
}

/* Q行 */
.faq-open-q {
    background: #e5f0ff;
    padding: 1rem 1.2rem;
    border-bottom: 2px dashed rgba(45, 108, 223, .45);
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Qアイコン */
.faq-open-q-icon {
    background: #4c8cf5;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* A行 */
.faq-open-a {
    padding: 1rem 1.2rem;
    background: #f8faff;
    border-top: 2px dashed rgba(21, 101, 192, .35);
    font-size: .95rem;
    line-height: 1.65;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

/* Aアイコン */
.faq-open-a-icon {
    background: #8eb7ff;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* ===== FAQ下のボタン並び（縦） ===== */
.contact-intro-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.contact-intro-buttons .contact-open-btn {
    margin: 0;
    width: 100%;
    max-width: 380px;
    /* ボタン幅そろえる */
}

/* モバイルでもそのまま縦並びでOK */