@charset "utf-8";

@import url('reset.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

:root {
	--mainColor: #4e8cc4;
	--mainBgColor: #fbfaf6;
	--mainTxtColor: #3e3a39;
	--subTxtColor: #4c4948;
	--maxWidthPC: 1100px;
}


/* Common
---------------------------------------------------------- */
@media (min-width: 690px) {
	html{ font-size: calc(1.2rem + ((1.2vw - 14px) * 0.0853));}
}

@media (min-width: 1920px) {
	html { font-size: 15px;}
}
@media (max-width: 690px){
	html { font-size: 16px;}
}

body {
	font-family: "Noto Sans JP";
	line-height: 1.8;
	letter-spacing: 0;
	color: var(--mainTxtColor);
	background-color: #8bc461;
	overflow-x: hidden;
}

/** animetion **/
@keyframes moveArrow {
	0% { transform: translateX(0);}
	49% { transform: translateX(120%);}
	50% { opacity: 0;}
	50% { transform: translateX(-120%);}
	51% { opacity: 1;}
	100% { transform: translateX(0);}
}

.fadeIn{
	opacity: 0;
	--slide-distance: 10px;
	transform: translateY(var(--slide-distance)); /* 初期位置をY軸方向にずらす */
	transition: opacity 0.5s cubic-bezier(.17,.67,.83,.67),transform 0.5s cubic-bezier(.17,.67,.83,.67);
}

.fadeIn.top { --slide-distance: 10px; /* 上から下へ */}

.fadeIn.bottom { --slide-distance: -10px; /* 下から上へ */}

.fadeIn.right { transform: translateX(-10px);  /* 左から右へ */}

.fadeIn.left { transform: translateX(10px);  /* 右から左へ */}

.fadeIn.active{
	opacity: 1;
	transform: translate(0, 0); /*transform: none;でもOK*/
}


/* Usually
---------------------------------------------------------- */
/* Flex */
.flexbox {
	display: flex;
	align-items: center;
	
	flex-wrap: wrap;
}

/* Inner */
.inner{
	max-width: var(--maxWidthPC);
	margin: 0 auto;
	padding: 0 20px;
}

/* a img input */
a,a img,input[type="button"],button,
*::before,*::after,
input[type="submit"],
input[type="reset"],
input[type="image"]{
	transition: 0.2s ease-out;
}

a:hover img,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="image"]:hover{
	filter:alpha(opacity=50);
	opacity: 0.5;
}

a{
	color: var(--mainTxtColor);
	text-decoration: none;
}
a:hover{
	color: var(--mainColor);
}

a[href^="tel:"] {
	color: inherit;
	text-decoration: none;
	pointer-events: none;
}

.more a{
	position: relative;
	display: inline-block;
	width: 400px;
	max-width: 80%;
	margin: 20px 0 0 0;
	padding: 10px 2rem;
	background-color: #1e2678;
	border-radius: 3rem;
	color: #fff;
}
.more a::after{
	content: '';
	position: absolute;
	top: calc(50% - 10px);
	right: 2rem;
	width: 20px;
	height: 20px;
	background: url(../img/arrow01.svg) no-repeat center / contain;
	transition: 0.2s ease-out;
}

.more a:hover{ background-color: var(--mainColor);}
.more a:hover::after{ right: 1rem;}

/* Img */
img{
	max-width: 100%;
	height: auto;
}
svg, object { fill: currentColor;}

/* Diplay none */
.pc{ display: block;}
.sp{ display: none;}

/* animetion */
.fadeIn{
	opacity: 0;
	--slide-distance: 10px;
	transform: translateY(var(--slide-distance)); /* 初期位置をY軸方向にずらす */
	transition: opacity 0.5s cubic-bezier(.17,.67,.83,.67),transform 0.5s cubic-bezier(.17,.67,.83,.67);
}

.fadeIn.top { --slide-distance: 10px; /* 上から下へ */}

.fadeIn.bottom { --slide-distance: -10px; /* 下から上へ */}

.fadeIn.right { transform: translateX(-10px);  /* 左から右へ */}

.fadeIn.left { transform: translateX(10px);  /* 右から左へ */}

.fadeIn.active{
	opacity: 1;
	transform: translate(0, 0); /*transform: none;でもOK*/
}

@media screen and (max-width: 690px){
	.pc{ display: none;}
	.sp{ display: block;}
}


/* #loading
---------------------------------------------------------- */
#loading-screen {
    position: fixed; /* 画面全体に固定 */
    top: 0;
    left: 0;
    z-index: 100; /* 他のコンテンツの上に表示 */
    width: 100%;
    height: 100%;
    background-color: var(--mainColor);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* はみ出したトラックを隠す */
}

/* トラックを揺らすためのコンテナ */
.truck-container {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 250px;
    height: 120px;
    animation: shakeTruck 0.15s infinite ease-in-out;
    transform-origin: center bottom;
}

/* トラック画像自体 */
#truck-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: moveTruck 3s linear forwards;
}

/* 横移動アニメーション */
@keyframes moveTruck {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(calc(50vw - 125px)); }
}

/* ガタガタ揺れるアニメーション */
@keyframes shakeTruck {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-1px) rotate(0.2deg); } /* 上に1px、右に0.2度傾く */
    50% { transform: translateY(0px) rotate(-0.2deg); } /* 左に0.2度傾く */
    75% { transform: translateY(1px) rotate(0.2deg); }  /* 下に1px、右に0.2度傾く */
}

#loading-text {
    position: absolute;
    top: calc(50% - 3rem);
    font-size: 1.6em;
	line-height: 1;
    letter-spacing: 2px;
    color: #fff;
    z-index: 10;
}

.loaded .truck-container,
.loaded #truck-image {
	animation-play-state: paused !important;
}

