@charset "UTF-8";

.faq {
    background-color: #F4F6FB;
    padding: 80px 0;
}

.faq__inner {
    width: calc(100% - 120px);
    max-width: 1080px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .faq__inner {
        width: calc(100% - 40px);
        max-width: 100%;
    }
}

.faq_list_wrap {
    width: 100%;
    max-width: none;
    margin: 40px auto 0;
}


.faq_list_wrap.ly_cont_sm {
    padding: 0;
}

.faq_list .wp-block-group__inner-container {
    gap: 20px;
    display: grid;
    grid-auto-flow: row;
}

.top-info-section__title--center {
    text-align: center;
    width: 100%;
}

.faq_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    width: 100%;
    max-width: 800px;
    margin: 0;
    box-sizing: border-box;
}

.question {
    display: flex;
    align-items: center;
}

.question strong {
    text-align: center;
    font-size: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.faq__item .question {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    background-color: #fff;
    border: 1px solid #D0D5DD;
    border-radius: 10px;
    padding: 24px 32px;
}

.faq__item .question.open {
    padding-bottom: 0;
}

.faq__item .faq-q-label {
    flex-shrink: 0;
    font-family: URW DIN;
    font-weight: 400;
    font-size: 28px;
    line-height: calc(24/28);
    letter-spacing: 0;
    text-align: center;
    color: #0076E5;
}

.faq__item .faq-q-text {
    flex: 1;
    font-family: Hiragino Sans;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
    color: #383B42;
}

.faq__item .answer {
    display: none;
    max-height: none;
    padding: 24px 32px 28px;
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #383b42;

    .contact_tel_wrap {
        padding: 0;
        gap: 12px;
        margin-top: 12px;
    }

    .contact_tel_info {
        font-size: 14px;
    }

    .form_note_list {
        width: 100%;
    }
}

.faq__item .answer.open {
    display: block;
}

.faq__item .toggle-icon {
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-left: auto;
    margin-right: 0;
    display: inline-block;
    border-radius: 50%;
    background: #eaefff;
}

.faq__item .question>span:first-of-type:not(.toggle-icon):not(.faq-q-label) {
    flex: 1;
    min-width: 0;
    font-size: 18px;
    font-weight: 600;
    color: #383b42;
    line-height: 1.45;
}

.faq__item .bar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    margin-left: -5px;
    margin-top: -1px;
    background-color: #0076e5;
    transition: transform 0.4s ease;
}

.faq__item .bar1 {
    transform: translateY(-50%) rotate(0deg);
}

.faq__item .bar2 {
    transform: translateY(-50%) rotate(90deg);
}

.faq__item .question.open .bar1 {
    transform: translateY(-50%) rotate(45deg);
}

.faq__item .question.open .bar2 {
    transform: translateY(-50%) rotate(-45deg);
}

.top-info-faq-block__faq-more {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-info-faq-block__faq-more .top-info-section__more {
    font-size: 14px;
    line-height: 28px;
}

.top-info-section {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.top-info-faq-block__row>.top-info-section {
    max-width: none;
    margin: 0;
    width: 100%;
}

.top-info-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.top-info-section__title {
    font-size: 24px;
    font-weight: 600;
    color: #383b42;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.top-info-section__head .top-info-section__title {
    margin: 0;
}

.top-info-section__title.top-info-section__title--center {
    margin: 0 auto 24px;
}

.top-info-section__more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #383b42;
    letter-spacing: 0.02em;
    line-height: 28px;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .top-info-section__more:hover {
        opacity: 0.65;
    }
}

.top-info-section__more-icon {
    flex-shrink: 0;
}

.top-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.top-info-card {
    margin: 0;
}

.top-info-card__link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 16px 12px 12px;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition:
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .top-info-card__link:hover {
        box-shadow: 0 8px 24px rgb(56 59 66 / 8%);
        opacity: 0.98;
    }
}

.top-info-card__thumb {
    flex-shrink: 0;
    width: 220px;
    height: 115px;
    border-radius: 12px;
    overflow: hidden;
    background: #e8eaef;
}

.top-info-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-info-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-info-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #3e4043;
}

.top-info-card__meta {
    margin: 0;
    font-size: 12px;
    color: #9398a4;
    line-height: 1.5;
}

.top-info-card__tags {
    margin: 0;
    font-size: 12px;
    color: #9398a4;
    line-height: 1.5;
}

.top-info-download-card {
    padding-right: 12px;
}

.top-info-download-card__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0076e5;
}

.top-info-download-card__icon svg {
    display: block;
}

.top-info-section--download .top-info-cards {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 575.98px) {
    .top-info-card__link {
        flex-wrap: wrap;
    }

    .top-info-card__thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 220 / 115;
    }
}

/* 開いたとき：questionの下側の角丸と下線を消して answer と連結 */
.faq__item .question.open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;        /* answer と境目をつくらない */
    padding-bottom: 20px;       /* 0 だと詰まるので少し確保 */
}

/* answer：閉時は none のまま。開いたら question と同じカードの下半分に */
.faq__item .answer {
    display: none;
    padding: 0 32px 28px;       /* 上paddingは question 側で確保するため 0 */
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #383b42;
    background-color: #fff;     /* 白背景 */
    border: 1px solid #D0D5DD;  /* question と同じ枠 */
    border-top: none;           /* 上辺は question と共有するので消す */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

    .contact_tel_wrap {
        padding: 0;
        gap: 12px;
        margin-top: 12px;
    }

    .contact_tel_info {
        font-size: 14px;
    }

    .form_note_list {
        width: 100%;
    }
}

.faq__item .answer.open {
    display: block;
}