@charset "UTF-8";

/* ===================================================
   contact.css - お問い合わせフォーム
=================================================== */

/* ヘッダー：下層ページ用固定背景 */
.site-header {
    background-color: rgba(57, 52, 44, 0.5);
    transition: background-color 0.3s ease;
    backdrop-filter: blur(5px);
}

/* メインエリア背景 */
main {
    background-color: #f4f1ef;
}

/* ===================================================
   ページヒーロー
=================================================== */
.contact-hero {
    background-color: #39342C;
    padding: 160px 20px 80px;
    text-align: center;
    color: #fff;
}

.contact-hero__en {
    font-size: 12px;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    opacity: 0.6;
}

.contact-hero__title {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 0.08em;
}

/* ===================================================
   フォームセクション共通
=================================================== */
.contact-form-section,
.thanks-section {
    padding: 80px 20px 120px;
}

/* ===================================================
   ステップナビゲーション
=================================================== */
.contact-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

.contact-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contact-step__circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #bbb;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-step__label {
    font-size: 12px;
    color: #bbb;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.contact-step.is-active .contact-step__circle {
    background: #39342C;
    border-color: #39342C;
    color: #fff;
}

.contact-step.is-active .contact-step__label {
    color: #39342C;
    font-weight: 600;
}

.contact-step.is-done .contact-step__circle {
    background: #39342C;
    border-color: #39342C;
    color: #fff;
}

.contact-step.is-done .contact-step__label {
    color: #39342C;
}

.contact-step__line {
    width: 80px;
    height: 1px;
    background: #ccc;
    margin-bottom: 22px; /* ラベルの高さ分ずらして中央揃え */
}

/* ===================================================
   フォームラップ（入力・確認共通）
=================================================== */
.contact-form-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 60px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.contact-form-lead {
    text-align: center;
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 50px;
}

/* ===================================================
   エラーメッセージ
=================================================== */
.form-errors {
    background: #fff5f5;
    border: 1px solid #f0c0c0;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.form-errors p {
    color: #c00;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.form-errors p + p {
    margin-top: 5px;
}

/* ===================================================
   フォーム行
=================================================== */
.form-rows {
    border-top: 1px solid #eee;
}

.form-row {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding: 22px 0;
}

.form-label {
    width: 210px;
    flex-shrink: 0;
    padding-top: 13px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    box-sizing: border-box;
}

.required-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    background: #39342C;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 3px;
    letter-spacing: 0.05em;
}

.form-field {
    flex: 1;
    width: 100%;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    color: #333;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field textarea:focus {
    border-color: #39342C;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(57, 52, 44, 0.08);
}

.form-field textarea {
    height: 160px;
    resize: vertical;
    line-height: 1.7;
}

/* ===================================================
   ボタン
=================================================== */
.form-btn-wrap {
    text-align: center;
    margin-top: 50px;
}

.btn-confirm,
.btn-send {
    display: inline-block;
    background: #39342C;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    padding: 18px 70px;
    border: 2px solid #39342C;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: background 0.25s, color 0.25s;
}

.btn-confirm:hover,
.btn-send:hover {
    background: transparent;
    color: #39342C;
}

.btn-back {
    display: inline-block;
    background: transparent;
    color: #555;
    font-size: 15px;
    font-family: inherit;
    padding: 16px 50px;
    border: 2px solid #ccc;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.05em;
    margin-right: 20px;
    transition: border-color 0.2s, color 0.2s;
}

.btn-back:hover {
    border-color: #39342C;
    color: #39342C;
}

/* ===================================================
   確認画面テーブル
=================================================== */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #eee;
}

.confirm-table th,
.confirm-table td {
    padding: 22px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
    font-size: 15px;
}

.confirm-table th {
    width: 210px;
    font-weight: 600;
    color: #333;
    background: #fafaf8;
    white-space: nowrap;
}

.confirm-table td {
    color: #444;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.8;
}

/* ===================================================
   サンクス画面
=================================================== */
.thanks-box {
    background: #fff;
    border-radius: 16px;
    padding: 80px 60px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.thanks-box__icon {
    width: 72px;
    height: 72px;
    background: #39342C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 28px;
    color: #fff;
}

.thanks-box__title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.5;
}

.thanks-box__text {
    font-size: 15px;
    line-height: 2;
    color: #555;
    margin-bottom: 50px;
}

.btn-home {
    display: inline-block;
    background: #39342C;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    padding: 16px 55px;
    border: 2px solid #39342C;
    border-radius: 50px;
    letter-spacing: 0.08em;
    transition: background 0.25s, color 0.25s;
}

.btn-home:hover {
    background: transparent;
    color: #39342C;
    text-decoration: none;
}

/* ===================================================
   レスポンシブ（840px以下）
=================================================== */
@media screen and (max-width: 840px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
        padding: 18px 0;
    }

    .form-label {
        width: 100%;
        padding-top: 0;
    }

    .btn-back {
        margin-right: 12px;
        padding: 14px 35px;
    }

    .btn-confirm,
    .btn-send {
        padding: 16px 50px;
    }
}

/* ===================================================
   レスポンシブ（639px以下：SP）
=================================================== */
@media screen and (max-width: 639px) {
    .contact-hero {
        padding: 120px 20px 60px;
    }

    .contact-hero__title {
        font-size: 26px;
    }

    .contact-step__line {
        width: 35px;
    }

    .contact-form-section,
    .thanks-section {
        padding: 50px 15px 80px;
    }

    .contact-form-wrap {
        padding: 35px 20px;
        border-radius: 12px;
    }

    .contact-steps {
        margin-bottom: 45px;
    }

    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .confirm-table th {
        padding-bottom: 8px;
        border-bottom: none;
        width: 100%;
    }

    .confirm-table td {
        padding-top: 5px;
        padding-left: 20px;
    }

    .form-btn-wrap {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 15px;
        margin-top: 40px;
    }

    .btn-back {
        margin-right: 0;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .btn-confirm,
    .btn-send {
        width: 100%;
        max-width: 280px;
        padding: 16px 30px;
    }

    .thanks-box {
        padding: 50px 20px;
    }

    .btn-home {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
