@charset "utf-8";


/* =Reset default browser CSS.
Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {border: 0;font-family: inherit;font-size: 100%;font-style: inherit;font-weight: inherit;margin: 0;outline: 0;padding: 0;vertical-align: baseline;}
:focus {outline: 0;}

ol, ul {list-style: none;}
table {border-collapse: separate;border-spacing: 0;}
caption, th, td {font-weight: normal;text-align: left;}
blockquote:before, blockquote:after,q:before, q:after {content: "";}
blockquote, q {quotes: "" "";}
a img{border: 0;}
figure{margin:0}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;}
/* -------------------------------------------------------------- */

body{
color:#555;
font:12px verdana,"ヒラギノ丸ゴ ProN W4","Hiragino Maru Gothic ProN","メイリオ","Meiryo","ＭＳ Ｐゴシック","MS PGothic",Sans-Serif;
line-height:1.5;
border-top:5px solid #244487;
background:#f4f4f4;
-webkit-text-size-adjust: none;
}

/* リンク設定
------------------------------------------------------------*/
a{color:#415ca2;text-decoration:none;}
a:hover{color:#244487;}
a:active, a:focus{outline:0;}


/* 全体
------------------------------------------------------------*/
#wrapper{
margin:0 auto;
padding:0 1%;
width:98%;
position:relative;
}

.inner{
margin:0 auto;
width:100%;
}


/*************
/* ヘッダー
*************/
#header{
overflow:hidden;
padding:20px 0;
background:#415ca2;
}

* html #header{height:1%;}


/*************
/* ロゴ
*************/
#header .logo{
float:left;
padding:20px 0 0;
}

.logo a{
font-size:20px;
font-weight:bold;
line-height:1;
color:#fff;
font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.logo span{
font-size:12px;
font-weight:normal;
}

#header h1{
font-size:11px;
color:#fff;
}


/**************************
/* メイン画像（トップページ+サブページ）
**************************/
#mainBanner{
margin:0 auto 30px;
padding:0;
width:100%;
line-height:0;
background:#fff;
}

#mainBanner .inner{position:relative;}

#mainBanner img{
max-width:100%;
height:auto;
}

.slogan{
position:absolute;
max-width:100%;
height:auto;
bottom:0;
left:0;
padding:5px 10px;
line-height:1.4;
z-index:100;
}

.slogan h2{
padding-bottom:5px;
color:#333;
font-size:20px;
}

.slogan h3{
font-size:14px;
color:#666;
}

.slogan h4{
font-size:16px;
color:#666;
}



/**************************
/* グリッド
**************************/
.gridWrapper{
padding-bottom:20px;
overflow: hidden;
}

* html .gridWrapper{height:1%;}
	
.grid{
float:left;
background:#fff;
box-shadow:0 0 3px #ddd;
}

.grid h3{
padding:10px 0;
font-weight:bold;
color:#fff;
background:#415ca2;
text-align:center;
}

.grid h4{
padding:10px 0;
font-weight:bold;
color:#fff;
background:#415ca2;
text-align:center;
}

.grid p{
padding:5px 10px;
}

.grid p.img{
padding:0;
}

.gridmenu{
float:left;
background:#fff;
height:340px;
box-shadow:0 0 3px #ddd;
}

.gridmenu h3{
padding:10px 0;
font-weight:bold;
color:#fff;
background:#415ca2;
text-align:center;
}

.gridmenu h4{
padding:10px 0;
font-weight:bold;
color:#fff;
background:#415ca2;
text-align:center;
}

.gridmenu p{
padding:5px 10px;
}

.gridmenu p.img{
padding:0;
}

.readmore{clear:both;}

p.readmore{
padding:10px;
}


/* フッター内のグリッド(3カラム) */
#footer .grid{
color:#fff;
border:0;
background:transparent;
box-shadow:none;
}

#footer .grid p{padding:0;}

#footer .gridmenu{
color:#fff;
border:0;
background:transparent;
box-shadow:none;
}

#footer .gridmenu p{padding:0;}


/*************
メイン コンテンツ
*************/
section.content{
padding:0 10px 10px;
margin-bottom:20px;
overflow:hidden;
font-size:14px;
background:#fff;
box-shadow:0 0 3px #ddd;
}

* html section.content{height:1%;}

section.content p{margin-bottom:5px;}

h3.heading{
padding:5px 10px;
margin:0 -10px 20px;
font-size:16px;
color:#fff;
background:#415ca2;
}

h4.heading{
padding:5px 10px;
margin:0 -10px 20px;
font-size:16px;
color:#fff;
background:#415ca2;
}

section.content img{
max-width:90%;
height:auto;
}

img.frame,#gallery img{
padding:3px;
box-shadow:0 0 3px #ddd;
}

#gallery .grid{
margin-bottom:10px;
box-shadow:none;
}

#gallery .gridmenu{
margin-bottom:10px;
box-shadow:none;
}

.alignleft{
float:left;
clear:left;
margin:3px 10px 10px 0;
}

.alignright{
float:right;
clear:right;
margin:3px 0 10px 10px;
}



/*************
テーブル
*************/
table.table{
border-collapse:collapse;
width:100%;
margin:10px auto;
}

table.table th,table.table td{
padding:5px;
border:1px solid #415ca2;
}

table.table th{
text-align:right;
font-weight:bold;
letter-spacing:1px;
white-space:nowrap;
color:#fff;
background:#244487;
border-left:#415ca2 5px solid
}

a{color:#415ca2;text-decoration:none;}
a:hover{color:#244487;}

table.table td{border-left:#415ca2 3px double}



/*************
サブ（フッター前）コンテンツ
*************/
#sub ul{padding:10px;}

#sub li{
margin-bottom:10px;
padding-bottom:10px;
border-bottom:1px dashed #ebebeb;
}

#sub li:last-child{
border:0;
margin-bottom:0;
}

#sub li a{display:block;}

#sub ul.list{padding-bottom:7px;}

#sub ul.list li{
clear:both;
margin-bottom:6px;
padding:5px 0;
overflow:hidden;
}

* html #sub ul.list li{height:1%;}

#sub ul.list li img{
float:left;
margin:0 10px 0 0;
}

#sub ul.list li{
font-size:12px;
line-height:1.35;
}


/*************
/* フッター
*************/
#footer{
clear:both;
padding:20px 0;
overflow:hidden;
background:#415ca2;
}

* html #footer{height:1%;}

.tel strong{
font-size:20px;
font-weight:bold;
}

#footer a{color:#fff;}
#footer a:hover{color:#244487;}

#footer .copyright{font-size:11px;}


