@charset "UTF-8";


.mainv {
	margin-bottom: 66px;

	picture {
		display: block;

		img {
			display: block;
			width: 100%;
			height: auto;
		}
	}

	@media (width <=767px) {
		margin-bottom: 55px;
	}
}

.home-consult {
	margin-bottom: 100px;

	.title-level02 {
		margin-bottom: 50px;
	}

	.link-btn {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;

		>a {
			display: grid;
			place-items: center;
			font-family: var(--font-zen-maru-gothic);
			font-weight: 700;
			min-height: 110px;
			color: #ffffff;
			text-align: center;
			border-radius: 200px;
			background: url(../images/common/arrow02.svg) no-repeat center right 30px / 18px auto;
			border: 7px solid rgb(255 255 255 / 0.18);
			transition: .3s ease-in-out;

			&:hover {
				filter: brightness(0.925);
			}


			.large {
				position: relative;
				padding-left: 48px;

				&:before {
					content: "";
					display: inline-block;
					width: 33px;
					aspect-ratio: 1;
					background: url(../images/common/icon-tel.png) no-repeat center / contain;
					position: absolute;
					top: 50%;
					left: 0;
					transform: translateY(calc(-50% + 1px));
				}
			}

			&.type01 {
				background-color: var(--color-primary);
				font-size: 1.25rem;

				.large {
					display: block;
					font-size: 1.25em;
					margin-top: 4px;
				}
			}

			&.type02 {
				background-color: var(--color-primary);
				font-size: 1.4375rem;

				&:hover {
					filter: brightness(0.85);
				}

				.inner {
					display: flex;
					justify-content: center;
					align-items: center;
					flex-wrap: wrap;
					gap: 0 20px;

					.large {
						display: block;
						font-size: 1.304347em;
						position: relative;
					}
				}
			}

			&.tel {
				background-color: #F09054;
			}

			&.line {
				background-color: #4CC764;

				.inner {
					padding-right: 30px;

					span:before {
						aspect-ratio: 33 / 31px;
						background-image: url(../images/common/icon-line.png);
					}
				}
			}

			&.search {
				grid-column: span 2;
				background-color: #5AABE8;

				.inner span:before {
					background-image: url(../images/common/icon-search.png);
				}
			}
		}
	}

	@media (width <=1023px) {
		.link-btn {
			grid-template-columns: 1fr;
			gap: 15px 0;

			>a {
				min-height: 70px;
				padding-inline: 60px;

				&.search {
					grid-column: span 1;
				}
			}
		}
	}

	@media (width <=767px) {
		margin-bottom: 70px;

		.title-level02 {
			margin-bottom: 35px;
		}

		.link-btn {
			>a {
				border-width: 5px;
				background-size: 11px auto;
				background-position: center right 17px;
				padding-inline: 30px;

				.large {
					padding-left: 28px;

					&:before {
						width: 18px;
					}
				}

				&.type01,
				&.type02 {
					font-size: 0.8rem;

					.large {
						font-size: 1.5em;
						margin-top: 0;
					}
				}

				&.line {
					.inner {
						padding-right: 0;
					}
				}
			}
		}
	}
}

.home-news {
	margin-bottom: 100px;

	.news-box {

		&:has(.link-archive) {
			.news-list {
				margin-bottom: 50px;
			}
		}
	}

	@media (width <=1023px) {
		.title-level02 {
			margin-bottom: 30px;
		}
	}

	@media (width <=767px) {
		margin-bottom: 75px;
	}
}

