@charset "utf-8";
/* ==========================================================
   上部メニュー
   左の縦メニューを、上に固定した白い横帯へ変えるための追加CSS。
   common.css・common.sp.css・各ページのCSSの後に読み込む（header.php・header-front.php）。
   メニューの中身は global-nav.php、ページ下部のリンクは site-links.php、
   ▼の開け閉めは asset/js/header-top.js。

   メニュー構成（文字だけ）
     クルマを探す｜サービス▼｜店舗情報▼｜会社案内｜採用情報｜ブログ
     ＋ 右に 車検予約・来店予約・お問合せ のボタン

   幅ごとの形
   ・1280px以上 ：1段に並べる。▼の項目はカーソルを当てると小項目が開く
   ・750〜1279px：ロゴ＋予約ボタン3つ＋「≡」。メニューは≡から開き、▼は押すと開く
   ・749px以下  ：今のスマホ表示（赤いメニュー）のまま。▼は押すと開く

   トップページだけ：最初は帯を透明にして動画を全面に見せ、
   少しスクロールすると、少し透ける白い帯が出る（script.js が付ける .fixed を利用）
   ========================================================== */

:root {
	--chance-red: #D8232A;
	--chance-red-pale: #fdf0f0;
	--chance-text: #333;
	--chance-sub: #777;
	--chance-line: #e6e6e6;
	--chance-bar-h: 84px;
}


/* ----------------------------------------------------------
   全ての幅に共通
---------------------------------------------------------- */

/* 右の予約ボタンは、スマホでは出さない（≡メニューの中にあるため） */
.header_cta {
	display: none;
}

/* ▼ボタン（小項目を開くボタン）の初期化 */
.header .gnav__toggle {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* 小項目は、開くまで隠す（1280px以上では下で上書き） */
.header .gnav__sub {
	display: none;
}

.header .has-sub.is-open > .gnav__sub {
	display: block;
}

.header .gnav__sublist,
.header .gnav__areas {
	list-style: none;
}


/* ==========================================================
   749px以下（スマホ）：今の赤いメニューの中で、▼を押すと開く
   ========================================================== */
@media screen and (max-width: 749px) {

	.header .nav_list .gnav__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 225px;
		padding: 8px 0;
		color: #fff;
		font-size: 2rem;
		text-align: left;
	}

	/* ＋／－ の印 */
	.header .gnav__toggle::after {
		content: "＋";
		font-size: 1.8rem;
	}

	.header .has-sub.is-open > .gnav__toggle::after {
		content: "－";
	}

	.header .gnav__sub {
		padding: 4px 0 4px 14px;
		border-left: 2px solid rgba(255, 255, 255, .5);
	}

	.header .nav_list .gnav__sub a {
		display: block;
		width: auto;
		padding: 7px 0;
		color: #fff;
		font-size: 1.5rem;
	}

	.header .gnav__area-name {
		margin: 10px 0 2px;
		color: rgba(255, 255, 255, .8);
		font-size: 1.3rem;
	}
}


/* ==========================================================
   750px以上（パソコン・タブレット）
   ========================================================== */
