/* SEI — modern content area (2026 redesign)
   Loads after style.css. Visual only — no layout hierarchy changes. */

:root {
    --sei-navy: #142033;
    --sei-accent: #3192bf;
    --sei-gold: #d8b43b;
    --sei-bg: #f6f8fb;
    --sei-card: #ffffff;
    --sei-border: #e6e9ee;
    --sei-muted: #5c6b7a;
    --sei-radius: 16px;
    --sei-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --sei-shadow-hover: 0 14px 32px rgba(0, 0, 0, 0.12);
    --sei-section-gap: 48px;
    --sei-card-pad: 24px;
    --sei-font-body: 17px;
    --sei-lh: 1.7;
}

/* ---- Page shell ---- */
body {
    background: var(--sei-bg) !important;
    font-size: var(--sei-font-body);
    line-height: var(--sei-lh);
    color: var(--sei-navy);
}

#title {
    display: none !important;
}

main {
    padding: 40px 0 56px;
}

#contents .container {
    border: none !important;
    max-width: 1240px;
    width: 100%;
    box-sizing: border-box;
}

#cont_left,
#cont_center,
#cont_right {
    border: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

#cont_left {
    width: 220px;
}

#cont_center {
    margin-right: 260px;
    padding: 0 4px;
    overflow: visible !important;
    min-height: 0 !important;
}

#cont_right {
    width: 260px;
    padding-left: 6px;
    min-height: 0 !important;
}

/* ---- Shared cards ---- */
#contents .column {
    padding: 0;
    margin-bottom: var(--sei-section-gap);
    border: none !important;
    background: transparent;
}

#contents .column .col_tit {
    font-family: 'Kosugi Maru', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: clamp(17px, 2vw, 28px);
    font-weight: 700;
    color: var(--sei-navy);
    padding: 0 0 16px;
    margin: 0 0 8px;
    border: none;
    line-height: 1.25;
}

#contents .column .col_desc {
    border: none;
    padding: 0 0 20px;
    margin: 0 0 8px;
    color: var(--sei-muted);
    font-size: 16px;
    line-height: var(--sei-lh);
}

.sei-card {
    background: var(--sei-card);
    border: 1px solid var(--sei-border);
    border-radius: var(--sei-radius);
    box-shadow: var(--sei-shadow);
    padding: var(--sei-card-pad);
}

/* ---- LEFT: course nav ---- */
#cont_left .column.col1 {
    background: var(--sei-card);
    border: 1px solid var(--sei-border) !important;
    border-radius: var(--sei-radius);
    box-shadow: var(--sei-shadow);
    padding: var(--sei-card-pad);
    margin-bottom: var(--sei-section-gap);
}

#cont_left .column.col1 .col_tit {
    font-size: 14px;
    padding-bottom: 12px;
    margin-bottom: 4px;
}

#cont_left .menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#cont_left .menu li {
    margin-bottom: 8px;
}

#cont_left .menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--sei-border);
    border-radius: 12px;
    background: var(--sei-bg);
    color: var(--sei-navy) !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--sei-border) !important;
    box-shadow: none !important;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

#cont_left .menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--sei-accent);
    transform: scaleY(0);
    transition: transform 0.25s ease;
    border-radius: 0 4px 4px 0;
}

#cont_left .menu li a i {
    position: static;
    color: var(--sei-accent);
    font-size: 14px;
    opacity: 0.7;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

#cont_left .menu li a:hover {
    background: #fff !important;
    border-color: var(--sei-accent) !important;
    color: var(--sei-navy) !important;
    box-shadow: var(--sei-shadow) !important;
    transform: translateX(4px);
}

#cont_left .menu li a:hover::before {
    transform: scaleY(1);
}

#cont_left .menu li a:hover i {
    opacity: 1;
    transform: translateX(4px);
}

/* ---- LEFT: promo cards (notice2) ---- */
#cont_left .column.col2 {
    background: transparent;
    border: none !important;
    box-shadow: none;
    padding: 0;
}

