/* =================================================================
   Contact Page Styles (お問い合わせページ専用CSS)
   ================================================================= */

/* ヒーロービュー */
.contact-hero {
    /* ↓ここにヒーロー画像のURLを記述してください */
    background-image: url('https://asibimo.com/wp-content/uploads/2025/07/toiawase_hero.jpg'); 
    background-size: cover;
    background-position: center;
    height: 400px;
    display: grid;
    place-items: center;
    color: white;
}
.contact-hero-title {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ページ全体のコンテナ */
.contact-page-content .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* パンくずリスト */
.breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
    color: #666;
}
.breadcrumbs a {
    text-decoration: none;
    color: #0c99ba;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

/* 導入文 */
.contact-intro {
    text-align: center;
    line-height: 1.8;
    margin-bottom: 3.5rem;
}

/* フォーム全体 */
.contact-form-wrapper {
    padding: 0;
}
.form-item {
    display: flex;
    margin-bottom: 1.8rem;
}
.form-item.item-block {
    flex-direction: column;
}
.form-item label {
    width: 170px;
    padding-top: 0.5rem;
    font-weight: 600;
    color: #0c99ba;
    flex-shrink: 0;
}
.form-item.item-block label {
    width: 100%;
    padding-top: 0;
    margin-bottom: 0.8rem;
}
.form-item .form-input {
    flex-grow: 1;
}

/* 必須マーク */
.required {
    background-color: #ff6645;
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: normal;
    vertical-align: middle;
}

/* 入力フィールド */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}
textarea {
    height: 200px;
    resize: vertical;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #0c99ba;
    box-shadow: 0 0 5px rgba(12, 153, 186, 0.5);
}

/* エラーメッセージ */
.error-msg {
    color: #d9534f;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}
input.error, textarea.error { /* JavaScriptでクラスを付与する場合 */
    border-color: #d9534f;
}

/* 確認画面の値 */
/* 確認画面ラッパー */
.contact-confirm-wrapper {
    background-color: #f7f7f7; /* 背景色を変更 */
    padding: 2.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.form-step-title {
    text-align: center;
    font-size: 1.5rem;
    color: #0c99ba;
    margin-bottom: 1rem;
}

.form-step-notice {
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 確認テーブル */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
}

.confirm-table th, .confirm-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: top;
}

.confirm-table th {
    width: 160px;
    font-weight: 600;
    color: #0c99ba;
}

.confirm-table td {
    line-height: 1.7;
}

.confirm-table .confirm-message td {
    white-space: pre-wrap; /* 改行を反映 */
}


.confirm-value {
    background-color: #f9f9f9;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    min-height: 45px; /* inputの高さと合わせる */
    display: flex;
    align-items: center;
}
.confirm-value.nl2br {
    line-height: 1.7;
    white-space: pre-wrap; /* 改行を反映 */
    min-height: 200px;
    align-items: flex-start;
}

/* ボタンエリア */
.submit-button-wrapper {
    text-align: center;
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.button-submit, .button-back {
    color: white;
    border: none;
    padding: 1rem 0;
    width: 240px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}
.button-submit {
    background-color: #ff6645;
}
.button-submit:hover {
    background-color: #e65233;
    transform: translateY(-2px);
}
.button-back {
    background-color: #aaa;
}
.button-back:hover {
    background-color: #888;
}

/* 完了画面 */
.contact-complete {
    text-align: center;
    padding: 4rem 0;
}
.contact-complete h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #0c99ba;
}
.contact-complete p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.button-back-to-top {
    display: inline-block;
    background-color: #ff6645;
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 2rem;
    transition: background-color 0.3s;
}
.button-back-to-top:hover {
    background-color: #e65233;
}


/* スパム対策フィールドを隠す */
.user-nickname-field {
    display: none;
    visibility: hidden;
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
    .contact-hero { height: 250px; }
    .contact-hero-title { font-size: 2rem; }
    .contact-page-content .container { padding: 2rem 1rem; }
    
    .form-item {
        flex-direction: column;
    }
    .form-item label {
        width: 100%;
        padding-top: 0;
        margin-bottom: 0.8rem;
    }

    .contact-confirm-wrapper {
        padding: 1.5rem 1rem;
    }
    .confirm-table th, .confirm-table td {
        display: block;
        width: 100%;
        padding: 0.8rem 0;
    }
    .confirm-table th {
        padding-bottom: 0.5rem;
    }
    .confirm-table td {
        padding-top: 0;
        padding-bottom: 1.5rem;
    }
    .confirm-table tr:last-child td {
        padding-bottom: 0;
    }

    .submit-button-wrapper {
        flex-direction: column-reverse;
        align-items: center;
    }
    .button-submit, .button-back {
        width: 100%;
    }
}