/* お問い合わせページ専用スタイル */

/* ================ ヒーローセクション ================ */
.contact-hero {
    margin-top: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://shibetsu-jc.or.jp/images/contact/contact-hero-bg.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.contact-hero .hero-content h1 {
    font-size: 80px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
}

.contact-hero .hero-content p {
    font-size: 20px;
    margin-bottom: 0;
}

/* ================ メインコンテンツセクション ================ */
.contact-main-section {
    padding: 80px 0;
    background-color: white;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

/* ================ 連絡先情報セクション ================ */
.contact-info-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #e74c3c;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #e74c3c;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
    color: white;
}

.contact-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.contact-details p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.contact-details a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #c0392b;
    text-decoration: underline;
}

.contact-note {
    font-size: 14px;
    color: #95a5a6;
    font-style: italic;
}

/* ================ メール送信セクション ================ */
.email-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-contact-box {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    color: white;
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.3);
    width: 100%;
    max-width: 500px;
}

.email-contact-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.email-contact-box h3 i {
    font-size: 22px;
}

.email-contact-box p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.email-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.email-btn.primary {
    background-color: white;
    color: #e74c3c;
    border-color: white;
}

.email-btn.primary:hover {
    background-color: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

.email-btn.secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.email-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

.email-btn.tertiary {
    background-color: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.email-btn.tertiary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.email-btn i {
    font-size: 18px;
}

/* ================ 地図セクション ================ */
.map-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 40px;
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-info {
    padding: 40px;
}

.map-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.map-info p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.access-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.access-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #666;
    font-size: 15px;
}

.access-item i {
    width: 20px;
    color: #e74c3c;
    font-size: 16px;
}

.map-embed {
    position: relative;
    min-height: 300px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ================ よくある質問セクション ================ */
.faq-section {
    padding: 80px 0;
    background-color: white;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background-color: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    cursor: pointer;
    background-color: white;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.faq-question i {
    font-size: 16px;
    color: #e74c3c;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px 30px;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* ================ CTAセクション ================ */
.contact-cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://shibetsu-jc.or.jp/images/main/annai.jpg') no-repeat center center/cover !important;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.cta-buttons .btn.primary {
    background-color: #e74c3c;
    color: white;
    border: 2px solid #e74c3c;
}

.cta-buttons .btn.primary:hover {
    background-color: transparent;
    color: #e74c3c;
    border-color: #e74c3c;
    transform: translateY(-2px);
}

.cta-buttons .btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn.secondary:hover {
    background-color: white;
    color: #2c3e50;
    transform: translateY(-2px);
}

.cta-buttons .btn i {
    font-size: 18px;
}

/* ================ レスポンシブ対応 ================ */

/* タブレット（992px以下） */
@media (max-width: 992px) {
    .contact-content-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .map-container {
        grid-template-columns: 1fr;
    }

    .map-info {
        padding: 30px;
    }

    .email-contact-box {
        padding: 30px;
        max-width: 100%;
    }

    .contact-hero .hero-content h1 {
        font-size: 60px;
    }
}

/* スマートフォン（768px以下） */
@media (max-width: 768px) {
    .contact-main-section,
    .map-section,
    .faq-section,
    .contact-cta-section {
        padding: 60px 0;
    }

    .contact-hero {
        height: 50vh;
    }

    .contact-hero .hero-content h1 {
        font-size: 50px;
    }

    .contact-hero .hero-content p {
        font-size: 18px;
    }

    .contact-content-grid {
        gap: 40px;
        margin-top: 40px;
    }

    .contact-info-section h3 {
        font-size: 24px;
    }

    .contact-item {
        padding: 20px;
        gap: 15px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-icon i {
        font-size: 18px;
    }

    .contact-details h4 {
        font-size: 16px;
    }

    .contact-details p {
        font-size: 15px;
    }

    .email-contact-box {
        padding: 25px;
    }

    .email-contact-box h3 {
        font-size: 20px;
    }

    .email-contact-box p {
        font-size: 14px;
    }

    .email-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .map-info {
        padding: 25px;
    }

    .map-info h3 {
        font-size: 20px;
    }

    .map-info p {
        font-size: 14px;
    }

    .access-item {
        font-size: 14px;
    }

    .faq-question {
        padding: 20px 25px;
    }

    .faq-question h4 {
        font-size: 16px;
    }

    .faq-item.active .faq-answer {
        padding: 0 25px 20px 25px;
    }

    .faq-answer p {
        font-size: 14px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        min-width: 250px;
    }
}

/* 小型スマートフォン（576px以下） */
@media (max-width: 576px) {
    .contact-hero .hero-content h1 {
        font-size: 40px;
    }

    .contact-hero .hero-content p {
        font-size: 16px;
    }

    .contact-main-section,
    .map-section,
    .faq-section,
    .contact-cta-section {
        padding: 50px 0;
    }

    .contact-content-grid {
        gap: 30px;
        margin-top: 30px;
    }

    .contact-info-section h3 {
        font-size: 22px;
    }

    .contact-items {
        gap: 20px;
    }

    .contact-item {
        padding: 18px;
        gap: 12px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-icon i {
        font-size: 16px;
    }

    .contact-details h4 {
        font-size: 15px;
    }

    .contact-details p {
        font-size: 14px;
    }

    .email-contact-box {
        padding: 20px;
    }

    .email-contact-box h3 {
        font-size: 18px;
        flex-direction: column;
        gap: 5px;
    }

    .email-contact-box p {
        font-size: 13px;
    }

    .email-options {
        gap: 12px;
    }

    .email-btn {
        padding: 10px 18px;
        font-size: 13px;
        gap: 8px;
    }

    .email-btn i {
        font-size: 16px;
    }

    .map-info {
        padding: 20px;
    }

    .map-info h3 {
        font-size: 18px;
    }

    .map-info p {
        font-size: 13px;
    }

    .access-item {
        font-size: 13px;
    }

    .faq-items {
        gap: 15px;
        margin-top: 40px;
    }

    .faq-question {
        padding: 18px 20px;
    }

    .faq-question h4 {
        font-size: 15px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 18px 20px;
    }

    .faq-answer p {
        font-size: 13px;
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .cta-content p {
        font-size: 14px;
    }

    .cta-buttons .btn {
        min-width: 220px;
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* 超小型デバイス（480px以下） */
@media (max-width: 480px) {
    .contact-hero .hero-content h1 {
        font-size: 36px;
    }

    .contact-info-section h3 {
        font-size: 20px;
    }

    .contact-item {
        padding: 15px;
        gap: 10px;
    }

    .email-contact-box {
        padding: 18px;
    }

    .email-contact-box h3 {
        font-size: 16px;
    }

    .map-info {
        padding: 18px;
    }

    .faq-question {
        padding: 15px 18px;
    }

    .faq-question h4 {
        font-size: 14px;
    }

    .faq-item.active .faq-answer {
        padding: 0 18px 15px 18px;
    }

    .cta-content h2 {
        font-size: 22px;
    }

    .cta-buttons .btn {
        min-width: 200px;
        padding: 10px 20px;
        font-size: 13px;
    }
}