/*
Theme Name: ものづくり技術百科（SWELL子テーマ）
Template: swell
Version: 0.5.4
Description: ものづくり技術百科（gijutsu-hyakka.com）用のSWELL子テーマ。Figma「確定デザイン｜コーディング用」準拠。
Text Domain: gh-child
*/

/* ==========================================================
   0. デザインの決まりごと（色・文字）
   ========================================================== */
:root {
	--gh-navy: #082665;        /* 見出し・ロゴ */
	--gh-ink: #0c2540;         /* 濃い文字 */
	--gh-text: #1e3450;        /* 本文 */
	--gh-muted: #617b91;       /* 補足文字 */
	--gh-blue: #007ec6;        /* リンク・矢印 */
	--gh-teal: #0089ad;        /* パーツ内のリンク・アクセント */
	--gh-accent: #0a9bd7;      /* セクション見出しの縦線 */
	--gh-line: #d7e4ec;        /* 罫線 */
	--gh-line2: #c9d9e5;       /* 表の罫線 */
	--gh-bg-soft: #f6fbff;     /* 淡い背景（ヒーロー・Wiki） */
	--gh-bg-teal: #eaf7f6;     /* 淡い青緑（目次・タグ） */
	--gh-bg-head: #eef5f9;     /* 表の見出し */
	--gh-bg-best: #e4f6f7;     /* ◎のセル */
	--gh-bg-warm: #faf3e9;     /* 出典・注意 */
	--gh-warn: #ce8615;        /* 注意の線 */
	--gh-mark-cond: #bd850e;   /* △ */
	--gh-pr: #8ea9c4;          /* PRバッジ */
	--gh-radius: 4px;
	--gh-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	--gh-container: 1360px;
}

body.gh-site {
	font-family: var(--gh-font);
	color: var(--gh-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
.gh-site a { color: var(--gh-blue); }

.gh-container {
	width: 100%;
	max-width: calc(var(--gh-container) + 80px);
	margin: 0 auto;
	padding: 0 40px;
	box-sizing: border-box;
}
.gh-chev, .gh-arrow { color: var(--gh-blue); font-weight: 700; line-height: 1; flex-shrink: 0; }
.gh-chev { font-size: 1.5em; }
.gh-arrow { margin-left: .5em; }

/* ==========================================================
   1. ヘッダー（Figma 01）
   ========================================================== */
.gh-header {
	position: relative;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--gh-line);
}
#fix_header { display: none !important; }
.gh-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 82px;
}
.gh-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	flex-shrink: 0;
}
.gh-logo__mark { width: auto; height: 38px; object-fit: contain; }
.gh-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.gh-logo__name { color: var(--gh-navy); font-size: 25px; font-weight: 700; letter-spacing: .02em; }
.gh-logo__en { color: var(--gh-muted); font-size: 9px; margin-top: 2px; }

.gh-gnav { flex: 1; }
.gh-gnav__list {
	display: flex;
	justify-content: center;
	gap: 8px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.gh-gnav__list > li { position: relative; }
.gh-gnav__list > li > a {
	display: block;
	padding: 28px 0;
	color: var(--gh-navy);
	font-size: 16px;
	text-decoration: none;
	white-space: nowrap;
}
.gh-gnav__list > li > a:hover,
.gh-gnav__list > .current-menu-item > a,
.gh-gnav__list > .current-menu-ancestor > a { color: var(--gh-blue); }
.gh-gnav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	min-width: 200px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--gh-line);
	border-radius: var(--gh-radius);
	box-shadow: 0 8px 24px rgba(8, 38, 101, .08);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 6px);
	transition: .2s;
}
.gh-gnav__list li:hover > .sub-menu,
.gh-gnav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gh-gnav__list .sub-menu a {
	display: block;
	padding: 10px 20px;
	color: var(--gh-navy);
	font-size: 14px;
	text-decoration: none;
}
.gh-gnav__list .sub-menu a:hover { background: var(--gh-bg-soft); color: var(--gh-blue); }

.gh-search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 316px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--gh-line);
	border-radius: 5px;
	background: #fff;
	box-sizing: border-box;
	color: var(--gh-muted);
	flex-shrink: 0;
}
.gh-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	font-size: 14px;
	color: var(--gh-ink);
	padding: 0;
	box-shadow: none;
}
.gh-search__input::placeholder { color: var(--gh-muted); }
.gh-search:focus-within { border-color: var(--gh-blue); }

.gh-menuBtn {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 10px;
	background: none;
	border: 0;
	cursor: pointer;
}
.gh-menuBtn__bar { display: block; width: 24px; height: 2px; background: var(--gh-navy); border-radius: 1px; }
.gh-searchBtn { display: none; width: 44px; height: 44px; padding: 0; margin-left: auto; background: none; border: 0; color: var(--gh-navy); cursor: pointer; align-items: center; justify-content: center; }
.gh-searchBtn + .gh-menuBtn { margin-left: 0; }

/* ==========================================================
   2. フッター（Figma 11）
   ========================================================== */
#footer.l-footer { background: #fff; color: var(--gh-muted); border-top: 1px solid var(--gh-line); }
.gh-footer { padding: 36px 0 24px; }
.gh-footer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--gh-line);
	flex-wrap: wrap;
}
.gh-footer .gh-footer__logo { display: flex; align-items: center; gap: 8px; color: var(--gh-navy); font-size: 22px; font-weight: 700; text-decoration: none; }
.gh-footer__logo img { width: auto; height: 26px; object-fit: contain; }
.gh-footer__list, .gh-footer__sub {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.gh-footer__list a { color: var(--gh-muted); font-size: 15px; text-decoration: none; }
.gh-footer__sub a { color: var(--gh-muted); font-size: 12px; text-decoration: none; }
.gh-footer a:hover { color: var(--gh-blue); }
.gh-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	padding-top: 14px;
	flex-wrap: wrap;
}
.gh-footer__copy { margin: 0; font-size: 12px; }

/* ==========================================================
   3. SWELL標準部分の調整（パンくず・タイトル）
   ========================================================== */
.gh-site #breadcrumb { background: transparent; }
.gh-site .p-breadcrumb__list { font-size: 13px; }
.gh-site .p-breadcrumb__text { color: var(--gh-muted); }
.gh-site a.p-breadcrumb__text { color: var(--gh-blue); }

.gh-site .c-postTitle__ttl,
.gh-site .c-pageTitle { color: var(--gh-ink); font-weight: 700; }

/* 分類の一覧ページ（分野・技術分類・製品など）の見出し */
.gh-site .c-pageTitle[data-style="b_bottom"] .c-pageTitle__inner { border-bottom-color: var(--gh-teal); }

/* トップページはSWELLの枠を広げる */
.home.gh-site #content.l-content { max-width: none; padding: 0; margin: 0; }
.home.gh-site .l-mainContent { width: 100%; }
.home.gh-site #breadcrumb { display: none; }

/* ==========================================================
   4. トップページ（Figma 02〜10）
   ========================================================== */
