@charset "utf-8";
/* TruckCALL CSS */
:root {
	--bass: #365f97;
	--dark: #0a1628;
	--pale: #eff3f4;
	--point: #06d6a0;
	--grayText: #64748b;
	--grayBorder: #c0c0c0;
	--btRed: #f50000;
	--btBlue: #1d4ed8; 
	--radius: 12px;
}



* { box-sizing: border-box; margin: 0; padding: 0; }
::before, ::after {box-sizing: border-box;}
body {font-family: 'Noto Sans JP', sans-serif; color: #1e293b; line-height: 1.6; background: #ffffff; scroll-behavior: smooth; }
a {text-decoration: none; color: inherit; transition: all 0.3s ease-in-out; }
ul {list-style: none;}
@media (min-width: 768px) {.dispSp{display: none}}
@media (max-width: 767px) {.hideSp {display: none}}

img {display: block;width: 100%;height: auto;}
header {z-index: 100;}
.menu-trigger {z-index: 110;}	
.green {font-style: normal;color:var(--point);}
.flex { display: flex; }
.grid {display: grid;}


main > section {
	background: #fff;
}
@media(min-width:768px){main > section {padding: 110px 0 80px 0;}}
@media (max-width: 767px) {main > section{padding: 80px 0 50px 0;}}

main > section > div {
	padding-left: 1rem;
	padding-right: 1rem;
}
@media (min-width: 768px) {
	main > section > div {
		max-width: 1200px;
		margin-right: auto;
		margin-left: auto;
	}
	main > section#contact > div {max-width: 56rem;}
	main > section#price > div {max-width: 56rem;}
	main > section#news > div {max-width: 56rem;}
	main > section#faq > div {max-width: 48rem;}
}
	
@media (max-width: 767px) {
	main > section > div {
		width: 94%;
		margin: auto;
	}
}

h2 {
	margin-bottom: 2rem !important;
	font-size: 1.9rem !important;
	font-weight: 900 !important;
	text-align: center;
	color: #000;
}
@media (max-width: 767px) {
	h2 {font-size: 5.4vw !important;}
}


.tit {
	margin-bottom: 4rem;
	text-align: center;
}
.tit h2 {
	margin-bottom: 1rem !important;
}
.tit p {
	margin-top: 8px;
	font-size: 1.0rem;
	font-weight: normal;
	color: var(--grayText);
}
.tit p span{
	display: inline-block;
}

.btn1 a,
.btn2 a {
	display: table;
	padding: 1em 2em;
	color: #fff;
	font-weight: 700;
	text-align: center;
	border: 1px solid #fff;
	border-radius: 0.75rem;
}
.btn1 a {background: var(--btRed);}
.btn2 a {background: var(--btBlue);}



/* --- ヘッダー・特定のカスタムスタイル --- */
header {
	position: fixed;
	z-index: 50;
	top: 0;
	left: 0;
	width: 100%;
	padding: 10px 0;
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
	header > div {
		display: flex;
		justify-content: space-between;
		width: 90%;
		max-width: 1800px;
		margin-right: auto;
		margin-left: auto;
	}
}
@media (max-width: 767px) {
	header > div {
		width: 94%;
		margin: auto;
	}
}

#logo {
	flex-basis: 30%;
}
#logo img {
	width: 100%;
	max-width: 313px;
	height: auto;
	margin-top: 7px;
}
@media (max-width: 767px) {
	#logo img {
		width: 40%;
		margin-top: 5px;
	}
}

@media (min-width: 768px) {
	header nav {
		width: 70%;
		flex-basis: 70%;
		display: flex;
		justify-content: flex-end;
	}
	header nav ul{
		display: flex;
		justify-content: flex-end;
		margin-top: 1em;
	}
	header nav li{margin: auto 1em;}
	header nav li:last-of-type a {
		line-height: 1;
		padding: 0.8em 1em;
		background: var(--bass);
		border-radius: 4px;
		color: #fff;
	}		
}

@media screen and (min-width: 768px) and (max-width: 1100px) {
	header nav li{font-size: 1.5vw;}
}

