/* section-faculty.php — .faculty-section, .faculty-accordion（CSSチェックボックスアコーディオン）, .line-banner */

/* --- 学部紹介セクション --- */
.faculty-section {
    padding: 40px 16px;
    margin-bottom: 40px;
    background-color: #fff;
}
.faculty-section-title {
    position: relative;
    margin: 0 0 24px;
    text-align: center;
}
.faculty-section-title__text {
    position: absolute;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 130%;
    width: 100%;
    font-weight: 400;
}
.faculty-section-title__image {
    width: 279px;
    height: 176px;
}
.faculty-section-subtitle {
    margin: 0 0 32px;
    text-align: center;
    font-weight: 700;
    line-height: 130%;
    font-size: 20px;
    position: relative;
    color: var(--accent-blue);
}
.faculty-section-subtitle span {
    font-size: 17px;
    display: block;
    position: absolute;
    top: -25px;
    left: 24px;
    transform: rotate(-20deg);
}
.faculty-section-subtitle b {
    font-size: 24px;
}

/* アコーディオン（CSSチェックボックス方式） */
.faculty-accordion {
    margin-bottom: 2px;
}
.faculty-accordion:last-of-type {
    margin-bottom: 32px;
}
.faculty-accordion input[type="checkbox"] {
    display: none;
}
.faculty-accordion__heading {
    display: block;
    padding: 12px 24px;
    background: #FCFF3A;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
}
.faculty-accordion__heading:hover {
    background: #82FDE9;
}
.faculty-accordion__heading:hover + .faculty-accordion__content .faculty-card {
    border-color: #82FDE9;
}
.faculty-accordion__heading::before,
.faculty-accordion__heading::after {
    content: "";
    display: block;
    background-position: center center;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 24px;
    margin: auto;
}
.faculty-accordion__heading::before {
    background-image: var(--img-minus);
    opacity: 0;
}
.faculty-accordion__heading::after {
    background-image: var(--img-plus);
}
.faculty-accordion__title {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 120%;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.faculty-accordion__title::before {
    content: "";
    display: block;
    width: 44px;
    height: 32px;
    background: var(--img-movie) center center / cover no-repeat;
    flex-shrink: 0;
}
.faculty-accordion__text {
    margin: 0;
    font-size: 14px;
    line-height: 120%;
    background-color: #fff;
    padding: 4px 8px 4px;
    border-radius: calc(infinity * 1px);
    width: fit-content;
}
.faculty-accordion__content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}
.faculty-accordion__content-inner {
    overflow: hidden;
    background: #f5f5f5;
}
.faculty-accordion input[type="checkbox"]:checked + .faculty-accordion__heading::before {
    opacity: 1;
}
.faculty-accordion input[type="checkbox"]:checked + .faculty-accordion__heading::after {
    opacity: 0;
}
.faculty-accordion input[type="checkbox"]:checked + .faculty-accordion__heading + .faculty-accordion__content {
    grid-template-rows: 1fr;
}

/* ファカルティカード */
.faculty-card {
    padding: 14px 14px 22px;
    border: 2px solid #FCFF3A;
}
.faculty-card__image {
    aspect-ratio: 350/196;
    margin-bottom: 8px;
}
.faculty-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.faculty-card__text {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 170%;
}
.faculty-card__link {
    width: fit-content;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.faculty-card__link::after {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background: var(--img-chevron-right) center center no-repeat;
}

/* --- LINEバナー --- */
.line-banner {
    padding: 20px 0px;
}
.line-banner img {
    width: 100%;
    height: auto;
    display: block;
}
.btn-line {
    display: inline-block;
    background: var(--line-green);
    color: #fff;
    padding: 10px 30px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 5px;
}
