@charset "utf-8";

/* ==========================================================================
   1. 全端末（PC・タブレット・スマホ）共通設定
   ========================================================================== */

/* ▼ スクロールバグ（上に飛ぶ現象）を防ぐための設定 ▼ */
html {
	box-sizing: border-box;
}
*, *:before, *:after {
	box-sizing: inherit;
}
body, html {
	width: 100%;
	/* height: 100%; はスクロールバグの原因になるため削除し、min-heightに変更 */
	min-height: 100vh;
}
body {
	margin: 0px;
	padding: 0px;
	color: #666;
	font-family:"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size: 16px;
	line-height: 2;
	background: #d6d2cd;
	-webkit-text-size-adjust: none;
	overflow-x: hidden; /* 横スクロール（はみ出し）防止はbodyのみに適用 */
}
/* ▲ 修正ここまで ▲ */

h1,h2,h3,h4,h5,p,ul,ol,li,dl,dt,dd,form,figure {margin: 0px;padding: 0px;font-size: 100%;}
ul {list-style-type: none;}
ol {padding-left: 40px;padding-bottom: 15px;}
img {border: none;max-width: 100%;height: auto;vertical-align: middle;}
table {border-collapse:collapse;font-size: 100%;border-spacing: 0;}
iframe {width: 100%;}

/* リンク設定 */
a {
	color: #666;
	transition: 0.4s;
}
a:hover {
	color: #655641;
	text-decoration: none;
}

/* ==========================================================================
   画像拡大ポップアップ用スタイル（追加分）
   ========================================================================== */
.zoomable { cursor: zoom-in; transition: opacity 0.3s; }
.zoomable:hover { opacity: 0.8; }
#overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85); z-index: 9999; justify-content: center; align-items: center; cursor: zoom-out;
}
#overlay img { max-width: 90%; max-height: 90%; border: 3px solid #fff; border-radius: 4px; }

/* トップページ設定 */
/* ▼ トップページのみ、元のデザインを維持するため height: 100%; と中央配置を復活させる ▼ */
html:has(body.home) {
	height: 100%;
}
body.home {
	height: 100%;
	background: url(../../images/mainimg.jpg) no-repeat left center;
	background: url(../../images/mainimg.jpg) no-repeat left center / cover;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
body.home .logo {
	background: #231f19;
	text-align: center;
	padding: 10px;
	width: 100%; /* ★横幅を画面いっぱいにして帯を復活させる★ */
	margin-top: -50px;
	animation-name: home-logo;
	animation-duration: 0.2s;
	animation-fill-mode: both;
	animation-delay: 1s;
}
body.home .logo img {
	width: 400px;
}
@keyframes home-logo {
	0% {opacity: 0;transform: scaleY(0);}
	100% {opacity: 1;transform: scaleY(1);}
}

/* container */
#container {
	max-width: 1500px;
}

/* mainブロック */
#main {
	float: right;
	width: 68%;
	margin-top: 100px;
	margin-right: 3%;
}
#main h2 {
	clear: both;
	margin-bottom: 20px;
	text-align: center;
	background: #231f19;
	color: #fff;
	border-radius: 30px;
	line-height: 1.5;
	padding: 10px 30px;
}
#main h3 {
	clear: both;
	margin-bottom: 20px;
	text-align: center;
	border-radius: 30px;
	border: 2px solid #231f19;
	color: #000;
	line-height: 1.5;
	padding: 2px 30px;
}
#main h2 span, #main h3 span {
	display: block;
	font-weight: normal;
	font-size: 11px;
	letter-spacing: 0.2em;
}
#main p {
	padding: 0px 20px 15px;
}
#main h2 + p, #main h3 + p {
	margin-top: -10px;
}
#main section + section {
	margin-top: 50px;
}

/* listブロック */
.list {
	position: relative;overflow: hidden;
	float: left;
	width: 30%;
	box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
	line-height: 1.4;
	margin-left: 2.5%;
	margin-bottom: 20px;
	background: #fff;
	height: 300px;
}
.list a {
	position: relative;overflow: hidden;text-decoration: none;display: block;
	height: 300px;
}
.list a:hover {
	background: #000;
	color: #fff;
}
.list a::after {
	content: "→";
	display: inline-block;text-align: center;
	width: 15px;
	line-height: 15px;
	position: absolute;
	right: 10px;
	bottom: 10px;
	font-size: 10px;
	background: #000;
	color: #fff;
}
.list a:hover::after {
	background: #fff;
	color: #000;
}
.list h4, .list p {
	padding: 0 !important;
	margin: 0 !important;
}
.list h4 {
	color: #000;
	padding: 10px !important;
}
.list a:hover h4 {
	color: #fff;
}
.list p {
	font-size: 11px;
	padding: 0 10px 10px !important;
}

