/*
Theme Name: SOLO WORKS
Description: ひとりで稼ぐ人のIT・AI・お金の実践ガイド。オレンジの枠と方眼紙、太い欧文見出し、リボンのモチーフでつくるオウンドメディア用オリジナルテーマ。
Version: 0.3.0
Text Domain: soloworks
*/

/* ============================================================
   Tokens
   ============================================================ */
:root {
	--orange: #F27738;
	--orange-d: #D9601F;      /* orange as text / hover (contrast on white) */
	--sun: #F3A23A;           /* hero ground */
	--orange-soft: #FDEFE6;
	--navy: #34434C;
	--navy-d: #263239;
	--indigo: #3E448B;
	--teal: #2BA59A;
	--violet: #B862C9;
	--ink: #222222;
	--ink-2: #4D4D4D;
	--muted: #6E6E6E;
	--line: #E2E2E2;
	--bg: #FFFFFF;
	--bg-2: #F5F5F5;
	--grid: rgba(0, 0, 0, .055);
	--frame: clamp(0px, 1.1vw, 16px);
	--r: 12px;
	--sh: 0 2px 4px rgba(0, 0, 0, .04), 0 12px 28px -12px rgba(0, 0, 0, .18);
	--ff: "Noto Sans JP", "Hiragino Sans", sans-serif;
	--ff-en: "Poppins", "Noto Sans JP", sans-serif;
	--ff-serif: "EB Garamond", "Noto Serif JP", serif;
	--ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; scrollbar-color: var(--orange) #fff; }
body {
	margin: 0;
	background: var(--orange);
	color: var(--ink);
	font: 400 16px/1.9 var(--ff);
	letter-spacing: .04em;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	caret-color: var(--orange);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .3em; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: var(--ink); }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; border: 2px solid #fff; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.wrap-mid { width: min(860px, 100% - 48px); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sp { display: none; }
@media (max-width: 700px) { .sp { display: inline; } .pc { display: none; } .wrap, .wrap-mid { width: calc(100% - 40px); } }

/* The white "sheet" sits inside an orange frame */
main { display: block; background: var(--bg); margin-inline: var(--frame); }
.grid-paper, .sec-pick, .sec-latest, .sec-count, .arc-hd, .post-hd, .sec-cats {
	background-color: #fff;
	background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 26px 26px;
	background-position: center top;
}

/* ============================================================
   Section titles: big English + orange bar + Japanese
   ============================================================ */
.ttl { margin: 0; display: flex; flex-direction: column; gap: 14px; font-weight: 700; }
.ttl-en { display: block; font: 700 clamp(44px, 6.4vw, 88px)/.95 var(--ff-en); letter-spacing: .005em; color: var(--ink); text-transform: uppercase; }
.ttl-ja { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(15px, 1.3vw, 17px); font-weight: 700; letter-spacing: .08em; }
.ttl-ja::before { content: ""; width: 46px; height: 10px; background: var(--sun); flex-shrink: 0; transform-origin: 0 50%; transition: transform .9s var(--ease) .2s; }
.js .rv:not(.in) .ttl-ja::before { transform: scaleX(0); }
.ttl-serif .ttl-en { font: 500 clamp(48px, 7vw, 96px)/1 var(--ff-serif); letter-spacing: .02em; }
.h-sec { font: 700 clamp(24px, 2.6vw, 32px)/1.5 var(--ff); margin: 0; }
.arr { width: 1em; height: 1em; flex-shrink: 0; transition: transform .35s var(--ease); }
.arr-prev { transform: rotate(180deg); }

/* ============================================================
   Buttons, pills, chips, tabs
   ============================================================ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 14px;
	min-height: 54px; padding: 0 30px; border: 1px solid var(--line); border-radius: 999px;
	background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.3; letter-spacing: .08em;
	transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn .arr { margin-right: -6px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.btn:hover .arr { transform: translateX(5px); }
.btn-o, .btn-go { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-o:hover, .btn-go:hover { background: var(--orange-d); border-color: var(--orange-d); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-d); }
.btn-line { background: #fff; border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13.5px; gap: 8px; }

.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 4px; background: var(--c, var(--orange)); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.22); color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; transition: background .25s, color .25s; }
.chips a:hover { background: #fff; color: var(--orange-d); }

.tabs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); background: #fff; }
.tabs button, .tabs a {
	position: relative; padding: 13px 22px; border: 0; border-right: 1px solid var(--line); background: transparent;
	font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); transition: background .25s, color .25s;
}
.tabs > :last-child { border-right: 0; }
.tabs button:hover, .tabs a:hover { background: var(--bg-2); }
.tabs [aria-selected="true"], .tabs [aria-current] { background: var(--navy); color: #fff; }
.tabs [aria-selected="true"]::after, .tabs [aria-current]::after { content: ""; position: absolute; left: 50%; bottom: -7px; translate: -50% 0; border: 7px solid transparent; border-bottom: 0; border-top-color: var(--navy); }
.tabs a span { margin-left: 6px; font: 600 12px var(--ff-en); opacity: .7; }

/* ============================================================
   Header
   ============================================================ */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--sun); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.site-hd { position: sticky; top: 0; z-index: 50; background: #fff; margin-inline: var(--frame); box-shadow: 0 1px 0 var(--line); transition: transform .5s var(--ease); }
.site-hd.hide { transform: translateY(-100%); }
.hd { display: flex; align-items: center; gap: 28px; min-height: 84px; width: auto; padding-left: clamp(16px, 2.4vw, 36px); margin: 0; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; transition: transform .7s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-20deg); }
.logo-t { display: flex; flex-direction: column; line-height: 1.1; }
.logo-t small { font-size: 10px; font-weight: 700; color: var(--orange-d); margin-bottom: 5px; letter-spacing: .06em; }
.logo-w { font: 800 25px/1 var(--ff-en); letter-spacing: .01em; display: inline-flex; }
.logo-w i, .ft-word i { font-style: normal; display: inline-block; transition: transform .5s var(--ease), color .3s; transition-delay: calc(var(--i) * 20ms); }
.logo-w .sp, .ft-word .sp { display: inline-block; width: .3em; }
.logo:hover .logo-w i { transform: translateY(-3px); color: var(--orange); }

.gnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.gnav > a { position: relative; padding: 10px 14px; font-size: 14.5px; font-weight: 700; text-decoration: none; transition: color .25s; }
.gnav > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--c, var(--orange)); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--ease); }
.gnav > a:hover::after, .gnav > a[aria-current]::after { transform: scaleX(1); transform-origin: 0 50%; }
.gnav-search { display: none; }
.hd-search-btn { display: grid; place-items: center; gap: 2px; width: 72px; height: 84px; border: 0; border-left: 1px solid var(--line); background: #fff; font: 700 10px/1 var(--ff); transition: background .25s; }
.hd-search-btn::after { content: "検索"; }
.hd-search-btn svg { width: 20px; height: 20px; }
.hd-search-btn:hover { background: var(--bg-2); }
.menu-btn {
	display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 72px; height: 72px; border: 0; background: var(--orange); color: #fff;
}
.menu-btn span { display: block; width: 26px; height: 2px; background: #fff; transition: transform .4s var(--ease), opacity .3s; }
.menu-btn em { font: 700 10px/1 var(--ff-en); font-style: normal; letter-spacing: .08em; margin-top: 4px; }
.nav-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search overlay */
.search-layer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding: 14vh 20px 20px; background: rgba(242, 119, 56, .94); animation: fade .35s var(--ease); }
.search-layer[hidden] { display: none; }
.search-big { width: min(720px, 100%); color: #fff; animation: rise .5s var(--ease); }
.search-big label { display: block; font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.search-big label .ttl-en { color: #fff; font-size: clamp(48px, 8vw, 88px); margin-bottom: 10px; }
.search-big input { width: 100%; font-size: 18px; padding: 18px 26px; border: 0; border-radius: 999px; background: #fff; margin-bottom: 20px; }
.search-big input:focus { outline: 3px solid var(--navy); }
.search-x { position: fixed; top: 20px; right: 24px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; }
.search-x svg { width: 20px; height: 20px; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

@media (max-width: 1080px) {
	.hd { min-height: 72px; gap: 0; }
	.logo-t small { display: none; }
	.hd-search-btn { margin-left: auto; height: 72px; width: 64px; }
	.menu-btn { display: flex; }
	.gnav {
		position: fixed; inset: 72px 0 0; z-index: 49; margin: 0; padding: 28px 24px 40px; flex-direction: column; align-items: stretch; gap: 0;
		background: var(--orange); overflow-y: auto; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
	}
	.nav-open .gnav { clip-path: inset(0); visibility: visible; }
	.gnav > a { font-size: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.35); color: #fff; }
	.gnav > a::after { display: none; }
	.gnav-search { display: block; margin-top: 26px; }
	.gnav-search input { width: 100%; padding: 15px 22px; border: 0; border-radius: 999px; }
	.nav-open { overflow: hidden; }
}

/* Side tabs (fixed, right edge) */
.side-tabs { position: fixed; right: 0; top: 28vh; z-index: 40; display: flex; flex-direction: column; gap: 8px; }
.side-tabs a {
	display: flex; flex-direction: column; align-items: center; gap: 8px; width: 52px; padding: 16px 0 18px; border-radius: 12px 0 0 12px;
	background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; letter-spacing: .12em;
	box-shadow: -2px 4px 14px rgba(0,0,0,.12); transition: width .35s var(--ease), background .25s;
}
.side-tabs a:hover { width: 60px; background: var(--orange-d); }
.side-tabs svg { width: 18px; height: 18px; }
.side-tabs span { writing-mode: vertical-rl; }
.side-tabs b { font: 700 15px/1 var(--ff-en); text-combine-upright: all; margin: 2px 0; }
@media (max-width: 700px) { .side-tabs { display: none; } }

/* ============================================================
   Main visual: copy on grid paper + photo slider bleeding right
   ============================================================ */
.mv { position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 6vw, 88px);
	background-color: #fff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 26px 26px; }
.mv-ribbon { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.mv-ribbon path { fill: none; stroke: var(--orange); stroke-width: 54; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease) .5s forwards; vector-effect: non-scaling-stroke; opacity: .95; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mv-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 4vw, 64px); padding-left: max(24px, (100% - 1200px) / 2); }

.mv-copy > * { animation: rise 1s var(--ease) both; }
.mv-copy > .mv-tag { animation-delay: .05s; }
.mv-copy > .mv-lead { animation-delay: .7s; }
.mv-copy > .mv-search { animation-delay: .82s; }
.mv-copy > .mv-chips { animation-delay: .94s; }
.mv-copy > .mv-h { animation: none; }
.mv-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--orange-d); }
.mv-tag::before { content: ""; width: 34px; height: 2px; background: var(--orange); }
.mv-h { margin: 0 0 26px; font: 900 clamp(34px, 3.9vw, 58px)/1.38 var(--ff); letter-spacing: .03em; color: var(--ink); }
.mv-h em { position: relative; font-style: normal; color: var(--orange); display: inline-block; }
.mv-h em::after { content: ""; position: absolute; z-index: -1; left: -.05em; right: -.05em; bottom: .08em; height: .32em; background: #FFE3CF; border-radius: 3px; transform: scaleX(0); transform-origin: 0 50%; animation: mark .9s var(--ease) 1.25s forwards; }
@keyframes mark { to { transform: scaleX(1); } }
.mv-h .ch { display: inline-block; opacity: 0; transform: translateY(.45em); animation: chIn .9s var(--ease) forwards; animation-delay: calc(.2s + var(--i) * 36ms); }
@keyframes chIn { to { opacity: 1; transform: none; } }
.mv-lead { margin: 0 0 30px; max-width: 31em; font-size: clamp(14.5px, 1.15vw, 16px); line-height: 2.05; color: var(--ink-2); }
.mv-search { position: relative; display: flex; align-items: center; max-width: 500px; margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 30px -16px rgba(0,0,0,.25); transition: border-color .25s, box-shadow .3s; }
.mv-search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.mv-search > svg { width: 18px; height: 18px; margin-left: 20px; color: var(--muted); flex-shrink: 0; }
.mv-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 17px 12px; font-size: 15.5px; outline: none; }
.mv-search input::placeholder { color: #8A8A8A; }
.mv-search .btn { min-height: 46px; margin: 5px; padding: 0 26px; }
.mv-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; }
.mv-chips span { width: 100%; font-size: 12px; color: var(--muted); }
.mv-chips a { color: var(--orange-d); font-weight: 700; text-decoration: none; }
.mv-chips a:hover { text-decoration: underline; }

.mv-visual { position: relative; height: clamp(480px, 46vw, 660px); }
@keyframes reveal { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.mv-photos { position: absolute; inset: 0; overflow: hidden; border-radius: clamp(80px, 12vw, 200px) 0 0 28px; background: var(--bg-2); animation: reveal 1.4s var(--ease) .1s both; }
.mv-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.mv-slide.is-on { opacity: 1; }
.mv-slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 60% 50%); transform: scale(1.1); }
.mv-slide.is-on img { animation: kb 8s linear forwards; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.mv-photos::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(20, 16, 12, .32)); pointer-events: none; }
.mv-cap { position: absolute; left: clamp(28px, 4vw, 56px); bottom: 34px; z-index: 2; margin: 0; display: flex; align-items: center; gap: 14px; color: #fff; font-size: clamp(14px, 1.2vw, 17px); font-weight: 700; letter-spacing: .06em; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.mv-cap-n { font: 600 13px/1 var(--ff-en); padding: 6px 10px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; text-shadow: none; }
.mv-cap-t { transition: opacity .5s, transform .5s var(--ease); }
.mv-cap.swap .mv-cap-t { opacity: 0; transform: translateY(6px); }
.mv-dots { position: absolute; right: clamp(24px, 3vw, 44px); bottom: 38px; z-index: 2; display: flex; gap: 8px; }
.mv-dots button { width: 40px; height: 16px; padding: 0; border: 0; background: none; display: grid; align-items: center; }
.mv-dots i { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.45); overflow: hidden; position: relative; }
.mv-dots i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.mv-dots [aria-selected="true"] i::after { animation: bar var(--dur, 6s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }

.mv-card { position: absolute; z-index: 3; display: flex; text-decoration: none; border-radius: 18px; box-shadow: 0 22px 44px -20px rgba(0,0,0,.4); transition: transform .4s var(--ease), box-shadow .4s; animation: cardIn 1s var(--ease) both, bob 6s ease-in-out 2s infinite; }
.mv-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -20px rgba(0,0,0,.45); }
@keyframes cardIn { from { opacity: 0; translate: 0 24px; } }
@keyframes bob { 50% { translate: 0 -6px; } }
.mv-card-count { left: clamp(-56px, -3vw, -24px); top: 22%; flex-direction: column; gap: 2px; padding: 20px 24px 18px; background: #fff; color: var(--ink); animation-delay: 1.1s, 2.4s; }
.mv-card-k { font-size: 12px; font-weight: 700; color: var(--muted); }
.mv-card-v { font-size: 15px; font-weight: 900; }
.mv-card-v b { font: 800 46px/1 var(--ff-en); color: var(--orange); margin: 0 4px; letter-spacing: -.02em; }
.mv-card-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--orange-d); }
.mv-card-tool { right: clamp(20px, 3vw, 44px); top: 30px; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; background: var(--orange); color: #fff; animation-delay: 1.3s, 3s; }
.mv-card-tool .mv-card-k { display: block; color: rgba(255,255,255,.85); font-size: 11.5px; }
.mv-card-tool b { font-size: 16px; font-weight: 900; }
.mv-card-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--orange); }
.mv-card-ic .ic { width: 24px; height: 24px; }
.mv-card:hover .arr { transform: translateX(4px); }