.gh-top { font-family: var(--gh-font); }

/* 02 ヒーロー */
.gh-hero { background: var(--gh-bg-soft); overflow: hidden; }
.gh-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	gap: 24px;
	min-height: 468px;
}
.gh-hero__text { padding: 40px 0; }
@media (min-width: 960px) { .gh-hero__text { justify-self: center; } }
.gh-hero__sub { margin: 0 0 24px; color: var(--gh-navy); font-size: 22px; font-weight: 700; }
.gh-hero__title { margin: 0; color: var(--gh-navy); font-size: 50px; font-weight: 700; line-height: 1.28; letter-spacing: .01em; }
.gh-hero__titleSub { display: block; font-size: 1.1em; letter-spacing: .1em; line-height: 1.3; }
.gh-hero__titleMain { display: block; font-size: 1.5em; letter-spacing: .06em; line-height: 1.15; }
.gh-hero__lead { margin: 40px 0 0; color: var(--gh-muted); font-size: 19px; font-weight: 700; }
.gh-hero__img { align-self: stretch; display: flex; align-items: center; margin-right: -40px; }
.gh-hero__img img { display: block; width: 100%; max-height: 430px; object-fit: cover; }
.gh-hero__img { justify-content: center; margin-right: 0; padding: 32px 0; }
.gh-hero--logo .gh-hero__inner { grid-template-columns: 1fr; justify-items: center; min-height: 0; }
.gh-hero--logo .gh-hero__img { width: 100%; padding: 48px 0; flex-direction: column; }
.gh-hero__tagline { margin: 14px 0 0; color: var(--gh-navy); font-size: 20px; font-weight: 500; letter-spacing: .2em; text-align: center; }
@media (max-width: 599px) { .gh-hero__tagline { font-size: 15px; letter-spacing: .12em; } }
.gh-srOnly { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gh-hero__img img { max-height: 380px; object-fit: contain; }

/* 03 4つの入口 */
.gh-routes { padding: 17px 0; }
.gh-routes__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.gh-route {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 78px;
	padding: 0 18px;
	border: 1px solid #87d4ee;
	border-radius: 6px;
	background: #fff;
	text-decoration: none;
	transition: .2s;
}
.gh-route img { width: 45px; height: 45px; object-fit: contain; }
.gh-route__label { flex: 1; color: var(--gh-navy); font-size: 20px; font-weight: 700; }
.gh-route:hover { box-shadow: 0 4px 16px rgba(0, 126, 198, .12); }

/* セクション共通 */
.gh-sec { padding: 26px 0 40px; }
.gh-sec--tint { background: var(--gh-bg-soft); }
.gh-secHead {
	display: flex;
	align-items: center;
	gap: 12px 24px;
	margin-bottom: 36px;
	flex-wrap: wrap;
}
.gh-secHead__title {
	position: relative;
	margin: 0;
	padding-left: 21px;
	color: var(--gh-navy);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.35;
}
.gh-secHead__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 7px;
	height: 38px;
	background: var(--gh-accent);
	transform: translateY(-50%);
}
.gh-secHead__desc { margin: 0 0 0 auto; color: var(--gh-muted); font-size: 15px; }
.gh-secHead__more { color: var(--gh-blue); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.gh-secHead__title + .gh-secHead__more { margin-left: auto; }
.gh-secHead__more:hover { text-decoration: underline; }

/* カード共通 */
.gh-top ul { margin: 0; padding: 0; list-style: none; }
.gh-issueCard, .gh-fieldItem, .gh-caseCard, .gh-techCard, .gh-photoCard, .gh-newsCard, .gh-wikiCard {
	display: flex;
	background: #fff;
	border: 1px solid var(--gh-line);
	border-radius: var(--gh-radius);
	text-decoration: none;
	overflow: hidden;
	transition: box-shadow .2s, border-color .2s;
}
.gh-issueCard:hover, .gh-fieldItem:hover, .gh-caseCard:hover, .gh-techCard:hover,
.gh-photoCard:hover, .gh-newsCard:hover, .gh-wikiCard:hover {
	border-color: #9fcbe6;
	box-shadow: 0 4px 16px rgba(0, 126, 198, .1);
}

/* 04 課題から探す */
.gh-issueArea {
	display: grid;
	grid-template-columns: minmax(0, 782px) minmax(0, 1fr);
	gap: 34px;
}
.gh-issueCards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 16px; align-content: start; }
.gh-issueCard {
	position: relative;
	flex-direction: column;
	justify-content: space-between;
	height: 155px;
	padding: 12px 16px 10px;
	box-sizing: border-box;
}
.gh-issueCard__title { color: var(--gh-navy); font-size: 19px; font-weight: 700; line-height: 1.4; }
.gh-issueCard__icon { position: absolute; right: 16px; top: 50px; width: 72px; height: 70px; object-fit: contain; }
.gh-issueCard .gh-arrow { margin: 0; font-size: 25px; }

.gh-fieldArea { padding-left: 34px; border-left: 1px solid var(--gh-line); }
.gh-fieldArea__title { margin: 0 0 14px; color: var(--gh-navy); font-size: 25px; font-weight: 700; }
.gh-fieldList { display: grid; gap: 16px; }
.gh-fieldItem { align-items: center; height: 84px; padding-right: 14px; }
.gh-fieldItem img { width: 99px; height: 100%; object-fit: cover; flex-shrink: 0; }
.gh-fieldItem__label { flex: 1; padding-left: 17px; color: var(--gh-navy); font-size: 20px; font-weight: 700; }

/* 05 製品・部品から探す */
.gh-compCols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 34px; }
.gh-compCol__title a { color: inherit; text-decoration: none; }
/* 分野から探すは項目が多いので、文字を小さめに */
#fields .gh-compCol__title { font-size: 20px; padding-bottom: 10px; }
#fields .gh-compCol__list a { font-size: 15px; padding: 8px 0; }
#fields .gh-compCol__list a { justify-content: flex-start; }
#fields .gh-compCol__list a::before { content: '・'; flex-shrink: 0; }
#fields .gh-compCol__list .gh-chev { margin-left: auto; padding-left: 8px; }
.gh-compCol__title a:hover { color: var(--gh-blue); }

.gh-compCol__title { margin: 0; padding-bottom: 12px; border-bottom: 2px solid var(--gh-blue); color: var(--gh-navy); font-size: 24px; font-weight: 700; }
.gh-compCol__list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--gh-line);
	color: var(--gh-blue);
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
}
.gh-compCol__list a:hover { background: var(--gh-bg-soft); }

/* 06 課題解決につながる技術・事例 */
.gh-caseCards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gh-caseCard { flex-direction: column; height: 100%; }
.gh-caseCard__img { display: block; aspect-ratio: 442 / 200; background: var(--gh-bg-soft); overflow: hidden; }
.gh-caseCard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gh-caseCard__body { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 16px; flex: 1; }
.gh-caseCard__title { color: var(--gh-navy); font-size: 19px; font-weight: 700; line-height: 1.35; }
.gh-caseCard__desc { color: var(--gh-muted); font-size: 14px; line-height: 1.4; }
.gh-caseCard__more { margin-top: auto; color: var(--gh-blue); font-size: 16px; font-weight: 700; }