@media screen and (min-width: 750px) {

	/* ページ内リンクで移動したとき、見出しが帯に隠れないようにする */
	html {
		scroll-padding-top: var(--chance-bar-h);
	}

	/* 左280pxの余白をやめ、帯の高さ分だけ本文を下げる
	   （WordPressが後から出力する標準設定「body{padding-top:0}」に負けないよう、html body と書く） */
	html body {
		margin: 0 !important;
		padding-top: var(--chance-bar-h);
	}

	/* トップページは動画を画面の一番上から見せる */
	body.chance-front {
		padding-top: 0;
	}

	/* トップページの滑らかスクロール領域も全幅にする */
	#luxy {
		width: 100% !important;
	}

	/* ---------- 帯 ---------- */
	/* 白地に、上端の細い赤線と、下の薄い線・影 */
	.header {
		width: 100%;
		height: var(--chance-bar-h);
		background: #fff;
		box-shadow: inset 0 3px 0 var(--chance-red), 0 1px 0 var(--chance-line), 0 2px 12px rgba(0, 0, 0, .06);
		z-index: 1000;
	}

	.header_inner {
		display: flex;
		align-items: center;
		gap: 28px;
		height: 100%;
		padding: 0 28px;
	}

	/* ---------- ロゴ ---------- */
	.header .logo {
		position: static;
		flex: none;
		width: auto;
	}

	.header .title {
		position: relative;
		margin: 0;
		line-height: 0;
	}

	/* 「中古車販売のチャンス」の文字は画面上は隠し、検索・読み上げ用に残す */
	.header .title p {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	/* 白い帯では、文字が赤いロゴ（スマホ用と同じ画像）を使う */
	.header .logo a.pc {
		display: none;
	}

	/* 犬と「CHANCE」の部分だけを見せる（画像の余白を切る） */
	.header .logo a.sp {
		display: block;
		position: relative;
		width: 93px;
		height: 60px;
		overflow: hidden;
	}

	.header .logo a.sp img {
		position: absolute;
		left: -2px;
		top: -9px;
		width: 97px;
		height: 97px;
		max-width: none;
		max-height: none;
	}

	/* ---------- メニュー ---------- */
	/* メニューは右に寄せ、予約ボタンのすぐ左に並べる */
	.header .nav {
		display: flex;
		flex: 1 1 auto;
		justify-content: flex-end;
		align-self: stretch;
		min-width: 0;
	}

	.header .nav_list {
		display: flex;
		align-items: stretch;
		padding-top: 0;
	}

	.header .first-nav {
		width: auto;
		margin: 0;
	}

	/* 帯には出さないもの（≡メニュー・ページ下部・右のボタンにある） */
	.header .second-nav,
	.header .third-nav,
	.header .sns-nav {
		display: none;
	}

	/* ---------- 右の予約ボタン ---------- */
	/* 車検予約・来店予約は赤いボタン、お問合せは赤い枠のボタン */
	.header_cta {
		display: flex;
		flex: none;
		gap: 10px;
	}

	.header_cta a {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		height: 40px;
		padding: 0 14px;
		border: 2px solid var(--chance-red);
		border-radius: 20px;
		background: var(--chance-red);
		color: #fff;
		font-size: 13px;
		font-weight: 700;
		letter-spacing: .08em;
		white-space: nowrap;
		box-shadow: 0 3px 8px rgba(216, 35, 42, .25);
		transition: transform .2s, box-shadow .2s, background-color .35s, color .35s, border-color .35s;
	}

	.header_cta a:hover,
	.header_cta a:focus-visible {
		transform: translateY(-1px);
		box-shadow: 0 5px 12px rgba(216, 35, 42, .32);
	}

	.header_cta a.is-outline {
		background: #fff;
		color: var(--chance-red);
		box-shadow: none;
	}

	.header_cta svg {
		flex: none;
		width: 18px;
		height: 18px;
	}

	/* ≡ボタンと暗い幕は、1280px以上では使わない */
	.header .hamburger,
	.header .black_bg {
		display: none;
	}

	/* ==========================================================
	   トップページ：最初は透明、スクロールすると白い帯
	   ========================================================== */
	.header--front {
		transition: background-color .35s, box-shadow .35s;
	}

	/* 最初の状態（透明） */
	.header--front:not(.fixed) {
		background: transparent;
		box-shadow: none;
	}

	/* 文字が読みやすいよう、画面の上の方だけ動画をうっすら暗くする */
	.header--front::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 160px;
		background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
		pointer-events: none;
		transition: opacity .35s;
		z-index: -1;
	}

	.header--front.fixed::before {
		opacity: 0;
	}

	/* スクロール後：少し透ける白（すりガラスのような見た目） */
	.header--front.fixed {
		background: rgba(255, 255, 255, .88);
		-webkit-backdrop-filter: blur(12px) saturate(1.4);
		backdrop-filter: blur(12px) saturate(1.4);
	}

	/* ロゴ：最初は白文字、スクロール後は赤文字に切り替える */
	.header--front .logo a.pc {
		display: block;
		position: absolute;
		left: -2px;
		top: -1px;
		width: 96px;
		height: 62px;
		overflow: hidden;
		transition: opacity .35s;
	}

	.header--front .logo a.pc img {
		position: absolute;
		left: -20px;
		top: -9px;
		width: auto;
		height: 81px;
		max-width: none;
		max-height: none;
	}

	.header--front .logo a.sp {
		transition: opacity .35s;
	}

	.header--front:not(.fixed) .logo a.sp,
	.header--front.fixed .logo a.pc {
		opacity: 0;
		pointer-events: none;
	}

	/* 最初の状態のボタン：お問合せは白い枠 */
	.header--front:not(.fixed) .header_cta a.is-outline {
		border-color: #fff;
		background: transparent;
		color: #fff;
	}}