#cont_left .column.col2 hr,
#cont_center .column.col6 hr {
    display: none;
}

#cont_left .notice1,
#cont_left .notice2 {
    background: var(--sei-card);
    border: 1px solid var(--sei-border) !important;
    border-radius: var(--sei-radius);
    box-shadow: var(--sei-shadow);
    padding: var(--sei-card-pad);
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cont_left .notice1:hover,
#cont_left .notice2:hover {
    transform: translateY(-4px);
    box-shadow: var(--sei-shadow-hover);
}

#cont_left .notice1 h5,
#cont_left .notice2 h5 {
    font-family: 'Kosugi Maru', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--sei-navy);
    padding: 0 0 12px;
    margin: 0;
}

#cont_left .notice1 li,
#cont_left .notice2 li {
    padding-left: 0;
    max-height: none;
    white-space: normal;
    color: var(--sei-muted);
    font-size: 15px;
    line-height: var(--sei-lh);
    margin-bottom: 12px;
}

#cont_left .notice1 li::before,
#cont_left .notice2 li::before {
    display: none;
}

#cont_left .notice2 img,
#cont_left .notice1 img {
    width: 100%;
    border-radius: 14px;
    margin-top: 12px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

#cont_left .notice2:hover img,
#cont_left .notice1:hover img {
    transform: scale(1.03);
}

/* Modern CTA buttons (replaces MORE) */
#contents .notice1 .more,
#contents .notice2 .more {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 10px 20px;
    font-size: 0;
    color: var(--sei-accent);
    background: transparent;
    border: 2px solid var(--sei-accent);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

#contents .notice1 .more i,
#contents .notice2 .more i {
    display: none;
}

#contents .notice1 .more::after,
#contents .notice2 .more::after {
    content: '詳しく見る →';
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

#contents .notice1 .more:hover,
#contents .notice2 .more:hover {
    background: var(--sei-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- LEFT: trial card (blog2) ---- */
#cont_left .column.col3 {
    background: var(--sei-card);
    border: 1px solid var(--sei-border) !important;
    border-radius: var(--sei-radius);
    box-shadow: var(--sei-shadow);
    padding: var(--sei-card-pad);
    overflow: hidden;
}

#cont_left .blog2 a {
    text-decoration: none;
    display: block;
}

#cont_left .blog2 .blog2-trial-img,
#cont_left .blog2 .blog2-trial-svg,
#cont_left .blog2 img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border-right: 5px solid #ccc;
    border-bottom: 5px solid #999;
    margin-bottom: 5px;
    transition: transform 0.35s ease;
}

#cont_left .blog2:hover img,
#cont_left .blog2:hover .blog2-trial-svg {
    transform: scale(1.03);
}

/* ---- CENTER: section cards (homepage rules in index-home.css) ---- */

#contents .slider {
    border-radius: var(--sei-radius);
    overflow: hidden;
    margin-top: 8px;
}

#contents .slider figure {
    border-radius: var(--sei-radius);
    overflow: hidden;
    margin: 0;
}

#contents .slider figure img {
    width: 100%;
    display: block;
    border-radius: var(--sei-radius);
    object-fit: cover;
    transition: transform 0.5s ease;
}

#contents .slider figure:hover img {
    transform: scale(1.03);
}

#contents .slider figcaption {
    background: linear-gradient(0deg, rgba(20, 32, 51, 0.88) 0%, rgba(20, 32, 51, 0.35) 55%, transparent 100%);
    padding: 28px 24px 24px;
    border-radius: 0;
    box-sizing: border-box;
    max-width: 100%;
}

#contents .slider figcaption em {
    font-family: 'Kosugi Maru', sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    text-transform: none;
    opacity: 1;
    transform: none;
}

#contents .slider figcaption span {
    font-size: 15px;
    opacity: 0.92;
    transform: none;
    margin-top: 6px;
}

#contents .slider .slick-dots {
    padding: 16px 0 4px;
}