header nav li a:hover{color: #2563eb;}


/* --- ハンバーガーボタン (767px以下のみ表示) --- */
.menu-trigger {
	display: none; /* デフォルト非表示 */
}

@media (max-width: 767px) {
	.menu-trigger {
		position: absolute;
		top: 50%;
		right: 15px;
		transform: translateY(-50%);
		display: block;
		width: 38px;
		height: 38px;
		background: #fff;
		border-radius: 4px;
		cursor: pointer;
		z-index: 100;
		transition: all 0.3s ease-in-out;
	}

	/* 中央ライン (before) */
	.menu-trigger::before {
		content: "";
		display: block;
		width: 76%;
		height: 2px;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		background: var(--bass); /* ラインの色 */
		transition: all 0.3s ease-in-out;
	}

	/* アクティブ時の中央ライン（消える） */
	.menu-active .menu-trigger::before {
		width: 0px;
		height: 0px;
		opacity: 0;
	}

	/* 上下ラインの親 (span) */
	.menu-trigger span {
		display: block;
		width: 76%;
		height: 58%;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		transition: all 0.3s ease-in-out;
	}

	/* 上下ライン (spanのbefore/after) */
	.menu-trigger span::before,
	.menu-trigger span::after {
		content: '';
		position: absolute;
		right: 0;
		width: 100%;
		height: 2px;
		background: var(--bass);
		transition: all 0.3s ease-in-out;
	}

	.menu-trigger span::before { top: 0px; }
	.menu-trigger span::after { bottom: 0px; }

	/* アクティブ時の上下ライン（クロス） */
	.menu-active .menu-trigger span::before,
	.menu-active .menu-trigger span::after {
		top: 50%;
		right: 0;
		transform-origin: 50% 50%;
	}

	.menu-active .menu-trigger span::before {
		transform: rotate(-135deg);
	}

	.menu-active .menu-trigger span::after {
		transform: rotate(135deg);
	}

	/* --- ナビゲーション本体 --- */
	header nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		height: 100vh;
		background: rgba(255, 255, 255, 0.98);
		box-shadow: -5px 0 15px rgba(0,0,0,0.1);
		transition: all 0.4s ease-out;
		z-index: 90;
		padding-top: 80px;
		opacity: 0;
		visibility: hidden;
	}

	.menu-active header nav {
		right: 0;
		opacity: 1;
		visibility: visible;
	}

	header nav ul {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 2rem 0;
	}

	header nav li {
		margin: 1rem 0;
		width: 80%;
		text-align: center;
	}
}		

/* ---- section  headerImage h1 --------------------------*/
#hero {
	background: url('img/intro.webp') no-repeat center center / cover;
}
@media (min-width: 768px) {
	#hero {
		padding-top: 8rem;
		padding-bottom: 5rem;
	}
}
@media (max-width: 767px) {
	#hero {
		padding-top: 5rem;
		padding-bottom: 2rem;
	}
}

#introBlock {margin: auto;}

@media (min-width: 768px) {
	#introBlock {
		display: grid;
		align-items: end;
		grid-template-columns: 65% 31%;
		column-gap: 4%;
		width: 90%;
		max-width: 1500px;
	}
}
@media (max-width: 767px) {
	#introBlock {width: 100%;}
}

@media (min-width: 768px) {
	#introBlock .blockL {max-width: 1040px;}
}

h1 {
	display: table;
	margin-top: 0;
	background: #000;
	color: #fff;
	font-weight: 700;
	border-radius: 1em;
}
h1 span {font-size: 0.9em;}

#introBlock .spBlock ul {margin-bottom: 1rem !important;}

#introBlock .blockL .catch {
	color: #fff;
	text-shadow: 1px 1px 4px #000;
	font-weight: 700;
}

#introBlock .blockL li {
	position: relative;
	padding-left: 1.5em;
	font-weight: normal;
	color: #fff;
	line-height: 2;
	
}

#introBlock .blockL li::before {
	content: " ";
	display: block;
	width: 1em;
	height: 1em;
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	background: url("img/check.svg") no-repeat center center / contain;
}

@media (min-width: 768px) {
	h1 {
		margin-bottom: 2rem;
		padding: 1rem 2rem;
		font-size: 1.5vw;
	}
	#introBlock .logo {
		width: 33%;
		max-width: 100%;
		margin-left: 2rem;
	}
	#introBlock .spBlock {padding-left: 2rem;}
	#introBlock .blockL .catch {
		margin-bottom: 0.7em;
		font-size: 2vw;
	}
	#introBlock .blockL li {
		margin-bottom: 5px;
		line-height: 1.6;
		font-size: 1.5vw;
	}
}