/* ==========================================================
   1280px以上：1段に並べ、▼はカーソルを当てると小項目が開く
   ========================================================== */
@media screen and (min-width: 1280px) {

	.header .gnav {
		display: flex;
		align-items: stretch;
		gap: 30px;
		height: 100%;
	}

	/* メニューと予約ボタンの間を少し空ける */
	.header_cta {
		margin-left: 12px;
	}

	.header .first-nav,
	.header .first-nav .nav_item {
		height: 100%;
	}

	.header .first-nav .nav_item {
		display: flex;
		position: relative;
		align-items: center;
		margin: 0;
	}

	/* 大項目の文字 */
	.header .nav_list .gnav__link {
		display: flex;
		position: relative;
		align-items: center;
		padding: 8px 0;
		color: var(--chance-text);
		font-size: 15px;
		font-weight: 700;
		letter-spacing: .06em;
		white-space: nowrap;
		transition: color .35s;
	}

	/* マウスを重ねたとき、下線を出す */
	.header .gnav__link::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 2px;
		background: var(--chance-red);
		transform: scaleX(0);
		transition: transform .25s;
	}

	.header .gnav__item:hover > .gnav__link::before,
	.header .gnav__link:focus-visible::before,
	.header .has-sub.is-open > .gnav__link::before {
		transform: scaleX(1);
	}

	/* ▼の印 */
	.header .gnav__toggle::after {
		content: "";
		width: 6px;
		height: 6px;
		margin: -4px 0 0 9px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform .25s, margin .25s;
	}

	.header .has-sub:hover > .gnav__toggle::after,
	.header .has-sub:focus-within > .gnav__toggle::after,
	.header .has-sub.is-open > .gnav__toggle::after {
		margin-top: 3px;
		transform: rotate(-135deg);
	}

	/* ---------- 小項目の箱 ---------- */
	.header .gnav__sub {
		display: block;
		position: absolute;
		top: 100%;
		left: 50%;
		min-width: 220px;
		padding: 12px 0;
		border-top: 3px solid var(--chance-red);
		border-radius: 0 0 10px 10px;
		background: #fff;
		box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
		opacity: 0;
		visibility: hidden;
		transform: translate(-50%, 8px);
		/* カーソルが少し外れても、すぐには閉じない */
		transition: opacity .2s .15s, transform .2s .15s, visibility 0s .35s;
		z-index: 1002;
	}

	.header .has-sub:hover > .gnav__sub,
	.header .has-sub:focus-within > .gnav__sub,
	.header .has-sub.is-open > .gnav__sub {
		opacity: 1;
		visibility: visible;
		transform: translate(-50%, 0);
		transition: opacity .2s, transform .2s, visibility 0s;
	}

	.header .nav_list .gnav__sub a {
		display: block;
		padding: 10px 26px;
		color: var(--chance-text);
		font-size: 14px;
		font-weight: 700;
		letter-spacing: .06em;
		white-space: nowrap;
		text-shadow: none;
		transition: background-color .2s, color .2s;
	}

	.header .nav_list .gnav__sub a:hover,
	.header .nav_list .gnav__sub a:focus-visible {
		background: var(--chance-red-pale);
		color: var(--chance-red);
	}

	/* 店舗情報：県ごとに並べる大きめの箱 */
	.header .gnav__sub--stores {
		width: 540px;
		padding: 18px 12px 14px;
	}

	.header .nav_list .gnav__sub .gnav__all {
		display: inline-block;
		margin: 0 0 8px;
		padding: 6px 14px;
		color: var(--chance-red);
	}

	.header .gnav__all::after {
		content: " →";
	}

	.header .gnav__areas {
		display: flex;
		gap: 12px;
		padding-top: 10px;
		border-top: 1px solid var(--chance-line);
	}

	.header .gnav__area:first-child {
		flex: 2;
	}

	.header .gnav__area:last-child {
		flex: 1;
	}

	.header .gnav__area-name {
		margin: 4px 14px 4px;
		padding-left: 8px;
		border-left: 3px solid var(--chance-red);
		color: var(--chance-sub);
		font-size: 12px;
		font-weight: 700;
		line-height: 1.4;
	}

	.header .gnav__area:first-child .gnav__sublist {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}

	.header .nav_list .gnav__areas a {
		padding: 8px 14px;
		font-size: 13px;
	}

	/* トップページの最初の状態（透明）では、大項目の文字を白に */
	.header--front:not(.fixed) .nav_list .gnav__link {
		color: #fff;
		text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
	}

	.header--front:not(.fixed) .gnav__link::before {
		background: #fff;
	}
}


