:root {
	--max-width: 1000px;
	--slider-width: 540px;
}
#topPageWrap {
	background: url(../img/bg_wood02.png) repeat;
}
.inner {
	width: min(96%, var(--max-width));
	margin-inline: auto;
	container-type: inline-size;
}

.section01 {
	container-type: inline-size;
	width: 100%;
	background-position:
		center center,
		left top;
	background-repeat: no-repeat, repeat;
	margin-block-start: 16px;
}
.section01-inner {
	display: flex;
	gap: 16px;
}
.section01-left {
	width: min(100%, 540px);
}
ul.slider {
	max-width: initial;
	background: #000;
	img {
		width: 100%;
		display: grid;
		place-items: center;
	}
	.slick-prev,
	.slick-next {
		top: calc(100% + 20px);
		z-index: 1;
	}
	.slick-prev {
		left: 0;
	}
	.slick-next {
		right: 0;
	}
	.slick-dots {
		bottom: -30px;
	}
}
.slick-dotted.slick-slider {
	margin-bottom: 40px !important;
}
@container (max-width: 768px) {
	.section01-inner {
		flex-direction: column;
	}
}
@container (max-width: 480px) {
	.section01-inner {
		flex-direction: column;
	}
}
.contact {
	font-size: 12px;
	padding: 12px;
	background-color: #fff;
	box-shadow: 2px 2px 4px rgba(128, 128, 128, 0.5);
	box-sizing: border-box;
	border: 1px solid #ccc;
}
.news {
	width: max(100%, calc(100% - var(--slider-width)));
	padding: 24px;
	background-color: #fff;
	border: 1px solid #ccc;
	box-shadow: 2px 2px 4px rgba(128, 128, 128, 0.5);
	box-sizing: border-box;
	h2 {
		font-size: 1.4em;
		padding-bottom: 10px;
	}
}

.news-list li:nth-child(1) {
	border-top: 1px dotted #999;
}
.news-list li {
	padding: 14px 0 0.6em;
	border-bottom: 1px dotted #999;
}
.news-list li span {
	display: block;
}
.news-list li em {
	font-style: normal !important;
	line-height: 1.2em;
	position: relative;
	padding-left: 1em;
	display: block;
}
.news-list li em:before {
	position: absolute;

	left: 0;
	content: "▶";
	color: #e60012;
	font-size: 0.6em;
}
.news-list li a {
	color: #333;
	font-size: 14px;
	text-indent: -1em;
}
.news-list li a:hover {
	color: #e60012;
	text-decoration: underline;
}
.news-list li a i.fa-lock {
	color: #f8c203;
	padding-bottom: 4px;
	text-indent: 0.4em;
}
.news-list li a i.fa-file-pdf {
	color: #b00000;
	padding-left: 1.2em;
	padding-bottom: 0.2em;
}
.news-list li.new span:after {
	content: "NEW";
	margin-left: 10px;
	background: #e60012;
	color: #fff;
	font-weight: bold;
	border-radius: 4px;
	font-size: 1rem;
	padding: 0 4px;
}
.news-btn {
	display: block;
	width: 40%;
	margin: 16px auto 0;
	border-radius: 20px;
	text-align: center;
	color: #fff;
	background: #999;
}
.news-btn:hover {
	background: #e60012;
	color: #fff;
}

.section02 {
	margin-block: 24px;
}

.top__bnr-list {
	container-type: inline-size;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	img {
		width: 100%;
	}
}
@container (max-width: 480px) {
	.top__bnr-list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}

.section03-wrapper {
	container-type: inline-size;
}
.section03 {
	display: flex;
	gap: 16px;
	padding-bottom: 40px;
}
@container (max-width: 768px) {
	.section03 {
		flex-direction: column;
	}
}

.section03-left {
	width: 80%;
}
@container (max-width: 768px) {
	.section03-left {
		width: 100%;
	}
}
.section03-right {
	width: 20%;
}
@container (max-width: 768px) {
	.section03-right {
		width: 100%;
	}
}

.top__bnr-list02 {
	display: flex;
	flex-direction: column;
	gap: 16px;
	img {
		width: 100%;
	}
}
@container (max-width: 768px) {
	.top__bnr-list02 {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}
}
@container (max-width: 480px) {
	.top__bnr-list02 {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}

.top__tab-menu {
	position: relative;
	z-index: 0;
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: auto;
	margin-block-end: 0;
	border-bottom: 1px solid #ccc;

	li {
		position: relative;
		top: 1px;
		display: grid;
		grid-template-rows: subgrid;
		text-align: center;
	}
	li[data-active="true"] {
		border-bottom: none;
	}

	a {
		font-size: clamp(1rem, 0.857rem + 0.71vw, 1.5rem);
		line-height: 1.4;
		display: grid;
		place-items: center;
		color: #444;
		font-weight: bold;
		padding: 1.2em 1em;
		border-radius: 8px 8px 0 0;
		border: 1px solid #ccc;
		text-decoration: none;
		box-shadow: 2px 2px 4px rgba(128, 128, 128, 0.5);
	}
	a[data-active="true"] {
		background: #ffe9ca;
		border-bottom: 1px solid #ffe9ca;
	}
	a[data-active="true"][data-id="hoken"] {
		background: #ccecf8;
		border-bottom: 1px solid #ccecf8;
	}
	a:not([data-active="true"]) {
		background: #eee;
		color: #777;
	}
	a:hover {
		color: #444;
		background-color: #ffe9ca;
	}
	a:hover[data-id="hoken"] {
		background-color: #ccecf8;
	}
}
.tab-contents {
	position: relative;
	z-index: 1;
	border: 1px solid #ccc;
	border-top: none;
	box-shadow: 2px 4px 4px rgba(128, 128, 128, 0.5);
	padding: 24px 20px;
	container-type: inline-size;
	background: #ffe9ca;
	border-radius: 0 0 8px 8px;
}

.tab-contents[data-id="hoken"] {
	background: #ccecf8;
}

.tab-contents[data-active="active"] {
	display: block;
}
.tab-contents[data-active="false"] {
	display: none;
}
.top__bnt-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: auto;
	gap: 16px;

	a {
		font-size: clamp(1rem, 0.857rem + 0.71vw, 1.5rem);
		display: flex;
		align-items: center;
		gap: 1em;
		width: 100%;
		min-height: 80px;
		border: #f1eee7 4px solid;
		box-shadow: 2px 2px 4px rgba(128, 128, 128, 0.7);
		border-radius: 4px;
		padding: 0 1em;
		color: #333;
		font-weight: bold;
		text-decoration: none;
		line-height: 1.2;
		background-color: #fff;
	}
	a:hover {
		box-shadow: 1px 1px 2px rgba(128, 128, 128, 0.5);
	}
	.icon {
		max-width: 48px;
		margin-right: auto;
		img {
			width: 100%;
		}
	}
	@container (max-width: 480px) {
		.icon {
			max-width: 30%;
		}
	}
	.text {
		width: calc(100% - 48px);
	}
	@container (max-width: 480px) {
		.text {
			width: calc(100% - 20%);
		}
	}
}
@container (max-width: 768px) {
	.top__bnt-list {
		grid-template-columns: repeat(3, 1fr);
	}
}
@container (max-width: 480px) {
	.top__bnt-list {
		grid-template-columns: repeat(2, 1fr);
	}
}