/* PC用 */
@media only screen and (min-width:960px){	
	#wrapper,.inner{
	width:940px;
	padding:0;
	}
	
	#wrapper{padding-bottom:20px;}
	
  nav div.panel{
	display:block !important;
	float:right;
	}

	a#menu{display:none;}

	nav#mainNav ul{
	float:right;
	overflow:hidden;
	}

	* html nav#mainNav ul{height:1%;}

	nav#mainNav ul li{
	float:left;
	text-align:center;
	border-right:1px solid #eee;
	}
	
	nav#mainNav ul li:last-child{border:0;}

	nav#mainNav ul a{
	font-size:13px;
	display:block;
	padding:30px 15px;
	line-height:1.2;
	color:#244487;
	background:#fff;
	}
	
	nav#mainNav ul span{
	font-size:10px;
	}

	nav#mainNav ul li.active a,nav#mainNav ul a:hover{
	color:#fff;
	background:#244487;
	}
	
	/* グリッド全体 */
	.gridWrapper{
	width:960px;
	margin:0 0 0 -20px;
	}
	
	/* グリッド共通 ベース:トップページ4カラム */
	.grid{
	float:left;
	width:138px;
	margin-left:20px;
	}
	
	/* グリッド共通 ベース:トップページ4カラム */
	.gridmenu{
	float:left;
	width:220px;
	margin-left:20px;
	}
	
	/* サブコンテンツ + フッター グリッド(3カラム) */
	#sub .grid, #footer .grid{width:298px;}
	#footer .grid{border:0;}

	#sub .gridmenu, #footer .gridmenu{width:298px;}
	#footer .gridmenu{border:0;}

	/* トップリンク */
	#page_top{
	  width: 80px;
	  height: 80px;
	  position: fixed;
	  #right: 0;
	  bottom: 0;
	  background: #3f98ef;
	  opacity: 0.6;
	  right: 10%;
	  bottom: 50px;
	}
	#page_top a{
	  position: relative;
	  display: block;
	  width: 80px;
	  height: 70px;
	  text-decoration: none;
	}
	#page_top a::before{
	  font-family: 'Font Awesome 5 Free';
	  font-weight: 900;
	  content: '\f102';
	  font-size: 25px;
	  color: #fff;
	  position: absolute;
	  width: 25px;
	  height: 25px;
	  top: 0;
	  bottom: 0;
	  right: 0;
	  left: 0;
	  margin: auto;
	  text-align: center;
	}
	/* 2023.04.23 追加 */
	/* ボトムリンク */
	#page_bottom{
	  width: 80px;
	  height: 80px;
	  position: fixed;
	  #right: 0;
	  bottom: 0;
	  background: #3f98ef;
	  opacity: 0.6;
	  right: 200px;
	  top: 50px;
	}
	#page_bottom a{
	  position: relative;
	  display: block;
	  width: 80px;
	  height: 70px;
	  text-decoration: none;
	}
	#page_bottom a::before{
	  font-family: 'Font Awesome 5 Free';
	  font-weight: 900;
	  content: '\f103';
	  font-size: 25px;
	  color: #fff;
	  position: absolute;
	  width: 25px;
	  height: 25px;
	  top: 0;
	  bottom: 0;
	  right: 0;
	  left: 0;
	  margin: auto;
	  text-align: center;
	}
	/* 2023.04.23 追加 */

}


/* モニター幅940px以下 */
@media only screen and (max-width:940px){
	*{
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
         -o-box-sizing: border-box;
        -ms-box-sizing: border-box;
            box-sizing: border-box;
	}
	
	#header{padding:10px 0 0;}
	
	#header .logo,#footer .logo{
	float:none;
	text-align:center;
	padding:10px 5px;
	}
	
	nav#mainNav{
	clear:both;
	width:100%;
	margin:0 auto;
	padding:0;
	background:#244487;
	}

	nav#mainNav a.menu{
	width:100%;
	display:block;
	height:40px;
	line-height:40px;
	font-weight: bold;
	text-align:left;
	color:#fff;
	}

	nav#mainNav a#menu span{padding-left:10px;}
	nav#mainNav a.menu span:before{content: "→ ";}
	nav#mainNav a.menuOpen span:before{content: "↓ ";}

	nav#mainNav a#menu:hover{cursor:pointer;}

	nav .panel{
	display: none;
	width:100%;
	position: relative;
	right: 0;
	top:0;
	z-index: 1;
	}

	nav#mainNav ul li{
	float: none;
	clear:both;
	width:100%;
	height:auto;
	line-height:1.2;
	}

	nav#mainNav ul li a,nav#mainNav ul li.current-menu-item li a{
	display: block;
	padding:15px 10px;
	text-align:left;
	border-bottom:1px dashed #fff;
	color:#fff;
	background:#415ca2;
	}
	
	nav#mainNav ul li a span{padding-left:10px;}
	
	nav#mainNav ul li:first-child a{border-top:1px dashed #fff;}
	
	nav#mainNav ul li:last-child a{border:0;}
	
	nav#mainNav ul li.active a,nav#mainNav ul li a:hover{background:#244487;}

	nav div.panel{float:none;}
	
	.grid{
	float:left;
	width:48%;
	margin:10px 2% 0 0;
	}
	
	.grid img{
	float:left;
	margin-right:5px;
	}

	.gridmenu{
	float:left;
	width:48%;
	height:300px;
	margin:10px 2% 0 0;
	}
	
	.gridmenu img{
	float:left;
	margin-right:5px;
	}

	
	#gallery{padding-left:1px;}
	
	#gallery .grid{
	width:23%;
	margin:0 2% 0 0;
	padding:0;
	}
	
	#gallery .grid img{
	float:none;
	margin:0;
	}
	
	#sub .grid{
	width:32%;
	margin:10px 1%;
	}
	
	#sub .grid:first-child{
	margin-left:0;
	}
	
	#sub .grid:last-child{
	margin-right:0;
	}




	#gallery .gridmenu{
	width:23%;
	margin:0 2% 0 0;
	padding:0;
	}
	
	#gallery .gridmenu img{
	float:none;
	margin:0;
	}
	
	#sub .gridmenu{
	width:32%;
	margin:10px 1%;
	}
	
	#sub .gridmenu:first-child{
	margin-left:0;
	}
	
	#sub .gridmenu:last-child{
	margin-right:0;
	}




	#footer .grid, #footer .grid p{
	float:none;
	width:100%;
	text-align:center;
	border:0;
	}
	
	#footer .grid:last-child{padding-top:20px;}


	#footer .gridmenu, #footer .gridmenu p{
	float:none;
	width:100%;
	text-align:center;
	border:0;
	}
	
	#footer .gridmenu:last-child{padding-top:20px;}

	/* トップリンク */
	#page_top{
	  width: 80px;
	  height: 80px;
	  position: fixed;
	  right: 0;
	  bottom: 0;
	  background: #3f98ef;
	  opacity: 0.6;
	  right: 300px;
	  bottom: 50px;
	}
	#page_top a{
	  position: relative;
	  display: block;
	  width: 80px;
	  height: 70px;
	  text-decoration: none;
	}
	#page_top a::before{
	  font-family: 'Font Awesome 5 Free';
	  font-weight: 900;
	  content: '\f102';
	  font-size: 25px;
	  color: #fff;
	  position: absolute;
	  width: 25px;
	  height: 25px;
	  top: 0;
	  bottom: 0;
	  right: 0;
	  left: 0;
	  margin: auto;
	  text-align: center;
	}
	/* ボトムリンク */
	#page_bottom{
	  width: 80px;
	  height: 80px;
	  position: fixed;
	  #right: 0;
	  bottom: 0;
	  background: #3f98ef;
	  opacity: 0.6;
	  right: 200px;
	  top: 50px;
	}
	#page_bottom a{
	  position: relative;
	  display: block;
	  width: 80px;
	  height: 70px;
	  text-decoration: none;
	}
	#page_bottom a::before{
	  font-family: 'Font Awesome 5 Free';
	  font-weight: 900;
	  content: '\f103';
	  font-size: 25px;
	  color: #fff;
	  position: absolute;
	  width: 25px;
	  height: 25px;
	  top: 0;
	  bottom: 0;
	  right: 0;
	  left: 0;
	  margin: auto;
	  text-align: center;
	}


}


