/*
 * ===== PXB共通デザイントークン／再利用スタイル =====
 *
 * 値の出典：PXB固定ページ（ID:97123、テンプレート「1カラムのページ用 -
 * シリーズトップ」page-one-column-seritop2026.php）のpost_content内<style>。
 * このテンプレートPHP自体はget_header()+get_template_part()+get_footer()だけの
 * 空の器で、実際のデザインは全てpost_content側の<style>とHTMLクラスに書かれている
 * （2026-07-28、本人が本文全体を共有・確認済み）。
 *
 * ここで切り出しているのは、「PXBの見た目を再現した」という同じ由来を持つ
 * 見出し3種類／タブナビ中央寄せが、seriestop-common.css内の別々のセレクタに
 * それぞれ個別の値としてベタ書きされていたのを1箇所にまとめたもの。
 * 値を直す必要が出たときはここだけ直せばよい。将来ここに無い場所（他シリーズの
 * 個別ページや別テンプレート）で同じ見た目を使いたくなった場合は、対応する
 * pxb-heading-* / pxb-tab-nav-centered クラスをHTMLに追加するだけでよい。
 *
 * 既存の意味的なクラス名（.ktab-panel__title、.series-block__body h3、
 * .series-intro__heading、.pxmenu）にも同じ値を効かせてあるので、現行の
 * テンプレート・PHPコードは書き換えなくてもそのまま動く。
 *
 * css/tab.cssの.site-main .ktab h2/h3（詳細度0,2,1）がfooter.php側で後から
 * 読み込まれるため、詳細度が同じだと!important同士でも読み込み順で負ける。
 * PXB自身が.kinox h3等をbody .site-main .kinox h3という書き方で詳細度(0,2,2)に
 * していたのに倣い、ここでも見出し系の実効ルールは全て body .site-main を付けて
 * 確実に上回るようにしてある（タブナビの中央寄せはtab.cssと競合しないためそのまま）。
 * ※.ktab-panel__titleのようにクラス名で終わるセレクタは、body を足しても
 * tab.cssの.site-main .ktab h2と詳細度が同点（0,2,1）のままなので、
 * 読み込み順（このファイルがtab.cssの後）で勝つ形になる。念のため元のPXB側と
 * 同じプロパティに!importantも付けて二重に確保している。
 * 参照: memory/project_seriestop-common-template-plan.md
 */

:root {
	--pxb-accent-red: red;
	--pxb-accent-dark: #222;
	--pxb-heading-text: #333;
}

/*
 * 赤い縦バー見出し（PXBの.kinox h3 / .kinox h3:before相当）。
 * 機能紹介／外観・外部制御の各項目、仕様・ラインアップタブに残る小見出し用。
 * バーは負のmargin（margin-left:-1.5rem）で見出し本文の左外に配置する
 * PXBそのままの方式（.series-block/.ktab-panelの内側paddingが1.5rem以上
 * あるため、バーがはみ出さずに収まる）。
 * .ktab-panel h3 はシリーズトップ共通テンプレートのページだけに限定する。このファイルは
 * 製品ページ（資料タブの赤バー見出し用）でも読み込むため、限定しないと製品ページの
 * 仕様タブ等の見出しにまで赤バーと12.5remの上余白が付いていた（2026-10-29）。
 */
body .site-main .pxb-heading-bar-red,
body .site-main .series-block__body h3,
body.page-template-page-seriestop-common .site-main .ktab-panel h3 {
	font-size: 1.4rem;
	color: var(--pxb-heading-text);
	font-weight: bold;
	position: relative;
	line-height: 2rem;
	padding: 1.2rem 0 !important;
	margin-top: 12.5rem !important;
}

body .site-main .pxb-heading-bar-red::before,
body .site-main .series-block__body h3::before,
body.page-template-page-seriestop-common .site-main .ktab-panel h3::before {
	content: "" !important;
	position: absolute;
	display: block;
	width: 4px;
	height: 100%;
	margin-left: -1.5rem;
	margin-top: -1.2rem;
	background: var(--pxb-accent-red) !important;
}

