/* Modern Contact Page Styles */

/* セクション全体の背景とアニメーション */
.contact-section {
    position: relative;
    min-height: calc(100vh - 120px);
    padding: 150px 0 60px;
    background-color: #fff;
    overflow: hidden;
    scroll-margin-top: 140px;
}

#request-form,
#contact-form {
    scroll-margin-top: 150px;
}

.page-main {
    padding-top: 0;
}

/* アニメーション背景（非表示） */
.contact-background {
    display: none;
}

.floating-shapes {
    display: none;
}

.shape {
    display: none;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.contact-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー部分 */
.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-page-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #444;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.title-icon {
    font-size: 0.8em;
    opacity: 0.9;
}

.contact-subtitle-text {
    font-size: 1.1em;
    color: #666;
    font-weight: 300;
    margin: 0;
}

/* グリッドレイアウト */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

/* カードスタイル */
.contact-info-card,
.contact-form-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバーエフェクトを無効化 */
/* .contact-info-card:hover,
.contact-form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
} */

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: #007bff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
}

.card-header h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: #444;
    margin: 0;
}

/* 連絡先情報 */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007bff;
    transition: all 0.3s ease;
}

/* ホバーエフェクトを無効化 */
/* .contact-item:hover {
    background-color: #e9ecef;
} */

.contact-item i {
    font-size: 1.1em;
    color: #007bff;
    width: 20px;
    text-align: center;
}

.contact-item span {
    font-size: 1.1em;
    font-weight: 500;
    color: #444;
}


/* フォームスタイル */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #444;
    font-size: 1em;
    margin-bottom: 5px;
}

.form-label i {
    color: #667eea;
    font-size: 0.9em;
}

.required-star {
    color: #e74c3c;
    margin-left: 3px;
    font-size: 1.1em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1em;
    font-family: inherit;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #a0a0a0;
    font-style: italic;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* カスタムチェックボックス */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9ff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* ホバーエフェクトを無効化 */
/* .checkbox-item:hover {
    background: #e8f0ff;
    border-color: #667eea;
    transform: translateY(-2px);
} */

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 0.95em;
    color: #444;
    font-weight: 500;
}

/* 送信ボタン */
.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 250px;
    padding: 18px 30px;
    margin: 30px auto 0;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-button::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;
}

/* ホバーエフェクトを無効化 */
/* .submit-button:hover::before {
    left: 100%;
} */

/* .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
} */

.submit-button:active {
    transform: translateY(-1px);
}

.button-text {
    font-weight: 600;
}

.button-icon {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

/* .submit-button:hover .button-icon {
    transform: translateX(3px);
} */

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-page-title {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-page-title {
        font-size: 2.5em;
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-subtitle-text {
        font-size: 1.1em;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 25px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
    
    .card-header h2 {
        font-size: 1.5em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .submit-button {
        width: 100%;
        max-width: 250px;
        padding: 15px 25px;
        font-size: 1em;
    }
    
    .contact-item {
        padding: 12px 15px;
    }
    
    .contact-item span {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 30px 0;
    }
    
    .contact-page-title {
        font-size: 2em;
    }
    
    .contact-subtitle-text {
        font-size: 1em;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 20px;
        border-radius: 15px;
    }
    
    .card-header h2 {
        font-size: 1.3em;
    }
    
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form textarea {
        padding: 12px 15px;
        font-size: 0.95em;
    }
    
    .checkbox-item {
        padding: 10px 12px;
    }
    
    .checkbox-text {
        font-size: 0.9em;
    }
    
    .submit-button {
        padding: 12px 20px;
        font-size: 0.95em;
    }
    
    .shape-1,
    .shape-2,
    .shape-3 {
        display: none; /* 小さな画面ではアニメーション要素を非表示 */
    }
}