/* side-right.php — .sns（固定SNS）, .side-box, .recommend, .voice, .link-list, 右サイドバー要素 */

/* --- SNSリンク（右端固定） --- */
.sns {
    position: fixed;
    top: 16px;
    right: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sns__item {
    margin-bottom: 1px;
    box-shadow: -1px 2px 4px 0px rgba(0, 0, 0, 0.1);
}
.sns__link {
    display: grid;
    place-content: center;
    width: 52px;
    height: 48px;
    color: var(--accent-blue);
    background-color: #fff;
    transition: background 0.2s ease;
}
.sns__link:hover {
    background: var(--accent-blue);
    color: #fff;
    opacity: 1;
}
.sns__link .fa-youtube { font-size: 20px; }
.sns__link .fa-x-twitter { font-size: 22px; }
.sns__link .fa-instagram { font-size: 23px; }
.sns__link .fa-linkedin { font-size: 24px; }
.sns__link .fa-facebook { font-size: 22px; }
.sns__link .fa-line { font-size: 22px; }

/* --- サイドボックス共通 --- */
.side-box {
    padding: 30px 8px 8px;
    background-color: #fff;
    position: relative;
    margin-bottom: 16px;
    transition: background 0.2s ease;
}
.side-box__title {
    padding: 4px 8px;
    background-color: #fff;
    font-size: 13px;
    line-height: 150%;
    font-weight: 700;
    position: absolute;
    top: 0;
    transition: background 0.2s ease, color 0.2s ease;
    left: 0;
    margin: 0;
    z-index: 1;
}

/* --- おすすめコンテンツ（recommend） --- */
.side-box:has(.recommend:hover) {
    background: var(--accent-blue);
}
.recommend:hover {
    opacity: 1;
}
.side-box:has(.recommend:hover) .side-box__title {
    background: var(--accent-blue);
    color: #fff;
}
.side-box:has(.recommend:hover) .recommend__title {
    color: #fff;
}
.recommend {
    display: flex;
    align-items: center;
}
.recommend__title {
    margin: 0;
    color: var(--accent-blue);
    font-size: 15px;
    line-height: 140%;
    transition: all 0.2s ease;
}
.recommend__title b {
    font-size: 19px;
    display: block;
    margin-top: 3px;
}
.recommend__image {
    width: calc(110/271*100%);
    aspect-ratio: 110 / 141;
}
.recommend__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recommend__body {
    width: calc(161/271*100%);
    padding-left: 12px;
    transform: translateY(5px);
}
.recommend__date {
    margin: 0 0 8px;
    background-color: #000;
    padding: 2px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 140%;
    width: fit-content;
}
.recommend__date b {
    font-size: 17px;
}

/* --- 現役生の声（voice） --- */
.voice__image {
    margin-bottom: 8px;
    aspect-ratio: 266 / 134;
}
.voice__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.voice__body {
    text-align: center;
}
.voice__title {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 130%;
    font-weight: 700;
    color: var(--accent-blue);
}
.voice__text {
    font-size: 13px;
    line-height: 130%;
    margin: 0;
}

/* --- リンクリスト（link-list） --- */
.link-list {
    padding: 16px 0;
    margin: 0;
    list-style: none;
    background-color: #fff;
}
.link-list__a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    gap: 2px;
    font-size: 14px;
    line-height: 1;
    transition: color 0.2s ease;
}
.link-list__a:hover {
    color: var(--accent-blue);
    opacity: 1;
}
.link-list__a::after {
    content: "";
    display: block;
    width: 21px;
    height: 21px;
    background: var(--img-chevron-right-sm) center center no-repeat;
}

/* --- 現役生の声スライダー（創大Days連携）--- */
.student-voice {
    text-align: center;
    margin: 25px 0;
}
.student-voice-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}
.student-voice-slider {
    position: relative;
    padding: 0 25px;
}
.student-voice-slides {
    position: relative;
    min-height: 200px;
}
.student-voice-slide {
    display: none;
    text-align: center;
}
.student-voice-slide.active {
    display: block;
}
.student-voice-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.student-voice-link:hover .student-voice-quote {
    color: var(--accent-blue);
}
.student-voice-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid #ddd;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    background: #f9fdf9;
    padding: 15px;
}
.student-voice-quote {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
    transition: color 0.2s;
}
.student-voice-photo {
    width: 120px;
    height: 120px;
    background: #ddd center/cover no-repeat;
    border-radius: 8px;
    margin: 0 auto 10px;
}
.student-voice-info {
    font-size: 10px;
    color: #666;
}
.student-voice-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #666;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.student-voice-arrow:hover {
    color: var(--accent-blue);
}
.student-voice-arrow.prev { left: 0; }
.student-voice-arrow.next { right: 0; }

/* --- LINEボタン --- */
.line-btn-wrap {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}
.line-btn {
    width: 80px;
    height: 80px;
    background: var(--line-green);
    border: none;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}
.line-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(6, 199, 85, 0.4);
    opacity: 1;
    color: #fff;
}

/* --- 丸ボタン --- */
.btn-round {
    display: block;
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 35px;
    text-align: center;
    color: #333;
    font-weight: 700;
    font-size: 13px;
    background: #fff;
    transition: background-color 0.3s, color 0.3s;
}
.btn-round:hover {
    background-color: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    opacity: 1;
}

/* --- サイドバーリンク --- */
.sidebar-links {
    margin-top: 20px;
}
.sidebar-links a {
    display: block;
    padding: 10px;
    margin-bottom: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    background: #fff;
}
.sidebar-links a:hover {
    background-color: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    opacity: 1;
}

/* --- フッターリンク --- */
.sidebar-footer-links {
    margin-top: 30px;
    font-size: 10px;
    color: #666;
    text-align: center;
    line-height: 2;
}
.sidebar-footer-links a {
    color: #666;
}
