:root {
  --background: #ffffff;
  --foreground: #1d1d1f;
  --card: #f5f5f7;
  --card-foreground: #1d1d1f;
  --primary: #0071e3;
  --primary-foreground: #ffffff;
  --secondary: #f5f5f7;
  --secondary-foreground: #1d1d1f;
  --muted: #f5f5f7;
  --muted-foreground: #6e6e73;
  --accent: #e8f2ff;
  --destructive: #ff3b30;
  --border: #d2d2d7;
  --ring: #0071e3;
  --blue: #0071e3;
  --ink: #1d1d1f;
  --paper: #ffffff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(0,113,227,.28); outline-offset: 3px; }
.site-main { min-height: 100vh; }

.site-header {
  width: 100%;
  height: 52px;
  padding: 0 max(24px, calc((100% - 980px) / 2));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: rgba(250,250,252,.82);
  backdrop-filter: saturate(180%) blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.brand-mark { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: white; }
.brand-mark svg { width: 14px; }
.brand > span:last-child { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.brand strong { font-size: 14px; letter-spacing: -.01em; }
.brand small { color: var(--muted-foreground); font-size: 11px; letter-spacing: 0; }
.favorite-nav { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border: 0; border-radius: 999px; gap: 6px; color: inherit; background: transparent; font-size: 12px; }
.favorite-nav:hover { background: rgba(0,0,0,.05); }
.favorite-nav[aria-pressed='true'] { background: var(--ink); color: white; }
.favorite-nav[aria-pressed='true'] > svg { fill: currentColor; }
.favorite-nav span { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(128,128,128,.14); font-size: 10px; }

.intro { text-align: center; padding: 74px 20px 42px; }
.intro-badge { height: auto; padding: 0; display: inline-block; color: #bf4800; background: transparent; border: 0; font-size: 13px; font-weight: 600; }
.intro h1 { max-width: 860px; margin: 11px auto 17px; font-size: clamp(44px, 7vw, 76px); line-height: 1.04; letter-spacing: -.055em; font-weight: 700; }
.intro h1 span { background: linear-gradient(92deg, #0071e3 5%, #6e3bd9 48%, #c62975 95%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.intro h1 span::after { display: none; }
.intro p { margin: 0 auto; max-width: 620px; color: #6e6e73; font-size: 18px; line-height: 1.55; font-weight: 500; }
.intro-purpose { width: min(820px, 100%); margin: 34px auto 0; padding: 30px 34px; border: 1px solid rgba(110,59,217,.12); border-radius: 26px; background: linear-gradient(135deg, #f3f8ff 0%, #f8f5ff 52%, #fff5f9 100%); text-align: left; }
.intro-purpose h2 { margin: 0 0 18px; color: var(--ink); font-size: clamp(23px, 3vw, 30px); line-height: 1.35; letter-spacing: -.035em; }
.intro-purpose p { max-width: none; margin: 0; color: #515154; font-size: 16px; font-weight: 400; line-height: 1.8; }
.intro-purpose p + p { margin-top: 13px; }
.intro-purpose p:last-child { color: var(--ink); font-weight: 650; }

.finder { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 20px; background: #f5f5f7; border: 0; border-radius: 28px; box-shadow: none; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap > svg { position: absolute; left: 18px; width: 20px; color: #6e6e73; z-index: 1; }
.search-input { width: 100%; height: 56px; padding: 0 88px 0 50px; border-radius: 17px; background: white; border: 1px solid transparent; color: var(--ink); font-size: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.search-input:focus-visible { border-color: rgba(0,113,227,.55); box-shadow: 0 0 0 4px rgba(0,113,227,.12); outline: none; }
.search-wrap kbd { position: absolute; right: 14px; padding: 4px 7px; color: #86868b; background: #f5f5f7; border: 0; border-radius: 6px; font-size: 10px; }
.clear-search { position: absolute; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #6e6e73; background: transparent; }
.clear-search:hover { background: #f2f2f2; }
.clear-search svg { width: 17px; }
.search-help { display: flex; align-items: center; gap: 5px; margin: 9px 3px 20px; color: #86868b; font-size: 11px; }
.search-help svg { width: 14px; }
.use-label { display: flex; align-items: center; gap: 10px; color: #6e6e73; font-size: 11px; font-weight: 600; }
.use-label::after { content: ''; height: 1px; flex: 1; background: #dedee3; }
.category-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.category-fieldset .use-label { width: 100%; padding: 0; }
.category-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-top: 12px; }
.category-button { min-width: 0; padding: 12px 8px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 14px; color: #424245; background: white; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.category-button:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(0,0,0,.07); }
.category-button[data-active='true'] { color: white; background: var(--ink); box-shadow: none; }
.category-button svg { width: 17px; flex: none; }
.category-button span { min-width: 0; display: flex; flex-direction: column; text-align: left; }
.category-button strong { font-size: 11px; white-space: nowrap; }
.category-button small { margin-top: 2px; font-size: 9px; opacity: .6; white-space: nowrap; }
.finder-options { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ai-filter-control { display: inline-flex; align-items: center; gap: 9px; color: #424245; font-size: 13px; font-weight: 600; cursor: pointer; }
.ai-filter-control input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.sort-control { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.sort-control > label { display: inline-flex; align-items: center; gap: 6px; color: #6e6e73; font-size: 13px; font-weight: 600; }
.sort-control > label svg { width: 16px; }
.sort-trigger { width: 280px; height: 40px; padding: 0 34px 0 14px; border: 1px solid transparent; border-radius: 12px; background: white; color: #424245; box-shadow: 0 1px 3px rgba(0,0,0,.06); font-size: 14px; }
.sort-trigger:hover { border-color: #d2d2d7; }

.results { width: min(1120px, calc(100% - 40px)); margin: 82px auto 120px; }
.results-heading { margin-bottom: 26px; display: flex; align-items: end; justify-content: space-between; }
.results-heading p { margin: 0 0 7px; color: #6e6e73; font-size: 13px; font-weight: 600; }
.results-heading h2 { margin: 0; font-size: 36px; letter-spacing: -.035em; }
.results-heading h2 span { margin-left: 5px; color: #86868b; font-size: 14px; font-weight: 500; }
.results-heading button { color: var(--blue); }
.reset-filter-button { padding: 9px 11px; border: 0; border-radius: 10px; background: transparent; font-size: 13px; font-weight: 600; }
.reset-filter-button:hover { background: #f5f5f7; }
.term-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.term-card { overflow: hidden; border: 0; border-radius: 24px; background: #f5f5f7; box-shadow: none; animation: card-in .45s both cubic-bezier(.2,.8,.2,1); animation-delay: var(--delay); transition: transform .28s ease, box-shadow .28s ease; }
.term-card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(0,0,0,.09); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.card-topline { padding: 18px 18px 0 22px; display: flex; justify-content: space-between; align-items: center; }
.level { height: 22px; padding: 0; display: inline-flex; align-items: center; gap: 5px; border-radius: 0; color: #6e6e73; background: transparent; font-size: 10px; font-weight: 600; }
.level span { font-size: 7px; color: #34c759; }
.level-2 { color: #6e6e73; background: transparent; }
.level-2 span { color: #ff9f0a; }
.level-3 span { color: #bf5af2; }
.star-button { width: 37px; height: 37px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #86868b; background: transparent; transition: transform .18s, background .18s, color .18s; }
.star-button:hover { transform: scale(1.05); background: #e8e8ed; color: #bf8b00; }
.star-button[data-active='true'] { color: #f5a800; background: rgba(255,190,0,.14); }
.star-button[data-active='true'] svg { fill: currentColor; }
.star-button svg { width: 20px; }
.card-trigger { width: 100%; padding: 0 22px 22px; display: flex; flex-direction: column; align-items: flex-start; border: 0; color: inherit; background: transparent; text-align: left; }
.term-reading { min-height: 17px; color: #86868b; font-size: 9px; letter-spacing: .03em; }
.term-name { font-size: 28px; line-height: 1.18; font-weight: 700; letter-spacing: -.035em; }
.term-english { margin-top: 3px; color: #86868b; font-size: 10px; }
.term-short { min-height: 52px; margin-top: 14px; color: #424245; font-size: 14px; font-weight: 500; line-height: 1.65; }
.more-label { width: 100%; margin-top: 14px; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #dedee3; color: var(--blue); font-size: 11px; font-weight: 600; }
.more-label svg { width: 15px; transition: transform .2s; }
.term-card[data-open] .more-label svg { transform: rotate(180deg); }
.term-detail { padding: 0 22px 22px; color: #424245; font-size: 13px; line-height: 1.7; }
.term-detail > div:first-child { padding-top: 16px; border-top: 1px solid #dedee3; }
.term-detail h3 { margin: 0 0 5px; color: var(--ink); font-size: 12px; }
.term-detail p { margin: 0; }
.example-box { margin-top: 14px; padding: 14px; border-radius: 14px; background: white; }
.example-box span, .related > span { display: block; margin-bottom: 4px; color: #86868b; font-size: 10px; font-weight: 600; }
.ai-prompt-box { margin-top: 16px; padding: 16px; border: 1px solid #cfe4ff; border-radius: 16px; background: #eef6ff; }
.ai-prompt-heading > span { display: flex; align-items: center; gap: 6px; color: #0055ad; font-size: 13px; font-weight: 700; }
.ai-prompt-heading svg { width: 15px; }
.ai-prompt-heading p { margin: 5px 0 0; color: #5c6f82; font-size: 12px; }
.ai-prompt-box pre { margin: 13px 0 0; padding: 14px; overflow: auto; border-radius: 12px; background: white; color: #30343a; font: 500 13px/1.7 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-prompt-actions { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-safety { display: inline-flex; align-items: center; gap: 5px; color: #6e6e73; font-size: 11px; }
.ai-safety svg { width: 14px; flex: none; }
.copy-prompt-button { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; border: 0; border-radius: 999px; color: white; background: var(--blue); font-size: 13px; font-weight: 650; transition: transform .18s ease, background .18s ease; }
.copy-prompt-button:hover { transform: translateY(-1px); background: #0065cc; }
.copy-prompt-button[data-status='copied'] { background: #248a3d; }
.copy-prompt-button[data-status='error'] { background: #c9342f; }
.copy-prompt-button svg { width: 15px; }
.related { margin-top: 14px; }
.related button { display: inline-flex; align-items: center; gap: 4px; margin: 4px 5px 0 0; padding: 5px 8px; border: 0; border-radius: 999px; color: var(--blue); background: #e8f2ff; font-size: 10px; font-weight: 600; }
.related button:hover { background: #d8eaff; }
.related button svg { width: 10px; }
.term-page-link { margin-top: 18px; min-height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-radius: 13px; color: white; background: var(--ink); font-size: 12px; font-weight: 650; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.term-page-link:hover { transform: translateY(-1px); background: #333336; }
.term-page-link svg { width: 15px; }
.static-term-results { margin-top: 34px; }
.static-term-link { min-height: 230px; padding: 26px 22px 22px; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.static-term-link .term-short { min-height: 0; }
.static-term-link small { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; color: var(--blue); font-size: 11px; font-weight: 650; }
.static-term-link small svg { width: 14px; }
.empty-state { padding: 80px 20px; text-align: center; border: 0; border-radius: 28px; background: #f5f5f7; }
.empty-state > span { width: 54px; height: 54px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: white; }
.empty-state h2 { margin: 0 0 8px; font-size: 24px; }
.empty-state p { margin: 0 0 20px; color: var(--muted-foreground); font-size: 14px; }
.empty-reset-button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; color: white; background: var(--ink); font-size: 13px; font-weight: 650; }
.empty-reset-button:hover { background: #333336; }

.first-step { width: min(1120px, calc(100% - 40px)); margin: 0 auto 100px; padding: 54px; display: grid; grid-template-columns: .9fr 1.5fr; gap: 42px; align-items: center; border-radius: 30px; color: white; background: #000; position: relative; overflow: hidden; }
.first-step::after { content: 'ABC'; position: absolute; right: -10px; bottom: -55px; color: rgba(255,255,255,.06); font: 700 150px/1 -apple-system, sans-serif; letter-spacing: -.08em; }
.first-step-copy { position: relative; z-index: 1; }
.first-step-copy > span { color: #a1a1a6; font-size: 12px; font-weight: 600; }
.first-step-copy h2 { margin: 8px 0 10px; font-size: 32px; letter-spacing: -.035em; }
.first-step-copy p { margin: 0; color: #a1a1a6; font-size: 14px; line-height: 1.65; }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; z-index: 1; }
.step-list button { min-width: 0; padding: 15px 18px; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; border: 0; border-right: 1px solid #333336; color: white; background: transparent; text-align: left; }
.step-list button:last-child { border-right: 0; }
.step-list button:hover { background: #1d1d1f; }
.step-list button > span { grid-row: 1 / 3; margin-right: 11px; color: #86868b; font-size: 10px; font-weight: 600; }
.step-list strong { font-size: 18px; font-weight: 600; }
.step-list small { color: #86868b; font-size: 10px; }
.step-list svg { grid-column: 3; grid-row: 1 / 3; width: 16px; color: var(--blue); }

footer { width: min(980px, calc(100% - 40px)); min-height: 118px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-top: 1px solid #d2d2d7; }
footer .brand-mark { background: var(--ink); }
footer p { color: #86868b; font-size: 11px; text-align: center; }
footer > a:last-child { justify-self: end; color: var(--blue); font-size: 11px; text-decoration: none; }

/* Individual term pages */
.term-page-shell { min-height: 100vh; background: #fff; }
.term-page-header { width: 100%; height: 52px; padding: 0 max(24px, calc((100% - 980px) / 2)); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(0,0,0,.08); background: rgba(250,250,252,.88); backdrop-filter: saturate(180%) blur(20px); }
.term-list-link { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; color: #424245; background: #ededf0; font-size: 12px; font-weight: 600; text-decoration: none; }
.term-list-link:hover { background: #e2e2e7; }
.term-list-link svg { width: 14px; }
.term-article { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 100px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: #86868b; font-size: 12px; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.term-hero { padding: 74px 0 72px; text-align: center; }
.term-hero-meta { display: flex; align-items: center; justify-content: center; gap: 11px; color: #86868b; font-size: 12px; font-weight: 600; }
.detail-level { display: inline-flex; align-items: center; gap: 6px; color: #248a3d; }
.detail-level::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #34c759; }
.detail-level-2 { color: #a96300; }
.detail-level-2::before { background: #ff9f0a; }
.detail-level-3 { color: #a6337e; }
.detail-level-3::before { background: #bf5af2; }
.term-page-reading { margin: 26px 0 8px; color: #86868b; font-size: 13px; letter-spacing: .04em; }
.term-hero h1 { margin: 0; color: var(--ink); font-size: clamp(48px, 8vw, 78px); line-height: 1.05; letter-spacing: -.055em; }
.term-hero h1 span { margin-left: 8px; color: #86868b; font-size: .4em; letter-spacing: -.02em; }
.term-page-english, .term-aliases { margin: 10px 0 0; color: #86868b; font-size: 13px; }
.term-aliases { margin-top: 5px; }
.term-page-lead { max-width: 660px; margin: 30px auto 0; color: #424245; font-size: clamp(19px, 2.5vw, 25px); font-weight: 650; line-height: 1.65; }
.section-kicker { display: block; margin-bottom: 9px; color: var(--blue); font-size: 12px; font-weight: 700; }
.answer-section { padding: 58px 64px; border-radius: 30px; background: #f5f5f7; }
.answer-section h2, .learning-section h2, .connection-section h2, .faq-section h2 { margin: 0; color: var(--ink); font-size: clamp(27px, 4vw, 38px); letter-spacing: -.035em; }
.answer-section > p { margin: 20px 0 0; color: #424245; font-size: 18px; line-height: 1.9; }
.detail-section-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-info-card { min-height: 250px; padding: 38px; display: flex; align-items: flex-start; gap: 18px; border-radius: 26px; background: #eef6ff; }
.detail-info-card.example-card { background: #fff8e8; }
.detail-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 13px; color: #0055ad; background: white; }
.example-card .detail-icon { color: #a96300; }
.detail-icon svg { width: 20px; }
.detail-info-card h2, .caution-section h2 { margin: 5px 0 12px; color: var(--ink); font-size: 19px; letter-spacing: -.015em; }
.detail-info-card p { margin: 0; color: #424245; font-size: 15px; line-height: 1.8; }
.detail-info-card p + p { margin-top: 12px; }
.learning-section, .connection-section, .faq-section { padding: 100px 0 0; }
.learning-points { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.learning-points > div { padding: 26px; border: 1px solid #e2e2e7; border-radius: 20px; }
.learning-points strong { color: #86868b; font-size: 11px; }
.learning-points p { margin: 12px 0 0; color: #424245; font-size: 14px; line-height: 1.75; }
.connection-copy { max-width: 760px; margin: 22px 0 0; color: #424245; font-size: 16px; line-height: 1.9; }
.related-term-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-term-grid > a { min-height: 196px; padding: 24px; display: flex; flex-direction: column; border-radius: 20px; color: inherit; background: #f5f5f7; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.related-term-grid > a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.related-term-grid > a > span { color: #86868b; font-size: 10px; }
.related-term-grid strong { margin-top: 4px; font-size: 20px; }
.related-term-grid p { margin: 12px 0 18px; color: #6e6e73; font-size: 13px; line-height: 1.65; }
.related-term-grid small { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: var(--blue); font-size: 11px; font-weight: 650; }
.related-term-grid small svg { width: 13px; }
.caution-section { margin-top: 100px; padding: 32px 36px; display: flex; gap: 20px; border-radius: 24px; background: #f5f5f7; }
.caution-section .detail-icon { color: #6e6e73; }
.caution-section p { margin: 0; color: #424245; font-size: 14px; line-height: 1.8; }
.faq-list { margin-top: 30px; border-top: 1px solid #d2d2d7; }
.faq-list > div { padding: 27px 0; border-bottom: 1px solid #d2d2d7; }
.faq-list h3, .faq-list p { margin: 0; display: grid; grid-template-columns: 34px 1fr; color: var(--ink); font-size: 16px; line-height: 1.75; }
.faq-list h3 span { color: var(--blue); }
.faq-list p { margin-top: 12px; color: #424245; font-size: 14px; }
.faq-list p span { color: #248a3d; font-weight: 700; }
.detail-ai-section { margin-top: 100px; padding: 44px; border: 1px solid #cfe4ff; border-radius: 28px; background: #eef6ff; }
.detail-ai-heading { display: flex; align-items: center; gap: 16px; }
.detail-ai-heading > span { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 15px; color: #0055ad; background: white; }
.detail-ai-heading svg { width: 22px; }
.detail-ai-heading p { margin: 0 0 4px; color: #0055ad; font-size: 12px; font-weight: 700; }
.detail-ai-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.02em; }
.detail-ai-help { margin: 22px 0 0; color: #5c6f82; font-size: 13px; }
.detail-ai-section pre { margin: 15px 0 0; padding: 22px; overflow: auto; border-radius: 16px; background: white; color: #30343a; font: 500 14px/1.8 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-copy-actions { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.detail-copy-actions > span { display: inline-flex; align-items: center; gap: 6px; color: #6e6e73; font-size: 11px; }
.detail-copy-actions > span svg { width: 15px; }
.detail-copy-actions button { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; color: white; background: var(--blue); font-size: 13px; font-weight: 650; }
.detail-copy-actions button:hover { background: #0065cc; }
.detail-copy-actions button[data-state='copied'] { background: #248a3d; }
.detail-copy-actions button[data-state='error'] { background: #c9342f; }
.detail-copy-actions button svg { width: 15px; }
.term-neighbor-nav { margin-top: 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.term-neighbor-nav > a { min-height: 105px; padding: 23px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #e2e2e7; border-radius: 20px; color: inherit; text-decoration: none; }
.term-neighbor-nav > a:last-child { text-align: right; }
.term-neighbor-nav > a:hover { border-color: #b7b7bc; background: #fafafa; }
.term-neighbor-nav small { display: flex; align-items: center; gap: 5px; color: #86868b; font-size: 10px; }
.term-neighbor-nav > a:last-child small { justify-content: flex-end; }
.term-neighbor-nav small svg { width: 13px; }
.term-neighbor-nav strong { margin-top: 7px; font-size: 17px; }
.back-to-list-panel { margin-top: 18px; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-radius: 20px; color: white; background: var(--ink); }
.back-to-list-panel p { margin: 0; font-size: 14px; }
.back-to-list-panel a { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; gap: 6px; flex: none; border-radius: 999px; color: var(--ink); background: white; font-size: 12px; font-weight: 650; text-decoration: none; }
.back-to-list-panel a svg { width: 14px; }
.term-page-footer { width: min(980px, calc(100% - 40px)); }
.not-found { width: min(720px, calc(100% - 40px)); min-height: calc(100vh - 52px); margin: 0 auto; padding: 120px 0; text-align: center; }
.not-found h1 { margin: 6px 0 14px; font-size: clamp(34px, 6vw, 54px); letter-spacing: -.045em; }
.not-found p { margin: 0; color: #6e6e73; font-size: 16px; line-height: 1.7; }
.not-found a { min-height: 44px; margin-top: 28px; padding: 0 17px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; color: white; background: var(--ink); font-size: 13px; font-weight: 650; text-decoration: none; }
.not-found a svg { width: 15px; }

@media (max-width: 900px) {
  .category-list { grid-template-columns: repeat(3, 1fr); }
  .term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .first-step { grid-template-columns: 1fr; gap: 22px; }
  .related-term-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .site-header { height: 48px; padding: 0 16px; }
  .brand small { display: none; }
  .favorite-nav { padding: 0 8px; font-size: 11px; }
  .intro { padding: 52px 20px 34px; }
  .intro h1 { font-size: 43px; }
  .intro p { font-size: 16px; }
  .intro-purpose { margin-top: 27px; padding: 24px 21px; border-radius: 21px; }
  .intro-purpose h2 { margin-bottom: 15px; font-size: 22px; }
  .intro-purpose p { font-size: 15px; line-height: 1.75; }
  .finder { width: calc(100% - 24px); padding: 12px; border-radius: 21px; }
  .search-input { height: 52px; padding-right: 45px; font-size: 14px; }
  .search-wrap kbd { display: none; }
  .category-list { grid-template-columns: repeat(2, 1fr); }
  .category-button { justify-content: flex-start; padding: 11px 12px; }
  .finder-options { align-items: stretch; flex-direction: column; gap: 13px; }
  .sort-control { align-items: stretch; flex-direction: column; gap: 8px; }
  .sort-trigger { width: 100%; }
  .results { width: calc(100% - 24px); margin: 58px auto 76px; }
  .results-heading h2 { font-size: 30px; }
  .results-heading button { font-size: 10px; }
  .term-grid { grid-template-columns: 1fr; }
  .term-short { min-height: 0; }
  .ai-prompt-actions { align-items: stretch; flex-direction: column; }
  .copy-prompt-button { width: 100%; }
  .first-step { width: calc(100% - 24px); margin-bottom: 64px; padding: 34px 22px; border-radius: 24px; }
  .step-list { grid-template-columns: 1fr; }
  .step-list button { border-right: 0; border-bottom: 1px solid #333336; }
  .step-list button:last-child { border-bottom: 0; }
  footer { width: calc(100% - 28px); padding: 28px 0; grid-template-columns: 1fr auto; }
  footer p { display: none; }
  .term-page-header { height: 48px; padding: 0 16px; }
  .term-list-link { padding: 0 10px; font-size: 11px; }
  .term-article { width: calc(100% - 24px); padding-top: 20px; padding-bottom: 64px; }
  .breadcrumbs { font-size: 11px; }
  .term-hero { padding: 54px 8px 48px; }
  .term-hero h1 { font-size: 46px; }
  .term-hero h1 span { display: block; margin: 8px 0 0; font-size: 20px; }
  .term-page-lead { margin-top: 24px; font-size: 18px; }
  .answer-section { padding: 34px 24px; border-radius: 24px; }
  .answer-section > p { font-size: 16px; }
  .detail-section-grid { grid-template-columns: 1fr; }
  .detail-info-card { min-height: 0; padding: 28px 24px; }
  .learning-section, .connection-section, .faq-section { padding-top: 70px; }
  .learning-points { grid-template-columns: 1fr; }
  .related-term-grid { grid-template-columns: 1fr; }
  .related-term-grid > a { min-height: 0; }
  .caution-section { margin-top: 70px; padding: 26px 22px; }
  .detail-ai-section { margin-top: 70px; padding: 28px 20px; border-radius: 23px; }
  .detail-ai-heading h2 { font-size: 19px; }
  .detail-ai-section pre { padding: 17px; font-size: 13px; }
  .detail-copy-actions { align-items: stretch; flex-direction: column; }
  .detail-copy-actions button { justify-content: center; }
  .term-neighbor-nav { margin-top: 70px; }
  .term-neighbor-nav > a { min-height: 92px; padding: 18px; }
  .back-to-list-panel { padding: 25px 20px; align-items: stretch; flex-direction: column; text-align: center; }
  .back-to-list-panel a { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
