@charset "utf-8";
/* ==========================================================================
   base.css  (2026 リニューアル版)
   - 2026-10 PC表示を調整：全体幅1200px・本文16px／行間1.85（旧：1036px・13px）
   - 旧テンプレの ID / クラス名・配色・画像をそのまま継承
   - HTML5 + レスポンシブ対応（PC: 2カラム / 〜768px: 1カラム）
   - IE6〜9 向けハック（*height, _height, \9 など）は削除
   ========================================================================== */

/* ---------- 基本 ---------- */
html {
	overflow-y: scroll;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

*, *::before, *::after {
	box-sizing: border-box;
}

* {
	margin: 0; padding: 0;
}

a:focus-visible, button:focus-visible {
	outline: 2px solid #a8e13a;
	outline-offset: 2px;
}

body {
	font-size: 16px;
	background: #cecece url(../images/bg.png) repeat-x left top;
	color: #444;
	font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Hiragino Sans", "Noto Sans JP", sans-serif;
	/* 画面下の固定ナビにフッターが隠れないように */
	padding-bottom: 50px;
}

body.pdr {
	background: #fff;
}

ul, li {
	list-style-type: none;
}

a {
	text-decoration: none;
	color: #688f00;
}

a:hover {
	color: #000;
}

p {
	margin: 0 0 15px;
	line-height: 1.85;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 0;
}

/* 旧マークアップの <div align="center"> 対策 */
[align="center"] {
	text-align: center;
}
[align="center"] img {
	margin-left: auto;
	margin-right: auto;
}

.wrap {
	max-width: 1200px;
	margin: 0 auto;
	background: #fff;
}

/* ---------- ヘッダー ---------- */
#header_area {
	max-width: 1200px;
	padding: 0 20px 20px;
	margin: 0 auto;
	position: relative;
	background: #fff;
}

#header_area .mainimg,
#header_area > img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 996 / 310;
	max-height: 300px; /* 幅が広がってもヘッダーが縦に伸びすぎないように */
	object-fit: cover;
	object-position: center top;
	margin: 0;
}

#header_areain {
	position: absolute;
	top: 42%;
	left: 20px;
	background: url(../images/herf_bg.png);
	background-color: rgba(0, 0, 0, .55);
	margin: 0;
	z-index: 100;
}

#header_areapdr {
	max-width: 1160px;
	height: 130px;
	padding: 0;
	margin: 0 auto;
	position: relative;
}

/* サイト名：トップは <h1>、記事ページは <p class="site_title">（見た目は同じ）
   記事ページの h1 は本文側の記事タイトルに使う */
#header_areain h1, #header_areapdr h1,
#header_areain .site_title, #header_areapdr .site_title {
	margin: 0 50px 0 0;
	font-size: 28px;
	font-weight: bold;
	line-height: 1.3;
	padding: 6px 10px 6px 20px;
}

#header_areain a, #header_areapdr a {
	color: #fff;
}

#header_areain a:hover, #header_areapdr a:hover {
	color: #a8e13a;
}

#header_areain h2, #header_areapdr h2 {
	margin: 0 50px 10px 0;
	font-size: 13px;
	font-weight: normal;
	padding: 0 10px 0 20px;
	color: #cccccc;
	background-image: url(../images/h3_bg.png);
}

/* ---------- ナビ（画面下に固定） ---------- */
#nav {
	background: url(../images/menu_bg_bg.png);
	background-color: rgba(0, 0, 0, .8);
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 10px 0;
	padding-bottom: calc(10px + env(safe-area-inset-bottom));
	width: 100%;
	z-index: 1000;
}

#nav ul {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0;
	display: flex;
	background: url(../images/menu_bg.png);
	background-size: 100% 100%;
}

#nav ul li {
	margin: 0;
	padding: 0;
	flex: 1 1 0;
	min-width: 0;
	font-size: 14px;
	font-weight: bold;
}

#nav ul li a {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin: 0;
	padding: 4px 4px;
	min-height: 27px;
	color: #a8e13a;
}

#nav ul li a:hover,
#nav ul li a[aria-current="page"] {
	background: rgba(168, 225, 58, .25);
	color: #fff;
}

/* スマホ用メニューボタン（PCでは非表示） */
#nav .nav_toggle {
	display: none;
}

