/* ==============================================
   オンライン説明会:参加者向けページ
   ============================================== */

:root {
    --color-main: #004700;
    --color-accent: #FF8C02;
    --color-text: #454545;
    --color-bg: #FFFFFF;
    --color-border: #E3E3E3;
    --color-gray-bg: #F5F5F3;
    --color-disabled-bg: #E8E8E8;
    --color-disabled-text: #9A9A9A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* PC: 16px基準 / SP(890px以下): 14px基準。rem指定の要素は自動で縮小される */
html {
    font-size: 16px;
}

body.public-body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    border-top: 6px solid var(--color-main);
    font-size: 1rem;
    letter-spacing: 0.03em;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    /* コンテンツが少なくてもフッターを最下部へ */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page {
    flex: 1 0 auto;
}

.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

/* ---------- ヘッダー ---------- */

.page-header {
    text-align: center;
    margin-bottom: 44px;
}

.page-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--color-main);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.page-title__school {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
}

.page-title__logo {
    width: auto;
    height: 34px;
}

.page-title__main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 30px;
}

.page-title__icon {
    color: var(--color-accent);
    position: relative;
    top: 3px;
}

.page-lead {
    font-size: 1rem;
    margin-bottom: 16px;
}

/* 450px以下でのみ改行 */
.br-sp {
    display: none;
}

@media (max-width: 450px) {
    .br-sp {
        display: inline;
    }
}

.page-note {
    display: inline-block;
    background: #EEF5EE;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 0.9375rem;
    color: var(--color-main);
}

.page-note .accent {
    color: var(--color-accent);
    font-weight: 700;
}

/* ---------- コースセクション ---------- */

.course-section {
    margin-bottom: 44px;
}

.course-title {
    border-left: 5px solid var(--color-main);
    padding-left: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
}

.no-session {
    text-align: center;
    padding: 48px 0;
    color: var(--color-disabled-text);
    font-size: 1.25rem;
    margin-bottom: 44px;
    font-weight: bold;
}

/* ---------- テーブル ---------- */

.session-table-wrap {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}

.session-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.session-table th {
    background: var(--color-gray-bg);
    color: #666;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.session-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    white-space: nowrap;
}

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

.cell-date {
    font-weight: 500;
}

/* ---------- Zoomボタン ---------- */

.zoom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.zoom-btn__inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 開催前(薄緑で「終了」と差別化) */
.zoom-btn--before {
    background: #EFF5EE;
    color: #6B8E6B;
    border: 1px solid #D8E6D8;
    cursor: not-allowed;
}

/* 入室可能 */
.zoom-btn--open {
    background: var(--color-accent);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 140, 2, 0.35);
}

.zoom-btn--open:hover {
    background: #E67D00;
    box-shadow: 0 4px 10px rgba(255, 140, 2, 0.45);
    transform: translateY(-1px);
}

.zoom-btn__arrow {
    font-size: 1rem;
    line-height: 1;
}

/* 終了 */
.zoom-btn--ended {
    background: var(--color-disabled-bg);
    color: var(--color-disabled-text);
    cursor: not-allowed;
}

/* ---------- 状態バッジ ---------- */

.badge {
    display: inline-block;
    min-width: 86px;
    text-align: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.badge--before {
    background: #EFF5EE;
    color: var(--color-main);
    border: 1px solid #D8E6D8;
}

.badge--open {
    background: #FFF1E0;
    color: var(--color-accent);
    border: 1px solid #FFD9A8;
    font-weight: 700;
}

.badge--ended {
    background: var(--color-gray-bg);
    color: #999;
    border: 1px solid var(--color-border);
}

/* ---------- 注意書きボックス ---------- */

.notice-box {
    background: #F7F9F7;
    border: 1px solid #DCE7DC;
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 8px;
}

.notice-box__title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-main);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.notice-box__title svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.notice-box__list {
    list-style: none;
    font-size: 0.875rem;
}

.notice-box__list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
}

.notice-box__list li::before {
    content: "・";
    position: absolute;
    left: 0;
}

/* ---------- フッター ---------- */

.site-footer {
    background: var(--color-main);
    text-align: center;
    padding: 18px 16px;
}

.site-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.9375rem;
    text-decoration: none;
}

.site-footer__link:hover {
    text-decoration: underline;
}

/* ==============================================
   レスポンシブ(参加者向けのみ)
   ============================================== */

@media (max-width: 890px) {
    /* SPは14px基準(rem指定の要素がすべて縮小される) */
    html {
        font-size: 14px;
    }

    .page {
        max-width: 600px;
        padding: 32px 16px 48px;
    }

    .page-title__main {
        font-size: 24px;
    }

    .page-note {
        padding: 10px 14px;
        font-size: 12.5px;
    }

    .course-title {
        font-size: 16px;
    }

    /* テーブルをカード表示へ変換 */
    .session-table thead {
        display: none;
    }

    .session-table,
    .session-table tbody,
    .session-table tr,
    .session-table td {
        display: block;
        width: 100%;
    }

    .session-table tr {
        border-bottom: 1px solid var(--color-border);
        padding: 14px 16px;
    }

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

    .session-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border: none;
        padding: 4px 0;
        white-space: normal;
    }

    .session-table td::before {
        content: attr(data-label);
        font-size: 12px;
        color: #888;
        flex-shrink: 0;
    }

    .cell-zoom {
        margin-top: 8px;
    }

    .cell-zoom::before {
        display: none;
    }

    .zoom-btn {
        width: 100%;
    }
}