/* ==========================================================
   1440px以上：余白を少し広げる
   ========================================================== */
@media screen and (min-width: 1440px) {

	.header_inner {
		gap: 36px;
		padding: 0 36px;
	}

	.header .gnav {
		gap: 36px;
	}

	.header_cta a {
		height: 42px;
		padding: 0 16px;
		border-radius: 21px;
		font-size: 14px;
	}
}


/* ==========================================================
   750〜1279px（タブレット・小さめのパソコン）
   メニューは右の≡から開き、▼は押すと開く
   ========================================================== */
@media screen and (min-width: 750px) and (max-width: 1279px) {

	:root {
		--chance-bar-h: 72px;
	}

	.header_inner {
		padding: 0 84px 0 20px;
	}

	.header .logo a.sp {
		width: 77px;
		height: 50px;
	}

	.header .logo a.sp img {
		left: -2px;
		top: -8px;
		width: 81px;
		height: 81px;
	}

	.header--front .logo a.pc {
		width: 80px;
		height: 52px;
	}

	.header--front .logo a.pc img {
		left: -17px;
		top: -7px;
		height: 68px;
	}

	.header_cta {
		margin-left: auto;
	}

	/* ---------- ≡から開くメニュー ---------- */
	.header .nav {
		display: block;
		position: fixed;
		top: var(--chance-bar-h);
		right: -100%;
		width: min(380px, 100%);
		height: calc(100vh - var(--chance-bar-h));
		padding: 20px 32px 40px;
		overflow-y: auto;
		background: #fff;
		border-top: 1px solid var(--chance-line);
		box-shadow: -4px 0 16px rgba(0, 0, 0, .12);
		transition: right .4s;
		z-index: 1001;
	}

	.nav-open .header .nav {
		right: 0;
	}

	.header .nav_list {
		display: block;
	}

	.header .first-nav .nav_item {
		margin: 0;
		border-bottom: 1px solid var(--chance-line);
	}

	.header .nav_list .gnav__link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 16px 0;
		color: var(--chance-text);
		font-size: 16px;
		font-weight: 700;
		letter-spacing: .06em;
		text-align: left;
	}

	/* ＋／－ の印 */
	.header .gnav__toggle::after {
		content: "＋";
		color: var(--chance-red);
		font-size: 18px;
	}

	.header .has-sub.is-open > .gnav__toggle::after {
		content: "－";
	}

	.header .gnav__sub {
		padding: 0 0 12px 12px;
	}

	.header .nav_list .gnav__sub a {
		display: block;
		padding: 8px 0;
		color: var(--chance-text);
		font-size: 14px;
		font-weight: 700;
	}

	.header .nav_list .gnav__sub .gnav__all {
		color: var(--chance-red);
	}

	.header .gnav__area-name {
		margin: 10px 0 2px;
		color: var(--chance-sub);
		font-size: 12px;
		font-weight: 700;
	}

	.header .second-nav {
		display: block;
		margin: 20px 0 0;
		text-align: left;
	}

	.header .nav_list .second-nav li {
		text-align: left;
	}

	.header .second-nav .nav_item {
		margin-bottom: 12px;
	}

	.header .nav_list .second-nav li a {
		color: var(--chance-text);
		font-size: 14px;
	}

	.header .sns-nav {
		display: block;
		width: auto;
		margin: 20px 0 0;
	}

	.header .sns-nav ul {
		display: flex;
		justify-content: flex-start;
		gap: 18px;
	}

	/* SNSの画像は「白い四角に赤いマーク」なので、白地ではそのまま使う */
	.header .sns-nav .h-deco {
		width: auto;
		height: 34px;
		padding: 0;
	}

	/* ≡ボタン：赤い丸に白い線（スマホと同じ見た目） */
	.header .hamburger {
		display: block;
		position: absolute;
		top: 50%;
		right: 18px;
		width: 48px;
		height: 48px;
		border-radius: 50%;
		background: var(--chance-red);
		box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
		transform: translateY(-50%);
		cursor: pointer;
	}

	.header .hamburger_border {
		position: absolute;
		left: 14px;
		width: 20px;
		height: 2px;
		background: #fff;
		transition: transform .3s, top .3s;
	}

	.header .hamburger_border_top {
		top: 19px;
	}

	.header .hamburger_border_bottom {
		top: 27px;
	}

	.nav-open .header .hamburger_border_top {
		top: 23px;
		transform: rotate(45deg);
	}

	.nav-open .header .hamburger_border_bottom {
		top: 23px;
		transform: rotate(-45deg);
	}

	/* メニューを開いたときの暗い幕 */
	.header .black_bg {
		display: block;
		position: fixed;
		top: var(--chance-bar-h);
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, .35);
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s, visibility .3s;
		z-index: 999;
	}

	.nav-open .header .black_bg {
		opacity: 1;
		visibility: visible;
	}
}