#contents .slider .slick-dots li {
    width: 10px;
    height: 10px;
    margin: 0 6px;
}

#contents .slider .slick-dots li button {
    width: 10px;
    height: 10px;
    background: #c5d4e0;
    transition: transform 0.2s ease, background 0.2s ease;
}

#contents .slider .slick-dots li.slick-active button {
    background: var(--sei-accent);
    transform: scale(1.35);
}

#contents .slider .slick-prev,
#contents .slider .slick-next {
    width: 44px;
    height: 44px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: var(--sei-shadow);
    z-index: 10;
}

#contents .slider .slick-prev {
    left: 12px;
}

#contents .slider .slick-next {
    right: 12px;
}

#contents .slider .slick-prev::before,
#contents .slider .slick-next::before {
    color: var(--sei-navy);
    font-size: 16px;
    opacity: 1;
}

/* Course lineup — scoped to #course-lineup only */
#course-lineup.course-fit-section {
    background: #f5f1ea;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 0;
}

#course-lineup .course-fit-section__head {
    margin-bottom: 28px;
}

#course-lineup .section-kicker {
    display: block;
    font-family: 'Roboto', 'Abel', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--sei-accent);
    margin-bottom: 8px;
}

#course-lineup .course-fit-section__title {
    font-family: 'Kosugi Maru', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: clamp(22px, 2.8vw, 28px);
    font-weight: 700;
    color: var(--sei-navy);
    line-height: 1.35;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

#course-lineup .course-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    min-width: 0;
}

#course-lineup a.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6e9ee;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#course-lineup a.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

#course-lineup .course-card-image {
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #eef4f8 0%, #f6f8fb 100%);
}

#course-lineup .course-card-image--private {
    background: linear-gradient(145deg, #eaf4fa 0%, #f5f1ea 100%);
}

#course-lineup .course-card-image--business {
    background: linear-gradient(145deg, #eef2f8 0%, #eaf4fa 100%);
}

#course-lineup .course-card-image--conversation {
    background: linear-gradient(145deg, #eaf7fd 0%, #f0f4f8 100%);
}

#course-lineup .course-card-image--phonics {
    background: linear-gradient(145deg, #f5f1ea 0%, #eaf4fa 100%);
}

#course-lineup .course-card-image img,
#course-lineup .course-card-image svg.course-card-illustration {
    display: block;
    width: 92%;
    max-width: 92%;
    height: auto;
    max-height: 112px;
    aspect-ratio: 2 / 1;
    object-fit: contain;
    flex-shrink: 1;
    min-width: 0;
    margin: 0 auto;
    transition: transform 0.35s ease;
    filter: none !important;
}

#course-lineup a.course-card:hover .course-card-image img,
#course-lineup a.course-card:hover .course-card-image svg.course-card-illustration {
    transform: scale(1.04);
}

#course-lineup .course-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 22px 22px;
    background: #fff;
}

#course-lineup .course-card-body h3 {
    font-family: 'Kosugi Maru', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--sei-navy) !important;
    background: none !important;
    margin: 0 0 10px;
    padding: 0;
    border: none;
    border-radius: 0;
    line-height: 1.35;
    box-shadow: none;
}

#course-lineup .course-card-body p {
    flex: 1;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--sei-muted);
}

#course-lineup .course-card-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--sei-accent);
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

#course-lineup a.course-card:hover .course-card-link {
    color: var(--sei-gold);
}

/* Legacy square grid (other pages) */
#contents .course-grid.square {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}

#contents .course-grid.square a {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    display: block;
    background: var(--sei-card);
    border: 1px solid var(--sei-border);
    border-radius: var(--sei-radius);
    overflow: hidden;
    box-shadow: var(--sei-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

#contents .course-grid.square a:hover {
    transform: translateY(-4px);
    box-shadow: var(--sei-shadow-hover);
}

#contents .course-grid.square a img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.35s ease;
    filter: none !important;
}