@keyframes slideOut {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

/* スライドアウトアニメーションが適用されるクラス */
#loading-screen.slide-out {
	animation: slideOut 0.8s ease-in-out forwards;
}

/* アニメーション完了後にJSで付与されるクラス */
#loading-screen.hidden { display: none;}

/* --- メインコンテンツのスタイル --- */
#main-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 100vh;
    box-sizing: border-box;
    transform: translateX(-100vw);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease-in-out;
}

@keyframes slideInContent {
    0% {
        transform: translateX(-100vw);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

body.loading-finished #main-content {
	animation: slideInContent 0.8s ease-in-out forwards;
}


/* header
---------------------------------------------------------- */
header{
	padding: 20px;
	background-color: #fff;
}
header h1{
	margin: auto;
	text-align: center;
	line-height: 1;
}

@media screen and (max-width: 690px){
	header{ padding: 5px 10px;}
	header h1 img{ width: 40%;}
}


/* #mv
---------------------------------------------------------- */
#mv{
	position: relative;
	width: 100%;
	aspect-ratio: 5 / 3;
	background: url(../img/mv_img.png) no-repeat center / cover;
}

.mv_logo{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 660px;
	max-width: 60%;
	margin: auto;
	text-align: center;
}


/* main
---------------------------------------------------------- */
main{
	position: relative;
	z-index: 1;
	max-width: 1000px;
	margin: -5vh auto -25vw;
	padding: 0 30px;
}

/* section ----------- */
section{
	margin: 30px 0 10vh;
	background-color: #fff;
	border-radius: 30px;
	border: 5px solid var(--mainColor);
}

.sec_h2{
	position: relative;
	background-color: var(--mainColor);
	border-radius: 20px 20px 0 0;
	text-align: center;
}
.sec_h2::before{
	content: '';
	position: absolute;
	top: -60px;
	left: calc(50% - 50px);
	z-index: 10;
	width: 100px;
	height: 100px;
	background: url(../img/h2_img.png) no-repeat center / contain;
}

.sec_h2 h2{
	padding: 30px;
	color: #fff;
	font-size: 1.4rem;
	line-height: 1.4;
}

.sec_txt{ padding: 5vw;}

.sec_txt h3{
	margin: 40px 0 20px;
	text-align: center;
}
.sec_txt h3:first-child{ margin-top: 0;}

.sec_txt h3 span{
	display: inline-block;
	padding: 10px 2rem;
	background-color: #ffff00;
	border: 3px solid var(--mainColor);
	border-radius: 3rem;
	color: var(--mainColor);
	font-size: 1.1rem;
}

h4{
	margin: 0 0 20px 0;
	color: var(--mainColor);
	font-size: 1.2rem;
	text-align: center;
}

h4 span{ display: inline-block;}
h4 span::after{
	background: radial-gradient(circle farthest-side, var(--mainColor), var(--mainColor) 20%, transparent 30%, transparent);
    background-size: 15px;
    content: '';
    display: inline-block;
    height: 20px;
    width: 100%;
}

figure{ margin: 30px auto;}
figure.row2,figure.row3{ width: 100%;}
figure.row2{ justify-content: space-between;}
figure.row3{
	justify-content: center;
    align-items: stretch;
	flex-wrap: nowrap;
    gap: 15px;
}
figure.row2 img{ width: 48%;}
figure.row3 > a{
	display: inline-block;
	max-width: 33%;
	overflow: hidden;
	line-height: 1;
}
.flexbox.row3 > a img {
    display: block; 
    width: 100%;
	max-height: 60px;
	object-fit: contain;
    object-position: center;
}

figure img{ max-width: 100%;}

.sec_logo{
	margin: 30px 0;
	justify-content: space-between;
}

.flex_sec3{
	align-items: flex-start;
	justify-content: space-between;
}

.sec_logo img{
	width: 40%;
	min-width: 240px;
}
.sec_logo .logo_info{ width: 55%;}
.logo_info p{
	margin: 10px 0;
	font-size: 0.9rem;
}

@media screen and (max-width: 690px){
	main{
		margin: 0;
		padding: 0 10px;
	}
	section{ margin: 30px 0 5vh;}
	.sec_h2::before{
		top: -40px;
		left: calc(50% - 30px);
		width: 60px;
		height: 60px;
	}
	.sec_h2 h2{
		padding: 15px;
		font-size: 1.3rem;
	}
	.sec_logo{ flex-direction: column;}
	.sec_logo:before{
		background: radial-gradient(circle farthest-side, var(--mainColor), var(--mainColor) 20%, transparent 30%, transparent);
		background-size: 15px;
		content: '';
		display: inline-block;
		height: 20px;
		width: 100%;
	}
	.sec_logo img{
		width: 25%;
		padding: 20px 0 0 0;
	}
	.sec_logo .logo_info{
		width: 100%;
		margin-top: 20px;
	}
	.more a{ max-width: 100%;}
	figure{ margin: 15px 0;}
	figure.row2 img{
		width: 100%;
		margin: 5px 0;
	}
	figure.row3{ flex-wrap: wrap;}
	figure.row3 > a{ max-width: none;}
	figure.row3 > a img{ 
		height: 50px;
	}
}


/* footer
---------------------------------------------------------- */
footer{
	position: relative;
	width: 100%;
	aspect-ratio: 5 / 1.65;
	background: url(../img/ft_bg.png) no-repeat center bottom / cover;
}

.copyright{
	position: absolute;
	bottom: 0;
	width: 100%;
	margin: auto;
	padding: 10vh 20px;
	color: #fff;
	font-size: 0.8rem;
	text-align: center;
}

@media screen and (max-width: 690px){
	.copyright{ padding: 20px 30vw;}
}