.mv-scroll { position: absolute; left: max(24px, (100% - 1200px) / 2 - 56px); bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 600 10.5px var(--ff-en); letter-spacing: .2em; color: var(--ink); text-decoration: none; writing-mode: vertical-rl; }
.mv-scroll i { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.mv-scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--orange); animation: drip 2s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

@media (max-width: 1200px) { .mv-scroll { display: none; } }
@media (max-width: 900px) {
	.mv { padding-top: 0; }
	.mv-ribbon { display: none; }
	.mv-in { grid-template-columns: 1fr; padding-left: 0; gap: 0; }
	.mv-visual { order: -1; height: min(78vw, 520px); margin-left: 20px; }
	.mv-photos { border-radius: 90px 0 0 20px; }
	.mv-copy { padding: 64px 20px 0; }
	.mv-card-count { left: -8px; top: auto; bottom: -46px; padding: 14px 18px 12px; }
	.mv-card-v b { font-size: 34px; }
	.mv-card-go { display: none; }
	.mv-card-tool { top: 16px; right: 16px; padding: 10px 14px 10px 10px; gap: 10px; }
	.mv-card-ic { width: 36px; height: 36px; }
	.mv-card-tool b { font-size: 14px; }
	.mv-cap { left: auto; right: 18px; bottom: 30px; font-size: 13px; }
	.mv-cap-n { display: none; }
	.mv-dots { right: auto; left: 50%; bottom: 12px; translate: -50% 0; }
	.mv-dots button { width: 28px; }
}
@media (max-width: 600px) {
	.mv-visual { height: 96vw; margin-left: 16px; }
	.mv-photos { border-radius: 64px 0 0 16px; }
	.mv-cap, .mv-card-tool { display: none; }
	.mv-card-count { left: 0; bottom: -34px; padding: 10px 16px 9px; border-radius: 14px; }
	.mv-card-k { font-size: 11px; }
	.mv-card-v { font-size: 13px; }
	.mv-card-v b { font-size: 28px; }
	.mv-dots { left: auto; right: 14px; bottom: 14px; translate: none; }
	.mv-dots button { width: 22px; }
	.mv-copy { padding: 58px 20px 0; }
	.mv-tag { font-size: 12px; letter-spacing: .04em; }
	.mv-tag::before { width: 22px; }
	.mv-h { font-size: clamp(30px, 8.6vw, 36px); }
}

/* Search form (search results, 404) */
.hero-search { position: relative; display: flex; max-width: 520px; }
.hero-search input { flex: 1; min-width: 0; padding: 16px 120px 16px 24px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15.5px; }
.hero-search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.hero-search .btn { position: absolute; right: 5px; top: 5px; bottom: 5px; min-height: 0; padding: 0 24px; }

/* ============================================================
   Marquee
   ============================================================ */