#contents .course-grid.square a:hover img {
    transform: scale(1.03);
    filter: none !important;
}

#contents .course-grid.square a em {
    position: static;
    display: block;
    padding: 14px 16px;
    background: var(--sei-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-style: normal;
    text-align: center;
    line-height: 1.4;
    opacity: 1;
    bottom: auto;
}

#includedContent {
    margin-top: 8px;
}

#includedContent li {
    border: none !important;
    padding: 12px 0;
    margin: 0 0 8px !important;
    border-bottom: 1px solid var(--sei-border) !important;
}

#includedContent a {
    color: var(--sei-accent);
    text-decoration: none;
    font-weight: 500;
}

#includedContent a:hover {
    text-decoration: underline;
}

/* ---- RIGHT sidebar cards ---- */
#cont_right .column.col8 {
    background: var(--sei-card);
    border: 1px solid var(--sei-border) !important;
    border-radius: var(--sei-radius);
    box-shadow: var(--sei-shadow);
    padding: var(--sei-card-pad);
    margin-bottom: 24px;
}

#cont_right .side2 {
    perspective: none;
    border-radius: 14px;
    overflow: hidden;
}

#cont_right .side2 .front,
#cont_right .side2 .back {
    transform: none !important;
    backface-visibility: visible;
    position: relative;
}

#cont_right .side2 .back {
    display: none;
}

#cont_right .side2 .front img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

#cont_right .side2:hover .front img {
    transform: scale(1.03);
}

#cont_right .side2 .front figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    max-width: 100%;
    background: linear-gradient(0deg, rgba(20, 32, 51, 0.85), transparent);
}

#cont_right .side2 figcaption h3 {
    background: transparent;
    font-family: 'Kosugi Maru', sans-serif;
    font-size: 22px;
    padding: 0;
}

#cont_right .x-sidebar-timeline {
    background: var(--sei-card) !important;
    border: 1px solid var(--sei-border) !important;
    border-radius: var(--sei-radius) !important;
    box-shadow: var(--sei-shadow) !important;
    padding: var(--sei-card-pad) !important;
    margin-bottom: 24px !important;
}

#cont_right .x-sidebar-timeline__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--sei-navy) !important;
}

#cont_right .x-post-card {
    border-radius: 12px !important;
    border-color: var(--sei-border) !important;
    background: var(--sei-bg) !important;
}

/* ---- Course detail pages (.small-section) ---- */
#cont_center .small-section {
    background: var(--sei-card);
    border: 1px solid var(--sei-border);
    border-radius: var(--sei-radius);
    box-shadow: var(--sei-shadow);
    padding: var(--sei-card-pad);
    margin: 0 0 var(--sei-section-gap);
}

#cont_center .small-section h3 {
    font-family: 'Kosugi Maru', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    color: #fff !important;
    background: var(--sei-navy) !important;
    margin: 40px 0 20px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    line-height: 1.35;
    box-shadow: 0 4px 14px rgba(20, 32, 51, 0.15);
}

#cont_center .small-section h3:first-child {
    margin-top: 0;
}

/* 授業料カード直前の重複見出しは非表示（カード内ヘッダーで表示） */
#cont_center .small-section h3:has(+ .sei-tuition-fee) {
    display: none !important;
}

#cont_center .small-section .sei-tuition-fee {
    margin-top: 40px;
}

#cont_center .small-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--sei-accent);
    border: none;
    position: static;
    margin: 24px 0 12px;
    padding: 0;
}

#cont_center .syosai,
#cont_center .small-section p {
    color: var(--sei-muted);
    font-size: var(--sei-font-body);
    line-height: var(--sei-lh);
    padding: 0;
    margin-bottom: 16px;
    height: auto !important;
    min-height: 0;
}

#cont_center table.type01 {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sei-border);
    margin: 16px 0 24px;
}

#cont_center table.type01 thead th {
    background: var(--sei-navy) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
    padding: 14px 16px;
}

