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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background: #ffffff;
    padding-bottom: 60px;
}

.header {
    background: #0891b2;
    color: white;
    padding: 48px 20px 36px;
    text-align: center;
}

.header h1 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.header-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.intro {
    padding: 16px 20px;
    margin: 20px 16px;
}

.intro p {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    text-align: center;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    padding: 32px 20px 20px;
    letter-spacing: -0.01em;
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 32px;
    max-width: 100%;
}

.exam-card {
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

.exam-card:link,
.exam-card:visited {
    text-decoration: none !important;
}

.exam-card:hover {
    border-color: #0891b2;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.15);
}

.exam-card:active {
    transform: scale(0.98);
}

.exam-icon {
    font-size: 32px;
    margin-bottom: 6px;
}

.exam-name {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.faq-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
    margin-bottom: 32px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-item:active {
    transform: scale(0.99);
}

.faq-question {
    padding: 20px 20px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.2s ease;
}

.faq-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.faq-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.faq-arrow {
    font-size: 14px;
    color: #64748b;
    transition: transform 0.3s ease;
    font-weight: 600;
    margin-top: 2px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    background: #f8fafc;
}

.faq-answer.active {
    max-height: 600px;
    padding: 0 20px 24px 20px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 12px;
}

.faq-answer p:last-of-type {
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #06b6d4;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.read-more:hover {
    color: #0891b2;
    gap: 6px;
}

.popular-section {
    margin: 0 16px 32px;
}

.popular-list {
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.popular-item {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    background: #ffffff;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item:hover {
    background: #f8fafc;
}

.popular-item:active {
    background: #f1f5f9;
}

.popular-number {
    background: #0891b2;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.popular-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #334155;
}

.view-all {
    margin: 0 16px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    display: block;
    color: #0891b2;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0;
    background: #ffffff;
}

.view-all:hover {
    border-color: #0891b2;
    background: #f8fafc;
}

.view-all:active {
    transform: scale(0.98);
}

.divider {
    height: 1px;
    background: #e2e8f0;
    margin: 40px 20px;
}