/* ---------- コンテナ（2カラム） ---------- */
#conteiner {
	max-width: 1200px;
	margin: 0 auto;
	background: #fff;
	padding: 20px 20px 0;
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	grid-template-areas:
		"side main"
		"foot foot";
	column-gap: 48px;
}

#main_contents {
	grid-area: main;
	min-width: 0;
	margin: 0;
	padding: 0;
	line-height: 1.85;
}

#side_contents {
	grid-area: side;
	min-width: 0;
	margin: 0;
	padding: 0;
}

#footer_area {
	grid-area: foot;
}

/* 本文中の画像・表がはみ出さないように */
#main_contents img {
	max-width: 100%;
	height: auto;
}
#main_contents table {
	max-width: 100%;
}

.text_area, .news_area, .resite_area, .sm_area {
	margin: 0 0 20px 0;
	padding: 0 0 20px 0;
	display: block;
	overflow: hidden;
}

.resite_area {
	padding-bottom: 40px;
}

.text_area h3, .news_area h3, .resite_area h3, .sm_area h3 {
	background: #c7ff33 url(../images/h3_bg.png) no-repeat left top;
	margin: 0;
	color: #fff;
	font-size: 18px;
	padding: 8px 12px 8px 15px;
	min-height: 30px;
	line-height: 1.4;
	padding-top: 10px;
	padding-bottom: 10px;
}

.resite_area h3 {
	margin-bottom: 15px;
}

.text_area p {
	margin: 0 15px;
	padding-top: 15px;
}

.sm_area ul, .text_area ul {
	margin: 10px 15px;
}

.news_area dl {
	margin: 8px 15px 10px 15px;
	overflow: hidden;
}

.news_area dt {
	font-size: 14px;
	padding: 5px 3px 0 0;
	margin: 0;
	color: #999;
}

.news_area dd {
	padding: 0 5px 5px 0;
	margin: -1px 0 0 0;
	border-bottom: 1px solid #aaa;
}

.resite_area p {
	font-size: 15px;
	margin: 5px 15px 0 15px;
	padding: 0;
	font-weight: bold;
	color: #688f00;
}

.resite_area div {
	margin: 2px 15px 0 15px;
	padding: 0 0 3px 15px;
	border-bottom: 1px solid #aaa;
}

.sm_area ul li, .text_area ul li {
	margin: 0 0 10px 0;
	padding: 0 0 0 18px;
	background: url(../images/li.gif) no-repeat 0 7px;
}

/* ---------- サイドバー ---------- */
#side_contents h4 {
	background: #8e8e8e url(../images/h4_bg.png) no-repeat left top;
	margin: 0;
	color: #fff;
	font-size: 15px;
	padding: 8px 12px 8px 15px;
	min-height: 30px;
	line-height: 1.4;
}

.recosite_area {
	margin: 0;
	padding: 15px 0 0 0;
	line-height: 1.6;
}

.recosite_area img {
	display: block;
	margin: 0 auto;
	border: 1px dotted #444;
}

.recosite_area p {
	display: block;
	max-width: 187px;
	margin: 5px auto 0 auto;
	color: #444;
	font-weight: bold;
	font-size: 13px;
	padding: 0;
	line-height: 120%;
}

.recosite_area div {
	display: block;
	max-width: 187px;
	margin: 0 auto;
	padding-bottom: 10px;
	color: #666;
}

.recosite_area h2 {
	font-size: 18px;
}

/* ---------- サイド：コンテンツメニューボックス ---------- */
.side_menu {
	margin: 0 0 30px;
	border: 1px solid #ddd;
	border-top: 0;
	background: #fff;
}

#side_contents .side_menu h4 {
	margin: 0;
}

.side_menu_cat {
	margin: 0;
	padding: 6px 12px 5px;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: .1em;
	color: #688f00;
	background: #f4f9e6;
	border-left: 4px solid #a8e13a;
	border-bottom: 1px solid #e3edc8;
	line-height: 1.4;
}

.side_menu ul {
	margin: 0;
	padding: 0;
}

.side_menu li + li {
	border-top: 1px dotted #ccc;
}

.side_menu li a {
	display: block;
	position: relative;
	padding: 9px 28px 9px 26px;
	background: url(../images/li.gif) no-repeat 13px 15px;
	color: #444;
	line-height: 1.35;
	transition: background-color .15s;
}