/* 07 技術から探す */
.gh-techCards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.gh-techCard {
	position: relative;
	flex-direction: column;
	align-items: center;
	height: 143px;
	padding: 14px 9px 0;
	box-sizing: border-box;
}
.gh-techCard img { width: 68px; height: 71px; object-fit: contain; }
.gh-techCard__label { align-self: stretch; margin-top: 11px; color: var(--gh-navy); font-size: 16px; font-weight: 700; }
.gh-techCard .gh-chev { position: absolute; right: 8px; bottom: 22px; }

/* 08 業界から探す・注目テーマ */
.gh-indTheme { display: grid; grid-template-columns: minmax(0, 761px) minmax(0, 1fr); gap: 41px; }
.gh-indTheme .gh-secHead { margin-bottom: 28px; }
.gh-photoCards { display: grid; gap: 19px 11px; }
.gh-photoCards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gh-photoCards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gh-photoCard { flex-direction: column; height: 154px; }
.gh-photoCard__img { display: block; height: 94px; flex-shrink: 0; background: var(--gh-bg-soft); }
.gh-photoCard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gh-photoCard__label { padding: 8px 9px; color: var(--gh-navy); font-size: 15px; font-weight: 700; line-height: 1.3; }

/* 09 新着情報 */
.gh-newsCards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gh-newsCard { height: 105px; }
.gh-newsCard__img { width: 110px; flex-shrink: 0; background: var(--gh-bg-soft); }
.gh-newsCard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gh-newsCard__body { display: flex; flex-direction: column; justify-content: space-between; padding: 10px 9px 10px 9px; }
.gh-newsCard__title { color: var(--gh-navy); font-size: 15px; font-weight: 700; line-height: 1.25; }
.gh-newsCard__more { color: var(--gh-blue); font-size: 14px; font-weight: 700; }

/* 10 技術Wiki */
.gh-wikiCards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gh-wikiCard { position: relative; height: 106px; padding: 16px; box-sizing: border-box; flex-direction: column; justify-content: space-between; }
.gh-wikiCard__title { position: relative; z-index: 1; max-width: 58%; color: var(--gh-navy); font-size: 18px; font-weight: 700; }
.gh-wikiCard .gh-arrow { position: relative; z-index: 1; margin: 0; font-size: 21px; }
.gh-wikiCard__img { position: absolute; right: 0; top: 0; bottom: 0; width: 40%; }
.gh-wikiCard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 仮表示のカード（記事がまだ無いとき） */
.is-sample { position: relative; }

/* ==========================================================
   5. 詳細ページ共通（課題・技術・Wiki・分野）
   ========================================================== */
.gh-site .post_content { color: var(--gh-text); font-size: 16px; line-height: 1.85; }
.gh-site .post_content a { color: var(--gh-teal); }

/* クラシックテーマのグループブロックが挟む内側の div を、レイアウト上は無いものとして扱う */
.post_content [class*="gh-"] > .wp-block-group__inner-container { display: contents; }

/* 課題・技術・Wikiのページでは、SWELLの日付・シェアボタン・本文内の目次を出さない（右の「このページの内容」を使う） */
.gh-detail .p-articleMetas,
.gh-detail .c-postTitle__date,
.gh-detail .c-shareBtns,
.gh-detail .post_content .p-toc,
.gh-detail .p-articleFoot,
.gh-detail .l-articleBottom .p-snsCta { display: none !important; }
.gh-detail .c-postTitle { display: block; }
.gh-detail .c-postTitle__ttl { font-size: 34px; line-height: 1.4; }

/* 見出しのスタイル（ブロックの「スタイル」から選ぶ） */
.post_content .is-style-gh-accent,
.post_content .is-style-gh-bar,
.post_content .is-style-gh-num,
.post_content .is-style-gh-rule {
	background: none;
	border: 0;
	padding: 0;
	color: var(--gh-ink);
	font-weight: 700;
	letter-spacing: .01em;
}
.post_content .is-style-gh-accent::before, .post_content .is-style-gh-accent::after,
.post_content .is-style-gh-bar::before, .post_content .is-style-gh-bar::after,
.post_content .is-style-gh-num::after,
.post_content .is-style-gh-rule::before, .post_content .is-style-gh-rule::after { content: none; }

.post_content h2[class*="is-style-gh-"] { margin-left: 0; margin-right: 0; }
.post_content h2.is-style-gh-accent { font-size: 30px; line-height: 1.35; padding-bottom: 18px; position: relative; }
.post_content h2.is-style-gh-accent::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 4px;
	background: var(--gh-teal);
	border-radius: 2px;
}
.post_content .is-style-gh-bar { position: relative; padding: 2px 0 2px 18px; font-size: 24px; }
.post_content .is-style-gh-bar::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 6px;
	background: var(--gh-teal);
}
.post_content .is-style-gh-rule { font-size: 24px; padding-bottom: 10px; border-bottom: 1px solid var(--gh-line); }

.post_content { counter-reset: ghnum; }
.post_content .is-style-gh-num { display: flex; align-items: center; gap: 14px; font-size: 26px; counter-increment: ghnum; }
.post_content .is-style-gh-num::before {
	content: counter(ghnum);
	position: static;
	inset: auto;
	transform: none;
	border: 0;
	opacity: 1;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: var(--gh-navy);
	color: #fff;
	font-size: 22px;
	border-radius: 2px;
}

