/* =====================================================
 * トップページ CASE STUDY セクション 拡張
 *  - 折りたたみ表示制御
 *  - 「もっと見る」ボタン
 * @since 2026-05-17
 * ===================================================== */

/* 折りたたみ対象は初期非表示 */
.p-top-casesutudy__list .p-top-casesutudy__item.is-collapsed {
    display: none;
}

/* 展開状態で全件表示 */
.p-top-casesutudy__list.is-expanded .p-top-casesutudy__item.is-collapsed {
    display: block;
}

/* 「もっと見る」ボタン */
.p-top-casesutudy__toggle {
    text-align: center;
    margin: 56px 0 0;
}
@media (max-width: 767.98px) {
    .p-top-casesutudy__toggle {
        margin: 40px 0 0;
    }
}

.p-top-casesutudy__toggle-btn {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #1a3464;
    color: #1a3464;
    font-family: inherit;
    font-size: 16px;
    letter-spacing: 0.08em;
    padding: 14px 40px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 2px;
    min-width: 280px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.p-top-casesutudy__toggle-btn:hover,
.p-top-casesutudy__toggle-btn:focus-visible {
    background: #1a3464;
    color: #fff;
}

.p-top-casesutudy__toggle-btn::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s ease;
}

.p-top-casesutudy__toggle-btn[aria-expanded="true"]::after {
    transform: rotate(-135deg) translate(-2px, -2px);
}

@media (max-width: 767.98px) {
    .p-top-casesutudy__toggle-btn {
        font-size: 14px;
        padding: 12px 28px;
        min-width: 240px;
    }
}
