:root {
  --ink: #173c33;
  --ink-2: #245a4b;
  --accent: #f47c20;
  --accent-soft: #fff0df;
  --paper: #fffdf8;
  --canvas: #f7f3e9;
  --line: #e3ded2;
  --muted: #66736e;
  --shadow: 0 18px 50px rgba(24, 59, 50, .11);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #26332f;
  background: var(--canvas);
  font-family: Inter, "Noto Sans JP", "Noto Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.75;
}
a { color: inherit; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 99; padding: 10px 14px; background: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(23, 60, 51, .96); color: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); }
.header-inner, .page-shell { width: min(1120px, calc(100% - 36px)); margin: auto; }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 1.3rem; font-weight: 900; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: .92rem; }
.brand-copy small { opacity: .7; font-size: .58rem; letter-spacing: .12em; }
.top-nav, .language-links { display: flex; align-items: center; gap: 14px; }
.top-nav a, .language-links a { color: #fff; text-decoration: none; font-size: .78rem; font-weight: 800; opacity: .82; }
.top-nav a:hover, .language-links a:hover, .language-links a[aria-current="page"] { opacity: 1; color: #ffd6b6; }
.hero { position: relative; overflow: hidden; padding: 76px 0 68px; background: linear-gradient(135deg, #e4f0ea 0%, #fff7e8 65%, #ffe7d2 100%); }
.hero::before { content: attr(data-mark); position: absolute; right: max(4vw, 24px); bottom: -85px; color: rgba(23, 60, 51, .07); font-size: clamp(12rem, 30vw, 25rem); font-weight: 900; line-height: 1; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 310px; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; color: var(--ink); font-size: clamp(2.5rem, 7vw, 5.4rem); line-height: 1.03; letter-spacing: -.04em; }
.hero h1 span { color: var(--accent); }
.hero-lead { max-width: 680px; margin: 22px 0 0; color: #485b54; font-size: 1.05rem; }
.hero-card { padding: 25px; border: 1px solid rgba(23, 60, 51, .12); border-radius: 24px; background: rgba(255, 255, 255, .82); box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-card .jp { color: var(--ink); font-size: 1.4rem; font-weight: 900; }
.hero-card p { margin: 8px 0 0; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill { padding: 6px 11px; border: 1px solid rgba(23, 60, 51, .14); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--ink); font-size: .75rem; font-weight: 800; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 34px; padding: 46px 0 80px; align-items: start; }
.article, .side-card { border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.article { padding: clamp(24px, 5vw, 56px); border-radius: 28px; }
.intro { margin-top: 0; font-size: 1.08rem; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 38px; }
.summary-item { padding: 20px; border: 1px solid rgba(23,60,51,.10); border-radius: 18px 6px 18px 6px; background: #f8f6f1; box-shadow: 0 10px 25px rgba(23,60,51,.06); }
.summary-item:nth-child(1) { border-top: 5px solid #e95d70; }
.summary-item:nth-child(2) { border-top: 5px solid #4d8dff; }
.summary-item:nth-child(3) { border-top: 5px solid #8d6be8; }
.summary-item b { display: block; color: var(--ink); font-size: 1.05rem; }
.summary-item span { color: var(--muted); font-size: .84rem; }
.article h2 { margin: 54px 0 18px; padding-left: 15px; border-left: 5px solid #e63946; color: var(--ink); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.35; }
.article h2:nth-of-type(2) { border-left-color: #4d8dff; }
.article h2:nth-of-type(3) { border-left-color: #8d6be8; }
.article h2:nth-of-type(4) { border-left-color: #42a66b; }
.article h2:nth-of-type(5) { border-left-color: #f28c28; }
.article h2:nth-of-type(6) { border-left-color: #ff7da2; }
.article h2:nth-of-type(7) { border-left-color: #d4a94c; }
.article h3 { margin: 28px 0 10px; color: var(--ink-2); }
.pattern { display: inline-flex; margin: 4px 0 18px; padding: 12px 18px; border: 1px solid #ffd2df; border-radius: 15px 5px 15px 5px; background: linear-gradient(135deg,#fff1f5,#fffaf4); color: #e63946; font-size: 1.15rem; font-weight: 900; }
.example { margin: 20px 0; padding: 22px 24px; border: 1px solid rgba(23,60,51,.08); border-left: 5px solid #4d8dff; border-radius: 18px 6px 18px 6px; background: #fffaf4; box-shadow: 0 8px 20px rgba(23,60,51,.04); }
.example .jp { color: var(--ink); font-size: 1.08rem; font-weight: 850; }
.example .reading { color: var(--muted); font-size: .82rem; }
.example .translation { margin-top: 5px; }
.note { margin: 28px 0; padding: 23px 26px; border: 1px solid #cbe9d9; border-radius: 18px 6px 18px 6px; background: #eef8f3; }
.warning { border-color: #f5d77d; background: #fff7df; }
.comparison { width: 100%; margin: 22px 0; border-collapse: collapse; overflow: hidden; border-radius: 14px; }
.comparison th, .comparison td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { background: #f7f3ec; color: var(--ink); font-weight: 850; }
.quiz { margin-top: 36px; padding: 25px; border: 1px solid rgba(23,60,51,.10); border-radius: 20px 7px 20px 7px; background: #f2eee4; }
.quiz details { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; }
.side { position: sticky; top: 92px; display: grid; gap: 18px; }
.side-card { padding: 24px; border-radius: 22px 7px 22px 7px; }
.side-card h2 { margin: 0 0 12px; color: var(--ink); font-size: 1rem; }
.side-card a { display: block; padding: 7px 0; color: #4c5e57; font-size: .88rem; font-weight: 700; text-decoration: none; }
.side-card a:hover { color: var(--accent); }
.next-link { display: block; margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--ink); color: #fff !important; text-align: center; }
.usage-card { margin: 30px 0 36px; padding: 30px; border: 1px solid #ffd2df; border-radius: 20px 7px 20px 7px; background: linear-gradient(135deg,#fff1f5,#fffaf4); box-shadow: 0 12px 30px rgba(23,60,51,.06); }
.usage-card strong { display: block; margin-bottom: 10px; color: #e63946; font-size: clamp(1.7rem,4vw,2.8rem); line-height: 1.25; }
.two-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.mini-card { padding: 21px; border: 1px solid var(--line); border-radius: 18px 6px 18px 6px; background: #f8f6f1; }
.mini-card strong { display: block; margin-bottom: 7px; color: var(--ink); }
.related-articles { width: min(1120px, calc(100% - 36px)); margin: 0 auto 70px; }
.related-articles h2 { color: var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.related-card { padding: 23px; border-radius: 20px 6px 20px 6px; background: #fff; box-shadow: 0 12px 30px rgba(23,60,51,.08); text-decoration: none; transition: transform .2s; }
.related-card:nth-child(1) { border-top: 5px solid #e63946; }
.related-card:nth-child(2) { border-top: 5px solid #4d8dff; }
.related-card:nth-child(3) { border-top: 5px solid #8d6be8; }
.related-card:hover { transform: translateY(-4px); }
.related-card small { color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.related-card b { display: block; margin-top: 8px; color: var(--ink); }
footer { padding: 34px 0; background: var(--ink); color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.78); font-size: .82rem; }
@media (max-width: 850px) {
  .top-nav { display: none; }
  .hero-grid, .content-layout { grid-template-columns: 1fr; }
  .hero-card { max-width: 430px; }
  .side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .brand-copy small { display: none; }
  .language-links { width: 100%; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.15); padding-top: 8px; }
  .hero { padding: 54px 0; }
  .summary, .side { grid-template-columns: 1fr; }
  .two-card-grid, .related-grid { grid-template-columns: 1fr; }
  .article { border-radius: 18px; }
  .comparison { font-size: .84rem; }
  .footer-inner { display: block; }
}