.marquee { position: relative; z-index: 1; overflow: hidden; background: var(--navy); color: #fff; }
.mq { display: flex; overflow: hidden; }
.mq > div { display: flex; flex-shrink: 0; align-items: center; gap: 40px; padding: 20px 20px; animation: mq 50s linear infinite; white-space: nowrap; }
.mq .en { font: 700 clamp(22px, 2.4vw, 32px)/1 var(--ff-en); letter-spacing: .02em; }
.mq .ja { font-size: clamp(13px, 1.1vw, 15px); font-weight: 700; color: var(--sun); position: relative; padding-right: 40px; }
.mq .ja::after { content: ""; position: absolute; right: 0; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); translate: 0 -50%; }
.marquee:hover .mq > div { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ============================================================
   Sections
   ============================================================ */
.sec { padding: clamp(72px, 8vw, 120px) 0; position: relative; }
.sec-tight { padding: 48px 0 96px; }
.sec-tint { background: var(--bg-2); }
.sec-hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 52px; }
.sec-more { text-align: center; margin: 56px 0 0; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.more:hover .arr { transform: translateX(4px); }

/* Countdown (framed box like a notice board) */
.count { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 2px solid var(--orange); }
.count-l { padding: clamp(32px, 4vw, 56px); border-right: 1px solid var(--line); }
.count-cap { margin: 34px 0 0; font-weight: 700; }
.count-num { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 6px; color: var(--orange); }
.digits { font: 800 clamp(100px, 12vw, 168px)/.92 var(--ff-en); letter-spacing: -.03em; display: inline-flex; }
.digits .dg { display: inline-block; height: .92em; overflow: hidden; }
.digits .dg > span { display: flex; flex-direction: column; transition: transform 2s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--k) * .12s); }
.digits .dg > span > b { height: .92em; font-weight: inherit; }
.count-num small { font-size: 28px; font-weight: 900; color: var(--ink); }
.count-s { margin: 0; font-size: 12.5px; color: var(--muted); }
.count .ttl-en { font-size: clamp(34px, 5.2vw, 76px); }
.count-r { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.count-h { font-size: 19px; font-weight: 900; }
.count-r ol { list-style: none; padding: 0; margin: 18px 0 30px; counter-reset: c; }
.count-r li { counter-increment: c; border-bottom: 1px solid var(--line); }
.count-r li a { display: flex; gap: 14px; align-items: center; padding: 17px 4px; font-size: 15px; font-weight: 700; text-decoration: none; transition: color .25s, background .25s; }
.count-r li a::before { content: counter(c); flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); color: #fff; font: 700 13px var(--ff-en); }
.count-r li a span { flex: 1; }
.count-r li a:hover { color: var(--orange-d); background: var(--orange-soft); }
.count-r li a:hover .arr { transform: translateX(4px); }
.count-r .btn { align-self: flex-start; }
@media (max-width: 860px) { .count { grid-template-columns: 1fr; } .count-l { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Cards */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1080px) { .grid4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .grid4 { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .grid4 { grid-template-columns: 1fr; } }
.c { position: relative; }
.c-link { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .3s; }
.c-link:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: transparent; }
.c-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.c-t { margin: 0; font-size: 15px; line-height: 1.7; font-weight: 700; letter-spacing: .03em; transition: color .25s; }
.c-link:hover .c-t { color: var(--orange-d); }
.c-ex { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: auto; font: 500 12.5px var(--ff-en); color: var(--muted); letter-spacing: .02em; }
.c-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--orange-d); font-weight: 500; }

