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

/* グローバルアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* メインコンテンツ */
.main-contact {
    min-height: 100vh;
    padding-top: 100px;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
}

/* ヒーローセクション */
.contact-hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #374151 100%);
    color: white;
    margin-bottom: 60px;
    border-radius: 16px;
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.contact-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* お問い合わせフォーム */
.contact-form-section {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
}

.form-container h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

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

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

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

.form-group label {
    font-weight: 500;
    color: #d1d5db;
    font-size: 14px;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #4b5563;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #2d2d2d;
    color: #ffffff;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* チェックボックス */
.checkbox-group {
    margin-bottom: 16px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ffffff;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-container a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #4b5563;
    transition: border-color 0.2s ease;
}

.checkbox-container a:hover {
    border-bottom-color: #ffffff;
}

/* 連絡先情報 */
.contact-info-section {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
}

.contact-info-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-method {
    text-align: center;
    padding: 32px 24px;
    background: #2d2d2d;
    border-radius: 12px;
    border: 1px solid #4b5563;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: pulse 0.6s ease;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.contact-method h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.contact-method p {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

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

.contact-method a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #4b5563;
    transition: border-color 0.2s ease;
}

.contact-method a:hover {
    border-bottom-color: #ffffff;
}

/* FAQ */
.faq-section {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
}

.faq-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #4b5563;
    margin-bottom: 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #ffffff;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #d1d5db;
    margin: 0;
    flex: 1;
    padding-right: 16px;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #d1d5db;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    color: #d1d5db;
    line-height: 1.6;
    margin: 0 0 24px 0;
    font-size: 14px;
}

.faq-answer a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #4b5563;
    transition: border-color 0.2s ease;
}

.faq-answer a:hover {
    border-bottom-color: #ffffff;
}

/* アクティブナビゲーション */
.nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-hero p {
        font-size: 1.1rem;
    }
    
    .contact-form-section,
    .contact-info-section,
    .faq-section {
        padding: 40px 24px;
        margin-bottom: 40px;
    }
    
    .form-container h2,
    .contact-info-section h2,
    .faq-section h2 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-contact {
        padding-top: 80px;
    }
    
    .contact-hero {
        padding: 60px 20px;
        margin-bottom: 40px;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-form-section,
    .contact-info-section,
    .faq-section {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    .contact-method {
        padding: 24px 20px;
    }
    
    .contact-icon {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 20px 0;
    }
    
    .faq-question h3 {
        font-size: 0.95rem;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-hero {
    animation: fadeInUp 0.6s ease-out;
}

.contact-form-section {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.1s;
}

.contact-info-section {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.2s;
}

.faq-section {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.3s;
}

/* ホバー効果 */
.contact-method:hover {
    background: #f1f5f9;
}

/* スクロールバーのスタイリング */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