/* ==========================================================
   iPadの縦向きなど、縦長の画面（750px以上）
   トップの動画は、スマホ用の縦長の動画（fv_sp.mp4）を使う。
   横長の動画だと左右が大きく切れてしまうため。
   ========================================================== */
@media screen and (min-width: 750px) and (orientation: portrait) {

	#video-area.pc {
		display: none;
	}

	#video-area.sp {
		display: block;
	}
}


/* ==========================================================
   750〜899px：本文の最小幅（900px）をやめ、横のはみ出しをなくす
   ========================================================== */
@media screen and (min-width: 750px) and (max-width: 899px) {

	body {
		min-width: 0;
	}
}


/* ==========================================================
   ページ下部のサイト案内（会社案内・採用情報・SNSなど）
   全ての幅で表示する
   ========================================================== */
.footer-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px 40px;
	padding: 22px 20px;
	border-top: 1px solid rgba(255, 255, 255, .35);
	background: var(--chance-red);
}

.footer-links__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 28px;
}

.footer-links__list a {
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
}

.footer-links__list a:hover {
	text-decoration: underline;
}

.footer-links__sns {
	display: flex;
	gap: 16px;
}

.footer-links__sns img {
	display: block;
	width: auto;
	height: 28px;
}

@media screen and (max-width: 749px) {

	.footer-links {
		flex-direction: column;
		gap: 16px;
		padding: 20px 16px;
	}

	.footer-links__list {
		gap: 10px 20px;
	}
}

/* ==========================================================
   トップページ「会社案内・採用情報」の写真（front-page.php の .sec6）
   写真に大きさ（width・height）を書き足したので、縦横の比率を保って縮める。
   読み込む前から場所を確保し、横のはみ出しと画面のずれを防ぐ。
   ========================================================== */
.sec6 li img {
	height: auto;
}

/* ==========================================================
   幅750〜1019px：左メニューをやめて本文の最小幅（900px）もやめたため、
   幅が固定された部品が画面からはみ出さないように合わせる
   ========================================================== */
@media screen and (min-width: 750px) and (max-width: 899px) {

	/* 店舗ページのブログ一覧：画像（幅249px固定）を、3等分の枠に合わせる */
	.sec5 .blog-img {
		width: 100%;
	}
}

@media screen and (min-width: 750px) and (max-width: 1019px) {

	/* サイトマップ：幅980px固定の枠（二重になっている）と大見出しを、画面の幅に合わせる */
	.container:has(.sitemap-h2) {
		width: auto;
		max-width: 980px;
	}

	.container:has(> .sitemap-h2) {
		padding: 0 20px;
	}

	.sitemap-h2 {
		width: auto;
	}
}