@media (max-width: 767px) {
	h1 {
		margin-bottom: 1rem;
		padding: 0.8rem 1rem;
		font-size: 3.2vw;
	}
	#introBlock .logo{
		width: 47%;
		margin-left: 1rem;
	}
	#introBlock .spBlock {
		padding-left: 1rem;
		background: url("img/intro_phone.webp") no-repeat right top / 36% auto;
	}
	#introBlock .blockL .catch  {
		margin-bottom: 0.7em;
		font-size: 4.5vw;
	}
	#introBlock .blockL li{
		font-size: 3.6vw;
	}
}

@media (min-width: 2710px) {
	h1 {font-size: 2.2rem !important;}
	#introBlock .blockL .catch  {font-size: 2.9rem !important;}
	#introBlock .blockL li {font-size: 2rem !important;}
}


#introBlock .btnG a {
	background: #2563eb;
	color: #fff;
	font-weight: 700;
	border: 1px solid #fff;
	border-radius: 0.75rem;
}

@media (min-width: 768px) {
	#introBlock .btnG {
		margin-top: 20px;
	}
	#introBlock .btnG p {
		max-width: 15em;
	}
	#introBlock .btnG a {
		display: table;
		width: 22em;
		padding: 1em 2em;
		font-size: 1.2rem;
	}
}
@media (max-width: 767px) {
	#introBlock .btnG a {
		display: block;
		width: 70%;
		padding: 0.7em 0.5em;
		font-size: 3.3vw;
		text-align: center;
	}
}
#introBlock .btnG:nth-of-type(1) a {
	background: red;
}

#introBlock .btnG a:hover {
	box-shadow: 0 0 8px #fff;
}


@media (max-width: 767px) {
	#introBlock .blockR  {display: none;}
}
@media (min-width: 768px) {
	#introBlock .blockR picture {display: block;}
	#introBlock .blockR picture img  {max-width: 380px;}
}

		

/* ---- About Section（30秒でわかるTruckCALL） --------------------------*/
#about h2 {
	color: var(--bass);
}

#about .grid {
	margin-bottom: 3rem;
}
@media (min-width: 1100px) {
	#about .grid {
		display: grid; 
		grid-template-columns: 48% 48%; 
		grid-template-rows: auto; 
		gap: 2em 4%; 
		grid-template-areas: 
			"txt video"; 
		align-items: center;
	}
}
@media screen and (max-width: 1099px) {
	#about .grid {
		display: grid; 
		grid-template-columns: 1fr; 
		grid-template-rows: auto auto; 
		gap: 40px 0px; 
		grid-template-areas: 
			"txt"
			"video";
	}
}
#about .txt h3{
	margin-bottom: 1.2em;
	padding-left: 0;
	font-weight: 700;
}
@media (min-width: 768px) {
	#about .txt h3{font-size: 1.2rem;}
}
@media (max-width: 767px) {
	#about .txt h3{font-size: 3.8vw;}
}

#about .txt p{
	grid-area: txt;
	justify-self: stretch; 
	margin-bottom: 1em;
}
#about .video {
	position: relative; /* ローダーの基準点にするため追加 */
	display: block;
	grid-area: video;
	width: 100%;            /* 横幅を親要素いっぱいに広げる */
	max-width: 800px;       /* 必要であれば最大幅を制限（任意） */
	margin: 0 auto;         /* 中央寄せ */
}
@media (max-width: 767px) {
	#about .video {
		background: #000;
		aspect-ratio: 16 / 9; /* コンテナ自体に比率を持たせる */
	overflow: hidden;
	}
}
#about .video p{
	text-align: center;
	font-size: 0.8rem;
}
@media (max-width: 767px) {
	#about .video p{color: #c0c0c0;}
}

#about .video video {
	display: block;
	width: 100%;            /* コンテナの幅に合わせる */
	aspect-ratio: 16 / 9;   /* YouTubeなどの標準的な比率を指定 */
	height: auto;           /* 高さは比率に基づいて自動計算 */
	
	object-fit: cover; /* ポスター画像を枠いっぱいに表示 */
	opacity: 0; /* 最初は非表示にしておき、JSで1にする */
    transition: opacity 0.8s ease; /* ふわっと表示させる */
    z-index: 1;
}	

