@charset "UTF-8";
/*
 * トップページ
 * 位置の数値はカンプ（1440px）上の座標を % / vw に換算している（例：calc(1240 / 1440 * 100%)）。
 */

/* ===== FV ===== */
.p-top-fv {
	position: relative;
	overflow: hidden;
}

.p-top-fv__bg img {
	width: 100%;
	aspect-ratio: 1440 / 784;
	object-fit: cover;
}

.p-top-fv__catch {
	position: absolute;
	top: calc(235 / 784 * 100%);
	left: calc(65 / 1440 * 100%);
	width: calc(545 / 1440 * 100%);
	aspect-ratio: 545 / 486;
	padding: calc(80 / 1440 * 100vw) 0 0 calc(80 / 1440 * 100vw);
	background: url("../img/top/fv-catch-back.webp") center / contain no-repeat;
}

.p-top-fv__title {
	font-size: clamp(22px, 2.6vw, 40px);
	font-weight: 500;
	line-height: 1.7;
	letter-spacing: .28em;
	transform: rotate(-7deg);
	transform-origin: left top;
}

.p-top-fv__lead {
	margin: calc(20 / 1440 * 100vw) 0 0 calc(70 / 1440 * 100vw);
	font-size: clamp(12px, 1.2vw, 18px);
	line-height: 1.9;
	letter-spacing: .14em;
}

.p-top-fv__tanuki {
	top: calc(545 / 784 * 100%);
	left: calc(1240 / 1440 * 100%);
}

/*
 * SP：カンプ（375×631）を画面いっぱい（100svh）に広げる。
 * 写真（家と子ども）は下端にそろえ、雲とキャッチは上に置く。画面の縦横比によって空いた分は下の変数で調整できる。
 * --fv-h        : FVの高さ（初期値 100svh。アドレスバーで揺れないよう svh を使用）
 * --fv-min-h    : これより低い画面では、この高さを保つ
 * --fv-catch-gap: 雲（キャッチ）の上下位置の調整。空いた高さのうち、どれだけ雲を下げるか（0〜1）
 * --fv-photo-w  : 写真の幅（100% で画面幅。縦長の画面で写真を大きくしたいときは 110% などに）
 */
@media (max-width: 767px), (orientation: portrait) and (max-width: 1023px) {
	.p-top-fv {
		--fv-h: 100svh;
		--fv-min-h: 500px; /* iPhone SE の Safari（高さ約548px）でも1画面に収める */
		--fv-catch-gap: .3;
		--fv-photo-w: 100%;
		--fv-photo-h: calc(var(--fv-photo-w) * 631 / 375);
		height: max(var(--fv-h), var(--fv-min-h));
		background: #fbfaf2;
	}

	.p-top-fv__bg img {
		position: absolute;
		bottom: 0;
		left: 50%;
		width: var(--fv-photo-w);
		max-width: none;
		height: auto;
		aspect-ratio: 375 / 631;
		object-fit: cover;
		object-position: center bottom;
		transform: translateX(-50%);
	}

	.p-top-fv__catch {
		top: calc(max(0px, (max(var(--fv-h), var(--fv-min-h)) - 168.27vw)) * var(--fv-catch-gap));
		left: -5.3vw;
		width: 109.3vw;
		aspect-ratio: 410 / 365;
		padding: 26.7vw 0 0 15.5vw;
		background-image: url("../img/top/fv-catch-back-sp.webp");
	}

	.p-top-fv__title {
		font-size: min(6.4vw, 30px);
		line-height: 1.55;
		letter-spacing: .14em;
		transform: rotate(-3deg);
	}

	.p-top-fv__lead {
		margin: 3.5vw 0 0 30vw;
		font-size: min(3.5vw, 16px);
		line-height: 1.75;
		letter-spacing: .08em;
	}

	.p-top-fv__tanuki {
		top: auto;
		bottom: calc(56 / 375 * 100vw);
		left: auto;
		right: 3vw;
		--tanuki-scale: .64;
	}

	.p-top-fv__tanuki {
		--say-size: 15px;
	}
}

/* 縦向きタブレット：画面いっぱいにすると写真が大きく切れるため、カンプの縦横比のまま表示する */
@media (orientation: portrait) and (min-width: 600px) and (max-width: 1023px) {
	.p-top-fv {
		--fv-h: 168.27vw;
	}
}

/* 横向きで高さが低い画面：PCレイアウトのまま、写真を少し縮める */
@media (orientation: landscape) and (max-height: 520px) {
	.p-top-fv__title {
		font-size: 22px;
	}
}

