/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: url('../img/alphabet-wall-long.jpg');
    background-repeat: repeat;
    background-position: center top;
    background-size: auto;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* 画面管理 */
.screen {
    display: none;
    min-height: 100vh;
    padding: 20px 0;
}

.screen.active {
    display: block;
}

/* ロゴスタイル */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* テスト開始画面 */
.test-header {
    text-align: center;
    margin-bottom: 40px;
    color: #2d3748;
}

.test-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
}

.test-info {
    margin-bottom: 40px;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #4a5568;
    text-align: center;
}

.test-details {
    list-style: none;
}

.test-details li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #2d3748;
}

.test-details i {
    color: #3db134;
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
}

.start-button-container {
    text-align: center;
}

.start-button {
    background: #3db134;
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(61, 177, 52, 0.3);
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    overflow: hidden;
}

.start-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.start-button:hover::before {
    left: 100%;
}

.start-button:hover {
    background: #2ea127;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(61, 177, 52, 0.4);
    animation: pulse 1.5s infinite;
}

.start-button:active {
    transform: translateY(0) scale(1.02);
}

.start-button i {
    transition: transform 0.3s ease;
}

.start-button:hover i {
    transform: translateX(5px);
}

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(61, 177, 52, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(61, 177, 52, 0.6), 0 0 0 10px rgba(61, 177, 52, 0.1); }
    100% { box-shadow: 0 8px 25px rgba(61, 177, 52, 0.4); }
}

/* 質問画面 */
.question-header {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3db134, #2ea127);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 10%;
}

.question-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-number {
    font-weight: 600;
    color: #4a5568;
    font-size: 1.1rem;
}

.timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #e53e3e;
    font-size: 1.1rem;
}

.timer.warning {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.question-content {
    text-align: center;
}

.question-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.question-card h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2d3748;
    line-height: 1.4;
    text-align: left;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option-button {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Noto Sans JP', sans-serif;
}

.option-button:hover {
    border-color: #3db134;
    background: #f0fff4;
}

.option-button.selected {
    background: #3db134;
    color: white;
    border-color: #3db134;
}

.skip-button {
    background: transparent;
    border: 2px solid #a0aec0;
    color: #718096;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.skip-button:hover {
    border-color: #718096;
    color: #4a5568;
}

.navigation-buttons {
    text-align: center;
}

.next-button {
    background: #3db134;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    overflow: hidden;
}

.next-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.4s;
}

.next-button:not(:disabled):hover::before {
    left: 100%;
}

.next-button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.next-button:not(:disabled):hover {
    background: #2ea127;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 15px rgba(61, 177, 52, 0.3);
}

.next-button:not(:disabled):active {
    transform: translateY(0) scale(1.01);
}

.next-button i {
    transition: transform 0.3s ease;
}

.next-button:not(:disabled):hover i {
    transform: translateX(3px);
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateX(3px); }
    40% { transform: translateX(7px); }
    80% { transform: translateX(5px); }
}

/* 結果画面 */
.result-header {
    text-align: center;
    color: #2d3748;
    margin-bottom: 30px;
}

.result-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.level-display {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.level-display h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #3db134;
    margin-bottom: 15px;
    line-height: 1.3;
}

.score-info {
    font-size: 1.3rem;
    color: #4a5568;
    font-weight: 600;
}

.reference-scores {
    margin-bottom: 40px;
}

.reference-scores h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.score-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.score-item i {
    font-size: 1.8rem;
    color: #3db134;
    margin-bottom: 10px;
    display: block;
}

.score-item span {
    display: block;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 5px;
}

.score-item strong {
    font-size: 1.3rem;
    color: #2d3748;
    font-weight: 700;
}

/* 答え合わせ・解説セクション */
.answer-review-section {
    margin: 40px 0 50px 0;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.answer-review-section h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
    justify-content: center;
}

.answer-review-section h3 i {
    color: #3db134;
    font-size: 1.4rem;
}

.questions-review {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.question-review-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.question-review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--card-gradient-start), var(--card-gradient-end));
}

.question-review-card.correct {
    --card-gradient-start: #48bb78;
    --card-gradient-end: #3db134;
    border-color: #9ae6b4;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    box-shadow: 0 8px 25px rgba(61, 177, 52, 0.15);
}

.question-review-card.incorrect {
    --card-gradient-start: #f56565;
    --card-gradient-end: #e53e3e;
    border-color: #feb2b2;
    background: linear-gradient(135deg, #fef5e7 0%, #ffffff 100%);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.15);
}

.question-review-card.skipped {
    --card-gradient-start: #cbd5e0;
    --card-gradient-end: #a0aec0;
    border-color: #cbd5e0;
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
    box-shadow: 0 8px 25px rgba(160, 174, 192, 0.15);
}

.question-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.question-number-badge {
    background: #e2e8f0;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #cbd5e0;
}

.result-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
}

.result-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--icon-gradient-start), var(--icon-gradient-end));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

.result-icon.correct {
    --icon-gradient-start: #48bb78;
    --icon-gradient-end: #3db134;
    color: #3db134;
}

.result-icon.incorrect {
    --icon-gradient-start: #f56565;
    --icon-gradient-end: #e53e3e;
    color: #e53e3e;
}

.result-icon.skipped {
    --icon-gradient-start: #cbd5e0;
    --icon-gradient-end: #a0aec0;
    color: #a0aec0;
}

.question-text {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 500;
}

.answer-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.answer-item {
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
}

.user-answer {
    border-color: #4299e1;
    background: #ebf8ff;
}