/* subブロック */
#sub {
	float: left;
	width: 25%;
	max-width: 375px;
	height: 100%;
	background: url(../../images/mainimg.jpg) no-repeat left center;
	background: url(../../images/mainimg.jpg) no-repeat left center / cover;
	text-align: center;
	position: fixed;
	box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
}
#sub .logo {
	width: 50%;
	margin: 100px auto;
}

/* メインメニュー */
#menubar {
	border-top: 1px solid #fff;
}
#menubar li {
	border-bottom: 1px solid #fff;
	position: relative;
}
#menubar li a {
	display: block;text-decoration: none;
	color: #fff;
	padding: 15px 5px;
	position: relative;
}
#menubar li a span {
	display: block;
	font-size: 9px;
}
#menubar li a:hover, #menubar li.current a {
	background: #231f19;
}

/* 選択中メニューのツノ（三角形矢印）描画 */
#menubar li.current::after {
	content: "" !important;
	position: absolute !important;
	top: 50% !important;
	right: -10px !important;
	transform: translateY(-50%) !important;
	width: 0 !important;
	height: 0 !important;
	border-style: solid !important;
	border-width: 10px 0 10px 10px !important;
	border-color: transparent transparent transparent #231f19 !important;
	display: block !important;
	z-index: 99 !important;
}

#menubar-s {display: none;}
#menubar_hdr {display: none;}

/* footer */
footer {
	clear: both;
	text-align: right;
	padding-top: 50px;
	padding-right: 3%;
	font-size: 12px;
}
footer a {text-decoration: none;}
footer .pr {display: block;}

/* お知らせ */
#new dl { padding: 0 30px; }
#new dt { float: left; width: 9em; letter-spacing: 0.1em; }
#new dd { padding-left: 9em; }

