* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: #111827;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.site-nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.site-nav a {
    color: rgba(255,255,255,0.92);
    font-size: 15px;
}

.site-nav a:hover {
    color: #fff;
}

.hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 56px 0 44px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.hero-main {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 32px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 14px;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255,255,255,0.82);
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.btn-primary {
    background: #fff;
    color: #111827;
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
}

.hero-side {
    display: grid;
    gap: 16px;
}

.hero-stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 24px;
}

.hero-stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    margin-bottom: 10px;
}

.hero-stat-value {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-stat-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
}

.page-section {
    padding: 36px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.section-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 22px;
}

.card-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.card-meta {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.8;
}

.score-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.score-label {
    font-size: 14px;
    color: #6b7280;
}

.score-value {
    font-size: 40px;
    font-weight: 800;
    color: #111827;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #334155;
    font-size: 13px;
}

.card-text {
    line-height: 1.9;
    color: #374151;
    font-size: 15px;
}

.card-link {
    display: inline-block;
    margin-top: 18px;
    font-weight: 700;
    color: #2563eb;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

.panel {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 22px;
}

.panel-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 16px;
}

.simple-list {
    display: grid;
    gap: 14px;
}

.simple-item {
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 14px;
}

.simple-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.simple-item-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.simple-item-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.simple-item-text {
    font-size: 14px;
    line-height: 1.8;
    color: #374151;
}

.table-wrap {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8fafc;
    font-size: 14px;
    color: #475569;
}

td {
    font-size: 15px;
}

.empty-box {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    color: #6b7280;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.site-footer {
    margin-top: 48px;
    background: #111827;
    color: rgba(255,255,255,0.82);
    padding: 30px 0;
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 980px) {
    .hero-grid,
    .info-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .site-header-inner {
        height: auto;
        padding: 16px 0;
        flex-direction: column;
        gap: 12px;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 32px;
    }
}

.detail-page {
    padding: 32px 0 10px;
}

.back-row {
    margin-bottom: 18px;
}

.back-btn {
    display: inline-block;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    font-weight: 600;
}

.detail-hero {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 28px;
    margin-bottom: 26px;
}

.detail-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 14px;
}

.detail-meta {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 22px;
}

.detail-score {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 18px;
    color: #111827;
}

.detail-block {
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.9;
}

.link-text {
    color: #2563eb;
    font-weight: 700;
}

.link-text:hover {
    text-decoration: underline;
}

.admin-page {
    padding: 32px 0 10px;
}

.admin-hero {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 28px;
    margin-bottom: 24px;
}

.admin-hero-title {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 10px;
}

.admin-hero-text {
    color: #6b7280;
    line-height: 1.9;
    font-size: 15px;
}

.admin-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.admin-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.admin-btn.secondary {
    background: #e5e7eb;
    color: #111827;
}

.filter-panel {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 22px;
    margin-bottom: 24px;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.filter-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #374151;
}

.filter-field input,
.filter-field select {
    width: 100%;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    background: #fff;
}

.filter-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 22px;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 34px;
    font-weight: 800;
    color: #111827;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    background: #eef2ff;
    color: #334155;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.admin-section {
    margin-bottom: 28px;
}

.admin-table-wrap {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.admin-note {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 980px) {
    .filter-form {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.entry-panel {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 22px;
    margin-bottom: 24px;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.entry-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #374151;
}

.entry-field input,
.entry-field select,
.entry-field textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
}

.entry-field textarea {
    min-height: 96px;
    resize: vertical;
}

.entry-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.entry-tip {
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
}

@media (max-width: 980px) {
    .entry-grid {
        grid-template-columns: 1fr;
    }
}

.form-note {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #e5e7eb;
    color: #374151;
}

.admin-nav-wrap {
    padding: 18px 0 0;
}

.admin-nav {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.admin-nav a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    background: #f8fafc;
}

.admin-nav a:hover {
    background: #eef2ff;
}

.admin-nav a.active {
    background: #111827;
    color: #fff;
}

.login-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.login-wrap {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.login-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    padding: 32px;
}

.login-title {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #111827;
}

.login-desc {
    color: #6b7280;
    line-height: 1.9;
    font-size: 15px;
    margin-bottom: 24px;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #374151;
}

.login-field input {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
}

.login-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.login-check input {
    width: auto;
    height: auto;
}

.login-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.login-btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    background: #111827;
    color: #fff;
    border: none;
    cursor: pointer;
}

.login-btn.secondary {
    background: #e5e7eb;
    color: #111827;
}

.login-note {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    line-height: 1.8;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.8;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.8;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}