/* ============================================
   学びページ（learning.php）
   新デザインシステム（2026年度）
   チケット: ESP_SOKA-410
   ============================================ */

/* --- 学部動画リスト (.faculty-accordion__body) --- */
.faculty-accordion__body {
    padding: 14px 14px 22px;
    border: 2px solid #FCFF3A;
    border-top: 0;
    transition: border-color 0.2s ease;
}
.faculty-accordion__heading:hover + .faculty-accordion__content .faculty-accordion__body {
    border-color: #82FDE9;
}

/* body内のfaculty-cardはボーダー・パディングなし */
.faculty-accordion__body .faculty-card {
    border: none;
    padding: 0;
}
.faculty-accordion__body .faculty-card:not(:last-child) {
    margin-bottom: 16px;
}

/* --- 動画カード (.faculty-card--video) --- */
.faculty-card--video {
    cursor: pointer;
}
.faculty-card--video .faculty-card__image {
    position: relative;
}
/* 再生ボタンオーバーレイ */
.faculty-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
/* 黒い円形背景 */
.faculty-card__play::after {
    content: '';
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}
/* 白い再生▶三角 */
.faculty-card__play::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
    z-index: 1;
}

/* --- 学部動画CTA (.faculty-video-cta) --- */
.faculty-video-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 14px 14px;
}
.faculty-video-cta__link {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}
.faculty-video-cta__link::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: var(--img-link-icon) center center / cover no-repeat;
}

/* --- H2ラベル (.h2-label) --- */
.h2-label {
    margin: 0 0 32px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 180%;
}

/* --- バナーCTA (.banner-cta) --- */
.banner-cta {
    margin-top: 40px;
}
.banner-cta__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 180%;
    margin: 0 0 16px;
    text-align: center;
}
.banner-cta__image {
    display: block;
}
.banner-cta__img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- 学部診断モーダル (.modal) --- */
.modal {
    border: none;
    width: fit-content;
    background: transparent;
}
.modal[open] {
    opacity: 1;
    translate: 0 0;
    transition: translate 0.5s ease-out, opacity 0.5s ease-out, display 0.5s ease-out allow-discrete;
}
@starting-style {
    .modal[open] {
        translate: 0 30px;
        opacity: 0;
    }
}
.modal::backdrop {
    background: linear-gradient(90.39deg, rgba(183, 244, 255, 0.95) 0.33%, rgba(255, 191, 222, 0.95) 99.66%);
}
.modal[open]::backdrop {
    opacity: 1;
    transition: opacity 0.25s ease;
}
@starting-style {
    .modal[open]::backdrop {
        opacity: 0;
    }
}
.modal-visual-cta__close {
    display: block;
    font-style: italic;
    font-weight: 400;
    font-size: 34px;
    line-height: 100%;
    text-align: center;
    color: #000;
    opacity: 0.5;
    margin: 0 auto 24px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
}
.modal-visual-cta__image {
    display: block;
    max-width: 310px;
    width: 100%;
}
.modal-visual-cta__img {
    display: block;
}
.modal-visual-cta .modal-arrow-btn {
    margin: -24px auto 0;
    position: relative;
}
.modal-arrow-btn {
    border-radius: 100%;
    width: 50px;
    height: 50px;
    display: grid;
    place-content: center;
    background-color: #82FDE9;
    border: 1px solid var(--accent-blue);
    box-shadow: 2px 2px 0px var(--accent-blue);
    transition: all 0.2s ease;
}
a:hover .modal-arrow-btn,
.modal-arrow-btn:hover {
    box-shadow: 0 0 0 var(--accent-blue);
    background: var(--accent-blue);
    color: #fff;
    transform: translate(2px, 2px);
}
a:hover .modal-arrow-btn img,
.modal-arrow-btn:hover img {
    filter: brightness(0) invert(1);
}

/* --- 動画再生モーダル (.modal--video) --- */
.modal--video {
    background: #000;
    width: min(90vw, 560px);
    position: relative;
    overflow: visible;
}
.modal--video::backdrop {
    background: rgba(0, 0, 0, 0.85);
}
.modal-video-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}
.modal-video-close {
    position: absolute;
    top: -32px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1.6;
}