/* ===== Intro（くまの形） ===== */
.p-top-intro {
	position: relative;
	padding: 40px 0 20px;
}

.p-top-intro__bear {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 16px;
	place-content: start center;
	justify-items: center;
	width: 469px;
	aspect-ratio: 469 / 408;
	margin-inline: auto;
	padding-top: 118px;
	text-align: center;
	background: url("../img/top/intro-bear.webp") center / contain no-repeat;
}

.p-top-intro__text {
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: .1em;
}

.p-top-intro__btns {
	display: flex;
	gap: 12px;
}

.p-top-intro__paws {
	position: absolute;
	top: 160px;
	width: calc(331 / 1440 * 100%);
}

.p-top-intro__paws--left {
	left: calc(110 / 1440 * 100%);
	width: calc(341 / 1440 * 100%);
}

.p-top-intro__paws--right {
	right: calc(100 / 1440 * 100%);
}

.p-top-intro__paws img {
	width: 100%;
}

/* ===== 私たちの想い ===== */
.p-top-thought {
	position: relative;
	padding: 20px 0 150px;
}

.p-top-thought__inner {
	--container: 1180px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	align-items: start;
}

.p-top-thought__head {
	padding-top: 24px;
}

.p-top-thought__text {
	font-size: 14px;
	line-height: 2.3;
}

.p-top-thought__list {
	display: flex;
	gap: 0;
}

.p-top-thought__item {
	position: relative;
	display: grid;
	place-content: center;
	justify-items: center;
	width: 265px;
	aspect-ratio: 1;
	padding-top: 46px;
	text-align: center;
}

.p-top-thought__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
}

.p-top-thought__num {
	font-family: var(--ff-sans);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.4;
}

.p-top-thought__label {
	font-size: 17px;
	line-height: 1.9;
}

.p-top-thought__cloud {
	top: 0;
	right: calc(45 / 1440 * 100%);
	width: 70px;
}

.p-top-thought__tanuki {
	right: calc(290 / 1440 * 100%);
	bottom: 20px;
}

/* ===== 5つのサービス ===== */
.p-top-service {
	position: relative;
	z-index: 1;
	margin-top: -110px;
	padding: 170px 0 210px;
	background: url("../img/top/services-bg.webp") center / 100% 100% no-repeat;
}

.p-top-service__list {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 26px;
	justify-content: center;
}

.p-top-service__item {
	width: calc((100% - 52px) / 3);
	max-width: 356px;
}

.p-top-service__card {
	display: block;
	overflow: hidden;
	background: var(--c-white);
	border-radius: 16px;
	box-shadow: 0 2px 6px rgb(75 58 45 / .04);
	transition: transform .3s var(--ease), box-shadow .3s;
}

.p-top-service__photo {
	display: block;
	overflow: hidden;
}

.p-top-service__photo img {
	width: 100%;
	aspect-ratio: 356 / 174;
	object-fit: cover;
	transition: transform .5s var(--ease);
}

.p-top-service__name {
	position: relative;
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 0 44px;
	font-size: clamp(16px, 1.3vw, 19px);
	letter-spacing: .12em;
}

.p-top-service__name img {
	width: auto;
	height: 26px;
}

.p-top-service__arrow {
	position: absolute;
	top: 50%;
	right: 22px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding-left: 2px;
	font-family: var(--ff-sans);
	font-size: 15px;
	font-weight: 400;
	color: var(--c-white);
	background: #e86ea8;
	border-radius: 50%;
	transform: translateY(-50%);
	transition: transform .3s var(--ease);
}

.p-top-service__card--red .p-top-service__arrow {
	background: #ea4c6a;
}

.p-top-service__card--orange .p-top-service__arrow {
	background: #eca318;
}

.p-top-service__card--green .p-top-service__arrow {
	background: #4dbf7d;
}

.p-top-service__card--blue .p-top-service__arrow {
	background: #4994d5;
}

.p-top-service__tanuki {
	bottom: 230px;
	left: calc(140 / 1440 * 100%);
}

.p-top-service__leaf {
	top: 610px;
	right: calc(80 / 1440 * 100%);
	width: 23px;
}

.p-top-service__flower {
	top: 850px;
	right: calc(205 / 1440 * 100%);
	width: 19px;
}

@media (hover: hover) {
	.p-top-service__card:hover {
		box-shadow: 0 8px 20px rgb(75 58 45 / .1);
		transform: translateY(-4px);
	}

	.p-top-service__card:hover .p-top-service__photo img {
		transform: scale(1.05);
	}

	.p-top-service__card:hover .p-top-service__arrow {
		transform: translate(3px, -50%);
	}
}

