/* Homepage-only layout (index.html) — does not load on course pages */

/* Slider — keep slick inside center column */
body.sei-page-home #cont_center .column.col4 .slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

body.sei-page-home #cont_center .column.col4 .slider .slick-list,
body.sei-page-home #cont_center .column.col4 .slider .slick-track {
    min-height: 240px;
}

body.sei-page-home #cont_center .column.col4 .slider .slick-slide {
    display: none;
    float: none;
    height: auto;
}

body.sei-page-home #cont_center .column.col4 .slider .slick-slide.slick-active {
    display: block;
}

body.sei-page-home #cont_center .column.col4 .slider .slick-slide figure {
    margin: 0;
}

body.sei-page-home #cont_center .column.col4 .slider figure img {
    width: 100% !important;
    height: auto !important;
    min-height: 240px;
    max-height: none !important;
    object-fit: cover;
    display: block !important;
    filter: none !important;
}

body.sei-page-home #cont_center .column.col4 .slider figure.slider-slide--campaign img {
    object-fit: contain;
    object-position: center;
    background: #f6f8fb;
}

/* Center column cards (col4 / col6) */
body.sei-page-home #cont_center > .column,
body.sei-page-home #cont_center > article.column:not(.col5--lineup) {
    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);
}

body.sei-page-home #cont_center > article.column.col5--lineup {
    background: transparent;
    border: none !important;
    box-shadow: none;
    padding: 0;
    margin-bottom: var(--sei-section-gap);
}

/* Left sidebar YouTube thumbnail card */
body.sei-page-home #cont_left .sidebar-youtube {
    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-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

body.sei-page-home .sidebar-youtube__title {
    margin: 0 0 8px;
    font-family: 'Kosugi Maru', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--sei-navy);
    line-height: 1.35;
}

body.sei-page-home .sidebar-youtube__desc {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--sei-muted);
}

body.sei-page-home .sidebar-youtube__thumb {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 10px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
}

body.sei-page-home .sidebar-youtube__thumb-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

body.sei-page-home .sidebar-youtube__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 32, 51, 0.28);
    color: #fff;
    font-size: 42px;
    line-height: 1;
    transition: background 0.25s ease;
}

body.sei-page-home .sidebar-youtube__thumb:hover .sidebar-youtube__play,
body.sei-page-home .sidebar-youtube__thumb:focus-visible .sidebar-youtube__play {
    background: rgba(20, 32, 51, 0.42);
}

body.sei-page-home .sidebar-youtube__subtitle {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--sei-navy);
}

body.sei-page-home .sidebar-youtube__link-wrap {
    margin: 0;
    text-align: center;
}

body.sei-page-home .sidebar-youtube__link {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--sei-accent);
    text-decoration: none;
}

body.sei-page-home .sidebar-youtube__link:hover,
body.sei-page-home .sidebar-youtube__link:focus-visible {
    text-decoration: underline;
    outline: 2px solid var(--sei-accent);
    outline-offset: 2px;
}

/* Center column TikTok creator profile (former YouTube position) */
body.sei-page-home #cont_center article.home-tiktok {
    overflow: visible;
}

body.sei-page-home #cont_center article.home-tiktok .home-tiktok__embed {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    overflow: visible;
}

body.sei-page-home #cont_center article.home-tiktok .home-tiktok__loading {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--sei-muted);
    text-align: center;
}

body.sei-page-home #cont_center article.home-tiktok.home-tiktok--loaded .home-tiktok__loading,
body.sei-page-home #cont_center article.home-tiktok.home-tiktok--failed .home-tiktok__loading {
    display: none;
}

body.sei-page-home #cont_center article.home-tiktok.home-tiktok--loaded .home-tiktok__fallback {
    display: none !important;
}

body.sei-page-home #cont_center article.home-tiktok .home-tiktok__embed .tiktok-embed {
    display: block;
    width: 100% !important;
    max-width: 780px !important;
    min-width: 288px !important;
    margin: 0 auto !important;
}

body.sei-page-home #cont_center article.home-tiktok .home-tiktok__embed iframe {
    max-width: 100%;
}

body.sei-page-home #cont_center article.home-tiktok.home-tiktok--failed .home-tiktok__embed {
    display: none;
}

body.sei-page-home #cont_center article.home-tiktok .home-tiktok__fallback {
    margin: 0;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
}

body.sei-page-home #cont_center article.home-tiktok .home-tiktok__fallback[hidden] {
    display: none !important;
}

