/*
 * お問い合わせページのスタイル
 * Contact Page Styles
 */

/* ========================================
   ヒーローセクション
   ======================================== */

.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
    width: 100%;
}

.contact-hero .hero-background {
    position: relative;
    background-image: url('../images/background05.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-3xl) 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.contact-hero .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.contact-hero .hero-title {
    font-size: 4rem;
    color: var(--color-text-white);
    font-weight: 800;
    font-family: var(--font-family-en);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    line-height: 1.2;
    margin-top: 0;
}

.contact-hero .subtitle {
    font-size: 1.5rem;
    color: var(--color-text-white);
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ヒーローセクション - レスポンシブデザイン */

/* タブレット */
@media (max-width: 1024px) {
    .contact-hero .hero-background {
        min-height: 350px;
    }

    .contact-hero .hero-title {
        font-size: 3rem;
    }

    .contact-hero .subtitle {
        font-size: 1.35rem;
        font-weight: 700;
    }
}

/* スマートフォン */
@media (max-width: 768px) {
    .contact-hero .hero-background {
        min-height: 300px;
    }

    .contact-hero .hero-title {
        font-size: 2.5rem;
    }

    .contact-hero .subtitle {
        font-size: 1.25rem;
        font-weight: 700;
    }
}

/* 小型スマートフォン */
@media (max-width: 480px) {
    .contact-hero .hero-background {
        min-height: 250px;
    }

    .contact-hero .hero-title {
        font-size: 2rem;
    }

    .contact-hero .subtitle {
        font-size: 1.1rem;
        font-weight: 700;
    }
}

/* ========================================
   コンタクトページコンテンツ
   ======================================== */

.contact-page-content {
    padding: var(--spacing-2xl) 0;
}

/* ========================================
   よくあるご質問への案内
   ======================================== */

.faq-notice {
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
    text-align: center;
    padding: var(--spacing-2xl);
    background-color: #f8f9fa;
    border-radius: 12px;
}

.faq-notice-text {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

/* よくあるご質問ボタン（製品ページのくわしく見るボタンと同じスタイル） */
.btn-faq-outline {
    background-color: var(--color-bg-white);
    border: 2px solid var(--color-primary-green);
    color: var(--color-primary-green);
    border-radius: 50px;
    padding: 0.85rem 3.5rem 0.85rem 2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-faq-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-green) 0%, var(--color-primary-green-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    border-radius: 50px;
}

.btn-faq-outline:hover {
    color: var(--color-text-white);
    border-color: var(--color-primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 133, 64, 0.25);
}

.btn-faq-outline:hover::after {
    opacity: 1;
}

.btn-faq-outline span {
    position: relative;
    z-index: 1;
}

.btn-faq-outline svg {
    position: absolute;
    right: 1rem;
    z-index: 1;
}

/* イントロセクション */
.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
    padding: 0 var(--spacing-md);
}

.contact-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

/* ========================================
   送信完了・エラーメッセージ
   ======================================== */

.contact-success-message,
.contact-error-message {
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
    padding: var(--spacing-2xl);
    border-radius: 12px;
    text-align: center;
}

.contact-success-message {
    background-color: #d1fae5;
    border: 2px solid #10b981;
}

.contact-success-message h2 {
    color: #065f46;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.contact-success-message p {
    color: #047857;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.contact-error-message {
    background-color: #fee2e2;
    border: 2px solid #ef4444;
}

.contact-error-message h2 {
    color: #991b1b;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.contact-error-message p {
    color: #dc2626;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* ========================================
   お問い合わせフォーム
   ======================================== */

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
    background-color: #ffffff;
    padding: var(--spacing-3xl) var(--spacing-2xl);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-form-wrapper .contact-form {
    text-align: left;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    width: 100%;
}

/* Contact Form 7用のスタイル */
.wpcf7 {
    max-width: 100%;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: left;
}

.wpcf7-form p {
    margin: 0;
}

/* 基本フォームスタイル */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-field label,
.wpcf7-form label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.required {
    color: #dc2626;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* 入力フィールド共通スタイル */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-primary);
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field select:focus,
.form-field textarea:focus,
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 133, 64, 0.1);
}

.form-field input[type="text"]:hover,
.form-field input[type="email"]:hover,
.form-field input[type="tel"]:hover,
.form-field select:hover,
.form-field textarea:hover,
.wpcf7-form input[type="text"]:hover,
.wpcf7-form input[type="email"]:hover,
.wpcf7-form input[type="tel"]:hover,
.wpcf7-form select:hover,
.wpcf7-form textarea:hover {
    border-color: #9ca3af;
}

/* セレクトボックス */
.form-field select,
.wpcf7-form 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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* テキストエリア */
.form-field textarea,
.wpcf7-form textarea {
    min-height: 180px;
    resize: vertical;
    font-family: 'Noto Sans JP', sans-serif;
}

/* チェックボックス */
.checkbox-label,
.wpcf7-form .wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-text-primary);
}

.form-field input[type="checkbox"],
.wpcf7-form input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.checkbox-label span {
    line-height: 1.6;
}

.checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.checkbox-label a:hover {
    color: var(--color-primary-green-light);
}

/* 送信ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-green) 0%, var(--color-primary-green-light) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(46, 133, 64, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 133, 64, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.15rem;
}

.btn-block {
    width: 100%;
}

/* Contact Form 7の送信ボタン */
.wpcf7-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 3rem;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary-green) 0%, var(--color-primary-green-light) 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 133, 64, 0.25);
    font-family: 'Noto Sans JP', sans-serif;
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 133, 64, 0.35);
}

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

/* バリデーションメッセージ */
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

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

