@charset "UTF-8";

/* ヒーロー */

.hero {
	position: relative;
	margin-top: 98px;
}

.hero::before {
	content: "";
	position: absolute;
	top: -275px;
	right: -196px;
	background: url(../img/circle-g.webp) no-repeat;
	background-size: contain;
	width: 852px;
	height: 827px;
}

.hero .splide__slide img {
	width: 100%;
}

.hero-text {
	position: absolute;
	top: 310px;
	left: 216px;
	writing-mode: vertical-rl;
}

.hero-text span {
	background: #fff;
	border-radius: 3px;
	clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
	display: block;
	height: max-content;
}

.hero-text span:first-child {
	margin-left: 9px;
}

.hero-text p {
	font-size: 35px;
	font-weight: bold;
	letter-spacing: 9px;
	padding: 13px 5px 7px;
	overflow: hidden;
	white-space: nowrap;
	clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
	background: linear-gradient(180deg, #89B84D 0%, #D0C900 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.character-hero {
	display: flex;
	align-items: flex-start;
	position: absolute;
	bottom: -43px;
	right: 102px;
}

.character-hero p {
	background: #fff;
	border: 3px solid #508F02;
	border-radius: 30px;
	box-sizing: border-box;
	color: #508F02;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.92;
	letter-spacing: .05em;
	text-align: center;
	padding: 18px;
	margin: 28px -20px 0 0;
	width: 188px;
}

.character-hero>div {
	position: relative;
	width: 141px;
	height: 212px;
}

.character-hero img:nth-child(1) {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.character-hero img:nth-child(2) {
	position: absolute;
	bottom: 18.34px;
	right: -4.47px;
	width: 47px;
	height: 25px;
	z-index: 0;
	animation: tail 3s infinite 0s;
	transform-origin: top left;
}

@keyframes tail {

	0%,
	100% {
		transform: rotate(-10deg);
	}

	50% {
		transform: rotate(10deg);
	}
}

/* 共通 */

h2 {
	color: #508F02;
	display: flex;
	flex-flow: column;
	position: relative;
	padding-left: 39px;
}

h2 span {
	line-height: 1 !important;
}

h2::before {
	content: "";
	background: linear-gradient(180deg, #A8D66D 0%, #F8F846 100%);
	border-radius: 24px 24px 0 0;
	position: absolute;
	left: 0;
	width: 24px;
	height: 62px;
}

/* about us */

.about {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 110px;
	position: relative;
	margin: 152px auto 0;
}

.about img {
	width: 100%;
}

.about h2 {
	margin-bottom: 48px;
}

.about::after {
	content: "";
	background: url(../img/circle-y.webp) no-repeat;
	position: absolute;
	top: -441px;
	left: -418px;
	width: 1162px;
	height: 1128px;
	z-index: -1;
}

.about a {
	background: #fff;
	border-radius: 10px;
	display: inline-block;
	margin-top: 40px;
	padding: 12px 57px;
	position: relative;
	overflow: hidden;
	transition: .3s;
}

.about a:hover {
	background: transparent;
}

.about a::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	background: url(../img/noise-btn.webp) no-repeat;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: .3s;
	z-index: 1;
}

.about a:hover::after {
	opacity: 1;
}

.about a:hover span {
	color: #fff;
}

.about a:hover span::before {
	background: #fff;
}

.about a span {
	color: #508F02;
	padding-left: 18px;
	position: relative;
	z-index: 2;
}

.about a span::before {
	content: "";
	background: #508F02;
	border-radius: 50%;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 0;
	width: 8px;
	height: 8px;
}

/* 大事にしていること */

.value {
	position: relative;
	margin: 250px auto 0;
}

.value::after {
	content: "";
	position: absolute;
	right: -287px;
	bottom: -287px;
	background: url(../img/circle-g.webp) no-repeat;
	background-size: contain;
	width: 618px;
	height: 600px;
	z-index: -1;
}

.value .text-col {
	display: flex;
	align-items: flex-end;
	gap: 50px;
	max-width: 920px;
	margin: 0 auto;
}

.value .text-col h2 {
	flex-shrink: 0;
}

.value .col {
	display: flex;
	justify-content: center;
	margin: 60px auto 0;
	position: relative;
	z-index: 1;
}

.value .col .value-content {
	flex-shrink: 0;
	cursor: pointer;
	position: relative;
	margin-left: -50px;
	width: 330px;
	height: 332px;
}

.value .col .value-content:first-child {
	margin-left: 0;
}

.value .col .front-content,
.value .col .back-content {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	transition: transform 0.8s;
}

.value .col .front-content {
	background: #fff;
	border-radius: 50%;
	transform: rotateX(0deg);
}

.value .col .value-content:hover .front-content,
.value .col .value-content.is-active .front-content {
	transform: rotateX(180deg);
}

.value .col .back-content {
	background: url(../img/top/back-content.png) no-repeat;
	border-radius: 50%;
	transform: rotateX(180deg);
}

.value .col .value-content:hover .back-content,
.value .col .value-content.is-active .back-content {
	transform: rotateX(0deg);
}

.value .col .back-content p {
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: calc(1em * 2.5 * 5);
	margin-top: 70px;
}

.value .col h3 {
	color: #508F02;
	font-size: 23px;
	line-height: 1.34;
	letter-spacing: .05em;
	text-align: center;
}

.value .anime_1 {
	position: relative;
	margin: 91px auto 0;
	width: 134px;
	height: 116px;
}

.value .col img {
	display: block;
	object-fit: contain;
}

.value .anime_1 img {
	width: 100%;
	height: 100%;
}

.value .anime_1:after {
	content: "";
	position: absolute;
	top: -37px;
	left: 50%;
	transform: translateX(-50%);
	background: url(../img/top/value_1_anime.webp) no-repeat;
	background-size: contain;
	width: 81px;
	height: 76px;
	z-index: -1;
	animation: fade 3s infinite 0s;
}

@keyframes fade {
	0% {
		opacity: 0;
		animation-timing-function: ease-in;
	}

	8% {
		opacity: 1;
		animation-timing-function: ease-out;
	}

	20% {
		opacity: 1;
		transform: translateX(-50%) scale(1.1);
	}

	60%,
	100% {
		opacity: 0;
		transform: translateX(-50%) scale(1.2);
	}
}

.value .anime_2 {
	position: relative;
	display: flex;
	align-items: flex-end;
	margin: 88px auto 0;
	width: 133px;
	height: 115px;
}

.value .anime_2 img {
	width: 100%;
	height: 100%;
}

.value .anime_2::before {
	content: "";
	position: absolute;
	top: -12px;
	left: -36px;
	background: url(../img/top/value_2_anime_l.webp) no-repeat;
	background-size: contain;
	width: 51px;
	height: 45px;
	animation: comment-l 5s infinite 0s;
}

.value .anime_2::after {
	content: "";
	position: absolute;
	top: -28px;
	right: -17px;
	background: url(../img/top/value_2_anime_r.webp) no-repeat;
	background-size: contain;
	width: 60px;
	height: 69px;
	animation: comment-r 5s infinite 0s;
	animation-delay: 2s;
}

@keyframes comment-l {
	0% {
		transform: translate(0, 0);
		opacity: 1;
	}

	20% {
		transform: translate(-10px, -10px);
	}

	100% {
		transform: translate(-10px, -10px);
		opacity: 0;
	}
}

@keyframes comment-r {
	0% {
		transform: translate(0, 0);
		opacity: 1;
	}

	20% {
		transform: translate(10px, -10px);
	}

	70% {
		transform: translate(10px, -10px);
		opacity: 0;
	}

	100% {
		transform: translate(10px, -10px);
		opacity: 0;
	}
}

.value .anime_3 {
	position: relative;
	margin: 80px auto 0;
	width: 116px;
	height: 126px;
}

.value .anime_3:after {
	content: "";
	position: absolute;
	top: -8px;
	right: -6px;
	background: url(../img/top/value_3_anime.webp) no-repeat;
	background-size: contain;
	width: 31px;
	height: 42px;
	animation: fade-3 3s infinite 0s;
}

.value .anime_3 img {
	width: 100%;
	height: 100%;
}

@keyframes fade-3 {
	0% {
		opacity: 0;
		animation-timing-function: ease-in;
	}

	8% {
		opacity: 1;
		animation-timing-function: ease-out;
	}

	20% {
		opacity: 1;
		transform: scale(1.1);
	}

	40%,
	100% {
		opacity: 0;
		transform: scale(1.2);
	}
}

.value .anime_4 {
	position: relative;
	margin: 62px auto 0;
	width: 216px;
	height: 144px;
}

.value .anime_4 .deco_1 img,
.value .anime_4 .deco_2 img {
	position: absolute;
}

.value .anime_4 .deco_1 img:nth-child(1) {
	top: -10px;
	left: 63px;
	animation: yurayura 1s infinite 0s;
	width: 23px;
	height: 27px;
}

.value .anime_4 .deco_1 img:nth-child(2) {
	bottom: 52px;
	right: 22px;
	animation: yurayura 1s infinite 0s;
	width: 23px;
	height: 23px;
}

.value .anime_4 .deco_2 img:nth-child(1) {
	top: 18px;
	left: 0;
	animation: yurayura-2 1s infinite 0s;
	width: 33px;
	height: 31px;
}

.value .anime_4 .deco_2 img:nth-child(2) {
	top: 30px;
	right: 0;
	animation: yurayura-2 1s infinite 0s;
	width: 28px;
	height: 25px;
}

@keyframes yurayura {

	0%,
	100% {
		transform: rotate(10deg);
	}

	50% {
		transform: rotate(-10deg);
	}
}

@keyframes yurayura-2 {

	0%,
	100% {
		transform: rotate(-10deg);
	}

	50% {
		transform: rotate(10deg);
	}
}

.value .anime_4>img {
	margin-left: 10px;
	width: 157px;
	height: 144px;
}


/* サービス */

.service {
	margin: 170px auto 0;
	position: relative;
	max-width: 1167px;
}

.service>h2 {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 920px;
}

.service>p {
	margin: 30px auto 0;
	max-width: 920px;
}

.service .col {
	display: flex;
	gap: 18px;
	max-width: 1167px;
	margin: 33px auto 0;
}

.service .col>div {
	position: relative;
	width: 377px;
	height: 480px;
	overflow: hidden;
	text-align: center;
}

.service .col>div>a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.service .col>div:hover .service-btn {
	background: #fff;
}

.service .col>div:hover .service-btn span {
	color: #508F02;
}

.service .col>div:hover .service-btn span::before {
	background: #508F02;
}

.service .col>div::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	background: url(../img/top/service-cover.webp);
	opacity: .7;
	width: 100%;
	height: 100%;
	transition: .3s;
}

.service .col>div:hover::before {
	background: url(../img/top/service-hover.webp);
	opacity: .7;
}

.service .col>div:nth-child(1) {
	background: url(../img/top/service_1.webp) no-repeat;
	border-radius: 80px 0 0 80px;
}

.service .col>div:nth-child(2) {
	background: url(../img/top/service_2.webp) no-repeat;
}

.service .col>div:nth-child(3) {
	background: url(../img/top/service_3.webp) no-repeat;
	border-radius: 0 80px 80px 0;
}

.service .col>div div {
	padding-top: 133px;
}

.service .col>div:nth-child(2) div {
	padding: 133px 50px 0;
}

.service .col>div:nth-child(3) div {
	padding: 133px 40px 0;
}

.service .col h3,
.service .col p,
.service .col a span {
	color: #fff;
	position: relative;
}

.service .col p {
	margin-top: 24px;
	height: calc(1em * 1.7 * 4);
}

.service .col .service-btn {
	border: 1px solid #fff;
	border-radius: 10px;
	display: inline-block;
	padding: 8px 45px;
	position: relative;
	margin-top: 18px;
}

.service .col .service-btn span {
	position: relative;
	padding-left: 18px;
}

.service .col .service-btn span::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	background: #fff;
	border-radius: 50%;
	width: 8px;
	height: 8px;
}

