/* =========================================================
   ジシューー テーマ  main.css
   黒 #111111 × ビビッドイエロー #FFEE00 × 白
   ========================================================= */

:root {
	--ink: #111111;
	--accent: #FFEE00;
	--paper: #FFFFFF;
	--tile: #F5F5F3;
	--line: #E6E6E3;
	--muted: #6B6B6B;
	--muted-2: #B5B5B0;
	--font: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
	--latin: 'Space Grotesk', 'Noto Sans JP', sans-serif;
	--wrap: 1152px;
	--narrow: 760px;
	--gutter: 24px;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.9;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; clip: auto; background: var(--accent); padding: 8px 14px; z-index: 1000; font-weight: 700; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }

/* ---------- 共通パーツ ---------- */
.eyebrow {
	font-family: var(--latin);
	font-size: 13px;
	letter-spacing: .18em;
	font-weight: 700;
	line-height: 1.6;
	margin-bottom: 14px;
}
.eyebrow--muted { color: var(--muted); }
.eyebrow--accent { color: var(--accent); }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 54px; padding: 0 28px; border-radius: 999px;
	font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
	border: 2px solid transparent; cursor: pointer;
}
.btn--sm { height: 40px; padding: 0 20px; font-size: 13px; }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 900; }

.pill {
	display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
	border-radius: 999px; font-size: 12px; font-weight: 900; line-height: 1; vertical-align: middle;
}
.pill--accent { background: var(--accent); color: var(--ink); }

