/* ========================================
   FAQ ページスタイル
   ======================================== */

/* パンくずリスト */
.ic-faq-breadcrumb {
    max-width: 900px;
    margin: 20px auto 0;
    padding: 0 20px;
    font-size: 13px;
}

.ic-faq-breadcrumb__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.ic-faq-breadcrumb__item {
    display: flex;
    align-items: center;
}

.ic-faq-breadcrumb__link {
    color: #059de5;
    text-decoration: none;
}

.ic-faq-breadcrumb__link:hover {
    text-decoration: underline;
}

.ic-faq-breadcrumb__separator {
    margin: 0 8px;
    color: #999;
}

.ic-faq-breadcrumb__current {
    color: #666;
}

/* メインコンテンツ */
.ic-faq {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.ic-faq__page-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

/* タブ */
.ic-faq__tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e5e5;
}

.ic-faq__tab {
    background: none;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.ic-faq__tab:hover {
    color: #333;
}

.ic-faq__tab.is-active {
    color: #333;
}

.ic-faq__tab.is-active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #059de5;
}

/* タブコンテンツ */
.ic-faq__tab-content {
    display: none;
}

.ic-faq__tab-content.is-active {
    display: block;
}

/* カテゴリナビ */
.ic-faq__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 6px;
}

.ic-faq__nav-link {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    color: #059de5;
    text-decoration: none;
    border: 1px solid #059de5;
    border-radius: 20px;
    transition: background 0.3s, color 0.3s;
}

.ic-faq__nav-link:hover {
    background: #059de5;
    color: #fff;
}

/* カテゴリ */
.ic-faq__category {
    margin-bottom: 40px;
}

.ic-faq__category-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    padding: 10px 0;
    border-bottom: 2px solid #059de5;
    margin-bottom: 20px;
}

/* FAQ アイテム */
.ic-faq__item {
    border-bottom: 1px solid #e5e5e5;
}

.ic-faq__question {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    gap: 12px;
}

.ic-faq__question:hover {
    color: #059de5;
}

.ic-faq__q-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #059de5;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
    margin-top: 1px;
}

.ic-faq__q-text {
    flex: 1;
    font-weight: 600;
}

.ic-faq__toggle {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
    margin-top: 4px;
    margin-left: 8px;
}

.ic-faq__toggle::before,
.ic-faq__toggle::after {
    content: "";
    position: absolute;
    background: #999;
    transition: transform 0.3s;
}

.ic-faq__toggle::before {
    top: 50%;
    left: 2px;
    width: 16px;
    height: 2px;
    transform: translateY(-50%);
}

.ic-faq__toggle::after {
    top: 2px;
    left: 50%;
    width: 2px;
    height: 16px;
    transform: translateX(-50%);
}

.ic-faq__question[aria-expanded="true"] .ic-faq__toggle::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* 回答 */
.ic-faq__answer {
    display: flex;
    align-items: flex-start;
    padding: 0 0 20px;
    gap: 12px;
    animation: ic-faq-fadein 0.3s ease;
}

.ic-faq__answer[hidden] {
    display: none;
}

@keyframes ic-faq-fadein {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ic-faq__a-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ff6366;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
    margin-top: 1px;
}

.ic-faq__a-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.ic-faq__a-text a {
    color: #059de5;
    text-decoration: underline;
}

.ic-faq__a-text a:hover {
    text-decoration: none;
}

/* 同意書リンク */
.ic-faq__consent-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.ic-faq__consent-link {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    color: #059de5;
    border: 1px solid #059de5;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.ic-faq__consent-link:hover {
    background: #059de5;
    color: #fff;
}

/* モバイル対応 */
@media screen and (max-width: 767px) {
    .ic-faq {
        padding: 20px 15px 40px;
    }

    .ic-faq__page-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .ic-faq__tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .ic-faq__nav {
        gap: 6px;
        padding: 12px;
    }

    .ic-faq__nav-link {
        padding: 5px 12px;
        font-size: 12px;
    }

    .ic-faq__category-title {
        font-size: 18px;
    }

    .ic-faq__question {
        font-size: 14px;
        padding: 15px 0;
    }

    .ic-faq__consent-links {
        flex-direction: column;
    }
}