body.sei-page-home #cont_center article.home-tiktok .home-tiktok__fallback a {
    display: inline-block;
    color: var(--sei-accent);
    font-weight: 700;
    text-decoration: none;
}

body.sei-page-home #cont_center article.home-tiktok .home-tiktok__fallback a:hover,
body.sei-page-home #cont_center article.home-tiktok .home-tiktok__fallback a:focus-visible {
    text-decoration: underline;
    outline: 2px solid var(--sei-accent);
    outline-offset: 2px;
}

body.sei-page-home #cont_center .column.col6 hr {
    display: none;
}

body.sei-page-home #cont_center > article.column:last-child {
    margin-bottom: 0 !important;
}

/* Homepage access / local business section */
body.sei-page-home main#contents {
    padding-bottom: 0;
}

body.sei-page-home #footer {
    margin-top: 0;
}

/* Homepage access / local business section */
body.sei-page-home #contents > .home-access {
    width: min(calc(100% - 40px), 1200px);
    margin: 48px auto 40px;
    clear: both;
    box-sizing: border-box;
    background: var(--sei-card);
    border: 1px solid var(--sei-border) !important;
    border-radius: var(--sei-radius);
    box-shadow: var(--sei-shadow);
    padding: 20px 22px;
}

body.sei-page-home .home-access {
    clear: both;
}

body.sei-page-home .home-access__head {
    margin-bottom: 14px;
}

body.sei-page-home .home-access__title {
    font-family: 'Kosugi Maru', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: var(--sei-navy);
    line-height: 1.35;
    margin: 6px 0 0;
}

body.sei-page-home .home-access__lead {
    color: var(--sei-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 6px 0 0;
}

body.sei-page-home .home-access__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 16px 24px;
    align-items: start;
}

body.sei-page-home .home-access__info p {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--sei-navy);
}

body.sei-page-home .home-access__info p:last-child {
    margin-bottom: 0;
}

body.sei-page-home .home-access__address {
    font-weight: 600;
}

body.sei-page-home .home-access__contact a {
    color: var(--sei-accent);
    text-decoration: none;
}

body.sei-page-home .home-access__contact a:hover {
    text-decoration: underline;
}

body.sei-page-home .home-access__sep {
    margin: 0 6px;
    color: var(--sei-border);
}

body.sei-page-home .home-access__hours {
    color: var(--sei-muted);
    font-size: 13px !important;
}

body.sei-page-home .home-access__stations {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.sei-page-home .home-access__stations li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: var(--sei-bg);
    border: 1px solid var(--sei-border);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
}

body.sei-page-home .home-access__station-name {
    color: var(--sei-navy);
    font-weight: 600;
}

body.sei-page-home .home-access__station-walk {
    flex-shrink: 0;
    color: var(--sei-accent);
    font-weight: 700;
    font-size: 12px;
}

body.sei-page-home .home-access__more {
    margin: 14px 0 0;
}

body.sei-page-home .home-access__more a {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--sei-accent);
    text-decoration: none;
}

body.sei-page-home .home-access__more a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    body.sei-page-home #cont_center article.home-tiktok .home-tiktok__embed .tiktok-embed {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body.sei-page-home .home-access__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.sei-page-home #contents > .home-access {
        padding: 16px 18px;
        margin: 32px auto 32px;
        width: min(calc(100% - 32px), 1200px);
    }
}

/* Homepage blog list */
#home-blog-list.home-blog-list {
    margin-top: 12px;
}

#home-blog-list .home-blog-loading,
#home-blog-list .home-blog-error {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #5c6b7a;
}

#home-blog-list .home-blog-error__link {
    display: inline-flex;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #3192bf;
    text-decoration: none;
}

#home-blog-list .home-blog-error__link:hover {
    text-decoration: underline;
}

#home-blog-list ul.news {
    list-style: none;
    margin: 0;
    padding: 0;
}

#home-blog-list ul.news li {
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #e6e9ee;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

#home-blog-list ul.news li:last-child {
    margin-bottom: 0;
}

#home-blog-list ul.news h5.date {
    margin: 0;
    font-family: 'Kosugi Maru', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    color: #142033;
}

#home-blog-list ul.news h5.date a {
    color: inherit;
    text-decoration: none;
}

#home-blog-list ul.news h5.date a:hover {
    color: #3192bf;
}

#home-blog-list .home-blog-accordion__item.is-open {
    padding-bottom: 16px;
}

