@charset "UTF-8";

/* ==========================================================================
   FAQ Page Styles (PC)
   ========================================================================== */

/* Common */
main {
    background-color: #FFF;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --------------------------------------------------------------------------
   Hero Section (インタビュー記事と同様のスタイル)
   -------------------------------------------------------------------------- */
.hero-faq {
    position: relative;
    width: 100%;
    background: linear-gradient(179.804deg, rgb(0, 73, 129) 0.5824%, rgb(0, 104, 183) 59.443%, rgb(0, 73, 129) 98.683%);
    padding: 24px 0;
    color: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-faq .hero-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFF;
    margin: 0;
    text-align: center;
}

/* --------------------------------------------------------------------------
   FAQ Content Section
   -------------------------------------------------------------------------- */
.section-faq-content {
    background-color: #FFF;
    padding: 60px 0 80px;
}

.section-faq-content > .container {
    max-width: 900px;
}

/* FAQ Major Category (大分類) */
.faq-major-category {
    margin-bottom: 64px;
}

.faq-major-category:last-child {
    margin-bottom: 0;
}

.faq-major-category-title {
    font-size: 24px;
    font-weight: 700;
    color: #0068B7;
    margin: 0 0 32px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid #0068B7;
}

/* FAQ Category (項目) */
.faq-category {
    margin-bottom: 40px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 18px;
    font-weight: 700;
    color: #002D6F;
    margin: 0 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid #002D6F;
}

/* --------------------------------------------------------------------------
   FAQ List (TOPページと同じスタイル)
   -------------------------------------------------------------------------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.faq-item {
    background-color: #E1F0FA;
    border-bottom: none;
    padding: 0;
}

.faq-item.is-open {
    background-color: transparent;
}

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

.faq-item.is-open .faq-question {
    background-color: #0068B7;
}

.faq-question h3,
.faq-question h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.5;
}

.faq-item.is-open .faq-question h3,
.faq-item.is-open .faq-question h4 {
    color: #FFF;
}

.faq-toggle-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 開いている時はCSSでマイナスを作る */
.faq-item.is-open .faq-toggle-icon::before {
    content: "";
    width: 14px;
    height: 2px;
    background-color: #FFF;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 画像は非表示 */
.faq-item.is-open .faq-toggle-icon img {
    display: none;
}

.faq-toggle-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.faq-answer {
    display: none;
    background-color: #FFF;
    padding: 24px;
    border: none;
}

.faq-item.is-open .faq-answer {
    display: block;
}

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