/*
Theme Name: はじめて株ナビ（Investers News）
Theme URI: https://investersnews.com/
Author: はじめて株ナビ編集部
Description: 「はじめて株ナビ」— 株式投資に興味がある人・始めたばかりの人のための情報サイト用オリジナルテーマ。ローソク足アニメーションのヒーロー、積立シミュレーター、用語集、クイズなどを搭載。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: investers-news
*/

/* =========================================================
   Tokens
   ========================================================= */
:root {
	--navy: #0b1b3a;
	--navy-2: #13295a;
	--ink: #1b2540;
	--ink-2: #4a5570;
	--ink-3: #7a849c;
	--line: #e3e8f2;
	--bg: #ffffff;
	--bg-tint: #f4f7fc;
	--up: #10b981;
	--down: #f43f5e;
	--gold: #f5b301;
	--sky: #0ea5e9;
	--violet: #8b5cf6;
	--grad: linear-gradient(120deg, #10b981 0%, #0ea5e9 100%);
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 10px 30px -12px rgba(11, 27, 58, .18);
	--shadow-lg: 0 24px 60px -20px rgba(11, 27, 58, .35);
	--font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	--font-head: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
	--header-h: 72px;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.85;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: #0b76c5; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #075a98; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.4; color: var(--navy); margin: 0; }
p { margin: 0 0 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 880px; }
.center { text-align: center; margin-top: 40px; }
.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.6em; border-radius: 999px; border: 2px solid transparent;
	font-weight: 700; font-family: var(--font-head); text-decoration: none; line-height: 1.3;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--lg { padding: 1em 2em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(16, 185, 129, .7); }
.btn--primary:hover { color: #fff; box-shadow: 0 16px 30px -12px rgba(16, 185, 129, .8); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn--ghost:hover { color: #fff; background: rgba(255,255,255,.14); }
.btn--outline { color: var(--navy); border-color: var(--navy); background: #fff; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { color: var(--navy); box-shadow: 0 12px 26px -10px rgba(245, 179, 1, .8); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { color: var(--navy); box-shadow: var(--shadow-lg); }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; margin-top: 16px; text-decoration: none; }

.grad-text {
	background: linear-gradient(100deg, #34d399, #38bdf8 60%, #a78bfa);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.marker { background: linear-gradient(transparent 62%, rgba(245, 179, 1, .45) 62%); padding: 0 .1em; white-space: nowrap; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 100; height: var(--header-h);
	background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
	transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.site-header--hero { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; }
.site-header--hero .logo__text, .site-header--hero .gnav__list a, .site-header--hero .menu-toggle { color: #fff; }
.site-header--hero.is-scrolled { background: rgba(11, 27, 58, .88); box-shadow: 0 8px 24px -12px rgba(0,0,0,.4); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) {
	/* the admin bar scrolls away on phones */
	.admin-bar .site-header { top: 0; }
	.admin-bar .site-header--hero { top: 46px; }
	.admin-bar .site-header--hero.is-scrolled { top: 0; }
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo__mark svg { width: 38px; height: 38px; }
.logo__words { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: .02em; }
.logo__sub { font-family: var(--font-head); font-weight: 700; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--up); margin-top: 3px; }
.site-header--hero .logo__sub, .site-footer .logo__sub { color: #6ee7b7; }
.custom-logo { max-height: 44px; width: auto; }

.gnav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.gnav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.gnav__list a {
	display: block; white-space: nowrap; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: .92rem;
	color: var(--ink); text-decoration: none; position: relative;
}
.gnav__list a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
	background: var(--grad); transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.gnav__list a:hover::after, .gnav__list .current-menu-item a::after { transform: scaleX(1); }
.gnav__search { display: flex; align-items: center; background: var(--bg-tint); border-radius: 999px; padding: 2px 4px 2px 14px; border: 1px solid var(--line); }
.gnav__search input { border: 0; background: transparent; width: 150px; padding: 6px 0; outline: none; font-size: .88rem; }
.gnav__search button { border: 0; background: transparent; padding: 6px 8px; color: var(--ink-2); display: flex; }
.site-header--hero:not(.is-scrolled) .gnav__search { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.site-header--hero:not(.is-scrolled) .gnav__search input { color: #fff; }
.site-header--hero:not(.is-scrolled) .gnav__search input::placeholder, .site-header--hero:not(.is-scrolled) .gnav__search button { color: rgba(255,255,255,.75); }
.site-header--hero.is-scrolled .gnav__search { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.site-header--hero.is-scrolled .gnav__search input { color: #fff; }

@media (min-width: 1024px) and (max-width: 1279px) {
	.gnav__search { display: none; }
	.gnav__list a { padding: 8px 9px; font-size: .88rem; }
}
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; padding: 8px; color: var(--navy); }
.menu-toggle .icon { width: 28px; height: 28px; }
.menu-toggle__close { display: none; }

@media (max-width: 1023px) {
	/* backdrop-filter would make the header the containing block of the fixed drawer */
	.site-header { backdrop-filter: none; background: #fff; }
	.site-header--hero { background: transparent; }
	.site-header--hero.is-scrolled { background: var(--navy); }
	.menu-toggle { display: flex; z-index: 120; position: relative; }
	.gnav {
		position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 110;
		flex-direction: column; align-items: stretch; gap: 20px; padding: calc(var(--header-h) + 12px) 24px 24px;
		background: var(--navy); transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
		overflow-y: auto;
	}
	.gnav.is-open { transform: none; }
	.gnav__list { flex-direction: column; gap: 2px; }
	.gnav__list a, .site-header--hero .gnav__list a { color: #fff; font-size: 1.05rem; padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
	.gnav__search, .site-header--hero:not(.is-scrolled) .gnav__search { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
	.gnav__search input { width: 100%; color: #fff; }
	.gnav__search input::placeholder, .gnav__search button { color: rgba(255,255,255,.7); }
	body.menu-open .menu-toggle { color: #fff; }
	body.menu-open .menu-toggle__open { display: none; }
	body.menu-open .menu-toggle__close { display: block; }
	body.menu-open { overflow: hidden; }
}
/* below the header (z-index 100), whose stacking context contains the drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(5, 12, 28, .55); z-index: 99; }

/* Reading progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 200; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .1s linear; }
.admin-bar .progress { top: 32px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background: radial-gradient(1200px 600px at 80% -10%, #1e3a8a 0%, transparent 60%), linear-gradient(160deg, #0b1b3a 0%, #0a1430 60%, #081026 100%);
	padding: calc(var(--header-h) + 56px) 0 96px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid { position: absolute; inset: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 14s ease-in-out infinite; }
.orb--1 { width: 420px; height: 420px; background: #10b981; left: -120px; top: 30%; }
.orb--2 { width: 360px; height: 360px; background: #0ea5e9; right: 5%; top: -80px; animation-delay: -5s; }
.orb--3 { width: 260px; height: 260px; background: #8b5cf6; right: 30%; bottom: -120px; animation-delay: -9s; opacity: .4; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -30px); } }

.hero__inner { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
	.hero__inner { grid-template-columns: 1.05fr .95fr; }
	.hero__title { font-size: clamp(2.4rem, 4.1vw, 3.4rem) !important; }
}
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .85rem; font-weight: 700; color: #a7f3d0;
	margin-bottom: 20px;
}
.hero__title .grad-text { white-space: nowrap; }
.hero__title { color: #fff; font-size: clamp(1.9rem, 8vw, 3.4rem); font-weight: 800; line-height: 1.25; letter-spacing: .01em; margin-bottom: 20px; }
.hero__lead { color: rgba(255,255,255,.8); font-size: 1.02rem; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 520px; }
.hero__stats li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 14px; }
.hero__stats strong { font-family: var(--font-head); font-size: clamp(1.3rem, 3.4vw, 1.75rem); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.hero__stats span { font-weight: 700; margin-left: 2px; color: #6ee7b7; }
@media (max-width: 480px) {
	.hero__stats { gap: 8px; }
	.hero__stats li { padding: 10px; }
	.hero__stats strong { font-size: 1.2rem; }
	.hero__stats span { font-size: .75rem; }
}
.hero__stats em { display: block; font-style: normal; font-size: .72rem; color: rgba(255,255,255,.65); line-height: 1.4; margin-top: 2px; }

.hero__visual { position: relative; padding: 24px 8px; }
.chart-card {
	position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
	border-radius: 22px; padding: 16px 18px 14px; backdrop-filter: blur(10px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
	animation: rise 1s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
.chart-card__head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.chart-card__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.chart-card__dot:nth-child(1) { background: #f87171; } .chart-card__dot:nth-child(2) { background: #fbbf24; } .chart-card__dot:nth-child(3) { background: #34d399; }
.chart-card__label { margin-left: auto; font-size: .72rem; letter-spacing: .08em; color: rgba(255,255,255,.55); font-weight: 700; }
.candles { width: 100%; height: auto; overflow: visible; }
.candles__grid line { stroke: rgba(255,255,255,.08); stroke-dasharray: 4 6; }
.candle line { stroke-width: 1.6; }
.candle.is-up line, .candle.is-up rect { stroke: #34d399; fill: #34d399; }
.candle.is-down line, .candle.is-down rect { stroke: #fb7185; fill: #fb7185; }
.candle { transform-box: fill-box; transform-origin: center bottom; animation: candle .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d) + .3s); }
@keyframes candle { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }
.candles__ma { fill: none; stroke: #fcd34d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s ease-out 1.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart-card__foot { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: .75rem; color: rgba(255,255,255,.7); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.dot--up { background: #34d399; } .dot--down { background: #fb7185; } .dot--ma { background: #fcd34d; }
.dot--principal { background: #93c5fd; } .dot--gain { background: var(--up); }

.float-chip {
	position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
	background: #fff; color: var(--navy); font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-lg);
	animation: bob 5s ease-in-out infinite;
}
.float-chip .icon { color: var(--up); }
.float-chip--1 { top: 0; right: 6%; }
.float-chip--2 { bottom: -14px; right: 18%; animation-delay: -1.6s; }
.float-chip--2 .icon { color: #e11d48; }
.float-chip--3 { bottom: 34%; right: -8px; animation-delay: -3.2s; }
.float-chip--3 .icon { color: var(--violet); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 600px) { .float-chip { font-size: .72rem; padding: 6px 10px; } .float-chip--3 { right: 0; } }

/* =========================================================
   Ticker
   ========================================================= */
.ticker { background: var(--navy-2); color: #fff; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; font-size: .9rem; white-space: nowrap; border-right: 1px solid rgba(255,255,255,.1); }
.ticker__item .icon { color: var(--gold); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 88px 0; position: relative; }
.section--compact { padding-top: 48px; padding-bottom: 80px; }
.section--tint { background: var(--bg-tint); }
.section--navy { background: linear-gradient(160deg, #0b1b3a, #13295a); color: #fff; overflow: hidden; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head--left { text-align: left; margin-bottom: 24px; }
.section-head__en {
	display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .25em;
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px;
}
.section-head__title { font-size: clamp(1.6rem, 3.8vw, 2.3rem); font-weight: 800; }
.section-head__lead { color: var(--ink-2); margin: 14px auto 0; max-width: 40em; }
.section-head--light .section-head__title { color: #fff; }
.section-head--light .section-head__lead { color: rgba(255,255,255,.75); }
.section-head--light .section-head__en { background: linear-gradient(90deg, #fcd34d, #fbbf24); -webkit-background-clip: text; background-clip: text; }

/* Reveal on scroll (only hidden when JS is available) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Roadmap
   ========================================================= */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 640px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
	.roadmap { grid-template-columns: repeat(5, 1fr); position: relative; }
	.roadmap::before { content: ""; position: absolute; top: 58px; left: 8%; right: 8%; height: 3px; background: repeating-linear-gradient(90deg, #cbd5e1 0 8px, transparent 8px 16px); }
}
.roadmap__step {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 22px 20px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.roadmap__step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.roadmap__num { font-family: var(--font-head); font-weight: 800; font-size: .75rem; letter-spacing: .12em; color: var(--up); }
.roadmap__icon {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin: 8px 0 14px;
	background: var(--grad); color: #fff; box-shadow: 0 10px 20px -8px rgba(14,165,233,.6); position: relative;
}
.roadmap__icon .icon { width: 28px; height: 28px; }
.roadmap__title { font-size: 1.1rem; margin-bottom: 8px; }
.roadmap__text { font-size: .9rem; color: var(--ink-2); line-height: 1.75; margin: 0; }

/* =========================================================
   Cards
   ========================================================= */
.cards { display: grid; gap: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
	.cards--featured .card--large { grid-column: span 2; grid-row: span 2; }
	.cards--featured .card--large .card__title { font-size: 1.5rem; }
	.cards--featured .card--large .card__thumb { aspect-ratio: auto; flex: 1; min-height: 300px; }
	.cards--featured .card--large .card__body { flex: none; padding: 24px 28px 26px; }
	.cards--featured .card--large .card__excerpt { font-size: .95rem; }
}
.card {
	display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
	border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.card__thumb svg, .card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card:hover .card__thumb svg, .card:hover .card__thumb img { transform: scale(1.06); }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card__time { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--ink-3); }
.card__title { font-size: 1.08rem; line-height: 1.55; margin-bottom: 8px; }
.card__title a { color: var(--navy); text-decoration: none; background: linear-gradient(var(--up), var(--up)) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.card__title a:hover { background-size: 100% 2px; }
.card__excerpt { font-size: .88rem; color: var(--ink-2); line-height: 1.75; margin-bottom: 12px; }
.card__date { margin-top: auto; font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.badge {
	--c: var(--up);
	display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px;
	font-size: .76rem; font-weight: 700; text-decoration: none; line-height: 1.6;
	color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff);
}
.badge:hover { color: #fff; background: var(--c); }
.badge .icon { width: 14px; height: 14px; }

/* =========================================================
   Category tiles
   ========================================================= */
.cat-grid { display: grid; gap: 18px; }
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-tile {
	--c: var(--up);
	position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius);
	text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); overflow: hidden;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cat-tile::after {
	content: ""; position: absolute; width: 160px; height: 160px; right: -50px; top: -50px; border-radius: 50%;
	background: color-mix(in srgb, var(--c) 12%, transparent); transition: transform .4s;
}
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 45%, #fff); color: var(--ink); }
.cat-tile:hover::after { transform: scale(1.5); }
.cat-tile__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c); color: #fff; margin-bottom: 8px; position: relative; z-index: 1; }
.cat-tile__icon .icon { width: 26px; height: 26px; }
.cat-tile__name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--navy); position: relative; z-index: 1; }
.cat-tile__desc { font-size: .88rem; color: var(--ink-2); line-height: 1.7; position: relative; z-index: 1; }
.cat-tile__count { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--c); position: relative; z-index: 1; }

/* =========================================================
   NISA
   ========================================================= */
.nisa__boxes { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 800px) { .nisa__boxes { grid-template-columns: 1fr auto 1fr; } }
.nisa-box { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 22px; padding: 28px; position: relative; overflow: hidden; }
.nisa-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; }
.nisa-box--tsumitate::before { background: #34d399; }
.nisa-box--growth::before { background: #38bdf8; }
.nisa-box__tag { display: inline-block; font-weight: 700; font-size: .85rem; padding: 4px 14px; border-radius: 999px; }
.nisa-box--tsumitate .nisa-box__tag { background: rgba(52, 211, 153, .18); color: #6ee7b7; }
.nisa-box--growth .nisa-box__tag { background: rgba(56, 189, 248, .18); color: #7dd3fc; }
.nisa-box__amount { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; margin: 12px 0 14px; color: #fff; }
.nisa-box__amount strong { font-size: 3.6rem; line-height: 1; margin-right: 4px; }
.nisa-box__amount small { font-size: .95rem; color: rgba(255,255,255,.6); margin-left: 4px; }
.nisa-box ul { list-style: none; padding: 0; margin: 0; }
.nisa-box li { display: flex; gap: 8px; align-items: flex-start; color: rgba(255,255,255,.85); font-size: .93rem; padding: 4px 0; }
.nisa-box li .icon { color: var(--gold); margin-top: .35em; }
.nisa__plus { display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: var(--gold); }
.nisa__lifetime { margin-top: 28px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 24px 28px; }
.nisa__lifetime-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; color: rgba(255,255,255,.8); }
.nisa__lifetime-head strong { font-family: var(--font-head); font-size: 2rem; color: var(--gold); }
.nisa__bar { display: flex; height: 44px; border-radius: 12px; overflow: hidden; background: rgba(52, 211, 153, .25); }
.nisa__bar-growth {
	width: 0; background: linear-gradient(90deg, #0ea5e9, #38bdf8); color: #fff; font-size: .82rem; font-weight: 700;
	display: flex; align-items: center; padding-left: 14px; white-space: nowrap; overflow: hidden;
	transition: width 1.4s cubic-bezier(.2,.8,.2,1) .3s;
}
.is-visible .nisa__bar-growth, html:not(.js) .nisa__bar-growth { width: var(--w); }
.nisa__note { margin: 12px 0 0; font-size: .85rem; color: rgba(255,255,255,.65); }

/* =========================================================
   Simulator
   ========================================================= */
.sim {
	display: grid; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: 24px;
	padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow);
}
@media (min-width: 900px) { .sim { grid-template-columns: 1fr 1.25fr; } }
.sim__field { display: block; margin-bottom: 22px; }
.sim__label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.sim__label output { font-family: var(--font-head); font-size: 1.25rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.sim input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--up) var(--p, 50%), #e2e8f0 var(--p, 50%)); outline-offset: 6px; }
.sim input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--up); box-shadow: 0 4px 10px rgba(0,0,0,.2); cursor: grab; }
.sim input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--up); cursor: grab; }
.sim__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.sim__presets button { border: 1px solid var(--line); background: var(--bg-tint); border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 700; color: var(--ink-2); transition: all .2s; }
.sim__presets button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.sim__result { background: linear-gradient(160deg, #0b1b3a, #13295a); color: #fff; border-radius: 20px; padding: 24px; }
.sim__total span { font-size: .85rem; color: rgba(255,255,255,.7); }
.sim__total strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.2; font-variant-numeric: tabular-nums; }
.sim__split { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 14px; font-size: .9rem; color: rgba(255,255,255,.8); }
.sim__split b { color: #fff; font-variant-numeric: tabular-nums; }
.sim__chart { width: 100%; height: 200px; }
.sim__chart .area-p { fill: rgba(147, 197, 253, .55); }
.sim__chart .area-g { fill: url(#simGain); }
.sim__chart .axis { fill: rgba(255,255,255,.55); font-size: 13px; }
.sim__chart .gridline { stroke: rgba(255,255,255,.08); }
.sim__tax { margin: 12px 0 0; font-size: .88rem; color: rgba(255,255,255,.8); }
.sim__tax b { color: var(--gold); }
.sim__note { grid-column: 1 / -1; margin: 0; font-size: .78rem; color: var(--ink-3); }

/* =========================================================
   Quiz / word cards
   ========================================================= */
.duo { display: grid; gap: 48px; }
@media (min-width: 960px) { .duo { grid-template-columns: 1.3fr 1fr; } }
.quiz { background: #fff; border-radius: 24px; padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.quiz__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.quiz__step { font-family: var(--font-head); font-weight: 800; color: var(--up); font-size: .9rem; flex: none; }
.quiz__bar { flex: 1; height: 8px; border-radius: 99px; background: var(--bg-tint); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .4s; }
.quiz__q { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--navy); margin-bottom: 16px; }
.quiz__choices { display: grid; gap: 10px; }
@media (min-width: 560px) { .quiz__choices { grid-template-columns: 1fr 1fr; } }
.quiz__choice {
	text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 700;
	display: flex; align-items: center; gap: 10px; transition: border-color .2s, background .2s, transform .15s;
}
.quiz__choice:hover:not(:disabled) { border-color: var(--sky); transform: translateY(-2px); }
.quiz__choice::before { content: attr(data-label); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--bg-tint); font-size: .85rem; flex: none; color: var(--ink-2); }
.quiz__choice.is-correct { border-color: var(--up); background: #ecfdf5; }
.quiz__choice.is-correct::before { background: var(--up); color: #fff; content: "✓"; }
.quiz__choice.is-wrong { border-color: var(--down); background: #fff1f2; animation: shake .4s; }
.quiz__choice.is-wrong::before { background: var(--down); color: #fff; content: "×"; }
.quiz__choice:disabled { cursor: default; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.quiz__exp { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg-tint); font-size: .92rem; line-height: 1.75; }
.quiz__exp strong { display: block; margin-bottom: 2px; }
.quiz__foot { margin-top: 18px; text-align: right; }
.quiz__result { text-align: center; padding: 10px 0; }
.quiz__score { font-family: var(--font-head); font-size: 3.4rem; font-weight: 800; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quiz__confetti { position: absolute; pointer-events: none; width: 10px; height: 14px; border-radius: 2px; animation: confetti 1.4s ease-out forwards; }
@keyframes confetti { to { transform: translate(var(--x), var(--y)) rotate(720deg); opacity: 0; } }

.word-cards { display: grid; gap: 12px; }
.word-card { background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.word-card summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 800; font-family: var(--font-head); color: var(--navy); position: relative; display: flex; align-items: center; gap: 10px; }
.word-card summary::-webkit-details-marker { display: none; }
.word-card summary::after { content: "+"; position: absolute; right: 18px; font-size: 1.4rem; color: var(--up); transition: transform .25s; }
.word-card[open] summary::after { transform: rotate(45deg); }
.word-card p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); font-size: .92rem; line-height: 1.8; }
.word-card__kana { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; font-size: .85rem; flex: none; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
	position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
	padding: clamp(28px, 5vw, 56px); border-radius: 28px; color: #fff;
	background: linear-gradient(120deg, #059669, #0284c7 60%, #6d28d9);
}
.cta::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200'%3E%3Cpolyline points='0,170 60,150 110,160 170,110 230,125 290,80 350,95 420,50 480,62 540,25 600,10' fill='none' stroke='white' stroke-opacity='.18' stroke-width='4'/%3E%3C/svg%3E") center / cover no-repeat; }
.cta__text { position: relative; max-width: 36em; }
.cta h2 { color: #fff; font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 10px; }
.cta p { margin: 0; color: rgba(255,255,255,.88); }
.cta .btn { position: relative; }

/* =========================================================
   Breadcrumbs / heroes for inner pages
   ========================================================= */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 18px; font-size: .8rem; }
.breadcrumbs li { color: inherit; opacity: .85; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.post-hero, .page-hero, .archive-hero {
	--c: var(--up);
	position: relative; overflow: hidden; color: #fff; padding: 44px 0 52px;
	background: radial-gradient(700px 300px at 90% 0%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%), linear-gradient(160deg, #0b1b3a, #13295a);
}
.post-hero::after, .archive-hero::after, .page-hero::after {
	content: ""; position: absolute; right: -40px; bottom: -30px; width: 420px; height: 160px; opacity: .25;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 160'%3E%3Cpolyline points='0,140 50,120 90,130 140,90 190,100 240,60 290,72 340,30 420,10' fill='none' stroke='white' stroke-width='4'/%3E%3C/svg%3E") no-repeat;
}
.post-hero .badge { background: #fff; }
.post-hero__title { max-width: 820px; color: #fff; font-size: clamp(1.6rem, 4.2vw, 2.4rem); margin: 14px 0 16px; font-weight: 800; }
.post-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .85rem; color: rgba(255,255,255,.78); }
.post-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-hero__title { color: #fff; font-size: clamp(1.7rem, 4.2vw, 2.5rem); font-weight: 800; }
.page-hero__lead { margin: 10px 0 0; color: rgba(255,255,255,.78); }
.archive-hero__row { display: flex; align-items: center; gap: 18px; }
.archive-hero__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--c); color: #fff; flex: none; box-shadow: 0 10px 30px -10px var(--c); }
.archive-hero__icon .icon { width: 32px; height: 32px; }
.archive-hero__title { color: #fff; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
.archive-hero__desc { margin: 4px 0 0; color: rgba(255,255,255,.78); }

/* =========================================================
   Single layout
   ========================================================= */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 80px; }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.entry { min-width: 0; }
.entry__thumb { margin: -80px 0 32px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; position: relative; z-index: 2; background: var(--navy); }
.entry__thumb svg, .entry__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .entry__thumb { margin-top: -60px; } }
.container--page { max-width: 880px; padding-top: 40px; padding-bottom: 80px; }

/* TOC */
.toc { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 18px; padding: 6px 22px; margin-bottom: 36px; }
.toc__head { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 14px 0; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.02rem; }
.toc__caret { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .25s; }
.toc.is-closed .toc__caret { transform: rotate(-135deg); }
.toc.is-closed .toc__list { display: none; }
.toc__list { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: toc; }
.toc__list li { counter-increment: toc; border-top: 1px dashed #d5dce9; }
.toc__list a { display: flex; gap: 10px; padding: 9px 0; color: var(--ink); text-decoration: none; font-size: .93rem; line-height: 1.6; }
.toc__list a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; color: var(--up); flex: none; }
.toc__list .toc-h3 a { padding-left: 34px; font-size: .86rem; color: var(--ink-2); }
.toc__list .toc-h3 a::before { content: "–"; color: var(--ink-3); }
.toc__list .toc-h3 { counter-increment: none; }
.toc__list a:hover { color: #0b76c5; }
.toc__list a.is-active { color: #0b76c5; font-weight: 700; }

/* Content typography */
.entry-content { font-size: 1.02rem; line-height: 1.95; overflow-wrap: anywhere; }
.entry-content > * + * { margin-top: 0; }
.entry-content h2 {
	position: relative; font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 2.6em 0 1em; padding: 14px 18px 14px 22px;
	background: linear-gradient(90deg, #eefcf6, #eff8ff); border-radius: 14px;
}
.entry-content h2::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 6px; border-radius: 0 6px 6px 0; background: var(--grad); }
.entry-content h3 { font-size: 1.2rem; margin: 2em 0 .8em; padding-bottom: 8px; border-bottom: 2px solid var(--line); position: relative; }
.entry-content h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--up); }
.entry-content h4 { font-size: 1.05rem; margin: 1.6em 0 .6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content ul li::marker { color: var(--up); }
.entry-content ol li::marker { color: var(--up); font-weight: 700; }
.entry-content strong { background: linear-gradient(transparent 62%, rgba(245,179,1,.35) 62%); }
.entry-content .sim strong, .entry-content .quiz strong { background: none; }
.entry-content .quiz__q { margin-top: 0; }
.entry-content blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--line); background: var(--bg-tint); border-radius: 0 14px 14px 0; color: var(--ink-2); }
.entry-content img { border-radius: 14px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: 14px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.7; }
.entry-content thead th { background: var(--navy); color: #fff; font-weight: 700; }
.entry-content tbody th { background: var(--bg-tint); white-space: nowrap; }
.entry-content tbody tr:last-child td, .entry-content tbody tr:last-child th { border-bottom: 0; }
.entry-content .formula { display: block; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; padding: 18px; margin: 1.4em 0; border-radius: 14px; background: var(--navy); color: #fff; }

/* Point boxes */
.point { border-radius: 16px; padding: 18px 22px; margin: 1.8em 0; border: 2px solid; }
.point__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; margin: 0 0 6px; }
.point__title .icon { width: 22px; height: 22px; }
.point__body > :last-child { margin-bottom: 0; }
.point__body ul { margin-bottom: 0; }
.point--tip { border-color: #a7f3d0; background: #f0fdf8; }
.point--tip .point__title { color: #047857; }
.point--warn { border-color: #fecdd3; background: #fff5f6; }
.point--warn .point__title { color: #be123c; }
.point--memo { border-color: #bfdbfe; background: #f3f8ff; }
.point--memo .point__title { color: #1d4ed8; }

/* Tags, share, author, prev/next */
.tags { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--bg-tint); color: var(--ink-2); font-size: .82rem; text-decoration: none; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 32px 0; padding: 18px 20px; border-radius: 16px; background: var(--bg-tint); }
.share__label { font-weight: 700; font-size: .9rem; margin-right: auto; }
.share__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; color: #fff; transition: transform .2s; }
.share__btn:hover { transform: translateY(-3px); color: #fff; }
.share__btn svg { width: 22px; height: 22px; }
.share__btn--x { background: #111; }
.share__btn--line { background: #06c755; }
.share__btn--fb { background: #1877f2; }
.share__btn--copy { background: var(--navy); }
.share__btn--copy.is-copied { background: var(--up); }
.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 18px; }
.author-box__avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; flex: none; }
.author-box__avatar .icon { width: 28px; height: 28px; }
.author-box__name { font-weight: 800; font-family: var(--font-head); margin: 0 0 4px; color: var(--navy); }
.author-box__text { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.75; }
.post-nav { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav__link { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: .92rem; line-height: 1.6; transition: border-color .2s, box-shadow .2s; }
.post-nav__link:hover { border-color: var(--up); box-shadow: var(--shadow); color: var(--navy); }
.post-nav__link span { display: block; font-size: .75rem; color: var(--ink-3); font-weight: 500; }
.post-nav__link--next { text-align: right; grid-column: -2; }

/* Sidebar */
.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 22px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.side-box__title { font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.side-box__title::before { content: ""; width: 6px; height: 18px; border-radius: 3px; background: var(--grad); }
.side-box--promo { text-align: center; background: linear-gradient(160deg, #0b1b3a, #13295a); border: 0; color: #fff; }
.side-box__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.1); color: #6ee7b7; margin-bottom: 10px; }
.side-box__icon .icon { width: 30px; height: 30px; }
.side-box__promo-title { font-family: var(--font-head); font-weight: 800; line-height: 1.55; }
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 10px 6px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; border-bottom: 1px solid var(--line); }
.side-cats li:last-child a { border-bottom: 0; }
.side-cats .icon { color: var(--c); }
.side-cats span { margin-left: auto; font-size: .78rem; color: var(--ink-3); background: var(--bg-tint); padding: 0 8px; border-radius: 99px; }
.side-cats a:hover { color: var(--c); }
.side-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-posts a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); font-size: .86rem; line-height: 1.55; font-weight: 500; }
.side-posts a:hover { color: #0b76c5; }
.side-posts__thumb { width: 84px; flex: none; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--navy); }
.side-posts__thumb svg, .side-posts__thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget ul { padding-left: 1.2em; margin: 0; }

.related .cards { margin-top: 0; }

/* Pagination */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination a.page-numbers:hover { border-color: var(--up); color: var(--up); }

/* Search form */
.search-form { display: flex; max-width: 520px; margin: 0 auto 24px; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.search-form input { flex: 1; border: 0; padding: 12px 20px; outline: none; min-width: 0; }
.search-form button { border: 0; background: var(--navy); color: #fff; padding: 0 20px; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.empty-box { text-align: center; padding: 40px 0; }

/* Glossary */
.glossary__tools { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); padding: 12px 0; margin-bottom: 16px; }
.glossary__search { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; padding: 4px 18px; background: #fff; margin-bottom: 12px; }
.glossary__search:focus-within { border-color: var(--up); }
.glossary__search .icon { color: var(--ink-3); }
.glossary__search input { flex: 1; border: 0; outline: none; padding: 8px 0; min-width: 0; }
.glossary__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.glossary__tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 14px; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.glossary__tabs button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.glossary__list { display: grid; gap: 12px; margin: 0; }
@media (min-width: 720px) { .glossary__list { grid-template-columns: 1fr 1fr; } }
.glossary__item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; transition: box-shadow .2s, transform .2s; }
.glossary__item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.glossary__item[hidden] { display: none; }
.glossary__item dt { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.glossary__item dd { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.8; }
.glossary__kana { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff; font-size: .78rem; flex: none; }
.glossary__empty { text-align: center; color: var(--ink-3); padding: 24px; }
.entry-content .glossary dl, .entry-content .roadmap { margin-top: 1em; }
.entry-content .roadmap__title { margin: 0 0 8px; padding: 0; border: 0; background: none; font-size: 1.05rem; }
.entry-content .roadmap__title::after, .entry-content .roadmap__title::before { display: none; }
.entry-content .roadmap { padding-left: 0; }
.entry-content .roadmap::before { display: none; }
@media (min-width: 1024px) { .entry-content .roadmap { grid-template-columns: 1fr; } .entry-content .roadmap__step { display: grid; grid-template-columns: 70px 1fr; column-gap: 16px; } .entry-content .roadmap__icon { grid-row: span 3; margin: 0; } }

/* 404 */
.notfound { padding: calc(var(--header-h) + 40px) 0 100px; text-align: center; background: var(--bg-tint); }
.notfound__inner { max-width: 680px; }
.notfound__chart { width: 280px; margin: 0 auto; }
.notfound__chart polyline { fill: none; stroke: var(--down); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.8s ease-out forwards; }
.notfound__code { font-family: var(--font-head); font-weight: 800; font-size: 5rem; line-height: 1; margin: 8px 0; background: linear-gradient(120deg, var(--down), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound__title { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: 12px; }
.notfound__text { color: var(--ink-2); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { position: relative; background: var(--navy); color: rgba(255,255,255,.75); padding: 40px 0 28px; margin-top: 60px; }
.site-footer__wave { position: absolute; left: 0; right: 0; top: -79px; width: 100%; height: 80px; }
.site-footer__wave path { fill: var(--navy); }
.site-footer__inner { display: grid; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 1.2fr 1fr; } }
.site-footer .logo__text { color: #fff; }
.site-footer__brand p { margin: 14px 0 0; font-size: .9rem; max-width: 30em; }
.site-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.site-footer__title { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin: 0; }
.footer-menu a { display: inline-block; color: rgba(255,255,255,.75); text-decoration: none; font-size: .88rem; padding: 4px 0; }
.footer-menu a:hover { color: #6ee7b7; }
.site-footer__disclaimer { font-size: .78rem; line-height: 1.8; margin: 22px 0 10px; color: rgba(255,255,255,.55); }
.site-footer__copy { font-size: .8rem; margin: 0; color: rgba(255,255,255,.55); }
.to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
	display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--shadow-lg);
	opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s;
}
.to-top .icon { transform: rotate(-90deg); width: 22px; height: 22px; }
.to-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: #fff; }

.empty { text-align: center; color: var(--ink-3); }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .82rem; color: var(--ink-3); text-align: center; margin-top: 6px; }
.sticky, .bypostauthor, .gallery-caption { }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.candles__ma { stroke-dashoffset: 0; }
	.js .reveal { opacity: 1; transform: none; }
}