/* ローダーのスピンアニメーション */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: var(--bass); /* 変数を使用 */
    border-radius: 50%;
    position: absolute; /* ビデオの上に重ねる */
    top: calc(50% + 10px); /* 中央（Pタグの分を考慮して調整） */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10; /* ビデオより上に配置 */
    display: block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
@keyframes rotation {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}


#about .btn1 a{
	margin-left: auto;
	margin-right: auto;
}
@media (min-width: 768px) {
	#about .btn1 a{
		width: 22em;
		font-size: 1.2rem;
	}
}


/* --- Problem section （こんな課題、抱えていませんか？）　--- */
#problem {
	background: #0f172a;
	color: #fff;
}
#problem h2{
	color: #60a5fa;
}
#problem .tit p {
	color: #fff;;
}

@media (min-width: 768px) {
	#problem .grid {
		gap: 5% !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: center;
		margin-left: auto;
		margin-right: auto;
	}
}
#problem article {
	position: relative;
	margin-bottom: 2rem;
}
@media (min-width: 768px) {
	#problem article {align-self: stretch;}
}

#problem article svg {
	display: block;
	width: 2.8rem;
	height: 2.8rem;
	position: absolute;
	left: 5px;
	top: 7px;
}
@media (min-width: 768px) {
	#problem article svg {align-self: stretch;} 
}

#problem article h3 {
	margin-bottom: 1.5em;
	padding: 0 0 12px 5rem;
	font-size: 1.2rem;
	border-bottom: 5px solid #d75150;
}
#problem article h3 span{
	display: inline-block;
}
#problem article li {
	position: relative;
	margin-bottom: 0.6em;
	padding-left: 1.5em;
	color: #bfbcbf;
}
#problem article li::before {
	position: absolute;
	top: 0.4em;
	left: 0;
	content: "";
	display: block;
	width: 0.3em;
	height: 1px;
	
	font-size: 2em;
	background-color: #d75150;
}



/* --- what section （TruckCALLで解決できること）　--- */
#what {background: var(--bass);}
#what h2,
#what .tit p{
	color: #fff;
}

@media (min-width: 768px) {
	#what .grid {
		display: grid; 
		grid-template-columns: repeat(3, 1fr);
		/* h3, picture, p の3つの行を定義 */
		grid-template-rows: auto auto 1fr; 
		gap: 0px 4%;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 14rem;
	}
}
@media screen and (min-width: 768px) and (max-width: 1100px) {
	#what .grid {
		gap: 0 5%;
		margin-bottom: 80px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	#what .grid {
		display: flex;
		flex-direction: column;
		gap: 30px;
	}
}

#what .grid article {
	border-radius: var(--radius);
	background: #fff;
}
@media (min-width: 768px) {
	#what .grid article {
		display: grid;
		grid-template-rows: subgrid;
		grid-row: span 3;
		margin-bottom: 40px;
	}
}
@media (max-width: 767px) {
	#what .grid article {
		display: grid; 
		grid-template-columns: 0.8fr 1fr; 
		grid-template-rows: auto auto; 
		gap: 25px 0; 
		grid-template-areas: 
			"h3 h3"
			"txt img";
		margin-bottom: 2rem;
		padding-bottom:18px;
	}
}


#what .grid h3 {
	font-weight: 700;
	margin-bottom: 0;
}
@media (min-width: 768px) {
	#what .grid h3 {
		/* padding-topを2emから1em（半分）程度に落とし、上下の余白を制御 */
		padding: 1rem 0.5rem;
		font-size: 1.1rem;
		text-align: center;
		/* subgridによる強制的な引き伸ばしを避けるため、自立した配置にする場合は以下を調整 */
		display: flex;
		align-items: center;
		justify-content: center;
	}
}
@media (max-width: 767px) {
	#what .grid h3 {
		grid-area: h3;
		margin-top: 1em;
		font-size: 4.4vw;
		text-align: left;
		background: var(--pale);
		padding-left: 18px;
	}
}
#what .grid h3 span {display: inline-block !important;}