.user-answer.correct {
    border-color: #3db134;
    background: linear-gradient(135deg, #f0fff4, #e6fffa);
    box-shadow: 0 4px 15px rgba(61, 177, 52, 0.2);
}

.user-answer.incorrect {
    border-color: #e53e3e;
    background: linear-gradient(135deg, #fed7d7, #fbb6ce);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.2);
}

.user-answer.skipped {
    border-color: #a0aec0;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
}

.correct-answer {
    border-color: #3db134;
    background: linear-gradient(135deg, #f0fff4, #e6fffa);
    box-shadow: 0 4px 15px rgba(61, 177, 52, 0.15);
}

.answer-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.answer-label.user { color: #4299e1; }
.answer-label.user.correct { color: #3db134; }
.answer-label.user.incorrect { color: #e53e3e; }
.answer-label.user.skipped { color: #a0aec0; }
.answer-label.correct { color: #3db134; }

.answer-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.explanation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.explanation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f6ad55, #ed8936);
    border-radius: 15px 15px 0 0;
}

.explanation h4 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.explanation h4 i {
    color: #f6ad55;
    font-size: 1.2rem;
}

.explanation p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .answer-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .question-review-card { padding: 20px; }
    .question-text { font-size: 1.1rem; }
    .result-icon { font-size: 2rem; width: 45px; height: 45px; }
}

/* recommendations セクションは現在未使用
.recommendations {
    margin-bottom: 30px;
}

.recommendations h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
    justify-content: center;
}

.recommendations h3 i {
    color: #f6ad55;
    font-size: 1.3rem;
}
*/

.article-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3db134, #48bb78, #38a169);
}

.article-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 177, 52, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .article-image-overlay {
    opacity: 1;
}

.article-image-icon {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
    z-index: 2;
}

.article-card:hover .article-image::after {
    left: 100%;
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    background: #3db134;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-description {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #718096;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-read-more {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #3db134;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-card:hover .article-read-more {
    transform: translateX(3px);
}

.restart-section {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.restart-button {
    background: transparent;
    border: 2px solid #3db134;
    color: #3db134;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.restart-button:hover {
    background: #3db134;
    color: white;
    transform: translateY(-1px);
}

.back-home-button {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.back-home-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* カテゴリ別のトップページに戻るボタン */
.vocabulary-page .back-home-button {
    border-color: #e53e3e;
    color: #e53e3e;
}

.vocabulary-page .back-home-button:hover {
    background: #e53e3e;
    color: white;
}

.grammar-page .back-home-button {
    border-color: #3182ce;
    color: #3182ce;
}

.grammar-page .back-home-button:hover {
    background: #3182ce;
    color: white;
}

.reading-page .back-home-button {
    border-color: #38a169;
    color: #38a169;
}

.reading-page .back-home-button:hover {
    background: #38a169;
    color: white;
}

/* カテゴリテーマスタイル */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.vocabulary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.category-badge.grammar {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.category-badge.reading {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.start-button.vocabulary-theme {
    background: #e53e3e;
}

.start-button.grammar-theme {
    background: #3182ce;
}

.start-button.reading-theme {
    background: #38a169;
}

.progress-fill.vocabulary-theme {
    background: #e53e3e;
}

.progress-fill.grammar-theme {
    background: #3182ce;
}

.progress-fill.reading-theme {
    background: #38a169;
}

.next-button.vocabulary-theme {
    background: #e53e3e;
}

.next-button.grammar-theme {
    background: #3182ce;
}

.next-button.reading-theme {
    background: #38a169;
}

.restart-button.vocabulary-theme {
    border-color: #e53e3e;
    color: #e53e3e;
}

.restart-button.vocabulary-theme:hover {
    background: #e53e3e;
    color: white;
}

.restart-button.grammar-theme {
    border-color: #3182ce;
    color: #3182ce;
}

.restart-button.grammar-theme:hover {
    background: #3182ce;
    color: white;
}

.restart-button.reading-theme {
    border-color: #38a169;
    color: #38a169;
}

.restart-button.reading-theme:hover {
    background: #38a169;
    color: white;
}

/* ナビゲーションリンク */
.nav-links {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #4a5568;
    text-decoration: none;
}

.other-tests {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.vocabulary-link {
    color: #e53e3e;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.vocabulary-link:hover {
    background: #e53e3e;
    color: white;
    text-decoration: none;
}

.grammar-link {
    color: #3182ce;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.grammar-link:hover {
    background: #3182ce;
    color: white;
    text-decoration: none;
}

.reading-link {
    color: #38a169;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.reading-link:hover {
    background: #38a169;
    color: white;
    text-decoration: none;
}

.other-test-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.other-test-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.other-test-btn:hover {
    background: #4a5568;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* カテゴリ別の他のテストボタン */
.vocabulary-page .other-test-btn:hover {
    background: #e53e3e;
    color: white;
}

.grammar-page .other-test-btn:hover {
    background: #3182ce;
    color: white;
}

.reading-page .other-test-btn:hover {
    background: #38a169;
    color: white;
}

/* 読解用の英文表示エリア */
.reading-card {
    max-height: none;
}

.reading-passage {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    font-family: 'Georgia', serif;
    line-height: 1.8;
    color: #2d3748;
    font-size: 1rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .logo {
        max-width: 250px;
    }

    .test-header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .info-card {
        padding: 20px;
    }

    .question-card {
        padding: 25px;
    }

    .question-card h2 {
        font-size: 1.4rem;
    }

    .score-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .level-display h2 {
        font-size: 1.8rem;
    }

    .result-card {
        padding: 25px;
    }

    .article-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .article-content {
        padding: 15px;
    }

    .article-title {
        font-size: 1.1rem;
    }

    .article-image {
        height: 140px;
    }

    .article-image-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 200px;
    }

    .start-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .question-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .test-details li {
        font-size: 1rem;
    }
}