/* =========================================
   Page: Activity Flow
   ========================================= */
.step-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.step-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.step-num {
    font-size: 3rem;
    font-weight: 900;
    color: #e1f5fe;
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 0;
}

.step-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.step-desc {
    line-height: 1.8;
    color: #666;
}



/* =========================================
   Page: Achievements
   ========================================= */
.achievements-grid {
    max-width: 1000px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* Reusing .card and .tag from global/common */


/* =========================================
   Page: FAQ
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    display: none;
    margin-top: 15px;
    color: #666;
    line-height: 1.8;
    padding-left: 15px;
    border-left: 3px solid var(--primary);
}

.faq-icon {
    color: var(--primary);
    transition: 0.3s;
}

.active .faq-answer {
    display: block;
}

.active .faq-icon {
    transform: rotate(180deg);
}


/* =========================================
   Page: News (home.php)
   ========================================= */
.news-container {
    max-width: 900px;
    margin: 0px auto;
    padding: 0 0px 20px;
}

.news-list {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.news-item {
    border-bottom: 1px solid #e8e8e8;
    padding: 22px 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    border-left: 3px solid transparent;
    transition: background 0.22s ease,
                border-left-color 0.22s ease,
                padding-left 0.22s ease;
}

.news-item:first-child {
    border-top: 1px solid #e8e8e8;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #eef4ff;
    border-left-color: var(--primary);
    padding-left: 24px;
}

.news-date {
    color: #555;
    font-size: 0.95rem;
    width: 7.5em;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.news-item-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.news-tag {
    background: #87CEEB;
    color: #fff;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.news-title {
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #1a1a1a;
    flex: 1;
    min-width: 0;
    transition: color 0.22s ease;
}

.news-item:hover .news-title {
    color: var(--primary);
}

.news-arrow {
    color: var(--primary);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    flex-shrink: 0;
}

.news-item:hover .news-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .news-item {
        display: grid;
        grid-template-columns: max-content 1fr;
        grid-template-rows: auto auto;
        column-gap: 14px;
        row-gap: 4px;
        align-items: center;
        padding: 14px 12px;
    }
    .news-date {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        font-size: 0.85rem;
    }
    .news-item-body {
        display: contents;
    }
    .news-tag {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        padding: 3px 10px;
        font-size: 0.75rem;
        margin-top: 0;
    }
    .news-title {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        font-size: 0.95rem;
    }
    .news-arrow {
        display: none;
    }
}

/* =========================================

   Page: Reports (page-report-list.php)
   ========================================= */
.report-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.report-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    display: block;
    /* Ensure anchor is block */
}

.report-card:hover {
    transform: translateY(-5px);
}

.report-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #eee;
}

.report-content {
    padding: 20px;
}

.report-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.report-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 10px;
    line-height: 1.5;
    color: #333;
}

.report-tag {
    background: #e0f7fa;
    color: #006064;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
}


/* =========================================
   Page: Common (About, Achievements, etc.)
   ========================================= */
.page-header-block {
    background: #f0f9ff;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.page-header-block h1 {
    font-size: 2rem;
    color: var(--primary);
    margin: 0;
}

.page-header-block p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .page-header-block h1 {
        font-size: 1.5rem;
    }
    .page-header-block p {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
}

/* 内部ページのコンテンツパネル（背景区切り用） */
.page-main-rise {
    position: relative;
    z-index: 2;
    background: var(--bg);
    border-radius: 32px 32px 0 0;
}

.breadcrumb-bar {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
    font-size: 0.85rem;
    color: #888;
}

/* Global Site Breadcrumb (test.html style) */
.site-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.site-breadcrumb__inner {
    padding: 10px 40px;
}

@media (max-width: 768px) {
    .site-breadcrumb__inner {
        padding: 8px 20px;
    }
}

.site-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    color: #94a3b8;
    gap: 0;
}

.site-breadcrumb__item {
    display: inline-flex;
    align-items: center;
}

.site-breadcrumb__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.site-breadcrumb__link:hover {
    color: var(--primary);
}

.site-breadcrumb__sep {
    color: #cbd5e1;
    font-size: 0.65rem;
    margin: 0 6px;
}

.site-breadcrumb__item--current span {
    color: #1e293b;
    font-weight: 500;
}

.page-content-section {
    max-width: 1000px;
    margin: 0 auto 0px;
    padding: 0 20px 5%;
}