#home-blog-list .home-blog-accordion__heading {
    margin: 0;
}

#home-blog-list .home-blog-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

#home-blog-list .home-blog-accordion__trigger:hover,
#home-blog-list .home-blog-accordion__trigger:focus {
    color: #3192bf;
    outline: none;
}

#home-blog-list .home-blog-accordion__trigger:focus-visible {
    outline: 2px solid #3192bf;
    outline-offset: 3px;
    border-radius: 6px;
}

#home-blog-list .home-blog-accordion__title {
    flex: 1 1 auto;
    min-width: 0;
}

#home-blog-list .home-blog-accordion__icon {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

#home-blog-list .home-blog-accordion__icon::before,
#home-blog-list .home-blog-accordion__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: #3192bf;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#home-blog-list .home-blog-accordion__icon::before {
    transform: translate(-50%, -50%);
}

#home-blog-list .home-blog-accordion__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

#home-blog-list .home-blog-accordion__item.is-open .home-blog-accordion__icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0.4);
}

#home-blog-list .home-blog-accordion__panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: opacity 0.22s ease, margin-top 0.22s ease;
    margin-top: 0;
}

#home-blog-list .home-blog-accordion__panel.is-open {
    max-height: none;
    opacity: 1;
    margin-top: 12px;
    overflow: visible;
}

#home-blog-list .home-blog-accordion__date {
    display: block;
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #5c6b7a;
}

#home-blog-list .home-blog-accordion__excerpt {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.65;
    color: #5c6b7a;
}

#home-blog-list .home-blog-accordion__body {
    margin: 0 0 12px;
}

#home-blog-list .home-blog-panel__content {
    font-size: 14px;
    line-height: 1.75;
    color: #5c6b7a;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#home-blog-list .home-blog-panel__content > :first-child {
    margin-top: 0;
}

#home-blog-list .home-blog-panel__content > :last-child {
    margin-bottom: 0;
}

#home-blog-list .home-blog-panel__content p {
    margin: 0 0 14px;
}

#home-blog-list .home-blog-panel__content h2,
#home-blog-list .home-blog-panel__content h3,
#home-blog-list .home-blog-panel__content h4 {
    margin: 18px 0 10px;
    font-family: 'Kosugi Maru', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: #142033;
}

#home-blog-list .home-blog-panel__content ul,
#home-blog-list .home-blog-panel__content ol {
    margin: 0 0 14px 1.2em;
    padding: 0;
}

#home-blog-list .home-blog-panel__content li {
    margin: 0 0 8px;
}

#home-blog-list .home-blog-panel__content blockquote {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-left: 3px solid #3192bf;
    background: #f6f8fb;
    color: #5c6b7a;
}

#home-blog-list .home-blog-panel__content a {
    color: #3192bf;
    text-decoration: underline;
}

#home-blog-list .home-blog-panel__content figure {
    margin: 16px 0;
    text-align: center;
}

#home-blog-list .home-blog-panel__content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    border-radius: 8px;
}

#home-blog-list .home-blog-panel__content img.is-broken {
    display: none;
}

#home-blog-list .home-blog-panel__content figcaption {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #7a8795;
}

#home-blog-list .home-blog-accordion__excerpt--fallback {
    color: #7a8795;
}

#home-blog-list .home-blog-accordion__read-more-wrap {
    margin: 0;
}

#home-blog-list .home-blog-accordion__read-more {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #3192bf;
    text-decoration: none;
}

#home-blog-list .home-blog-accordion__read-more:hover {
    text-decoration: underline;
}

#home-blog-list .home-blog-list__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-blog-card {
    min-width: 0;
}

.home-blog-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e6e9ee;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-blog-card__link:hover,
.home-blog-card__link:focus {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.home-blog-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f6f8fb;
    overflow: hidden;
}

.home-blog-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 18px 18px;
}

.home-blog-card__date {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #5c6b7a;
}

.home-blog-card__title {
    margin: 0 0 10px;
    font-family: 'Kosugi Maru', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: #142033;
}

.home-blog-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.65;
    color: #5c6b7a;
    flex: 0 0 auto;
}

.home-blog-card__cta {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: #3192bf;
}

.home-blog-more {
    margin: 16px 0 0;
    text-align: right;
}

.home-blog-more a {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #3192bf;
    text-decoration: none;
}

.home-blog-more a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    #home-blog-list .home-blog-list__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #home-blog-list .home-blog-list__grid {
        grid-template-columns: 1fr;
    }
}
