/* ============================================
   医療AIナビ - E資格 Page Styles (style.css)
   Theme: Medical × Clean (White + Purple)
   ============================================ */

:root {
    /* Theme Colors (Purple Base) */
    --main-900: #3b0764;
    --main-800: #4c1d95;
    --main-700: #5b21b6;
    --main-600: #7c3aed;
    --main-500: #8b5cf6;
    --main-400: #a78bfa;
    --main-300: #c4b5fd;
    --main-200: #ddd6fe;
    --main-100: #ede9fe;
    --main-50:  #f5f3ff;

    /* Grays */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50:  #f9fafb;

    /* Accent for G-exam switch */
    --green-600: #059669;
    --green-300: #6ee7b7;
    --green-50: #ecfdf5;

    /* Typography */
    --font-body: 'Noto Sans JP', 'Inter', -apple-system, sans-serif;
    --font-display: 'Inter', 'Noto Sans JP', sans-serif;

    /* Shadows & Radius */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: #f9fafb;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--gray-200); margin: 40px 0; }

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    background-color: white;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    height: 64px;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--main-700);
}
.logo-area img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.logo-area h1 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
}
.no-underline {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
#mainNav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}
#mainNav li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
#mainNav li a:hover,
#mainNav li a.active {
    color: var(--main-700);
    background: var(--main-50);
}
#mainNav li.exam-switch a {
    color: var(--main-600);
    border: 1px solid var(--main-300);
    background: #fff;
    padding: 6px 12px;
}
#mainNav li.exam-switch a:hover {
    background: var(--main-50);
}

/* Hamburger & Overlay */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* ===== HERO ===== */
.hero {
    margin-top: 64px;
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--main-50) 0%, #fff 100%);
    border-bottom: 1px solid var(--gray-200);
}
.hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--main-600);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    margin: 24px 0;
    padding: 0;
}
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-500);
}
.breadcrumb li {
    display: flex;
    align-items: center;
}
.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: var(--gray-400);
}
.breadcrumb a {
    color: var(--main-600);
    transition: color 0.2s;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb .active span,
.breadcrumb .disabled {
    color: var(--gray-700);
    font-weight: 500;
    pointer-events: none;
}

/* ===== LAYOUT & CARDS ===== */
.content-wrapper {
    padding: 24px 0 80px;
}
.content {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}
.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}
.roadmap-step.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--main-100);
    display: flex;
    align-items: center;
}
.section-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 24px 0 12px;
}
.sub-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 20px 0 12px;
}

/* Step Typography */
.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.step-number {
    display: inline-block;
    background: var(--main-100);
    color: var(--main-700);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Text & Images */
.roadmap-step p, .content p {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-bottom: 16px;
    line-height: 1.8;
}
.roadmap-step ul, .content ul {
    margin: 16px 0 24px;
    padding-left: 24px;
}
.roadmap-step li, .content li {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-bottom: 12px;
    position: relative;
    list-style: none;
}
.roadmap-step li::before, .content li::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--main-400);
}
.flex-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    justify-content: space-between;
    gap: 24px;
}
.text-content {
    flex: 1;
}
.image-container {
    margin: 24px 0;
    text-align: center;
}
.image-container img,
.feature-image, .graph_image {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}
.e-cert-image {
    margin-bottom: 20px;
}
.profile-img {
    max-width: 60%;
    margin: 0 auto;
}

/* ===== HIGHLIGHT ===== */
.highlight {
    background: linear-gradient(transparent 60%, var(--main-100) 60%);
    font-weight: 600;
    color: var(--gray-900);
    padding: 0 2px;
}

/* ===== BOOKS & AFFILIATE ===== */
.recommended-books {
    display: grid;
    gap: 24px;
    margin: 24px 0;
    padding: 0 !important;
}
.recommended-books > li {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    list-style: none;
}
.recommended-books > li::before { display: none; }
.recommended-books h4 {
    font-size: 1.05rem;
    color: var(--main-700);
    margin-bottom: 12px;
}
.affiliate-link {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px !important;
    display: block;
    background: var(--main-50);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}
.review {
    background: #fff;
    padding: 16px;
    border-left: 4px solid var(--main-300);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.85rem !important;
    color: var(--gray-600) !important;
    font-style: italic;
    margin-top: 16px;
}