.character-service {
	display: flex;
	align-items: flex-end;
	position: absolute;
	bottom: -82px;
	right: 26px;
}

.character-service p {
	background: #fff;
	border: 2px solid #508F02;
	border-radius: 30px;
	box-sizing: border-box;
	color: #508F02;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.92;
	letter-spacing: .05em;
	text-align: center;
	padding: 34px 0 28px;
	margin: 0 -17px 2px 0;
	width: 138px;
}

.character-service>div {
	position: relative;
	width: 116px;
	height: 176px;
}

.character-service img:nth-child(1) {
	width: 100%;
	height: 100%;
}

.character-service img:nth-child(2) {
	position: absolute;
	left: 8.84px;
	bottom: 38.58px;
	width: 26px;
	height: 40px;
	animation: hand 3s infinite 0s;
	transform-origin: bottom center;
}

@keyframes hand {

	0%,
	100% {
		transform: rotate(-15deg);
	}

	50% {
		transform: rotate(10deg);
	}
}

/* サイト内リンク */

.links {
	display: flex;
	gap: 42px;
	margin: 240px auto 147px;
	max-width: 1167px;
	position: relative;
}

.links::after {
	content: "";
	position: absolute;
	left: -781px;
	top: -105px;
	background: url(../img/circle-y.webp) no-repeat;
	background-size: contain;
	width: 948px;
	height: 920px;
	z-index: -1;
}