.home-screening {
	background: url(../images/home/self-texture.jpg) repeat top left / 200px auto;
	margin-bottom: 100px;
	overflow-x: clip;
	position: relative;

	.container-inner {
		padding-block: 100px;
		position: relative;

		&:after {
			content: "";
			display: inline-block;
			width: 210px;
			aspect-ratio: 210 / 112;
			background: url(../images/home/kakitsubata.png) no-repeat center / contain;
			pointer-events: none;
			position: absolute;
			right: -94px;
			bottom: -63px;
		}
	}


	.title-level02 {
		margin-bottom: 50px;
	}

	.self-check {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 0 30px;
		justify-content: center;

		>a {
			display: block;
			background-color: #ffffff;
			width: min(100%, 300px);
			margin-inline: auto;
			padding: 28px 15px 33px;
			border-radius: 20px;
			text-align: center;
			position: relative;
			box-shadow: 0px 4px 4px rgb(0 0 0 / .15);
			transition: all .3s;

			&:hover {
				box-shadow: 0px 10px 10px rgb(0 0 0 / .15);
				transform: translateY(-10px);
			}


			img {
				display: block;
				margin: 0 auto 20px;
			}

			.label {
				display: inline-block;
				font-family: var(--font-zen-maru-gothic);
				font-size: 1.625rem;
				font-weight: 700;
				padding-right: 40px;
				color: var(--color-primary);
				text-align: center;
				position: relative;

				&:after {
					content: "";
					display: inline-block;
					width: 28px;
					aspect-ratio: 1;
					border-radius: 50%;
					background: url(../images/common/arrow02-2.svg) no-repeat center / 14px auto;
					background-color: var(--color-primary);
					position: absolute;
					right: 0;
					top: 50%;
					transform: translateY(-50%);
				}
			}

			&:before,
			&:after {
				content: "";
				width: 34px;
				aspect-ratio: 1;
				background-color: var(--color-primary);
				clip-path: path("M0 15C0 6.71573 6.71573 0 15 0H34L0 34V15Z");
				position: absolute;
				top: 6px;
				left: 6px;
			}

			&:after {
				inset: auto 6px 6px auto;
				transform: rotate(180deg);
			}



			&.alcohol {
				.label {
					color: var(--color-alcohol);

					&:after {
						background-color: var(--color-alcohol);
					}
				}

				&:before,
				&:after {
					background-color: var(--color-alcohol);
				}
			}

			&.gambling {
				.label {
					color: var(--color-gambling);

					&:after {
						background-color: var(--color-gambling);
					}
				}

				&:before,
				&:after {
					background-color: var(--color-gambling);
				}
			}
		}
	}

	@media (width <=1023px) {
		.self-check {
			max-width: 620px;
			grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
			gap: 20px;
			margin-inline: auto;

			>a {
				display: grid;
				grid-template-columns: auto 1fr;
				padding: 15px 20px 15px 30px;
				gap: 0 20px;
				border-radius: 10px;

				&:hover {
					box-shadow: 0px 8px 8px rgb(0 0 0 / .15);
					transform: translateY(-5px);
				}

				img {
					width: 75px;
					margin: 0;
				}

				.label {
					width: 100%;
					font-size: 1.25rem;
					justify-self: start;
					align-self: center;
					text-align: left;
				}

				&:before,
				&:after {
					width: 25px;
					clip-path: path("M0 7.5C0 3.36 3.36 0 7.5 0H25L0 25V7.5Z");
					top: 5px;
					left: 5px;
				}

				&:after {
					inset: auto 5px 5px auto;
				}
			}
		}
	}

	@media (767px < width <=1023px) {
		.container-inner:after {
			width: 210px;
			right: 12px;
			bottom: -63px;
		}

		.self-check>a:nth-of-type(3) {
			grid-column: span 2;
		}
	}

	@media (width <=767px) {
		padding-block: 50px 60px;
		margin-bottom: 60px;

		.container-inner {
			padding: 0;

			&:after {
				width: 150px;
				right: -8px;
				bottom: -99px;
			}
		}

		.title-level02 {
			margin-bottom: 35px;
		}

		.self-check {
			grid-template-columns: 1fr;
		}
	}
}


.home-definition {
	display: grid;
	gap: 0 6.40625dvw;
	background-color: var(--color-bg-light-blue);
	padding: 100px min(8.59375dvw, 110px);
	margin-bottom: 100px;
	border-radius: 50px;

	h2 {
		font-family: var(--font-zen-maru-gothic);
		font-weight: 700;
		font-size: 2.5rem;
		margin-bottom: 30px;
	}

	.text {
		font-family: var(--font-zen-maru-gothic);
		font-size: 1.5625rem;
		line-height: 2.0;
		margin-bottom: 30px;
	}

	@media (width >=1024px) {
		width: min(90vw, 1180px);
		grid-template-columns: 350px 1fr;
		grid-template-rows: auto auto 1fr;

		img {
			grid-column: 2;
			grid-row: 1 / 4;
			align-self: center;
			width: min(100%, 528px);
		}
	}

	@media (width <=1023px) {
		grid-template-columns: 1fr;
		padding: 45px 5vw 35px;
		text-align: center;
		margin-bottom: 55px;

		h2 {
			font-size: 1.5rem;
			margin-bottom: 20px;
		}

		.text {
			font-size: 1rem;
			margin-bottom: 35px;
		}

		img {
			display: block;
			width: 285px;
			margin: 0 auto 35px;
		}
	}
}

