/* ================================================

CONTACT

================================================ */

.contact {
    background-color: var(--color-bg-l-pink);
}

.contact__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.contact__box {
    background-color: #fff;
    --min-size: 20;
    --max-size: 64;
    padding: var(--space-xl) var(--clamp-size);
    /* border-radius: 3.44cqi; */
    border-radius: var(--border-radius-lg);
    width: 100%;
}

.contact__box h2 {
    margin-bottom: var(--space-2xl);
}

.contact__desc {
    text-align: center;
    margin-bottom: var(--space-md);
}

.contact__tel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact__number {
    --min-size: 32;
    --max-size: 36;
    font-size: var(--clamp-size);
    font-family: var(--fontFamily-en);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
}

.contact__number::before {
    content: "";
    display: inline-block;
    width: 0.8em;
    background: url(../../img/common/icon_phone.svg) no-repeat center center/contain;
    aspect-ratio: 1/1;
}

.contact__time {
    display: block;
}

.contact__note {
    border: 1px solid var(--color-border-brown);
    padding: var(--space-lg);
    margin-bottom: var(--space-3xl);
    font-size: var(--fontSize-base);
}

.contact__note h3 {
    --min-size: 15;
    --max-size: 16;
    font-size: var(--clamp-size);
    margin-bottom: 0.25em;
}

/* ----------------------------------------
CONTACT FORM -FORM MAILERを利用中 -
---------------------------------------- */


/* 項目を囲うdiv */
.form__item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
}

.form__item--radio {
    margin-bottom: var(--space-lg);
}

/* ラベル */
.form__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
    gap: 8px;
    min-width: 200px;
    margin-right: 20px;
    margin-top: 9px;
    letter-spacing: 0;
}

/* 必須ラベル */
.required {
    color: #fff;
    background-color: var(--color-main);
    padding: 0.25em 1em;
    height: fit-content;
    border-radius: 999px;
    line-height: 1;
    font-size: var(--fontSize-xs);
}

/* ラジオボタン・チェックボックス */
.form__radio {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

/* form-mailer内のラジオボタンは非表示 */
.form__item--radio {
    display: none;
}

.form__radio label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
    margin-top: 0.5em;
}

.form__radio input[type="radio"] {
    appearance: none !important;
    width: 1.3em;
    height: 1.3em;
    border: 1px solid var(--color-radio);
    border-radius: 999px;
    background: white;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.form__radio input[type="radio"]:checked {
    border-color: var(--color-main);
    background: #fff;
}

.form__radio input[type="radio"]:checked::after {
    content: '';
    width: 82%;
    height: 82%;
    border-radius: 999px;
    background: var(--color-main);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 入力エリア */
.form__input {
    flex: 1;
}

/* テキスト入力・セレクト・テキストエリア */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="address"],
select,
textarea {
    padding: 8px;
    border: 1px solid var(--color-radio);
    border-radius: 5px;
    width: 100%;
}

/* プレースホルダーの色変更 */
input::placeholder,
textarea::placeholder {
    color: var(--color-radio);
    opacity: 1;
}

/* 住所フォーム */
.form__address {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.form__address-zip {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form__address-zip::before {
    content: "〒";
    display: inline-block;
    margin-right: 5px;
    width: 1.5em;
}

/* 郵便番号自動入力のボタン */
.auto-address-btn {
    font-size: 12px;
    color: #cab29b;
    width: 12em;
    padding: 0.5em;
    line-height: 1.5;
    border: 1px solid var(--color-radio);
    border-radius: 4px;
}

/* p要素の幅設定 */
p:has(input),
p:has(select),
p:has(textarea) {
    flex: 1;
    width: 100%;
}

/* 送信ボタン */
p:has(input[type="submit"]) {
    text-align: center;
}

input[type="submit"] {
    cursor: pointer;
    font-size: var(--fontSize-md);
    width: 70%;
    margin: var(--space-xl) auto 80px;
    border: 1px solid var(--color-brown);
    background: var(--color-brown);
    color: #fff;
    border-radius: 999px;
    padding: 1.1em;
    transition: all 0.3s ease;
}

input[type="submit"]:hover {
    background: #fff;
    color: var(--color-brown);
    transition: all 0.3s ease;
}

/* レスポンシブ */
@media (width < 768px) {
    .form__item {
        flex-direction: column;
        gap: 10px;
    }

    .form__label {
        min-width: unset;
    }

    .required {
        margin-left: 0.5em;
    }

    .form__input {
        width: 100%;
    }

    input[type="submit"] {
        width: 90%;
    }
}