/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

/* ==========================================================================
   Contact Form Wrapper
   ========================================================================== */
.contact-form-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
}

.contact-form-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.contact-form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.contact-form-header p {
    color: #6b7280;
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* ==========================================================================
   Contact Form 7 Styles
   ========================================================================== */
.wpcf7 {
    width: 100%;
}

.wpcf7-form p {
    margin-bottom: 0;
}

/* 入力欄の余白 */
.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1rem;
}

/* brタグを非表示にして余白をコントロール */
.wpcf7-form p br {
    display: none;
}

/* 入力フィールド共通 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #2DA4A7;
    box-shadow: 0 0 0 3px rgba(45, 164, 167, 0.1);
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #adb5bd;
}

.wpcf7-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* ==========================================================================
   Radio Buttons - お問い合わせ種別
   ========================================================================== */
.wpcf7-form .wpcf7-radio {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f9fafb;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 80px;
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item:hover {
    border-color: #2DA4A7;
    background: rgba(45, 164, 167, 0.05);
}

/* ラジオボタン自体を非表示 */
.wpcf7-form .wpcf7-radio .wpcf7-list-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* アイコン用の疑似要素 */
.wpcf7-form .wpcf7-radio .wpcf7-list-item::before {
    font-family: "bootstrap-icons";
    font-size: 1.5rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

/* 各項目にアイコンを設定 */
.wpcf7-form .wpcf7-radio .wpcf7-list-item:nth-child(1)::before {
    content: "\F268"; /* bi-chat-dots */
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item:nth-child(2)::before {
    content: "\F5A8"; /* bi-newspaper */
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item:nth-child(3)::before {
    content: "\F4A0"; /* bi-megaphone */
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item:nth-child(4)::before {
    content: "\F5D4"; /* bi-three-dots */
}

/* ラベルテキスト */
.wpcf7-form .wpcf7-radio .wpcf7-list-item .wpcf7-list-item-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #111827;
    text-align: center;
}

/* 選択時のスタイル */
.wpcf7-form .wpcf7-radio .wpcf7-list-item:has(input:checked),
.wpcf7-form .wpcf7-radio .wpcf7-list-item.is-checked {
    border-color: #2DA4A7;
    background: rgba(45, 164, 167, 0.1);
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item:has(input:checked)::before,
.wpcf7-form .wpcf7-radio .wpcf7-list-item.is-checked::before {
    color: #2DA4A7;
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label,
.wpcf7-form .wpcf7-radio .wpcf7-list-item.is-checked .wpcf7-list-item-label {
    color: #2DA4A7;
}

/* ホバー時のアイコン色 */
.wpcf7-form .wpcf7-radio .wpcf7-list-item:hover::before {
    color: #2DA4A7;
}

/* ==========================================================================
   Checkbox - プライバシーポリシー同意
   ========================================================================== */
.wpcf7-form .wpcf7-acceptance {
    display: block;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #374151;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #2DA4A7;
    cursor: pointer;
    flex-shrink: 0;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    width: 100%;
    background: linear-gradient(135deg, #2DA4A7, #6DD5ED);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45, 164, 167, 0.3);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-form .wpcf7-submit:active {
    transform: translateY(0);
}

.wpcf7-form input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wpcf7-spinner {
    display: inline-block;
    margin-left: 1rem;
    vertical-align: middle;
}

/* ==========================================================================
   Validation & Error Messages
   ========================================================================== */
.wpcf7-not-valid-tip {
    display: block;
    color: #EF4444;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
    border-color: #EF4444;
}

.wpcf7-response-output {
    margin: 1.5rem 0 0 !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    font-size: 0.9375rem;
    border-width: 1px !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: #EF4444 !important;
    background: #FEF2F2;
    color: #DC2626;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #10B981 !important;
    background: #ECFDF5;
    color: #059669;
}

.wpcf7 form.failed .wpcf7-response-output {
    border-color: #F59E0B !important;
    background: #FFFBEB;
    color: #D97706;
}

/* スクリーンリーダー用非表示 */
.wpcf7 .screen-reader-response {
    position: absolute;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    margin: 0;
    padding: 0;
    border: 0;
}

/* ==========================================================================
   Fallback Form Styles (通常フォーム用)
   ========================================================================== */
.contact-form .form-label {
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
}

.contact-form .form-label.required::after {
    content: '*';
    color: #EF4444;
    margin-left: 0.25rem;
}

.contact-form .form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.contact-form .form-control:focus {
    border-color: #2DA4A7;
    box-shadow: 0 0 0 3px rgba(45, 164, 167, 0.1);
}

.contact-form .form-control::placeholder {
    color: #adb5bd;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Inquiry Type Buttons (通常フォーム用) */
.inquiry-type-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.btn-inquiry {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f9fafb;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    color: #111827;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-inquiry i {
    font-size: 1.5rem;
    color: #6b7280;
    transition: all 0.2s ease;
}

.btn-inquiry:hover {
    border-color: #2DA4A7;
    background: rgba(45, 164, 167, 0.05);
}

.btn-inquiry:hover i {
    color: #2DA4A7;
}

.btn-check:checked + .btn-inquiry {
    border-color: #2DA4A7;
    background: rgba(45, 164, 167, 0.1);
    color: #2DA4A7;
}

.btn-check:checked + .btn-inquiry i {
    color: #2DA4A7;
}

.btn-check:focus + .btn-inquiry {
    box-shadow: 0 0 0 3px rgba(45, 164, 167, 0.2);
}

/* Privacy Check (通常フォーム用) */
.privacy-check {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.privacy-check .form-check-input:checked {
    background-color: #2DA4A7;
    border-color: #2DA4A7;
}

.privacy-check .form-check-label a {
    color: #2DA4A7;
    text-decoration: underline;
}

.privacy-check .form-check-label a:hover {
    text-decoration: none;
}

/* Submit Button (通常フォーム用) */
.contact-form .btn-primary-custom {
    background: linear-gradient(135deg, #2DA4A7, #6DD5ED);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    transition: all 0.2s ease;
}

.contact-form .btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45, 164, 167, 0.3);
}

/* ==========================================================================
   Contact Info Wrapper
   ========================================================================== */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Contact Info Card */
.contact-info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.contact-info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #2DA4A7;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-info-item:first-of-type {
    padding-top: 0;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(45, 164, 167, 0.1), rgba(109, 213, 237, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2DA4A7;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-content {
    flex: 1;
}

.contact-info-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-content a {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-info-content a:hover {
    color: #2DA4A7;
}

.contact-info-content address {
    font-style: normal;
    color: #111827;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* SNS Card */
.contact-sns-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    text-align: center;
}

.contact-sns-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.contact-sns-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.contact-sns-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.sns-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.125rem;
    transition: all 0.2s ease;
}

.sns-link:hover {
    transform: translateY(-3px);
    color: #fff;
}

.sns-twitter {
    background: #1DA1F2;
}

.sns-facebook {
    background: #1877F2;
}

.sns-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.sns-youtube {
    background: #FF0000;
}

/* FAQ Card */
.contact-faq-card {
    background: linear-gradient(135deg, #f9fafb, #e8f7f7);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(45, 164, 167, 0.2);
}

.contact-faq-card .faq-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2DA4A7;
    margin: 0 auto 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.contact-faq-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.contact-faq-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.btn-outline-custom {
    border: 2px solid #2DA4A7;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    color: #2DA4A7;
    font-weight: 500;
    background: #fff;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-outline-custom:hover {
    background: #2DA4A7;
    color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }

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

    /* 通常フォーム用 */
    .inquiry-type-buttons {
        grid-template-columns: 1fr;
    }

    .btn-inquiry {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.875rem 1rem;
    }

    .btn-inquiry i {
        font-size: 1.25rem;
    }

    /* CF7用 */
    .wpcf7-form .wpcf7-radio {
        grid-template-columns: 1fr;
    }

    .wpcf7-form .wpcf7-radio .wpcf7-list-item {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.875rem 1rem;
        min-height: auto;
        gap: 0.75rem;
    }

    .wpcf7-form .wpcf7-radio .wpcf7-list-item::before {
        font-size: 1.25rem;
    }

    .contact-info-wrapper {
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .contact-form-wrapper {
        padding: 1.25rem;
    }

    .contact-form .btn-primary-custom {
        padding: 0.875rem 1.5rem;
    }
}