.dot { display: inline-block; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.dot--sm { width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }

.link-underline { font-weight: 700; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }

.fill-accent { fill: var(--accent); }
.ic { width: 56px; height: auto; color: var(--ink); }
.ic .ic-fill { fill: var(--accent); stroke: var(--ink); }
.ic .ic-ink { fill: var(--ink); }
.ic--logo .ic-fill { stroke: var(--accent); }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.site-header__inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-weight: 900; font-size: 24px; letter-spacing: .03em; line-height: 1; }
.brand__by { font-family: var(--latin); font-size: 12px; color: var(--muted); letter-spacing: .12em; margin-left: 4px; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav__list { display: flex; gap: 32px; list-style: none; font-size: 14px; font-weight: 700; }
.site-nav__list a.is-muted { color: var(--muted); }
.site-nav__list .current-menu-item > a { border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

.nav-toggle {
	display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer;
	flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--ink); }

/* ---------- ヒーロー ---------- */
.hero { background: var(--accent); overflow: hidden; }
.hero__inner {
	display: grid; grid-template-columns: 1fr 520px; gap: 40px; align-items: center;
	padding-top: 64px; padding-bottom: 56px; min-height: 560px;
}
.hero__copy { display: flex; flex-direction: column; gap: 26px; }
.hero .eyebrow { margin: 0; letter-spacing: .12em; }
.hero__title { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.28; letter-spacing: -0.02em; }
.hero__lead { font-size: 16px; line-height: 1.8; font-weight: 500; max-width: 520px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__img { width: 100%; max-width: 560px; height: auto; }
.slide {
	position: absolute; width: 400px; padding: 20px 22px; background: #fff;
	border: 2px solid var(--ink); border-radius: 6px; display: flex; flex-direction: column; gap: 10px;
}
.slide__title { font-size: 12px; font-weight: 900; }
.slide svg { width: 100%; height: auto; }
.slide--1 { left: 90px; top: 0;    transform: rotate(-7deg); }
.slide--2 { left: 60px; top: 110px; transform: rotate(3deg); }
.slide--3 { left: 20px; top: 216px; transform: rotate(-2deg); box-shadow: 0 24px 40px rgba(17,17,17,.18); }

/* ---------- セクション ---------- */
.section { padding: 88px 0 80px; }
.section--tight { padding: 0 0 88px; }
.section__head { margin-bottom: 40px; }
.section__head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.section__head--rule { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 20px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.section__title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.3; }
.section__title--sm { font-size: clamp(24px, 2.6vw, 30px); }
.section__lead { font-size: 15px; line-height: 1.9; color: var(--muted); }
.section__more { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* 図解の型 */
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.type {
	display: flex; flex-direction: column; gap: 20px; padding: 26px;
	background: var(--tile); border-radius: 16px; min-height: 184px;
}
.type__icon { width: 56px; height: 38px; }
.type__body { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.type__label { font-weight: 900; font-size: 18px; }
.type__desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 記事カード */
.post-list { display: flex; flex-direction: column; }
.post-list--rule { border-top: 2px solid var(--ink); }
.card { display: grid; align-items: center; border-bottom: 1px solid var(--line); }
.card--row { grid-template-columns: 200px 1fr auto; gap: 32px; padding: 22px 0; }
.card--compact { grid-template-columns: 110px 130px 1fr; gap: 24px; padding: 16px 0; }
.card--grid { display: flex; flex-direction: column; gap: 10px; border: 0; }
.card__body { display: flex; flex-direction: column; gap: 8px; }
.card__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card__cat { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.card__tpl { font-size: 12px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; }
.card__title { font-weight: 900; font-size: 22px; line-height: 1.45; }
.card__title--sm { font-size: 16px; font-weight: 700; }
.card--grid .card__title--sm { font-weight: 900; font-size: 14px; }
.card__date { font-family: var(--latin); font-size: 13px; color: var(--muted); white-space: nowrap; }

.card-thumb { height: 112px; background: var(--tile); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-thumb--image img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb__svg { width: 96px; height: auto; }
.card--grid .card-thumb { height: 120px; background: #fff; }

/* 黒帯 */
.band { background: var(--ink); color: #fff; }
.band__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.band__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.band__copy .eyebrow { margin: 0; }
.band__title { font-size: clamp(22px, 2.5vw, 30px); line-height: 1.4; color: #fff; }
.band__lead { font-size: 15px; line-height: 1.9; color: var(--muted-2); }
.band__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { background: #fff; color: var(--ink); border-radius: 12px; padding: 22px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.tile .ic { width: 100%; }

/* ドリル・書いている人 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.two-col__item { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.two-col__item .eyebrow { margin: 0; display: flex; align-items: center; gap: 12px; }
.drill-sample { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--tile); border-radius: 16px; width: 100%; }
.drill-sample .eyebrow { margin: 0; letter-spacing: .14em; }
.drill-sample__q { font-weight: 900; font-size: 17px; line-height: 1.5; }
.drill-sample__meta { font-size: 13px; color: var(--muted); }

.author { display: flex; gap: 20px; align-items: center; }
.author--home { gap: 24px; }
.author__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--tile); flex-shrink: 0; }
.author--home .author__avatar { width: 96px; height: 96px; }
.author__name { font-weight: 900; font-size: 15px; }
.author__desc { font-size: 13px; color: var(--muted); line-height: 1.7; }
.author__desc .link-underline { color: var(--ink); }

/* ---------- 記事ページ ---------- */
.entry { padding: 56px 0 64px; }
.entry__header { display: flex; flex-direction: column; gap: 18px; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.entry__labels { display: flex; gap: 10px; align-items: center; }
.entry__title { font-size: clamp(26px, 3vw, 36px); line-height: 1.45; }
.entry__meta { display: flex; gap: 18px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.entry__meta time { font-family: var(--latin); }
.entry__thumb { margin: 0 auto 32px; }
.entry__thumb img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }

.entry-content { font-size: 17px; line-height: 2; }
.entry-content > * { margin-top: 0; margin-bottom: 28px; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 {
	font-size: 22px; line-height: 1.45; margin-top: 48px; padding: 12px 20px;
	background: var(--ink); color: #fff; border-radius: 8px;
}
.entry-content h2 a { color: #fff; border-bottom-color: #fff; }
.entry-content h3 { font-size: 20px; line-height: 1.5; margin-top: 36px; }
.entry-content h4 { font-size: 17px; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li { margin-bottom: .3em; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figure img { border: 1px solid var(--line); border-radius: 8px; }
.entry-content figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.entry-content a { border-bottom: 1px solid var(--ink); }
.entry-content blockquote { margin: 0 0 28px; padding: 16px 24px; background: var(--tile); border-left: 4px solid var(--ink); border-radius: 0 8px 8px 0; }
.entry-content strong { font-weight: 900; }
.entry-content .has-vivid-red-color { color: #D62828; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; }
.entry-content th { background: var(--tile); }
.entry-content code { background: var(--tile); padding: .1em .4em; border-radius: 4px; font-size: .9em; }

/* ファイルブロック（テンプレDL）を黒箱CTAに */
.entry-content .wp-block-file {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding: 24px 28px; background: var(--ink); color: #fff; border-radius: 16px;
}
.entry-content .wp-block-file > a:first-child { color: #fff; font-weight: 900; font-size: 17px; border: 0; }
.entry-content .wp-block-file .wp-block-file__button {
	background: var(--accent); color: var(--ink); border-radius: 999px; padding: 12px 24px;
	font-weight: 900; font-size: 14px; border: 0; white-space: nowrap;
}

/* 目次（JSで生成） */
.toc { padding: 24px 28px; background: var(--tile); border-radius: 12px; margin-bottom: 40px; }
.toc__title { font-weight: 900; font-size: 14px; margin-bottom: 8px; }
.toc ol { padding-left: 22px; font-size: 15px; line-height: 1.8; font-weight: 500; }
.toc a { border: 0; }

.entry__footer { display: flex; flex-direction: column; gap: 28px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.entry__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--tile); padding: 4px 10px; border-radius: 999px; }

/* この記事を書いた人 */
.author-box { border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; }
.author-box__label { font-family: var(--latin); font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.author-box__inner { display: flex; gap: 20px; align-items: flex-start; }
.author-box__avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--tile); }
.author-box__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.author-box__name { font-weight: 900; font-size: 18px; line-height: 1.4; }
.author-box__title { font-size: 13px; font-weight: 700; color: var(--muted); }
.author-box__desc { font-size: 14px; line-height: 1.8; margin-top: 6px; }
.author-box__x { align-self: flex-start; margin-top: 8px; font-size: 14px; }

.related { background: var(--tile); padding: 56px 0 64px; }
.related__title { font-size: 22px; margin-bottom: 24px; }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- 一覧・固定ページ ---------- */
.archive-head { padding: 56px 0 32px; }
.archive-head .breadcrumb { margin-bottom: 20px; }
.archive-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.archive-head__title { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.2; }
.archive-head__count { font-family: var(--latin); font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.archive-head__desc { margin-top: 12px; color: var(--muted); font-size: 15px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.filter { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; background: var(--tile); border-radius: 999px; font-weight: 700; font-size: 13px; }
.filter.is-active { background: var(--ink); color: #fff; }
.empty { color: var(--muted); padding: 40px 0; }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--tile); font-weight: 700; font-size: 14px; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; }
.pagination .page-numbers.dots { background: transparent; }

.page-head { background: var(--accent); padding: 56px 0 48px; }
.page-head .breadcrumb { color: var(--ink); opacity: .7; margin-bottom: 16px; }
.page-head__title { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.25; }
.page-head .eyebrow { margin-bottom: 10px; }
.entry--page { padding: 56px 0 80px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: var(--muted-2); font-size: 13px; }
.site-footer__inner { padding-top: 40px; padding-bottom: 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.brand--footer .brand__mark { width: 26px; height: 26px; }
.brand--footer .brand__name { color: #fff; font-size: 18px; }
.brand--footer .ic--logo { color: #fff; }
.site-footer__tagline { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.site-footer__by { font-family: var(--latin); font-size: 12px; letter-spacing: .12em; margin-top: 4px; }
.site-footer__list { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer__list a { color: var(--muted-2); }
.site-footer__copy { grid-column: 1 / -1; font-family: var(--latin); font-size: 12px; letter-spacing: .06em; padding-top: 16px; border-top: 1px solid #2A2A2A; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1024px) {
	.hero__inner { grid-template-columns: 1fr; min-height: 0; }
	.hero__art { max-width: 520px; margin: 0 auto; }
	.types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.section__head--split { grid-template-columns: 1fr; gap: 16px; }
	.band__inner { grid-template-columns: 1fr; gap: 40px; }
	.two-col { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 768px) {
	:root { --gutter: 16px; }
	.site-header__inner { height: 64px; }
	.brand__name { font-size: 20px; }
	.brand__by { display: none; }
	.nav-toggle { display: flex; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 64px;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
	}
	.site-nav.is-open { display: flex; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
	.site-nav__x { margin-top: 12px; }

	.hero__inner { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
	.hero__title { font-size: 30px; }
	.hero__lead { font-size: 15px; }
	.hero__art { width: 100%; }
	.btn { height: 48px; padding: 0 22px; font-size: 14px; }

	.section { padding: 56px 0 48px; }
	.section--tight { padding-bottom: 56px; }
	.section__head { margin-bottom: 24px; }
	.section__head--rule { flex-direction: column; align-items: flex-start; gap: 12px; }
	.types { gap: 10px; }
	.type { padding: 18px; min-height: 0; gap: 14px; }
	.type__icon { width: 44px; height: 30px; }
	.type__label { font-size: 16px; }

	.card--row { grid-template-columns: 96px 1fr; gap: 14px; padding: 16px 0; }
	.card--row .card__date { grid-column: 2; }
	.card-thumb { height: 64px; border-radius: 8px; }
	.card-thumb__svg { width: 56px; }
	.card__title { font-size: 16px; }
	.card--compact { grid-template-columns: 1fr; gap: 4px; }
	.card--compact .card__cat { display: none; }

	.band__inner { padding-top: 56px; padding-bottom: 56px; }
	.band__tiles { gap: 10px; }
	.tile { padding: 12px; }

	.entry { padding: 32px 0 48px; }
	.entry-content { font-size: 16px; line-height: 1.9; }
	.entry-content h2 { font-size: 19px; padding: 10px 16px; margin-top: 40px; }
	.author-box { padding: 20px; }
	.author-box__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
	.author-box__avatar { width: 64px; height: 64px; }
	.entry-content h3 { font-size: 18px; }
	.entry-content .wp-block-file { flex-direction: column; align-items: flex-start; padding: 20px; }
	.related__grid { grid-template-columns: 1fr; }
	.card--grid { flex-direction: row; align-items: center; gap: 14px; }
	.card--grid .card-thumb { width: 96px; height: 64px; flex-shrink: 0; }
	.card--grid .card__cat { display: none; }

	.archive-head { padding: 32px 0 20px; }
	.archive-head__row { flex-direction: column; align-items: flex-start; gap: 8px; }
	.page-head { padding: 36px 0 32px; }

	.site-footer__inner { grid-template-columns: 1fr; }
	.site-footer__list { gap: 16px 24px; }
}

/* v0.2.1: プロフィール欄を記事上部へ */
.author-box--top { margin: 0 auto 32px; }
