main.service {
	overflow: visible;
	color: var(--front-color);
}

main.service h1 {
	margin-bottom: 0;
}

main.service .right-menu-link {
	position: fixed;
	top: 88px;
	right: 0;
	width: fit-content;
	z-index: 600;
	font-size: 0.9rem;
}

main.service .right-menu-link ul {
	padding: 0 4px;
}

main.service .right-menu-link ul li {
	list-style: none;
	padding: 0.6em 0;
}

main.service .right-menu-link ul li span {
	font-size: 1.2rem;
	font-weight: 700;
	display: inline-block;
	width: 1.8rem;
}

main.service .right-menu-link ul li::before {
	content: '';
	display: inline-block;
	width: 1.4rem;
	height: 0.6rem;
	background-image: url(../img/arrow.png);
	background-size: contain;
	background-repeat: no-repeat;
	vertical-align: middle;
	margin-right: 5px;
}

main.service h2 {
	font-size: 2.5vw;
}

main.service .h3-wrap,
main.service .h4-wrap {
	position: relative;
}

main.service h3 {
	margin: 4em 0 3em;
	line-height: 1.5;
}

main.service h3::after {
	position: absolute;
	left: -2.5em;
	bottom: -2.2em;
	content: '';
	display: block;
	width: 200px;
	height: 40px;
	background-image: url(../img/lineanime.gif);
	background-size: contain;
}

main.service h4 {
	margin: 3em 0 0.5em 1.1em;
	font-size: 1.2em;
	line-height: 1.3;
}

main.service h4::before {
	position: absolute;
	content: '';
	display: inline-block;
	width: 0.8em;
	height: 0.8em;
	background-image: url(../img/h4.webp);
	background-size: contain;
	top: 0.2em;
	left: 0;
}

main.service h2 span {
	display: inline-block;
}

main.service h3 span {
	display: inline;
}

main.service h3 span.strong {
	color: #008FFF;
	white-space: nowrap;
}

main.service h3 span.strong i {
	margin-right: 0.1em;
}


main.service .wrap {
	display: grid;
	grid-template-columns: 5fr 3fr;
	grid-gap: 2vw;
	margin-right: 24vw;
	margin-bottom: 10rem;
	padding-top: 100px;
}

main.service .side_content {
	position: sticky;
	top: 88px;
}

main.service .side .photo img {
	width: 100%;
	object-fit: cover;
}

main.service .side .subject {
	display: grid;
	grid-template-columns: 1fr 3fr;
	gap: 1vw;
	padding: 24px 16px;
}

main.service .side div.number {
	position: relative;
	margin: 0;
	top: -0.2rem;
	left: 0.8vw;
	font-family: var(--font-alphabet);
	line-height: 1em;
	font-size: 6vw;
}

main.service .side div.number::after {
	position: absolute;
	content: "";
	width: 1px;
	background: var(--front-color);
	border-radius: 3px;
	transform: rotate(45deg);
	top: -0.22em;
	left: 0.9em;
	height: 2.5em;
}

main.service .side div.subject_content {
	margin-left: 1vw;
	font-size: 1.4vw;
}

main.service .main .illust {
	margin: 4em 0;
}

main.service .main .illust img {
	width: 100%;
}

main.service .main .photo {
	margin: 0.5em 0;
}

main.service .main .photo img {
	width: 100%;
}

main.service .morelink_wrap {
	text-align: left;
	margin-top: 2em;
	font-size: 1.2em;
	font-weight: 700;
}

main.service .item_wrap {
	text-align: left;
	margin-top: 1em;
	font-size: 1em;
	font-weight: 500;
}

main.service .contactlink {
	display: inline-block;
	border-radius: 4px;
	padding: 8px 6px;
	line-height: 1.0;
}

main.service .wifi_contactbutton button {
	display: inline-block;
}

main.service .wifi_contactbutton p {
	display: inline-block;
	margin: 0 0.4em 0.3em 0;
	color: #008FFF;
}


@media(max-width: 768px) {
	main.service h1 {
		margin-bottom: 20%;
	}

	main.service h2 {
		font-size: 5vw;
	}

	main.service .right-menu-link {
		position: absolute;
		top: 24%;
		right: 0;
		font-size: 0.7rem;
	}

	main.service .right-menu-link ul li {
		padding: 2px 0;
	}

	main.service .wrap {
		grid-template-columns: 1fr;
		margin-right: 0;
		margin-bottom: 5rem;
		padding-top: 60px;
	}

	main.service .main_content {
		padding: 0 4vw;
	}

	main.service .main .illust {
		padding: 0 12vw;
	}

	main.service .side div.number {
		font-size: 12vw;
	}

	main.service .side div.subject_content {
		margin-left: 3vw;
		font-size: 3.5vw;
	}
}