/* iPad 縦 */
@media only screen and (max-width:768px){
  #header{padding-bottom:0;}	

	#header h1{text-align:center;}
	
	#header .logo{
	float:none;
	text-align:center;
	padding:10px 5px 20px;
	}
	
	#sub ul.list{padding:10px 10px 11px;}
	
	#sub ul.list li{
	padding-bottom:10px;
	margin-bottom:8px;
	}

	/* トップリンク */
	#page_top{
	  width: 50px;
	  height: 50px;
	  position: fixed;
	  right: 0;
	  bottom: 0;
	  background: #3f98ef;
	  opacity: 0.6;
	  right: 10%;
	  bottom: 5%;
	}
	#page_top a{
	  position: relative;
	  display: block;
	  width: 50px;
	  height: 40px;
	  text-decoration: none;
	}
	#page_top a::before{
	  font-family: 'Font Awesome 5 Free';
	  font-weight: 900;
	  content: '\f102';
	  font-size: 25px;
	  color: #fff;
	  position: absolute;
	  width: 25px;
	  height: 25px;
	  top: 0;
	  bottom: 0;
	  right: 0;
	  left: 0;
	  margin: auto;
	  text-align: center;
	}
	/* ボトムリンク */
	#page_bottom{
	  width: 50px;
	  height: 50px;
	  position: fixed;
	  right: 0;
	  bottom: 0;
	  background: #3f98ef;
	  opacity: 0.6;
	  right: 10%;
	  top: 5%;
	}
	#page_bottom a{
	  position: relative;
	  display: block;
	  width: 50px;
	  height: 40px;
	  text-decoration: none;
	}
	#page_bottom a::before{
	  font-family: 'Font Awesome 5 Free';
	  font-weight: 900;
	  content: '\f103';
	  font-size: 25px;
	  color: #fff;
	  position: absolute;
	  width: 25px;
	  height: 25px;
	  top: 0;
	  bottom: 0;
	  right: 0;
	  left: 0;
	  margin: auto;
	  text-align: center;
	}

}


/* スマートフォン 横(ランドスケープ) */
@media only screen and (max-width:640px){
	#footer .grid p{text-align:center;}
	
	.grid img{
	float:none;
	margin:0 auto;
	}
	
	.gridmenu img{
	float:none;
	margin:0 auto;
	}
	
	.grid p,#sub .grid li{text-align:left;}

  .alignleft,.alignright{
	float:none;
	display:block;
	margin:0 auto 10px;
	}
	
	#sub ul.list li img{margin:0 5px 0 0;}

	/* トップリンク */
	#page_top{
	  width: 50px;
	  height: 50px;
	  position: fixed;
	  right: 0;
	  bottom: 0;
	  background: #3f98ef;
	  opacity: 0.6;
	  right: 10%;
	  bottom: 5%;
	}
	#page_top a{
	  position: relative;
	  display: block;
	  width: 50px;
	  height: 40px;
	  text-decoration: none;
	}
	#page_top a::before{
	  font-family: 'Font Awesome 5 Free';
	  font-weight: 900;
	  content: '\f102';
	  font-size: 25px;
	  color: #fff;
	  position: absolute;
	  width: 25px;
	  height: 25px;
	  top: 0;
	  bottom: 0;
	  right: 0;
	  left: 0;
	  margin: auto;
	  text-align: center;
	}
	/* ボトムリンク */
	#page_bottom{
	  width: 50px;
	  height: 50px;
	  position: fixed;
	  right: 0;
	  #bottom: 0;
	  background: #3f98ef;
	  opacity: 0.6;
	  right: 10%;
	  top: 5%;
	}
	#page_bottom a{
	  position: relative;
	  display: block;
	  width: 50px;
	  height: 40px;
	  text-decoration: none;
	}
	#page_bottom a::before{
	  font-family: 'Font Awesome 5 Free';
	  font-weight: 900;
	  content: '\f103';
	  font-size: 25px;
	  color: #fff;
	  position: absolute;
	  width: 25px;
	  height: 25px;
	  top: 0;
	  bottom: 0;
	  right: 0;
	  left: 0;
	  margin: auto;
	  text-align: center;
	}

}

/* スマートフォン 縦(ポートレート) */
@media only screen and (max-width:480px){
	#mainBanner h2,#mainBanner h3{font-size:75%;}
	.subImg .slogan{right:-30px;}

	#mainBanner h2,#mainBanner h4{font-size:100%;}
	.subImg .slogan{right:-30px;}

	.grid img{max-width:90%;height:auto;}

	.gridmenu img{max-width:90%;height:auto;}
	
	#sub .grid{
	float:none;
	width:98%;
	}
	
	#sub .gridmenu{
	float:none;
	width:98%;
	}
	
	#sub .grid h3{padding:10px 5px;}

	#sub .gridmenu h3{padding:10px 5px;}
	
	#sub .grid h4{padding:10px 5px;}

	#sub .gridmenu h4{padding:10px 5px;}
	
	#sub ul.list{padding:10px;}
	
	#sub ul.list li{
	padding-bottom:3px;
	margin-bottom:3px;
	}

}



table {
  border-collapse: collapse;
  text-align: center;
}
th, td {
  padding: 5px;
  border: 1px solid #333;
}
th {
  background-color: #2c88d9;
  color: #FFF;
}

a[target=_blank] {
	padding-right: 15px;
	background: url(./images/icon_blank.png) right center/11px auto no-repeat;
}

.cp_iptxt {
	position: relative;
	width: 57.33%;
	margin: 40px 3%;
}
.cp_iptxt input[type='text'] {
	font: 15px/24px sans-serif;
	box-sizing: border-box;
	width: 100%;
	padding: 0.3em;
	padding-left: 40px;
	letter-spacing: 1px;
	border: 0;
}
.cp_iptxt input[type='text']:focus {
	outline: none;
}
.cp_iptxt input[type='text']:focus::after {
	outline: none;
}
.cp_iptxt i {
	position: absolute;
	top: 0;
	left: 0;
	padding: 9px 5px;
	transition: 0.3s;
	color: #aaaaaa;
}
.cp_iptxt::after {
	display: block;
	width: 100%;
	height: 4px;
	margin-top: -1px;
	content: '';
	border-width: 0 1px 1px 1px;
	border-style: solid;
	border-color: #0000cd;
}

/*検索ボタン*/
#sbtn{
	width:80px;/*検索ボタンの横幅*/ 
	height:40px;/*検索ボタンの縦幅*/ 
	position:absolute;/*検索ボタンの絶対位置*/  
	left:110%;/*検索ボタンの位置調整*/  
	top:0;
	border-radius:0 2px 2px 0;/*検索ボタンの角を丸める*/ 
	background:#7fbfff;/*検索ボタンの背景カラー*/ 
	border:none;/*検索ボタンの枠線を消す*/ 
	color:#fff;/*検索ボタンのテキストカラー*/ 
	font-weight:bold;/*検索ボタンのテキスト太字*/ 
	font-size:16px;/*検索ボタンのフォントサイズ*/ 
}
/*検索ボタンマウスオーバー時*/
#sbtn:hover{
	color:#666;/*検索ボタンマウスオーバー時のフォントカラー*/ 
}

#sbtn_send{
	width:80px;/*検索ボタンの横幅*/ 
	height:40px;/*検索ボタンの縦幅*/ 
	position:absolute;/*検索ボタンの絶対位置*/  
	margin-top: 245px;
	margin-left: -300px;
	border-radius:0 2px 2px 0;/*検索ボタンの角を丸める*/ 
	background:#7fbfff;/*検索ボタンの背景カラー*/ 
	border:none;/*検索ボタンの枠線を消す*/ 
	color:#fff;/*検索ボタンのテキストカラー*/ 
	font-weight:bold;/*検索ボタンのテキスト太字*/ 
	font-size:16px;/*検索ボタンのフォントサイズ*/ 
}
/*検索ボタンマウスオーバー時*/
#sbtn_send:hover{
	color:#666;/*検索ボタンマウスオーバー時のフォントカラー*/ 
}

textarea {
	border: 2px solid #0000cd;
	border-radius: 6px;
	margin-top: 0%;
	margin-left: 3%;
	background:#f0f8ff;
	font-family: inherit;
	font-size: 120%;
}

select {
	border: 2px solid #0000cd;
	border-radius: 6px;
	height:30px;
	width:300px;
	margin-top: 0%;
	margin-bottom: 2%;
	margin-left: 3%;
}

.sample_box3 {
    padding: 1em 1.5em;
    margin: 2em 0;
    background-color:#b0e0e6;/*背景色*/
    color:#000000;/*文字色*/
}
.sample_box3 p {
    margin: 0; 
    padding: 0;
}


