/* ===============================================================
    Contact / お問い合わせ
=============================================================== */

/* ■ セクション全体のレイアウト設定 */
.page-contact {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 40px 160px;
    position: relative;
}

.page-contact__desc {
    margin: 0 auto;
    padding-bottom: 80px;
    font-size: var(--font-size-body-lg);
    line-height: 1.75;
    text-align: center;
}

.page-contact__text {
    padding-bottom: 1.33333333em;
}

.page-contact__phone {
    font-size: var(--font-size-body-md);
    font-weight: 700;
    line-height: 1;
}

.page-contact__phone-label {
    display: block;
    padding-bottom: 0.625em;
    font-weight: 500;
}

.page-contact__phone-number {
    display: block;
    padding-bottom: 0.3em;
    font-size: var(--font-size-title-xl);
    color: var(--text-color-blue);
}

.page-contact__phone-hours {
    font-weight: 400;
}

.contact-form {
    max-width: 660px;
    margin: 0 auto;
}

.contact-form__label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--font-size-body-md);
    font-weight: 600;
}

.required {
    margin-left: 4px;
    color: var(--text-color-light-red);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    top: calc(50% - 24px); /* 16pxの半分 */
    right: 20px;
    pointer-events: none;

    border-left: 6.5px solid transparent;
    border-right: 6.5px solid transparent;
    border-top: 16px solid var(--text-color-black);
}

.contact-form__select {
    width: 100%;
    max-width: 660px;
    margin-bottom: 32px;
    padding: 1em 20px;
    border: none;
    background-color: #F7F7F7;
    outline: none;
    resize: vertical;
    font-size: var(--font-size-body-md);
    font-weight: 600;
    color: var(--text-color-black);
    line-height: 1;
    transition: border-color 0.3s ease;
    appearance: none;
    cursor: pointer;
    position: relative;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    max-width: 660px;
    margin-bottom: 32px;
    padding: 0.8em 20px;
    border: none;
    background-color: #F7F7F7;
    outline: none;
    resize: vertical;
    font-size: var(--font-size-body-md);
    line-height: 1;
    font-weight: 700;
    color: var(--text-color-black);
    transition: border-color 0.3s ease;
}

/* 各ブラウザ対応 placeholder スタイル */
.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    font-weight: 500;
    color: #CFCFCF;
    opacity: 1;
}

.contact-form__input::-webkit-input-placeholder,
.contact-form__textarea::-webkit-input-placeholder {
    color: #CFCFCF;
    font-weight: 500;
    opacity: 1;
}

.contact-form__input::-moz-placeholder,
.contact-form__textarea::-moz-placeholder {
    color: #CFCFCF;
    font-weight: 500;
    opacity: 1;
}

.contact-form__input:-ms-input-placeholder,
.contact-form__textarea:-ms-input-placeholder {
    color: #CFCFCF;
    font-weight: 500;
    opacity: 1;
}

.contact-form__input::-ms-input-placeholder,
.contact-form__textarea::-ms-input-placeholder {
    color: #CFCFCF;
    font-weight: 500;
    opacity: 1;
}


.contact-form__select:focus,
.contact-form__input:focus,
.contact-form__textarea:focus {
    border-color: var(--text-color-blue);
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}

.contact-form__checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    gap: 16px;
}

.contact-form__checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.contact-form__checkbox-label {
    font-size: var(--font-size-body-md);
    font-weight: 600;
    user-select: none;
}

.contact-form__checkbox-label a {
    color: var(--text-color-blue);
    text-decoration: underline;
}

.contact-form__checkbox-label a:hover {
    text-decoration: none;
}

.contact-form__submit {
    display: block;
    width: 260px;
    margin: 0 auto;
    padding: 1.27em 1.7em;
    border: 2px solid transparent;
    border-radius: 9999px;
    box-sizing: border-box;
    background-color: var(--text-color-blue);
    color: var(--text-color-white);
    text-decoration: none;
    font-size: var(--font-size-body-lg);
    font-weight: 700;
    text-align: center;
    transition: opacity 0.3s, color 0.3s, border-color 0.3s;
    position: relative;
}

.contact-form__submit:hover {
    opacity: 0.5;
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .page-contact {
        margin: 0 auto;
        padding: 70px 24px;
    }

    .page-contact__desc {
        padding-bottom: 40px;
    }

    .page-contact__text {
        text-align: left;
    }

    .contact-form__checkbox-wrapper {
        align-items: start;
        margin-bottom: 30px;
        gap: 8px;
    }

    .contact-form__select {
        padding: 1em 1em;
    }

    .select-wrapper::after {
        top: calc(50% - 22px);
        right: 1em;
        pointer-events: none;
        border-left: 6.5px solid transparent;
        border-right: 6.5px solid transparent;
        border-top: 12px solid var(--text-color-black);
    }

    .contact-form__input, .contact-form__textarea {
        padding: 0.8em 1em;
    }

    .contact-form__checkbox {
        width: 10px;
        height: 10px;
        margin-top: 5px;
    }

    .contact-form__checkbox-label {
        line-height: 1.5;
    }

    .contact-form__submit {
        width: 180px;
        font-size: var(--font-size-body-lg);
    }
}