/* Eyecatch: tinted grid paper + one thick ribbon in the category color */
.eye { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); isolation: isolate; }
.eye img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.c-link:hover .eye img { transform: scale(1.05); }
.eye-type { background-color: color-mix(in srgb, var(--c) 14%, #fff); background-image: linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px); background-size: 18px 18px; container-type: inline-size; }
.eye-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.eye-art .rb { fill: none; stroke: var(--c); stroke-width: 34; stroke-linecap: round; transition: stroke-width .6s var(--ease); }
.eye-art .dot { fill: var(--c); opacity: .5; }
.c-link:hover .eye-art .rb { stroke-width: 42; }
.eye-en { position: absolute; top: 9%; left: 7%; font: 800 clamp(11px, 4.2cqi, 18px)/1 var(--ff-en); color: var(--c); letter-spacing: .06em; }
.eye-t { position: absolute; left: 7%; bottom: 11%; width: 60%; font: 900 clamp(14px, 6cqi, 28px)/1.45 var(--ff); color: var(--ink); letter-spacing: .02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Pick up */
.pick { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px 28px; }
.pick .c-lead { grid-row: 1 / span 4; }
.c-lead .c-t { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.6; }
.c-lead .eye-t { font-size: clamp(16px, 5.2cqi, 34px); }
.c-lead .c-body { padding: 22px 26px 26px; }
.c-lead .eye-en { top: 62px; }
.c-row .c-link { flex-direction: row; align-items: stretch; }
.c-row .eye { width: 38%; flex-shrink: 0; aspect-ratio: auto; min-height: 112px; }
.c-row .eye-t { display: none; }
.c-row .eye-en { top: auto; bottom: 10%; }
.c-row .c-body { justify-content: center; gap: 10px; padding: 14px 18px; }
.c-row .meta { margin-top: 0; }
.c-rank { position: absolute; z-index: 3; top: 0; left: 0; display: flex; align-items: baseline; gap: 2px; padding: 6px 12px 7px; background: var(--orange); color: #fff; font: 700 20px/1 var(--ff-en); border-bottom-right-radius: 10px; }
.c-rank small { font-size: 11px; }
.c-row .c-rank { font-size: 15px; padding: 5px 9px 6px; }
@media (max-width: 860px) { .pick { grid-template-columns: 1fr; } .pick .c-lead { grid-row: auto; } }

/* Roadmap on orange (the "features" band) */
.sec-road { background: var(--orange); color: #fff; overflow: hidden; isolation: isolate; }
.sec-road .ttl-en, .sec-road .ttl-ja { color: #fff; }
.sec-road .ttl-ja::before { background: #fff; }
.road-ghost { position: absolute; z-index: -2; right: -2vw; top: 50%; translate: 0 -50%; font: 800 clamp(160px, 30vw, 460px)/.8 var(--ff-en); color: rgba(255,255,255,.08); letter-spacing: -.04em; pointer-events: none; }
.ribbon { position: absolute; z-index: -1; width: clamp(320px, 42vw, 640px); pointer-events: none; }
.ribbon path { fill: none; stroke-width: 34; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); }
.ribbon-a { left: -6vw; bottom: -14vw; }
.ribbon-a path { stroke: var(--teal); }
.ribbon-b { right: -6vw; top: -16vw; }
@media (max-width: 900px) { .ribbon { display: none; } }
.ribbon-b path { stroke: var(--violet); }
.road { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 30px 18px 60px; border: 1px solid rgba(255,255,255,.65); text-decoration: none; transition: background .35s var(--ease), color .35s; }
.step:hover { background: #fff; color: var(--ink); }
.step-n { font: 500 54px/1 var(--ff-serif); }
.step b { font-size: 19px; font-weight: 900; letter-spacing: .06em; margin-top: 6px; }
.step-en { font: 500 13px/1 var(--ff-serif); letter-spacing: .12em; }
.step-d { font-size: 13.5px; line-height: 1.9; margin-top: 10px; text-align: left; }
.step-go { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--orange); transition: background .3s, color .3s; }
.step:hover .step-go { background: var(--orange); color: #fff; }
.step:hover .step-go .arr { transform: translateX(3px); }
@media (max-width: 1080px) { .road { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .road { grid-template-columns: 1fr; } .step { align-items: flex-start; text-align: left; padding: 24px 22px 24px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; } .step-n { grid-row: span 3; font-size: 46px; } .step b { margin: 0; } .step-d { grid-column: 1 / -1; margin-top: 4px; } .step-go { left: auto; right: 16px; top: 22px; bottom: auto; translate: none; } }

/* Categories (academics-style list) */
.cats-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cats-hd p { margin: 28px 0 32px; color: var(--ink-2); }
.cats-hd .ttl-en, .about-in .ttl-en { font-size: clamp(40px, 4.6vw, 68px); }
.cats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cat { position: relative; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px; padding: 22px 18px 22px 22px; background: #fff; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .3s; }
.cat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); transform: scaleY(0); transform-origin: 50% 0; transition: transform .4s var(--ease); }
.cat:hover { background: color-mix(in srgb, var(--c) 8%, #fff); }
.cat:hover::before { transform: scaleY(1); }
.cat-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; }
.cat-ic .ic { width: 26px; height: 26px; transition: transform .6s var(--ease); }
.cat:hover .cat-ic .ic { transform: rotate(-12deg) scale(1.1); }
.cat-t b { display: block; font-size: 18px; font-weight: 900; }
.cat-d { display: block; font-size: 13px; color: var(--muted); line-height: 1.7; }
.cat-n { font: 700 26px/1 var(--ff-en); }
.cat-n small { font: 700 12px var(--ff); margin-left: 3px; color: var(--muted); }
.cat > .arr { color: var(--orange); }
.cat:hover > .arr { transform: translateX(4px); }
@media (max-width: 900px) { .cats-in { grid-template-columns: 1fr; } .cat { gap: 14px; padding: 18px 12px 18px 16px; } .cat-ic { width: 44px; height: 44px; } .cat-d { display: none; } }

.c.out { display: none; }
.c.flip-in { animation: rise .55s var(--ease) both; animation-delay: var(--d, 0s); }
.filter-empty { text-align: center; color: var(--muted); padding: 30px 0 0; }

/* About */
.sec-about { background: var(--bg-2); }
.about-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.about-in p { margin: 0 0 28px; color: var(--ink-2); }
.about-links { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .about-in { grid-template-columns: 1fr; } }

/* ============================================================
   Archive / page header
   ============================================================ */
.arc-hd { padding: 52px 0 40px; border-bottom: 1px solid var(--line); }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 30px; }
.crumb a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.crumb a:hover { color: var(--orange-d); text-decoration: underline; }
.arc-hd-in { display: flex; align-items: flex-end; gap: 28px; margin-bottom: 36px; }
.arc-ic { flex-shrink: 0; width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; }
.arc-ic .ic { width: 42px; height: 42px; }
.arc-desc p { margin: 18px 0 0; color: var(--ink-2); max-width: 44em; }
.arc-n { margin-left: auto; white-space: nowrap; font-weight: 700; }
.arc-n b { font: 800 64px/1 var(--ff-en); margin-right: 4px; color: var(--orange); }
@media (max-width: 700px) { .arc-hd-in { flex-wrap: wrap; } .arc-ic { width: 64px; height: 64px; } .arc-ic .ic { width: 30px; } .arc-n { margin-left: 0; } }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 64px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 48px; height: 48px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font: 700 16px var(--ff-en); text-decoration: none; transition: background .25s, color .25s; }
.pager a:hover { background: var(--orange-soft); }
.pager .current { background: var(--orange); border-color: var(--orange); color: #fff; }
.empty { text-align: center; padding: 40px 0; }
.empty .hero-search { margin: 20px auto 0; }
.empty .hero-search input { border: 1px solid var(--line); box-shadow: none; }

/* ============================================================
   Single (Read mode)
   ============================================================ */
.post-hd { padding: 48px 0 44px; border-bottom: 1px solid var(--line); }
.post-hd .meta { margin: 0 0 18px; font-size: 13px; }
.post-t { font: 900 clamp(26px, 3.3vw, 40px)/1.55 var(--ff); margin: 0 0 20px; letter-spacing: .03em; }
.post-lead { font-size: 16px; color: var(--ink-2); margin: 0 0 28px; line-height: 2; }
.byline { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.byline-mark svg { width: 44px; height: 44px; }
.byline b { display: block; font-size: 14.5px; }
.byline small { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; }

.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding: 44px 0 110px; }
.post-main { min-width: 0; max-width: 760px; }
.pr-note { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; font-size: 12.5px; color: var(--muted); }
.pr-note span, .offer-pr { display: inline-block; padding: 1px 8px; border-radius: 4px; background: var(--navy); color: #fff; font: 600 10.5px/1.7 var(--ff-en); letter-spacing: .12em; }
.post-eye { aspect-ratio: 2 / 1; border-radius: var(--r); margin-bottom: 44px; }
.post-eye .eye-t { font-size: clamp(20px, 5cqi, 38px); width: 64%; }

.toc { padding: 26px 30px 24px; margin-bottom: 56px; background: var(--bg-2); border-radius: var(--r); }
.toc-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; font-size: 16px; font-weight: 900; }
.toc-h::before { content: "INDEX"; font: 700 20px/1 var(--ff-en); color: var(--orange); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 14px; padding: 10px 0; font-size: 14.5px; font-weight: 500; text-decoration: none; border-top: 1px solid var(--line); transition: color .25s; }
.toc a::before { content: counter(t, decimal-leading-zero); font: 700 13px/1.9 var(--ff-en); color: var(--orange); }
.toc a:hover { color: var(--orange-d); }

.prose { font-size: 16.5px; line-height: 2.05; }
.prose > * + * { margin-top: 1.4em; }
.prose p { margin: 0; }
.prose > p + p { margin-top: 1.2em; }
.prose h2 { margin: 3.2em 0 1.2em; font-size: clamp(21px, 2.3vw, 26px); font-weight: 900; line-height: 1.6; letter-spacing: .03em; }
.prose h2::after { content: ""; display: block; width: 46px; height: 8px; margin-top: 14px; background: var(--sun); }
.prose h3 { margin: 2.2em 0 .8em; padding: 10px 16px; background: var(--bg-2); border-radius: 6px; font-size: 18px; font-weight: 900; line-height: 1.6; }
.prose strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(243, 162, 58, .35) 62%); }
.prose a { color: var(--orange-d); font-weight: 700; }
.prose ul, .prose ol { padding: 0 0 0 1.4em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--orange); }
.prose ol li::marker { font: 700 .95em var(--ff-en); color: var(--orange); }
.tbl, .cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.8; min-width: 560px; }
.prose th, .prose td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tr:last-child > * { border-bottom: 0; }
.prose thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: 13.5px; }
.prose tbody th { background: var(--bg-2); font-weight: 700; white-space: nowrap; }

.box { position: relative; margin: 2em 0; padding: 22px 26px; border-radius: var(--r); background: #EEF0FA; }
.box p { margin: 0; font-size: 15px; line-height: 1.95; }
.box-k { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 900; letter-spacing: .1em; color: var(--indigo); }
.box-k svg { width: 18px; height: 18px; }
.box-warn { background: var(--orange-soft); }
.box-warn .box-k { color: var(--orange-d); }
.box-memo { background: #E6F5F3; }
.box-memo .box-k { color: #19756D; }

/* Offer card */
.offer { position: relative; margin: 2.6em 0; background: #fff; border: 2px solid var(--orange); border-radius: var(--r); overflow: hidden; }
.offer > .offer-pr { position: absolute; top: 16px; right: 16px; background: #fff; color: var(--orange-d); }
.offer-hd { display: flex; flex-direction: column; gap: 2px; padding: 18px 70px 18px 26px; background: var(--orange); color: #fff; }
.offer-type { font-size: 12px; font-weight: 700; opacity: .9; }
.offer-n { font-size: 22px; font-weight: 900; letter-spacing: .03em; }
.offer > ul, .offer > dl, .offer > div:not(.offer-hd) { margin-inline: 26px; }
.prose .offer-pts { list-style: none; padding: 0; margin-top: 22px; margin-bottom: 18px; }
.offer-pts li { position: relative; padding-left: 30px; font-size: 15px; font-weight: 700; line-height: 1.8; }
.offer-pts li + li { margin-top: 8px; }
.offer-pts li::before { content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); }
.offer-pts li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; }
.offer-dl { margin-top: 0; margin-bottom: 22px; border-top: 1px solid var(--line); }
.offer-dl div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.8; }
.offer-dl dt { font-weight: 900; }
.offer-dl dd { margin: 0; color: var(--ink-2); }
.offer-ft { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 24px; text-align: center; }
.offer-ft .btn { width: min(100%, 440px); font-size: 16px; min-height: 62px; }
.offer-ft small { font-size: 11.5px; color: var(--muted); }
.prose .btn { text-decoration: none; }
.prose .btn-go { color: #fff; }
.prose .cmp-wrap table { min-width: 660px; }
.cmp thead th { vertical-align: bottom; }
.cmp thead th b { display: block; font-size: 15px; font-weight: 900; }
.cmp thead .offer-pr { background: var(--orange); }
.cmp-type { display: block; font-size: 11px; font-weight: 500; opacity: .8; margin-bottom: 4px; }
.cmp tbody th { width: 7em; }
.prose .cmp ul { padding: 0 0 0 1.1em; margin: 0; }
.cmp td { font-size: 13.5px; }
.cmp tr:last-child td { text-align: center; }
.cmp-note { font-size: 12px !important; color: var(--muted); margin-top: .8em !important; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.post-tags a { padding: 5px 14px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-d); font-size: 13px; font-weight: 700; text-decoration: none; transition: background .25s, color .25s; }
.post-tags a:hover { background: var(--orange); color: #fff; }
.post-disc { margin-top: 32px; padding: 18px 20px; background: var(--bg-2); border-radius: var(--r); font-size: 12.5px; color: var(--muted); line-height: 1.9; }

.side-sticky { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 24px; }
.side-toc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 16px; }
.side-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 14px; font-weight: 900; }
.side-h span { font: 700 18px/1 var(--ff-en); color: var(--orange); }
.side-toc ol { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow-y: auto; }
.side-toc a { position: relative; display: block; padding: 9px 0 9px 16px; font-size: 13px; font-weight: 500; line-height: 1.7; text-decoration: none; color: var(--muted); border-top: 1px solid var(--line); transition: color .25s; }
.side-toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--line); translate: 0 -50%; transition: background .25s; }
.side-toc a.on { color: var(--ink); font-weight: 700; }
.side-toc a.on::before { background: var(--orange); }
.side-count { display: flex; flex-direction: column; gap: 4px; padding: 24px; background: var(--orange); color: #fff; border-radius: var(--r); text-decoration: none; font-size: 13px; font-weight: 700; transition: transform .35s var(--ease), box-shadow .35s; }
.side-count:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.side-count b { font: 800 72px/1 var(--ff-en); letter-spacing: -.03em; }
.side-count b small { font: 900 20px var(--ff); margin-left: 6px; }
.side-count-go { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px 18px; background: #fff; color: var(--orange-d); border-radius: 999px; }
.side-count:hover .arr { transform: translateX(4px); }
@media (max-width: 1080px) { .post-grid { grid-template-columns: 1fr; gap: 0; } .post-side { display: none; } .post-main { max-width: none; } }
@media (max-width: 600px) { .prose { font-size: 16px; line-height: 2; } .offer > ul, .offer > dl, .offer > div:not(.offer-hd) { margin-inline: 18px; } .offer-hd { padding-left: 18px; } .offer-dl div { grid-template-columns: 1fr; gap: 0; } .toc { padding: 22px 20px; } }

/* 404 */
.nf { text-align: center; }
.nf-n { display: flex; justify-content: center; gap: 4px; margin: 0 0 10px; }
.nf-n i { font: 800 clamp(110px, 18vw, 200px)/1 var(--ff-en); font-style: normal; display: inline-block; color: var(--ink); }
.nf-n i:nth-child(2) { color: var(--orange); }
.nf .hero-search { margin: 28px auto; }
.nf .hero-search input { border: 1px solid var(--line); box-shadow: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-ft { position: relative; background: var(--navy); color: #fff; padding-top: 84px; margin-inline: var(--frame); overflow: hidden; }
.site-ft .logo-w { color: #fff; }
.site-ft .logo-t small { color: var(--sun); }
.ft-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.ft-brand p { color: rgba(255,255,255,.78); font-size: 13.5px; margin: 22px 0 0; max-width: 30em; line-height: 2; }
.ft-col h3 { display: flex; flex-direction: column; gap: 6px; margin: 0 0 20px; font: 700 22px/1 var(--ff-en); }
.ft-col h3 small { font: 700 12px var(--ff); color: var(--sun); }
.ft-col ul { list-style: none; margin: 0; padding: 0; }
.ft-col a { display: inline-flex; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 14px; font-weight: 500; text-decoration: none; color: rgba(255,255,255,.9); transition: color .25s; }
.ft-col a span { font: 600 12px var(--ff-en); color: rgba(255,255,255,.5); }
.ft-col a:hover { color: var(--sun); }
.ft-note { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); font-size: 12px; color: rgba(255,255,255,.66); line-height: 1.95; }
.ft-word { display: flex; justify-content: center; white-space: nowrap; margin: 40px 0 -.14em; font: 800 clamp(64px, 15.5vw, 240px)/.9 var(--ff-en); letter-spacing: -.02em; color: rgba(255,255,255,.08); user-select: none; }
.ft-word i:hover { transform: translateY(-.08em); color: var(--orange); transition-duration: .25s; transition-delay: 0s; }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 28px; position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.16); }
.ft-bottom small { font: 500 12px var(--ff-en); color: rgba(255,255,255,.7); letter-spacing: .06em; }
.to-top { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; text-decoration: none; padding: 10px 20px; background: var(--orange); border-radius: 999px; transition: background .25s; }
.to-top svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.to-top:hover { background: var(--orange-d); }
@media (max-width: 800px) { .ft-top { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }

/* ============================================================
   Scroll reveal (JS only)
   ============================================================ */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .sec-hd.rv .ttl-en, .js .cats-hd.rv .ttl-en, .js .about-in.rv .ttl-en { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease) .1s; }
.js .rv.in .ttl-en { clip-path: inset(0 -2% 0 0); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.mv-h .ch { opacity: 1; transform: none; }
	.mv-ribbon path, .ribbon path { stroke-dashoffset: 0 !important; }
	.js .rv { opacity: 1; transform: none; }
	.js .rv .ttl-en { clip-path: none !important; }
}

/* ============================================================
   Free tools
   ============================================================ */
.gnav > a.gnav-tools { margin-left: 6px; padding: 8px 18px; border-radius: 999px; background: var(--orange); color: #fff; }
.gnav > a.gnav-tools::after { display: none; }
.gnav > a.gnav-tools:hover, .gnav > a.gnav-tools[aria-current] { background: var(--orange-d); }
@media (max-width: 1080px) { .gnav > a.gnav-tools { margin: 18px 0 0; padding: 16px 22px; background: #fff; color: var(--orange-d); text-align: center; border: 0; } }

.sec-tools { background: var(--bg-2); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.tool-card::before { content: ""; position: absolute; z-index: -1; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, #fff); transition: transform .6s var(--ease); }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: transparent; }
.tool-card:hover::before { transform: scale(1.5); }
.tool-card-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--c); color: #fff; margin-bottom: 8px; }
.tool-card-ic .ic { width: 26px; height: 26px; }
.tool-card-en { font: 700 12px/1 var(--ff-en); letter-spacing: .1em; color: var(--c); }
.tool-card b { font-size: 19px; font-weight: 900; }
.tool-card-d { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }
.tool-card-ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.tool-card-ft small { font-size: 12px; color: var(--muted); font-weight: 500; }
.tool-card-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--orange-d); }
.tool-card:hover .tool-card-go .arr { transform: translateX(4px); }
.tool-note { margin: 40px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.9; }

/* In-article tool box */
.tool-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin: 2.6em 0; padding: 24px 26px; background: color-mix(in srgb, var(--c) 9%, #fff); border-radius: var(--r); }
.tool-cta-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; }
.tool-cta-ic .ic { width: 28px; height: 28px; }
.tool-cta-k { display: block; font-size: 12px; font-weight: 700; color: var(--orange-d); }
.tool-cta b { display: block; font-size: 18px; font-weight: 900; line-height: 1.5; }
.tool-cta p { margin: 4px 0 0 !important; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.prose .tool-cta .btn { color: #fff; white-space: nowrap; }
@media (max-width: 700px) { .tool-cta { grid-template-columns: 1fr; text-align: left; } .tool-cta-ic { display: none; } }

/* Tool page */
.tool-hd .ttl-en { color: var(--ink); }
.tool-spec { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.tool-spec span { padding: 4px 12px; border-radius: 999px; background: var(--c); color: #fff; font-size: 12.5px; font-weight: 700; }
.tool-spec span + span { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.tool { padding: clamp(24px, 4vw, 44px); background: #fff; border: 2px solid var(--orange); border-radius: var(--r); }
.tool-howto, .tool-prose { margin-top: 56px; }
.btn-wide { width: 100%; max-width: 420px; display: flex; margin: 32px auto 0; }

.quiz-bar { height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; margin-bottom: 30px; }
.quiz-bar i { display: block; height: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--ease); }
.q { margin: 0 0 30px; padding: 0; border: 0; opacity: .5; transition: opacity .4s; }
.q.on { opacity: 1; }
.q legend { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; padding: 0; font-size: 17px; font-weight: 900; line-height: 1.6; }
.q-n { font: 800 22px/1 var(--ff-en); color: var(--orange); flex-shrink: 0; }
.opts { display: grid; gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span, .opt-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 700 15px/1.6 var(--ff); text-align: left; color: var(--ink); transition: border-color .2s, background .2s; }
.opt span::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); transition: border .2s, box-shadow .2s; }
.opt:hover span, .opt-btn:hover { border-color: var(--orange); background: var(--orange-soft); }
.opt input:checked + span { border-color: var(--orange); background: var(--orange-soft); }
.opt input:checked + span::before { border: 5px solid var(--orange); }
.opt input:focus-visible + span { outline: 3px solid var(--indigo); outline-offset: 2px; }
.opt-btn { cursor: pointer; }
.opt-btn::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); rotate: 45deg; flex-shrink: 0; }
.quiz-msg { color: var(--orange-d); font-weight: 700; text-align: center; margin: 0; }
.tree-step.in { animation: rise .5s var(--ease); }
.tree-back { margin-top: 8px; }

.result { margin-top: 36px; outline: none; }
.tree .result { margin-top: 0; }
.result-k { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.result-badge { padding: 3px 12px; border-radius: 999px; background: var(--orange); color: #fff; }
.result-maybe .result-badge { background: var(--sun); }
.result-no .result-badge { background: var(--teal); }
.result-t { margin: 0 0 14px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; line-height: 1.5; }
.result-d { margin: 0 0 18px; line-height: 2; }
.result-list { margin: 0 0 26px; padding: 18px 22px 18px 40px; background: var(--bg-2); border-radius: 10px; }
.result-list a { color: var(--orange-d); font-weight: 700; }
.result-next { margin: 8px 0 22px; font-size: 14px; }
.result-links { display: flex; flex-wrap: wrap; gap: 12px; }
.result-note { margin: 22px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.result .prose .offer { margin-top: 1em; }

.calc { display: grid; gap: 18px; }
.calc-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
@media (max-width: 600px) { .calc-grid { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.field-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; transition: border-color .2s; }
.field-in:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.field-in input { flex: 1; min-width: 0; border: 0; padding: 14px 16px; font: 700 20px var(--ff-en); outline: none; text-align: right; }
.field-in span { padding: 0 16px; font-size: 14px; font-weight: 700; color: var(--muted); background: var(--bg-2); align-self: stretch; display: grid; place-items: center; }
.field small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--orange); flex-shrink: 0; }
.out { margin-top: 30px; padding: 24px 26px; background: var(--navy); color: #fff; border-radius: var(--r); }
.out-dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; margin: 0; }
.out-dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.out-dl dt { font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.82); }
.out-dl dd { margin: 0; font: 700 20px var(--ff-en); }
.out-dl .out-main dd { font-size: 28px; color: var(--sun); }
.out-dl-4 .out-main { grid-column: span 1; }
.out-formula { margin: 14px 0 0; font-size: 12.5px; color: rgba(255,255,255,.75); line-height: 1.8; }
@media (max-width: 600px) { .out-dl { grid-template-columns: 1fr; } }

.anbun { display: grid; gap: 8px; }
.anbun-hd, .anbun-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1fr 36px; gap: 8px; align-items: center; }
.anbun-hd { font-size: 12px; font-weight: 700; color: var(--muted); }
.anbun-row input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; }
.anbun-row input:focus { outline: none; border-color: var(--orange); }
.anbun-row input:nth-child(2), .anbun-row input:nth-child(3) { text-align: right; font-family: var(--ff-en); }
.anbun-row output { text-align: right; font: 700 15px var(--ff-en); }
.anbun-x { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--muted); }
.anbun-x svg { width: 14px; height: 14px; }
.anbun-x:hover { background: var(--orange-soft); color: var(--orange-d); }
[data-add] { justify-self: start; }
@media (max-width: 600px) { .anbun-hd { display: none; } .anbun-row { grid-template-columns: 1fr 1fr; padding: 12px; background: var(--bg-2); border-radius: 10px; } .anbun-row input:first-child { grid-column: 1 / -1; } .anbun-row output { text-align: left; } }

.cl-progress { display: flex; align-items: center; gap: 22px; margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.cl-ring { position: relative; width: 96px; height: 96px; display: grid; place-content: center; flex-shrink: 0; text-align: center; }
.cl-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.cl-ring circle { fill: none; stroke: var(--bg-2); stroke-width: 4; }
.cl-ring .cl-ring-v { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .6s var(--ease); }
.cl-ring b { font: 800 26px/1 var(--ff-en); }
.cl-ring small { font: 700 11px var(--ff-en); color: var(--muted); }
.cl-count { margin: 0; font-weight: 700; }
.cl-count b { font: 800 24px var(--ff-en); color: var(--orange); }
.cl-msg { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.cl-group { margin: 0 0 26px; padding: 0; border: 0; }
.cl-group legend { padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.cl-group legend::before { content: ""; width: 28px; height: 8px; background: var(--sun); }
.cl-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; transition: background .3s, border-color .3s; }
.cl-item label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; font-weight: 500; line-height: 1.6; }
.cl-item input { width: 20px; height: 20px; accent-color: var(--teal); flex-shrink: 0; }
.cl-item a { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--orange-d); text-decoration: none; }
.cl-item.done { background: #EEF8F6; border-color: transparent; }
.cl-item.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--teal); }

/* Contact Form 7 */
.cf { display: grid; gap: 20px; margin-top: 30px; padding: clamp(24px, 4vw, 40px); background: #fff; border: 2px solid var(--orange); border-radius: var(--r); }
.cf p { margin: 0 !important; }
.cf label { display: block; font-size: 14px; font-weight: 700; }
.cf .req, .cf .opt-l { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 4px; font-size: 11px; vertical-align: 2px; }
.cf .req { background: var(--orange); color: #fff; }
.cf .opt-l { background: var(--bg-2); color: var(--muted); }
.cf input[type=text], .cf input[type=email], .cf select, .cf textarea { display: block; width: 100%; margin-top: 8px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; font: 500 16px var(--ff); background: #fff; }
.cf textarea { min-height: 180px; resize: vertical; }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.cf-agree { font-size: 14px; text-align: center; }
.cf-agree a { color: var(--orange-d); }
.cf-submit { text-align: center; }
.cf-submit input[type=submit] { min-width: 280px; min-height: 58px; border: 0; border-radius: 999px; background: var(--orange); color: #fff; font: 700 16px var(--ff); letter-spacing: .08em; cursor: pointer; transition: background .25s; }
.cf-submit input[type=submit]:hover { background: var(--orange-d); }
.wpcf7-not-valid-tip { font-size: 12.5px; color: #C8321B; margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 14px 18px; border-radius: 10px; font-size: 14px; }
.wpcf7-spinner { display: block; margin: 10px auto 0; }