.radio-inline__input {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

.radio-inline__label {
    display: inline-block;
    padding: 0.5rem 0.6rem;
    margin-right: 5px;
    border-radius: 3px;
    transition: all .2s;
}

.radio-inline__input:checked + .radio-inline__label {
    background: #4169e1;
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.7);
}

.radio-inline__input:focus + .radio-inline__label {
    outline-color: #4169e1;
    outline-offset: -2px;
    outline-style: auto;
    outline-width: 5px;
}

/* 個別結果 サマリ用 */
.radio-inline__input_sml {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

.radio-inline__label_sml {
    display: inline-block;
    /*
    padding: 0.5rem 0.6rem;
    */
    margin-right: 5px;
    border-radius: 3px;
    transition: all .2s;
    width: 45%;
    height: 25px;
    text-align: center;
}

.radio-inline__input_sml:checked + .radio-inline__label_sml {
    background: #a9a9a9;
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.7);
}

.radio-inline__input_sml:focus + .radio-inline__label_sml {
    outline-color: #4169e1;
    outline-offset: -2px;
    outline-style: auto;
    outline-width: 5px;
}


/* ラビリンスページ用*/
.radio-inline__label_r2 {
    display: inline-block;
    padding: 0.5rem 0.6rem;
    margin-right: 5px;
    border-radius: 3px;
    transition: all .2s;
}

.radio-inline__input:checked + .radio-inline__label_r2 {
    background: #990033;
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.7);
}

.radio-inline__input:focus + .radio-inline__label_r2 {
    outline-color: #990033;
    outline-offset: -2px;
    outline-style: auto;
    outline-width: 5px;
}
/* ラビリンスページ用*/

/* クリスタルページ用*/
.radio-inline__label_r3 {
    display: inline-block;
    padding: 0.5rem 0.6rem;
    margin-right: 5px;
    border-radius: 3px;
    transition: all .2s;
}

.radio-inline__input:checked + .radio-inline__label_r3 {
    background: #000000;
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.7);
}

.radio-inline__input:focus + .radio-inline__label_r3 {
    outline-color: #000000;
    outline-offset: -2px;
    outline-style: auto;
    outline-width: 5px;
}
/* クリスタルページ用*/

.acd-check{
    display: none;
}
.acd-label{
    background: #4682b4;
    color: #ffffff;
    display: block;
    margin-bottom: 1px;
    padding: 10px;
}
.acd-content{
    border: 1px solid #4682b4;
    height: 0;
    opacity: 0;
    padding: 0 10px;
    transition: .5s;
    visibility: hidden;
}
.acd-check:checked + .acd-label + .acd-content{
    height: 170px;
    opacity: 1;
    padding: 10px;
    visibility: visible;
}


.button005 {
  display       : inline-block;
  border-radius : 4%;          /* 角丸       */
  font-size     : 10pt;        /* 文字サイズ */
  text-align    : center;      /* 文字位置   */
  cursor        : pointer;     /* カーソル   */
  padding       : 12px 12px;   /* 余白       */
  background    : rgba(77, 166, 255, 0.74);     /* 背景色     */
  color         : #ffffff;     /* 文字色     */
  line-height   : 1em;         /* 1行の高さ  */
  opacity       : 1;           /* 透明度     */
  transition    : .3s;         /* なめらか変化 */
  margin-top    : 10px;
}
.button005:hover {
  opacity       : 0.8;         /* カーソル時透明度 */
}


.radio-inline__input_d {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

.radio-inline__label_d {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    margin-right: 0px;
    border-radius: 3px;
    transition: all .2s;
}

.radio-inline__input_d:checked + .radio-inline__label_d {
    background: #778899;
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.7);
}

.radio-inline__input_d:focus + .radio-inline__label_d {
    outline-color: #778899;
    outline-offset: -2px;
    outline-style: auto;
    outline-width: 5px;
}

/* 22.5.31追加 */

.cp_ipselect {
	position: relative;
	width: 25%;
	margin: 2em auto;
	text-align: center;
	display: inline-block; _display: inline;
}
.cp_sl06 {
	position: relative;
	font-family: inherit;
	background-color: transparent;
	width: 100%;
	//padding: 10px 10px 10px 0;
	font-size: 15px;
	border-radius: 0;
	border: none;
	border-bottom: 1px solid rgba(0,0,0, 0.3);
}
.cp_sl06:focus {
	outline: none;
	border-bottom: 1px solid rgba(0,0,0, 0);
}
.cp_ipselect .cp_sl06 {
	appearance: none;
	-webkit-appearance:none
}
.cp_ipselect select::-ms-expand {
	display: none;
}
.cp_ipselect:after {
	position: absolute;
	top: 18px;
	right: 10px;
	width: 0;
	height: 0;
	padding: 0;
	content: '';
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid rgba(0, 0, 0, 0.3);
	pointer-events: none;
}
.cp_sl06_selectlabel {
	color: rgba(0,0,0, 0.5);
	font-size: 15px;
	font-weight: normal;
	position: absolute;
	pointer-events: none;
	left: 0;
	top: 10px;
	transition: 0.2s ease all;
}
.cp_sl06:focus ~ .cp_sl06_selectlabel, .cp_sl06:valid ~ .cp_sl06_selectlabel {
	color: #0000ff;
	top: -10px;
	transition: 0.2s ease all;
	font-size: 10px;
}
.cp_sl06_selectbar {
	position: relative;
	display: block;
	width: 100%;
}
.cp_sl06_selectbar:before, .cp_sl06_selectbar:after {
	content: '';
	height: 2px;
	width: 0;
	bottom: 1px;
	position: absolute;
	background: #0000ff;
	transition: 0.2s ease all;
}
.cp_sl06_selectbar:before {
	left: 50%;
}
.cp_sl06_selectbar:after {
	right: 50%;
}
.cp_sl06:focus ~ .cp_sl06_selectbar:before, .cp_sl06:focus ~ .cp_sl06_selectbar:after {
	width: 50%;
}
.cp_sl06_highlight {
	position: absolute;
	top: 25%;
	left: 0;
	pointer-events: none;
	opacity: 0.5;
}



.cp_ipselect_chara {
	position: relative;
	width: 94%;
	margin: 0em auto;
	text-align: center;
	display: inline-block; _display: inline;
}
.cp_sl06_chara {
	position: relative;
	font-family: inherit;
	background-color: transparent;
	width: 100%;
	//padding: 10px 10px 10px 0;
	font-size: 15px;
	border-radius: 0;
	border: none;
	border-bottom: 1px solid rgba(0,0,0, 0.3);
}
.cp_sl06_chara:focus {
	outline: none;
	border-bottom: 1px solid rgba(0,0,0, 0);
}
.cp_ipselect_chara .cp_sl06_chara {
	appearance: none;
	-webkit-appearance:none
}
.cp_ipselect_chara select::-ms-expand {
	display: none;
}
.cp_ipselect_chara:after {
	position: absolute;
	top: 18px;
	right: 10px;
	width: 0;
	height: 0;
	padding: 0;
	content: '';
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid rgba(0, 0, 0, 0.3);
	pointer-events: none;
}
.cp_sl06_chara_selectlabel {
	color: rgba(0,0,0, 0.5);
	font-size: 15px;
	font-weight: normal;
	position: absolute;
	pointer-events: none;
	left: 0;
	top: 10px;
	transition: 0.2s ease all;
}
.cp_sl06_chara:focus ~ .cp_sl06_chara_selectlabel, .cp_sl06_chara:valid ~ .cp_sl06_chara_selectlabel {
	color: #0000ff;
	top: -10px;
	transition: 0.2s ease all;
	font-size: 10px;
}
.cp_sl06_chara_selectbar {
	position: relative;
	display: block;
	width: 100%;
}
.cp_sl06_chara_selectbar:before, .cp_sl06_chara_selectbar:after {
	content: '';
	height: 2px;
	width: 0;
	bottom: 1px;
	position: absolute;
	background: #0000ff;
	transition: 0.2s ease all;
}
.cp_sl06_chara_selectbar:before {
	left: 50%;
}
.cp_sl06_chara_selectbar:after {
	right: 50%;
}
.cp_sl06_chara:focus ~ .cp_sl06_chara_selectbar:before, .cp_sl06_chara:focus ~ .cp_sl06_chara_selectbar:after {
	width: 50%;
}
.cp_sl06_chara_highlight {
	position: absolute;
	top: 25%;
	left: 0;
	pointer-events: none;
	opacity: 0.5;
}