#cont_center table.type01 tbody th {
    background: var(--sei-bg) !important;
    color: var(--sei-navy);
    border-color: var(--sei-border) !important;
    font-weight: 600;
    padding: 14px 16px;
}

#cont_center table.type01 td {
    border-color: var(--sei-border) !important;
    padding: 14px 16px;
    color: var(--sei-muted);
}

#cont_center .bookimage img {
    border-radius: 14px;
    box-shadow: var(--sei-shadow);
    max-width: 100%;
    transition: transform 0.35s ease;
}

#cont_center .bookimage img:hover {
    transform: scale(1.03);
}

#cont_center .bookimage {
    padding: 16px 20px 16px 0;
}

#cont_center .apply_btn {
    border: none;
    padding: 8px 0 24px;
    margin-top: 24px;
}

#cont_center .apply_btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #fff !important;
    background: var(--sei-accent) !important;
    border: 2px solid var(--sei-accent);
    border-radius: 999px;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--sei-shadow);
}

#cont_center .apply_btn a:hover {
    background: var(--sei-navy) !important;
    border-color: var(--sei-navy);
    box-shadow: var(--sei-shadow-hover);
    transform: translateY(-2px);
}

#cont_center .intro {
    border: 1px solid var(--sei-border);
    border-radius: 12px;
    background: var(--sei-bg);
    color: var(--sei-navy);
    padding: 16px 20px;
    margin: 16px 0;
}

/* Trial / form tables */
#contents table.type02 {
    border: 1px solid var(--sei-border);
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0;
}

#contents table.type02 tbody th {
    background: var(--sei-bg) !important;
    color: var(--sei-navy);
    border-color: var(--sei-border) !important;
}

#contents table.type02 tbody td {
    border-color: var(--sei-border) !important;
    background: #fff;
}

#contents input[type="text"],
#contents input[type="email"],
#contents input[type="tel"],
#contents select,
#contents textarea {
    border: 1px solid var(--sei-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 16px;
    max-width: 100%;
    box-sizing: border-box;
}

#contents input[type="submit"],
#contents button[type="submit"] {
    background: var(--sei-accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

#contents input[type="submit"]:hover,
#contents button[type="submit"]:hover {
    background: var(--sei-navy);
    transform: translateY(-2px);
}

/* Tuition fee card spacing inside course pages */
#cont_center .sei-tuition-fee {
    margin: 16px 0 32px;
}

/* Global images */
#contents img {
    max-width: 100%;
    height: auto;
}

#contents figure img {
    border-radius: 14px;
}

/* ---- Footer ---- */
#footer {
    border-top: none !important;
    background: var(--sei-navy);
    margin-top: 24px;
}

#footer .footer {
    padding: 40px 16px;
    box-sizing: border-box;
    max-width: 100%;
}

#footer .footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

#footer .footer li {
    white-space: normal;
}

#footer .footer li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

#footer .footer li a:hover {
    color: var(--sei-gold);
}

#footer .footer li::before {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

#footer address,
#footer address a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

#footer address a {
    color: var(--sei-gold);
}

/* ---- Responsive: tablet 2-col ---- */
@media (max-width: 1024px) {
    #contents .course-grid.square {
        grid-template-columns: repeat(2, 1fr);
    }

    #course-lineup.course-fit-section {
        padding: 28px 24px;
    }
}

@media (max-width: 960px) {
    #contents .container {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }

    #cont_left {
        float: none;
        width: 48%;
        order: 2;
        box-sizing: border-box;
        padding-right: 12px;
    }

    #cont_center {
        float: none;
        width: 100%;
        margin: 0 0 32px;
        order: 1;
        padding: 0;
    }

    #cont_right {
        position: static;
        width: 48%;
        order: 3;
        padding-left: 12px;
        display: block;
    }

    #cont_right .column {
        float: none !important;
        width: 100% !important;
    }
}

