@charset "utf-8";

/* ===== 初めての方へページ専用スタイル ===== */

/* 初めての方へ画像 */
.hajimete-image {
    width: 100%;
    text-align: center;
    margin: 30px 0 40px;
    padding: 0 5%;
}

/* PC版画像 */
.hajimete-image-pc {
    width: 80%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* モバイル版画像 */
.hajimete-image-mobile {
    display: none;
}

/* モバイル版（900px以下） */
@media screen and (max-width: 900px) {
    .hajimete-image {
        margin: 20px 0 30px;
        padding: 0;
    }

    .hajimete-image-pc {
        display: none;
    }

    .hajimete-image-mobile {
        display: block;
        width: 90%;
        height: auto;
        margin: 0 auto;
    }
}

/* ===== FAQセクション ===== */
.faq-section {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 5%;
}

.faq-title {
    color: #004A78;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.faq-container {
    width: 100%;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

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

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    color: #004A78;
}

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

.faq-question-text {
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: #004A78;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8f8f8;
}

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

.faq-answer p {
    margin: 0;
    padding: 20px 0 0;
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

/* モバイル版（900px以下） */
@media screen and (max-width: 900px) {
    .faq-section {
        margin: 30px auto;
        padding: 0 5%;
    }

    .faq-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

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

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

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