@charset "UTF-8";

/*=======================================================*/
/*      		セクション毎のCSS   			  		  */
/*======================================================*/


/*======= 共通 ======*/

/* 親要素からはみ出して画面いっぱいに */
.full {
	margin: 0 calc(50% - 50vw);
	width: 100vw;
}



/*======= TOP ======*/
/*ご挨拶*/
.greeting {
	padding: clamp(40px, 6vw, 90px) 0 var(--v-space);
	background-color: var(--base-color);
	position: relative; /* sectionの位置を相対的にする*/
	z-index: 1; /* 背景画像より上に表示 */
}

.col{
	color:var(--accent-color1);
	font-weight:500;
}

p.cntg{
	text-align:center;
}

@media screen and (max-width: 568px) { 
	span.gr{
		display:none;		
	}
}

.greeting-spot {
	color: var(--accent-color1);
	font-size: 1.2em;
}

.min{
	font-family: 'Zen Old Mincho', serif;
	font-weight:600;
	font-style:normal;
	font-size:20px;
}
@media screen and (min-width: 568px) { 
	.cnt{
		text-align:center;
	}
}

.cntg{
	font-family: 'Zen Old Mincho', serif;
	font-weight:600;
}


.wakup2{
	margin:0 auto;
	border:1px solid #bbb;
	padding:5px;
	border-radius:10px;
	margin-top:2em;
	text-align:center;
	font-weight:500;
	margin-bottom:-0.5em;
}
@media screen and (max-width: 568px) { 
	.wakup2{
		text-align:left;
	}
}

/*------ごあいさつ画像セットここから-----------*/

/* コンテナ */
.gr-item-container {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: flex-start;
}

/* PC：5列固定（最小幅で固定化し、4列化を絶対に阻止） */
.gr-item {
	flex: 0 0 calc(25% - 16px); /* 20%幅を強制 */
	max-width: calc(25% - 16px);
	min-width: calc(25% - 16px); /* ← これが決定打。縮ませない */
	box-sizing: border-box;
	text-align: center;
	/*
	border:2px solid #195F94;
	 */
border-radius:10px;
}

/* タブレット：3列 */
@media (max-width: 1024px) {
	.gr-item {
		flex: 0 0 calc(33.333% - 16px);
		max-width: calc(33.333% - 16px);
		min-width: calc(33.333% - 16px);
	}
	.gr-item-container {
		justify-content: center;
	}
}

/* スマホ：2列 */
@media (max-width: 600px) {
	.gr-item {
		flex: 0 0 calc(33.33% - 16px);
		max-width: calc(33.33% - 16px);
		min-width: calc(33.33% - 16px);
	}
	.gr-item-container {
		justify-content: center;
	}
}

.gr-item h3{
	display: flex;
	align-items: center;      /* ←上下中央揃えの本体 */
	justify-content: center;  /* ←左右中央（必要なければ削除OK） */

	font-weight: 500 !important;
	font-style: normal;
	background-color: var(--accent-color1);
	width: 100%;
	height: 2.5em;            /* ←2行でも潰れない程度に少し高く */
	border-radius: 0 0 8px 8px;
	color: white;

	/* 余白は flex では不要なので削除 */
	padding: 0;

	font-size: clamp(14px, 2.5vw, 17px);
	line-height:110%;

	font-family: 'YakuHanJPs', 'Noto Sans Japanese', sans-serif, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "MS Pゴシック", "MS PGothic", Arial, Helvetica, Verdana !important;
}

@media screen and (max-width: 568px) { 
	.gr-item H3{
		font-size:11px;
	}
}


/* 枠：画像と同じ4:3比率で固定 */
.gr-item figure {
	margin: 0;
	padding: 0;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 4 / 3;   /* ← 700×525px 用（4:3） */
	border-radius: 10px 10px 0 0; /* 必要なら */
}

/* 画像：枠に合わせてトリミングしてぴったり */
.gr-item figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;   /* ← 枠いっぱいに拡大して中央でトリミング */
	display: block;      /* 画像下に隙間が出ない */
}

/* タブレット縦・スマホ */
@media (max-width: 1024px) {
	.gr-item {
		flex: 1 1 calc(33.33% - 16px); /* 2列に変更 */
		max-width: calc(33.33% - 16px);
	}
	.gr-item-container {
		justify-content: center; /* 最後の1個を中央に */
	}
}

@media (max-width: 600px) {
	.gr-item {
		flex: 1 1 calc(33.33% - 16px); /* 2列に変更 */
		max-width: calc(33.33% - 16px);
	}
	.gr-item-container {
		justify-content: center; /* 最後の1個を中央に */
	}
}

/*------ごあいさつ画像セットここまで-----------*/


/*======= コンテンツ ======*/



