/* ==========================================================================
   PYLORHYTHM — main.css
   デザイン: 生成りの地 × 墨の文字。アクセントは2色のみ
     青  (--c-link) … 情報・リンク
     橙  (--c-cta)  … 成約（申し込みボタン）だけに使う
   ========================================================================== */

:root {
	--c-bg: #F6F5F1;
	--c-surface: #FFFFFF;
	--c-ink: #17191E;
	--c-text: #3D414B;
	--c-sub: #5A5F6B;
	--c-line: #E3E1DA;
	--c-line-soft: #EFEDE7;
	--c-link: #2F4DB8;
	--c-link-hover: #223A8F;
	--c-link-soft: #ECEFFA;
	--c-cta: #C2410C;
	--c-cta-hover: #9A3412;
	--c-cta-soft: #FFF4EC;
	--c-cta-line: #F3D9C6;

	--f-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
	--f-display: "Zen Kaku Gothic New", var(--f-body);
	--f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--w-container: 1128px;
	--gutter: 24px;
	--radius: 12px;
}

/* カテゴリ配色（アイキャッチ・一覧の見出し帯） */
.is-ai      { --cat-bg: #1E2230; --cat-fg: #9DB2F2; --cat-soft: #ECEFFA; --cat-ink: #2F4DB8; }
.is-cms     { --cat-bg: #1F2E28; --cat-fg: #8FD1B0; --cat-soft: #E6F2EC; --cat-ink: #1F6B47; }
.is-front   { --cat-bg: #2A2233; --cat-fg: #C9B2F0; --cat-soft: #F0EAFA; --cat-ink: #5B3E96; }
.is-dev     { --cat-bg: #2B2A25; --cat-fg: #E0CD8E; --cat-soft: #F5F0DF; --cat-ink: #6E5A1B; }
.is-blog    { --cat-bg: #1F2B33; --cat-fg: #94C9E6; --cat-soft: #E6F1F7; --cat-ink: #1D5E80; }
.is-career  { --cat-bg: #3A2418; --cat-fg: #F4B183; --cat-soft: #FFF0E6; --cat-ink: #C2410C; }
.is-default { --cat-bg: #23262D; --cat-fg: #C9CCD3; --cat-soft: #EFEFEF; --cat-ink: #3D414B; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--c-link); }
a:hover { color: var(--c-link-hover); }
:focus-visible { outline: 3px solid var(--c-link); outline-offset: 2px; }
button { font: inherit; }
.mono { font-family: var(--f-mono); }
.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: -9999px; top: 8px; z-index: 100; background: var(--c-ink); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: calc(var(--w-container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(800px + var(--gutter) * 2); }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .06em; color: var(--c-link); }
.panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.more-link { font-size: 14px; font-weight: 500; white-space: nowrap; }
.more-link--accent { color: var(--c-cta); font-weight: 700; }
.more-link--accent:hover { color: var(--c-cta-hover); }

/* ---------- monogram（顔写真の代わり） ---------- */
.monogram {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	border-radius: 50%; background: var(--c-ink); color: #fff;
	font-family: var(--f-mono); letter-spacing: .04em;
	width: 56px; height: 56px; font-size: 17px;
}
.monogram--xs { width: 28px; height: 28px; font-size: 10px; }
.monogram--lg { width: 64px; height: 64px; font-size: 19px; }
.monogram--xl { width: 88px; height: 88px; font-size: 26px; }

/* ---------- header ---------- */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.site-header__bar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--c-ink); min-width: 0; }
.brand:hover { color: var(--c-ink); }
.brand__logo { display: block; width: 250px; height: auto; }
.brand__name { font-family: var(--f-display); font-weight: 900; font-size: 24px; letter-spacing: .08em; }
.brand__tagline { font-size: 12px; color: var(--c-sub); white-space: nowrap; }
.site-header__actions { display: flex; align-items: center; gap: 24px; }
.site-header__link { font-size: 14px; color: var(--c-ink); text-decoration: none; }
.site-header__link:hover { color: var(--c-link); }
.icon-btn {
	width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--c-line); border-radius: 22px; background: var(--c-surface); color: var(--c-ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--c-ink); }
.icon-btn--menu { display: none; }
.site-search { padding-block: 0 16px; }
.site-nav { border-top: 1px solid var(--c-line-soft); }
.site-nav ul { list-style: none; margin: 0 auto; display: flex; gap: 32px; height: 48px; align-items: stretch; }
.site-nav a { display: flex; align-items: center; height: 100%; font-size: 14px; font-weight: 500; color: var(--c-ink); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--c-link); }
.site-nav a[aria-current="page"] { color: var(--c-link); font-weight: 700; border-bottom-color: var(--c-link); }
.site-nav a.is-accent { color: var(--c-cta); font-weight: 700; }
.site-nav a.is-accent[aria-current="page"] { border-bottom-color: var(--c-cta); }
.site-nav__sp { display: none; }

/* ---------- search form ---------- */
.search-form { display: flex; gap: 8px; }
.search-form input {
	flex: 1; min-width: 0; height: 44px; border: 1px solid #D5D2C9; border-radius: 8px; padding: 0 12px;
	font: inherit; font-size: 16px; background: #fff; color: var(--c-ink);
}
.search-form button {
	width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 8px; background: var(--c-ink); color: #fff;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- breadcrumb ---------- */
.breadcrumb ol { list-style: none; margin: 0; padding: 20px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 12px; color: var(--c-sub); }
.breadcrumb li { min-width: 0; max-width: 100%; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; }
.breadcrumb a { color: var(--c-sub); }
/* 記事タイトルは長いので、画面幅に収めて省略する（はみ出し防止） */
.breadcrumb [aria-current] { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- eyecatch（文字アイキャッチ／画像） ---------- */
.eyecatch { position: relative; overflow: hidden; background: var(--cat-bg); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.eyecatch--img { background: var(--c-line-soft); display: block; }
.eyecatch--img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eyecatch__label { font-family: var(--f-mono); color: var(--cat-fg); letter-spacing: .04em; }
.eyecatch__text { font-family: var(--f-display); font-weight: 900; line-height: 1.4; overflow-wrap: anywhere; }
.eyecatch--card { padding: 22px 24px; }
.eyecatch--card .eyecatch__label { font-size: 12px; }
.eyecatch--card .eyecatch__text { font-size: 21px; }
.eyecatch--row { width: 224px; flex-shrink: 0; border-radius: 8px; padding: 14px 16px; }
.eyecatch--row .eyecatch__label { font-size: 10px; }
.eyecatch--row .eyecatch__text { font-size: 15px; }
.eyecatch--hero { border-radius: 10px; padding: 36px 40px; margin-bottom: 36px; }
.eyecatch--hero .eyecatch__label { font-size: 13px; }
.eyecatch--hero .eyecatch__text { font-size: 36px; }

/* ---------- category tag ---------- */
.cat-tag {
	display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; line-height: 1.6;
	padding: 3px 10px; border-radius: 4px; background: var(--cat-soft); color: var(--cat-ink); text-decoration: none;
}
.cat-tag:hover { color: var(--cat-ink); text-decoration: underline; }

/* ---------- hero (front) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px 88px; align-items: center; padding-block: 72px 64px; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__title { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 48px; line-height: 1.35; letter-spacing: .02em; }
.hero__lead { margin: 0; color: var(--c-text); line-height: 1.9; max-width: 600px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line); font-size: 13px; color: var(--c-ink); text-decoration: none; }
.chips a:hover { border-color: var(--c-ink); }

.feature-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 14px; background: #3A2418; color: #fff; text-decoration: none; }
.feature-card:hover { color: #fff; background: #4A2E1F; }
.feature-card__badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px; background: #F4B183; color: #3A2418; }
.feature-card__title { font-family: var(--f-display); font-weight: 900; font-size: 26px; line-height: 1.45; }
.feature-card__lead { font-size: 14px; line-height: 1.8; color: #F2DDD0; }
.feature-card__more { font-size: 14px; font-weight: 700; color: #F4B183; padding-top: 14px; border-top: 1px solid #5A3A2A; }
.feature-card--compact { padding: 24px; gap: 10px; }
.feature-card--compact .feature-card__title { font-size: 19px; }
.feature-card--compact .feature-card__more { border-top: 0; padding-top: 0; }

/* ---------- sections ---------- */
.section { padding-block: 0 72px; display: flex; flex-direction: column; gap: 28px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section__head > div { display: flex; flex-direction: column; gap: 8px; }
.section__title { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 28px; line-height: 1.4; }
.section__lead { margin: 0; font-size: 14px; color: var(--c-sub); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.card:hover { border-color: var(--c-ink); }
.card__link { display: block; color: var(--c-ink); text-decoration: none; height: 100%; }
.card__link:hover { color: var(--c-ink); }
.card__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.card__title { margin: 0; font-size: 16px; line-height: 1.65; font-weight: 700; }
.card__body time { font-size: 12px; color: var(--c-sub); }

.band { padding-block: 64px; }
.band--career { background: var(--c-cta-soft); border-block: 1px solid var(--c-cta-line); margin-bottom: 72px; }
.band--career .eyebrow { color: var(--c-cta); font-size: 12px; }
.num-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.num-grid a { display: flex; gap: 16px; align-items: flex-start; height: 100%; padding: 20px; background: var(--c-surface); border: 1px solid var(--c-cta-line); border-radius: var(--radius); color: var(--c-ink); text-decoration: none; }
.num-grid a:hover { border-color: var(--c-cta); color: var(--c-ink); }
.num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px; background: #3A2418; color: #F4B183; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.num-grid__title { font-size: 15px; font-weight: 700; line-height: 1.65; }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px 88px; }
.split__main, .split__side { display: flex; flex-direction: column; gap: 20px; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li + li { border-top: 1px solid var(--c-line-soft); }
.rank-list a { display: flex; gap: 20px; align-items: center; padding: 18px 24px; color: var(--c-ink); text-decoration: none; }
.rank-list a:hover .rank-list__title { color: var(--c-link); }
.rank-list__no { font-size: 22px; color: var(--c-link); width: 32px; flex-shrink: 0; }
.rank-list__body { display: flex; flex-direction: column; gap: 4px; }
.rank-list__title { font-size: 15px; font-weight: 700; line-height: 1.6; }
.rank-list__cat { font-size: 12px; color: var(--c-sub); }

/* ---------- profile ---------- */
.profile-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.profile-card__head { display: flex; gap: 14px; align-items: center; }
.profile-card__name { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; }
.profile-card__role { margin: 0; font-size: 12px; color: var(--c-sub); line-height: 1.5; }
.profile-card__bio { margin: 0; font-size: 13px; line-height: 1.85; color: var(--c-text); }
.split__side .profile-card { padding: 28px; gap: 16px; }
.split__side .profile-card__name { font-size: 18px; }
.split__side .profile-card__bio { font-size: 14px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats li { background: var(--c-bg); border-radius: 8px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stats__value { font-family: var(--f-display); font-weight: 900; font-size: 20px; line-height: 1.3; }
.stats__label { font-size: 11px; color: var(--c-sub); }

/* ---------- layout (single / archive) ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-block: 24px 80px; }
.layout--archive { padding-top: 48px; }
.layout__side { display: flex; flex-direction: column; gap: 24px;
	/* 親が align-items:start なので、指定しないと箱が中身の高さで終わり、
	   追従目次が記事の途中で画面から消える */
	align-self: stretch; }

/* ---------- article ---------- */
.article { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; padding: 48px 56px 56px; min-width: 0; }
.article--page { margin-block: 24px 80px; }
.article__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.article__title { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 32px; line-height: 1.5; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 13px; color: var(--c-sub); }
.article__author { display: inline-flex; gap: 8px; align-items: center; }
.pr-notice { margin: 0; font-size: 12px; color: var(--c-sub); background: var(--c-bg); border-radius: 6px; padding: 8px 12px; }
.pr-badge { display: inline-block; font-size: 11px; line-height: 1.5; color: var(--c-sub); border: 1px solid var(--c-line); border-radius: 4px; padding: 1px 8px; }

/* ---------- entry content（本文） ---------- */
.entry-content { font-size: 16px; line-height: 2; color: var(--c-ink); overflow-wrap: anywhere; }
.entry-content > * { margin-block: 0 1.6em; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-family: var(--f-display); font-weight: 900; font-size: 26px; line-height: 1.5; margin: 2.4em 0 1em; padding-bottom: 12px; border-bottom: 2px solid var(--c-ink); }
.entry-content h3 { font-size: 20px; line-height: 1.6; margin: 2em 0 .8em; padding-left: 14px; border-left: 4px solid var(--c-ink); }
.entry-content h4 { font-size: 17px; margin: 1.6em 0 .6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .3em; }
.entry-content img { border-radius: 8px; }
.entry-content figure, .entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text, .entry-content figcaption { font-size: 13px; color: var(--c-sub); text-align: center; }
.entry-content blockquote { margin-inline: 0; padding: 16px 20px; background: var(--c-bg); border-radius: 8px; color: var(--c-text); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--c-bg); }
.entry-content code { font-family: var(--f-mono); font-size: .88em; background: var(--c-bg); border: 1px solid var(--c-line-soft); border-radius: 4px; padding: .1em .35em; }
.entry-content pre { overflow-x: auto; background: #1E2230; color: #E6E9F2; border-radius: 8px; padding: 18px 20px; font-size: 14px; line-height: 1.7; }
.entry-content pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.entry-content .hcb_wrap pre { border-radius: 8px; } /* Highlighting Code Block */
.entry-content iframe { display: block; margin-inline: auto; }

.toc { background: var(--c-bg); border-radius: 10px; padding: 24px 28px; }
.toc__title { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 14px; line-height: 2.1; }

.ad-slot { text-align: center; margin-block: 2.4em; }
.ad-slot__label { display: block; font-size: 11px; color: var(--c-sub); margin-bottom: 4px; }
.ad-slot--sidebar { margin: 0; }
/* 広告のあとに見出しが続くとき、広告と見出しの間隔を詰めすぎない */
.entry-content .ad-slot + h2 { margin-top: 2.4em; }
@media (max-width: 1024px) { .ad-slot--sidebar { display: none; } }

/* 記事内のボックス（本文で <div class="box-conclusion"> などと書く） */
.box-conclusion { border: 2px solid var(--c-ink); border-radius: 10px; padding: 24px 28px; }
.box-experience { background: var(--c-link-soft); border-radius: 10px; padding: 24px 28px; }
.box-conclusion > :first-child, .box-experience > :first-child { margin-top: 0; }
.box-conclusion > :last-child, .box-experience > :last-child { margin-bottom: 0; }

/* ---------- affiliate parts ---------- */
.btn-cta {
	display: inline-flex; align-items: center; justify-content: center; text-align: center;
	background: var(--c-cta); color: #fff; font-weight: 700; text-decoration: none; border-radius: 8px;
	padding: 14px 24px; line-height: 1.5; transition: background .15s;
}
.btn-cta:hover { background: var(--c-cta-hover); color: #fff; }
.btn-cta--block { display: flex; width: 100%; padding: 16px; font-size: 16px; }
.btn-cta--sm { padding: 10px 14px; font-size: 13px; width: 100%; }

.svc-card { border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; line-height: 1.8; }
.svc-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--c-line-soft); }
.svc-card__head > div { display: flex; flex-direction: column; gap: 2px; }
.svc-card__kind { font-size: 12px; color: var(--c-sub); }
.svc-card__name { font-size: 20px; font-weight: 700; }
.svc-card__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 20px 24px; }
.svc-card__col-title { font-size: 13px; font-weight: 700; }
.svc-card__col.is-pros .svc-card__col-title { color: #1F7A4D; }
.svc-card__col.is-cons .svc-card__col-title { color: #B42318; }
.svc-card__col ul { margin: 8px 0 0; padding-left: 1.2em; font-size: 14px; }
.svc-card__foot { padding: 0 24px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.svc-card__head + .svc-card__foot { padding-top: 20px; }
.svc-card__micro { font-size: 12px; color: var(--c-sub); }
.svc-missing { background: #FEF3F2; color: #B42318; border-radius: 8px; padding: 12px 16px; font-size: 13px; }

.compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); border-radius: 10px;
	/* 右端に影。スクロールしきると消えるので、続きがあることが伝わる */
	background: linear-gradient(to right, #fff 40%, rgba(255,255,255,0)) 0 0 / 32px 100% no-repeat,
		radial-gradient(farthest-side at 100% 50%, rgba(23,25,30,.14), rgba(23,25,30,0)) 100% 0 / 14px 100% no-repeat;
	background-attachment: local, scroll; }
/* 固定幅にすると社数が増えたとき列が潰れるので、列ごとの最小幅で伸ばす */
.entry-content .compare table { min-width: 100%; margin: 0; border: 0; }
.entry-content .compare th, .entry-content .compare td { border: 0; border-bottom: 1px solid var(--c-line-soft); padding: 14px 16px; }
.entry-content .compare thead th { background: var(--c-ink); color: #fff; }
.entry-content .compare thead th:not(:first-child), .entry-content .compare tbody td { min-width: 148px; }
/* 項目名の列を固定する。これが無いと横スクロール中に何の値か分からなくなる */
.entry-content .compare thead th:first-child, .entry-content .compare tbody th {
	position: sticky; left: 0; z-index: 2; width: 132px; min-width: 132px; white-space: nowrap;
	box-shadow: 1px 0 0 var(--c-line-soft); }
.entry-content .compare tbody th { background: var(--c-bg); font-weight: 500; }
.entry-content .compare tr:last-child > * { border-bottom: 0; }
.compare__note { margin: 8px 0 0; font-size: 12px; color: var(--c-sub); }

.sticky-cta {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none;
	align-items: center; gap: 10px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
	background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -4px 16px rgba(23, 25, 30, .08);
}
.sticky-cta__text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.4; }
.sticky-cta__text span { font-size: 10px; color: var(--c-sub); }
.sticky-cta__text strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-cta .btn-cta { width: auto; white-space: nowrap; padding: 12px 18px; font-size: 14px; }

/* ---------- author box ---------- */
.author-box { display: flex; gap: 20px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-line); }
.author-box__body { display: flex; flex-direction: column; gap: 6px; }
.author-box__body p { margin: 0; }
.author-box__eyebrow { font-size: 12px; color: var(--c-sub); }
.author-box__name { font-size: 18px; font-weight: 700; }
.author-box__name span { font-size: 13px; font-weight: 400; color: var(--c-sub); margin-left: 4px; }
.author-box__bio { font-size: 14px; line-height: 1.85; color: var(--c-text); }

/* ---------- side ---------- */
.side-toc { padding: 24px; }
/* 目次と関連記事をまとめて追従させる。個別に sticky にすると下の要素が
   上の要素の裏を通って重なるため、ひとつの箱にして動かす。
   目次が長い記事では画面を超えるので、はみ出した分はこの箱の中でスクロールさせる */
.side-sticky { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px;
	max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.admin-bar .side-sticky { top: 56px; max-height: calc(100vh - 80px); }
.side-toc__title { margin: 0 0 12px; font-size: 12px; letter-spacing: .06em; color: var(--c-sub); }
.side-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.side-toc a { display: block; font-size: 13px; line-height: 1.6; color: var(--c-sub); text-decoration: none; padding-left: 12px; border-left: 2px solid var(--c-line); }
.side-toc a:hover { color: var(--c-ink); }
.side-toc a.is-active { color: var(--c-ink); font-weight: 700; border-left-color: var(--c-link); }
.related { padding: 24px; }
.related__title, .side-search__title { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li + li { border-top: 1px solid var(--c-line-soft); }
.related a { display: block; padding-block: 12px; font-size: 14px; line-height: 1.7; color: var(--c-ink); text-decoration: none; }
.related a:hover { color: var(--c-link); }
.side-search { padding: 20px 24px; }

/* ---------- archive ---------- */
.archive-head { background: var(--cat-bg); color: #fff; padding-block: 0 56px; }
.archive-head .breadcrumb ol, .archive-head .breadcrumb a { color: var(--cat-fg); }
.archive-head .breadcrumb ol { padding-bottom: 32px; }
.archive-head .eyebrow { color: var(--cat-fg); }
.archive-head__title { margin: 12px 0 0; font-family: var(--f-display); font-weight: 900; font-size: 40px; line-height: 1.4; }
.archive-head__desc { max-width: 720px; font-size: 15px; line-height: 1.9; opacity: .88; }
.archive-head__desc p { margin: 12px 0 0; }
.archive-head__count { margin: 12px 0 0; font-size: 13px; color: var(--cat-fg); }

.row-list { display: flex; flex-direction: column; gap: 16px; }
.row-card__link { display: flex; gap: 24px; padding: 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-ink); text-decoration: none; transition: border-color .15s; }
.row-card__link:hover { border-color: var(--c-ink); color: var(--c-ink); }
.row-card__body { display: flex; flex-direction: column; gap: 8px; padding: 4px 8px 4px 0; min-width: 0; }
.row-card__title { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 700; }
.row-card__desc { margin: 0; font-size: 13px; line-height: 1.8; color: var(--c-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-card__body time { font-size: 12px; color: var(--c-sub); }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; font-family: var(--f-mono); font-size: 14px; }
.pager .page-numbers.prev, .pager .page-numbers.next { font-family: var(--f-body); }
.pager .page-numbers.is-current { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; }
.empty { padding: 24px; }

.not-found { margin-block: 48px 80px; display: flex; flex-direction: column; gap: 16px; }
.not-found p { margin: 0; }

/* ---------- Pz-LinkCard を本文になじませる ---------- */
.entry-content .linkcard { margin-block: 0 1.6em; }

/* ---------- footer ---------- */
.site-footer { background: var(--c-ink); color: #C9CCD3; padding-block: 48px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 48px; flex-wrap: wrap; }
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.site-footer .brand__name { color: #fff; font-size: 20px; }
.site-footer__note { font-size: 12px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 13px; }
.site-footer a { color: #C9CCD3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__copy { font-size: 12px; }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.hero, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.card-grid, .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.layout__side { display: grid; grid-template-columns: minmax(0, 1fr); }
	.side-toc { display: none; }
	.side-sticky { position: static; max-height: none; overflow: visible; }
	.brand__tagline { display: none; }
}

@media (max-width: 768px) {
	:root { --gutter: 16px; }
	body { font-size: 15px; }
	.site-header__bar { height: 56px; }
	.brand__logo { width: 190px; }
	.brand__name { font-size: 19px; }
	.site-header__actions { gap: 0; }
	.site-header__link { display: none; }
	.icon-btn { border: 0; }
	.icon-btn--menu { display: inline-flex; }
	.site-nav { display: none; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; height: auto; gap: 0; padding-block: 8px; }
	.site-nav li + li { border-top: 1px solid var(--c-line-soft); }
	.site-nav a { height: auto; padding-block: 12px; border-bottom: 0; }
	.site-nav__sp { display: block; }

	.hero { padding-block: 40px 48px; }
	.hero__title { font-size: 32px; }
	.section { padding-bottom: 56px; }
	.section__title { font-size: 22px; }
	.section__head { flex-direction: column; align-items: flex-start; }
	.card-grid, .num-grid { grid-template-columns: minmax(0, 1fr); }
	.band { padding-block: 48px; }
	.rank-list a { padding: 16px; gap: 14px; }

	.layout { padding-block: 16px 56px; }
	.layout__side { grid-template-columns: minmax(0, 1fr); }
	.article { padding: 20px 16px 32px; border-radius: 0; border-inline: 0; margin-inline: calc(var(--gutter) * -1); }
	.article__title { font-size: 23px; line-height: 1.55; }
	.eyecatch--hero { padding: 20px 22px; margin-bottom: 24px; }
	.eyecatch--hero .eyecatch__label { font-size: 11px; }
	.eyecatch--hero .eyecatch__text { font-size: 26px; }
	.entry-content { font-size: 15px; line-height: 1.95; }
	.entry-content h2 { font-size: 21px; padding-bottom: 10px; }
	.entry-content h3 { font-size: 18px; }
	.toc, .box-conclusion, .box-experience { padding: 16px 18px; }
	.svc-card__head, .svc-card__body { padding: 16px; }
	.svc-card__body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.svc-card__foot { padding: 0 16px 16px; }
	.author-box { flex-direction: column; gap: 12px; }
	.monogram--xl { width: 56px; height: 56px; font-size: 17px; }
	.sticky-cta:not([hidden]) { display: flex; }
	body:has(.sticky-cta:not([hidden])) .site-footer { padding-bottom: 120px; }

	.breadcrumb ol { flex-wrap: nowrap; padding-top: 14px; }
	.breadcrumb li:last-child { flex: 1; }
	.archive-head { padding-bottom: 36px; }
	.archive-head .breadcrumb ol { padding-bottom: 20px; }
	.archive-head__title { font-size: 28px; }
	.row-card__link { gap: 14px; padding: 12px; }
	.eyecatch--row { width: 120px; padding: 8px 10px; }
	.eyecatch--row .eyecatch__label { display: none; }
	.eyecatch--row .eyecatch__text { font-size: 12px; }
	.row-card__title { font-size: 15px; }
	.row-card__desc { display: none; }
	.site-footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Contact Form 7（お問い合わせ）
   ========================================================================== */
.entry-content .wpcf7 { margin-top: 32px; }
.wpcf7-form { display: flex; flex-direction: column; gap: 24px; }
.cf-row { display: flex; flex-direction: column; gap: 8px; }
.cf-row > label { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cf-req, .cf-opt { font-size: 11px; font-weight: 700; line-height: 1.6; padding: 2px 8px; border-radius: 4px; }
.cf-req { background: #FEE4E2; color: #B42318; }
.cf-opt { background: var(--c-bg); color: var(--c-sub); }
.cf-help { font-size: 12px; color: var(--c-sub); line-height: 1.7; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--c-ink);
	background: #fff; border: 1px solid #D5D2C9; border-radius: 8px; padding: 12px 14px; line-height: 1.7;
}
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="url"], .wpcf7-form select { height: 52px; }
.wpcf7-form textarea { min-height: 200px; resize: vertical; }
.wpcf7-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-ink) 50%), linear-gradient(135deg, var(--c-ink) 50%, transparent 50%); background-position: right 22px center, right 16px center; background-size: 6px 6px; background-repeat: no-repeat; }
.wpcf7-form :is(input, select, textarea):focus-visible { border-color: var(--c-link); outline: 2px solid var(--c-link); outline-offset: 1px; }
.wpcf7-form ::placeholder { color: #9AA0AB; }

.cf-consent { flex-direction: row; align-items: center; gap: 10px; font-size: 14px; background: var(--c-bg); border-radius: 8px; padding: 16px 18px; }
.cf-consent .wpcf7-list-item { margin: 0; }
.cf-consent input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--c-link); }
.cf-consent .wpcf7-list-item-label { margin-left: 8px; }

.cf-submit { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wpcf7-form input[type="submit"] {
	width: 100%; max-width: 420px; min-height: 56px; border: 0; border-radius: 8px; cursor: pointer;
	background: var(--c-cta); color: #fff; font-size: 16px; font-weight: 700; transition: background .15s;
}
.wpcf7-form input[type="submit"]:hover { background: var(--c-cta-hover); }
.wpcf7-form input[type="submit"]:disabled { background: #C7C3BA; cursor: not-allowed; }
.cf-note { margin: 0; font-size: 12px; color: var(--c-sub); text-align: center; line-height: 1.8; }

.wpcf7-not-valid-tip { color: #B42318; font-size: 13px; }
.wpcf7-form .wpcf7-response-output { margin: 0; border-radius: 8px; border-width: 1px; padding: 14px 16px; font-size: 14px; }
.wpcf7-form.invalid .wpcf7-response-output, .wpcf7-form.unaccepted .wpcf7-response-output { border-color: #B42318; background: #FEF3F2; color: #B42318; }
.wpcf7-form.sent .wpcf7-response-output { border-color: #1F7A4D; background: #E9F6EF; color: #1F7A4D; }
.wpcf7-spinner { margin-inline: auto; }

@media (max-width: 768px) {
	.wpcf7-form { gap: 20px; }
	.wpcf7-form textarea { min-height: 160px; }
	.wpcf7-form input[type="submit"] { max-width: none; }
}

/* ==========================================================================
   Subscribe2（メールマガジン登録フォーム）
   プラグインが出すHTMLはクラスが付かないため、
   本文内の「CF7以外のフォーム」を対象にして整える。
   ========================================================================== */
.entry-content form:not(.wpcf7-form) {
	background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 10px;
	padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.entry-content form:not(.wpcf7-form) p { margin: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.entry-content form:not(.wpcf7-form) label { font-size: 14px; font-weight: 700; }
.entry-content form:not(.wpcf7-form) input[type="text"],
.entry-content form:not(.wpcf7-form) input[type="email"] {
	width: 100%; max-width: 420px; box-sizing: border-box; height: 52px; font: inherit; font-size: 16px;
	border: 1px solid #D5D2C9; border-radius: 8px; padding: 0 14px; background: #fff; color: var(--c-ink);
}
.entry-content form:not(.wpcf7-form) input[type="text"]:focus-visible,
.entry-content form:not(.wpcf7-form) input[type="email"]:focus-visible { border-color: var(--c-link); outline: 2px solid var(--c-link); outline-offset: 1px; }
.entry-content form:not(.wpcf7-form) input[type="submit"],
.entry-content form:not(.wpcf7-form) button[type="submit"] {
	min-height: 48px; padding: 0 24px; border: 1px solid var(--c-ink); border-radius: 8px; cursor: pointer;
	background: var(--c-ink); color: #fff; font-size: 15px; font-weight: 700; transition: background .15s, color .15s;
}
.entry-content form:not(.wpcf7-form) input[type="submit"]:hover,
.entry-content form:not(.wpcf7-form) button[type="submit"]:hover { background: #2D313A; }
/* 2つ目以降のボタン（登録解除）は控えめに */
.entry-content form:not(.wpcf7-form) input[type="submit"] ~ input[type="submit"],
.entry-content form:not(.wpcf7-form) input[name="unsubscribe"] {
	background: transparent; color: var(--c-ink); border-color: var(--c-line);
}
.entry-content form:not(.wpcf7-form) input[type="submit"] ~ input[type="submit"]:hover,
.entry-content form:not(.wpcf7-form) input[name="unsubscribe"]:hover { background: #fff; border-color: var(--c-ink); }
.entry-content form:not(.wpcf7-form) .s2_message,
.entry-content .s2_message { background: var(--c-link-soft); border-radius: 8px; padding: 12px 16px; font-size: 14px; }

@media (max-width: 768px) {
	.entry-content form:not(.wpcf7-form) { padding: 16px 18px; }
	.entry-content form:not(.wpcf7-form) input[type="submit"] { width: 100%; }
}