/* モーダルCSS */
.modalArea {
  display: none;
  position: fixed;
  z-index: 10; /*サイトによってここの数値は調整 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modalBg {
  width: 100%;
  height: 100%;
  background-color: rgba(30,30,30,0.9);
}

.modalWrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform:translate(-50%,-50%);
  width: 70%;
  max-width: 500px;
  padding: 10px 30px;
  background-color: #fff;
}

.closeModal {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  cursor: pointer;
}


/* 以下ボタンスタイル */
button {
  padding: 10px;
  background-color: #fff;
  border: 1px solid #282828;
  border-radius: 2px;
  cursor: pointer;
}

#openModal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform:translate(-50%,-50%);
}

/*モーダルを開くボタン*/
.modal-open{
	position: fixed;
	display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    left: 50%;
	width: 150px;
	height: 50px;
	font-weight: bold;
	color: #fff;
	background: #000;
	margin: auto;
	cursor: pointer;
	transform: translate(-50%,-50%);
}

.modal-open_rank{
	cursor: pointer;
}

/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-container{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	background: rgba(0,0,0,50%);
	padding: 40px 20px;
	overflow: auto;
	opacity: 0;
	visibility: hidden;
	transition: .3s;
    box-sizing: border-box;
}
/*モーダル本体の擬似要素の指定*/
.modal-container:before{
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}
/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-container.active{
	opacity: 1;
	visibility: visible;
	z-index: 100;
}
/*モーダル枠の指定*/
.modal-body{
	position: relative;
	display: inline-block;
	vertical-align: middle;
	max-width: 500px;
	width: 90%;
	height: 100%;
}
/*モーダルを閉じるボタンの指定*/
.modal-close{
	position: absolute;
	display: flex;
    align-items: center;
    justify-content: center;
	top: -40px;
	right: -20px;
	width: 40px;
	height: 40px;
	font-size: 40px;
	color: #fff;
	cursor: pointer;
}
/*モーダル内のコンテンツの指定*/
.modal-content{
	background: #fff;
	text-align: left;
	padding: 30px;
}

.twitter-open{
	display: flex;
    align-items: center;
    justify-content: center;
	max-width: 250px;
	width: 40%;
	height: 40px;
	color: #fff;
	background: #6495ed;
	cursor: pointer;
	position: absolute;
	left: 50%;
	transform: translateY(40%) translateX(-50%);
	}

/* 22.10.13追加 (S)*/
.twitter-open_2{
	display: flex;
    align-items: center;
    justify-content: center;
	max-width: 250px;
	width: 60%;
	height: 40px;
	color: #fff;
	background: #6495ed;
	cursor: pointer;
	position: absolute;
	left: 50%;
	transform: translateY(40%) translateX(-50%);
	}
/* 22.10.13追加 (E)*/

/* 22.10.17追加 (S)*/
.twitter-open_3{
	display: flex;
    align-items: center;
    justify-content: center;
	max-width: 250px;
	width: 60%;
	height: 40px;
	color: #fff;
	background: #5f9ea0;
	cursor: pointer;
	position: absolute;
	left: 50%;
	transform: translateY(0%) translateX(-50%);
	}
/* 22.10.17追加 (E)*/

/* 22.7.25追加 */

.cp_ipselect_gatya {
	position: relative;
	width: 75%;
	margin: 0em 0em 1em 0em;
	text-align: center;
	display: inline-block; _display: inline;
}
.cp_sl06_gatya {
	position: relative;
	font-family: inherit;
	background-color: transparent;
	width: 100%;
	//padding: 10px 10px 10px 0;
	font-size: 15px;
	border-radius: 0;
	border: none;
	border-bottom: 1px solid rgba(0,0,0, 0.3);
}
.cp_sl06_gatya:focus {
	outline: none;
	border-bottom: 1px solid rgba(0,0,0, 0);
}
.cp_ipselect_gatya .cp_sl06_gatya {
	appearance: none;
	-webkit-appearance:none
}
.cp_ipselect_gatya select::-ms-expand {
	display: none;
}
.cp_ipselect_gatya:after {
	position: absolute;
	top: 18px;
	right: 10px;
	width: 0;
	height: 0;
	padding: 0;
	content: '';
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid rgba(0, 0, 0, 0.3);
	pointer-events: none;
}
.cp_sl06_gatya_selectlabel {
	color: rgba(0,0,0, 0.5);
	font-size: 15px;
	font-weight: normal;
	position: absolute;
	pointer-events: none;
	left: 0;
	top: 10px;
	transition: 0.2s ease all;
}
.cp_sl06_gatya:focus ~ .cp_sl06_gatya_selectlabel, .cp_sl06_gatya:valid ~ .cp_sl06_gatya_selectlabel {
	color: #0000ff;
	top: -10px;
	transition: 0.2s ease all;
	font-size: 10px;
}
.cp_sl06_gatya_selectbar {
	position: relative;
	display: block;
	width: 100%;
}
.cp_sl06_gatya_selectbar:before, .cp_sl06_gatya_selectbar:after {
	content: '';
	height: 2px;
	width: 0;
	bottom: 1px;
	position: absolute;
	background: #0000ff;
	transition: 0.2s ease all;
}
.cp_sl06_gatya_selectbar:before {
	left: 50%;
}
.cp_sl06_gatya_selectbar:after {
	right: 50%;
}
.cp_sl06_gatya:focus ~ .cp_sl06_gatya_selectbar:before, .cp_sl06_gatya:focus ~ .cp_sl06_gatya_selectbar:after {
	width: 50%;
}
.cp_sl06_gatya_highlight {
	position: absolute;
	top: 25%;
	left: 0;
	pointer-events: none;
	opacity: 0.5;
}

.cp_ipselect_gatya_chara {
	position: relative;
	width: 85%;
	margin: 0.4em auto;
	text-align: center;
	display: inline-block; _display: inline;
}
.cp_sl06_gatya_chara {
	position: relative;
	font-family: inherit;
	background-color: transparent;
	width: 100%;
	font-size: 10px;
	border-radius: 0;
	border: none;
	border-bottom: 1px solid rgba(0,0,0, 0.3);
}
.cp_sl06_gatya_chara:focus {
	outline: none;
	border-bottom: 1px solid rgba(0,0,0, 0);
}
.cp_ipselect_gatya_chara .cp_sl06_gatya_chara {
	appearance: none;
	-webkit-appearance:none
}
.cp_ipselect_gatya_chara select::-ms-expand {
	display: none;
}
.cp_ipselect_gatya_chara:after {
	position: absolute;
	top: 18px;
	right: 10px;
	width: 0;
	height: 0;
	padding: 0;
	content: '';
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid rgba(0, 0, 0, 0.3);
	pointer-events: none;
}
.cp_sl06_gatya_chara_selectlabel {
	color: rgba(0,0,0, 0.5);
	font-size: 15px;
	font-weight: normal;
	position: absolute;
	pointer-events: none;
	left: 0;
	top: 10px;
	transition: 0.2s ease all;
}
.cp_sl06_gatya_chara:focus ~ .cp_sl06_gatya_chara_selectlabel, .cp_sl06_gatya_chara:valid ~ .cp_sl06_gatya_chara_selectlabel {
	color: #0000ff;
	top: -10px;
	transition: 0.2s ease all;
	font-size: 10px;
}
.cp_sl06_gatya_chara_selectbar {
	position: relative;
	display: block;
	width: 100%;
}
.cp_sl06_gatya_chara_selectbar:before, .cp_sl06_gatya_chara_selectbar:after {
	content: '';
	height: 2px;
	width: 0;
	bottom: 1px;
	position: absolute;
	background: #0000ff;
	transition: 0.2s ease all;
}
.cp_sl06_gatya_chara_selectbar:before {
	left: 50%;
}
.cp_sl06_gatya_chara_selectbar:after {
	right: 50%;
}
.cp_sl06_gatya_chara:focus ~ .cp_sl06_gatya_chara_selectbar:before, .cp_sl06_gatya_chara:focus ~ .cp_sl06_gatya_chara_selectbar:after {
	width: 50%;
}
.cp_sl06_gatya_chara_highlight {
	position: absolute;
	top: 25%;
	left: 63%;
	width: 100%;
}