/* テーブル */
.ta1 { width: 100%; margin: 0 auto 20px; }
.ta1, .ta1 td, .ta1 th {
	border: 1px solid #999;
	background: #fff;
	padding: 10px 15px;
	word-break: break-all;
}
.ta1 th.tamidashi { width: auto; text-align: left; background: #eee; }
.ta1 th { width: 140px; text-align: center; font-weight: normal; }
.ta1 th img { width: 100%; }

/* ページトップに戻るボタン */
@keyframes scroll {
	0% {opacity: 0;}
	100% {opacity: 1;}
}
body .nav-fix-pos-pagetop a { display: none; }
body.is-fixed-pagetop .nav-fix-pos-pagetop a {
	display: block;text-decoration: none;text-align: center;
	width: 50px;
	line-height: 50px;
	z-index: 100;
	position: fixed;
	bottom: 20px;
	right: 1%;
	background: #000;
	background: rgba(0,0,0,0.6);
	color: #fff;
	border-radius: 50%;
	animation-name: scroll;
	animation-duration: 1S;
	animation-fill-mode: forwards;
}
body.is-fixed-pagetop .nav-fix-pos-pagetop a:hover { background: #999; }

/* 共通パーツ */
.newicon { background: #F00; color: #FFF; font-size: 70%; line-height: 1.5; padding: 2px 5px; border-radius: 2px; margin: 0px 5px; vertical-align: text-top; }
.look {background: #c3b5a2;background: rgba(0,0,0,0.1);padding: 5px 10px;border-radius: 4px;}
.mb15,.mb1em {margin-bottom: 15px !important;}
.mb30 {margin-bottom: 30px !important;}
.mb50 {margin-bottom: 50px !important;}
.p0 {padding:0 !important;}
.clear {clear: both;}
ul.disc {padding: 0em 25px 15px;list-style: disc;}
.color1, .color1 a {color: #655641 !important;}
.pr {font-size: 10px;}
.wl {width: 96%;}
.ws {width: 50%;}
.c {text-align: center;}
.r {text-align: right;}
.l {text-align: left;}
.fl {float: left;}
.fr {float: right;}
.big1 {font-size: 50px;}
.mini1 {font-size: 11px;display: inline-block;line-height: 1.5;}
.sh {display: none;}
#sh-sub {display: none;}

/* ==========================================================================
   2. メディアクエリ（画面サイズ別設定）
   ========================================================================== */

/* PC画面高制限 */
@media screen and (min-width:801px) and (max-height:650px){
	#sub { position: absolute; height: auto; }
}

/* PC画面（801px以上）：スマホ用ヘッダーエリアを非表示にする */
@media screen and (min-width: 801px) {
	#sh-sub { display: none !important; }
}

/* スマホ・タブレット画面（800px以下） */
@media screen and (max-width:800px){
	@keyframes menubar {
		0% {opacity: 0;}
		100% {opacity: 1;}
	}
	
	/* テンプレ通りのスタイル（JavaScriptによる開閉制御） */
	#menubar-s {
		display: block;
		overflow: hidden;
		position: fixed;z-index: 50;
		top: 70px;
		width: 100%;
		background: rgba(0,0,0,0.8);
		border-top: 1px solid #fff;
		animation-name: menubar;
		animation-duration: 0.5s;
		animation-fill-mode: both;
	}
	
	#menubar-s li a {
		display: block;text-decoration: none;
		padding: 10px 15px;
		border-bottom: 1px solid #fff;
		color: #fff;
		font-size: 20px;
	}
	#menubar-s li a span {
		display: block;
		font-size: 12px;
		color: #999;
	}
	#menubar {display: none;}

	/* 3本バーアイコン */
	#menubar_hdr {
		display: block;
		position: fixed;z-index: 50;
		top: 10px;
		right: 10px;
		border: 1px solid #fff;
	}
	#menubar_hdr.close, #menubar_hdr.open { width: 50px; height: 50px; }
	#menubar_hdr.close { background: url(../../images/icon_menu.png) no-repeat center top/50px; }
	#menubar_hdr.open { background: url(../../images/icon_menu.png) no-repeat center bottom/50px; }

	#main { float: none; margin: 100px 3% 0; width: auto; }
	#sub { display: none; }
	#sh-sub {
		display: block;
		position: fixed;
		top: 0px;
		height: 70px;
		width: 100%;
		background: #000;
	}
	#sh-sub .logo img { width: 300px; margin: 20px 4%; }

	body.s-n #sub,body.s-n #footermenu,.m-n {display: none;}
	.big1 {font-size: 24px;}
	.fl {float: none;}
	.fr {float: none;}
	.sh {display:block;}
	.pc {display:none;}
}

/* スマホ横向き（高さ500px以下） */
@media screen and (orientation: landscape) and (max-height:500px){
	#menubar-s li a {
		float: left;
		width: 40%;
		margin-left: 4%;
		line-height: 1.2;
	}
}

/* 小型スマホ（480px以下） */
@media screen and (max-width:480px){
	body { font-size: 15px; line-height: 1.6; }
	#sh-sub .logo img { width: 200px; margin-top: 25px; }
	#main p { padding: 0px 10px 15px; }
	#main section + section { margin-top: 30px; }
	.list { float: none; width: auto; height: auto; }
	.list a { height: auto; }
	.list figure { float: left; width: 35%; margin-right: 10px; }
	#new dl { padding: 0 10px; }
	.ta1, .ta1 td, .ta1 th { padding: 5px; }
	.ta1 th { width: 100px; }
	.ws,.wl {width: 94%;}
	.big1 {font-size: 16px;}
}

/* ==========================================================================
   3. YACHO用 捜査・検索窓カスタム装飾
   ========================================================================== */
.search-box {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.search-box h3 {
	margin-top: 0;
	margin-bottom: 10px !important;
	text-align: left !important;
	border: none !important;
	font-size: 16px;
}
.search-box input[type="text"], 
.search-box input:not([type="button"]) {
	width: calc(100% - 110px);
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px; /* スマホでタップ時にズームしないよう16pxに変更 */
	box-sizing: border-box;
}
.search-box button,
.search-box input[type="button"] {
	width: 90px;
	padding: 8px 0;
	background: #231f19;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	margin-left: 10px;
	transition: 0.3s;
}
.search-box button:hover,
.search-box input[type="button"]:hover {
	background: #655641;
}
.search-box.answer-box {
	border: 2px solid #a94442;
	background: #fdf7f7;
}
.search-box.answer-box button,
.search-box.answer-box input[type="button"] {
	background: #a94442;
}
.search-box.answer-box button:hover,
.search-box.answer-box input[type="button"]:hover {
	background: #843534;
}