/* ---- Responsive: mobile single column ---- */
@media (max-width: 768px) {
    main {
        padding: 24px 0 40px;
    }

    :root {
        --sei-section-gap: 32px;
        --sei-card-pad: 20px;
    }

    #contents .container {
        flex-direction: column;
    }

    #cont_center {
        order: 1;
        width: 100%;
        margin: 0 0 24px;
    }

    #cont_left {
        order: 2;
        width: 100%;
        padding: 0;
    }

    #cont_right {
        order: 3;
        width: 100%;
        padding: 0;
    }

    #contents .column .col_tit {
        font-size: 17px;
    }

  body,
    #cont_center .syosai {
        font-size: 16px;
    }

    #cont_left .column.col1 .menu ul {
        overflow: visible;
    }

    #cont_left .column.col1 .menu li {
        float: none !important;
        width: 100% !important;
        border: none !important;
    }

    #cont_left .column.col1 .menu li a {
        color: var(--sei-navy) !important;
        text-shadow: none !important;
    }

    #cont_left .column.col1 .menu li a i {
        display: inline-block !important;
    }

    #cont_left .column.col1 .col_tit {
        display: block !important;
    }

    #contents .course-grid.square {
        grid-template-columns: 1fr;
    }

    #course-lineup.course-fit-section {
        padding: 24px 18px;
        border-radius: 18px;
    }

    #course-lineup .course-card-grid {
        gap: 18px;
    }

    #course-lineup .course-card-image {
        height: 108px;
        padding: 3px 10px;
    }

    #course-lineup .course-card-image img,
    #course-lineup .course-card-image svg.course-card-illustration {
        width: 90%;
        max-width: 90%;
        max-height: 102px;
        height: auto;
    }

    #course-lineup .course-card-body h3 {
        font-size: 18px;
    }

    #cont_center .small-section {
        padding: 24px 18px;
    }

    #cont_center table.type01,
    #cont_center table.type01 thead,
    #cont_center table.type01 tbody,
    #cont_center table.type01 tr,
    #cont_center table.type01 th,
    #cont_center table.type01 td {
        display: block;
        width: 100%;
    }

    #cont_center table.type01 thead {
        display: none;
    }

    #cont_center table.type01 tbody th {
        border-bottom: none;
        padding-bottom: 4px;
    }

    #cont_center .bookimage {
        float: none;
        width: 100%;
        padding: 0 0 16px;
    }
}

@media (max-width: 480px) {
    #contents .slider .slick-prev,
    #contents .slider .slick-next {
        width: 36px;
        height: 36px;
    }

    #cont_center .small-section h3 {
        font-size: 22px;
    }
}

/* Desktop: 3-column flex — top-aligned; JS matches right column to center */
@media (min-width: 961px) {
    #contents .container {
        display: flex !important;
        align-items: flex-start !important;
        flex-wrap: nowrap !important;
        width: 100%;
        gap: 18px;
    }

    #cont_left,
    #cont_center,
    #cont_right {
        float: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-self: flex-start !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin-top: 0 !important;
    }

    #cont_left {
        flex: 0 0 220px;
        width: 220px !important;
        max-width: 220px;
    }

    #cont_center {
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: none !important;
        margin-right: 0 !important;
        overflow: visible !important;
        border-left: none !important;
        border-right: none !important;
    }

    #cont_right {
        position: static !important;
        flex: 0 0 260px !important;
        width: 260px !important;
        max-width: 260px;
        min-height: 0 !important;
        overflow: hidden;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box;
    }

    #cont_left > .column,
    #cont_left > article.column {
        flex-shrink: 0;
    }

    #cont_center .small-section {
        margin-top: 0 !important;
    }

    #cont_right .column.col8,
    #cont_right > article.column.col8 {
        flex-shrink: 0;
    }

    #cont_right .x-sidebar-timeline {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 0 !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
        box-sizing: border-box;
    }

    #cont_right .x-sidebar-timeline.x-sidebar-timeline--failed {
        flex: 0 0 auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #cont_right .x-post-list {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}