/* 右端の矢印 */
.side_menu li a::after {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -4px;
	border-top: 2px solid #a8e13a;
	border-right: 2px solid #a8e13a;
	transform: rotate(45deg);
	transition: right .15s;
}

.side_menu_name {
	display: block;
	font-size: 15px;
	font-weight: bold;
	color: #688f00;
}

.side_menu_sub {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	color: #888;
}

.side_menu li a:hover {
	background-color: #f4f9e6;
}
.side_menu li a:hover .side_menu_name {
	color: #000;
}
.side_menu li a:hover::after {
	right: 9px;
}

/* 表示中のページ */
.side_menu li a[aria-current="page"] {
	background-color: #f4f9e6;
	box-shadow: inset 4px 0 0 #688f00;
}
.side_menu li a[aria-current="page"] .side_menu_name {
	color: #333;
}

/* ---------- フッター ---------- */
#footer_area {
	clear: both;
	width: 100%;
	padding: 0;
	margin: 0 auto;
}

#footer_area p {
	display: block;
	text-align: center;
	padding: 30px 0 40px 0;
	margin: 0 auto;
	color: #555;
}

/* ==========================================================================
   タブレット（〜1036px）
   ========================================================================== */
@media (max-width: 1200px) {
	#conteiner {
		grid-template-columns: 240px minmax(0, 1fr);
		column-gap: 32px;
	}
	#nav ul li {
		font-size: 13px;
	}
}

/* ==========================================================================
   スマホ（〜768px）：1カラム、メニューは下部ボタンで開閉
   ========================================================================== */
@media (max-width: 768px) {
	body {
		font-size: 16px;
		background: #fff;
		padding-bottom: 60px;
	}

	#header_area {
		padding: 0 0 12px;
	}

	/* サイト名は画像の上に重ねず、画像の下に帯として表示 */
	#header_areain {
		position: static;
		background-color: #222;
	}
	#header_areain h1, #header_areain .site_title {
		font-size: 18px;
		margin: 0;
		padding: 10px 12px;
	}

	#conteiner {
		display: block;
		padding: 0 12px;
	}

	#main_contents {
		font-size: 16px;
		line-height: 1.8;
	}

	.text_area p {
		margin: 0 4px;
	}
	.news_area dl,
	.sm_area ul, .text_area ul {
		margin-left: 4px;
		margin-right: 4px;
	}
	.resite_area p,
	.resite_area div {
		margin-left: 4px;
		margin-right: 4px;
	}

	/* 本文の float 画像は回り込みを解除して中央に */
	#main_contents img {
		float: none !important;
		margin: 10px auto 15px !important;
	}

	/* インラインで大きく指定された文字・行間を抑える */
	#main_contents [style*="line-height : 50px"],
	#main_contents [style*="line-height:50px"] {
		line-height: 1.5 !important;
	}
	#main_contents font[style*="200%"] {
		font-size: 150% !important;
	}

	#side_contents {
		margin-top: 10px;
	}
	#side_contents h4 {
		background-size: 100% 100%;
	}
	/* スマホでは車種を2列に並べてタップしやすく */
	.side_menu ul {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
	.side_menu li + li {
		border-top: 0;
	}
	.side_menu li {
		border-bottom: 1px dotted #ccc;
	}
	.side_menu li:nth-child(odd) {
		border-right: 1px dotted #ccc;
	}
	.side_menu li a {
		min-height: 56px;
		padding: 10px 24px 10px 24px;
		background-position: 11px 17px;
	}
	.side_menu_name {
		font-size: 15px;
	}
	.side_menu_sub {
		font-size: 12px;
	}
	.recosite_area br + br {
		display: none;
	}

	/* --- ナビ --- */
	#nav {
		padding: 0;
		padding-bottom: env(safe-area-inset-bottom);
		background: #111;
	}
	#nav ul {
		width: 100%;
	}
	/* 本文先頭の小見出し帯（インライン 11px）をスマホでは読める大きさに */
	#main_contents .text_area > h2[style] {
		font-size: 13px !important;
		padding: 4px 8px;
	}
	#nav .nav_toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		width: 100%;
		height: 48px;
		border: 0;
		background: transparent;
		color: #a8e13a;
		font: inherit;
		font-weight: bold;
		font-size: 14px;
		letter-spacing: .1em;
		cursor: pointer;
	}
	#nav .nav_toggle .bar,
	#nav .nav_toggle .bar::before,
	#nav .nav_toggle .bar::after {
		display: block;
		width: 18px;
		height: 2px;
		background: #a8e13a;
		position: relative;
		transition: transform .2s;
	}
	#nav .nav_toggle .bar::before,
	#nav .nav_toggle .bar::after {
		content: "";
		position: absolute;
		left: 0;
	}
	#nav .nav_toggle .bar::before { top: -6px; }
	#nav .nav_toggle .bar::after  { top: 6px; }
	#nav.is-open .nav_toggle .bar { background: transparent; }
	#nav.is-open .nav_toggle .bar::before { transform: translateY(6px) rotate(45deg); }
	#nav.is-open .nav_toggle .bar::after  { transform: translateY(-6px) rotate(-45deg); }

	#nav ul {
		display: grid;
		grid-template-columns: 1fr 1fr;
		background: none;
		max-height: 70vh;
		overflow-y: auto;
		border-bottom: 1px solid #333;
	}
	#nav ul li {
		font-size: 13px;
		border-top: 1px solid #333;
	}
	#nav ul li:nth-child(odd) {
		border-right: 1px solid #333;
	}
	#nav ul li a {
		min-height: 48px;
		padding: 6px 8px;
	}
	/* JS 有効時のみ折りたたむ（JS 無効でもメニューは見える） */
	.js #nav ul {
		display: none;
	}
	.js #nav.is-open ul {
		display: grid;
	}
	/* ボタンをリストの下に置く（親指で押しやすい位置） */
	#nav {
		display: flex;
		flex-direction: column-reverse;
	}
}

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

/* ==========================================================================
   2026 コンテンツリニューアル追加分（記事用パーツ）
   - 既存の .text_area / .news_area / .sm_area を土台に、表・注記・図を追加
   ========================================================================== */
/* 記事タイトル（ページの h1） */
#main_contents h1 {
	font-size: 28px;
	line-height: 1.45;
	color: #333;
	margin: 0 0 6px;
	padding: 0 0 8px 12px;
	border-left: 6px solid #a8e13a;
	border-bottom: 1px solid #ddd;
}

#main_contents h2 {
	font-size: 24px;
	line-height: 1.45;
	color: #333;
	margin: 0 0 6px;
	padding: 0 0 8px 12px;
	border-left: 6px solid #a8e13a;
	border-bottom: 1px solid #ddd;
}
#main_contents .text_area > h2:first-child {
	font-size: 26px;
}
.lead {
	font-size: 17px;
	color: #555;
}
.text_area h3, .news_area h3, .sm_area h3 {
	margin-top: 24px;
}
.text_area h4 {
	margin: 18px 15px 0;
	font-size: 17px;
	color: #688f00;
}
.text_area ol {
	margin: 10px 15px 10px 38px;
}
.text_area ol li {
	margin: 0 0 8px;
	list-style: decimal;
	line-height: 1.6;
}
.updated {
	margin: 4px 0 0;
	font-size: 13px;
	color: #888;
}

/* 表（スマホは横スクロール） */
.tbl_wrap {
	margin: 15px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.tbl_wrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
	min-width: 520px;
}
.tbl_wrap th, .tbl_wrap td {
	border: 1px solid #ccc;
	padding: 6px 8px;
	vertical-align: top;
}
.tbl_wrap thead th {
	background: #f4f9e6;
	color: #333;
	white-space: nowrap;
}
.tbl_wrap tbody th {
	background: #fafafa;
	text-align: left;
	white-space: nowrap;
}
.tbl_wrap td.num, .tbl_wrap th.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.tbl_wrap tr.em td, .tbl_wrap tr.em th {
	font-weight: bold;
	background: #f4f9e6;
}
.tbl_wrap td.best {
	background: #e6f5c4;
	font-weight: bold;
}
.tbl_wrap caption {
	caption-side: bottom;
	text-align: left;
	font-size: 13px;
	color: #777;
	padding-top: 6px;
}

/* 注記・ポイント */
.note, .point {
	margin: 15px;
	padding: 12px 15px;
	font-size: 15px;
	line-height: 1.7;
	border-radius: 3px;
}
.note {
	background: #f6f6f6;
	border-left: 4px solid #aaa;
	color: #555;
}
.point {
	background: #f4f9e6;
	border-left: 4px solid #a8e13a;
}
.note p, .point p {
	margin: 0 0 6px;
	padding: 0;
}
.note ul, .point ul {
	margin: 4px 0 0;
}
.note li, .point li {
	margin: 0 0 4px;
	padding-left: 1em;
	text-indent: -1em;
	background: none;
}
.note li::before, .point li::before {
	content: "・";
}
.formula {
	margin: 15px;
	padding: 14px;
	text-align: center;
	font-size: 18px;
	font-weight: bold;
	border: 2px solid #a8e13a;
	background: #fff;
}

/* 図 */
.fig {
	margin: 15px;
	text-align: center;
}
.fig svg {
	width: 100%;
	max-width: 560px;
	height: auto;
}
.fig figcaption {
	font-size: 13px;
	color: #777;
	margin-top: 4px;
}

/* 出典 */
.sources {
	margin: 15px;
	font-size: 13px;
	color: #666;
	word-break: break-all;
}
.sources li {
	margin: 0 0 4px;
	padding-left: 1em;
	text-indent: -1em;
}
.sources li::before {
	content: "・";
}

/* トップの入口カード */
.entry_grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 15px;
}
.entry_grid a {
	display: block;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-top: 4px solid #a8e13a;
	color: #444;
	transition: background-color .15s;
}
.entry_grid a:hover {
	background: #f4f9e6;
}
.entry_grid strong {
	display: block;
	font-size: 18px;
	color: #688f00;
	margin-bottom: 4px;
}
.entry_grid span {
	font-size: 14px;
	color: #777;
	line-height: 1.5;
	display: block;
}

/* 記事末「次に読む」 */
.sm_area.next_read ul {
	margin: 10px 15px;
}
.next_read .tag {
	display: inline-block;
	margin-left: 6px;
	padding: 0 6px;
	font-size: 12px;
	color: #688f00;
	border: 1px solid #c9e48a;
	border-radius: 2px;
	vertical-align: 1px;
}

@media (max-width: 768px) {
	#main_contents h1 { font-size: 22px; }
	#main_contents h2 { font-size: 20px; }
	#main_contents .text_area > h2:first-child { font-size: 22px; }
	.lead { font-size: 16px; }
	.tbl_wrap table { font-size: 14px; }
	.tbl_wrap, .note, .point, .formula, .fig, .sources, .entry_grid {
		margin-left: 4px;
		margin-right: 4px;
	}
	.entry_grid { grid-template-columns: 1fr; }
	.text_area h4 { margin-left: 4px; margin-right: 4px; }
	.text_area ol { margin-left: 26px; margin-right: 4px; }
	.fig svg { margin: 0 auto; }
}

/* 既存の .text_area ul li（li.gif 付き）と重ならないように上書き */
.text_area .note ul, .text_area .point ul, .text_area ul.sources {
	margin: 4px 0 0;
}
.text_area ul.sources {
	margin: 10px 15px;
}
.text_area .note li, .text_area .point li, .text_area ul.sources li {
	background: none;
	padding: 0 0 0 1em;
	margin: 0 0 4px;
}
@media (max-width: 768px) {
	.text_area ul.sources { margin-left: 4px; margin-right: 4px; }
}

/* 幅を広げたので、見出し帯の背景画像（固定幅）を枠いっぱいに伸ばす */
.text_area h3, .news_area h3, .resite_area h3, .sm_area h3,
#side_contents h4 {
	background-size: 100% 100%;
}

/* 記事のアイキャッチ画像 */
.eyecatch {
	margin: 15px 15px 5px;
}
.eyecatch img,
.top_feature img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1200 / 670;
	border-radius: 4px;
	border: 1px solid #e5e5e5;
}
.top_feature {
	display: block;
	margin: 15px 15px 0;
	transition: opacity .15s;
}
.top_feature:hover {
	opacity: .85;
}
@media (max-width: 768px) {
	.eyecatch, .top_feature { margin-left: 4px; margin-right: 4px; }
	#main_contents .eyecatch img, #main_contents .top_feature img { margin: 0 !important; }
}
