/* add shimizu 2026-10-14 都道府県ページ（inc/prefecture-pages.php） */

/* 冒頭のご案内文 */
.pref-lead {
	background: #fafafa;
	border: 1px solid #e3e3e3;
	padding: 14px 18px;
	line-height: 1.8;
}
.pref-lead p:last-child {
	margin-bottom: 0;
}
/* 入力したご案内文の下に出す講習数・会場数の行（写真の回り込みの下に出す） */
.pref-lead .pref-lead-count {
	clear: both;
	padding-top: 10px;
	border-top: 1px dashed #ddd;
}
/* ご案内文に入れた写真（「メディアを追加」）：枠の幅に収め、WordPress の配置（左・中央・右）に合わせる */
.pref-lead::after {
	content: "";
	display: block;
	clear: both;
}
.pref-lead img {
	max-width: 100%;
	height: auto;
}
.pref-lead .wp-caption {
	max-width: 100%;
}
.pref-lead .wp-caption-text {
	margin: 4px 0 0;
	color: #666;
	font-size: 12px;
}
.pref-lead .aligncenter {
	display: block;
	margin: 10px auto;
}
.pref-lead .alignleft {
	float: left;
	margin: 4px 18px 10px 0;
}
.pref-lead .alignright {
	float: right;
	margin: 4px 0 10px 18px;
}

/* 会場の見出しは講習日程の表との間をあける */
.pref-places-headline {
	margin-top: 40px;
}

/* 講習が無いとき */
.pref-near {
	margin-bottom: 20px;
	line-height: 2;
}
.pref-near-title {
	font-weight: bold;
	margin-right: 12px;
}
.pref-near a {
	display: inline-block;
	margin-right: 14px;
	text-decoration: underline;
}

/* 会場（住所録）。パソコンでは2列 */
.pref-places {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -5px;
}
.pref-place {
	width: calc(50% - 10px);
	margin: 0 5px 10px;
	border: 1px solid #ddd;
	padding: 10px 14px;
	line-height: 1.7;
}
.pref-place-active {
	display: inline-block;
	margin-right: 8px;
	padding: 0 6px;
	border-radius: 3px;
	background: #39a9c9;
	color: #fff;
	font-size: 12px;
	vertical-align: 1px;
}
.pref-place-name {
	font-weight: bold;
	font-size: 15px;
}
.pref-place-address {
	font-size: 13px;
}

/* 全国の日程表へ（オレンジのボタン） */
.pref-all-link {
	margin: 36px 0 20px;
	text-align: center;
}
.btn-pref-all,
.btn-pref-all:visited {
	display: inline-block;
	width: 100%;
	max-width: 420px;
	padding: 16px;
	background: #f08c1a;
	border-radius: 6px;
	box-shadow: 0 3px 0 #c96f0c;
	color: #fff;
	font-size: 18px;
	font-weight: bold;
}
.btn-pref-all:hover,
.btn-pref-all:focus {
	background: #e07c0a;
	color: #fff;
	text-decoration: none;
}

/* 検索パーツの下のリンク一覧（案3） */
/* 検索ボタンの周りが float なので、margin ではなく外側の箱の padding で間をあける */
.pref-links-wrap {
	clear: both;
	padding-top: 30px;
}
.pref-links {
	padding: 16px 20px 10px;
	border: 1px solid #cfe3ee;
	background: #f3f9fc;
	font-size: 14px;
	line-height: 1.7;
	text-align: left;
}
.pref-links-title {
	margin-bottom: 10px;
	color: #0b4f9c;
	font-weight: bold;
}
.pref-links dl {
	margin: 0;
}
.pref-links dt {
	float: left;
	clear: left;
	width: 4.5em;
	color: #0b4f9c;
}
.pref-links dd {
	margin-left: 4.5em;
	padding-bottom: 8px;	/* エリアごとの行の間 */
}
.pref-links a {
	display: inline-block;
	margin-right: 12px;
	text-decoration: underline;
	white-space: nowrap;
}
/* 都道府県ページの下に出すときの、今見ている県（リンクにしない） */
.pref-links .pref-links-current {
	display: inline-block;
	margin-right: 12px;
	color: #333;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.pref-place {
		width: 100%;
	}
	/* スマホでは写真の回り込みをやめて、文章の上下に置く */
	.pref-lead .alignleft,
	.pref-lead .alignright {
		float: none;
		display: block;
		margin: 10px auto;
	}
	.pref-links dt {
		float: none;
		width: auto;
	}
	.pref-links dd {
		margin: 0;
		padding-bottom: 10px;
	}
	.pref-links a {
		margin-right: 14px;
		padding: 3px 0;	/* スマホで押しやすいように */
	}
}