.links div {
	border-radius: 70px;
	position: relative;
	overflow: hidden;
	transition: .3s;
}

.links div:hover {
	opacity: .7;
}

.links div b {
	color: #fff;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 35px;
}

.links div a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.links div img {
	transition: .3s;
}

.links div:hover img {
	transform: scale(1.1);
}

/* フッター調整 */
@media screen and (max-width: 1300px) {
	.links {
		margin-bottom: 364px;
	}
}

/* タブレット */
@media screen and (max-width: 1140px) {

	/* ヒーロー tab */

	.hero::before {
		top: -171px;
		right: -160px;
		width: 638px;
		height: 619px;
	}

	.hero-text {
		top: 176px;
		left: 40px;
	}

	.character-hero {
		right: 40px;
		bottom: -16px;
	}

	/* わたしたちについて tab */
	.about {
		flex-flow: column-reverse;
		gap: 96px;
		margin: 74px auto 0;
	}

	.about::after {
		background-size: contain;
		top: 50%;
		transform: translateY(-50%);
		left: -435px;
		width: 787px;
		height: 764px;
	}

	/* 大事にしていること tab */
	.value {
		margin: 120px auto 0;
	}

	.value::after {
		right: -250px;
		bottom: -440px;
	}

	.value .text-col {
		align-items: flex-start;
		flex-flow: column;
		gap: 32px;
	}

	.value .col {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
		margin: 52px auto 0;
		width: 686px;
	}

	.value .col .value-content {
		margin-left: 0;
	}

	/* サービス tab */
	.service {
		margin: 116px auto 0;
	}

	.service .col {
		flex-flow: column;
		gap: 8px;
	}

	.service .col>div {
		width: 100%;
		height: 300px;
	}

	.service .col>div:nth-child(1) {
		background: url(../img/top/service_1_tab.webp) no-repeat;
		background-size: cover;
		border-radius: 50px 50px 0 0;
	}

	.service .col>div:nth-child(2) {
		background: url(../img/top/service_2_tab.webp) no-repeat;
		background-size: cover;
	}

	.service .col>div:nth-child(3) {
		background: url(../img/top/service_3_tab.webp) no-repeat;
		background-size: cover;
		border-radius: 0 0 50px 50px;
	}

	.service .col>div div {
		margin: 0 auto;
		max-width: 316px;
		padding: 49px 0 0;
	}

	.service .col>div:nth-child(2) div {
		padding: 41px 0 0;
	}

	.service .col>div:nth-child(3) div {
		padding: 43px 0 0;
	}

	.service .col p {
		margin-top: 13px;
	}

	.service .col .service-btn {
		margin-top: 3px;
	}

	.character-service {
		right: -3px;
		bottom: -80px;
	}

	/* サイト内リンク tab */
	.links {
		flex-flow: column;
		gap: 8px;
		margin: 145px auto 257px;
	}

	.links div {
		border-radius: 50px;
	}

	.links div img {
		width: 100%;
	}

	.links div b {
		right: 56px;
	}

	.links::after {
		top: auto;
		bottom: -273px;
		left: -320px;
		width: 680px;
		height: 680px;
	}
}