.page-content-card {
    background: #fff;
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.page-content-card > :first-child {
    margin-top: 0;
}

.card-section-title {
    margin: 0 0 20px;
    font-size: 1.5rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.card-section-title i {
    color: var(--primary);
    margin-right: 10px;
}

.page-section-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 900;
    text-align: center;
}

@media (max-width: 768px) {
    .page-section-title {
        font-size: 1.4rem;
    }
}

.page-section-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: bold;
    margin-bottom: 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .page-section-subtitle {
        font-size: 1rem;
        margin-bottom: 2em;
    }
}

.text-content-block {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 2;
    font-size: 1rem;
}

.text-content-block p {
    margin-bottom: 1.5em;
    color: #444;
}

.text-content-block p:last-child {
    margin-bottom: 0;
}

.text-content-block .sign-off {
    margin-top: 1.5em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 1em;
}

.sign-off__logo {
    width: 100px;
    height: auto;
    flex-shrink: 0;
}

.sign-off__text {
    margin: 0;
}

.info-highlight-box {
    background: #f0f9ff;
    padding: 30px;
    border-radius: 20px;
    border-left: 8px solid var(--primary);
}

.info-highlight-box--no-border {
    border-left: 0;
    border-radius: 12px;
    line-height: 2;
}

.info-highlight-box h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.3rem;
}

.info-highlight-box:not(.info-highlight-box--no-border) p {
    margin-bottom: 0;
}

.info-highlight-box .note {
    font-size: 0.9rem;
    color: #666;
}

.mailmag-list-box {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 20px;
    line-height: 2;
    font-size: 0.95rem;
}

.mailmag-list-box a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .mailmag-list-box {
        max-height: 320px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .page-content-card {
        padding: 20px;
        border-radius: 20px;
    }
}

.section-group-block {
    margin-bottom: 80px;
}

.section-group-block--sm {
    margin-bottom: 60px;
}

.section-group-block--xs {
    margin-bottom: 40px;
}

