h3.achieve-year + .st-notice-box + p,
h3.achieve-year + p { font-weight: bold; margin-bottom: 12px; }

/* 日程変更通知ボックス */
.st-notice-box {
    background: rgba(255, 243, 224, 0.9);
    border: 1.5px solid rgba(192, 80, 0, 0.35);
    border-left: 4px solid #c05000;
    border-radius: var(--r-sm);
    padding: 12px 16px;
    margin: 12px 0 16px;
    font-size: .88rem;
}

.st-notice-box__title {
    font-weight: 700;
    color: #c05000;
    margin-bottom: 6px;
}

.st-notice-box__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.st-notice-box__list li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    line-height: 1.6;
}

.st-notice-num {
    font-weight: 700;
    color: var(--c-school);
    white-space: nowrap;
}

.st-notice-old {
    color: #999;
}

.st-notice-arrow {
    color: #c05000;
    font-weight: 700;
}

/* スケジュールページ: コンテナ拡幅・余白節約 */
#achievements-page .achievements-inner {
    max-width: 1100px;
}

#achievements-page .jd-section-title {
    margin: 20px 0 16px;
}

#achievements-page .achieve-year-block {
    margin-bottom: 24px;
}

/* ── スケジュール表ラッパー ── */
.schedule-table-wrap {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ── スケジュール表 ── */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    line-height: 1.45;
}

.schedule-table thead tr {
    background: linear-gradient(to right, var(--c-school), var(--c-found));
}

.schedule-table th {
    color: #fff;
    padding: 9px 14px;
    font-weight: 700;
    text-align: left;
    font-size: .8rem;
    letter-spacing: .08em;
    white-space: nowrap;
}

.schedule-table th.st-num { text-align: center; }

.schedule-table td {
    padding: 7px 14px;
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
}

.schedule-table tbody tr:last-child td { border-bottom: none; }

.schedule-table tbody tr:nth-child(even) {
    background: rgba(234, 244, 238, 0.35);
}

.schedule-table tbody tr:hover {
    background: rgba(234, 244, 238, 0.65);
}

/* 回 列 */
.st-num {
    text-align: center;
    width: 2.6em;
    font-weight: 700;
    color: var(--c-school);
    white-space: nowrap;
}

/* 日程 列 */
.st-date {
    white-space: nowrap;
    width: 9.5em;
    color: var(--c-text);
    font-size: .85rem;
}

/* 午前・午後ラベル */
.st-am, .st-pm {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 5px;
}
.st-am {
    background: var(--c-school-pale);
    color: var(--c-school);
}
.st-pm {
    background: var(--c-found-pale);
    color: var(--c-found);
}

/* 日程変更行 */
.st-changed td {
    background: rgba(255, 243, 224, 0.55) !important;
}
.st-old-date {
    color: #999;
    font-size: .8rem;
}
.st-change-note {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    color: #c05000;
    background: rgba(255, 220, 180, 0.55);
    border: 1px solid rgba(192, 80, 0, 0.3);
    border-radius: 3px;
    padding: 1px 6px;
    margin-top: 3px;
    white-space: nowrap;
}

/* サイエンスデイ行 */
.st-special td {
    color: var(--c-found);
    background: rgba(232, 238, 248, 0.35) !important;
    font-style: italic;
}
.st-special .st-num {
    color: var(--c-found);
}

/* ── 縦持ち（portrait）：カード形式レイアウト ── */
@media (max-width: 768px) and (orientation: portrait) {
    .schedule-table thead {
        display: none;
    }

    /* tbody をflexコンテナ化 */
    .schedule-table tbody {
        display: flex;
        flex-direction: column;
    }

    /* 各行を独立したカードに */
    .schedule-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        border-bottom: 1px solid #bbb;
        background: #fff !important;
    }

    /* セル共通リセット */
    .schedule-table td {
        border-bottom: none;
        padding: 0;
        vertical-align: unset;
    }

    /* 回・日程：1行目に薄いグリーン帯 */
    .st-num,
    .st-date {
        background: var(--c-school-pale);
    }

    /* 回 列：中央揃え・幅固定 */
    .st-num {
        flex: 0 0 2.8em;
        width: auto;
        font-size: .95rem;
        padding: 7px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 日程 列：残り幅を使い太字で表示 */
    .st-date {
        flex: 1 1 auto;
        width: auto;
        white-space: normal;
        font-weight: 700;
        font-size: .88rem;
        padding: 7px 12px;
        display: flex;
        align-items: center;
    }

    /* タイトル・内容：2行目に折り返す */
    .schedule-table td:last-child {
        flex: 0 0 100%;
        padding: 8px 14px 10px;
        font-size: .85rem;
        line-height: 1.6;
    }

    /* 日程変更行：日程セルを縦並びに */
    .st-changed .st-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .st-changed td {
        background: rgba(255, 243, 224, 0.7) !important;
    }

    /* サイエンスデイ：青帯に差し替え */
    .st-special .st-num,
    .st-special .st-date {
        background: var(--c-found-pale);
    }
    .st-special td:last-child {
        background: rgba(232, 238, 248, 0.3);
    }
}