@media (min-width: 768px) {
	#what .grid picture {
		text-align: center;
		background: var(--pale);
	}
}
@media (max-width: 767px) {
	#what .grid picture {
		grid-area: img;
		justify-self: stretch; 
		align-self: start;
	}
}

#what .grid picture img{
	width: 80%;
	height: auto;
	margin: auto;
}
@media screen and (min-width: 768px) and (max-width: 1100px) {
	#what .grid picture img{width: 80%;}
}
@media (max-width: 767px) {
	#what .grid picture img{
		width: 80%;
		max-width: 400px;
		height: auto;
	}
}


@media (max-width: 767px) {
	#what .grid article:last-of-type picture img{background: #fff;}
}

#what .grid p{
	text-align: left;
	color: #000;
}
@media (min-width: 768px) {
	#what .grid p{
		padding: 1em 1.5em;
		line-height: 1.5;
	}
}
@media (max-width: 767px) {
	#what .grid p{
		grid-area: txt;
		justify-self: start; 
		align-self: start;
		padding-left: 18px;
		font-size: 0.9em;
	}
}

#what .grid article:last-of-type {
	background: var(--dark);
}
@media (max-width: 767px) {
	#what .grid article:last-of-type h3{background: var(--dark);}
}

#what .grid article:last-of-type p{color: #fff;}

#what .grid article:last-of-type p em.green{font-weight: bold;}
@media (min-width: 768px) {
	#what .grid article:last-of-type p em.green{font-size:2em;}
}
@media (max-width: 767px) {
	#what .grid article:last-of-type p em.green{font-size: 4.2vw;}
}


/* --- features section （現場を加速させる、TruckCALLの機能）　--- */
#features {
	background: var(--pale);
}

#features .grid {
	display: grid;
}
@media (min-width: 768px) {
	#features .grid {
		gap: 2rem;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: center;
	}
}
@media (max-width: 767px) {
	#features .grid {
		gap: 1rem;
		grid-template-columns: repeat(1, minmax(0, 1fr));
		align-items: center;
	}
}


#features article {
	background: #fff;
	border: 1px solid var(--grayBorder);
	border-radius: var(--radius);
}
@media (min-width: 768px) {
	#features article {
		grid-template-rows: auto auto auto;
		align-items: center;
		align-self: stretch; 
		padding: 1.7rem;
		gap: 2rem;
	}
}
@media (max-width: 767px) {
	#features article {
		display: grid;
		grid-template-columns: 2.8em 1fr; 
		grid-template-rows: auto auto; 
		gap: 16px 0px; 
		grid-template-areas: 
			"img h3"
			"txt txt";
		padding: 1rem;
	}
}


#features .grid div{
	display: block;
	position: relative;
	background: var(--bass);
	border-radius: 50%;
}
@media (min-width: 768px) {
	#features .grid div{
		margin: auto auto 1rem auto;
		padding-top: 8px;
		width: 3rem;
		height: 3rem;
	}
}
@media (max-width: 767px) {
	#features .grid div{
		padding-top: 8px;
		width: 2rem;
		height: 2rem;
		justify-self: start; 
		align-self: center; 
		grid-area: img; 
	}
}

#features .grid div svg {
	display: block;
	margin: auto auto;
}
@media (min-width: 768px) {
	#features .grid div svg {
		width: 1.8rem;
		height: 1.8rem;
	}
}
@media (max-width: 767px) {
	#features .grid div svg {
		width: 1rem;
		height: 1rem;
	}
}

#features h3 {
	font-weight: 700;
	margin-bottom: 1rem;
	color: #000;
}
@media (min-width: 768px) {
	#features h3 {
		align-items: top;
		justify-self: center; 
		font-size: 1rem;
	}
}
@media (max-width: 767px) {
	#features h3 {
		grid-area: h3; 
		justify-self: start; 
		align-self: center;
		font-size: 3.7vw;
	}
}
#features article p {line-height: 1.6;}
@media (min-width: 768px) {
	#features article p {font-size: 0.9rem;}
}
@media (max-width: 767px) {
	#features article p {
		grid-area: txt;
		font-size: 3vw;
	}
}




/* --- 導入実績 --------------------------------------*/

