/* 用語解説ページ（/w/）用のスタイル。アプリ本体（App.js の GlobalStyle）と色をそろえる */
:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --text: #18181B;
  --sub: #3F3F46;
  --muted: #71717A;
  --border: #E7E5E4;
  --accent: #EA580C;
  --accent-hover: #C2410C;
  --accent-soft: #FFF7ED;
  --accent-border: #FED7AA;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  line-height: 1.75; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 768px; margin: 0 auto; padding: 0 16px; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250,250,249,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 600; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 8px; }
@media (max-width: 640px) { .brand-sub { display: none; } }

.btn { display: inline-block; border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 500; text-decoration: none; }
.btn-sm { padding: 6px 14px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.crumbs { font-size: 13px; color: var(--muted); margin: 28px 0 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.term { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 20px; }
@media (min-width: 640px) { .term { padding: 32px; } }
.term h2 { font-size: 15px; margin: 0 0 6px; }
.term section { margin-top: 28px; }
.term p { margin: 0; color: var(--sub); }

.speech { display: flex; align-items: flex-end; gap: 8px; }
.speech-right { justify-content: flex-end; }
.cat { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.bubble { position: relative; border: 1px solid var(--border); background: var(--surface); border-radius: 16px; padding: 10px 16px; margin-bottom: 14px; min-width: 0; }
.bubble::after { content: ""; position: absolute; bottom: 12px; width: 12px; height: 12px; background: inherit; border: inherit; transform: rotate(45deg); }
.speech-left .bubble::after { left: -7px; border-top: 0; border-right: 0; }
.speech-right .bubble { flex: 1; }
.speech-right .bubble::after { right: -7px; border-bottom: 0; border-left: 0; }
.bubble-accent { background: var(--accent-soft); border-color: var(--accent-border); }
.bubble h1 { font-size: 26px; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.h1-suffix { font-size: 18px; font-weight: 600; margin-left: 2px; }
.reading { font-size: 13px; color: var(--muted) !important; margin-top: 2px !important; }

.summary { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; }
.summary .label { font-size: 12px; font-weight: 600; color: var(--accent-hover); margin-bottom: 2px; }
.summary p:last-child { color: var(--text); font-size: 16px; }

.examples { margin: 0; padding-left: 1.2em; color: var(--sub); }
.examples li + li { margin-top: 4px; }

.chips { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: 4px 14px; font-size: 14px; text-decoration: none; background: var(--surface); }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

.cta { display: flex; gap: 16px; align-items: flex-start; margin: 32px 0 8px; padding: 20px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--accent-border); }
.cta-cat { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.cta-title { font-weight: 600; margin: 0; }
.cta-text { font-size: 14px; color: var(--sub); margin: 4px 0 14px; }

.intro { margin: 40px 0 8px; }
.intro h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.01em; }
.intro p { color: var(--muted); margin: 0; }
.category { margin-top: 32px; }
.category h2 { font-size: 16px; margin: 0 0 10px; }
.term-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.term-list a { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
.term-list a:hover { border-color: var(--accent); }
.tl-term { display: block; font-weight: 600; }
.tl-sum { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }

.site-footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 28px 0; font-size: 12px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }
