@charset "utf-8";
*{
	font-family:"Lucida Grande","Hiragino Kaku Gothic ProN","Meiryo","sans-serif";
	margin:0;
	padding:0;
	position:relative;
}
body{
	font-size:14px;
	z-index:0;
}
a{
	text-decoration:none;
}
a:hover{
	text-decoration:underline;
}
input,button,select,textarea{
	padding:.5em;
	border:solid 1px #004574;
}
input[type="text"],input[type="email"],input[type="password"]{
	min-width:40%;
}
input[type="radio"],input[type="checkbox"]{
	vertical-align:middle;
}
input[type="email"],input[type="password"]{
	ime-mode:disabled;
}
input[type="button"],input[type="submit"]{
	color:#fff;
	font-weight:bold;
	background-color:#004574;
}
input[type="button"]:hover,input[type="submit"]:hover{
	background-color:#206594;
	cursor:pointer;
}
input::placeholder{
	color:#d0d5da;
}
input:-ms-input-placeholder{
	color:#d0d5da;
}
input::-ms-input-placeholder{
	color:#d0d5da;
}
textarea{
	min-height:2em;
	resize:vertical;
}
header{}
@media screen and (min-width:1200px){
	main{
		display:flex;
		max-width:1252px;
		min-height:840px;
		padding:0 4px;
		margin:4px auto;
	}
	#blsd{
		display:flex;
		flex:1;
	}
	/* 左カラム(#lsd) は 2 カラム化方針のため PC では非表示 */
	#lsd{
		display:none !important;
	}
	#csd{
		flex:1;
		margin:0 20px 0 0;
	}
	#csd .box{
		margin:20px;
	}
	#rsd{
		width:300px;
	}
	#rsd .box{
		margin:20px 0;
	}
	#topmenu ul{
		color:#004574;
		list-style:none;
		padding-top:10px;
	}
	.blogo{
		width:300px;
	}
	.mythumb{
		width:40px;
	}
	.upper_bcl{
		margin-top:calc(55px + 3em);
	}
}
@media screen and (max-width:1200px){
	.blogo{
		max-width:225px;
	}
	.mythumb{
		max-width:30px;
	}
	.upper_bcl{
		margin-top:calc(45px + 3em);
	}
}
@media screen and (min-width: 900px) and (max-width: 1200px){
	main{
		display:flex;
		max-width:1252px;
		min-height:840px;
		padding:0 4px;
		margin:4px auto;
	}
	#blsd{
		flex:1;
		margin-right:20px;
	}
	#lsd{
		display:none !important;
	}
	#csd{
		width:100%;
	}
	#csd .box{
		margin:20px;
	}
	#rsd{
		width:300px;
	}
	#rsd .box{
		margin:20px 0;
	}
	#topmenu ul{
		font-size:80%;
		color:#004574;
		list-style:none;
		padding-top:8px;
	}
}
@media screen and (min-width:900px){
	#tmb{
		display:none;
	}
	#topmenu{
		flex:1;
		text-align:center;
	}
	#topmenu ul li{
		display:inline-block;
	}
	#topmenu ul li:not(:first-child){
		margin-left:2em;
	}
	#tmcb{
		display:none;
	}
	#seabox p{
		font-size:80%;
		margin-right:1em;
		padding-top:6px;
	}
	.rad300{
		width:300px;
		margin-left:20px;
	}
	.follow_region{
		position:-webkit-sticky;
		position:sticky;
		top:0px;
	}
	.sp_only{
		display:none !important;
	}
}
@media screen and (max-width:900px){
	main{
		padding:0 4px;
		margin:4px auto;
	}
	/* モバイル: #blsd を縦積み、#rsd を上部に */
	#blsd{
		flex-direction:column;
	}
	#lsd{
		display:none !important;
	}
	#csd{
		width:100%;
		margin:0;
		order:2;
	}
	#csd .box{
		margin:20px 0;
	}
	#rsd{
		width:100%;
		order:1;
		margin-bottom:12px;
	}
	#rsd .box{
		margin:12px 0;
	}
	/* モバイルでは広告ユニットは1枠だけ表示 */
	#rsd .ad_unit:nth-of-type(n+2){
		display:none;
	}
	/* 旧 .cad300 も1枠目以降は隠す（マイグレーション中の両立） */
	#rsd .cad300:nth-of-type(n+2){
		display:none;
	}
	#tmb{
		max-width:30px;
		border:0;
		background:0;
	}
	#tmb:focus{
		outline:0;
	}
	#tmb:hover{
		cursor:pointer;
	}
	#topmenu{
		position:fixed;
		display:block;
		width:100%;
		top:0;
		left:0;
		height:1000px;
		color:#004574;
		background-color:#fff;
		z-index:1;
	}
	#topmenu ul{
		width:90%;
		list-style:none;
		margin:0 auto;
	}
	#topmenu li{
		padding:10px 30px 10px 30px;
	}
	#topmenu li:not(:first-child){
		border-top:dotted 1px #004574;
	}
	#tmcb{
		border:0;
		background:0;
		margin:5px;
	}
	#tmcb:focus{
		outline:0;
	}
	#tmcb:hover{
		cursor:pointer;
	}
	#tmcb img{
		width:30px;
	}
	#seabox p{
		display:none;
	}
	.rad300{
		display:none;
	}
	.unvisibile{
		visibility:hidden;
	}
}
.hdrc{
	position:fixed;
	top:0;
	width:100%;
	border-bottom:solid 1px #ddd;
	background-color:#fff;
	z-index:10;
}
.upper_bcl{
	max-width:1252px;
	font-size:100%;
	margin-left:auto;
	margin-right:auto;
	margin-bottom:4px;
}
.hdc{
	max-width:1252px;
	padding:4px;
	margin:0 auto;
}
.hdtc{
	display:flex;
	justify-content:space-between;
}
#topmenu li a{
	color:#004574;
}
#tmb img{
	width:100%;
}
.blogo img{
	width:100%;
}
.mythumb img{
	width:100%;
}
#seabox{
	display:flex;
	margin:2px 0;
}
#seabox input[type=text]{
	flex:1;
	border:solid 1px #004574;
	border-right:0;
	border-radius:10px 0 0 10px;
	background-color:#fff;
}
#seabox input[type=text]:focus{
	outline:0;
	border:solid 1px #000;
	box-shadow:0px 0px 1px;
}
#seabox button{
	border:solid 1px #004574;
	border-radius:0 10px 10px 0;
	background-color:#004574;
}
#seabox button img{
	width:20px;
	height:20px;
	vertical-align:middle;
}
#seabox button:hover{
	cursor:pointer;
	background-color:#3075a4;
}
#seabox button:focus{
	outline:0;
	border:solid 1px #000;
	box-shadow:0px 0px 1px;
}
.bclist{
	font-size:80%;
	color:#626262;
	line-height:200%;
	list-style:none;
	margin:4px 0 2px 0;
}
.bclist li{
	display:inline;
}
.bclist li a{
	color:#626262;
}
.bclist li img{
	width:10px;
	height:10px;
}
.bclist li:not(:first-child):before{
	content:">";
	padding:0 .8em;
}
.blbl{
	display:block;
	font-size:120%;
	color:#004574;
	border-left:solid 3px #004574;
	border-bottom:solid 3px #004574;
	padding-left:5px;
	margin-bottom:16px;
}
.blbl:after{
	position:absolute;
	display:block;
	width:calc(100% - 3px);
	content:" ";
	border-bottom:solid 1px #004574;
	margin:4px -2px;
}
.lbl{
	display:block;
	font-size:120%;
	color:#004574;
	border-bottom:solid 3px #004574;
	margin-bottom:16px;
}
.lbl:after{
	position:absolute;
	display:block;
	width:100%;
	content:" ";
	border-bottom:solid 1px #004574;
	margin-top:4px;
}
.fdrc{
	border-top:solid 1px #ddd;
}
.fdc{
	max-width:1252px;
	padding:4px;
	margin:0 auto;
}
.copyright{
	text-align:center;
	margin-top:4px;
}
.system_msg_box{
	color:red;
	text-align:center;
	padding:20px 10px;
	border:solid 1px red;
	margin-bottom:20px;
}
.bhr{
	border:0;
	border-bottom:double 3px #004574;
}
.bbtn{
	display:block;
	min-width:40%;
	max-width:300px;
	color:#fff;
	font-weight:bold;
	padding:.7em !important;
	background-color:#004574;
	margin-left:auto;
	margin-right:auto;
}
.bbtn:hover{
	background-color:#206594;
	cursor:pointer;
}
.bbtn img{
	vertical-align:middle;
	margin-left:.5em;
	margin-right:.5em;
}
.ad_box{
	display:flex;
	justify-content:center;
	margin:20px auto;
}
.lad300{
	width:300px;
}
.cad300{
	width:300px;
	margin:0 auto;
}
.pagenavi{
    clear:both;
    text-align:center;
	margin:20px 0;
}
.pagenavi>ul{
    display:inline-block;
}
.pagenavi>ul>li{
    display:inline-block;
	margin:0 5px;
}
.pagenavi a{
    color:#fff;
    border:solid 1px #004574;
    background-color:#004574;
	text-decoration:none;
    padding:4px 8px;
}
.pagenavi a:hover{
    color:#FFF;
    background-color:#206594;
	text-decoration:underline;
}
.pagenavi span{
	text-decoration:none;
    padding:4px 8px;
}
.pagenavi .n_now{
    color:#002554;
    border:1px solid #004574;
    background-color:#80C5F4;
    padding:4px 8px;
}
.pagenavi .n_from{
    color:#AAA;
    padding:4px 8px;
}
.cmtedbox{
	border:solid 1px #004574;
	padding:10px;
}
.game_bullet{
	border:0;
	background:0;
}
.game_bullet th{
	text-align:right;
	vertical-align:top;
}
.game_bullet th p{
	display:inline-block;
	font-weight:normal;
	margin-right:10px;
}
.game_bullet td{
	vertical-align:top;
}
.gw_contain{
	display:flex;
}
.g_contain{
	flex:1;
	margin:5px;
}
.g_contain .sc{
	font-size:20px;
	font-weight:bold;
	width:58px;
	text-align:center;
	overflow:hidden;
}
.bgraph{
	position:absolute;
	top:0;
	left:58px;
	width:calc(100% - 60px);
	height:100%;
	border:solid 1px #ddd;
}
.g_contain .bst{
	position:absolute;
	color:#000;
	top:2px;
	left:5px;
	white-space:nowrap;
}
.g_contain .outber{
	display:inline-block;
	position:absolute;
	left:0;
	bottom:0;
	width:100%;
	height:24px;
	overflow:hidden;
}
.g_contain .ber{
	display:inline-block;
	position:absolute;
	left:0;
	top:0;
	height:24px;
	overflow:hidden;
}
.g_contain .st{
	position:absolute;
	color:#fff;
	top:2px;
	left:5px;
	white-space:nowrap;
}
.g_contain .l1{
	display:block;
	position:absolute;
	left:20%;
	top:0;
	width:1px;
	height:100%;
	border:0;
	background-color:#ddd;
}
.g_contain .l2{
	display:block;
	position:absolute;
	left:40%;
	top:0;
	width:1px;
	height:100%;
	border:0;
	background-color:#ddd;
}
.g_contain .l3{
	display:block;
	position:absolute;
	left:60%;
	top:0;
	width:1px;
	height:100%;
	border:0;
	background-color:#ddd;
}
.g_contain .l4{
	display:block;
	position:absolute;
	left:80%;
	top:0;
	width:1px;
	height:100%;
	border:0;
	background-color:#ddd;
}
.flxov6{
	display:flex;
    justify-content:space-around;
}
.flxov6 .eqbox{
	flex:1;
	display:flex;
	margin:10px;
	flex-direction:column;
}
.eqbox .sinf{
	font-size:90%;
	text-align:center;
	margin-bottom:5px;
}
.flximg{
	display:flex;
    justify-content:space-around;
	flex-wrap:wrap;
}
.flximg .imgbox{
	width:180px;
	margin:5px;
}
.imgbox img{
	width:100%;
	height:auto;
}
a.bbtn{
	text-align:center;
}
a.bbtn:hover{
	text-decoration:none;
}
.eqbox a.bbtn{
	flex:1;
	display:flex;
	width:calc(100% - 20px);
	flex-direction:column;
	justify-content:center;
}
.leftmenu{
	list-style:none;
	border:solid 1px #004574;
	margin:20px auto;
	border-radius:10px;
	overflow:hidden;
}
.leftmenu li{
	width:100%;
	font-weight:bold;
	margin:0;
}
.leftmenu li:not(:first-child){
	border-top:solid 1px #004574;
}
.leftmenu li a{
	display:block;
	width:calc(100% - 20px);
	padding:10px 0 10px 20px;
}
.leftmenu li a:hover{
	background-color:#ebebff;
}
.adgamebox{
	display:flex;
	border:solid 1px #004574;
	border-radius:10px;
	padding:5px;
	overflow:hidden;
}
.adimg{
	width:180px;
	max-width:30%;
	margin:5px 15px 5px 10px;
}
.adimg img{
	width:100%;
	height:auto;
}
.adtxtbox{
	flex:1;
}
.adtxtbox p.atb_t{
	font-weight:bold;
	text-align:center;
	margin-top:10px;
}
.adtxtbox p.atb_b{
	margin:25px 0 15px 0;
}
.moviebox{
	 text-align:center;
	 overflow:hidden;
}
.review_h{
	font-size:110%;
	font-weight:bold;
	color:#004574;
	border-bottom:solid 1px #004574;
	margin-top:20px;
}
.cmter_h{
	display:inline;
	font-size:100%;
	font-weight:bold;
	margin:0 10px;
}
.chartbox table{
	border-collapse:collapse;
}
.chartbox table td{
	border:1px solid #004574;
	padding:.5em;
}
.chartbox h3{
	display:block;
	font-size:120%;
	color:#004574;
	border-bottom:solid 3px #004574;
	margin-bottom:16px;
}
.chartbox h3:after{
	position:absolute;
	display:block;
	width:100%;
	content:" ";
	border-bottom:solid 1px #004574;
	margin-top:4px;
}
.chartbox h4{
	font-size:110%;
	color:#004574;
	font-weight:blod;
	border-bottom:solid 2px #004574;
	margin-bottom:16px;
}
.chartbox h5{
	font-size:110%;
	color:#004574;
	font-weight:blod;
	margin-bottom:8px;
}
.chartbox ul{
	list-style:none;
	margin:20px 0;
}
.chartbox li{
	display:inline;
}
.chartbox li:not(:first-child):before{
	color:#004574;
	content:"/";
	margin:0 15px;
}
.graph_c0:after{
	content:"総合評価";
}
.graph_c6:after{
	content:"エロさ";
}
.graph_c5:after{
	content:"ボリューム";
}
.graph_c4:after{
	content:"熱中度/ストーリー";
}
.graph_c3:after{
	content:"快適さ/操作性";
}
.graph_c2:after{
	content:"音楽";
}
.graph_c1:after{
	content:"グラフィック";
}

/* 補助フィールド（スクリーンリーダーには読まれないが DOM には存在する）。
   見た目を完全に消すが display:none は使わない（検出回避のため）。 */
.form_opt_subfield{
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
.form_opt_subfield input{
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	border: 0 !important;
}

/* ========== 共通: Markdown 記法ヘルプ（edit-dltip / edit-board 等で使用） ========== */
.md_help{ margin: var(--sp-3) 0; background: var(--c-bg-info); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.md_help > summary{ cursor: pointer; padding: var(--sp-2) var(--sp-3); font-weight: bold; color: var(--c-brand-deeper); font-size: 13px; list-style: none; }
.md_help > summary::-webkit-details-marker{ display: none; }
.md_help > summary::before{ content: "▶ "; display: inline-block; transition: transform .15s; margin-right: 4px; }
.md_help[open] > summary::before{ transform: rotate(90deg); }
.md_help_body{ padding: var(--sp-3) var(--sp-4); background: #fff; border-block-start: 1px solid var(--c-line); font-size: 13px; line-height: 1.6; }
.md_help_lead{ margin: 0 0 var(--sp-3); }
.md_help_table{ inline-size: 100%; border-collapse: collapse; margin: 0 0 var(--sp-3); font-size: 12px; }
.md_help_table th, .md_help_table td{ border: 1px solid var(--c-line); padding: 6px 8px; text-align: left; vertical-align: top; }
.md_help_table th{ background: var(--c-bg-alt); font-size: 11px; color: var(--c-ink-muted); font-weight: bold; }
.md_help_table code{ font-size: 11px; background: var(--c-bg-info); color: var(--c-brand-deeper); padding: 1px 6px; border-radius: var(--r-sm); font-family: Consolas, Menlo, monospace; white-space: nowrap; }
.md_help_h2{ font-size: 15px; font-weight: bold; color: var(--c-brand-deeper); border-block-end: 2px solid var(--c-brand); padding-block-end: 2px; }
.md_help_h3{ font-size: 13px; font-weight: bold; color: var(--c-brand-deeper); }
.md_help_note{ margin: var(--sp-3) 0 0; padding: var(--sp-2) var(--sp-3); background: #fffbe6; border-left: 3px solid #f4a200; font-size: 12px; color: #704200; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.md_help_note code{ font-size: 11px; background: #fff; padding: 1px 5px; border-radius: 2px; font-family: Consolas, Menlo, monospace; }
.md_help_sample{ margin-block-start: var(--sp-3); }
.md_help_sample > summary{ cursor: pointer; font-size: 12px; color: var(--c-brand); }
.md_help_pre{ background: #f6f8fa; border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: var(--sp-2) var(--sp-3); margin-block-start: var(--sp-2); font-family: Consolas, Menlo, monospace; font-size: 12px; line-height: 1.5; overflow-x: auto; white-space: pre; }

/* ========== 広告ユニット（右サイドバー） ========== */
.ad_unit{
	display:block;
	background:#fff;
	border:1px solid #e0e0e0;
	border-radius:4px;
	overflow:hidden;
	text-decoration:none;
	color:inherit;
	transition:border-color .1s, box-shadow .1s;
}
.ad_unit:hover{
	border-color:#1b5daf;
	box-shadow:0 2px 6px rgba(0,0,0,0.08);
}
.ad_unit .ad_thumb{
	width:100%;
	aspect-ratio:4/3;
	background:#f0f0f0;
	overflow:hidden;
}
.ad_unit .ad_thumb img{
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
}
.ad_unit .ad_body{
	padding:8px 10px 10px;
}
.ad_unit .ad_label{
	font-size:10px;
	color:#1b5daf;
	font-weight:bold;
	letter-spacing:.05em;
	margin-bottom:4px;
}
.ad_unit .ad_title{
	font-size:13px;
	font-weight:bold;
	line-height:1.35;
	margin-bottom:4px;
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
}
.ad_unit .ad_maker{
	font-size:11px;
	color:#666;
	margin-bottom:6px;
	display:-webkit-box;
	-webkit-line-clamp:1;
	-webkit-box-orient:vertical;
	overflow:hidden;
}
.ad_unit .ad_meta{
	display:flex;
	flex-wrap:wrap;
	gap:4px;
	align-items:center;
	font-size:11px;
}
.ad_unit .ad_adult{
	background:#c00;
	color:#fff;
	padding:1px 5px;
	border-radius:2px;
	font-size:10px;
}
.ad_unit .ad_type{
	background:#eee;
	color:#333;
	padding:1px 5px;
	border-radius:2px;
}
.ad_unit .ad_price{
	margin-left:auto;
	color:#c00;
	font-weight:bold;
}
.ad_unit_placeholder{
	padding:14px;
	text-align:center;
	color:#888;
	font-size:12px;
}

/* モバイル上部広告（PCでは非表示） */
.ad_mobile_top{
	display:none;
}
@media screen and (max-width:900px){
	.ad_mobile_top{
		display:flex;
		align-items:stretch;
		gap:10px;
		background:#fff;
		border:1px solid #e0e0e0;
		border-radius:4px;
		margin:8px 8px 12px;
		padding:8px;
		text-decoration:none;
		color:inherit;
	}
	.ad_mobile_top img{
		width:84px;
		height:63px;
		object-fit:cover;
		border-radius:3px;
		flex-shrink:0;
	}
	.ad_mobile_top_body{
		flex:1;
		min-width:0;
		display:flex;
		flex-direction:column;
		justify-content:center;
	}
	.ad_mobile_top .ad_label{
		font-size:10px;
		color:#1b5daf;
		font-weight:bold;
		letter-spacing:.05em;
	}
	.ad_mobile_top .ad_title{
		font-size:13px;
		font-weight:bold;
		line-height:1.35;
		margin:3px 0 4px;
		display:-webkit-box;
		-webkit-line-clamp:2;
		-webkit-box-orient:vertical;
		overflow:hidden;
	}
	.ad_mobile_top .ad_meta{
		display:flex;
		flex-wrap:wrap;
		gap:4px;
		align-items:center;
		font-size:11px;
	}
	.ad_mobile_top .ad_meta .ad_price{
		margin-left:auto;
		color:#c00;
		font-weight:bold;
	}
}

/* ============================================================
   モダン化パッチ（design tokens / touch / focus / safe-area）
   既存ルールの上書きとして末尾で適用。
   参考: modern-web-guidance form-factor-adaptation / accessibility
   ============================================================ */

:root{
	/* 色トークン（既存 #004574, #1b5daf, #c00 の整理） */
	--c-brand: #1b5daf;
	--c-brand-dark: #154c90;
	--c-brand-deeper: #004574;
	--c-accent: #c00;
	--c-adult: #c00;
	--c-ink: #222;
	--c-ink-muted: #666;
	--c-line: #e0e0e0;
	--c-bg: #fff;
	--c-bg-alt: #f6f6f6;
	--c-bg-info: #f4f8ff;
	--c-focus: #1b5daf;

	/* spacing */
	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-5: 20px;
	--sp-6: 24px;
	--sp-8: 32px;

	/* radius */
	--r-sm: 3px;
	--r-md: 4px;
	--r-lg: 6px;

	/* タッチターゲット: 既定はマウス向け WCAG 2.5.8 の 24px */
	--target-size: 24px;
}

/* ポインタが粗い環境（タッチ）では WCAG 2.5.5 の 44px */
@media (pointer: coarse){
	:root{ --target-size: 44px; }
}

/* 文字列の体裁 */
:where(h1, h2, h3){ text-wrap: balance; }
:where(p, li){ text-wrap: pretty; }

/* メディアはコンテナを超えない・長URLは折返し */
:where(img, video, iframe){ max-inline-size: 100%; block-size: auto; }
body{ overflow-wrap: break-word; }
:where(a, code){ overflow-wrap: anywhere; }

/* nav や toolbar は折返す（タップターゲット保証で詰まったら wrap） */
:where(nav, nav ul, .toolbar){ flex-wrap: wrap; }

/* 最低限のタップターゲット保証 */
:where(button, select, textarea, input:not([type="checkbox"], [type="radio"]), [role="button"], nav a, label:has(input[type="checkbox"], input[type="radio"])){
	min-block-size: var(--target-size);
}

/* ヘッダー nav 内のリンク（モバイル：ハンバーガー項目）には余裕を */
#topmenu ul a{
	display: inline-flex;
	align-items: center;
	min-block-size: var(--target-size);
}

/* focus-visible でカスタム focus ring を一元化 */
:where(a, button, [role="button"], input, select, textarea, summary):focus{ outline: none; }
:where(a, button, [role="button"], input, select, textarea, summary):focus-visible{
	outline: 2px solid var(--c-focus);
	outline-offset: 2px;
	border-radius: var(--r-sm);
}

/* ============================================================
   フッター（旧 .fdrc/.fdc を site_footer_* で再設計）
   ============================================================ */
.site_footer{
	margin-block-start: var(--sp-8);
	padding-block: var(--sp-5);
	padding-inline: var(--sp-4);
	padding-inline-start: max(var(--sp-4), env(safe-area-inset-left, 0px));
	padding-inline-end: max(var(--sp-4), env(safe-area-inset-right, 0px));
	padding-block-end: max(var(--sp-5), env(safe-area-inset-bottom, 0px));
	background: var(--c-bg-alt);
	border-block-start: 1px solid var(--c-line);
	color: var(--c-ink-muted);
	font-size: 12px;
	line-height: 1.6;
}
.site_footer_inner{
	max-inline-size: 1252px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-3);
	text-align: center;
}
.site_footer_nav{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--sp-2) var(--sp-4);
}
.site_footer_nav a{
	color: var(--c-brand);
	text-decoration: none;
	padding-block: 6px;
	padding-inline: var(--sp-2);
}
.site_footer_nav a:hover{
	text-decoration: underline;
}
.site_footer_nav .feed_link{
	color: #ea7000;
}
.site_footer_nav .feed_link:hover{
	text-decoration: underline;
}
.site_footer_nav .admin_link{
	color: #7a5500;
	background: #fff8e1;
	border: 1px solid #f0c060;
	border-radius: 3px;
	padding: 2px 10px;
	font-weight: bold;
}
.site_footer_nav .admin_link:hover{
	background: #ffecb0;
	text-decoration: none;
}
.site_footer_copy{
	margin: 0;
	color: var(--c-ink-muted);
}

/* 旧フッタースタイルの名残が残っても害がないように最小限の無害化 */
.fdrc, .fdc, .copyright{ all: unset; }

/* ============================================================
   モバイル UX 細部: ハンバーガーメニューの aria / 可視性整理
   JS 側で aria-expanded を切り替える
   ============================================================ */
@media screen and (max-width: 900px){
	#topmenu{
		/* 既存の fixed; 以下は維持。padding でセーフエリアを尊重 */
		padding-block-start: max(var(--sp-2), env(safe-area-inset-top, 0px));
		padding-inline-start: max(var(--sp-2), env(safe-area-inset-left, 0px));
		padding-inline-end: max(var(--sp-2), env(safe-area-inset-right, 0px));
	}
	#topmenu ul li{ padding-block: 14px; padding-inline: 20px; }
	#topmenu ul li a{ display: block; min-block-size: var(--target-size); }
}

/* visually-hidden utility（アクセシブルネーム用） */
.visually-hidden:where(:not(:focus-within, :active)){
	position: absolute !important;
	clip-path: inset(50%) !important;
	overflow: hidden !important;
	inline-size: 1px !important;
	block-size: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	white-space: nowrap !important;
}

/* スキップリンク: フォーカス時に左上に可視化 */
.skip_link{
	position: fixed;
	inset-block-start: var(--sp-2);
	inset-inline-start: var(--sp-2);
	z-index: 100;
	padding: var(--sp-2) var(--sp-4);
	background: var(--c-brand);
	color: #fff;
	text-decoration: none;
	border-radius: var(--r-md);
	font-weight: bold;
}

/* ============================================================
   ユーティリティ: 本文ランディング要素の :focus 外枠を消す
   ============================================================ */
main:focus{ outline: none; }

/* ============================================================
   右サイドバー: 広告枠の体裁
   ============================================================ */
.rsd_stack{ display: flex; flex-direction: column; gap: var(--sp-3); }
.rsd_disclaimer{
	margin: var(--sp-3) 0 0;
	padding: var(--sp-2);
	font-size: 10px;
	color: var(--c-ink-muted);
	line-height: 1.5;
	text-align: center;
	border-block-start: 1px dashed var(--c-line);
}

/* 旧 .follow_region の sticky を無効化（広告が画面を占有するのを避ける） */
.follow_region{ position: static !important; }

/* ============================================================
   PC: 右サイドバー全体を sticky で追従 + 内部を縦スクロール
   - #rsd 自身を sticky に（.rsd_stack ではなく aside 全体）
   - 広告ユニットが潰れないよう各要素の最小高さ・min-width:0 を保証
   ============================================================ */
@media screen and (min-width: 901px){
	#rsd{
		align-self: flex-start;
		position: sticky;
		top: calc(55px + 3em + var(--sp-3));
	}
	#rsd .rsd_stack{
		display: flex;
		flex-direction: column;
		gap: var(--sp-3);
	}
	/* 広告ユニットは縮まない。画像比率も維持 */
	#rsd .ad_unit{
		flex: 0 0 auto;
		min-width: 0;
	}
	#rsd .ad_unit .ad_body{
		min-width: 0;
	}
	#rsd .ad_unit .ad_thumb{
		flex: 0 0 auto;
	}
}

@media screen and (min-width: 900px) and (max-width: 1200px){
	#rsd{
		top: calc(45px + 3em + var(--sp-3));
	}
}

