/* ===== お問い合わせページ専用CSS ===== */

/* CSS変数 */
:root {
    --primary-color: #1a2b4a;
    --primary-dark: #0f1a2e;
    --primary-light: #2d4a7c;
    --accent-gold: #b8860b;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f8f9fa;
    --bg-section: #f3f4f6;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --border-light: #f0f0f0;
    --error-color: #dc2626;
    --success-color: #16a34a;
}

/* ===== KVビジュアル ===== */
.kv-visual {
    margin-top: 80px;
    height: 35vh;
    min-height: 280px;
    background: linear-gradient(135deg, rgba(26, 43, 74, 0.95) 0%, rgba(45, 74, 124, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.kv-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/contact-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
}

.kv-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
}

.kv-content h1 {
    font-family: 'Georgia', serif;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    margin-bottom: 0.8rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.kv-content p {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== パンくずリスト ===== */
.breadcrumb {
    background-color: #ffffff;
    padding: 1rem 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    list-style: none;
    font-size: 0.85rem;
    color: #6b7280;
    padding: 0;
    margin: 0;
}

.breadcrumb-list a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #1a2b4a;
}

/* ===== リードセクション ===== */
.contact-lead {
    padding: 50px 3rem;
    background: #ffffff;
}

.contact-lead-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-lead__txt {
    font-size: 0.95rem;
    line-height: 2;
    color: #1f2937;
    margin-bottom: 2rem;
}

.contact-lead__txt .highlight {
    color: #1a2b4a;
    font-weight: 600;
}

/* ===== 電話CVエリア - コンパクト版 ===== */
.contact-cv {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: #ffffff;
    border: 1px solid #1a2b4a;
    border-left: 4px solid #1a2b4a;
    padding: 1rem 2rem;
    margin-bottom: 1.5rem;
}

.contact-cv__head {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.5;
    white-space: nowrap;
}

.contact-cv__tel-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid #e5e7eb;
}

.contact-cv__tel {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #1a2b4a;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.contact-cv__tel:hover {
    color: #b8860b;
}

.contact-cv__tel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-cv__tel-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.contact-cv__info {
    font-size: 0.7rem;
    color: #9ca3af;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* 注意事項 */
.contact-notes {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.contact-notes__item {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.8;
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.2rem;
}

.contact-notes__item:last-child {
    margin-bottom: 0;
}

.contact-notes__item::before {
    content: '※';
    position: absolute;
    left: 0;
    color: #9ca3af;
    font-size: 0.7rem;
}

/* ===== フォームセクション ===== */
.contact-form-section {
    padding: 60px 3rem 80px;
    background: #f3f4f6;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a2b4a;
    margin-bottom: 0.6rem;
    letter-spacing: 0.1em;
}

.form-header p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.8;
}

/* Contact Form 7 コンテナ */
.contact-form-container {
    background: #ffffff;
    padding: 2.5rem 3rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

/* ===== Contact Form 7 スタイル上書き ===== */
.wpcf7 {
    width: 100%;
}

.wpcf7-form {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* フォームグループ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

/* 必須・任意ラベル */
.required-label {
    display: inline-block;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.optional-label {
    display: inline-block;
    background: #9ca3af;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

/* 入力フィールド共通 */
.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
    color: #1f2937;
    box-sizing: border-box;
}

.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a2b4a;
    box-shadow: 0 0 0 3px rgba(26, 43, 74, 0.06);
}

/* プレースホルダー */
.wpcf7-form-control::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #c0c5cc;
}

/* テキストエリア */
.wpcf7-textarea,
.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* セレクトボックス */
.wpcf7-select,
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* ラジオボタン・チェックボックス */
.wpcf7-radio,
.wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.wpcf7-list-item {
    display: flex;
    align-items: center;
    margin: 0 !important;
}

.wpcf7-list-item input[type="radio"],
.wpcf7-list-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 0.4rem;
    accent-color: #1a2b4a;
    cursor: pointer;
}

.wpcf7-list-item-label {
    font-weight: 400;
    color: #1f2937;
    cursor: pointer;
    font-size: 0.85rem;
}

/* 承諾確認チェックボックス */
.wpcf7-acceptance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wpcf7-acceptance input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1a2b4a;
}

/* プライバシー同意エリア */
.privacy-agree {
    text-align: center;
    padding: 1.2rem;
    background: #f8f9fa;
    margin-top: 1.5rem;
}

.privacy-link {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.8rem;
}

.privacy-link a {
    color: #1a2b4a;
    text-decoration: underline;
}

.privacy-link a:hover {
    text-decoration: none;
}

/* 送信ボタンエリア */
.submit-area {
    text-align: center;
    margin-top: 2rem;
}

/* 送信ボタン */
.wpcf7-submit,
.submit-area input[type="submit"] {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: #1a2b4a;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}

.wpcf7-submit:hover,
.submit-area input[type="submit"]:hover {
    background: #0f1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 43, 74, 0.2);
}

.wpcf7-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.4rem;
    display: block;
}

.wpcf7-not-valid {
    border-color: #dc2626 !important;
}

/* 送信完了・エラーメッセージ */
.wpcf7-response-output {
    margin: 1.5rem 0 0 !important;
    padding: 1rem !important;
    border-radius: 0 !important;
    text-align: center;
    font-size: 0.85rem;
}

.wpcf7-mail-sent-ok {
    background: rgba(22, 163, 74, 0.08) !important;
    border: 1px solid #16a34a !important;
    color: #16a34a !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors,
.wpcf7-spam-blocked {
    background: rgba(220, 38, 38, 0.08) !important;
    border: 1px solid #dc2626 !important;
    color: #dc2626 !important;
}

/* スピナー */
.wpcf7-spinner {
    display: block;
    margin: 1rem auto 0;
}

/* 同意エリア */
.agree-area {
    text-align: center;
    padding: 1.2rem;
    background: #f8f9fa;
    margin-top: 1.5rem;
}

.agree-notes {
    list-style: none;
    padding: 0;
    margin: 0.8rem auto 0;
    text-align: left;
    max-width: 400px;
}

.agree-notes li {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.7;
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.2rem;
}

.agree-notes li::before {
    content: '・';
    position: absolute;
    left: 0;
}

/* ===== フォーム後の注意事項 ===== */
.form-after-notes {
    list-style: none;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0 0;
    background: #ffffff;
    border: 1px solid #f0f0f0;
}

.form-after-notes li {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.8;
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.form-after-notes li:last-child {
    margin-bottom: 0;
}

.form-after-notes li::before {
    content: '※';
    position: absolute;
    left: 0;
    color: #9ca3af;
    font-size: 0.7rem;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    /* KV */
    .kv-visual {
        margin-top: 60px;
        height: 28vh;
        min-height: 180px;
    }

    .kv-content h1 {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }

    .kv-content p {
        font-size: 0.9rem;
    }

    /* パンくず */
    .breadcrumb {
        padding: 0.8rem 1.5rem;
    }

    .breadcrumb-list {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    /* リードセクション */
    .contact-lead {
        padding: 35px 1.5rem;
    }

    .contact-lead__txt {
        font-size: 0.85rem;
        line-height: 1.9;
        text-align: left;
    }

    .contact-lead__txt br {
        display: none;
    }

    /* 電話CVエリア - モバイル：縦並び */
    .contact-cv {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem 1.2rem;
        text-align: center;
        border-left: none;
        border-top: 3px solid #1a2b4a;
    }

    .contact-cv__head {
        font-size: 0.75rem;
        white-space: normal;
    }

    .contact-cv__tel-wrap {
        flex-direction: column;
        gap: 0.3rem;
        padding-left: 0;
        border-left: none;
    }

    .contact-cv__tel {
        font-size: 1.3rem;
    }

    .contact-cv__tel-icon svg {
        width: 16px;
        height: 16px;
    }

    .contact-cv__info {
        font-size: 0.65rem;
    }

    .contact-notes__item {
        font-size: 0.75rem;
    }

    /* フォームセクション */
    .contact-form-section {
        padding: 40px 1.5rem 60px;
    }

    .form-header h2 {
        font-size: 1.2rem;
    }

    .form-header p {
        font-size: 0.8rem;
    }

    .contact-form-container {
        padding: 1.5rem 1.2rem;
    }

    .wpcf7-form {
        max-width: 100%;
    }

    /* Contact Form 7 */
    .wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        padding: 0.75rem 0.9rem;
        font-size: 16px;
    }

    .wpcf7-radio,
    .wpcf7-checkbox {
        flex-direction: column;
        gap: 0.7rem;
    }

    .wpcf7-submit,
    .submit-area input[type="submit"] {
        font-size: 0.85rem;
        padding: 0.85rem 1.5rem;
        max-width: 100%;
    }

    /* フォーム後の注意事項 */
    .form-after-notes {
        padding: 1rem;
        margin-top: 1.2rem;
    }

    .form-after-notes li {
        font-size: 0.7rem;
    }
}

/* PCのみ表示 */
@media (min-width: 769px) {
    br.sp {
        display: none;
    }
}

/* SPのみ表示 */
@media (max-width: 768px) {
    br.pc {
        display: none;
    }
}