/*=== Service サービス内容 ===*/
.secS{
	padding: var(--v-space) 0;
	position: relative;
	z-index: 1;
	background-color: #f7f7f7;
	background-image: repeating-linear-gradient(0deg, #e6e6e6 0, #e6e6e6 1px, transparent 1px, transparent 15px), repeating-linear-gradient(90deg, #e6e6e6 0, #e6e6e6 1px, transparent 1px, transparent 15px);
	background-size: 15px 15px;
}

/*=== Repair 修理 ===*/

.secR {
	padding: var(--v-space) 0;
	background-color:white;
}

/*=== Inspection 車検 ===*/



.secIs {
	padding: var(--v-space) 0;
	background-color: var(--sub-color1);
}

.mkr {
	background: linear-gradient(to bottom, transparent 60%, #ffeb3b 60%);
	padding: 0 2px; /* 左右の余白 */
	font-weight:500;
}

.mkrR{
    background: linear-gradient(
        to bottom,
        transparent 60%,
        #8c2b2f33 20%
    );
    padding: 0 2px;
}

.wakup{
	background-color:var(--accent-color1);
	color:white;
	padding:5px;
	border-radius:10px;
	margin-top:2em;
	text-align:center;
	font-weight:500;
	margin-bottom:-0.5em;
}

.waku{
	color:var(--accent-color1);
	padding-bottom:30px;
	border-radius:10px;
	margin-top:2em;
	font-weight:800 !important;
	line-height:220%;
	font-size:1.1em;
	font-family: 'Zen Old Mincho', serif;
}
@media screen and (max-width: 568px) { 
	.waku{
		text-align:left;
		font-size:1.3em;
	}
}

/*=== Access アクセス ===*/

.access_sec1{
	padding: var(--v-space) 0;
	background-color: #FFF;

	position: relative; /* sectionの位置を相対的にする*/ 
	z-index: 1; /* 背景画像より上に表示 */ 
}

/*======= FAQ ======*/
.faq_sec1 {
	padding: var(--v-space) 0;
	background-color: white;

	position: relative;
	/* sectionの位置を相対的にする*/
	z-index: 1;
	/* 背景画像より上に表示 */
}

.faq-item {
	display: grid;
	grid-template-columns: 1.5em 1fr;
	column-gap: 10px;
	row-gap: 5px;
}

.faq-label {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: bold;
	font-size: 110%;
	line-height: 1.5;
	border-radius: 3px;
	width: 1.5em;
	text-align: center;
	align-self: start;
	/* lavelを上揃えに */
}

.faq-label.q {
	background-color: var(--main-color);
}

.faq-label.a {
	background-color: var(--accent-color1);
}

.faq-question,
.faq-answer {
	margin: 0;
	line-height: 1.6;
	text-align: justify;
}

.faq-question {
	font-weight: bold;
}

hr.faqHr {
	height: 0px;
	border: 1px dashed var(--accent-color1);
	margin: 20px auto;
}


/*======= 会社案内ページ ======*/
/*会社案内*/
.info_sec1{
	padding: var(--v-space) 0;
	background-color: #FFF;
	background-image: url(../img/bg_04.jpg);
	background-size:cover;
	background-position: top;

	position: relative; /* sectionの位置を相対的にする*/ 
	z-index: 1; /* 背景画像より上に表示 */ 
}
/* 概要・アクセス部分のテーブル */
.info1 {
	font-weight: bold;
	border-bottom: 1px dashed var(--accent-color2);
	padding: 5px;
	width: 5.25em;
}
.info2 {
	border-bottom: 1px dashed var(--accent-color2);
	padding: 5px;
	width: 400px;
}
@media screen and (max-width: 568px) {
	.info1 {
		display: block;
		padding: 8px 2px 2px 2px;
		width: 100%;
		border-bottom: 1px solid rgba(255,255,255,0);
	}
	.info2 {
		display: block;
		padding: 2px;
		width: 99%;
	}
}

.info-sec1-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 5px 5px;
}

@media (min-width: 568px) {
	.info-sec1-container {
		grid-template-columns: repeat(6, 1fr);
	}
}

/*会社概要*/
.bg_b{
	background: rgba(255, 255, 255, 0.98);
	padding:40px;
}
@media screen and (max-width: 568px) {
	.bg_b {
		padding: 20px;
	}
}

/* カード全体 */
.info-card__item {
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* ← 左詰め */
	gap: 5px;
	padding: 20px;
	box-sizing: border-box;
}

/* 各アイテム */
.info-card__item div {
	flex: 0 0 auto;
	line-height: 0; /* 画像下の余白を消す */
}

/* 画像設定 */
.info-card__item div img {
	height: 280px;       /* ← 高さを揃える（可変にしたい場合は後述） */
	width: auto;         /* ← 比率を維持して横幅は自動 */
	display: block;
	object-fit: contain;   /* ← トリミングあり。全体表示なら contain */
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	background: #fafafa;
	transition: transform 0.3s ease;
}
@media screen and (max-width: 568px) { 
	/* 画像設定 */
	.info-card__item div img {
		height: 110px;       /* ← 高さを揃える（可変にしたい場合は後述） */
	}
	.info-card__item {
		gap: 5px;
		padding: 10px;
	}
}

/* スマホ時：高さを少し小さく */
@media (max-width: 600px) {
	.info-card__item div img {
		width:auto;
	}
}


/*======= 調整 ======*/
.l-c {
	margin-right: auto;
	margin-left: auto;
}

.spot-heading01 {
	font-size: clamp(40px, 6vw, 60px);
	font-style: italic;
	text-align: center;
	font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
}
.spot-heading02 {
	font-size: clamp(22px, 2.7vw, 30px);
	line-height: 1em;
	font-weight: 700;
	text-align: center;
	font-family: 'YakuHanJPs', 'Noto Sans Japanese', sans-serif, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "MS Pゴシック", "MS PGothic", Arial, Helvetica, Verdana;
}


strong{
	font-weight:normal;
}

/*全h3*/
h3{
	font-family: 'Zen Old Mincho', serif;
	font-weight:500;
	font-style:normal;
}