/*#case .grid {
	@media (min-width: 768px) {
		gap: 4rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: center;
	}
}
#case article {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 1.5rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: 0.3s;
}
@media (min-width: 768px) {
	#case article { flex-direction: row; }
}
#case article:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
#case .case-logo {
	background: #f1f5f9;
	padding: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 30%;
}
*/

/* --- price section（ご利用料金） --------------------- */
#price {background: #fff;}
#price .block {
	background-color: #ffffff;
	padding: 2rem;
	border-width: 1px;
	border-color: #e2e8f0;
	border-radius: 1.5rem;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}
@media (min-width: 768px) {
	#price .block {padding: 3rem;}
}
#price .flex {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem;
}
@media (min-width: 768px) {
	#price .flex {
		flex-direction: row;
		justify-content: space-between;
	}
}
#price .pay{font-weight: 700;}
@media (min-width: 768px) {
	#price .pay{font-size: 1.2rem;}
}
@media (max-width: 767px) {
	#price .pay{
		font-size: 1.2rem;
		text-align: center;
	}
}

@media (min-width: 768px) {
	#price .pay strong{font-size: 3rem;}
}
@media (max-width: 767px) {
	#price .pay strong{font-size: 2.0rem;}
}

#price ul {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.875rem;
	color: var(--grayText);
	line-height: 1.6;
}

#price li{
	position: relative;
	margin-bottom: 0.6em;
	padding-left: 1.2em;
	font-size: 0.875rem;
	line-height: 1.2;
}
#price li::before{
	content: "※";
	font-size: 1em;
	display: block;
	width: 1em;
	height: 1em;
	position: absolute;
	left: 0;
	top: 0;
}
@media (max-width: 767px) {
	#price .btn1 {
		display: block;
		width: 90%;
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}
	#price .btn1 a{
		display: block;
		width: 100%;
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}
}






/* --- faq section（よくある質問） --------------------- */
#faq {background: var(--pale);}
#faq details {
	margin-bottom: 8px;
	padding: 1rem 2rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
}
#faq .js-details summary{
	position: relative;
	padding: 1rem 0 1rem 0;
	font-weight: 700;
	color: #000;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: 0.3s ease-out;
}

/* --- PCでのHover設定 --- */
@media (hover: hover) {
	#faq .js-details summary:hover{
		color: var(--bass);
	}
}

/* --- すべての端末：開いている時のテキストカラー --- */
#faq .js-details[open] summary  {
    color: var(--bass)!important;
}

#faq .js-details summary::-webkit-details-marker { display: none; }

/* 閉じている時は中身を隠す */
#faq .js-details .content {
    overflow: hidden;
    height: 0;             /* 初期状態は0 */
    transition: height 0.3s ease-out;
}

/* アイコン（SVG）の初期状態 */
#faq .js-details summary svg {
    transition: transform 0.3s ease; /* 回転のアニメーション */
	background: none;
	border-radius: 50%;
}

/* detailsが開いている時のSVGの動き（上下反転） */
#faq .js-details[open] summary svg {
    transform: rotate(180deg);
	color: #fff;
	background: var(--bass);
}

#faq details p {
	margin: 0;
	padding: 1rem 0;
	font-size: 0.875rem;
	border-top: 1px solid #e2e8f0;
}

/* 中身のアニメーション用ラッパー */
#faq details .content {
    overflow: hidden;
    transition: height 0.3s ease-in-out; /* 高さの変化をアニメーションに */
}


/* --- 問い合わせフォーム ---------------------------*/
#contact .contact-badge { 
	display: inline-flex; /* アイコンとテキストを横並びに */
	align-items: center;  /* 垂直中央揃え */
	gap: 10px;            /* アイコンとテキストの間隔 */
	margin-top: 50px;

	/* 背景とボーダー（透過 green） */
	background: rgba(54,95,151,0.15); 
	border: 1px solid var(--bass);
	border-radius: var(--radius);

	/* テキストスタイル */
	padding: 16px 24px;
	color: var(--dark);
	font-size: .9rem;
	font-weight: 600;	
}
#contact .contact-badge svg {
	width: 20px;
	height: 20px;
	/* HTML側の属性: stroke="currentColor" により、親のcolor(green)が継承されます */
	flex-shrink: 0; /* テキストが長くなってもアイコンが潰れないように設定 */
}
#contact .block {
	padding: 24px;
	border: 1px solid #e2e8f0;
	border-radius: 1.5rem;
	background: #fff;/*var(--pale)*/;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}