/* ===== TABLE ===== */
.table-container {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}
.e-cert-summary {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.e-cert-summary th, .e-cert-summary td {
    border: 1px solid var(--gray-200);
    padding: 12px 16px;
    text-align: left;
}
.e-cert-summary th {
    background: var(--main-50);
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
}
.e-cert-summary tr:nth-child(even) { background: var(--gray-50); }
.e-cert-summary tr:hover { background: var(--main-50); }

/* ===== ADVICE BOX ===== */
.advice-box {
    background: #fffbeb;
    border-left: 4px solid #fbbf24;
    padding: 20px;
    margin: 24px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.advice-box p { margin: 0; }

/* ===== HIGHLIGHT POINTS ===== */
.highlight-points {
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--gray-300);
    margin: 24px 0;
}
.highlight-points ul { list-style-type: none; padding: 0; }
.highlight-points li { margin-bottom: 20px; }
.highlight-points li::before { display: none; }
.highlight-points li strong {
    display: block;
    font-size: 1.05rem;
    color: var(--main-700);
    margin-bottom: 4px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--main-600);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: var(--main-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124,58,237,0.2);
}
.purchase-button {
    text-align: center;
    margin: 32px 0;
}
.cta-area {
    text-align: center;
    margin: 40px 0;
}

.btn-subtext {
    color: rgba(255,255,255,0.85);
}

/* ===== ORIGINAL MOCK EXAM CARD ===== */
.original-mock-exam-card {
    background: linear-gradient(135deg, #fff 0%, var(--main-50) 100%);
    border: 2px solid var(--main-300);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 40px 0;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.original-mock-exam-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--main-500), var(--main-300));
}
.card-header { text-align: center; margin-bottom: 24px; }
.card-inner { padding: 0; }
.official-label {
    display: inline-block;
    background: var(--main-600);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.exam-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.4;
}
.exam-title .sub-title {
    display: block;
    font-size: 1rem;
    color: var(--main-600);
    margin-top: 4px;
}
.exam-description { text-align: center; font-size: 0.95rem; color: var(--gray-600); margin-bottom: 24px; }
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 0;
}
.feature-list li {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}
.feature-list li::before { display: none; }
.feature-list .icon { color: var(--main-500); font-weight: bold; }
.price-box { text-align: center; margin-bottom: 24px; }
.sale-period { font-size: 0.8rem; color: #ef4444; font-weight: 600; margin-bottom: 4px; }
.price-display { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.price-display .old-price { text-decoration: line-through; color: var(--gray-400); }
.price-display .new-price { font-size: 2rem; font-weight: 800; color: var(--gray-900); }
.price-display .yen { font-size: 1rem; }
.action-area { text-align: center;}
.primary-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--main-600);
    color: #ffffff; /* ← 完全に白に固定 */
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(124,58,237,0.2);
}
.primary-btn:hover {
    background: var(--main-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124,58,237,0.3);
}
.btn-subtext {
    color: rgba(255,255,255);
}


/* ===== EQUATION (MathJax) ===== */
.equation {
    text-align: center;
    font-size: 1em;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 16px 0;
}

/* ===== QUIZ ===== */
section#quiz-container {
    max-width: 800px;
    margin: 0 auto;
}
.quiz-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    padding: 24px;
    transition: background-color 0.3s ease;
}
.quiz-item h2 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--gray-900);
}
.quiz-item p { margin-bottom: 10px; }
.choices { margin-bottom: 0; }
.choices label {
    display: block;
    margin-bottom: 0;
    cursor: pointer;
}
.choices input[type="radio"] { margin-right: 8px; }
#quiz-container button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    background: var(--main-600);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
}
#quiz-container button:hover { background: var(--main-700); }
.explanation, .answer {
    margin-top: 16px;
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}
#score-container {
    margin-top: 32px;
    padding: 16px;
    background: var(--gray-100);
    text-align: center;
    font-weight: bold;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}
#feedback-container {
    margin-top: 16px;
    text-align: center;
}
#feedback-container h3 { font-size: 1.3em; margin-bottom: 10px; color: var(--gray-900); }
#feedback-container p { font-size: 1rem; margin-bottom: 20px; color: var(--gray-600); }
#feedback-container button {
    padding: 10px 20px;
    font-size: 1em;
    color: white;
    background: var(--main-600);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