/* 22.7.27追加 */

.radio-inline_eq_input {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

.radio-inline_eq_label {
    display: inline-block;
    padding: 0.5rem 0.6rem;
    margin-right: 5px;
    border-radius: 3px;
    transition: all .2s;
    width: 47%;
    text-align: center;
}

.radio-inline_eq_input:checked + .radio-inline_eq_label {
    background: #778899;
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.7);
}

.radio-inline_eq_input:focus + .radio-inline_eq_label {
    outline-color: #778899;
    outline-offset: -2px;
    outline-style: auto;
    outline-width: 5px;
}

.acd-check{
    display: none;
}
.acd-label{
    background: #4682b4;
    color: #ffffff;
    display: block;
    margin-bottom: 1px;
    padding: 10px;
}
.acd-content{
    border: 1px solid #4682b4;
    height: 0;
    opacity: 0;
    padding: 0 10px;
    transition: .5s;
    visibility: hidden;
}
.acd-check:checked + .acd-label + .acd-content{
    height: 170px;
    opacity: 1;
    padding: 10px;
    visibility: visible;
}

/* 22.8.26追加 */
.noentry{
    display: none;
}

/* 23.7.10追加 */

.radio-inline_E3__input {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

.radio-inline_E3__label {
    display: inline-block;
    padding: 0.5rem 0.6rem;
    margin-right: 1px;
    border-radius: 3px;
    transition: all .2s;
//    height: 50px;
    //width: 63px;
    text-align: center;
    vertical-align: middle;
}

.radio-inline_E3__input:checked + .radio-inline_E3__label {
    background: #4169e1;
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.7);
}

.radio-inline_E3__input:focus + .radio-inline_E3__label {
    outline-color: #4169e1;
    outline-offset: -2px;
    outline-style: auto;
    outline-width: 5px;
}

.radio-inline_eqlist_input {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

.radio-inline_eqlist_label {
    display: inline-block;
    padding: 0.5rem 0.6rem;
    margin-right: 5px;
    border-radius: 3px;
    transition: all .2s;
}

.radio-inline_eqlist_input:checked + .radio-inline_eqlist_label {
    background: #778899;
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.7);
}

.radio-inline_eqlist_input:focus + .radio-inline_eqlist_label {
    outline-color: #778899;
    outline-offset: -2px;
    outline-style: auto;
    outline-width: 5px;
}



.radio-inline__input_e3d {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

.radio-inline__label_e3d {
    display: inline-block;
    padding: 0.5rem 0.6rem;
    margin-right: 5px;
    border-radius: 3px;
    transition: all .2s;
    //width: 18%;
    text-align:center;
}

.radio-inline__input_e3d:checked + .radio-inline__label_e3d {
    background: #4169e1;
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.7);
}

.radio-inline__input_e3d:focus + .radio-inline__label_e3d {
    outline-color: #4169e1;
    outline-offset: -2px;
    outline-style: auto;
    outline-width: 5px;
}

/* 23.8.14追加 */

.radio-inline_sortcategory_input {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

.radio-inline_sortcategory_label {
    display: inline-block;
    padding: 0.5rem 0.6rem;
    //margin-right: 8px;
    margin-bottom: 10px;
    border-radius: 3px;
    transition: all .2s;
    width: 42%;
    text-align:center;
    border: 1px solid #b4b3b3;
}

.radio-inline_sortcategory_input:checked + .radio-inline_sortcategory_label {
    background: #4169e1;
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.7);
}

.radio-inline_sortcategory_input:focus + .radio-inline_sortcategory_label {
    outline-color: #4169e1;
    outline-offset: -2px;
    outline-style: auto;
    outline-width: 5px;
}

.radio-inline_sortrule_input {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

.radio-inline_sortrule_label {
    display: inline-block;
    padding: 0.5rem 0.6rem;
    //margin-right: 8px;
    margin-bottom: 10px;
    border-radius: 3px;
    transition: all .2s;
    width: 42%;
    text-align:center;
    border: 1px solid #b4b3b3;
}

.radio-inline_sortrule_input:checked + .radio-inline_sortrule_label {
    background: #4169e1;
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.7);
}

.radio-inline_sortrule_input:focus + .radio-inline_sortrule_label {
    outline-color: #4169e1;
    outline-offset: -2px;
    outline-style: auto;
    outline-width: 5px;
}

/* 23.10.13追加 */

.radio-inline_LDS_input {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

.radio-inline_LDS_label {
    display: inline-block;
    padding: 0.5rem 0.6rem;
    margin-right: 1px;
    border-radius: 3px;
    transition: all .2s;
    text-align: center;
    vertical-align: middle;
}

.radio-inline_LDS_input:checked + .radio-inline_LDS_label {
    background: #808080;
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.7);
}

.radio-inline_LDS_input:focus + .radio-inline_LDS_label {
    outline-color: #808080;
    outline-offset: -2px;
    outline-style: auto;
    outline-width: 5px;
}


/* 25.11.19追加 */

.breadcrumb-003 {
    display: flex;
    gap: 0 20px;
    list-style: none;
    padding: 6px 0 6px 18px;
    border-radius: 3px;
    overflow: hidden;
    background-color: #f2f2f2;
    font-size: .9em;
    margin-bottom: 30px;
}

.breadcrumb-003 li {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 20px;
}

.breadcrumb-003 li:first-child a::before {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 20C20 20.5523 19.5523 21 19 21H5C4.44772 21 4 20.5523 4 20V11L1 11L11.3273 1.6115C11.7087 1.26475 12.2913 1.26475 12.6727 1.6115L23 11L20 11V20ZM11 13V19H13V13H11Z' fill='%23333333'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    vertical-align: text-bottom;
    content: '';
}

.breadcrumb-003 li:not(:last-child)::before,
.breadcrumb-003 li:not(:last-child)::after{
    position: absolute;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    content:'';
}

.breadcrumb-003 li:not(:last-child)::before{
    right: 0;
    border-left: 10px solid #c6cdd3;
}

.breadcrumb-003 li:not(:last-child)::after{
    right: 1px;
    border-left: 10px solid #f2f2f2;
}

.breadcrumb-003 a {
    color: #333333;
    text-decoration: none;
}



/* =========================================================
   Dark mode (site-wide, persistent via localStorage)
   - Enabled when <html data-theme="dark"> is present.
   - Toggle UI is injected in footer.html
   ========================================================= */

#darkmode_toggle_wrap {
  padding: 12px 0 22px;
}

#darkmode_toggle_wrap .inner {
  text-align: center;
}

.darkmode_toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #d0d0d0;
  background: #ffffff;
}

.darkmode_toggle_text {
  font-size: 14px;
  line-height: 1;
}

.darkmode_toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.darkmode_toggle_slider {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #c9c9c9;
  transition: background 0.2s ease;
}

.darkmode_toggle_slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.darkmode_toggle input:focus + .darkmode_toggle_slider {
  outline: 2px solid #7aa7ff;
  outline-offset: 2px;
}

.darkmode_toggle input:checked + .darkmode_toggle_slider {
  background: #4a6cf7;
}