/* sp */
@media screen and (max-width: 767px) {

	/* 共通 */
	.heading-l {
		font-size: 30px;
	}

	h2 {
		padding-left: 26px;
	}

	h2::before {
		border-radius: 18px 18px 0 0;
		width: 18px;
		height: 46px;
	}

	/* ヒーロー sp */

	.hero::before {
		top: 0;
		right: -58px;
		width: 244px;
		height: 237px;
	}

	.hero-text {
		top: 130px;
		left: 32px;
	}

	.character-hero p {
		display: none;
	}

	.character-hero>div {
		width: 89px;
		height: 134px;
	}

	.character-hero img:nth-child(2) {
		bottom: 11.59px;
		right: -2.83px;
		width: 29px;
		height: 16px;
	}

	/* about sp */
	.about {
		margin: 40px auto 0;
	}

	.about::after {
		left: -120px;
		width: 244px;
		height: 237px;
	}

	.about h2 {
		margin-bottom: 26px;
	}

	.about p {
		line-height: 1.68;
		margin-top: calc(1em + 5.44px);
	}

	.about a {
		display: block;
		margin: 40px auto 0;
		max-width: max-content;
	}

	.about img {
		width: 100%;
	}

	/* 大事にしていること sp */
	.value {
		margin: 85px auto 0;
	}

	.value::after {
		right: -120px;
		bottom: -30px;
		width: 244px;
		height: 237px;
	}

	.value .col {
		gap: 3px;
		width: 343px;
	}

	.value .col .value-content {
		width: 170px;
		height: 170px;
	}

	.value .col h3 {
		font-size: 13px;
		line-height: 1.38;
	}

	.value .anime_1 {
		margin: 38px auto 0;
		width: 76px;
		height: 65px;
	}

	.value .anime_1 img {
		width: 76px;
		height: 65px;
	}

	.value .anime_1:after {
		top: -21px;
		width: 45px;
		height: 43px;
	}

	.value .anime_2 {
		margin: 43px auto 0;
		width: 69px;
		height: 59px;
	}

	.value .anime_2::before {
		top: -2px;
		left: -16px;
		width: 26px;
		height: 22px;
	}

	.value .anime_2::after {
		top: -8px;
		right: -7px;
		width: 24px;
		height: 35px;
	}

	.value .anime_3 {
		margin: 30px auto 0;
		width: 67px;
		height: 73px;
	}

	.value .anime_3:after {
		top: -4.65px;
		right: -3.49px;
		width: 18px;
		height: 24px;
	}

	.value .anime_4 {
		margin: 25px auto 0;
		width: 115px;
		height: 82px;
	}

	.value .anime_4>img {
		margin-left: 5px;
		width: 84px;
		height: 77px;
	}

	.value .anime_4 .deco_1 img:nth-child(1) {
		top: -5px;
		left: 33px;
		width: 12px;
		height: 14px;
	}

	.value .anime_4 .deco_1 img:nth-child(2) {
		right: 11px;
		bottom: 28px;
		width: 12px;
		height: 12px;
	}

	.value .anime_4 .deco_2 img:nth-child(1) {
		top: 9px;
		left: -5px;
		width: 17px;
		height: 16px;
	}

	.value .anime_4 .deco_2 img:nth-child(2) {
		right: 0;
		top: 16px;
		width: 15px;
		height: 13px;
	}

	.value .col .back-content p {
		font-size: 13px;
		line-height: 1.53;
		height: calc(1em * 1.53 * 6);
		margin-top: 29px;
	}

	/* サービス sp */
	.service {
		margin: 85px auto 0;
	}

	.service .col>div:nth-child(1) {
		background: url(../img/top/service_1_sp.webp) no-repeat;
		background-size: cover;
	}

	.service .col>div:nth-child(2) {
		background: url(../img/top/service_2_sp.webp) no-repeat;
		background-size: cover;
	}

	.service .col>div:nth-child(3) {
		background: url(../img/top/service_3_sp.webp) no-repeat;
		background-size: cover;
	}

	.character-service {
		justify-content: center;
		right: 50%;
		transform: translateX(50%);
		bottom: -112px;
		width: 100%;
	}

	.character-service p {
		padding: 17px 19px 18px 22px;
		margin: 0 -20px 0 0;
		width: auto;
	}

	.character-service>div {
		width: 94px;
		height: 143px;
	}

	.character-service img:nth-child(2) {
		left: 7.18px;
		bottom: 31.34px;
		width: 21px;
		height: 32px;
	}

	/* サイト内リンク sp */
	.links {
		gap: 16px;
		margin: 197px auto 257px;
	}

	.links::after {
		left: -120px;
		bottom: -80px;
		width: 244px;
		height: 237px;
	}

	.links div b {
		right: 27px;
	}
}