:root {
    --primary: #000000;
    --secondary: #1a1a1a;
    --border: #e5e5e5;
    --hover: #f5f5f5;
    --japan-red: #BC002D;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

.font-geist-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace; }

.japan-flag { width: 100%; height: 100%; }

/* Prose-ish content blocks */
.content p { margin-bottom: 1rem; color: #4b5563; }
.content h2 { font-size: 1.875rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; }
.content h3 { font-size: 1.375rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; }
.content h4 { font-size: 1.125rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.content ul { margin-bottom: 1rem; padding-left: 1.25rem; color: #4b5563; }
.content ul li { list-style: disc; margin-bottom: 0.375rem; }
.content ol { margin-bottom: 1rem; padding-left: 1.25rem; color: #4b5563; }
.content ol li { list-style: decimal; margin-bottom: 0.375rem; }
.content a { color: #000; text-decoration: underline; text-underline-offset: 2px; }
.content a:hover { color: #BC002D; }
.content blockquote { border-left: 3px solid #e5e5e5; padding-left: 1rem; color: #6b7280; font-style: italic; margin: 1rem 0; }
.content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.content th, .content td { border: 1px solid #e5e5e5; padding: 0.625rem 0.75rem; text-align: left; }
.content th { background: #f9fafb; font-weight: 600; }

/* Cards */
.card-hover { transition: all 0.2s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -10px rgba(0,0,0,0.1); }

/* FAQ */
.faq-item { border-bottom: 1px solid #e5e5e5; }
.faq-q { cursor: pointer; padding: 1.125rem 0; display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.faq-q i { transition: transform 0.2s ease; flex-shrink: 0; }
.faq-q.active i { transform: rotate(180deg); }
.faq-a { display: none; padding-bottom: 1.125rem; color: #4b5563; }
.faq-q.active + .faq-a { display: block; }

/* Button */
button { transition: all 0.2s ease; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #d1d1d1; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #b3b3b3; }

/* Mobile nav */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-nav-btn { display: block; }
}
@media (min-width: 769px) {
    .mobile-nav-btn { display: none; }
}

/* Quiz */
.quiz-option { cursor: pointer; border: 1px solid #e5e5e5; border-radius: 0.5rem; padding: 1rem 1.25rem; transition: all 0.15s ease; }
.quiz-option:hover { border-color: #000; background: #fafafa; }
.quiz-option.selected { border-color: #000; background: #000; color: #fff; }

/* Breadcrumb */
.breadcrumb { font-size: 0.875rem; color: #6b7280; margin-bottom: 1rem; }
.breadcrumb a { color: #6b7280; text-decoration: none; }
.breadcrumb a:hover { color: #000; }
.breadcrumb span { margin: 0 0.5rem; }