#contact form > * + * {
    margin-top: 1.5rem;
}

#contact label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}
#contact .radio-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;  /* 項目同士の隙間（右の余白） */
}

#contact .radio-wrap label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0; 
    gap: 5px; /* ボタンとテキストの間の隙間 */
    font-size: 0.875rem !important;
}

#contact .radio-wrap input[type="radio"] {
    margin: 0;
	font-size: inherit;
    width: 0.875em;/* 幅を文字サイズと全く同じにする */
    height: 0.875em; /* 高さを文字サイズと全く同じにする */
	top: 5px;
}

#contact label span {
    color: #ef4444;
    margin-left: 0.25rem;
}

#contact .grid {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 768px) {
	#contact .grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem 3rem;
	}

}

#contact .flex {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
	width: 20em;
	margin: 1.5em auto;
}

#contact #privacy {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    cursor: pointer;
}

#contact #privacy + label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

#contact #privacy + label a {
    color: #2563eb;
    text-decoration: underline;
}

#contact .btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--btBlue);
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
	transition: opacity 0.3s;
}
#contact .btn-submit:disabled {
    background-color: #ccc;   /* グレーアウト */
    cursor: not-allowed;      /* 禁止カーソル */
    opacity: 0.6;
}
#contact .btn-submit:hover {background: #1d4ed8;}

/* エラーメッセージ（JSで動的に追加される） */
#contact .error-message {
    color: #ef4444; /* 赤色 */
    font-size: 0.75rem; /* ワンサイズ小さく */
    font-weight: 700;
    margin-top: 4px;
    height: 1.2em; /* レイアウト崩れ防止 */
}

/* 入力欄のエラー枠線 */
#contact .input-error {
    border: 2px solid #ef4444 !important;
    background-color: #fff5f5 !important;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="email"],
textarea,
select {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	border: 1px solid #cbd5e1;
	font-size: 1rem;
	outline: none;
	transition: 0.2s;
	background: var(--pale);

	-webkit-appearance: none !important; /* Safari/Chrome用 */
	-moz-appearance: none !important;    /* Firefox用 */
	appearance: none !important;         /* 標準 */
}

input:focus,
select:focus,
textarea:focus {
	border-color: #2563eb;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
textarea {
	min-height: 6em;
	overflow-y: scroll;
	resize: none;
}


.comp main > div {
	margin: 200px auto;
	text-align: center;
}
.comp main > div .btn a {
	display: table;
	margin: 50px auto;
	padding: 0.5em 2em;
	background: #c0c0c0;
	color: #000;
	text-align: center;
	border-radius: 1em;
	white-space: nowrap;
}


/* --- news section（お知らせ） --------------------- */
#news h2 {
	text-align: left;
}

#news .block > * + * {
    border-top: 1px solid #f1f5f9;
}

#news dl {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
	padding-bottom: 1.5em;
    padding-top: 1.5rem;
	border-bottom: 1px solid var(--grayBorder);
}
@media (min-width: 768px) {
	#news dl {
		flex-direction: row;
		align-items: center;
		gap: 2rem;
	}
}

#news dt {
    color: var(--grayText);
    font-size: 0.875rem;
    font-weight: 500;
}

#news dd {
    margin: 0;
    color: #334155;
    font-weight: 500;
}

#news dd a {text-decoration: underline !important;}





/* --- footer --- */
footer {
	padding: 4rem 1rem;
	background: var(--bass);
	color: #ffffff;
	text-align: center;
}
@media (max-width: 767px) {
	footer {padding: 2rem 1rem 5rem 1rem;}
}
footer picture{
	display: table;
	margin: auto auto 10px auto;
	max-width: 400px;
}
@media (max-width: 767px) {
	footer picture{width: 50%;}
}
footer ul.anno {
	display: table;
	margin: auto auto 40px auto;
	text-align: left !important;
	font-size: 0.8em;
}
footer ul.anno li {
	position: relative;
	padding-left: 1.25em;
}
footer ul.anno li::before {
	content: "・";
	display: block;
	font-size: 1em;
	position: absolute;
	left: 0;
	top: 0;
}

