:root {
    --accent-color: #333;
}

body {
    font-family: "Hiragino Kaku Gothic Pro", "Yu Gothic", "Meiryo", sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.8;
    background-color: #f5f5f5;
    color: #333;
}

h1 {
    text-align: center;
    color: #1a1a2e;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 1.6rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #888;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent-color);
}

/* Year sections */
.year-section {
    background: white;
    margin: 20px 0;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent-color);
}

.year-title,
.year-header {
    color: var(--accent-color);
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 12px;
}

/* Question wrapper (kobe, nagoya, kyushu) */
.question {
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

/* Hide duplicate question-number (kyushu) */
.question-number {
    display: none;
}

/* Context (kyushu) */
.context {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-style: italic;
}

/* Instructions */
.instruction {
    color: #555;
    font-size: 0.95em;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Passage text */
.passage {
    color: #333;
    text-align: justify;
    margin: 0;
    padding: 0;
    background: transparent;
    border-left: none;
}

/* Underline styles */
u {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 3px;
}

.underline {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 3px;
}

/* Notes */
.note {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}

/* Summary (kyushu) */
.summary {
    text-align: center;
    margin: 0 0 25px 0;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.95em;
    color: #666;
}

.summary strong {
    color: var(--accent-color);
}

@media print {
    .year-section { break-inside: avoid; }
    .back-link { display: none; }
}