.section-heading-underline {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    display: inline-block;
    padding-bottom: 5px;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.purpose-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.purpose-num {
    width: 50px;
    height: 50px;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.purpose-num--primary { background: var(--primary); }
.purpose-num--pink    { background: #FFB7B2; }
.purpose-num--gold    { background: #ffd700; }

.purpose-card-title {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}

.purpose-card-desc {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

.page-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.page-table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.page-table thead tr {
    background: #e8f4fb;
}

.page-table th {
    text-align: left;
    padding: 12px 15px;
    color: #555;
}

.page-table tbody tr {
    border-bottom: 1px solid #eee;
}

.page-table td {
    padding: 13px 15px;
    color: #333;
}

.page-table td.label-cell,
.page-table th.label-cell {
    background: #f9f9f9;
    font-weight: bold;
    color: #555;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .page-table {
        font-size: 0.9rem;
    }
    .page-table th,
    .page-table td {
        padding: 10px 12px;
    }
    .page-table td.label-cell,
    .page-table th.label-cell {
        white-space: normal;
        word-break: keep-all;
    }
}

.media-info-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.media-info-box > i {
    font-size: 1.5rem;
    color: #555;
}

.media-info-title {
    font-weight: bold;
    color: #333;
}

.media-info-desc {
    font-size: 0.9rem;
    color: #666;
}

.video-responsive {
    margin-top: 20px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.page-cta-section {
    text-align: center;
    margin-top: 60px;
}

.page-cta-section h3 {
    margin-bottom: 30px;
    color: #333;
}

.cta-button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================================

/* =========================================
   Page: Achievements
   ========================================= */
.achievements-stats-box {
    background: #e8f4fc;
    border-left: 5px solid #97CCE8;
    padding: 16px 24px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.stat-strong {
    color: #d9534f;
    font-size: 1.25em;
}

.year-section-block {
    margin-bottom: 50px;
}

.year-table-header {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background: #5599bb;
    padding: 10px 18px;
    border-radius: 8px 8px 0 0;
    margin: 0;
}

.year-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #cde;
    margin-bottom: 28px;
}

.year-table--last {
    margin-bottom: 8px;
}

.year-table thead tr {
    background: #deeef8;
}

.year-table th {
    padding: 8px 14px;
    font-size: 0.82rem;
    color: #555;
    text-align: left;
    border: 1px solid #cde;
}

.year-table th.count-col {
    text-align: right;
    width: 70px;
}

.year-table td {
    padding: 8px 14px;
    font-size: 0.9rem;
    border: 1px solid #e0ecf5;
}

.year-table td.count-col {
    text-align: right;
    font-weight: bold;
    color: #5599bb;
}

.year-table tbody tr:nth-child(even) {
    background: #f7fbff;
}

.year-table-note {
    font-size: 0.8rem;
    color: #999;
    margin: 4px 0 0;
}

.feedback-section-group {
    margin-bottom: 60px;
}

.feedback-section-group--last {
    margin-bottom: 40px;
}

.feedback-heading {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 25px;
    padding: 15px 20px;
    border-radius: 12px;
}

.feedback-heading--children {
    background: #f0f9ff;
    border-left: 6px solid var(--primary);
}

.feedback-heading--school {
    background: #fff5f5;
    border-left: 6px solid #FFB7B2;
}

.feedback-heading--company {
    background: #fffbea;
    border-left: 6px solid #ffd700;
}

.feedback-heading i {
    margin-right: 10px;
}

.feedback-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feedback-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f9f9f9;
    padding: 16px 20px;
    border-radius: 10px;
}

.feedback-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feedback-icon--primary { color: var(--primary); }
.feedback-icon--pink    { color: #FFB7B2; }
.feedback-icon--gold    { color: #ffd700; }


/* =========================================
   Page: About — media section text
   ========================================= */
.media-section-text {
    font-size: 1rem;
    line-height: 2;
    color: #555;
    margin-bottom: 30px;
}


/* =========================================
   Page: Achievements — subtitle note
   ========================================= */
.page-subtitle-note {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}


/* =========================================
   Page: Activity Content
   ========================================= */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.activity-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f7fbff;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 1rem;
    color: #333;
    border-left: 4px solid var(--primary);
}

.activity-num {
    font-weight: bold;
    color: var(--primary);
    flex-shrink: 0;
    min-width: 1.8rem;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.subject-card {
    background: #fff;
    border: 1px solid #e8f0fa;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.subject-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.subject-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.subject-title {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
}

.subject-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .subject-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================
   Page: Lesson Major Categories
   ========================================= */
.major-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.major-card {
    background: #fff;
    border: 1px solid #e8f0fa;
    border-radius: 20px;
    padding: 32px 24px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.major-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.major-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: background 0.25s ease;
}

.major-card:hover .major-card__icon {
    background: var(--primary);
}

.major-card__icon i {
    font-size: 1.6rem;
    color: var(--primary);
    transition: color 0.25s ease;
}

.major-card:hover .major-card__icon i {
    color: #fff;
}

.major-card__slug {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary);
    background: #e8f4fc;
    padding: 2px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.major-card__name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.4;
}

.major-card__desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
    margin: 0 0 16px;
    flex: 1;
}

.major-card__count {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.major-card__arrow {
    position: absolute;
    bottom: 16px;
    right: 16px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.major-card:hover .major-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 600px) {
    .major-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .major-card {
        padding: 24px 20px 20px;
    }
}


/* =========================================
   Page: Categories (カテゴリ一覧 - リスト)
   ========================================= */
.cat-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 60px;
}

.lesson-major-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .lesson-major-grid {
        grid-template-columns: 1fr;
    }
}

.lesson-major-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border: 1px solid #e5ebf3;
    border-radius: 20px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.lesson-major-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--cat-color, var(--primary)) 40%, #dbe4f0);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.lesson-major-card__icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--cat-color, var(--primary)) 14%, #fff);
}

.lesson-major-card__icon i {
    font-size: 1.7rem;
    color: var(--cat-color, var(--primary));
}

.lesson-major-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.lesson-major-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.lesson-major-card__name {
    flex: 1;
    font-size: 1.18rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
    min-width: 0;
    line-height: 1.35;
}

.lesson-major-card__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

.lesson-major-card__count i {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.lesson-major-card:hover .lesson-major-card__count i {
    color: var(--cat-color, var(--primary));
    transform: translateX(2px);
}

.lesson-major-card__desc {
    margin: 0 0 12px;
    color: #5b677a;
    font-size: 0.9rem;
    line-height: 1.6;
}

.lesson-major-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: auto;
}

.lesson-major-card__tag {
    background: color-mix(in srgb, var(--cat-color, var(--primary)) 10%, #f3f6fb);
    color: color-mix(in srgb, var(--cat-color, var(--primary)) 70%, #475569);
    font-size: 0.74rem;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    font-weight: 600;
}

@media (max-width: 600px) {
    .lesson-major-card {
        gap: 14px;
        padding: 18px;
    }

    .lesson-major-card__icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
        border-radius: 14px;
    }

    .lesson-major-card__icon i {
        font-size: 1.4rem;
    }

    .lesson-major-card__name {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   令和7年度 新規開発プログラム セクション
   ========================================================================== */
.lesson-new-programs {
    background: transparent;
    padding: 0;
    margin-bottom: 48px;
}

.lesson-new-programs__header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 0 0 22px;
    padding: 16px 24px;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--primary, #3b82f6), color-mix(in srgb, var(--primary, #3b82f6) 65%, #1e3a8a));
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary, #3b82f6) 22%, transparent);
}

.lesson-new-programs__title-wrap {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
}

.lesson-new-programs__count {
    grid-column: 3;
    justify-self: end;
}

.lesson-new-programs__year {
    background: #fff;
    color: var(--primary, #3b82f6);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    line-height: 1.4;
    flex-shrink: 0;
}

.lesson-new-programs__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.lesson-new-programs__title i {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.92;
}

.lesson-new-programs__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .lesson-new-programs__header {
        padding: 14px 18px;
    }
    .lesson-new-programs__title {
        font-size: 1.2rem;
    }
    .lesson-new-programs__title i {
        font-size: 1rem;
    }
}

.lesson-new-programs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lesson-new-programs__item {
    --cat-color: var(--primary, #3b82f6);
    list-style: none;
    min-width: 0;
}

.lesson-new-programs__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5ebf3;
    border-radius: 12px;
    color: #1f2937;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.4;
    min-width: 0;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lesson-new-programs__link:hover {
    border-color: var(--cat-color);
    background: color-mix(in srgb, var(--cat-color) 6%, #fff);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--cat-color) 18%, transparent);
}

.lesson-new-programs__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--cat-color) 14%, #fff);
    color: var(--cat-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.lesson-new-programs__text {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.lesson-new-programs__cat {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cat-color);
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-new-programs__ttl {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    min-width: 0;
    max-width: 100%;
}

.lesson-new-programs__arr {
    font-size: 0.7rem;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.18s ease, color 0.18s ease;
}

.lesson-new-programs__link:hover .lesson-new-programs__arr {
    color: var(--cat-color);
    transform: translateX(2px);
}

@media (max-width: 1024px) {
    .lesson-new-programs__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .lesson-new-programs__list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   授業プログラム分類: 上部統計カード + 2カラムレイアウト
   ========================================================================== */
.page-content-section--wide {
    max-width: 1200px;
}

.lesson-categories-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 32px;
}

.lesson-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e5ebf3;
    border-radius: 16px;
}

.lesson-stat-card__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: #e0ebff;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.lesson-stat-card__icon--violet {
    background: #ece5ff;
    color: #7c3aed;
}

.lesson-stat-card__icon--cyan {
    background: #d6f0fb;
    color: #0891b2;
}

.lesson-stat-card__icon--amber {
    background: #fff1d6;
    color: #d97706;
}

.lesson-stat-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lesson-stat-card__num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary, #3b82f6);
    line-height: 1.2;
}

.lesson-stat-card__label {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.lesson-major-section {
    min-width: 0;
}

.lesson-major-section__header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 0 0 22px;
    padding: 16px 24px;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--primary, #3b82f6), color-mix(in srgb, var(--primary, #3b82f6) 65%, #1e3a8a));
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary, #3b82f6) 22%, transparent);
}

.lesson-major-section__title {
    grid-column: 2;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.lesson-major-section__count {
    grid-column: 3;
    justify-self: end;
}

.lesson-major-section__title i {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.92;
}

.lesson-major-section__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .lesson-major-section__header {
        padding: 14px 18px;
    }
    .lesson-major-section__title {
        font-size: 1.2rem;
    }
    .lesson-major-section__title i {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .lesson-categories-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .lesson-categories-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .lesson-stat-card {
        padding: 14px 16px;
    }

    .lesson-stat-card__num {
        font-size: 1.1rem;
    }
}
