@charset "UTF-8";

/* ヒーロー */

.main {
	padding-top: 0;
}

.hero {
	position: relative;
	width: 90%;
	max-width: 1232px;
	margin: 0 auto;
}

.hero::before {
	content: "";
	position: absolute;
	top: 90px;
	left: 47%;
	transform: translateX(-50%);
	background: url(../img/top/hero-back.webp) no-repeat;
	background-size: contain;
	width: calc(100% + 117px);
	height: 862px;
	z-index: 1;
}

.hero::after {
	content: "";
	position: absolute;
	top: 90px;
	left: 50%;
	background: url(../img/top/osakana.webp) no-repeat;
	background-size: contain;
	width: calc(100% + 117px);
	height: 862px;
	animation: yurayura 5s linear infinite;
	transform-origin: calc(100% - 150px) center;
}

@keyframes yurayura {

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

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

.first-view {
	box-sizing: border-box;
	position: relative;
	margin: 33px auto 0;
	width: 100%;
	height: calc(100% - 33px);
}

.first-view::before {
	content: "";
	display: block;
	margin: 0 auto;
	background: url(../img/top/triangle.webp) no-repeat;
	background-position: bottom;
	background-size: contain;
	width: 100%;
	height: clamp(160px,23vw,306px);
}

.first-wrap {
	background: url(../img/top/first-back.webp);
	background-repeat: repeat;
	padding-bottom: 74px;
}

.first-wrap .col {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 40%;
}

.hero-text {
	display: inline-block;
	margin-left: -48px;
}

.hero-text div{
	background: #fff;
	border-radius: 3px;
	clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

.hero-text p {
	color: #5EAC97;
	font-size: 30px;
	font-weight: bold;
	letter-spacing: .05em;
	line-height: 1.86;
	padding: 0 14px 0 14px;
	overflow: hidden;
	white-space: nowrap;
	clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

.hero-text p:first-child {
	margin-bottom: 8px;
}

.visit {
	background: #5EAC97;
	border-radius: 10px;
	box-sizing: border-box;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 26px;
	letter-spacing: .05em;
	padding: 8px 7px;
	position: relative;
	transition: .3s;
	margin-right: -48px;
	width: 360px;
	z-index: 1;
}

.visit:hover {
	background: #43937D;
}

.visit::before {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	background: url(../img/arrow-w.svg) no-repeat;
	width: 40px;
	height: 40px;
	transition: .3s;
}

.visit:hover::before {
	transform: translate(15px, -50%);
}

.visit a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.visit img {
	border-radius: 4px;
	width: 96px;
}

.visit p {
	font-size: 14px;
	font-weight: 500;
}

.visit p span {
	display: block;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.1;
	margin-bottom: 10px;
}

.clock {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 200px;
	margin: 0 auto;
	width: clamp(400px, 42vw, 610px);
}

.clock::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: url(../img/top/clock.webp) no-repeat;
	background-size: contain;
	width: calc(100% + 44px);
	height: calc(100% + 44px);
}

.clock .splide {
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto;
	width: clamp(400px, 42vw, 610px);
}

.clock .splide__slide img {
	transition: 12s;
	width: 100%;
}

.clock .splide__slide.is-active img {
	transform: scale(1.15);
	transition-delay: 0s;
}

.hand {
	position: absolute;
	bottom: 50%;
	left: 50%;
	transform-origin: bottom center;
	transform: translateX(-50%) rotate(0deg);
	border-radius: 4px;
}

.hour {
	width: 6px;
	height: clamp(79px,12.5vw,180px);
	background: #fff;
}

.minute {
	width: 6px;
	height: clamp(119px,18.75vw,270px);
	background: #fff;
}

.second {
	width: 2px;
	height: clamp(119px,18.75vw,270px);
	background: #fff;
}

.center-dot {
	position: absolute;
	width: 13px;
	height: 13px;
	background: #fff;
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* 共通 */

.wrap {
	box-sizing: border-box;
	margin-top: -60px;
	padding: 118px 0 152px;
	position: relative;
	z-index: 1;
}

section {
	text-align: center;
}

.about {
	position: relative;
}

.about p {
	margin-top: 62px;
	line-height: 2.6;
}

.about .btn {
	margin-top: 75px;
}

.about img {
	position: absolute;
	top: 0;
	z-index: -1;
}

.about img:nth-of-type(1) {
	left: 50px;
}

.about img:nth-of-type(2) {
	right: 50px;
}

.about-img {
	display: none;
}

@media screen and (max-width: 1300px) {
	.about img {
		width: 25%;
	}
}

.pillar {
	background: url(../img/top/pillar-back.webp) no-repeat;
	background-size: contain;
	background-position: top 67px center;
	margin: 170px auto 0;
	padding-bottom: 120px;
	max-width: 1159px;
}

.pillar h2 span {
	font-size: 43px;
}

.pillar .col {
	display: grid;
	gap: 50px;
	grid-template-columns: repeat(3, 1fr);
	margin: 130px auto 0;
	max-width: 825px;
	position: relative;
}
/*
.pillar .col::before {
	content: url(../img/top/pillar-back.webp);
	display: block;
	position: absolute;
	top: -120px;
	left: 50%;
	transform: translateX(-50%);
	z-index: -1;
}*/

.pillar img {
	margin-top: 12px;
	max-width: 220px;
}

.pillar h3 {
	color: #5EAC97;
	font-size: 25px;
	font-weight: bold;
	letter-spacing: .05em;
	line-height: 1.32;
}

.pillar p {
	margin-top: 16px;
	line-height: 1.625;
}

.pillar .btn {
	margin-top: 80px;
}

/* ループ */

.loopslide {
	margin-top: 170px;
}

.loopslide .splide {
	width: 1720px;
}

.loopslide .splide__track {
	overflow: visible;
}

.detail {
	margin-top: 112px;
}

.detail .col {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin: 0 auto;
	width: 90%;
	max-width: 1168px;
}

.detail .col > div {
	border: 7px solid #FCD7D4;
	border-radius: 30px;
	box-sizing: border-box;
	padding: 39px 0;
}

.detail .col > div:hover .detail-img img {
	transform: scale(1.15);
}

.detail-img {
	border-radius: 20px;
	margin: 0 auto;
	overflow: hidden;
	width: 100%;
	max-width: 292px;
}

.detail .col img {
	transition: .5s;
	width: 100%;
}

.detail .col h2 {
	color: #4F9F89;
	margin-top: 20px;
}

.detail h2::before {
	background: #4F9F89;
}

.detail .col p {
	margin: 35px auto;
	line-height: 1.625;
}

.detail .col>div:nth-child(3) p {
	margin: 20px auto;
}
@media screen and (max-width: 1300px) {
	.detail .col {
		display: block;
	}

	.detail .col >div {
		display: flex;
		align-items: center;
		gap: 30px;
		padding: 24px;
		margin: 24px auto 0;
		max-width: 608px;
		text-align: left;
	}

	.detail .col >div:first-child {
		margin-top: 0;
	}

	.detail-img {
		margin: 0;
		max-width: 280px;
		height: 224px;
	}

	.detail .col img {
		height: 100%;
		object-fit: cover;
	}

	.detail .col h2 {
		margin-top: 0;
	}

	.detail .col p {
		font-size: 14px;
		line-height: 1.85;
		text-align: left;
		margin-top: 17px;
	}

	.detail .col .adjust {
		display: none;
	}

	.detail .btn {
		text-align: center;
		margin-left: 0;
	}
}

/* お知らせ */

.news {
	text-align: left;
	margin: 123px auto 0;
	max-width: 1010px;
	width: 90%;
}

.news .btn {
	text-align: center;
	margin-top: 38px;
}

.news .btns {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 33px;
}

.news .btns a {
	border: 1px solid #5EAC97;
	border-radius: 30px;
	box-sizing: border-box;
	color: #5EAC97;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .05em;
	line-height: 1;
	padding: 7px;
	width: 140px;
	transition: .3s;
}

.news .btns a.news-others {
	gap: 8px;
}

.news .btns a:hover {
	background: #5EAC97;
	color: #fff;
}

.news .btns a:hover svg path {
	fill: #fff;
}

.news-wrap {
	margin-top: 65px;
}

.news-wrap article {
	position: relative;
}

.news-wrap article a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.news-wrap .cat-name {
	background: #6DBBA6;
	border-radius: 40px 40px 40px 0;
	color: #fff;
	display: block;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: .03em;
	padding: 6px 22px;
	position: absolute;
	top: -28px;
	width: max-content;
	z-index: 1;
}

.news-wrap article div {
	background: #F3F3F3;
	border-radius: 0 10px 10px 10px;
	display: flex;
	gap: 33px;
	margin-top: 13px;
	padding: 23px 42px 19px;
	position: relative;
	transition: .3s;
}

.news-wrap article div::after {
	content: "";
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 26px;
	background: url(../img/arrow-w.svg) no-repeat;
	background-size: contain;
	width: 25px;
	height: 25px;
}

.news-wrap article div:has(a:hover) {
	background: #FCFCFC;
}

.news-wrap .date {
	color: #858585;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: .01em;
}

.news-wrap h3 {
	color: #3D3D3D;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: .05em;
	line-height: 1.875;
}

/* tab size */
@media screen and (max-width: 1000px) {

	.hero::after {
		content: none;
	}

	.hero::before {
		background: url(../img/top/hero-back_tab.webp) no-repeat;
		background-position: top center;
		top: 120px;
		left: 49%;
		width: 705px;
		height: 650px;
	}

	.clock {
		top: 170px;
	}

	.first-wrap .col {
		align-items: flex-start;
		flex-flow: column;
        gap: 24px;
		padding-top: 425px;
	}

	.hero-text {
		margin-left: -24px;
	}

	.visit {
		margin-left: auto;
		margin-right: -24px;
		z-index: 2;
	}

	.wrap {
		margin-top: -90px;
		max-width: 90%;
	}

	/* アバウト tab */

	.about p {
		padding: 0 24px;
	}

	.about img {
		display: none;
	}
	.about-img {
		display: block;
		margin-top: 58px;
		padding: 0 71px;
	}

	.about-img img {
		display: block;
		position: relative;
		left: auto !important;
		width: 100%;
	}

	/* はしら tab */

	.pillar {
		margin-top: 130px;
		padding: 0 24px;
	}

	.pillar .col {
		display: block;
		margin-top: 75px;
	}

	.pillar .col::before {
		content: none;
	}

	.pillar .col > div {
		margin: 51px auto 0;
		max-width: 400px;
	}

	.pillar .col > div:first-child {
		margin-top: 0;
	}

	.pillar img {
		max-width: 100%;
	}

	.pillar p {
		margin-top: 25px;
	}

	/* スライダー tab */

	.loopslide {
		margin-top: 111px;
		width: 100%;
		overflow: hidden;
	}

	.loopslide .splide,
	.loopslide .splide__slide img {
		width: 982px;
	}
}

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

	/* ヒーロー */

	.hero {
		background: url(../img/top/first-back_tab.webp) no-repeat;
		background-size: contain;
		background-position: top;
	}

	.hero::before {
		background: url(../img/top/hero-back_sp.webp) no-repeat;
		background-position: center;
		background-size: contain;
		top: 50px;
		left: 50%;
		width: 355px;
        height: 481px;
	}

	.first-view::before,
	.first-wrap {
		background: none;
		height: auto;
	}

	.first-view {
		margin-top: 78px;
		height: 100%;
	}

	.clock {
		top: 120px;
		width: 270px;
	}

	.clock .splide {
		width: 270px;
	}

	.clock::before {
		background-size: contain;
		width: 289px;
		height: 289px;
	}

	.splide__slide img {
		width: 100%;
	}

	.hour {
		width: 3px;
		height: 79px;
	}

	.minute {
		width: 3px;
		height: 119px;
	}

	.second {
		width: 1px;
		height: 119px;
	}

	.hero-text {
		margin-left: -8px;
	}

	.hero-text p {
		font-size: 18px;
		font-weight: 500;
	}

	.visit {
		gap: 15px;
		margin: 0 auto;
		width: 312px;
	}

	.wrap {
		border-radius: 40px;
		padding: 120px 0 50px;
		margin-top: -130px;
		max-width: 100%;
	}

	.about p {
		font-size: 16px;
		line-height: 2;
		margin-top: 40px;
	}

	.about .btn {
		margin-top: 55px;
	}

	.about-img {
		margin: 55px auto 0;
		max-width: 344px;
	}

	/* はしら sp */

	.pillar {
		background: none;
	}

	.pillar .col {
		margin-top: 47px;
	}

	.pillar .col > div {
		margin-top: 34px;
	}

	.pillar img {
		max-width: 220px;
	}

	.pillar p {
		margin-top: 16px;
	}

	/* スライダー sp */

	.loopslide {
		margin-top: 55px;
	}

	.loopslide .splide,
	.loopslide .splide__slide img {
		width: 809px;
	}

	/* 詳細 sp */
	.detail .col >div {
		display: block;
		max-width: 90%;
		padding-bottom: 40px;
		text-align: center;
	}

	.detail-img {
		max-width: 100%;
		height: auto;
	}

	.detail .col h2 {
		margin-top: 20px;
	}

	.detail .col p {
		font-size: 16px;
		margin: 20px auto;
		text-align: center;
	}

	.detail .btn {
		margin-left: auto;
	}

	/* お知らせ */
	.news {
		text-align: center;
		margin-top: 57px;
	}

	.news-wrap .cat-name {
		padding: 3px 22px;
	}

	.news-wrap article div {
		flex-flow: column;
		gap: 0;
		padding: 18px 22px 22px;
	}

	.news-wrap .date {
		text-align: left;
		line-height: 1;
	}

	.news-wrap h3 {
		font-size: 14px;
		text-align: left;
		line-height: 1.85;
	}

	.news .btns {
		display: grid;
		grid-template-columns: repeat(3,1fr);
		gap: 7px;
		margin: 37px auto 0;
		max-width: 327px;
	}

	.news .btns a {
		font-size: 12px;
		padding: 6px 0;
		width: 105px;
	}

	.news-all svg {
		width: 11px;
	}

	.news-school svg {
		width: 12px;
	}

	.news-lunch svg {
		width: 13px;
	}

	.news-support svg {
		width: 14px;
	}

	.news-daily svg {
		width: 12px;
	}

	.news-others svg {
		width: 12px;
	}
}

@media screen and (max-width: 500px) {
	.hero {
		background: url(../img/top/first-back_sp.webp) no-repeat;
		background-size: contain;
		background-position: top;
	}
}