@charset "UTF-8";

.top-img {
    background-image: url("../img/mail-img/DSC03453.jpg");
    background-position: center 80%;
    background-size: cover;
    height: 40vh;
}

/* フォームの外枠 */
#contact-form {
    background: #fff;
    max-width: 600px;
    margin: 40px auto 100px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 各入力項目のまとまり */
.form-group {
    margin-bottom: 25px;
}

/* ラベルのデザイン */
label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 1.2rem;
    text-align: left;
}

/* 必須マークの追加スタイル */
.label-required::after {
    content: "必須";
    display: inline-block;
    color: #6a1917;
    font-size: 1rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: bold;
}

/* 入力欄（共通） */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* 入力エラー時の視覚効果（フォーカス時） */
input:invalid:focus, 
textarea:invalid:focus {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* お問い合わせ種別のスタイル */
.type-selection {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-label {
    flex: 1;
    min-width: 100px;
    cursor: pointer;
    margin-bottom: 0;
}

.radio-label input {
    display: none;
}

.radio-label span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 5px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: normal;
    color: #4a5568;
    transition: all 0.3s ease;
}

.radio-label input:checked + span {
    background-color: #6a1917;
    color: #fff;
    border-color: #6a1917;
}

.radio-label span:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
}

/* プライバシーポリシーのエリア */
.policy {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    margin-top: 30px;
}

.policy label {
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0;
}

.policy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
}

/* 送信ボタン */
button[type="submit"] {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 40px auto 0;
    padding: 15px;
    background-color: #6a1917;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #6f5436;
    transform: translateY(-1px);
}

/* スマホ対応 */
@media (max-width: 480px) {
    #contact-form {
        padding: 25px 20px;
    }
    .type-selection {
        flex-direction: column;
    }
}

/* =========================================
   お問い合わせ内容確認画面
========================================= */
.confirm-wrapper {
    max-width: 820px;
    margin: 40px auto 100px;
    padding: 0 20px;
    box-sizing: border-box;
}

.confirm-box {
    padding: 48px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.confirm-lead {
    margin: 0 0 34px;
    color: #4a5568;
    font-size: 1.3rem;
    line-height: 2;
    text-align: center;
}

.confirm-list {
    margin: 0;
    border-top: 1px solid #e2e8f0;
}

.confirm-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    border-bottom: 1px solid #e2e8f0;
}

.confirm-row dt,
.confirm-row dd {
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: left;
}

.confirm-row dt {
    background-color: #f7f4f2;
    color: #4a5568;
    font-weight: 600;
}

.confirm-row dd {
    overflow-wrap: anywhere;
    color: #1f0c06;
}

.confirm-buttons {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    margin-top: 42px;
}

.confirm-buttons form {
    width: 100%;
    max-width: 280px;
    margin: 0;
}

.btn-back,
.btn-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 62px;
    margin: 0;
    padding: 15px 20px;
    border-radius: 30px;
    box-sizing: border-box;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-back {
    border: 1px solid #6a1917;
    background-color: #ffffff;
    color: #6a1917;
}

.btn-send {
    border: 1px solid #6a1917;
    background-color: #6a1917;
    color: #ffffff;
}

/* 入力画面用のbutton[type="submit"]の余白を確認画面では解除 */
.confirm-buttons button[type="submit"],
.confirm-buttons .btn-back {
    max-width: none;
    margin: 0;
}

.btn-back:hover,
.btn-send:hover {
    transform: translateY(-1px);
}

.btn-back:hover {
    background-color: #f7f4f2;
}

.btn-send:hover {
    background-color: #6f5436;
}

.confirm-error-box h2 {
    margin: 0 0 24px;
    color: #6a1917;
    font-size: 1.7rem;
    text-align: center;
}

.confirm-errors {
    margin: 0;
    padding: 20px 20px 20px 42px;
    border: 1px solid #e8b4b4;
    border-radius: 6px;
    background-color: #fff8f8;
    color: #a42626;
    font-size: 1.15rem;
    line-height: 1.9;
}

.confirm-single-button {
    width: 100%;
    max-width: 270px;
    margin: 34px auto 0;
}

@media (max-width: 600px) {
    .confirm-wrapper {
        margin-top: 30px;
        padding: 0 15px;
    }

    .confirm-box {
        padding: 28px 20px;
    }

    .confirm-lead {
        font-size: 1.1rem;
    }

    .confirm-row {
        display: block;
    }

    .confirm-row dt,
    .confirm-row dd {
        padding: 15px 16px;
        font-size: 1.08rem;
    }

    .confirm-row dt {
        border-bottom: 1px solid #e2e8f0;
    }

    .confirm-buttons {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .confirm-buttons form {
        max-width: none;
    }
}