/* ============================================
   Match Guidelines Page Styles (開催要項)
   ============================================ */

/* --- Variables --- */
:root {
    --match-text: #1a1a1a;
    --match-muted: #555;
    --match-accent: #2563eb;
    --match-accent-dark: #1d4ed8;
    --match-warn: #b45309;
    --match-border: #e2e8f0;
}

/* --- Base / Page --- */
.match-guidelines-page * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.match-guidelines-page {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic",
        "Yu Gothic", Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--match-text);
    background: #eef2f7;
    padding: 24px 16px 48px;
    min-height: 100vh;
}

/* --- Navigation --- */
.match-guidelines-nav {
    max-width: 720px;
    margin: 0 auto 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 14px;
}

.match-guidelines-nav a {
    color: var(--match-accent);
    text-decoration: none;
}

.match-guidelines-nav a:hover {
    text-decoration: underline;
}

/* --- Document --- */
.match-guidelines-document {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--match-border);
    border-radius: 8px;
    padding: 40px 36px 48px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

/* --- Header --- */
.match-guidelines-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--match-text);
}

.match-guidelines-lead {
    text-align: center;
    font-size: 0.95rem;
    color: var(--match-muted);
    line-height: 1.7;
    margin-bottom: 12px;
    padding: 0 8px;
}

.match-guidelines-organizer {
    text-align: center;
    font-size: 0.95rem;
    color: var(--match-muted);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--match-accent);
}

.match-guidelines-organizer strong {
    color: var(--match-text);
}

.match-guidelines-lead {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--match-muted);
    margin-bottom: 28px;
    padding: 12px 14px;
    background: #f1f5f9;
    border-radius: 6px;
    border-left: 3px solid var(--match-accent);
}

/* --- Sections --- */
.match-guidelines-section {
    margin-bottom: 24px;
}

.match-guidelines-section-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--match-accent-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.match-guidelines-section-heading::before {
    content: "◆";
    flex-shrink: 0;
}

.match-guidelines-section-body {
    padding-left: 1.25em;
}

.match-guidelines-section-body p {
    margin-bottom: 0.5em;
}

.match-guidelines-section-body p:last-child {
    margin-bottom: 0;
}

/* --- Content: Lists --- */
.match-guidelines-list {
    list-style: none;
    padding: 0;
}

.match-guidelines-list li {
    position: relative;
    padding-left: 1em;
    margin-bottom: 0.35em;
}

.match-guidelines-list li::before {
    content: "・";
    position: absolute;
    left: 0;
}

/* --- Content: Text emphasis --- */
.match-guidelines-highlight {
    font-weight: 700;
    color: var(--match-accent-dark);
}

.match-guidelines-warn {
    font-weight: 700;
    color: var(--match-warn);
}

.match-guidelines-note {
    font-size: 0.9em;
    color: var(--match-muted);
}

.match-guidelines-targets {
    margin-top: 0.5em;
    font-size: 0.95rem;
    color: var(--match-muted);
}

/* --- Content: Fee & Prize --- */
.match-guidelines-fee {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--match-accent-dark);
}

.match-guidelines-prize {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 600;
}

/* --- Links --- */
.match-guidelines-section-body a {
    color: var(--match-accent);
    text-decoration: none;
}

.match-guidelines-section-body a:hover {
    text-decoration: underline;
}

/* --- Footer --- */
.match-guidelines-footer-nav {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--match-border);
    text-align: center;
}

.match-guidelines-teams-link {
    display: inline-block;
    padding: 12px 20px;
    background: #eff6ff;
    border: 1px solid var(--match-accent);
    border-radius: 8px;
    color: var(--match-accent-dark);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.match-guidelines-teams-link:hover {
    background: #dbeafe;
}

/* --- Print --- */
@media print {
    .match-guidelines-page {
        background: #fff;
        padding: 0;
    }

    .match-guidelines-nav {
        display: none;
    }

    .match-guidelines-document {
        box-shadow: none;
        border: none;
        border-radius: 0;
        max-width: none;
        padding: 0;
    }
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .match-guidelines-document {
        padding: 28px 20px 36px;
    }

    .match-guidelines-title {
        font-size: 1.25rem;
    }
}
