/* ===========================
   CONTACT PAGE
=========================== */

/* 全体 */
.contact-box {
    max-width: 920px;
    margin: 0 auto 70px;
    padding: 40px 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* タイトル */
.contact-box h2 {
    text-align: center;
    font-family: "Noto Serif JP", serif;
    font-size: 26px;
    margin-bottom: 35px;
    position: relative;
}

.contact-box h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--azuki);
    margin: 15px auto 0;
}

/* フォーム行 */
.form-row {
    margin-bottom: 22px;
}

.form-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

/* 入力共通 */
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--azuki);
    background: #fff;
}
/* 住所ブロック内は必ずフル幅 */
.address-row select {
    flex: 1;
    min-width: 0;
}
.form-row select {
    padding: 12px;
    font-size: 15px;
}

@media screen and (max-width : 471px ){
    .form-row select,
    .form-row input[type="text"] {
        font-size: 16px; /* iOSズーム防止 */
        padding: 14px;
    }
}
/* 住所詳細は常に縦並び・全幅 */
.address-detail {
    display: block;
}

.address-detail input {
    width: 100%;
    display: block;
    margin-bottom: 12px;
}

/* PCの2カラム(grid)から除外 */
@media screen and (min-width: 769px) {
    .address-detail {
        grid-column: 1 / -1; /* 横幅100%占有 */
    }
}


/* テキストエリア */
.form-row textarea {
    min-height: 140px;
    line-height: 1.8;
    resize: vertical;
}

/* PC時の2カラム */
@media screen and (min-width: 769px) {
    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }
}

/* 送信ボタン */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.form-submit button {
    background: var(--azuki);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 48px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: background 0.2s, transform 0.2s;
}

.form-submit button:hover {
    background: #7a1f2a;
    transform: translateY(-2px);
}

/* スマホ最適化 */
@media screen and (max-width : 471px ){
    .contact-box {
        padding: 30px 20px;
    }

    .contact-box h2 {
        font-size: 22px;
    }

    .form-submit button {
        width: 100%;
        padding: 16px 0;
        font-size: 17px;
    }
}
.checkbox-group {
    display: flex;
    flex-direction: column; /* ← 縦並び */
    gap: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;    /* ← ボックスと文字を中央揃え */
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.transport-fee {
    margin-top: 8px;
    font-size: 14px;
    color: #96514d; /* azuki */
    font-weight: bold;
}
.form-row select,
.form-row input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
/* 日付入力のはみ出し対策 */
input[type="date"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.form-confirm-text {
    margin-bottom: 24px; /* ← 一段空ける */
}
/* ==========================
   送信完了（THANKS）画面
========================== */

.thanks-message h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.thanks-message p {
    font-size: 1rem;
    line-height: 1.8;
}

/* スマホ調整 */
@media screen and (max-width : 471px ){
    .thanks-message h3 {
        font-size: 1.6rem; /* ← スマホは少し大きく */
    }

    .thanks-message p {
        font-size: 1.1rem; /* ← 読みやすさ重視 */
        line-height: 1.9;
    }
}
