@charset "UTF-8";

/* ==========================================================================
   FAQ Styles (Mobile First)
   ========================================================================== */

/* ベーススタイル（スマホ・タブレット共通） */
.faq-container {
    max-width: 100%;
    margin: 30px auto;
    padding: 0 15px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #333;
    background-color: #fff;
}

/* ヘッダー */
.faq-header {
    text-align: center;
    margin-bottom: 40px;
}
.faq-header h1 {
    font-size: 20px;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    font-weight: bold;
}
.faq-header p {
    color: #888;
    font-size: 13px;
}

/* カテゴリー見出し */
.category-title {
    font-size: 17px;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
    margin: 30px 0 15px;
    font-weight: bold;
}

/* アコーディオン要素 */
.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    padding: 18px 0;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.4;
    transition: color 0.3s;
}

/* プラスアイコン */
.icon {
    position: relative;
    width: 12px;
    height: 12px;
    margin-left: 15px;
    flex-shrink: 0;
}
.icon::before, .icon::after {
    content: "";
    position: absolute;
    background-color: #333;
    transition: transform 0.3s ease;
}
.icon::before {
    width: 100%;
    height: 2px;
    top: 5px;
    left: 0;
}
.icon::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 5px;
}

/* 開いた時のアイコン変化 */
.faq-item.is-active .icon::after {
    transform: rotate(90deg);
    opacity: 0;
}
.faq-item.is-active .icon::before {
    transform: rotate(180deg);
}

/* 回答エリア（初期は非表示） */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.faq-answer p {
    padding-bottom: 20px;
    line-height: 1.7;
    color: #555;
    font-size: 14px;
}

/* お問い合わせエリア */
.faq-contact {
    margin-top: 60px;
    text-align: center;
    padding: 30px 15px;
    background-color: #f9f9f9;
}
.faq-contact h3 {
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.5;
}
.btn-contact {
    display: block;
    padding: 15px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: opacity 0.3s;
}

/* ==========================================================================
   Desktop styles (1025px以上)
   ========================================================================== */
@media screen and (min-width: 1025px) {
    .faq-container {
        max-width: 900px;
        margin: 80px auto;
        padding: 0 40px;
    }

    .faq-header {
        margin-bottom: 80px;
    }
    .faq-header h1 {
        font-size: 32px;
    }
    .faq-header p {
        font-size: 16px;
    }

    .category-title {
        font-size: 22px;
        margin: 50px 0 25px;
    }

    .faq-question {
        font-size: 18px;
        padding: 25px 0;
    }
    .faq-question:hover {
        color: #888;
    }

    .faq-answer p {
        font-size: 16px;
        padding-bottom: 30px;
    }

    .faq-contact {
        margin-top: 100px;
        padding: 60px;
    }
    .faq-contact h3 {
        font-size: 18px;
    }
    .btn-contact {
        display: inline-block;
        padding: 18px 60px;
        font-size: 16px;
    }
}