.darkmode_toggle input:checked + .darkmode_toggle_slider::after {
  transform: translateX(20px);
}

/* --- Dark theme overrides --- */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: #000 !important;
  color: #e6e6e6 !important;
}

html[data-theme="dark"] a {
  color: #9bbcff !important;
}

html[data-theme="dark"] a:hover,
html[data-theme="dark"] a:active {
  color: #b8d0ff !important;
}

/* Common containers / footer area */
html[data-theme="dark"] #header,
html[data-theme="dark"] #footer,
html[data-theme="dark"] .sample_box3,
html[data-theme="dark"] .inner {
  background: transparent;
}

html[data-theme="dark"] .sample_box3,
html[data-theme="dark"] #footer,
html[data-theme="dark"] #darkmode_toggle_wrap {
  background: #000 !important;
}

html[data-theme="dark"] #footer .copyright,
html[data-theme="dark"] .sample_box3 span,
html[data-theme="dark"] .sample_box3 a,
html[data-theme="dark"] .breadcrumb-003 a {
  color: #e6e6e6 !important;
}

html[data-theme="dark"] .breadcrumb-003 a {
  opacity: 0.9;
}

/* Tables */
html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td {
  background: #000 !important;
  color: #e6e6e6 !important;
  border-color: #666 !important;
}

/* Form controls */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #000 !important;
  color: #e6e6e6 !important;
  border-color: #666 !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #a8a8a8 !important;
}

/* Cards / boxes (broad) */
html[data-theme="dark"] .box,
html[data-theme="dark"] .sample_box,
html[data-theme="dark"] .sample_box2,
html[data-theme="dark"] .sample_box3,
html[data-theme="dark"] .sample_box4,
html[data-theme="dark"] .sample_box5,
html[data-theme="dark"] .sample_box6,
html[data-theme="dark"] .sample_box7,
html[data-theme="dark"] .sample_box8,
html[data-theme="dark"] .sample_box9,
html[data-theme="dark"] .sample_box10 {
  background: #000 !important;
  color: #e6e6e6 !important;
  border-color: #666 !important;
}

/* Toggle appearance in dark mode */
html[data-theme="dark"] .darkmode_toggle {
  border-color: #666;
  background: #000;
}

/* Pages still using explicit white backgrounds */
html[data-theme="dark"] #mainBanner,
html[data-theme="dark"] section.content,
html[data-theme="dark"] .grid,
html[data-theme="dark"] .gridmenu {
  background: #000 !important;
  color: #e6e6e6 !important;
  border-color: #666 !important;
}

/* Unify rule (lines) color across common border usages */
html[data-theme="dark"] hr {
  border-color: #666 !important;
}

/* Inline-style fallback (prevents residual white blocks) */
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background: #ffffff"],
html[data-theme="dark"] [style*="background-color:#fff"],
html[data-theme="dark"] [style*="background-color: #fff"],
html[data-theme="dark"] [style*="background-color:#ffffff"],
html[data-theme="dark"] [style*="background-color: #ffffff"],
html[data-theme="dark"] [style*="background:white"],
html[data-theme="dark"] [style*="background: white"],
html[data-theme="dark"] [style*="background-color:white"],
html[data-theme="dark"] [style*="background-color: white"] {
  background: #000 !important;
  color: #e6e6e6 !important;
  border-color: #666 !important;
}

/* ============================
   Dark Mode Unified Theme v3 (2026-01-20)
   Requested:
   - Base background: #0b1330
   - Text: slightly gray (#e6e9f2)
   - Lines: gray (#3a4066)
   - Preserve pale-blue (#b0e0e6) areas as separate gray tone
   - page_top button colors in dark mode
   ============================ */

html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #0b1330 !important;
  color: #e6e9f2 !important;
}

/* Broad background reset */
html[data-theme="dark"] section,
html[data-theme="dark"] div,
html[data-theme="dark"] article,
html[data-theme="dark"] main,
html[data-theme="dark"] header,
html[data-theme="dark"] footer {
  background-color: #0b1330 !important;
  color: #e6e9f2 !important;
}

/* Links */
html[data-theme="dark"] a {
  color: #9fb2ff !important;
}
html[data-theme="dark"] a:hover {
  color: #c7d2ff !important;
}

/* Borders / separators */
html[data-theme="dark"] hr {
  border-color: #3a4066 !important;
}

/* Tables (Rank.html numeric visibility included) */
html[data-theme="dark"] table {
  background: #0b1330 !important;
  color: #e6e9f2 !important;
  border-color: #3a4066 !important;
}
html[data-theme="dark"] th {
  background: #141c44 !important;
  color: #e6e9f2 !important;
  border-color: #3a4066 !important;
}
html[data-theme="dark"] td {
  background: #0b1330 !important;
  color: #e6e9f2 !important;
  border-color: #3a4066 !important;
}
html[data-theme="dark"] td span,
html[data-theme="dark"] td p {
  color: #e6e9f2 !important;
}

/* Hover */
html[data-theme="dark"] tr:hover td {
  background: #1b245a !important;
}

/* Forms */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #141c44 !important;
  color: #e6e9f2 !important;
  border: 1px solid #3a4066 !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #b8bdd6 !important;
}

/* Common containers that were white */
html[data-theme="dark"] #mainBanner,
html[data-theme="dark"] section.content,
html[data-theme="dark"] .grid,
html[data-theme="dark"] .gridmenu,
html[data-theme="dark"] .box,
html[data-theme="dark"] .panel {
  background: #0b1330 !important;
  color: #e6e9f2 !important;
  border-color: #3a4066 !important;
}

/* Toggle appearance */
html[data-theme="dark"] .darkmode_toggle {
  border-color: #3a4066 !important;
  background: #141c44 !important;
  color: #e6e9f2 !important;
}

/* Inline-style fallback (prevents residual white blocks) */
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background: #ffffff"],
html[data-theme="dark"] [style*="background-color:#fff"],
html[data-theme="dark"] [style*="background-color: #fff"],
html[data-theme="dark"] [style*="background-color:#ffffff"],
html[data-theme="dark"] [style*="background-color: #ffffff"],
html[data-theme="dark"] [style*="background:white"],
html[data-theme="dark"] [style*="background: white"],
html[data-theme="dark"] [style*="background-color:white"],
html[data-theme="dark"] [style*="background-color: white"] {
  background: #0b1330 !important;
  color: #e6e9f2 !important;
  border-color: #3a4066 !important;
}

/* ============================
   Dark Mode: pale-blue area override
   (original background: #b0e0e6 / rgb(176,224,230))
   ============================ */
html[data-theme="dark"] [style*="#b0e0e6"],
html[data-theme="dark"] [style*="rgb(176,224,230)"] {
  background: #1f254a !important;
  color: #e6e9f2 !important;
  border-color: #3a4066 !important;
}

/* Optional semantic classes (if present) */
html[data-theme="dark"] .bg-pale-blue,
html[data-theme="dark"] .info-area,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .summary,
html[data-theme="dark"] .highlight {
  background: #1f254a !important;
  color: #e6e9f2 !important;
  border-color: #3a4066 !important;
}

/* ============================
   Dark Mode: page top button
   ============================ */
html[data-theme="dark"] #page_top {
  background: #c3c7d9 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="dark"] #page_top:hover {
  background: #d6daf0 !important;
}

/* Arrow (pseudo element / border-based) */
html[data-theme="dark"] #page_top a::before,
html[data-theme="dark"] #page_top a::after {
  border-color: #3a3f55 !important;
}

/* If arrow is text/SVG */
html[data-theme="dark"] #page_top a {
  color: #3a3f55 !important;
}
html[data-theme="dark"] #page_top svg {
  fill: #3a3f55 !important;
}

/* ============================
   Dark Mode: footer background unify
   - Force entire #footer region to base background (#0b1330)
   ============================ */
