/* =================================
	トップページ：基本レイアウト
================================= */
body.home .site-body {
	padding-top: 0 !important;
}
body.home .site-body-container,
body.home .main-section,
body.home .entry,
body.home .entry-body {
	margin-top: 0 !important;
	padding-top: 0 !important;
}
.home-info-layout {
	display: grid !important;
	grid-template-columns: 760px 270px;
	gap: 24px !important;
	align-items: start;
	box-sizing: border-box;
	position: relative;
	left: 50%;
	width: min(1054px, calc(100vw - 40px));
	max-width: none !important;
	margin: 24px 0 40px !important;
	transform: translateX(-50%);
}
.home-info-layout > .wp-block-column {
	min-width: 0;
	margin: 0 !important;
	flex-basis: auto !important;
}
body.home .site-body,
body.home .site-body-container,
body.home .main-section,
body.home .entry,
body.home .entry-body {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}
/* (max-width: 1094px) */
@media (max-width: 1094px) {
	.home-info-layout {
		grid-template-columns: minmax(0, 1fr) 250px;
	}
}
/* (max-width: 991px) */
@media (max-width: 991px) {
	.home-info-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* (max-width: 575px) */
@media (max-width: 575px) {
	.home-info-layout {
		width: calc(100vw - 24px);
	}
}

/* =================================
	トップページ：メインスライド
================================= */
.lightning_swiper {
	width: 100%;
	max-width: none;
	margin: 0;
	padding-top: 24px;
	padding-bottom: 24px;
	padding-left: max(20px, calc((100% - 1054px) / 2));
	padding-right: max(20px, calc((100% - 1054px) / 2));
	background-color: #eee6cd;
	border-top: 2px solid #d5bc6e;
	border-bottom: 2px solid #d5bc6e;
	box-sizing: border-box;
}
.lightning_swiper .swiper-slide {
	aspect-ratio: 1054 / 400;
	background-size: cover;
	background-position: center;
}
body.home .swiper-pagination-bullet {
	width: 5px !important;
	height: 5px !important;
	margin: 0 5px !important;
	border: 0 !important;
	border-radius: 50% !important;
	background-color: #c8b77e !important;
	box-shadow: none !important;
	opacity: 0.4 !important;
}
body.home .swiper-pagination-bullet-active {
	background-color: #c09b28 !important;
	opacity: 1 !important;
}
body.home .swiper-pagination {
	transform: translateY(4px);
}

/* スライド：左右の矢印を非表示 */
body.home .lightning_swiper .swiper-button-prev,
body.home .lightning_swiper .swiper-button-next {
	display: none !important;
}

/* (max-width: 991px) */
@media screen and (max-width: 991px) {
	.lightning_swiper {
		top: 7px;
	}
}
/* (max-width: 575px) */
@media (max-width: 575px) {
	.lightning_swiper {
		padding-right: 12px;
		padding-left: 12px;
	}
}

/* =================================
	トップページ：お知らせ
================================= */
.home-news-panel {
	overflow: hidden;
	border: 1px solid #d5bc6e;
	border-radius: 14px;
}
.home-news-panel h2 img {
	position: relative;
	top: 8px;
	width: 36px;
	height: 36px;
	margin-right: 12px;
}
.home-news-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	box-sizing: border-box;
	padding: 24px 48px;
	border-bottom: 1px solid #d5bc6e;
}
.home-news-header .wp-block-heading {
	margin: 0;
	padding: 0;
	font-family: "Noto Serif JP", serif;
	font-size: 26px;
	font-weight: 700;
}
.home-news-list-link {
	position: relative;
	top: 4px;
	margin: 0;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
}
.home-news-query,
.home-news-query .wp-block-post-template {
	margin: 0 !important;
	padding: 0 !important;
}
.home-news-query .wp-block-post-template {
	display: block !important;
}
.home-news-query .wp-block-post {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	grid-template-rows: 46px 32px 52px;
	align-content: start;
	column-gap: 24px;
	box-sizing: border-box;
	height: 186px;
	margin: 0 !important;
	padding: 28px 24px;
	position: relative;
	border-bottom: 0;
}
.home-news-query .wp-block-post:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 24px;
	bottom: 0;
	left: 24px;
	width: auto;
	height: 1px;
	background: repeating-linear-gradient(
	to right,
	#C6AA4F 0,
	#C6AA4F 1px,
	transparent 1px,
	transparent 4px
	);
	transform: none;
}
.home-news-query .wp-block-post:last-child {
	border-bottom: 0;
}
.home-news-thumbnail {
	grid-row: 1 / 4;
	align-self: center;
	box-sizing: border-box;
	width: 214px;
	height: 130px;
	margin: 0 !important;
	overflow: hidden;
	border: 1px solid #E1DFD3;
	border-radius: 10px;
}
.home-news-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.home-news-thumbnail--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f5f5f5;
	color: #aaa;
	font-size: 16px;
	letter-spacing: 0.08em;
}
.home-news-query .wp-block-post-date {
	align-self: start;
	box-sizing: border-box;
	margin: 0 !important;
	padding-top: 8px;
	color: #777;
	font-size: 14px;
	line-height: 20px;
}
.home-news-query .wp-block-post-title {
	align-self: start;
	min-width: 0;
	margin: 0 !important;
	font-size: 16px;
	font-weight: 500 !important;
	line-height: 24px;
}
.home-news-query .wp-block-post-title a {
	display: block;
	overflow: hidden;
	font-weight: 500 !important;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.home-news-excerpt {
	min-width: 0;
	height: 48px;
	margin: 0 !important;
	font-size: 14px;
	line-height: 24px;
}
.home-news-excerpt p {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 !important;
	line-height: 24px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
/* (max-width: 991px) */
@media (max-width: 991px) {
	.home-news-header {
		padding: 12px 32px;
	}
	.home-news-header .wp-block-heading,
.home-bousai-panel > .wp-block-heading {
		font-size: 20px;
	}
	.home-news-panel h2 img,
.home-bousai-panel h2 img {
		top: 6px;
		width: auto;
		height: 28px;
		margin-right: 10px;
		object-fit: contain;
	}
	.home-news-list-link {
		font-size: 12px;
	}
}
/* (max-width: 575px) */
@media (max-width: 575px) {
	.home-news-header .wp-block-heading {
		font-size: 18px;
	}
	.home-news-query .wp-block-post {
		grid-template-columns: 100px minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		align-content: start;
		align-items: start;
		column-gap: 12px;
		min-height: 0 !important;
		height: auto !important;
		padding: 16px 12px;
	}
	.home-news-thumbnail {
		grid-row: 1 / 4;
		align-self: center;
		width: 100px;
		height: auto;
		aspect-ratio: 214 / 130;
		border-radius: 6px;
	}
	.home-news-thumbnail img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	.home-news-query .wp-block-post-date {
		padding-top: 0;
		font-size: 12px;
		line-height: 18px;
	}
	.home-news-query .wp-block-post-title {
		font-size: 14px;
		line-height: 22px;
	}
	.home-news-excerpt {
		height: auto;
		font-size: 12px;
		line-height: 20px;
	}
	.home-news-excerpt p {
		line-height: 20px;
	}
	.home-news-query .wp-block-post:not(:last-child)::after {
		right: 12px;
		left: 12px;
	}
	.home-news-query .wp-block-post {
		align-content: center;
	}
	.home-news-header {
		padding-left: 20px;
		padding-right:20px;
	}
}

/* =================================
	トップページ：防災情報
================================= */
.home-bousai-panel {
	overflow: hidden;
	border: 1px solid #d5bc6e;
	border-radius: 14px;
}
.home-bousai-panel > .wp-block-heading {
	margin: 0;
	padding: 24px 24px 24px 32px;
	border-bottom: 1px solid #d5bc6e;
	font-family: "Noto Serif JP", serif;
	font-size: 26px;
	font-weight: 700;
	white-space: nowrap;
}
.home-bousai-panel h2 img {
	position: relative;
	top: 8px;
	width: 36px;
	height: 36px;
	margin-right: 12px;
}
.home-bousai-item {
	box-sizing: border-box;
	padding: 24px 24px 0;
}
.home-bousai-map-link {
	margin: 0 !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
}
.home-bousai-item .wp-block-image {
	margin: 8px 0 0 !important;
}
.home-bousai-source {
	margin: 16px 24px 24px 0px !important;
	color: #777;
	font-size: 11px;
	line-height: 1.5;
}
/* 991px以下 */
@media screen and (max-width: 991px) {

	/* 防災情報の見出し */
	.home-bousai-panel h2.wp-block-heading {
		display: flex;
		align-items: center;
		box-sizing: border-box;
		width: 100% !important;
		max-width: none !important;
		margin: 0;
		padding: 16px 32px;
		font-size: 20px !important;
		line-height: 1.5;
	}

	/* 防災情報の見出しアイコン */
	.home-bousai-panel h2.wp-block-heading img {
		position: static !important;
		top: auto !important;
		width: auto !important;
		height: 28px !important;
		margin-right: 10px;
		object-fit: contain;
	}

	/* 防災マップ3項目を横並び */
	.home-bousai-grid {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
		width: 100% !important;
		max-width: none !important;
		box-sizing: border-box;
		padding: 24px 32px;
	}

	.home-bousai-grid .home-bousai-item {
		min-width: 0;
		margin: 0 !important;
		padding: 0;
	}

	/* タイトルを隣の列へ飛び出させない */
	.home-bousai-grid .home-bousai-map-link {
		white-space: normal;
	}

	/* 避難所一覧リンクと出典 */
	.home-bousai-bottom {
		width: 100% !important;
		max-width: none !important;
		box-sizing: border-box;
		margin: 0 !important;
		padding: 0 32px 24px;
	}
}

/* 767px以下：防災マップを縦並び */
@media screen and (max-width: 767px) {
	.home-bousai-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-bousai-grid .home-bousai-map-link {
		white-space: nowrap;
	}
}

/* 575px以下：スマホ */
@media screen and (max-width: 575px) {
	.home-bousai-panel h2.wp-block-heading {
		padding: 14px 20px;
		font-size: 18px !important;
	}
}

/* =================================
	トップページ：大宝地域の歴史バナー
================================= */
.home-history-banner {
	margin: 24px 0 0 !important;
}
.home-history-banner img {
	transition: opacity 0.3s ease;
}
.home-history-banner a:hover img {
	opacity: 0.7;
}
/* (max-width: 991px) */
@media (max-width: 991px) {
	.home-history-banner {
		text-align: center;
	}
	.home-history-banner img {
		display: block;
		margin-right: auto;
		margin-left: auto;
	}
}

/* =================================
	トップページ：自治連合会・地域活動協議会
================================= */
.home-about-section {
	box-sizing: border-box;
	min-height: auto !important;
	padding: 48px 24px;
	border-bottom: 2px solid #fff;
}
.home-about-section .wp-block-cover__inner-container {
	width: 100%;
	max-width: 1054px;
	margin: 0 auto;
}
.home-about-cards {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	position: relative;
	left: 50%;
	width: min(1054px, calc(100vw - 40px));
	max-width: none;
	margin: 0 !important;
	gap: 54px;
	align-items: stretch;
	transform: translateX(-50%);
}
.home-about-cards > .wp-block-column {
	min-width: 0;
	margin: 0 !important;
	display: flex;
	flex-basis: auto !important;
}
.home-about-card {
	gap: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: auto;
	min-height: 376px;
	padding: 44px 60px 60px;
	background-color: rgba(255, 255, 255, 0.70);
	border-radius: 24px;
}
.home-about-card h2 {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	max-width: 380px;
	margin: 0 auto 16px !important;
	font-family: "Noto Serif JP", serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
}
.home-about-card h2 img {
	margin-right: 12px;
	vertical-align: middle;
}
.home-about-card > p:not(.link-circle-arrow) {
	margin: 0 !important;
	font-size: 14px;
	font-weight: 300;
	line-height: 26px;
}
.home-about-card .link-circle-arrow {
	margin: auto 0 0 !important;
	padding-top: 18px;
	font-size: 16px;
	line-height: 24px;
	text-align: center;
}
/* (max-width: 1094px) */
@media (max-width: 1094px) {
	.home-about-cards {
		gap: 24px;
	}
	.home-about-card {
		height: auto;
		min-height: 376px;
		padding: 44px 32px 60px;
	}
	.home-about-section .wp-block-cover__image-background {
		object-position: 55% center !important;
	}
}
/* (max-width: 991px) */
@media (max-width: 991px) {
	.home-about-cards {
		grid-template-columns: minmax(0, 1fr);
	}
	.home-about-card {
		height: auto;
		min-height: 0;
		padding: 44px 60px 48px;
	}
	.home-about-card h2 {
		font-size: 22px;
	}
	.home-about-cards > .wp-block-column:first-child .home-about-card h2 img {
		width: 32px;
		height: 32px;
		object-fit: contain;
	}
	.home-about-cards > .wp-block-column:nth-child(2) .home-about-card h2 img {
		width: 42px;
		height: 42px;
		object-fit: contain;
	}
	.home-about-card h2 img {
		margin-right: 10px;
	}
	.home-about-card .link-circle-arrow {
		align-self: stretch;
		width: 100%;
		max-width: none !important;
		text-align: center;
		font-size: 14px;
	}
	.home-about-card > p:not(.link-circle-arrow) {
		align-self: stretch;
		width: 100%;
		max-width: none !important;
	}
}
/* (max-width: 575px) */
@media (max-width: 575px) {
	.home-about-card {
		padding: 36px 24px 40px;
	}
	.home-about-card h2 {
		width: 100%;
		max-width: none;
		font-size: clamp(17px, 5vw, 20px);
	}
	.home-about-cards > .wp-block-column:first-child .home-about-card h2 img {
		width: 28px;
		height: 28px;
		margin-right: 8px;
		object-fit: contain;
	}
	.home-about-cards > .wp-block-column:nth-child(2) .home-about-card h2 img {
		width: 38px;
		height: 38px;
		margin-right: 4px;
		object-fit: contain;
	}
}
