@charset "UTF-8";

:root {
	--mainblue: #7699CC;
	--subblue: #EFF5FF;
	--gray: #37404D;
}

*{
    min-height: 0vw; /* Safari clamp関数対策 */
}

html, body {
	overflow-x: hidden;
}

body {
	font-family: "Noto Sans JP", sans-serif;
	color: var(--gray);
	letter-spacing: 0.15em;
}

a {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

ul,ol {
	list-style: none;
}

main {
    margin-top: clamp(80px, 10.000px + 7.292vw, 150px);
}

h2 {
	font-size: clamp(20px, 14.000px + 1.875vw, 32px);
	margin: 0 auto;
	position: relative;
	display: inline-block;
	margin-bottom: 1em;
}

h2:before {
	content: '';
	position: absolute;
	bottom: -15px;
	display: inline-block;
	width: 30px;
	height: 5px;
	left: 50%;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
	background-color: var(--mainblue);
	border-radius: 2px;
}

.br_span {
	display: inline-block;
	white-space: normal;
}

.nowrap {
	white-space: nowrap;
}

/* ボタンの共通デザイン */
.bt-common {
	background-color:  var(--mainblue);
	border: 4px solid var(--mainblue);
	color: #ffffff;
    font-weight: bold;
	font-size: clamp(12px, 10.000px + 0.625vw, 16px);
	padding: 6px clamp(10px, 2.500px + 2.344vw, 25px);
	border-radius: 30px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
	transition: .3s;
}

.bt-common:hover {
	background-color: #fff;
	color: var(--mainblue);
	border: 4px solid var(--mainblue);
	box-shadow: none;
}

/* 共通ボタン色反転バージョン */
.bt-reverse {
	background-color:  #fff;
	color: var(--mainblue);
}

.bt-reverse:hover {
	background-color: var(--mainblue);
	color: #fff;
}

/* 基本的にリンク・ボタンはホバー時透明度60％に設定 */
.a-common:hover {
	opacity: 0.6;
}





/* === ヘッダー =================================================================================================================== */
header {
	display: flex;
	background-color: #fff;
	height: max(50px, min(39.804px + 2.614vw, 90px));
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 9999;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
	height: 70px;
}
.header-inner {
	max-width: 1920px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

#marusapoweb {
	z-index: 9999;
}

#marusapoweb img{
	width: clamp(100px, 75.000px + 7.813vw, 150px);
	height: 50px;
	margin-left: 10px;
}

/* ハンバーガーメニュー関連 PC画面非表示 */
.openbtn1 {
	display: none;
}


nav {
    display: flex;
    align-items: center;
    gap: 50px;
}

header nav ul {
	display: flex;
	gap: 50px;
}

header nav ul li {
	font-size: max(14px, min(6.000px + 0.833vw, 18px));
}

header nav ul li a {
	position: relative;
	display: block;
}

header nav ul li a::after {
	position: absolute;
	left: 0;
	content: '';
	width: 100%;
	height: 2px;
	background: var(--mainblue);
	bottom: -3px;
	transform: scale(0, 1);
	transform-origin: center top; /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の右端*/
	transition: transform 0.5s;   /*変形の時間*/
}

header nav ul li a:hover::after {
	transform: scale(1, 1); /*ホバー後、x軸方向に1（相対値）伸長*/
}

/* お問い合わせボタン */
.header-bt .bt-common {
	margin-right: 10px;
	z-index: 9999;
}

/* トップに戻るボタン */
.button-to-top {
    z-index: 100;
	position: fixed;
	bottom: 0;
	right: 0;
	margin-bottom: 20px;
	margin-right: 5px;
	width: clamp(50px, 1.786vw + 44.286px, 70px);
	height: clamp(50px, 1.786vw + 44.286px, 70px);
	border-radius: 50%;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
	padding: 8px;
	background-color: #fff;
}

/* ハンバーガーメニューの個人情報保護などのリンクはPC画面時は非表示 */
.info-box {
	display: none;
}

/* === フッター =================================================================================================================== */

/* トップ画面以外共通のお問い合わせボタン */
.cta-common {
	background-color: var(--mainblue);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 50px 0;
	margin-bottom: 80px;
}

.cta-common p {
	color: #fff;
	font-weight: bold;
	font-size: clamp(18px, 16.286px + 0.536vw, 24px);
	margin-bottom: 15px;

}

.cta-common a {
	font-size: clamp(18px, 16.286px + 0.536vw, 24px);
}