.home-addiction-types {
	margin-bottom: 120px;

	.title-level02 {
		margin-bottom: 60px;
	}

	.search-box {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 30px;

		>a {
			display: block;
			border-radius: 20px;
			background-color: var(--color-primary);
			border: 4px solid var(--color-primary);
			overflow-x: clip;
			box-shadow: 0px 4px 4px rgb(0 0 0 / .15);
			transition: all .3s;

			&:hover {
				box-shadow: 0px 10px 10px rgb(0 0 0 / .15);
				transform: translateY(-10px);
			}

			h3 {
				display: grid;
				place-items: center;
				height: 120px;
				padding: 5px 8px;
				font-family: var(--font-zen-maru-gothic);
				font-size: 1.875rem;
				font-weight: 700;
				color: #ffffff;
				line-height: 1.3;
				text-align: center;
				position: relative;

				&:after {
					content: "";
					display: inline-block;
					width: 28px;
					aspect-ratio: 1;
					background: url(../images/common/arrow01-transparent.svg) no-repeat center / contain;
					position: absolute;
					bottom: -23px;
					inset-inline: 0;
					margin-inline: auto;
					z-index: 2;
				}
			}

			.image-area {
				text-align: center;
				padding: 70px 15px 33px;
				background-color: #ffffff;
				border-radius: 0 0 16px 16px;
				background: url(../images/home/search-texture.jpg) repeat top left / 200px auto;
				position: relative;

				&:before {
					content: "";
					display: block;
					width: 46.666666%;
					aspect-ratio: 140 / 40;
					background: url(../images/common/round.svg) no-repeat center / contain;
					position: absolute;
					top: 0;
					inset-inline: 0;
					margin-inline: auto;
				}
			}

			&.alcohol {
				border-color: var(--color-alcohol);
				background-color: var(--color-alcohol);
				position: relative;

				.image-area:before {
					background-image: url(../images/common/round-blue.svg);
				}

				&:before {
					content: "";
					display: block;
					width: 80px;
					aspect-ratio: 80 / 121;
					background: url(../images/home/konohazuku-standing.png) no-repeat center / contain;
					position: absolute;
					top: 0;
					left: 5px;
					transform: translateY(calc(-100% + 11px));
				}
			}

			&.gambling {
				border-color: var(--color-gambling);
				background-color: var(--color-gambling);

				.image-area:before {
					background-image: url(../images/common/round-yellow.svg);
				}
			}
		}
	}

	@media (width <=1023px) {
		margin-bottom: 70px;

		.search-box {
			max-width: 625px;
			margin-inline: auto;
			grid-template-columns: repeat(auto-fit, minmax(min(100%, 305px), 1fr));
			gap: 15px;

			>a {
				display: grid;
				justify-content: space-between;
				grid-template-columns: 154px 1fr;
				height: 180px;
				margin-inline: auto;
				border-width: 3px;

				&:hover {
					box-shadow: 0px 8px 8px rgb(0 0 0 / .15);
					transform: translateY(-5px);
				}

				h3 {
					font-size: 1.25rem;
					height: 100%;
					padding-bottom: 35px;

					&:after {
						bottom: 27px;
					}
				}

				.image-area {
					padding: 10px;
					display: grid;
					place-items: center;
					border-radius: 0 16px 16px 0;

					&:before {
						content: none;
					}

					img {
						width: 125px;
					}
				}
			}
		}
	}

	@media (767px < width <=1023px) {
		.search-box>a:nth-of-type(3) {
			grid-column: span 2;
		}
	}

	@media (width <=767px) {
		.search-box {
			grid-template-columns: 1fr;

			>a {
				&.alcohol:before {
					width: 45px;
				}
			}
		}
	}
}

.supporters-medical {
	position: relative;
	text-align: center;

	.container-inner {
		margin-bottom: 20px;
	}

	.text {
		font-size: 1.25rem;
		line-height: 2.0;
		margin-bottom: 40px;
	}

	&:after {
		content: "";
		display: block;
		width: 100%;
		aspect-ratio: 1280 / 190;
		background-color: var(--color-bg-light-blue);
		-webkit-mask: url("../images/home/mask-bg.svg") no-repeat center / contain;
		mask: url("../images/home/mask-bg.svg") no-repeat center / contain;
	}

	@media (width <=767px) {
		.text {
			font-size: 1rem;
		}
	}
}


.related-links {
	background-color: var(--color-bg-light-blue);
	overflow-x: clip;
	position: relative;

	&:after {
		content: "";
		display: block;
		width: 180px;
		aspect-ratio: 180 / 76;
		background: url(../images/home/konohazuku_fly.png) no-repeat center / contain;
		position: absolute;
		top: -7.03125dvw;
		right: 21.875dvw;
	}

	.container-inner {
		padding-block: 60px 30px;
		position: relative;
		z-index: 2;

		&:before,
		&:after {
			content: "";
			display: block;
			aspect-ratio: 190 / 84;
			background: url(../images/common/cloud.svg) no-repeat center / cover;
			position: absolute;
			z-index: -1;
		}

		&:before {
			width: 150px;
			top: 235px;
			right: -110px;
		}

		&:after {
			width: 190px;
			top: 0;
			left: -70px;
		}
	}

	.title-level02 {
		margin-bottom: 30px;
	}

	.c_link-box {
		min-height: 210px;
		align-content: start;
	}

	@media (width <=1023px) {
		.container-inner {
			&:before {
				top: auto;
				bottom: 0;
				right: 0;
			}
		}
	}

	@media (width <=767px) {
		&:after {
			width: 85px;
			right: 9.333333dvw;
			top: -8.533333dvw;
		}

		.container-inner {
			&:before {
				width: 110px;
				bottom: 8px;
			}

			&:after {
				width: 100px;
				top: 12px;
				left: 10px;
			}
		}

		.c_link-box {
			min-height: auto;
			margin-bottom: 40px;
		}
	}
}

footer {
	background-color: var(--color-bg-light-blue);
}

header {
	@media (width < 768px) {
		padding-block: 3.733333dvw;

		.h-logo a img {
			max-width: none;
		}
	}
}