/* Home + /group.html — one landing system */

:root {
    --sei-ink: #1c1914;
    --sei-muted: #5c564c;
    --sei-paper: #f6f1e8;
    --sei-card: #fffdf8;
    --sei-line: #e4d8c6;
    --sei-accent: #b45309;
    --sei-accent-deep: #8a3d07;
    --sei-cta-text: #fffdf8;
    --sei-link: #0f5f73;
}

body.sei-page-home main,
body.sei-page-group main {
    padding: 0 0 64px !important;
    color: var(--sei-ink);
    background: var(--sei-paper);
}

body.sei-page-home #header .header,
body.sei-page-group #header .header {
    min-height: 72px;
    padding: 28px 12px 8px;
}

body.sei-page-home .hero-social,
body.sei-page-group .hero-social {
    display: none;
}

body.sei-page-home .hero-brand__ja,
body.sei-page-home #header .header_tit.hero-brand h1.hero-brand__ja,
body.sei-page-group .hero-brand__ja,
body.sei-page-group #header .header_tit.hero-brand h1.hero-brand__ja {
    font-size: 18px !important;
    padding: 6px 16px;
    color: #fff !important;
}

.sei-wrap {
    width: min(calc(100% - 40px), 1080px);
    margin: 0 auto;
}

.sei-section {
    padding: 56px 0;
}

.sei-section--tint {
    background: #efe7d8;
}

.sei-section h2,
.sei-level-grid__head h3 {
    margin: 0 0 8px;
    font-family: "Kosugi Maru", "Hiragino Kaku Gothic ProN", sans-serif;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.35;
    color: var(--sei-ink);
}

.sei-section__lead {
    margin: 0 0 24px;
    max-width: 40rem;
    font-size: 16px;
    line-height: 1.7;
    color: var(--sei-muted);
}

.sei-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 8px;
    background: var(--sei-accent);
    color: var(--sei-cta-text) !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none !important;
}

.sei-btn:hover,
.sei-btn:focus-visible {
    background: var(--sei-accent-deep);
}

.sei-text-link {
    color: var(--sei-link);
    font-weight: 700;
    text-decoration: none;
}

.sei-text-link:hover,
.sei-text-link:focus-visible {
    text-decoration: underline;
}

/* Hero: short, two-column, high contrast */
.sei-offer-hero {
    background: #fffdf8;
    border-bottom: 1px solid var(--sei-line);
}

.sei-offer-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
    align-items: center;
    width: min(calc(100% - 40px), 1080px);
    margin: 0 auto;
    padding: 36px 0 40px;
}

.sei-offer-hero__kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--sei-accent-deep);
}

.sei-offer-hero__copy {
    color: var(--sei-ink);
}

.sei-offer-hero__title,
.sei-offer-hero h1 {
    margin: 0 0 16px;
    font-family: "Kosugi Maru", "Hiragino Kaku Gothic ProN", sans-serif;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.35;
    color: var(--sei-ink) !important;
}

.sei-offer-hero__price {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--sei-accent-deep);
}

.sei-offer-hero__support {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--sei-ink);
}

.sei-offer-hero__visual {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #ddd4c4;
}

.sei-offer-hero__visual img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: left center;
}

.sei-reason-grid,
.sei-compare-grid,
.sei-level-grid__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sei-reason-card,
.sei-compare-card,
.sei-level-card,
.sei-next-card,
.sei-format-list {
    padding: 22px 22px 20px;
    background: var(--sei-card);
    border: 1px solid var(--sei-line);
    border-radius: 14px;
}

.sei-reason-card h3,
.sei-compare-card h3,
.sei-level-card h4,
.sei-next-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
    color: var(--sei-ink);
}

.sei-reason-card p,
.sei-compare-card p,
.sei-format-list li,
.sei-next-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--sei-muted);
}

.sei-compare-card p + p,
.sei-next-card p + p {
    margin-top: 10px;
}

.sei-teacher-feature {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 32px;
    align-items: center;
}

.sei-teacher-feature img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    background: #ddd4c4;
}

.sei-teacher-feature__name {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--sei-ink);
}

.sei-teacher-feature__lead {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--sei-ink);
}

.sei-level-grid__head {
    margin-bottom: 20px;
}

.sei-level-grid__hours,
.sei-level-grid__hours-detail {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--sei-muted);
}

.sei-level-card__placeholder,
.sei-level-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.6;
    color: var(--sei-ink);
}

.sei-level-card__placeholder {
    display: inline-block;
    padding: 6px 10px;
    background: #efe7d8;
    border-radius: 999px;
    color: var(--sei-muted);
}

.sei-level-grid__more {
    margin: 20px 0 0;
}

.sei-format-list {
    margin: 0;
    padding-left: 36px;
}

.sei-format-list li + li {
    margin-top: 8px;
}

.sei-next-card {
    max-width: 40rem;
}

body.sei-page-home .sei-home-secondary {
    padding-top: 24px;
}

body.sei-page-home .sei-home-secondary #cont_center,
body.sei-page-home .sei-home-secondary #cont_right {
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: 1080px;
    margin: 0 auto !important;
    padding: 0 20px;
}

body.sei-page-home .sei-home-social {
    display: grid;
    gap: 24px;
    width: min(calc(100% - 40px), 1080px);
    margin: 0 auto 32px;
}

body.sei-page-home .sei-home-social .sidebar-youtube,
body.sei-page-home .sei-home-social .x-sidebar-timeline,
body.sei-page-home .sei-home-social article.home-tiktok {
    background: var(--sei-card);
    border: 1px solid var(--sei-line);
    border-radius: 14px;
    padding: 16px;
}

body.sei-page-home .sei-home-blog {
    width: min(calc(100% - 40px), 1080px);
    margin: 0 auto;
}

.sei-group-course-link {
    margin: 20px 0 28px;
    padding: 14px 16px;
    background: #efe7d8;
    border-radius: 12px;
}

.sei-group-course-link a {
    color: var(--sei-link);
    font-weight: 700;
}

@media (min-width: 769px) {
    body.sei-page-home .sei-home-social {
        grid-template-columns: 1fr 1fr 1fr;
        align-items: start;
    }
}

@media (max-width: 900px) {
    .sei-offer-hero__inner,
    .sei-teacher-feature,
    .sei-reason-grid,
    .sei-compare-grid,
    .sei-level-grid__cards {
        grid-template-columns: 1fr;
    }

    .sei-offer-hero__visual {
        order: 2;
    }
}

@media (max-width: 768px) {
    body.sei-page-home #header .header,
    body.sei-page-group #header .header {
        min-height: 64px;
        padding: 36px 10px 8px;
    }

    .sei-offer-hero__inner {
        padding: 20px 0 24px;
        gap: 20px;
    }

    .sei-offer-hero__visual img {
        max-height: 220px;
    }

    .sei-section {
        padding: 36px 0;
    }

    .sei-teacher-feature img {
        max-height: 280px;
    }
}