#feedback-container button:hover { background: var(--main-700); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 32px 0;
    text-align: center;
    font-size: 0.85rem;
}
.site-footer a { color: var(--gray-300); transition: color 0.2s; display: inline; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--gray-800);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 0;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 900;
}
#backToTop::after {
    content: '↑';
    font-size: 1rem;
    line-height: 44px;
    display: block;
    text-align: center;
}

/* ===== ADS ===== */
.adcenter-top, .adcenter {
    max-width: 1000px;
    margin: 24px auto;
    padding: 0 24px;
}

/* ===== MISC ===== */
.disabled { pointer-events: none; }
.base-study-image { max-width: 80%; height: auto; display: block; margin: 0 auto; }
section { scroll-margin-top: 80px; }

/* もしもアフィリエイトのリンク周り調整 */
#msmaflink-GTMuH, #msmaflink-ZPKC5, #msmaflink-vWZFP, #msmaflink-6QhSS,
#msmaflink-mDFXt, #msmaflink-Nq4Bl, #msmaflink-e4OU3, #msmaflink-pafll,
#msmaflink-o0Eyk {
    margin: 15px 0;
}

/* ===== study_contents用 目次・用語集 ===== */
.glossary-search {
    position: sticky;
    top: 80px;
    z-index: 100;
}
.glossary-toc.toc-closed #toc-content { display: none; }
#termSearchInput {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#termSearchInput:focus { border-color: var(--main-500); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.search-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 8px; }