/* 導入文・注記 */
.post_content .is-style-gh-lead { color: var(--gh-text); font-size: 18px; line-height: 1.8; }
.post_content .is-style-gh-note { color: #7b8b98; font-size: 13px; line-height: 1.6; }

/* タグ（02） */
.post_content .gh-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post_content .gh-tags a {
	display: inline-block;
	padding: 3px 14px;
	border-radius: 20px;
	background: #e6f6fc;
	color: #008cbe;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	text-decoration: none;
}
.post_content .gh-tags a:hover { background: #d3eef9; }

/* 表（技術百科スタイル） */
.post_content .is-style-gh-table table,
.post_content .is-style-gh-matrix table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.post_content .is-style-gh-table th,
.post_content .is-style-gh-table td,
.post_content .is-style-gh-matrix th,
.post_content .is-style-gh-matrix td { border: 1px solid var(--gh-line2); padding: 12px 14px; vertical-align: middle; }
.post_content .is-style-gh-table thead th { background: var(--gh-bg-head); color: var(--gh-teal); font-weight: 700; text-align: left; }
.post_content .is-style-gh-table tbody td:first-child { font-weight: 700; color: var(--gh-ink); }
.post_content .is-style-gh-table tbody tr:nth-child(even) td { background: #fbfdfe; }
.post_content .gh-issueTable tbody td:first-child { background: var(--gh-bg-head); width: 22%; }
.post_content .gh-issueTable td a { display: inline-block; margin-right: 24px; }

/* 対策マトリクス（共通パーツ2） */
.post_content .is-style-gh-matrix { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 8px; scrollbar-width: none; }
.post_content .is-style-gh-matrix::-webkit-scrollbar { display: none; }
.post_content .is-style-gh-matrix table { min-width: 640px; }
.post_content .is-style-gh-matrix thead th {
	background: #f6fbfc;
	color: #008cbe;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
}
.post_content .is-style-gh-matrix thead th:first-child { color: #7b8b98; text-align: left; }
.post_content .is-style-gh-matrix tbody td:first-child {
	min-width: 190px;
	color: var(--gh-ink);
	font-size: 14px;
	font-weight: 700;
	background: #fff;
	position: sticky;
	left: 0;
	z-index: 1;
}
.post_content .is-style-gh-matrix tbody td:not(:first-child) { text-align: center; width: 13%; }
.post_content .is-style-gh-matrix td.is-best { background: #dff5fd; }

.gh-badge {
	display: inline-grid;
	place-items: center;
	width: 1.5em;
	height: 1.5em;
	margin-right: .5em;
	border-radius: 2px;
	background: #028cb6;
	color: #fff;
	font-size: .85em;
	font-weight: 700;
	line-height: 1;
	vertical-align: .1em;
}

/* 評価記号（共通パーツ1の07） */
.gh-mark { display: inline-block; width: 22px; height: 22px; vertical-align: middle; background: no-repeat center / contain; }
.gh-mark--best { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='13' fill='none' stroke='%23078AA9' stroke-width='2'/%3E%3Ccircle cx='14' cy='14' r='5.5' fill='none' stroke='%23078AA9' stroke-width='2'/%3E%3C/svg%3E"); }
.gh-mark--good { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='13' fill='none' stroke='%23092240' stroke-width='2'/%3E%3C/svg%3E"); }
.gh-mark--cond { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 28'%3E%3Cpath d='M14.5 2 27.5 26H1.5z' fill='white' stroke='%23BD850E' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.post_content .gh-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 8px 0; color: var(--gh-text); font-size: 14px; }
.gh-legend .gh-mark { width: 18px; height: 18px; margin-right: 4px; }
.gh-legend__item { display: inline-flex; align-items: center; white-space: nowrap; margin-right: 12px; }

/* 横スクロールの案内（スマホのみ） */
.gh-scrollHint { display: none; margin: 4px 0 16px; }
.gh-scrollHint__bar { position: relative; display: block; height: 8px; border-radius: 4px; background: #e8eff4; overflow: hidden; }
.gh-scrollHint__bar span { position: absolute; top: 0; left: 0; width: 34%; height: 100%; border-radius: 4px; background: #afc0d0; }
.gh-scrollHint__text { display: block; margin-top: 4px; color: var(--gh-ink); font-size: 13px; text-align: right; }

/* 診断カード（07 課題ページ） */
.post_content .gh-diag { container-type: inline-size; margin: 0 0 20px; border: 1px solid #d9e6ec; border-radius: 3px; overflow: hidden; background: #fff; }
.post_content .gh-diag__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	gap: 8px 24px;
	align-items: center;
	padding: 14px 18px;
	background: #eff9fb;
	border-bottom: 1px solid #d9e6ec;
}
.post_content .gh-diag__head > *, .post_content .gh-diag__head > .wp-block-group__inner-container > * { margin: 0; }
.post_content .gh-diag__title { display: flex; align-items: center; margin: 0; padding: 0; border: 0; background: none; color: #008cbe; font-size: 20px; font-weight: 700; line-height: 1.4; }
.post_content .gh-diag__title::before, .post_content .gh-diag__title::after { content: none; }
.post_content .gh-diag__title .gh-badge { width: 40px; height: 44px; font-size: 26px; margin-right: 14px; }
.post_content .gh-diag__summary { color: #2b445b; font-size: 15px; line-height: 1.6; }
.post_content .gh-diag__body { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; padding: 0 20px 16px 0; }
.post_content .gh-diag__body > *, .post_content .gh-diag__body > .wp-block-group__inner-container > * { margin: 0; }
.post_content .gh-diag__row { display: grid; grid-template-columns: 170px minmax(0, 1fr); border-bottom: 1px solid #d9e6ec; }
.post_content .gh-diag__row > *, .post_content .gh-diag__row > .wp-block-group__inner-container > * { margin: 0; padding: 14px 16px; }
.post_content .gh-diag__row:last-child { border-bottom: 0; }
.post_content .gh-diag__label { color: var(--gh-ink); font-size: 15px; font-weight: 700; border-right: 1px solid #d9e6ec; }
.post_content .gh-diag__row p:not(.gh-diag__label) { color: #2b445b; font-size: 15px; line-height: 1.7; }
.post_content .gh-diag__row--caution p:not(.gh-diag__label) { background: #fff6e9; }
.post_content .gh-diag__techs { list-style: none; margin: 0; padding: 10px 16px; }
.post_content .gh-diag__techs li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 16px; padding: 6px 0; font-size: 14px; line-height: 1.6; }
.post_content .gh-diag__techs li::before { content: none; }
.post_content .gh-diag__techs a { color: #008cbe; text-decoration: none; }
.post_content .gh-diag__techs a::after { content: " ›"; font-size: 1.3em; }
.post_content .gh-diag__techs span { color: #2b445b; }
.post_content .gh-diag__pr { align-self: start; margin-top: 16px; padding: 16px; border: 1px solid #d9e6ec; border-radius: 3px; }
.post_content .gh-diag__pr > *, .post_content .gh-diag__pr > .wp-block-group__inner-container > * { margin: 0 0 10px; }
.post_content .gh-diag__prTitle { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--gh-ink); font-size: 15px; font-weight: 700; }
.post_content .gh-diag__prText { color: #2b445b; font-size: 13px; line-height: 1.6; }
.post_content .gh-diag__prBtn { margin: 0; }
.post_content .gh-diag__prBtn a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	border: 1px solid #abddf0;
	border-radius: 3px;
	color: #008cbe;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
.post_content .gh-diag__prBtn a::after { content: "›"; font-size: 1.4em; line-height: 1; }
.gh-pr { display: inline-block; padding: 1px 8px; border-radius: 3px; background: #e6f6fc; color: #008cbe; font-size: 12px; font-weight: 400; line-height: 1.6; }
.gh-pr--solid { background: var(--gh-pr); color: #fff; font-weight: 700; margin-right: 12px; }


/* 診断カードは、カード自体の幅で並びを切り替える */
@container (max-width: 820px) {
	.post_content .gh-diag__body { grid-template-columns: minmax(0, 1fr); padding: 0 0 16px; }
	.post_content .gh-diag__pr { margin: 0 16px; }
	.post_content .gh-diag__techs li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@container (max-width: 560px) {
	.post_content .gh-diag__head { grid-template-columns: minmax(0, 1fr); }
	.post_content .gh-diag__row { grid-template-columns: minmax(0, 1fr); }
	.post_content .gh-diag__label { border-right: 0; padding-bottom: 0 !important; }
}

/* 課題ブロック（共通パーツ3） */
.post_content .gh-issue { margin: 0 0 24px; padding: 28px 28px 20px; border: 1px solid #cbdce9; border-radius: 4px; background: #fff; counter-reset: ghissue; }
.post_content .gh-issue > :first-child, .post_content .gh-issue > .wp-block-group__inner-container > :first-child { margin-top: 0; }
.post_content .gh-issue__title { margin: 0 0 16px; padding: 0; border: 0; background: none; color: #071f40; font-size: 30px; font-weight: 700; }
.post_content .gh-issue__title::before, .post_content .gh-issue__title::after { content: none; }
.post_content .gh-issue__h {
	counter-increment: ghissue;
	margin: 24px 0 8px;
	padding: 0 0 8px;
	border: 0;
	border-bottom: 1px solid #cbdce9;
	background: none;
	color: #071f40;
	font-size: 20px;
	font-weight: 700;
}
.post_content .gh-issue__h::before { content: counter(ghissue) "."; position: static; display: inline; width: auto; height: auto; background: none; margin-right: 8px; color: var(--gh-teal); font-size: 22px; border: 0; }
.post_content .gh-issue__h::after { content: none; }
.post_content .gh-issue__text { padding-left: 32px; color: #172d4d; font-size: 17px; }

.post_content .gh-techList { list-style: none; margin: 0; padding: 0; }
.post_content .gh-techList li { position: relative; margin: 0; padding: 12px 40px 12px 32px; border-bottom: 1px solid #cbdce9; }
.post_content .gh-techList li::before { content: none; }
.post_content .gh-techList li:first-child { background: #edf6fa; border-radius: 3px; }
.post_content .gh-techList li::after { content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--gh-teal); font-size: 25px; }
.post_content .gh-techList a { display: block; color: var(--gh-teal); font-size: 17px; }
.post_content .gh-techList span { display: block; color: #172d4d; font-size: 15px; }

.post_content .gh-caution { margin-left: 32px; padding: 13px 20px; border-left: 7px solid var(--gh-warn); background: #f9efe1; color: #172d4d; font-size: 17px; border-radius: 0 3px 3px 0; }

/* 企業の技術カード（PR） */
.post_content .gh-company {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 24px;
	align-items: center;
	margin: 0 0 24px;
	padding: 16px 24px;
	border: 1px solid #cbdce9;
	border-radius: 4px;
	background: #f6fbfd;
}
.post_content .gh-issue .gh-company { margin-left: 32px; }
.post_content .gh-company > *, .post_content .gh-company > .wp-block-group__inner-container > * { margin: 0; }
.post_content .gh-company__title { grid-column: 1; color: #071f40; font-size: 17px; font-weight: 700; }
.post_content .gh-company__text { grid-column: 1; color: #172d4d; font-size: 14px; line-height: 1.6; }
.post_content .gh-company__more { grid-column: 2; grid-row: 1 / span 2; }
.post_content .gh-company__more a { color: var(--gh-teal); font-weight: 700; }
.post_content .gh-company__more a::after { content: "  ›"; font-size: 1.4em; }

/* 図版・番号付き段落 */
.post_content .gh-figSteps { margin: 0 0 24px; border: 1px solid #cbdce9; border-radius: 4px; }
.post_content .gh-figSteps__title { margin: 0; padding: 6px 22px; border-bottom: 1px solid #cbdce9; color: #071f40; font-size: 16px; font-weight: 700; }
.post_content .gh-figSteps__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 20px 22px; align-items: center; }
.post_content .gh-figSteps__body > *, .post_content .gh-figSteps__body > .wp-block-group__inner-container > * { margin: 0; }
.post_content .gh-numList { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 1px solid #cbdce9; counter-reset: ghn; }
.post_content .gh-numList li { position: relative; padding: 4px 0 4px 36px; counter-increment: ghn; }
.post_content .gh-numList li::before { content: counter(ghn); position: absolute; left: 0; top: 0; background: none; width: auto; height: auto; color: var(--gh-teal); font-size: 23px; font-weight: 700; line-height: 1.3; }
.post_content .gh-numList strong { display: block; color: #071f40; font-size: 15px; }
.post_content .gh-numList span { display: block; color: #172d4d; font-size: 13px; line-height: 1.5; }

/* チェックリスト */
.post_content .is-style-gh-check { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; padding: 0; }
.post_content .is-style-gh-check li { position: relative; margin: 0; padding: 8px 0 8px 28px; border-bottom: 1px solid #d9e6ec; color: #2b445b; font-size: 15px; }
.post_content .is-style-gh-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 14px;
	height: 14px;
	border: 1.5px solid #028cb6;
	border-radius: 2px;
	background: #fff;
	transform: translateY(-50%);
}

/* リンクボタン（関連する課題・関連する技術） */
.post_content .gh-linkBtns { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; }
.post_content .gh-linkBtns li { margin: 0; padding: 0; }
.post_content .gh-linkBtns li::before { content: none; }
.post_content .gh-linkBtns a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	height: 100%;
	min-height: 56px;
	padding: 10px 14px;
	border: 1px solid #d9e6ec;
	border-radius: 3px;
	color: #008cbe;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	box-sizing: border-box;
}
.post_content .gh-linkBtns a::after { content: "›"; font-size: 1.5em; line-height: 1; }
.post_content .gh-linkBtns a:hover { background: #f6fbfc; }

/* リンクのチップ */
.post_content .gh-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.post_content .gh-chips li { margin: 0; padding: 0; }
.post_content .gh-chips li::before { content: none; }
.post_content .gh-chips a {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 8px 14px;
	border: 1px solid #d9e6ec;
	border-radius: 3px;
	background: #fff;
	color: #008cbe;
	font-size: 14px;
	text-decoration: none;
}
.post_content .gh-chips a::after { content: "›"; font-size: 1.3em; line-height: 1; }

/* 出典・確認日 */
.post_content .gh-source { margin: 32px 0 0; padding: 18px 24px; background: var(--gh-bg-warm); border-radius: 4px; }
.post_content .gh-source > *, .post_content .gh-source > .wp-block-group__inner-container > * { margin: 0 0 6px; }
.post_content .gh-source__title { color: #092240; font-size: 16px; font-weight: 700; }
.post_content .gh-source__list { padding-left: 1.2em; color: var(--gh-muted); font-size: 14px; }
.post_content .gh-source__note { color: var(--gh-muted); font-size: 13px; }

/* 技術の行 */
.post_content .gh-techRows { list-style: none; padding: 0; border-top: 1px solid var(--gh-line2); }
.post_content .gh-techRows li { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; margin: 0; padding: 16px 48px 16px 0; border-bottom: 1px solid var(--gh-line2); }
.post_content .gh-techRows li::before { content: none; }
.post_content .gh-techRows li::after { content: "→"; position: absolute; right: 8px; color: var(--gh-teal); font-size: 22px; }
.post_content .gh-techRows a { padding-right: 24px; border-right: 1px solid var(--gh-line2); color: var(--gh-teal); font-size: 18px; }
.post_content .gh-techRows span { color: var(--gh-text); font-size: 15px; }

/* 向いている条件と注意点 */
.post_content .gh-procon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post_content .gh-procon > div, .post_content .gh-procon > .wp-block-group__inner-container > div { margin: 0; padding: 20px 24px; border-radius: 4px; }
.post_content .gh-procon__pro { background: #eef8f4; }
.post_content .gh-procon__con { background: #fdf4e7; }
.post_content .gh-procon__title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.post_content .gh-procon__pro .gh-procon__title { color: #0b8a6a; }
.post_content .gh-procon__pro .gh-procon__title::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #16a37f; color: #fff; font-size: 15px; }
.post_content .gh-procon__con .gh-procon__title { color: #0c2540; }
.post_content .gh-procon__con .gh-procon__title::before { content: "▲"; color: #e39b22; font-size: 20px; }
.post_content .gh-procon ul { margin: 0; padding-left: 1.2em; font-size: 14px; }

/* 番号付きカード（3つ） */
.post_content .gh-steps3 { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; counter-reset: ghs; }
.post_content .gh-steps3 li { position: relative; margin: 0; padding: 4px 0 0 52px; counter-increment: ghs; }
.post_content .gh-steps3 li::before {
	content: counter(ghs);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #1b95c9;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}
.post_content .gh-steps3 strong { display: block; color: var(--gh-ink); font-size: 16px; }
.post_content .gh-steps3 span { display: block; color: var(--gh-text); font-size: 14px; line-height: 1.7; }

/* テーマのカード（05 分野ページ） */
.post_content .gh-themeCards { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 0; }
.post_content .gh-themeCards li { margin: 0; padding: 0; }
.post_content .gh-themeCards li::before { content: none; }
.post_content .gh-themeCards a {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 14px 14px 32px;
	border: 1px solid #d9e6ec;
	border-top: 3px solid var(--gh-teal);
	border-radius: 3px;
	text-decoration: none;
	box-sizing: border-box;
}
.post_content .gh-themeCards li:nth-child(2) a { border-top-color: #3fbfb5; }
.post_content .gh-themeCards li:nth-child(3) a { border-top-color: #e6a93b; }
.post_content .gh-themeCards li:nth-child(4) a { border-top-color: #e6a93b; }
.post_content .gh-themeCards li:nth-child(5) a { border-top-color: #e36f5d; }
.post_content .gh-themeCards strong { color: #102c4d; font-size: 16px; line-height: 1.4; }
.post_content .gh-themeCards span { color: #1d405f; font-size: 13px; line-height: 1.6; }
.post_content .gh-themeCards a::after { content: "›"; position: absolute; right: 10px; bottom: 6px; color: var(--gh-teal); font-size: 1.3em; }

.post_content .gh-fieldLinks { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; }
.post_content .gh-fieldLinks li { margin: 0; padding: 0; }
.post_content .gh-fieldLinks li::before { content: none; }
.post_content .gh-fieldLinks a { position: relative; display: block; padding: 12px 36px 12px 16px; border: 1px solid #d9e6ec; border-radius: 3px; text-decoration: none; }
.post_content .gh-fieldLinks strong { display: block; color: var(--gh-teal); font-size: 16px; }
.post_content .gh-fieldLinks span { display: block; color: #1d405f; font-size: 12px; }
.post_content .gh-fieldLinks a::after { content: "›"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gh-teal); font-size: 1.4em; }

/* 技術Wiki：冒頭のひとこと */
.post_content .gh-wikiIntro { margin: 0 0 32px; padding: 20px 24px; border: 1px solid var(--gh-line2); border-left: 6px solid var(--gh-teal); border-radius: 4px; background: var(--gh-bg-teal); }
.post_content .gh-wikiIntro > *, .post_content .gh-wikiIntro > .wp-block-group__inner-container > * { margin: 0; }
.post_content .gh-wikiIntro__label { color: var(--gh-teal); font-size: 14px; font-weight: 700; }
.post_content .gh-wikiIntro__text { color: var(--gh-ink); font-size: 18px; font-weight: 700; line-height: 1.7; }

/* ==========================================================
   6. サイドバー（このページの内容・関連する技術を探す）
   ========================================================== */
.gh-side__sticky { position: sticky; top: 24px; display: grid; gap: 16px; }
.gh-sideToc { padding: 16px; border: 1px solid #d9e6ec; border-radius: 3px; background: #fff; }
.gh-sideToc[hidden] { display: none; }
.gh-sideToc__title { margin: 0 0 8px; color: var(--gh-ink); font-size: 15px; font-weight: 700; }
.gh-sideToc__list { margin: 0; padding: 0; list-style: none; counter-reset: ght; }
.gh-sideToc__list li { counter-increment: ght; border-top: 1px solid #edf2f5; }
.gh-sideToc__list a { display: flex; gap: 10px; padding: 8px 0; color: #2b445b; font-size: 13px; line-height: 1.5; text-decoration: none; }
.gh-sideToc__list a::before { content: counter(ght); color: var(--gh-teal); font-weight: 700; min-width: 1.2em; }
.gh-sideToc__list a:hover { color: var(--gh-teal); }
.gh-sideCta { padding: 18px 16px; border-radius: 3px; background: #eff9fb; }
.gh-sideCta__title { margin: 0 0 8px; color: var(--gh-ink); font-size: 15px; font-weight: 700; }
.gh-sideCta__text { margin: 0 0 14px; color: #2b445b; font-size: 13px; line-height: 1.6; }
.gh-sideCta__btn {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-radius: 3px;
	background: #028cb6;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
.gh-sideCta__btn:hover { background: #0279a0; }

/* ==========================================================
   7. 画面幅ごとの調整
   ========================================================== */
@media (max-width: 1280px) {
	.gh-header__inner { gap: 20px; }
	.gh-gnav__list { gap: 8px 20px; }
	.gh-search { width: 220px; }
	.gh-techCards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gh-indTheme { grid-template-columns: minmax(0, 1fr); }
	.gh-newsCards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gh-secHead__desc { order: 3; width: 100%; margin: 0; }
	.gh-secHead__more { margin-left: auto; }
	.gh-caseCard__title br { display: none; }
	.gh-route__label { font-size: 17px; }
	.gh-hero__title { font-size: 42px; }
}

@media (max-width: 1100px) {
	.gh-caseCards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gh-search { display: none; }
	.gh-issueCards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gh-issueArea { grid-template-columns: minmax(0, 1fr); }
	.gh-fieldArea { padding-left: 0; border-left: 0; }
	.gh-compCols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post_content .gh-diag__body { grid-template-columns: minmax(0, 1fr); padding: 0 0 16px; }
	.post_content .gh-diag__pr { margin: 0 16px; }
	.post_content .gh-diag__techs li { grid-template-columns: minmax(0, 1fr); }
	.post_content .gh-linkBtns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post_content .gh-themeCards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
	.gh-container { padding: 0 16px; }
	.gh-header__inner { min-height: 60px; gap: 12px; }
	.gh-gnav { display: none; }
	.gh-menuBtn { display: flex; }
	.gh-searchBtn { display: flex; }
	.gh-logo__mark { width: auto; height: 30px; }
	.gh-logo__name { font-size: 20px; }
	.gh-logo__en { font-size: 8px; }

	.gh-hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
	.gh-hero__text { padding: 32px 0 16px; }
	.gh-hero__sub { font-size: 16px; margin-bottom: 12px; }
	.gh-hero__title { font-size: 32px; }
	.gh-hero__lead { margin-top: 16px; font-size: 15px; }
	.gh-hero__img { margin: 0 -16px; }
	.gh-hero__img img { max-height: 260px; }

	.gh-routes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.gh-route { height: 64px; gap: 10px; padding: 0 12px; }
	.gh-route img { width: 32px; height: 32px; }
	.gh-route__label { font-size: 15px; }

	.gh-sec { padding: 24px 0 32px; }
	.gh-secHead { margin-bottom: 20px; }
	.gh-secHead__title { font-size: 24px; padding-left: 16px; }
	.gh-secHead__title::before { width: 6px; height: 30px; }
	.gh-secHead__desc { order: 3; width: 100%; margin: 0; font-size: 14px; }
	.gh-secHead__more { margin-left: auto; font-size: 14px; }

	.gh-issueCards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.gh-issueCard { height: 130px; }
	.gh-issueCard__title { font-size: 16px; }
	.gh-issueCard__icon { width: 60px; height: 58px; right: 12px; top: auto; bottom: 12px; }
	.gh-fieldItem { height: 70px; }
	.gh-fieldItem img { width: 80px; }
	.gh-fieldItem__label { font-size: 17px; }

	.gh-compCols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.gh-compCol__title { font-size: 20px; }
	.gh-compCol__list a { font-size: 16px; }

	.gh-caseCards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.gh-caseCard__title { font-size: 19px; }

	.gh-techCards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.gh-techCard { height: 120px; }
	.gh-techCard img { width: 54px; height: 56px; }
	.gh-techCard__label { font-size: 15px; }

	.gh-photoCards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gh-photoCards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gh-photoCard { height: auto; }
	.gh-photoCard__img { height: 90px; }
	.gh-photoCard__label { font-size: 14px; }

	.gh-newsCards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.gh-wikiCards { grid-template-columns: minmax(0, 1fr); gap: 12px; }

	.gh-footer__top { flex-direction: column; align-items: flex-start; }

	.post_content h2.is-style-gh-accent { font-size: 26px; }
	.gh-detail .c-postTitle__ttl { font-size: 26px; }
	.post_content .is-style-gh-num { font-size: 21px; }
	.post_content .is-style-gh-num::before { width: 32px; height: 32px; font-size: 18px; }
	.post_content .is-style-gh-bar, .post_content .is-style-gh-rule { font-size: 20px; }
	.post_content .is-style-gh-lead { font-size: 16px; }

	.gh-scrollHint { display: block; }
	.post_content .is-style-gh-matrix tbody td:first-child { min-width: 150px; font-size: 13px; }

	.post_content .gh-diag__head { grid-template-columns: minmax(0, 1fr); }
	.post_content .gh-diag__title { font-size: 17px; }
	.post_content .gh-diag__title .gh-badge { width: 32px; height: 34px; font-size: 20px; }
	.post_content .gh-diag__row { grid-template-columns: minmax(0, 1fr); }
	.post_content .gh-diag__label { border-right: 0; padding-bottom: 0 !important; }

	.post_content .gh-issue { padding: 20px 16px; }
	.post_content .gh-issue__title { font-size: 24px; }
	.post_content .gh-issue__text, .post_content .gh-caution { margin-left: 0; padding-left: 16px; }
	.post_content .gh-issue .gh-company { margin-left: 0; }
	.post_content .gh-company { grid-template-columns: minmax(0, 1fr); }
	.post_content .gh-company__more { grid-column: 1; grid-row: auto; }

	.post_content .gh-figSteps__body { grid-template-columns: minmax(0, 1fr); }
	.post_content .gh-numList { border-left: 0; padding-left: 0; }
	.post_content .is-style-gh-check { grid-template-columns: minmax(0, 1fr); }
	.post_content .gh-linkBtns { grid-template-columns: minmax(0, 1fr); }
	.post_content .gh-techRows li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.post_content .gh-techRows a { border-right: 0; }
	.post_content .gh-procon { grid-template-columns: minmax(0, 1fr); }
	.post_content .gh-steps3 { grid-template-columns: minmax(0, 1fr); }
	.post_content .gh-themeCards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post_content .gh-fieldLinks { grid-template-columns: minmax(0, 1fr); }
	.gh-side__sticky { position: static; }
}

/* ==========================================================
   8. 入口ページ（分類の一覧・準備中）
   ========================================================== */
.post_content .gh-termIndex { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px 32px; }
.post_content .gh-termIndex__group { margin: 0; }
.post_content .gh-termIndex__title { margin: 0 0 4px; padding: 0 0 10px; border: 0; border-bottom: 2px solid var(--gh-blue); background: none; font-size: 20px; }
.post_content .gh-termIndex__title::before, .post_content .gh-termIndex__title::after { content: none; }
.post_content .gh-termIndex__title a { color: var(--gh-navy); text-decoration: none; }
.post_content .gh-termIndex__list { list-style: none; margin: 0; padding: 0; }
.post_content .gh-termIndex__list li { margin: 0; padding: 0; }
.post_content .gh-termIndex__list li::before { content: none; }
.post_content .gh-termIndex__list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid var(--gh-line);
	color: var(--gh-blue);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}
.post_content .gh-termIndex__list a::after { content: "›"; font-size: 1.4em; line-height: 1; }
.post_content .gh-termIndex__count { margin-left: auto; color: var(--gh-muted); font-size: 12px; font-weight: 400; }
.post_content .gh-coming { padding: 32px 24px; border: 1px dashed var(--gh-line2); border-radius: var(--gh-radius); background: var(--gh-bg-soft); color: var(--gh-muted); text-align: center; }
.post_content .gh-coming p { margin: 0; }
.post_content .gh-termIndex__list--flat { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }

@media (max-width: 480px) {
	.gh-hero__title { font-size: 28px; }
	.gh-route__label { font-size: 14px; }
	.gh-route img { width: 26px; height: 26px; }
	.gh-secHead__title { font-size: 21px; }
}

/* ==========================================================
   9. ヘッダーメニュー（項目が多いサブメニューは2列）
   ========================================================== */
.gh-gnav__list { gap: 8px 26px; }
.gh-gnav__list .sub-menu:has(> li:nth-child(7)) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	min-width: 440px;
}
.gh-gnav__list .sub-menu a { white-space: nowrap; }
@media (max-width: 1440px) {
	.gh-search { width: 240px; }
	.gh-gnav__list { gap: 8px 20px; }
	.gh-gnav__list > li > a { font-size: 15px; }
}

/* ==========================================================
   10. 一覧ページ（分類ページ・課題から探す・技術から探す・技術Wiki）
   ========================================================== */
.gh-archive { font-family: var(--gh-font); }
.gh-archive .l-mainContent__inner { padding-bottom: 40px; }
.gh-archHead { margin: 8px 0 32px; padding: 28px 32px; background: var(--gh-bg-soft); border-radius: var(--gh-radius); }
.gh-archHead__label {
	display: inline-block;
	margin-bottom: 10px;
	padding: 2px 12px;
	border-radius: 3px;
	background: #e6f6fc;
	color: #008cbe !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.gh-archHead__title { margin: 0; color: var(--gh-navy); font-size: 40px; font-weight: 700; line-height: 1.3; }
.gh-archHead__sub { margin: 8px 0 0; color: var(--gh-ink); font-size: 17px; font-weight: 700; }
.gh-archHead__desc { margin-top: 12px; color: var(--gh-text); font-size: 15px; line-height: 1.8; }
.gh-archHead__desc p { margin: 0; }

.gh-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 32px; }
.gh-jump a { padding: 6px 14px; border: 1px solid var(--gh-line); border-radius: 20px; color: var(--gh-blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.gh-jump a:hover { background: var(--gh-bg-soft); }

.gh-archSec { margin: 0 0 48px; }
.gh-archH2 { position: relative; margin: 0 0 20px; padding: 2px 0 2px 18px; color: var(--gh-navy); font-size: 24px; font-weight: 700; line-height: 1.4; }
.gh-archH2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; background: var(--gh-accent); }
.gh-archSec--small .gh-compCol__title { font-size: 19px; padding-bottom: 10px; }
.gh-archSec--small .gh-compCol__list a { font-size: 15px; padding: 8px 0; }
.gh-archive .gh-compCols { gap: 36px 28px; }
.gh-archive .gh-compCol__list { margin: 0; padding: 0; list-style: none; }
.gh-archive .gh-issueCards { margin: 0; padding: 0; list-style: none; }

.gh-childCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.gh-childCards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gh-childCard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 14px 16px 28px;
	border: 1px solid var(--gh-line);
	border-top: 3px solid var(--gh-teal);
	border-radius: 3px;
	background: #fff;
	text-decoration: none;
	box-sizing: border-box;
}
.gh-childCard:hover { box-shadow: 0 4px 16px rgba(0, 126, 198, .1); }
.gh-childCard__name { color: var(--gh-navy); font-size: 16px; font-weight: 700; line-height: 1.4; }
.gh-childCard__desc { color: var(--gh-text); font-size: 13px; line-height: 1.6; }
.gh-childCard__count { position: absolute; left: 16px; bottom: 8px; color: var(--gh-muted); font-size: 12px; }
.gh-childCard::after { content: "›"; position: absolute; right: 12px; bottom: 4px; color: var(--gh-teal); font-size: 1.4em; }

.gh-postCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.gh-postCard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 16px 40px 16px 18px;
	border: 1px solid var(--gh-line);
	border-radius: var(--gh-radius);
	background: #fff;
	text-decoration: none;
	box-sizing: border-box;
}
.gh-postCard:hover { border-color: #9fcbe6; box-shadow: 0 4px 16px rgba(0, 126, 198, .1); }
.gh-postCard::after { content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--gh-teal); font-size: 1.6em; }
.gh-postCard__type { align-self: flex-start; padding: 0 8px; border-radius: 3px; background: #e6f6fc; color: #008cbe; font-size: 12px; font-weight: 700; }
.gh-postCard__title { color: var(--gh-navy); font-size: 16px; font-weight: 700; line-height: 1.5; }
.gh-postCard__desc { color: var(--gh-muted); font-size: 13px; line-height: 1.6; }
.gh-postCard__soon { align-self: flex-start; color: var(--gh-muted); font-size: 12px; }

.gh-emptyBox { padding: 28px 24px; border: 1px dashed var(--gh-line2); border-radius: var(--gh-radius); background: var(--gh-bg-soft); text-align: center; }
.gh-emptyBox__text { margin: 0 0 16px; color: var(--gh-muted); font-size: 15px; }
.gh-emptyBox__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gh-emptyBox__links a, .gh-chipLinks a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--gh-line);
	border-radius: 3px;
	background: #fff;
	color: var(--gh-blue);
	font-size: 14px;
	text-decoration: none;
}
.gh-chipLinks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gh-emptyBox__links a:hover, .gh-chipLinks a:hover { background: var(--gh-bg-soft); }

.gh-listGroup { margin: 0 0 28px; }
.gh-listGroup__title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--gh-blue); font-size: 19px; }
.gh-listGroup__title a { color: var(--gh-navy); text-decoration: none; }
.gh-listGroup__title span { color: var(--gh-muted); font-size: 13px; font-weight: 400; }
.gh-linkList { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.gh-linkList a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--gh-line); color: var(--gh-blue); font-size: 15px; font-weight: 700; text-decoration: none; }
.gh-linkList a::after { content: "›"; font-size: 1.4em; line-height: 1; }

.gh-archParts { margin-bottom: 40px; }

/* サイトマップ */
.post_content .gh-sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.post_content .gh-sitemap__title { margin: 0 0 8px; padding: 0 0 8px; border: 0; border-bottom: 2px solid var(--gh-blue); background: none; font-size: 20px; }
.post_content .gh-sitemap__title::before, .post_content .gh-sitemap__title::after { content: none; }
.post_content .gh-sitemap__title a { color: var(--gh-navy); text-decoration: none; }
.post_content .gh-sitemap__sub { margin: 16px 0 4px; padding: 0; border: 0; background: none; font-size: 15px; }
.post_content .gh-sitemap__sub::before, .post_content .gh-sitemap__sub::after { content: none; }
.post_content .gh-sitemap__sub a { color: var(--gh-ink); }
.post_content .gh-sitemap__list { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.9; }
.post_content .gh-sitemap__list ul { padding-left: 1.2em; }

@media (max-width: 959px) {
	.gh-archHead { padding: 20px 16px; }
	.gh-archHead__title { font-size: 28px; }
	.gh-archH2 { font-size: 20px; }
	.gh-childCards, .gh-childCards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gh-postCards { grid-template-columns: minmax(0, 1fr); }
}
/* 一覧ページはSWELLの記事幅（900px）ではなく、全幅で使う */
.gh-site #main_content.gh-archive { max-width: none; width: 100%; }
