
    :root {
      --ink: #f5f7fb;
      --muted: #aab5c8;
      --navy: #0b1220;
      --navy-2: #111b2e;
      --panel: rgba(20, 31, 51, .82);
      --line: rgba(203, 216, 238, .16);
      --gold: #f4b942;
      --gold-2: #ffd878;
      --teal: #48c6b5;
      --danger: #ff7f7c;
      --shadow: 0 22px 55px rgba(0, 0, 0, .28);
    }
    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    html { min-width: 320px; background: var(--navy); }
    body {
      margin: 0;
      min-height: 100vh;
      color: var(--ink);
      background:
        radial-gradient(circle at 8% 8%, rgba(72, 198, 181, .11), transparent 30rem),
        radial-gradient(circle at 92% 4%, rgba(244, 185, 66, .13), transparent 26rem),
        linear-gradient(150deg, #0b1220 0%, #0e1728 54%, #101e2b 100%);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.5;
    }
    button { font: inherit; }
    .site-shell { width: min(100% - 32px, 980px); margin: 0 auto; padding: 26px 0 54px; }
    .topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 32px; }
    .brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
    .brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(244, 185, 66, .45); border-radius: 12px; color: var(--gold); background: rgba(244,185,66,.09); font-size: 21px; }
    .brand-copy { line-height: 1.08; }
    .brand-copy strong { display: block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
    .brand-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
    .header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 17px; }
    .language-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(7, 13, 23, .45); }
    .lang-tab { min-height: 32px; padding: 5px 10px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: .78rem; font-weight: 750; }
    .lang-tab:hover, .lang-tab:focus-visible { color: var(--ink); outline: none; }
    .lang-tab.active { color: var(--navy); background: var(--gold); }
    .jgh-link { color: var(--muted); font-size: .82rem; text-decoration: none; }
    .jgh-link:hover, .jgh-link:focus-visible { color: var(--gold-2); }
    main { position: relative; }
    .screen { display: none; animation: reveal .28s ease-out; }
    .screen.active { display: block; }
    @keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
    .intro { max-width: 720px; margin: 0 auto 28px; text-align: center; }
    .eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .77rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
    h1, h2, p { margin-top: 0; }
    h1 { margin-bottom: 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.45rem, 7vw, 4.8rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
    .intro p { max-width: 540px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
    .menu-panel, .quiz-panel, .result-panel { border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(150deg, rgba(24, 38, 62, .9), rgba(14, 24, 41, .92)); box-shadow: var(--shadow); }
    .menu-panel { padding: clamp(20px, 5vw, 34px); }
    .panel-label { margin: 0 0 14px; color: var(--muted); font-size: .84rem; font-weight: 700; letter-spacing: .13em; text-align: center; text-transform: uppercase; }
    .difficulty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .difficulty-card { position: relative; min-height: 172px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: rgba(12, 21, 36, .72); cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
    .difficulty-card:hover, .difficulty-card:focus-visible { border-color: rgba(244,185,66,.7); background: rgba(35, 50, 74, .92); transform: translateY(-3px); outline: none; }
    .difficulty-card:focus-visible { box-shadow: 0 0 0 3px rgba(244,185,66,.22); }
    .level-number { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 26px; border-radius: 50%; color: var(--navy); background: var(--gold); font-weight: 800; }
    .difficulty-card:nth-child(2) .level-number { background: var(--teal); }
    .difficulty-card:nth-child(3) .level-number { color: var(--ink); background: #9a7be8; }
    .difficulty-card strong { display: block; font-size: 1.17rem; }
    .difficulty-card span:last-child { display: block; margin-top: 4px; color: var(--muted); font-size: .84rem; }
    .quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
    .quiz-kicker { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
    .quiz-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
    .score-pill, .level-pill { padding: 7px 12px; border-radius: 99px; font-size: .78rem; font-weight: 750; white-space: nowrap; }
    .score-pill { border: 1px solid rgba(72,198,181,.35); color: #8ce4d7; background: rgba(72,198,181,.09); }
    .level-pill { padding: 7px 12px; border: 1px solid rgba(244,185,66,.35); border-radius: 99px; color: var(--gold-2); background: rgba(244,185,66,.1); font-size: .78rem; font-weight: 750; }
    .quiz-panel { padding: clamp(18px, 4vw, 30px); }
    .question-title { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 4vw, 2.4rem); font-weight: 500; }
    .clues { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: clue; }
    .clue { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 15, 27, .42); color: #e9edf5; }
    .clue::before { counter-increment: clue; content: counter(clue); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--navy); background: var(--gold); font-size: .78rem; font-weight: 850; }
    .ad-slot { display: grid; place-items: center; min-height: 92px; margin: 22px 0; border: 1px dashed rgba(170,181,200,.32); border-radius: 14px; color: #7f8da5; background: rgba(7, 13, 23, .26); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
    .answers-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
    .answers-heading h3 { margin: 0; font-size: 1.02rem; }
    .answers-heading span { color: var(--muted); font-size: .8rem; }
    .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .choice { min-height: 53px; padding: 11px 13px; border: 1px solid rgba(203,216,238,.2); border-radius: 12px; color: var(--ink); background: rgba(17, 29, 48, .92); cursor: pointer; font-weight: 650; text-align: left; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
    .choice:hover, .choice:focus-visible { border-color: rgba(72,198,181,.7); background: rgba(40, 65, 80, .94); transform: translateY(-2px); outline: none; }
    .choice:focus-visible { box-shadow: 0 0 0 3px rgba(72,198,181,.17); }
    .choice.correct { border-color: rgba(72,198,181,.9); background: rgba(38, 104, 95, .45); }
    .choice.wrong { border-color: rgba(255,127,124,.85); background: rgba(128, 49, 56, .42); }
    .choice:disabled { cursor: default; opacity: .74; transform: none; }
    .choice.correct:disabled { opacity: 1; }
    .result-panel { margin-top: 18px; padding: 20px; }
    .result-status { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; font-size: .86rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .result-status.good { color: var(--teal); }
    .result-status.bad { color: var(--danger); }
    .result-title { margin: 0 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 500; }
    .result-copy { margin-bottom: 0; color: var(--muted); }
    .result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
    .primary-btn, .secondary-btn { min-height: 46px; padding: 10px 16px; border-radius: 11px; cursor: pointer; font-weight: 750; }
    .primary-btn { border: 1px solid var(--gold); color: var(--navy); background: var(--gold); }
    .primary-btn:hover, .primary-btn:focus-visible { background: var(--gold-2); outline: none; }
    .secondary-btn { border: 1px solid var(--line); color: var(--ink); background: transparent; }
    .secondary-btn:hover, .secondary-btn:focus-visible { border-color: rgba(203,216,238,.55); background: rgba(203,216,238,.08); outline: none; }
    footer { margin-top: 32px; color: #718096; font-size: .78rem; text-align: center; }
    footer a { color: #a6b2c4; }
    @media (max-width: 680px) {
      .site-shell { width: min(100% - 22px, 620px); padding-top: 16px; }
      .topbar { margin-bottom: 25px; }
      .jgh-link { display: none; }
      .header-actions { gap: 0; }
      h1 { font-size: clamp(2.45rem, 14vw, 4rem); }
      .difficulty-grid { grid-template-columns: 1fr; }
      .difficulty-card { min-height: 0; padding: 16px; }
      .level-number { display: inline-grid; margin: 0 10px 0 0; vertical-align: middle; }
      .difficulty-card strong, .difficulty-card span:last-child { display: inline; }
      .difficulty-card span:last-child { margin-left: 4px; }
      .quiz-head { align-items: flex-start; }
      .quiz-meta { align-items: flex-end; flex-direction: column; gap: 6px; }
      .choices { gap: 8px; }
      .choice { min-height: 58px; padding: 10px; font-size: .9rem; }
    }
    @media (max-width: 390px) {
      .site-shell { width: min(100% - 16px, 620px); }
      .clue { font-size: .93rem; }
    }
    /* The original navy/gold identity, with a clearer reading/answering layout. */
    .site-shell { width: min(100% - 32px, 1180px); }
    .intro { margin-top: 42px; margin-bottom: 32px; }
    h1:lang(ja) { font-family: inherit; font-size: clamp(2.35rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
    button, a, summary { -webkit-tap-highlight-color: transparent; }
    a { color: #9ce9dd; text-underline-offset: 3px; }
    :focus-visible { outline: 3px solid var(--gold-2) !important; outline-offset: 4px; }
    [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
    .lang-tab { min-height: 44px; min-width: 76px; font-size: .88rem; }
    .brand-copy span { letter-spacing: 0; }
    .difficulty-card:disabled { opacity: .55; cursor: wait; }
    .menu-panel { max-width: 980px; margin-inline: auto; }
    .data-status { color: var(--muted); font-size: .86rem; }
    .data-status { text-align: center; margin: 22px 0; }
    summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: var(--ink); font-weight: 650; }
    details p { margin: 8px 0 12px; line-height: 1.8; }
    .game-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 30px; align-items: start; }
    .answer-column { position: sticky; top: 18px; min-width: 0; }
    .clue-column { min-width: 0; }
    .section-label { margin: 0 0 12px; font-size: .9rem; color: var(--muted); font-weight: 600; }
    .clue { padding: 12px; gap: 10px; grid-template-columns: 26px minmax(0,1fr); font-size: .96rem; overflow-wrap: anywhere; line-height: 1.6; }
    .clue-label { display: block; font-size: .68rem; letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; }
    .clue::before { margin-top: 3px; background: rgba(244,185,66,.13); color: var(--gold-2); }
    .choices { gap: 9px; }
    .choice { display: flex; flex-direction: column; justify-content: center; min-height: 65px; font-size: .95rem; line-height: 1.35; overflow-wrap: anywhere; }
    .choice small { display: block; font-size: .7rem; margin-top: 5px; color: #fff; }
    .choice-name { min-width: 0; }
    .choice:disabled { opacity: .8; }
    .choice.correct:disabled, .choice.wrong:disabled { opacity: 1; }
    .answers-heading { min-height: 25px; flex-wrap: wrap; gap: 4px 10px; }
    .answers-heading h3 { font-size: .95rem; }
    .answers-heading span { font-size: .72rem; }
    .answer-note { color: var(--muted); font-size: .77rem; margin: 12px 0 0; }
    .result-panel { padding: 18px; border-radius: 16px; margin-top: 20px; box-shadow: none; background: #0c1827; }
    .result-title { font-size: clamp(1.45rem,3vw,2rem); overflow-wrap: anywhere; line-height: 1.2; }
    .result-title:lang(ja) { font-family: inherit; font-weight: 750; }
    .result-copy { font-size: .9rem; }
    #sources { font-size: .85rem; margin: 12px 0; }
    #sourceList, .review-card ol { padding-left: 20px; color: var(--muted); }
    #sourceList li, .review-card ol li { padding-bottom: 10px; }
    #sourceList { list-style: none; padding-left: 0; }
    .review-date { font-size: .75rem; }
    #nextQuestion { width: 100%; }
    .progress { display: grid; grid-template-columns: repeat(5,1fr); list-style: none; padding: 0; margin: 0 0 20px; gap: 8px; }
    .progress li { padding: 5px 12px; border-radius: 5px; border-bottom: 3px solid var(--line); color: var(--muted); font-size: .8rem; text-align: center; }
    .progress li.current { border-color: var(--gold); color: var(--gold); background: rgba(244,185,66,.08); }
    .progress li.good { border-color: var(--teal); color: var(--teal); }
    .progress li.bad { border-color: var(--danger); color: var(--danger); }
    .exit-session { display: block; margin: 20px auto; font-size: .82rem; }
    .jump-choices { display: none; }
    .ad-slot { min-height: 100px; margin: 42px 0 24px; color: #aab5c8; font-size: .72rem; }
    footer { color: var(--muted); }
    footer p { margin-bottom: 8px; }
    .summary-title { font-size: clamp(2rem, 8vw, 4rem); color: var(--gold-2); margin: 0 0 15px; }
    .review-list { list-style: none; padding: 0; display: grid; gap: 14px; max-width: 850px; margin: 0 auto; }
    .review-card { border: 1px solid var(--line); background: var(--panel); padding: 20px; border-radius: 16px; }
    .review-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
    .review-header strong { font-size: 1.15rem; }
    .review-card summary { font-size: .82rem; }
    .good { color: var(--teal); } .bad { color: var(--danger); }
    .muted { color: var(--muted); font-size: .85rem; margin: 10px 0 0; }
    .summary-actions { justify-content: center; margin-top: 26px; }
    dialog { border: 1px solid var(--line); border-radius: 20px; padding: 28px; width: min(480px,calc(100% - 32px)); background: var(--navy-2); color: var(--ink); }
    dialog::backdrop { background: rgba(0,0,0,.7); }
    dialog h2 { font-size: 1.3rem; }
    dialog p { color: var(--muted); }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    .skip-link { position: absolute; top: -80px; left: 12px; z-index: 10; background: var(--gold); color: var(--navy); padding: 12px; }
    .skip-link:focus { top: 8px; }
    @media(max-width:850px) {
      .game-grid { grid-template-columns: 1fr; gap: 26px; }
      .answer-column { position: static; }
      .jump-choices { display: inline-flex; min-height: 44px; align-items: center; font-size: .85rem; margin-top: 4px; }
    }
    @media(max-width:680px) {
      .site-shell { width: calc(100% - 24px); }
      .topbar { gap: 8px; margin-bottom: 20px; }
      .brand { gap: 8px; }
      .brand-mark { width: 32px; height: 36px; }
      .brand-copy strong { font-size: .72rem; }
      .brand-copy span { display: none; }
      .lang-tab { min-width: 67px; padding-inline: 8px; }
      .intro { margin-top: 30px; }
      .intro p { font-size: .96rem; }
      .difficulty-card strong { display: inline; }
      .difficulty-card span:last-child { display: block; margin: 8px 0 0 44px; }
      .quiz-panel { padding: 16px 12px; border-radius: 18px; }
      .question-title { font-family: inherit; font-size: 1.32rem; line-height: 1.4; font-weight: 750; }
      .choice { min-height: 62px; font-size: .9rem; padding: 10px; }
      .clue { padding: 10px; }
      .review-card { padding: 16px; }
    }
    @media(prefers-reduced-motion:reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    }
    .footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 16px; font-size: .875rem; }
    .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
    .info-shell { max-width: 900px; }
    .info-nav { display: flex; gap: 4px 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 30px; font-size: .9375rem; }
    .info-nav a { min-height: 44px; display: inline-flex; align-items: center; }
    .info-nav a[aria-current="page"] { color: var(--gold-2); text-decoration-thickness: 2px; }
    .info-heading { margin: 0 0 28px; }
    .info-heading h1, .info-heading h1:lang(ja) { font-family: inherit; font-size: clamp(1.85rem, 5vw, 2.75rem); font-weight: 750; line-height: 1.3; letter-spacing: -.03em; }
    .info-heading p { color: var(--muted); font-size: .875rem; margin-bottom: 0; }
    .info-article { padding: clamp(20px, 4vw, 38px); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); overflow-wrap: anywhere; font-size: 1rem; line-height: 1.85; }
    .info-article section + section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
    .info-article h2 { margin-bottom: 12px; font-size: 1.2rem; line-height: 1.5; color: var(--gold-2); }
    .info-article p:last-child, .info-article ul:last-child, .info-article ol:last-child { margin-bottom: 0; }
    .info-article ul, .info-article ol { padding-left: 1.5em; }
    .info-article li + li { margin-top: 8px; }
    .info-note { padding: 16px 18px; border-left: 3px solid var(--teal); background: rgba(72,198,181,.07); border-radius: 0 10px 10px 0; }
    .info-article dl { margin: 0; }
    .info-article dt { color: var(--muted); font-size: .875rem; margin-top: 16px; }
    .info-article dt:first-child { margin-top: 0; }
    .info-article dd { margin-left: 0; }
    .info-shell .lang-tab { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
    .info-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; min-height: 44px; font-size: 1rem; }
    .contact-link { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; line-height: 1.5; }