/* ===== 教室一覧 ===== */
.p-top-classroom {
	position: relative;
	padding: 50px 0 calc(156 / 1440 * 100vw + 40px);
}

.p-top-classroom .l-container {
	position: relative;
	z-index: 1;
}

.p-top-classroom__list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 56px 20px;
}

.p-top-classroom__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.p-top-classroom__logo {
	width: min(186px, 100%);
	margin: 0 auto 14px;
	border-radius: 50%; /* 影はロゴ画像に入っているので、CSSの影は付けない */
}

.p-top-classroom__item .c-tags {
	flex-direction: column;
	align-items: flex-start;
}

.p-top-classroom__address {
	font-family: var(--ff-sans);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	text-align: center;
	letter-spacing: .04em;
}

.p-top-classroom__more {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	height: 46px;
	margin-top: auto;
	font-size: 14px;
	letter-spacing: .14em;
	background: var(--c-beige-dark);
	border-radius: 999px;
	transition: background-color .3s;
}

.p-top-classroom__item .c-tags + .p-top-classroom__address {
	margin-bottom: 18px;
}

.p-top-classroom__sun {
	top: 70px;
	right: calc(50 / 1440 * 100%);
	width: 122px;
}

.p-top-classroom__cloud01 {
	top: 225px;
	left: calc(35 / 1440 * 100%);
	width: 80px;
}

.p-top-classroom__cloud02 {
	top: 380px;
	right: calc(25 / 1440 * 100%);
	width: 120px;
}

.p-top-classroom__hills {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	overflow: hidden;
}

.p-top-classroom__hills img {
	width: 100%;
}

.p-top-classroom__tanuki {
	right: calc(160 / 1440 * 100%);
	bottom: calc(10 / 1440 * 100vw);
}

@media (hover: hover) {
	.p-top-classroom__more:hover {
		background: #cbc5b8;
	}
}

/* ===== コグトレ ===== */
.p-top-cogtore {
	position: relative;
	padding: 50px 0 90px;
}

.p-top-cogtore .l-container {
	position: relative;
	z-index: 1;
}

.p-top-cogtore__head {
	display: grid;
	place-content: center;
	width: 522px;
	aspect-ratio: 522 / 244;
	margin: 0 auto 30px;
	padding-top: 10px;
	background: url("../img/top/cogtore-title.webp") center / contain no-repeat;
}

.p-top-cogtore__head .c-sec-title {
	margin: 0;
}

.p-top-cogtore__head .c-sec-title__lead {
	margin-top: 14px;
	line-height: 1.7;
}

.p-top-cogtore__list {
	display: flex;
	gap: 26px;
	justify-content: center;
}

.p-top-cogtore__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 328px;
	aspect-ratio: 328 / 442;
	padding: 92px 34px 0;
	background: url("../img/top/cogtore-01.webp") center / contain no-repeat;
}

.p-top-cogtore__item--02 {
	background-image: url("../img/top/cogtore-02.webp");
}

.p-top-cogtore__item--03 {
	background-image: url("../img/top/cogtore-03.webp");
}

.p-top-cogtore__title {
	font-size: 21px;
	font-weight: 500;
	letter-spacing: .12em;
}

.p-top-cogtore__text {
	margin-top: auto;
	margin-bottom: 92px;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: .12em;
}

.p-top-cogtore__sun {
	top: 30px;
	right: calc(170 / 1440 * 100%);
	width: 90px;
}

.p-top-cogtore__cloud01 {
	top: 130px;
	left: calc(170 / 1440 * 100%);
	width: 90px;
}

.p-top-cogtore__cloud02 {
	top: 120px;
	right: calc(345 / 1440 * 100%);
	width: 80px;
}

.p-top-cogtore__flowers01 {
	top: 170px;
	left: calc(225 / 1440 * 100%);
	width: 140px;
}

.p-top-cogtore__hill {
	top: 150px;
	right: 0;
	width: calc(270 / 1440 * 100%);
}

.p-top-cogtore__flowers02 {
	top: 260px;
	right: calc(270 / 1440 * 100%);
	width: 90px;
}

.p-top-cogtore__clover {
	bottom: 70px;
	left: calc(520 / 1440 * 100%);
	width: 60px;
}

.p-top-cogtore__flower {
	bottom: 60px;
	left: calc(140 / 1440 * 100%);
	width: 30px;
}