.wpcf7-validation-errors {
    background-color: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

.wpcf7-mail-sent-ok {
    background-color: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
}

.wpcf7-spam-blocked {
    background-color: #fef3c7;
    border: 2px solid #f59e0b;
    color: #92400e;
}

/* ========================================
   お電話でのお問い合わせセクション
   ======================================== */

.contact-phone-section {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--spacing-3xl) var(--spacing-2xl);
    border-radius: 12px;
    text-align: center;
}

.section-title-center {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    width: 100%;
}

.phone-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.phone-intro {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin: 0;
}

.phone-number-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-family-poppins);
    color: var(--color-primary-green);
}

.phone-number-large svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary-green);
}

.phone-number-large a {
    color: var(--color-primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.phone-number-large a:hover {
    color: var(--color-primary-green-light);
}

.phone-hours {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット */
@media (max-width: 1024px) {
    .contact-form-wrapper {
        padding: var(--spacing-2xl) var(--spacing-xl);
    }

    .contact-phone-section {
        padding: var(--spacing-2xl) var(--spacing-xl);
    }
}

/* スマートフォン */
@media (max-width: 768px) {
    .contact-page-content {
        padding: var(--spacing-xl) 0;
    }

    .contact-intro {
        margin-bottom: var(--spacing-2xl);
    }

    .contact-intro p {
        font-size: 1rem;
    }

    .faq-notice {
        padding: var(--spacing-xl);
        margin-bottom: var(--spacing-2xl);
    }

    .faq-notice-text {
        font-size: 1rem;
    }

    .btn-faq-outline {
        padding: 0.75rem 3rem 0.75rem 1.75rem;
        font-size: 0.95rem;
    }

    .contact-form-wrapper {
        padding: var(--spacing-xl) var(--spacing-lg);
        margin-bottom: var(--spacing-2xl);
    }

    .form-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-xl);
    }

    .contact-form,
    .wpcf7-form {
        gap: var(--spacing-md);
    }

    .form-field input[type="text"],
    .form-field input[type="email"],
    .form-field input[type="tel"],
    .form-field select,
    .form-field textarea,
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form select,
    .wpcf7-form textarea {
        font-size: 1rem;
        padding: 0.75rem 0.875rem;
    }

    .form-field textarea,
    .wpcf7-form textarea {
        min-height: 150px;
    }

    .btn-lg,
    .wpcf7-form input[type="submit"] {
        padding: 0.875rem 2rem;
        font-size: 1.05rem;
    }

    .contact-phone-section {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    .section-title-center {
        font-size: 1.5rem;
    }

    .phone-number-large {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .phone-number-large svg {
        width: 28px;
        height: 28px;
    }
}

/* 小型スマートフォン */
@media (max-width: 480px) {
    .faq-notice {
        padding: var(--spacing-lg);
    }

    .faq-notice-text {
        font-size: 0.95rem;
    }

    .btn-faq-outline {
        padding: 0.7rem 2.5rem 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact-form-wrapper {
        padding: var(--spacing-lg) var(--spacing-md);
        border-radius: 8px;
    }

    .form-title {
        font-size: 1.35rem;
    }

    .contact-intro p {
        font-size: 0.95rem;
    }

    .form-field label,
    .wpcf7-form label {
        font-size: 0.95rem;
    }

    .phone-number-large {
        font-size: 1.75rem;
    }

    .phone-intro {
        font-size: 1rem;
    }

    .section-title-center {
        font-size: 1.35rem;
    }
}

/* ========================================
   特注サイズ見積もり依頼
   ======================================== */

.quote-request-notice {
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, #2E8540 0%, #3a9d52 100%);
    color: #fff;
    border-radius: 12px;
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 4px 16px rgba(46, 133, 64, 0.2);
}

.quote-request-notice h3 {
    margin: 0 0 var(--spacing-md) 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.quote-request-notice p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.quote-request-notice strong {
    font-weight: 700;
    color: #fff;
    text-decoration: underline;
}

.quote-fields-wrapper {
    padding: var(--spacing-xl);
    background-color: #f5f5f5;
    border-radius: 12px;
    margin: var(--spacing-xl) 0;
    border: 2px solid #2E8540;
}

.quote-section-title {
    margin: 0 0 var(--spacing-lg) 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2E8540;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid #2E8540;
}

.form-row-thirds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.quote-fields-wrapper input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
    font-weight: 600;
    color: #495057;
}

/* タブレット対応 */
@media (max-width: 768px) {
    .form-row-thirds {
        grid-template-columns: 1fr;
    }
    
    .quote-request-notice {
        padding: var(--spacing-lg);
    }
    
    .quote-request-notice h3 {
        font-size: 1.3rem;
    }
    
    .quote-fields-wrapper {
        padding: var(--spacing-lg);
    }
}

/* スマートフォン対応 */
@media (max-width: 480px) {
    .quote-request-notice {
        padding: var(--spacing-md);
    }
    
    .quote-request-notice h3 {
        font-size: 1.2rem;
    }
    
    .quote-request-notice p {
        font-size: 0.95rem;
    }
    
    .quote-fields-wrapper {
        padding: var(--spacing-md);
    }
    
    .quote-section-title {
        font-size: 1.1rem;
    }
}

/* ========================================
   reCAPTCHA V3 スタイル
   ======================================== */

/* reCAPTCHA V3 バッジの位置調整 */
.grecaptcha-badge {
    visibility: visible;
    opacity: 1;
    z-index: 9999;
}

/* お問い合わせページでのreCAPTCHAバッジの位置 */
.page-template-page-contact .grecaptcha-badge {
    bottom: 14px;
    right: 14px;
}

/* モバイルでのバッジサイズ調整 */
@media (max-width: 480px) {
    .grecaptcha-badge {
        transform: scale(0.9);
        transform-origin: bottom right;
    }
}

