* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #102033;
    background:
        radial-gradient(circle at top left, rgba(47, 128, 237, 0.14), transparent 34%),
        linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
    min-height: 100vh;
}

a {
    color: inherit;
}

.site-header {
    width: 100%;
    padding: 20px;
}

.site-logo {
    display: inline-flex;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #14365d;
}

.page {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 64px;
}

.page--narrow {
    width: min(560px, calc(100% - 32px));
}

.hero {
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero__badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #2f5f93;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(26, 63, 102, 0.08);
}

.hero h1 {
    margin: 0;
    font-size: clamp(40px, 8vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 24px 0 0;
    color: #40566f;
    font-size: 18px;
    line-height: 1.9;
}

.hero__actions {
    margin-top: 36px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    background: #14365d;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(20, 54, 93, 0.25);
}

.button--secondary {
    background: #ffffff;
    color: #14365d;
    border: 1px solid #d8e4ef;
}

.button--danger {
    background: #fff4f4;
    color: #a53737;
    border: 1px solid #f1c7c7;
}

.panel {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(214, 228, 241, 0.9);
    box-shadow: 0 18px 42px rgba(30, 64, 101, 0.08);
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading p {
    margin: 0 0 8px;
    color: #2f80ed;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -0.04em;
}

.form {
    display: grid;
    gap: 18px;
}

.form label {
    display: grid;
    gap: 8px;
    color: #40566f;
    font-weight: 800;
}

.form input,
.form select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d8e4ef;
    border-radius: 16px;
    padding: 0 14px;
    background: #ffffff;
    color: #102033;
    font-size: 16px;
}

.form-footer {
    margin-top: 24px;
    color: #51677f;
    font-weight: 700;
}

.notice {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    line-height: 1.7;
}

.notice--warning {
    background: #fff8e6;
    border: 1px solid #f0d28c;
    color: #66501b;
}

.notice--error {
    background: #fff0f0;
    border: 1px solid #f1b8b8;
    color: #963232;
}

.notice--success {
    background: #ecfff4;
    border: 1px solid #a8e2bf;
    color: #1f6b3d;
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(214, 228, 241, 0.9);
    color: #14365d;
    font-weight: 900;
    white-space: nowrap;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-card {
    min-height: 190px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(214, 228, 241, 0.9);
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(30, 64, 101, 0.08);
}

.dashboard-card span {
    display: inline-flex;
    color: #2f80ed;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 18px;
}

.dashboard-card h2 {
    margin: 0;
    font-size: 22px;
}

.dashboard-card p {
    margin: 12px 0 0;
    color: #51677f;
    line-height: 1.7;
    font-size: 15px;
}

.dashboard-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.site-footer {
    padding: 24px;
    text-align: center;
    color: #6b7f94;
}

@media (max-width: 860px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 16px;
    }

    .page {
        width: min(100% - 24px, 1080px);
        padding-top: 20px;
    }

    .dashboard-top {
        display: block;
    }

    .user-chip {
        margin-bottom: 22px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: auto;
    }

    .panel {
        padding: 22px;
    }
}


.hero--compact {
    min-height: auto;
    padding: 36px 0 24px;
}

.public-section,
.admin-section {
    margin-top: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.seminar-list {
    display: grid;
    gap: 14px;
}

.seminar-button {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 18px;
    align-items: center;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(214, 228, 241, 0.9);
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(30, 64, 101, 0.08);
}

.seminar-button__date {
    grid-row: span 2;
    min-width: 86px;
    font-weight: 900;
    color: #2f80ed;
}

.seminar-button__title {
    font-size: 22px;
    font-weight: 900;
    color: #102033;
}

.seminar-button__school {
    color: #5b7188;
    font-size: 14px;
}

.public-actions {
    margin-top: 28px;
}

.empty-state {
    padding: 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(214, 228, 241, 0.9);
    color: #51677f;
}

.empty-state p {
    margin: 0;
    line-height: 1.8;
}

.empty-state p + p {
    margin-top: 8px;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(214, 228, 241, 0.9);
    box-shadow: 0 18px 42px rgba(30, 64, 101, 0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #e4edf6;
    vertical-align: middle;
}

.admin-table th {
    color: #51677f;
    font-size: 13px;
    background: rgba(247, 251, 255, 0.8);
}

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

.table-subtext {
    display: block;
    margin-top: 4px;
    color: #6b7f94;
    font-size: 13px;
}

.table-link {
    color: #2f80ed;
    font-weight: 800;
    text-decoration: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef3f8;
    color: #51677f;
    font-size: 13px;
    font-weight: 800;
}

.status-pill--on {
    background: #e7f5ed;
    color: #187644;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.form textarea,
.form select {
    width: 100%;
    border: 1px solid #d8e4ef;
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    background: #ffffff;
    color: #102033;
}

.form textarea {
    resize: vertical;
    line-height: 1.7;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lead-text {
    color: #40566f;
    font-size: 18px;
    line-height: 1.9;
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .seminar-button {
        grid-template-columns: 1fr;
    }

    .seminar-button__date {
        grid-row: auto;
    }
}

.table-wrap {
    margin-top: 24px;
    overflow-x: auto;
    border: 1px solid #d8e4ef;
    border-radius: 22px;
    background: #ffffff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #e6edf5;
    vertical-align: top;
}

.data-table th {
    color: #45627f;
    font-size: 13px;
    font-weight: 900;
    background: #f7fbff;
    white-space: nowrap;
}

.data-table td {
    color: #102033;
    font-size: 15px;
    line-height: 1.6;
}

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

.data-table a {
    font-weight: 800;
    color: #14365d;
    text-decoration: none;
}

.data-table a:hover {
    text-decoration: underline;
}