@charset "UTF-8";

:root {
    --basic-text-color: #333;
	--color01:          #1f2a54;

	/* width */
	--basic-sp-width:     calc(100% - 40px); /* スマホ最大幅 */
	--basic-width:        1160px;            /* PC最大幅 */

    /* header-height */
    --header-sp-height:          80px; /* スマホ */
	--header-pc-height:         100px; /* PC */
}

/*------------------------------------------------
  02 コンテンツが少ない場合にフッターを最下部に固定
------------------------------------------------*/
html {
	display: flex;
	flex-direction: column;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	width: 100%;
}

main {
	flex-grow: 1;
	min-height: 1%;
}

@media print, screen and (min-width: 768px) {
	body {
		min-height: 100vh;
	}
}

/*------------------------------------------------
  03 基本
------------------------------------------------*/
@font-face {
	font-family: 'APJapanesefont';
	src: url('../fonts/apjapanesefont.eot'); /* IE 9 Compatibility Mode */
	src: url('../fonts/apjapanesefont.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
		 url('../fonts/apjapanesefont.woff2') format('woff2'), /* Super Modern Browsers */
		 url('../fonts/apjapanesefont.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
		 url('../fonts/apjapanesefont.ttf') format('truetype'); /* Safari, Android, iOS */
		 /*url('../../fonts/apjapanesefont.svg#apjapanesefont') format('svg');  Chrome < 4, Legacy iOS */
	font-display: swap;
}
html {
	font-size: 62.5%;
	color: var(--basic-text-color);
	font-family: 'Noto Sans JP', sans-serif;
	line-height: 1.25;
}
body {
	font-size: 1.4rem;
	position: relative;
}
main {
	overflow-x: hidden;
}

@media screen and (min-width: 768px) {
	body {
		font-size: 1.6rem;
	}
	a[href*="tel:"] {
		pointer-events: none;
		cursor: default;
		text-decoration: none;
	}
}

*, *::before, *::after {
	box-sizing: border-box;
}
.clearfix::after {
	content:'';
	display: block;
	clear: both;
}
a:hover {
	opacity: .8;
}
.text-left {
	text-align: left;
}
.text-right {
	text-align: right;
}
.text-center {
	text-align: center;
}
img {
	width: 100%;
	height: auto;
}

/*スマートフォンの時は非表示*/
@media screen and (max-width: 767px) {
	.only_pc {
		display: none;
	}
}

/*PCの時は非表示*/
@media screen and (min-width: 768px) {
	.only_sp {
		display: none;
	}
}

.header {
	background-image: url('../images/header_bg.webp');
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	background-color: #dda159;
	height: 200px;
	border-top: 20px solid #fff;
	overflow: hidden;
}
.header_inner {
	position: relative;
	height: 100%;
}
.header_item {
	position: absolute;
	top: 40%;
	left: 50%;
	transform: translate(-50%,-50%);
	display: block;
	width: 100%;
	height: 39.26701571%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: 2.5rem;
	color: #fff;
	background-color: rgba(0,0,0,.3);
	text-shadow: 0 0 20px rgba(0,0,0,.9);
}
.header_logo {
	width: 140px;
	height: auto;
	position: absolute;
	bottom: 10%;
	left: 50%;
	transform: translateX(-50%);
}
.footer_inner {
	background-color: var(--color01);
	color: #fff;
	background-image: url(../images/fotter_bottom.webp);
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 100%;
	position: relative;
}
.footer_item {
	margin: auto;
	width: var(--basic-sp-width);
	max-width: var(--basic-width);
	padding-top: 20px;
	padding-bottom: 20px;
}
.footer_msg {
	font-family: 'APJapanesefont';
	display: flex;
	flex-direction: column;
	text-align: center;
}
.footer_list {
	margin-top: 30px;
	margin-bottom: 30px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.footer_msg span:first-of-type {
	font-size: 2.4rem;
}
.footer_list_item:first-of-type a {
	display: block;
	width: 220px;
	height: auto;
	margin: auto;
}
.footer_list_item:last-of-type a {
	font-family: 'APJapanesefont';
	font-size: 1.6rem;
	text-align: center;
	margin: auto;
	display: block;
	width: 220px;
	background-color: #fff;
	color: #000;
	border-radius: 100px;
	padding: 0.5em 1em;
	padding-left: calc(26px + 1em);
	position: relative;
}
.footer_list_item:last-of-type a::before {
	content: '';
	background-image: url(../images/icon_mail.svg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 26px 20px;
	width: 26px;
	height: 20px;
	position: absolute;
	top: 50%;
	left: 1.5em;
	transform: translateY(-50%);
}
.footer_logo {
	margin: 30px auto;
	min-width: 160px;
	width: 60%;
	max-width: 746px;
	height: auto;
}
.copyright {
	padding: 1em;
	font-family: "Roboto", sans-serif;
	text-align: center;
	font-size: 1.2rem;
	font-weight: 500;
}

@media screen and (min-width: 411px) {
	.header {
		height: 340px;
	}
	.header_item {
		font-size: 3.5rem;
	}
	.header_logo {
		width: 180px;
	}
	.footer_msg span:first-of-type {
		font-size: 3.2rem;
	}
	.footer_msg span:last-of-type {
		font-size: 1.8rem;
	}
	.footer_logo {
		margin: 40px auto;
	}
	.copyright {
		font-size: 1.4rem;
	}
	.footer_list {
		margin-top: 30px;
		margin-bottom: 30px;
	}
	.footer_list_item:first-of-type a {
		width: 260px;
	}
	.footer_list_item:last-of-type a {
		width: 260px;
		font-size: 1.8rem;
		padding-left: calc(30px + 1em);
	}
	.footer_list_item:last-of-type a::before {
		background-size: 30px 23px;
		width: 30px;
		height: 23px;
		left: 2em;
	}
}

@media screen and (min-width: 768px) {
	.header {
		border-top: 40px solid #fff;
		height: 573px;
	}
	.header_item {
		font-size: 6rem;
	}
	.header_logo {
		width: 300px;
	}
	.footer_msg span:first-of-type {
		font-size: 5rem;
	}
	.footer_msg span:last-of-type {
		font-size: 2.8rem;
	}
	.footer_list {
		margin-top: 60px;
		margin-bottom: 60px;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 0;
	}
	.footer_list_item:first-of-type a {
		width: 300px;
		margin-right: 25px;
		padding-right: 25px;
		border-right: 3px dotted #fff;
	}
	.footer_list_item:last-of-type a {
		width: 300px;
		font-size: 2rem;
		padding: 0.3em 1.5em;
		padding-left: calc(40px + 1.5em);
	}
	.footer_list_item:last-of-type a::before {
		background-size: 40px 30px;
		width: 40px;
		height: 30px;
		left: 2em;
	}
	.footer_logo {
		margin: 60px auto;
	}
	.copyright {
		padding: 20px;
		font-size: 1.6rem;
	}
}

@media screen and (min-width: 1001px) {
	.header_item {
		height: 225px;
		font-size: 9rem;
	}
	.header_logo {
		width: 418px;
		bottom: 70px;
	}
	.footer_msg span:first-of-type {
		font-size: 9rem;
	}
	.footer_msg span:last-of-type {
		font-size: 5rem;
	}
	.footer_logo {
		margin: 80px auto;
	}
	.footer_list {
		margin-bottom: 80px;
	}
	.footer_list_item:first-of-type a {
		width: 400px;
		margin-right: 30px;
		padding-right: 30px;
	}
	.footer_list_item:last-of-type a {
		width: 400px;
		font-size: 2.6rem;
		padding-left: calc(50px + 1.5em);
	}
	.footer_list_item:last-of-type a::before {
		background-size: 50px 38px;
		width: 50px;
		height: 38px;
		left: 2em;
	}
}

@media screen and (min-width: 1161px) {
	.footer_list_item:first-of-type a {
		width: 540px;
		margin-right: 30px;
		padding-right: 30px;
	}
	.footer_list_item:last-of-type a {
		width: 540px;
		font-size: 4.3rem;
		padding-left: calc(60px + 2em);
		padding-right: 1em;
	}
	.footer_list_item:last-of-type a::before {
		background-size: 60px 46px;
		width: 60px;
		height: 46px;
		left: 1.5em;
	}
}

/*------------------------------------------------
  07 ページトップへ戻る
------------------------------------------------*/
#pagetop {
	position: fixed;
	right: 10px;
	bottom: 20px;
	/*はじめは非表示*/
	opacity: 0;
	transform: translateY(100px);
	z-index: 3;
}
#pagetop a {
	display: flex;
	justify-content:center;
	align-items:center;
	flex-direction: column;
	background-color: var(--color01);
	width: 70px;
	height: 70px;
	cursor: pointer;
	border: 1px solid #fff;
	border-radius: 50%;
}
#pagetop a:hover {
	background-color: #4c5576;
	opacity: 1;
}
#pagetop span {
	display: block;
}
.pagetop_arrow {
	display: block;
	width: 8px;
	height: 8px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
	transform: translateY(20%) rotate(-45deg);
}
.pagetop_text {
	font-family: "Oswald", sans-serif;
	font-weight: 500;
	font-size: 0.9rem;
	text-transform: uppercase;
	color: #fff;
	margin-top: 0.5em;
}
#pagetop a:hover > .pagetop_arrow {
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
}

@media screen and (min-width: 901px) {
	#pagetop {
		right: 20px;
		bottom: 30px;
	}
	#pagetop a {
		width: 90px;
		height: 90px;
	}
	.pagetop_arrow {
		width: 10px;
		height: 10px;
	}
	.pagetop_text {
		font-size: 1.2rem;
	}
}

/*　上に上がる動き　*/
#pagetop.UpMove {
	animation: UpAnime 0.5s forwards;
}
@keyframes UpAnime {
	from {
		opacity: 0;
		transform: translateY(150px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/*　下に下がる動き　*/
#pagetop.DownMove {
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime {
	from {
		opacity: 1;
		transform: translateY(0);
	}
	to {
		opacity: 1;
		transform: translateY(150px);
	}
}