/*
 * PXB本家は.kinox .pxbkinous h3:first-childのみ（モバイル限定）で先頭の
 * 12.5rem margin-topを打ち消しているが、共通テンプレートには常にPXBの
 * sticky-visual／大型ヒーローのような「先頭の間延びを吸収する装飾」が無いため、
 * PC/モバイル問わず先頭の項目だけ打ち消す（PXBと違い常時適用にしている点に注意）。
 */
body .site-main .series-blocks-section > .series-block:first-child h3,
body .site-main .series-blocks-section > h3:first-child {
	margin-top: 0 !important;
}

/*
 * ===== 黒い縦バー見出し（PXBの.pagetoph2 h2 / .pagetoph2 h2:before相当） =====
 * タブ内の冒頭説明見出し用。バーの高さだけはPXB本家の固定7.5rem
 * （2行見出し前提）ではなく、見出しの行数・長さがシリーズごとに変わっても
 * 追従できるよう100%にしてある（唯一の意図的な変更点）。
 */
body .site-main .pxb-heading-bar-dark,
body .site-main .series-intro__heading {
	color: var(--pxb-accent-dark);
	font-size: 1.4rem !important;
	line-height: 2.4rem;
	max-width: 1200px;
	margin: 0 auto;
	padding-bottom: 2rem;
	position: relative;
}

body .site-main .pxb-heading-bar-dark::before,
body .site-main .series-intro__heading::before {
	content: "";
	position: absolute;
	display: block;
	width: 4px;
	height: 100%;
	margin-left: -1.5rem;
	margin-top: -1.2rem;
	background: var(--pxb-accent-dark);
}

/*
 * ===== 赤い短い下線見出し（PXBの.nupt h1/h2.entry-title相当） =====
 * 各タブパネル（製品概要／機能紹介／外観・外部制御／仕様／ラインアップ）
 * 先頭の大見出し用。
 */
body .site-main .pxb-heading-underline,
body .site-main .ktab-panel__title {
	color: #434343 !important;
	max-width: 1200px;
	margin: 0 auto !important;
	padding: 5rem 3rem 10px 0 !important;
	letter-spacing: 0.00721rem;
	font-size: 2rem !important;
	position: relative;
	font-family: "IBM Plex Sans JP", sans-serif;
	font-weight: 500 !important;
	font-style: normal;
}

body .site-main .pxb-heading-underline::before,
body .site-main .ktab-panel__title::before {
	height: 5px;
	content: "";
	display: block;
	width: 2rem;
	position: absolute;
	bottom: 0;
	left: 0;
	background: var(--pxb-accent-red);
}

/*
 * タブナビの中央寄せ（PXBの.pxmenu相当）。
 * UL自体はmargin:autoで中央寄せしていた。各タブ(li)側のtext-align:centerに
 * !importantが無く、tab.css（サイト共通、後読み込み）側との詳細度の綱引きに
 * 負けて左寄せになっていた（このテーマで繰り返し出ているCSS読み込み順の罠、
 * 日本語は文言が短く目立たなかっただけ）。ユーザーが英語ページのDevToolsで
 * 実測・確認済み。
 */
.pxb-tab-nav-centered,
ul.ktablist.pxmenu {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto !important;
	justify-content: center !important;
}

.pxb-tab-nav-centered li,
ul.ktablist.pxmenu li {
	text-align: center !important;
}

.pxb-tab-nav-centered li.ktabli a.activo::before,
.pxb-tab-nav-centered li.ktabli a::before,
ul.ktablist.pxmenu li.ktabli a.activo::before,
ul.ktablist.pxmenu li.ktabli a::before {
	display: none;
}

@media (max-width: 1000px) {
	.pxb-tab-nav-centered,
	ul.ktablist.pxmenu {
		margin-right: 1.5rem !important;
	}
}
