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

/* ページ全体のスタイル */
.contact-page-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
}

.contact-page-container {
    width: 100%;
}

/* ================================
   ページヘッダー（ヒーローセクション）
================================ */
.contact-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

/* 背景パターン */
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,0.05) 10px,
            rgba(255,255,255,0.05) 20px
        );
    opacity: 0.4;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ヘッダーコンテンツ */
.contact-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.contact-hero .page-title {
    margin-bottom: 30px;
}

.contact-hero .title-en {
    display: block;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.contact-hero .title-ja {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-hero .page-lead {
    font-size: 1.3rem;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* ================================
   お問い合わせフォームセクション
================================ */
.contact-form-section {
    padding: 80px 0;
    background: white;
}

.contact-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* フォームラッパー */
.contact-form-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 40px;
    text-align: center;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.form-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-form-content {
    padding: 40px;
}

/* Contact Form 7のスタイル調整 */
.contact-form-content .wpcf7-form {
    max-width: 100%;
}

/* テーブル形式のContact Form 7対応 */
.contact-form-content .CF7_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.contact-form-content .CF7_table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border: 1px solid #dee2e6;
    vertical-align: top;
    width: 30%;
    position: relative;
}

.contact-form-content .CF7_table td {
    padding: 20px;
    border: 1px solid #dee2e6;
    background: white;
    vertical-align: top;
}

.contact-form-content .CF7_table tr:hover {
    background: rgba(102, 126, 234, 0.02);
}

/* 必須・任意ラベル */
.contact-form-content .CF7_req {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    display: inline-block;
}

.contact-form-content .CF7_unreq {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    display: inline-block;
}

/* 入力フィールド */
.contact-form-content .wpcf7-form input[type="text"],
.contact-form-content .wpcf7-form input[type="email"],
.contact-form-content .wpcf7-form input[type="tel"],
.contact-form-content .wpcf7-form input[type="number"],
.contact-form-content .wpcf7-form textarea,
.contact-form-content .wpcf7-form select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.contact-form-content .wpcf7-form input[type="text"]:focus,
.contact-form-content .wpcf7-form input[type="email"]:focus,
.contact-form-content .wpcf7-form input[type="tel"]:focus,
.contact-form-content .wpcf7-form input[type="number"]:focus,
.contact-form-content .wpcf7-form textarea:focus,
.contact-form-content .wpcf7-form select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form-content .wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* チェックボックス */
.contact-form-content .wpcf7-form input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.contact-form-content .wpcf7-form input[type="checkbox"] + label {
    display: inline-block;
    margin-right: 15px;
    font-weight: 500;
    color: #495057;
}

/* 送信ボタン */
.contact-form-content .CF7_btn {
    text-align: center;
    margin-top: 30px;
}

.contact-form-content .wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    position: relative;
    overflow: hidden;
}

.contact-form-content .wpcf7-form input[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.contact-form-content .wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.contact-form-content .wpcf7-form input[type="submit"]:hover::before {
    left: 100%;
}

/* 住所フィールドの幅調整 */
.contact-form-content .address-100 {
    width: 100%;
}

.contact-form-content .message-100 {
    width: 100%;
}

/* プレースホルダー（watermark）のスタイル */
.contact-form-content .wpcf7-form input::placeholder,
.contact-form-content .wpcf7-form textarea::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* ================================
   サイドバー
================================ */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-top: 4px solid #667eea;
}

.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-card h3::before {
    content: '💼';
    font-size: 1.3rem;
}

/* サービスリスト */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li:hover {
    transform: translateX(5px);
}

.service-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.service-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0.1;
    transition: left 0.3s ease;
    z-index: -1;
}

.service-link:hover {
    color: #667eea;
    text-decoration: none;
    transform: translateX(5px);
}

.service-link:hover::before {
    left: 0;
}

.service-list li i {
    color: #667eea;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-link:hover i {
    transform: scale(1.1);
}

/* お問い合わせ方法 */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-method:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.contact-method i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-note {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

/* ================================
   既存サイドバーの非表示
================================ */
.contact-page-wrapper .widget-area {
    display: none;
}

/* ================================
   レスポンシブ対応
================================ */
@media (max-width: 1024px) {
    .contact-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-sidebar {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 0 60px;
    }
    
    .contact-hero .title-en {
        font-size: 2rem;
    }
    
    .contact-hero .title-ja {
        font-size: 2.5rem;
    }
    
    .contact-hero .page-lead {
        font-size: 1.1rem;
    }
    
    .contact-form-section {
        padding: 60px 0;
    }
    
    .form-header {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-form-content {
        padding: 30px 20px;
    }
    
    .contact-info-card {
        padding: 25px 20px;
    }
    
    /* テーブル形式のレスポンシブ対応 */
    .contact-form-content .CF7_table {
        display: block;
    }
    
    .contact-form-content .CF7_table thead,
    .contact-form-content .CF7_table tbody,
    .contact-form-content .CF7_table tr {
        display: block;
    }
    
    .contact-form-content .CF7_table th,
    .contact-form-content .CF7_table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form-content .CF7_table th {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        font-weight: 700;
        padding: 15px;
        margin-bottom: 0;
    }
    
    .contact-form-content .CF7_table td {
        padding: 15px;
        border-top: none;
    }
    
    .contact-form-content .CF7_req,
    .contact-form-content .CF7_unreq {
        background: rgba(255,255,255,0.2);
        color: white;
        border: 1px solid rgba(255,255,255,0.3);
    }
    
    /* サービスリンクのレスポンシブ対応 */
    .service-link {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .service-link i {
        font-size: 1rem;
    }
}
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 60px 0 40px;
    }
    
    .contact-hero .title-en {
        font-size: 1.5rem;
    }
    
    .contact-hero .title-ja {
        font-size: 2rem;
    }
    
    .contact-form-section {
        padding: 40px 0;
    }
    
    .form-header {
        padding: 25px 15px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .contact-form-content {
        padding: 25px 15px;
    }
    
    .contact-info-card {
        padding: 20px 15px;
    }
    
    .contact-method {
        padding: 12px;
        font-size: 0.9rem;
    }
}