footer nav ul {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	margin-bottom: 20px;
}
footer nav li {
	margin: auto 10px;
	font-size: 0.875rem;
}
footer nav li a {
	color: #fff;
}
footer nav li a:hover {
	color: var(--grayText);
}
footer small {
	display: table;
	margin: auto;
	font-size: 0.875rem;
	color: #fff;
}
@media (max-width: 767px) {
	footer small {font-size: 2.8vw;}
}



/* --- スマホ固定フッター (#footerAsk) --- */
@media (min-width: 768px) {
	#footerAsk {
		display: none !important;
	}
}

@media screen and (max-width: 767px) {
	#footerAsk {
		display: flex !important;
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: stretch;
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		z-index: 50;
		background: #fff;
		padding: 3px 0 0 0;
		margin: 0;
		list-style: none;
	}

	#footerAsk li {
		display: flex;
		flex-wrap: nowrap;
		justify-content: center;
		align-items: center;
		border-radius: 6px;
		border: 1px solid #2563eb;
		box-sizing: border-box;
	}

	#footerAsk li a {
		position: relative;
		display: block;
		width: 100%;
		padding: 0em 0 0em 1em;
		color: #fff;
		text-decoration: none;
		font-size: 3.6vw;
		text-align: center;
		line-height: 1.2;
		box-sizing: border-box;
	}

	#footerAsk li a::before {
		position: absolute;
		content: "";
		display: block;
		background-size: contain;
	}

	/* 1つ目のボタン（ホーム/資料請求） */
	#footerAsk li:nth-of-type(1) {
		width: 39.5%;
		margin-right: 0.5%;
		background: #2563eb;
	}
	#footerAsk li:nth-of-type(1) a::before {
		width: 7vw;
		height: 7vw;
		top: 50%;
		left: 1.5em;
		transform: translateY(-50%);
		background: url("img/footerAsk_order.png") no-repeat center center;
		background-size: contain;
		letter-spacing: 2px;
	}

	/* 2つ目のボタン（メイン・お問い合わせ） */
	#footerAsk li:nth-of-type(2) {
		width: 40%;
		background: #2563eb;
	}
	#footerAsk li:nth-of-type(2) a::before {
		width: 1.8em;
		height: 1.8em;
		top: 50%;
		left: 1em;
		transform: translateY(-50%);
		background: url("img/footerAsk_ask.png") no-repeat center center;
		background-size: contain;
	}

	/* 3つ目のボタン（ページトップ） */
	#footerAsk li:last-of-type {
		width: 17.5%;
		margin-left: 0.5%;
		background: var(--bass);
	}
	#footerAsk li:last-of-type img{
		width: 80%;
		margin: auto;
	}
}

/* 縦持ちタブレット (想定: 768px〜959px) */
@media screen and (min-width: 768px) and (max-width: 959px) {
	#footerAsk li a {
		font-size: 0.9rem;
	}
}

/* 横持ちスマホ (想定: landscapeモード) */
@media screen and (max-width: 959px) and (orientation: landscape) {
	#footerAsk li a {
		padding: 0.4em 0 0.6em 1em;
		font-size: 2.2vw !important;
	}
}

/* PC・横持ちタブレット (960px以上) */
@media screen and (min-width: 960px) {
	#footerAsk {
		display: none !important;
	}
}


/* --- ページトップボタン (PC/タブレット) --- */
#ptBtnPc {
	display: none !important;
	opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* PC・タブレット（768px以上）の設定 */
@media screen and (min-width: 768px) {
	#ptBtnPc {
		display: block !important;
		position: fixed;
		bottom: 16px;
		right: 20px;
		width: 60px;
		height: 60px;
		background: var(--bass); 
		border-radius: 50%;
		z-index: 110;
		opacity: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
		transition: all 0.3s ease-in-out;
	}

	/* JavaScriptで付与する表示クラス (.on) */
	#ptBtnPc.on {
		bottom: 20px;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}

	#ptBtnPc:hover {
		transform: translateY(-5px);
		background: var(--btBlue);
		cursor: pointer;
	}

	#ptBtnPc a {
		display: block;
		position: relative;
		width: 100%;
		height: 100%;
	}

	#ptBtnPc a img {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 80%;
		height: 80%;
		object-fit: contain;
	}
}

@media print {
  #ptBtnPc {display: none !important;}
}		

	