.cta-common .bt-common {
	border: 4px #fff solid;
}


footer {
	position: relative;
	box-shadow: 0px 0px 15px -5px #777777;
}

.footer-inner {
	max-width: 1920px;
	margin: 0 auto;

}

.footer-inner img {
	width: clamp(200px, 150.000px + 15.625vw, 300px);
	margin-left: 50px;
}

.footer-inner nav {
	display: flex;
	justify-content: space-between;
	padding-top: 50px;
}

.footer-inner nav ul {
	margin-right: 20px;
	display: flex;
	gap: 20px;
}

.footer-info {
	color: #fff;
	width: 100%;
	font-size: clamp(12px, 0.313vw + 11px, 14px);
	background-color: var(--mainblue);
	margin-top: 50px;
	display: flex;
	justify-content: center;
	padding: 10px 0;
	flex-direction: column;
	align-items: center;
}

.copyright {
	margin-top: 10px;
	font-size: clamp(8px, 0.625vw + 6px, 12px);
}

.footer-info ul {
	display: flex;
	gap: 50px;
	margin-right: 20px;
}

#cta-invisible #footer .cta-common { display: none; }



/* === 404エラー =================================================================================================================== */

#error404 {
	text-align: center;
	margin: 200px auto;

}

/* === 960以下 =================================================================================================================== */

@media (max-width: 960px) {

	body {
		letter-spacing: 0.1em;
	}


/* ---------------ヘッダー----------------- */

	.header-bt {
		display: flex;
		align-items: center;
	}
	.openbtn1{
		display: block;
		position: relative;/*ボタン内側の基点となるためrelativeを指定*/
		cursor: pointer;
		width: 50px;
		height:50px;
		background-color: transparent;
		border: none;
		outline: none;
		border-radius: 5px;
		z-index: 999999;
	}
	
	
	/*ボタン内側*/
	.openbtn1 span{
		display: inline-block;
		transition: all .4s;/*アニメーションの設定*/
		position: absolute;
		right: 14px;
		height: 4px;
		border-radius: 2px;
		background: var(--mainblue);
		width: 45%;
		}
	
	.openbtn1 span:nth-of-type(1) {
		top:15px; 
	}
	
	.openbtn1 span:nth-of-type(2) {
		top:23px;
	}
	
	.openbtn1 span:nth-of-type(3) {
		top:31px;
	}
	
	/*activeクラスが付与されると線が回転して×に*/
	
	.openbtn1.active span:nth-of-type(1) {
		top: 18px;
		left: 18px;
		transform: translateY(6px) rotate(-45deg);
		width: 30%;
	}
	
	.openbtn1.active span:nth-of-type(2) {
		opacity: 0;/*真ん中の線は透過*/
	}
	
	.openbtn1.active span:nth-of-type(3){
		top: 30px;
		left: 18px;
		transform: translateY(-6px) rotate(45deg);
		width: 30%;
	}

	header nav {
		display: block;
		background-color: #fff;
		position: absolute;
		padding-top: 100px;
		position:fixed;
		z-index: 999;
		top:-120%;
		width:100%;
		height: 100vh;
		transition: all 0.6s;
		overflow-y: auto;
	}

	header nav ul {
		flex-direction: column;
		gap: 50px;
		margin-bottom: 50px;
		width: 100%;
	}

	header nav ul li {
		font-size: 18px;
	}

	header nav ul li a {
		padding-left: 30px;
	}

	
	/*アクティブクラスがついたら位置を0に*/
	header nav.panelactive{
		top: 0;
	}

	.info-box {
		display: flex;
		flex-direction: column;
		gap: 20px;
		width: 100%;
		margin-left: 30px;
		margin-bottom: 50px;
	}

	header nav ul li a::after {
		position: absolute;
		left: 0;
		content: '';
		width: 100%;
		height: 2px;
		background: rgb(189, 189, 197);
		bottom: -8px;
		transform: revert;
		transform-origin: revert; /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の右端*/
		transition: transform revert;   /*変形の時間*/
	}


/* ---------------フッター----------------- */

	footer nav {
		flex-direction: column;
	}

	.footer-inner nav ul {
		margin-right: revert;
		flex-direction: column;
		align-items: center;
	}

	.footer-inner img {
		margin-left: revert;
	}

	.footer-info ul {
		flex-direction: column;
		gap: 5px;
		align-items: center;
		margin-right: 0;
	}


}