html[data-theme="dark"] #footer,
html[data-theme="dark"] #footer * {
  background-color: #0b1330 !important;
}

/* ============================
   Dark Mode: main menu (unselected items were white)
   - Background: #0b1330
   - Text: white-ish, improved contrast on mobile
   ============================ */
html[data-theme="dark"] #mainNav,
html[data-theme="dark"] #mainNav .panel,
html[data-theme="dark"] #mainNav ul,
html[data-theme="dark"] #mainNav li,
html[data-theme="dark"] #mainNav li a,
html[data-theme="dark"] #mainNav a.menu {
  background-color: #0b1330 !important;
  color: #e6e9f2 !important;
}

/* Mobile menu: boost readability */
@media (max-width: 960px) {
  html[data-theme="dark"] #mainNav .sp ul li a,
  html[data-theme="dark"] #mainNav .sp ul li,
  html[data-theme="dark"] #mainNav .sp ul {
    background-color: #0b1330 !important;
    color: #f1f3ff !important;
  }
}

/* Hover/active states: keep dark background, slightly lift */
html[data-theme="dark"] #mainNav li a:hover {
  background-color: #141c44 !important;
  color: #f1f3ff !important;
}
html[data-theme="dark"] #mainNav li.active a {
  background-color: #1b245a !important;
  color: #f1f3ff !important;
}

/* ============================
   Dark Mode: slogan transparency
   - Prevent dark background overlay on top images
   ============================ */
html[data-theme="dark"] .slogan {
  background: transparent !important;
  background-color: transparent !important;
}

/* ============================
   Dark Mode Unified Theme v7.1 (footer toggle centering + breadcrumb theme)
   ============================ */

html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #0b1330 !important;
  color: #e6e9f2 !important;
}

/* Footer: force all of #footer area to site dark background */
html[data-theme="dark"] #footer,
html[data-theme="dark"] #footer .inner,
html[data-theme="dark"] #footer section,
html[data-theme="dark"] #footer article,
html[data-theme="dark"] #footer div,
html[data-theme="dark"] #footer p,
html[data-theme="dark"] #footer span,
html[data-theme="dark"] #footer a {
  background-color: #0b1330 !important;
  color: #e6e9f2 !important;
}

html[data-theme="dark"] #footer img {
  background: transparent !important;
}

/* Center the dark-mode toggle inside footer */
#darkmode_toggle_wrap {
  padding: 12px 0 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Toggle appearance aligned with palette */
html[data-theme="dark"] .darkmode_toggle {
  border-color: #3a4066 !important;
  background: #141c44 !important;
}
html[data-theme="dark"] .darkmode_toggle_text {
  color: #e6e9f2 !important;
}
html[data-theme="dark"] .darkmode_toggle_slider {
  background: #3a4066 !important;
}
html[data-theme="dark"] .darkmode_toggle_slider::after {
  background: #c3c7d9 !important;
}
html[data-theme="dark"] .darkmode_toggle input:checked + .darkmode_toggle_slider {
  background: #6f86ff !important;
}

/* Breadcrumbs */
html[data-theme="dark"] .breadcrumb-003 {
  background-color: #0b1330 !important;
  border: 1px solid #3a4066 !important;
}
html[data-theme="dark"] .breadcrumb-003 a {
  color: #e6e9f2 !important;
}
html[data-theme="dark"] .breadcrumb-003 li:not(:last-child)::before {
  border-left-color: #3a4066 !important;
}
html[data-theme="dark"] .breadcrumb-003 li:not(:last-child)::after {
  border-left-color: #0b1330 !important;
}
html[data-theme="dark"] .breadcrumb-003 li:first-child a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 20C20 20.5523 19.5523 21 19 21H5C4.44772 21 4 20.5523 4 20V11L1 11L11.3273 1.6115C11.7087 1.26475 12.2913 1.26475 12.6727 1.6115L23 11L20 11V20ZM11 13V19H13V13H11Z' fill='%23e6e9f2'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Global tables */
html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td {
  background: #0b1330 !important;
  color: #e6e9f2 !important;
  border-color: #3a4066 !important;
}
html[data-theme="dark"] td span,
html[data-theme="dark"] td p {
  color: #e6e9f2 !important;
}

/* Main navigation: unselected area and panel backgrounds */
html[data-theme="dark"] nav#mainNav,
html[data-theme="dark"] nav#mainNav ul,
html[data-theme="dark"] nav#mainNav li,
html[data-theme="dark"] nav#mainNav a,
html[data-theme="dark"] nav#mainNav .panel,
html[data-theme="dark"] nav div.panel {
  background: #0b1330 !important;
  color: #e6e9f2 !important;
  border-color: #3a4066 !important;
}

html[data-theme="dark"] nav#mainNav a {
  color: #e6e9f2 !important;
}

html[data-theme="dark"] nav#mainNav a:hover,
html[data-theme="dark"] nav#mainNav li:hover > a {
  background: #141c44 !important;
}

@media screen and (max-width: 960px) {
  html[data-theme="dark"] nav#mainNav a,
  html[data-theme="dark"] nav#mainNav ul li a,
  html[data-theme="dark"] nav#mainNav ul span {
    color: #f2f4ff !important;
  }
}

/* Slogan area must be transparent in dark mode */
html[data-theme="dark"] .slogan {
  background: transparent !important;
}

/* ============================
   Dark Mode: footer toggle centering + breadcrumbs
   ============================ */

/* Center the dark-mode toggle inside footer */
#darkmode_toggle_wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Breadcrumbs (pankuzu) */
html[data-theme="dark"] .breadcrumb-003 {
  background-color: #0b1330 !important;
  border: 1px solid #3a4066 !important;
}

html[data-theme="dark"] .breadcrumb-003 a {
  color: #e6e9f2 !important;
}

html[data-theme="dark"] .breadcrumb-003 li:not(:last-child)::before {
  border-left-color: #3a4066 !important;
}

html[data-theme="dark"] .breadcrumb-003 li:not(:last-child)::after {
  border-left-color: #0b1330 !important;
}

html[data-theme="dark"] .breadcrumb-003 li:first-child a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 20C20 20.5523 19.5523 21 19 21H5C4.44772 21 4 20.5523 4 20V11L1 11L11.3273 1.6115C11.7087 1.26475 12.2913 1.26475 12.6727 1.6115L23 11L20 11V20ZM11 13V19H13V13H11Z' fill='%23e6e9f2'%3E%3C/path%3E%3C/svg%3E") !important;
}


/* ============================
   Dark Mode: top bar unify (#244487 -> base)
   ============================ */
html[data-theme="dark"] body{
  border-top-color: #0b1330 !important;
}
html[data-theme="dark"] nav#mainNav,
html[data-theme="dark"] #mainNav{
  background-color: #0b1330 !important;
}

/* ============================
   Dark Mode: Mobile MENU button always has background
   ============================ */
@media (max-width: 960px){
  html[data-theme="dark"] nav#mainNav a#menu,
  html[data-theme="dark"] #mainNav a#menu,
  html[data-theme="dark"] nav#mainNav a#menu span,
  html[data-theme="dark"] #mainNav a#menu span{
    background-color: #141c44 !important;
    color: #f1f3ff !important;
  }
}


/* ============================
   Dark Mode: gallery frame clipping fix
   - Prevent top edge of image frame/shadow from being clipped
   - Affects MagiciteDungeons / Cardia / LabyrinthDungeons / CrystalDungeons galleries
   ============================ */
html[data-theme="dark"] article#gallery.gridWrapper,
html[data-theme="dark"] .gridWrapper#gallery {
  padding-top: 4px !important;
  /* keep overflow hidden for float clearing, but ensure enough top padding so shadows show */
}


/* ============================
   Dark Mode: Top page input decoration (cp_iptxt::after)
   - make it transparent to avoid bright blue highlight
   ============================ */
html[data-theme="dark"] div.cp_iptxt::after{
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