/* quotation (study_contents) */
.quotation {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* 本文中のリンクに下線 */
.roadmap-step a,
.content a,
.content-wrapper a {
    text-decoration: underline;
}
/* ナビ・パンくず・ボタン系は除外 */
#mainNav a,
.breadcrumb a,
.btn,
.primary-btn,
.logo-area,
.site-footer a {
    text-decoration: none;
}

.toc {
    list-style-type: none; /* デフォルトのリストスタイルを無効にする */
    padding: 10px; /* パディングを追加 */
    background-color: rgba(240, 240, 240, 0.8); /* 薄い背景色を追加 */
    border-radius: 5px; /* 角を丸くする */
}

.toc li {
    margin: 10px 0; /* 各項目の上下にスペースを追加 */
}

.toc li a {
    text-decoration: none; /* 下線を消す */
    color: #333; /* テキストの色 */
}

.toc li a:hover {
    color: #007bff; /* ホバー時の色 */
}

.toc h3{
    text-align: center; /* 中央揃え */
}

.subsection-title {
    font-size: 1.3em; /* 1.8emから1.5emに縮小 */
    color: #333;
    border-left: 5px solid navy;
    padding-left: 15px;
    margin: 40px 0 20px;
    position: relative;
    overflow: hidden;
}

.section-title2 {
    font-size: 1.6em;
    color: #333;
    border-bottom: 4px solid navy;
    padding-bottom: 7px;
    margin: 30px 0 20px;
}

.step-title2 {
    font-size: 1.5em; /* サイズを調整 */
    font-weight: bold; /* 太字にする */
    margin-top: 20px; /* 上部のマージンを追加 */
    margin-bottom: 10px; /* 下部のマージンを追加 */
    color: #fff; /* テキストの色を白に設定 */
    padding: 10px; /* 内側のパディングを追加 */
    background-color: #4a4e69; /* 背景色を設定 */
    border-radius: 4px; /* 角を丸くする */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 影を追加して立体感を出す */
}

h5 {
    font-size: 1.1em; /* h5のサイズを1.5emに設定 */
    margin-top: 0.5em; /* 上のマージンを0.5emに設定 */
    margin-bottom: 0.4em; /* 下のマージンを0.5emに設定 */
}

h6 {
    font-size: 1.2em; /* h6のサイズを1.3emに設定 */
    margin: 2em 0 1em 0; /* 上のマージンを0.3emに設定 */
    text-decoration:underline;
    font-weight: bold;
}

.keyword {
    display: inline-block; /* インラインブロックで表示 */
    background-color: #f0f0f0; /* 背景色を薄いグレーに設定 */
    color: #333; /* 文字色をダークグレーに設定 */
    padding: 0.3em 0.5em; /* パディングを設定 */
    border-radius: 5px; /* 角を丸くする */
    font-weight: bold; /* 太字に設定 */
}

.equation {
    text-align: center; /* 中央寄せ */
    font-size: 1.2em; /* フォントサイズの設定 */
    margin: 30px 0; /* 上下のマージン */
    width: 100%; /* 幅を100%に設定 */
    max-width: 100%; /* 親要素を超えないようにする */
    color: #170f61e7;
    line-height: 3rem;
}

/**表の記載**/
.confusion-matrix {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
}

.confusion-matrix th, .confusion-matrix td {
    border: 1px solid black;
    padding: 8px;
}

.confusion-matrix th {
    background-color: #f2f2f2;
}

.confusion-matrix td {
    background-color: #fff;
}

.graph_image{
    display: block; /* 画像をブロック要素にする */
    margin: 1em auto; /* 左右のマージンを自動にして中央に配置 */
    max-width: 100%; /* 親要素を超えないようにする */
    height: auto; /* アスペクト比を維持 */
    border: 1px solid black;
}

.quotation {
    color: rgba(0, 0, 0, 0.5); /* 薄い文字色 */
    text-align: right; /* 右寄せ */
    margin: 0; /* マージンをリセット */
    font-size: 10px;
}

/* ===== 本文内の箇条書きスタイルを復活 ===== */
/* クラス名は実際のHTMLに合わせて調整してください */
.content-wrapper ul {
    list-style-type: disc; /* 黒丸「・」を表示 */
    padding-left: 1.5em;   /* 左側の余白を確保（左寄せの解消） */
    margin-top: 1em;       /* リスト上の余白 */
    margin-bottom: 1em;    /* リスト下の余白 */
}

.toc li{
    list-style-type: none; 
}

/* 箇条書きの各項目（li）の微調整 */
.content-wrapper li {
    margin-bottom: 0.5em;  /* 項目同士の行間を少し空ける */
    line-height: 1.6;      /* 読みやすい文字の高さ */
}

/* 番号付きリスト（ol）も使っている場合はこちらも追記 */
.content-wrapper ol {
    list-style-type: decimal; /* 「1. 2. 3.」を表示 */
    padding-left: 1.5em;
    margin-top: 1em;
    margin-bottom: 1em;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .site-header { height: 60px; }
    .hero { margin-top: 60px; padding: 48px 20px; }
    .hero-title { font-size: 1.8rem; }

    /* Navigation Mobile */
    .hamburger-btn { display: flex; }
    #mainNav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 1000;
    }
    #mainNav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    #mainNav ul {
        flex-direction: column;
        gap: 0;
    }
    #mainNav li { width: 100%; }
    #mainNav li a {
        padding: 16px 24px;
        border-radius: 0;
        border-bottom: 1px solid var(--gray-100);
    }
    #mainNav li.exam-switch a {
        border: none;
        border-bottom: 1px solid var(--gray-100);
    }

    .flex-container { flex-direction: column; }
    .card, .roadmap-step.card { padding: 24px 20px; }
    .original-mock-exam-card { padding: 24px 20px; }
    .feature-list { grid-template-columns: 1fr; }
    .primary-btn { width: 100%; padding: 14px 20px; }
    .profile-img { max-width: 100%; }
    section { margin-bottom: 16px; }
}

@media (max-width: 480px) {
    .site-header { height: 56px; }
    #mainNav { top: 56px; }
    .hero { margin-top: 56px; padding: 36px 16px; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .container { padding: 0 16px; }
    .section-title { font-size: 1.2rem; }
    .step-title { font-size: 1.15rem; flex-direction: column; align-items: flex-start; gap: 8px; }

    .equation {
        font-size: 0.85em;
        overflow-x: auto;
        overflow-y: hidden;
        border: 1px solid var(--gray-200);
        padding: 8px;
        border-radius: var(--radius-sm);
        -webkit-overflow-scrolling: touch;
    }

    #quiz-container { font-size: 0.85rem; }
    .choices {
        overflow-x: auto;
        white-space: nowrap;
        display: block;
        margin-bottom: 10px;
    }
    .quiz-item h2 { font-size: 1.1em; }

    .e-cert-summary { font-size: 0.8rem; }
    th, td { font-size: 0.8rem; padding: 6px; }

    .breadcrumb { font-size: 0.75rem; }
    .quotation { font-size: 7px; }
    .graph_image { width: 100% !important; }

    .price-display { flex-direction: column; align-items: center; gap: 4px; }
    .new-price { font-size: 1.8rem; }
    .btn { width: 100%; }
}