/* ===== Tablet ===== */
@media (max-width: 1199px) {
	.p-top-thought__inner {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.p-top-thought__head {
		text-align: center;
	}

	.p-top-thought__head .c-sec-title--left .c-sec-title__main {
		justify-content: center;
	}

	.p-top-classroom__list {
		grid-template-columns: repeat(4, 1fr);
	}

	.p-top-cogtore__item {
		width: 300px;
		padding-top: 80px;
	}
}

/* ===== SP ===== */
@media (max-width: 767px), (orientation: portrait) and (max-width: 1023px) {
	.p-top-intro {
		padding: 36px 0 0;
	}

	.p-top-intro__bear {
		width: min(94vw, 469px);
		gap: 12px;
		padding-top: min(24vw, 116px);
	}

	.p-top-intro__text {
		font-size: min(3.5vw, 15px);
	}

	.p-top-intro__btns {
		gap: 6px;
	}

	.p-top-intro__btns .c-btn {
		min-height: 42px;
		padding: 6px 12px;
		font-size: min(3.2vw, 13px);
		letter-spacing: .04em;
	}

	.p-top-intro__paws {
		top: auto;
		bottom: -20px;
		width: 44%;
	}

	.p-top-intro__paws--left {
		left: 0;
		width: 46%;
	}

	.p-top-intro__paws--right {
		top: auto;
		right: 0;
		bottom: -40px;
	}

	.p-top-thought {
		padding: 56px 0 150px;
	}

	.p-top-thought__text {
		font-size: 13px;
		line-height: 2;
		text-align: left;
	}

	.p-top-thought__text br {
		display: none;
	}

	.p-top-thought__list {
		display: grid;
		grid-template-columns: repeat(2, min(44vw, 200px));
		justify-content: center;
		margin-top: 10px;
	}

	.p-top-thought__item {
		width: 100%;
		padding-top: 10%; /* 文字をアイコンのすぐ下に寄せる */
	}

	.p-top-thought__item:last-child {
		grid-column: 1 / -1;
		width: min(44vw, 200px);
		margin: -6% auto 0;
	}

	.p-top-thought__num {
		font-size: 15px;
	}

	.p-top-thought__label {
		font-size: min(3.4vw, 14px);
		line-height: 1.7;
	}

	.p-top-thought__tanuki {
		right: 4%;
		bottom: 30px;
		--tanuki-scale: .7;
	}

	.p-top-thought__cloud {
		top: 10px;
	}

	.p-top-service {
		margin-top: -70px;
		padding: 100px 0 220px;
		background-size: 300% 100%;
	}

	.p-top-service__list {
		gap: 16px;
	}

	.p-top-service__item {
		width: 100%;
		max-width: 400px;
	}

	.p-top-service__name {
		height: 50px;
		font-size: 16px;
	}

	.p-top-service__tanuki {
		bottom: 90px;
		left: 2%;
		--tanuki-scale: .66;
	}

	.p-top-service__leaf,
	.p-top-service__flower {
		display: none;
	}

	.p-top-classroom {
		padding: 50px 0 calc(156 / 1440 * 100vw + 130px);
	}

	.p-top-classroom__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 36px 14px;
	}

	.p-top-classroom__logo {
		width: min(36vw, 160px);
	}

	.p-top-classroom__address {
		font-size: 12px;
	}

	.p-top-classroom__more {
		height: 40px;
		font-size: 13px;
	}

	.p-top-classroom__sun {
		top: 10px;
		right: 0;
		width: 70px;
	}

	.p-top-classroom__cloud01,
	.p-top-classroom__cloud02 {
		display: none;
	}

	.p-top-classroom__hills img {
		width: 200%;
		max-width: none;
	}

	.p-top-classroom__tanuki {
		right: 4%;
		bottom: 12px;
		--tanuki-scale: .6;
	}

	.p-top-cogtore {
		padding: 30px 0 40px;
	}

	.p-top-cogtore__head {
		width: min(100%, 400px);
		aspect-ratio: auto;
		padding: 40px 20px;
		background-size: 100% 100%;
	}

	.p-top-cogtore__head .c-sec-title__lead {
		text-align: center;
	}

	.p-top-cogtore__list {
		flex-direction: column;
		gap: 10px;
		align-items: center;
	}

	.p-top-cogtore__item {
		width: min(82vw, 328px);
		padding: 24vw 7vw 0;
		padding-top: min(24vw, 92px);
	}

	.p-top-cogtore__text {
		margin-bottom: min(24vw, 92px);
	}

	.p-top-cogtore__sun {
		top: 0;
		right: 0;
		width: 60px;
	}

	.p-top-cogtore__cloud01,
	.p-top-cogtore__cloud02,
	.p-top-cogtore__flowers01,
	.p-top-cogtore__flowers02,
	.p-top-cogtore__hill {
		display: none;
	}
}
