@charset "UTF-8";
/* =========================================================
   ZERO/SPORTS 全ページ共通
   - 基本設定（色・文字・幅）／ヘッダー・メニュー／フッター／複数ページで使う部品
   - ページ専用の指定は css/top.css・css/company.css などに書く
   画面幅：PC 1440px基準 ／ 1023px以下でメニューをハンバーガーに ／ 767px以下がスマホ
   ========================================================= */

/* ---------- 基本設定（Figmaの変数と同じ値） ---------- */
:root {
	--text: #222222; /* 文字（メイン） */
	--text-sub: #666666; /* 文字（本文グレー） */
	--text-muted: #999999; /* 文字（補足・パンくずの上の階層） */
	--text-light: #d9d9d9; /* 暗い背景の上の文字 */
	--text-disabled: #bdbdbd; /* ページ準備中の項目 */
	--brand: #0f3893; /* ブランドの青 */
	--accent: #a7212f; /* アクセントの赤 */
	--new: #dc1616; /* NEW! の赤 */
	--blue-gray: #708099; /* 見出しの「＋」・スペックの項目名 */
	--border: #dcdcdc; /* 区切り線 */
	--border-strong: #b9b9b9; /* 濃い区切り線（ページ送り・お知らせの行など） */
	--surface-gray: #f6f6f6; /* 灰色の囲み（カテゴリ一覧・カード・注意書きなど） */
	--surface-hover: #f7f8f9; /* お知らせの行にマウスを乗せたとき */
	--surface-tint: #ebeff0; /* SERVICEの背景 */
	--dark: #222222; /* 暗いセクションの背景 */
	--footer-line: rgba(255, 255, 255, 0.35); /* フッターの区切り線・準備中の項目 */
	--footer-label: rgba(255, 255, 255, 0.55); /* フッターの英字ラベル */

	/* 書体。本文は英数字が Manrope、和文が Noto Sans JP（Manropeに無い文字だけ次の書体で表示される） */
	--font-body: "Manrope", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
	--font-latin: "Manrope", "Noto Sans JP", sans-serif; /* 英数字だけの見出し・日付など */
	--font-display: "Barlow", "Noto Sans JP", sans-serif; /* 英字の大見出し（Section/Title など） */
	--font-condensed: "Barlow Condensed", var(--font-body); /* サイドバーの見出し */
	--font-semi-condensed: "Barlow Semi Condensed", sans-serif; /* TOP SERVICEのカード見出し */
	--font-mincho: "Zen Old Mincho", serif; /* TOPの明朝の見出し2か所 */
	/* ※ Barlow系・Zen Old Mincho は使うページの <head> で Google Fonts を読み込んでいる */

	--header-height: 85px;
	--content-width: 1200px; /* 標準のコンテンツ幅 */
	--content-width-narrow: 1000px; /* 狭いコンテンツ幅（NEWS・PIT LOGなど） */
	--gutter: 40px; /* 画面端の最低余白 */
}

/* ---------- リセット ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	line-height: 1.6;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
	margin: 0;
	padding: 0;
}
ul,
ol {
	list-style: none;
}
a {
	color: inherit;
	text-decoration: none;
}
img,
video {
	display: block;
	max-width: 100%;
	height: auto;
}
[hidden] {
	display: none;
} /* 上の display: block があっても、hidden を付けた画像はきちんと隠す（お問い合わせの写真のサムネイルなど） */
em {
	font-style: normal;
}
button {
	font: inherit;
}

/* 見た目には出さず、読み上げソフトにだけ伝える */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
/* スマホだけで改行する <br> */
.sp-only {
	display: none;
}

/* =========================================================
   ヘッダー（上部に固定）
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-height);
	background: #fff;
	transition: box-shadow 0.3s;
}
.site-header.is-scrolled {
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}
/* ロゴ｜メニュー｜言語切替 の3列。左右の列を同じ幅にして、メニューを画面の中央に置く */
.site-header__inner {
	height: 100%;
	max-width: calc(var(--content-width) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}
.site-header__actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 16px;
}

/* ---------- グローバルメニュー（PC） ---------- */
.global-nav__list {
	display: flex;
	gap: 56px;
}
.global-nav__item {
	position: relative;
}
.global-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	line-height: 22px;
	white-space: nowrap;
	transition: color 0.2s;
}
a.global-nav__link:hover, button.global-nav__link:hover, /* 準備中の <span> は色を変えない */
.global-nav__item.is-current > .global-nav__link {
	color: var(--brand);
}
/* プルダウンがある項目の「∨」 */
.global-nav__item.has-submenu > .global-nav__link::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.2px solid currentColor;
	border-bottom: 1.2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}
/* 外部サイトへのリンクの「↗」 */
.global-nav__link--external::after {
	content: "";
	width: 10px;
	height: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23222' stroke-width='1.2'%3E%3Cpath d='M3 1h6v6M9 1 1.5 8.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* プルダウン：項目にマウスを乗せる／キーボードで選ぶと開く */
.global-nav__submenu {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 10;
	min-width: 190px;
	margin-top: 18px;
	padding: 12px 0;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 6px);
	transition:
		opacity 0.2s,
		transform 0.2s,
		visibility 0.2s;
}
/* 項目とプルダウンの間（margin-top ぶん）でマウスが外れて閉じないように、見えない橋をかける */
.global-nav__submenu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 18px;
}
.global-nav__item:hover > .global-nav__submenu,
.global-nav__item:focus-within > .global-nav__submenu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}
.global-nav__sublink {
	display: block;
	padding: 8px 24px;
	font-size: 13px;
	font-weight: 500;
	line-height: 22px;
	white-space: nowrap;
	transition:
		color 0.2s,
		background 0.2s;
}
a.global-nav__sublink:hover {
	color: var(--brand);
	background: #f3f5f9;
}
.global-nav__sublink[aria-current] {
	color: var(--brand);
}

/* ページがまだない項目：グレーで押せない（メニュー・フッター・ボタン共通。<span> で書く） */
.is-disabled {
	color: var(--text-disabled);
	cursor: default;
}

/* ---------- 言語切替 JP / EN ---------- */
/* 黒い丸（::before）を選んでいる言語の下に敷く。押すと丸が横へスライドしてからページが切り替わる（js/common.js） */
.language-switch {
	position: relative;
	display: flex;
	height: 27px;
	border-radius: 47px;
	background: #d9d9d9;
	font-family: var(--font-display);
	font-size: 13px;
	line-height: 27px;
}
.language-switch::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	border-radius: 47px;
	background: var(--text);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.language-switch.is-en::before {
	transform: translateX(100%);
} /* EN を選んでいるときは右へ */
.language-switch__item {
	position: relative;
	width: 46px;
	text-align: center;
	transition: color 0.3s;
}
.language-switch__item.is-current {
	color: #fff;
	font-weight: 800;
}

/* ---------- メニューボタン・ハンバーガーメニュー（PCでは非表示） ---------- */
.menu-button,
.mobile-menu {
	display: none;
}

/* =========================================================
   フッター（Figma 共通部品「Footer」センター揃え 1095:3497）
   ========================================================= */
/* 直前のセクションの固定背景（TOP・企業情報）が透けないよう、前面に出す */
.site-footer {
	position: relative;
	z-index: 1;
	padding: 48px var(--gutter) 64px;
	background: var(--brand);
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.site-footer a {
	transition: opacity 0.2s;
}
.site-footer a:hover {
	opacity: 0.7;
}
.site-footer .is-disabled {
	color: var(--footer-line);
}
.site-footer__label {
	font-family: var(--font-latin);
	font-weight: 700;
	font-size: 15px;
	line-height: 22px;
	letter-spacing: 0.05em;
	color: var(--footer-label);
}
.site-footer__sns {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

/* 4つの分類：英字のグレーラベルは押せない見出し、白い文字だけがリンク */
.site-footer__nav {
	width: 100%;
	max-width: var(--content-width);
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--footer-line);
	display: flex;
	justify-content: center;
	gap: 80px;
	text-align: left;
}
.site-footer__group-title {
	font-family: var(--font-latin);
	font-weight: 700;
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.16em;
	color: var(--footer-label);
}
.site-footer__links {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-weight: 500;
	font-size: 14px;
	line-height: 22px;
	letter-spacing: 0.04em;
}

.site-footer__sub-links {
	width: 100%;
	max-width: var(--content-width);
	margin-top: 80px;
	padding-top: 24px;
	border-top: 1px solid var(--footer-line);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 64px;
	font-weight: 500;
	font-size: 12px;
	line-height: 20px;
	letter-spacing: 0.04em;
}

.site-footer__company {
	margin-top: 64px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}
.site-footer__address {
	font-style: normal;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	line-height: 20px;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.8);
}
.site-footer__address strong {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.02em;
	color: #fff;
}

.site-footer__bottom {
	margin-top: 64px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.site-footer__copyright {
	font-family: var(--font-latin);
	font-weight: 500;
	font-size: 12px;
	line-height: 22px;
}

/* ---------- 常設ボタン（オンラインショップ｜お問い合わせ）：画面の下中央に固定 ---------- */
/* HTMLはフッターの中にあるので、重なり順はフッター（z-index 1）と同じ扱い＝ヘッダー・開いたメニュー（z-index 100）の下になる。
   フッターが見えたら隠す（フッターに同じリンクがあり、青い背景に溶けて見えなくなるため → js/common.js） */
.floating-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 80px;
	z-index: 90;
	display: flex;
	width: min(450px, calc(100% - var(--gutter) * 2));
	margin-inline: auto;
	transition:
		opacity 0.4s ease,
		transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1),
		visibility 0.4s;
}
.floating-cta__link {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 51px;
	border: 2px solid var(--brand);
	font-weight: 700;
	font-size: 15.5px;
	line-height: 1;
} /* マウスを乗せたときはフッターのリンクと同じく少し薄くなる（.site-footer a:hover） */
.floating-cta__link--shop {
	border-radius: 51px 0 0 51px;
	background: #fff;
	color: var(--brand);
}
.floating-cta__link--contact {
	border-radius: 0 51px 51px 0;
	background: var(--brand);
	color: #fff;
}
/* スクロール中（is-scrolling）とフッターが見えている間（is-hidden）は、ふわっと下へずれながら消える（js/common.js） */
.floating-cta.is-scrolling,
.floating-cta.is-hidden {
	opacity: 0;
	transform: translateY(40px);
	visibility: hidden;
}

/* ---------- SNSアイコンの並び（フッター・メニュー・店舗情報で共用。色は文字色を引き継ぐ） ---------- */
.sns-list {
	display: flex;
	align-items: center;
	gap: 32px;
}
.sns-list a {
	display: block;
}

/* =========================================================
   複数ページで使う部品
   ========================================================= */
/* セクションの上余白 */
.section {
	padding: 120px var(--gutter) 0;
}

/* 英字の見出し「＋ TITLE ＋」（Figma 部品 Section/Title） */
.section-title {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 46px;
	line-height: 58px;
	text-align: center;
}
.section-title::before,
.section-title::after {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	background:
		linear-gradient(var(--blue-gray), var(--blue-gray)) center / 24px 1px no-repeat,
		linear-gradient(var(--blue-gray), var(--blue-gray)) center / 1px 24px no-repeat;
}
/* 見出し＋リード文 */
.section-head {
	max-width: var(--content-width);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.section-head--narrow {
	max-width: var(--content-width-narrow);
}
.section-lead {
	font-size: 16px;
	line-height: 26px;
	letter-spacing: 0.01em;
	color: var(--text-sub);
	text-align: center;
}

/* 青バー＋小見出し（Figma 部品 Heading/Bar） */
.heading-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 900;
	font-size: 25px;
	line-height: 33px;
}
.heading-bar::before {
	content: "";
	flex: none;
	width: 12px;
	height: 24px;
	background: var(--brand);
}

/* 角丸ボタン（○○を詳しく見る →） */
.button-pill {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	width: 448px;
	max-width: 100%;
	height: 45px;
	margin: 48px auto 0;
	border: 1px solid var(--brand);
	border-radius: 50px;
	color: var(--brand);
	font-size: 16px;
	line-height: 26px;
	letter-spacing: 0.01em;
	transition:
		background 0.25s,
		color 0.25s;
}
.button-pill::after {
	content: "→";
	font-size: 13px;
}
a.button-pill:hover {
	background: var(--brand);
	color: #fff;
}
.button-pill--wide {
	width: 806px;
}
.button-pill.is-disabled {
	border-color: #d5d5d5;
	color: var(--text-disabled);
}

/* 横長の四角いボタン（もっと見る など。Figma 部品 Button/Wide） */
.button-wide {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 50px;
	margin-top: 48px;
	border: 1px solid var(--brand);
	color: var(--brand);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.01em;
	transition:
		background 0.25s,
		color 0.25s;
}
.button-wide:hover {
	background: var(--brand);
	color: #fff;
}

/* 「一覧を見る →」 */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 36px;
}
.link-arrow::after {
	content: "";
	width: 13px;
	height: 9px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9' fill='none' stroke='%23222' stroke-width='1.2'%3E%3Cpath d='M0 4.5h12M8 .5l4 4-4 4'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: transform 0.2s;
}
.link-arrow:hover::after {
	transform: translateX(4px);
}

/* ---------- 下層ページの枠：パンくず → ページ見出し → 中身 ---------- */
.page {
	max-width: calc(var(--content-width) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter) 120px;
}
.page-title {
	margin-top: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.page-title__sub {
	font-size: 14px;
	line-height: 22px;
	letter-spacing: 0.01em;
}

/* 左に青いバー＋英字のページ見出し（Figma 部品 Page/Title。ストックカーなど）。英字は大文字の高さで詰めて、バーと上下中央に揃える */
.page-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 40px;
	line-height: 1;
	text-box: trim-both cap alphabetic;
}
.page-heading::before {
	content: "";
	flex: none;
	width: 5px;
	height: 44px;
	background: var(--brand);
}

/* パンくず：上の階層はグレー、現在地は黒、「▶」はブランドの青（2026-10-22 ルール） */
.breadcrumb {
	padding-top: 8px;
	font-weight: 500;
	font-size: 10px;
	line-height: 16px;
} /* Figma 企業情報に合わせる：Medium・字間0（2026-10-29 ユーザー指定） */
.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
}
.breadcrumb li {
	color: var(--text-muted);
}
.breadcrumb li + li::before {
	content: "▶";
	margin: 0 4px 0 20px;
	color: var(--brand);
	font-size: 8px;
}
.breadcrumb li[aria-current] {
	color: var(--text);
}
.breadcrumb a:hover {
	color: var(--brand);
}

/* パンくず → 中身 80（スマホ 24）。中身どうしの間隔はページで --page-body-gap を変える */
.page-body {
	--page-body-gap: 40px;
	margin-top: 80px;
	display: flex;
	flex-direction: column;
	gap: var(--page-body-gap);
}
/* スマホだけ上部に出す絞り込み（検索・カテゴリのプルダウン）。PCではサイドバーに同じ機能がある */
.mobile-filter {
	display: none;
}

/* 英語版の「記事は日本語のみ」の注記（整備記録・お知らせ） */
.language-note {
	font-size: 13px;
	line-height: 18px;
	color: var(--text-sub);
}

/* ---------- 2カラムの枠：メイン884＋間64＋サイドバー252（整備記録・お知らせ） ---------- */
.columns {
	display: flex;
	align-items: flex-start;
	gap: 64px;
}
.columns__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 80px;
}
.columns__sidebar {
	flex: none;
	width: 252px;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

/* 見出し「- SEARCH -」「- CATEGORY -」。前後の「- 」は飾りなので CSS で付ける（HTMLには「Search」「Category」だけ書く） */
.sidebar-block {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.sidebar-block__title {
	font-family: var(--font-condensed);
	font-weight: 700;
	font-size: 20px;
	line-height: 32px;
	color: var(--text-sub);
	text-transform: uppercase;
}
.sidebar-block__title::before {
	content: "- ";
}
.sidebar-block__title::after {
	content: " -";
}

/* カテゴリ一覧 */
.category-list {
	padding: 16px 12px;
	background: var(--surface-gray);
	border-radius: 5px;
}
.category-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 48px;
	padding: 0 12px;
	border-bottom: 1px solid var(--border);
	font-weight: 700;
	font-size: 13px;
	line-height: 20px;
	transition: color 0.2s;
}
.category-list li:last-child a {
	border-bottom: 0;
}
.category-list a::before {
	content: "";
	flex: none;
	width: 4px;
	height: 8px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 9' fill='none' stroke='%23A7212F' stroke-width='1.6'%3E%3Cpath d='m1 1 3 3.5L1 8'/%3E%3C/svg%3E") no-repeat center / contain;
}
.category-list a:hover,
.category-list a[aria-current] {
	color: var(--brand);
}

/* カテゴリのプルダウン（スマホ）：右端の「∨」を重ねる */
.select-box {
	position: relative;
	height: 52px;
	border: 1px solid var(--border);
	background: #fff;
}
.select-box::after {
	content: "";
	position: absolute;
	inset-block: 0;
	right: 16px;
	width: 16px;
	height: 10px;
	margin-block: auto;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10' fill='none' stroke='%230F3893' stroke-width='2.4'%3E%3Cpath d='m1.5 1.5 6.5 6.5 6.5-6.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.select-box select {
	width: 100%;
	height: 100%;
	padding: 0 48px 0 16px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 14px;
	letter-spacing: 0.01em;
	color: var(--text-muted);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

/* ---------- ページ送り：前へ ／ 数字 ／ 次へ ---------- */
.pagination {
	display: flex;
	align-items: center;
	gap: 8px;
}
.pagination__previous,
.pagination__next {
	flex: none;
	width: 40px;
	height: 40px;
	background: var(--brand) no-repeat center / 7px 12px;
	transition: opacity 0.2s;
}
.pagination__previous {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 12' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M6 1 1 6l5 5'/%3E%3C/svg%3E");
}
.pagination__next {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 12' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='m1 1 5 5-5 5'/%3E%3C/svg%3E");
}
.pagination__previous:hover,
.pagination__next:hover {
	opacity: 0.8;
}
.pagination__numbers {
	display: flex;
	flex-wrap: wrap;
}
.pagination__numbers li + li {
	margin-left: -1px;
} /* 隣どうしの枠線を重ねて1本に見せる */
.pagination__numbers a,
.pagination__numbers span {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--border-strong);
	background: #fff;
	font-family: var(--font-latin);
	font-weight: 700;
	font-size: 15px;
	line-height: 22px;
	letter-spacing: 0.05em;
	color: var(--brand);
}
/* マウスを乗せると数字に下線、現在のページは青の塗り（2026-10-28 ユーザー指定） */
.pagination__numbers a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
/* position: relative は、重ねた隣の枠線より上に青い枠を出すため */
.pagination__numbers a[aria-current] {
	position: relative;
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

/* ---------- 記事の見出し・本文（整備記録・お知らせの詳細） ---------- */
.article {
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.article__header {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
/* タイトルの下に太さ5のグレー線（タイトル → 線 12 ／ 線 → 日付 12） */
.article__title {
	padding-bottom: 12px;
	border-bottom: 5px solid var(--border);
	font-weight: 700;
	font-size: 28px;
	line-height: 40px;
}
.article__header .post-date {
	color: var(--text-sub);
}

/* 本文：WordPressのブロックエディタで入力した段落・画像・キャプションに当たる */
.entry {
	display: flex;
	flex-direction: column;
	gap: 32px;
	color: var(--text-sub);
} /* 本文・キャプションの色はセカンダリー（Figma color/text/secondary） */
.entry p {
	font-size: 16px;
	line-height: 40px;
	letter-spacing: 0.01em;
}
.entry figure {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.entry img {
	width: 100%;
}
.entry figcaption {
	font-weight: 700;
	font-size: 14px;
	line-height: 40px;
	letter-spacing: 0.01em;
}
.entry a {
	color: var(--brand);
	text-decoration: underline;
}

/* ---------- ストックカーの紹介（TOP・お知らせ） ---------- */
/* 左に車名・価格・スペック・主な装備（幅335）、右に写真 432×275（左の文字の下端とそろう）、下に幅いっぱいのボタン
   NEWS一覧・詳細はメインカラムの幅（884）いっぱいに広げ、写真を 510×275 にする */
.stock__row {
	max-width: 806px;
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
	gap: 39px;
}
.stock__body {
	flex: none;
	width: 335px;
}
.stock__label {
	font-family: var(--font-latin);
	font-weight: 800;
	font-size: 14px;
	line-height: 20px;
	color: var(--accent);
}
.stock__category {
	margin-top: 8px;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 18px;
	line-height: 24px;
}
/* 車名（左）と価格（左から207）。文字の箱は Figma と同じく少し重ねる */
.stock__vehicle {
	display: grid;
	grid-template-columns: 207px 1fr;
}
.stock__name-block {
	font-family: var(--font-latin);
}
.stock__name {
	font-weight: 800;
	font-size: 28px;
	line-height: 40px;
}
.stock__grade {
	margin-top: -7px;
	font-weight: 500;
	font-size: 16px;
	line-height: 24px;
}
.stock__price-label {
	margin-top: -1px;
	font-weight: 500;
	font-size: 11px;
	line-height: 22px;
}
/* 行の高さは数字（39）で決める（ストックカーページの価格と同じ作り） */
.stock__price {
	margin-top: -7px;
	font-weight: 900;
	font-size: 16px;
	line-height: 0;
	letter-spacing: -0.05em;
}
.stock__price-number {
	font-family: var(--font-latin);
	font-weight: 800;
	font-size: 35px;
	line-height: 39px;
	letter-spacing: -0.05em;
}
/* スペック（Figma 部品 Car/SpecItem）：2列 167／160 */
.stock__specs {
	display: grid;
	grid-template-columns: 167px 160px;
	gap: 3px 8px;
	margin-top: 9px;
}
.stock__spec {
	display: flex;
	align-items: center;
	gap: 8px;
}
.stock__spec dt {
	min-width: 65px;
	padding-inline: 8px;
	border-radius: 10px;
	background: var(--surface-tint);
	font-weight: 500;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: 0.01em;
	color: var(--blue-gray);
	text-align: center;
}
.stock__spec dd {
	font-weight: 500;
	font-size: 13px;
	line-height: 22px;
	white-space: nowrap;
}
.stock__equipment {
	margin-top: 16px;
	padding-top: 11px;
	border-top: 5px solid var(--border); /* 線の上端 → 文字 16（Figma） */
	font-size: 11px;
	line-height: 18px;
	letter-spacing: 0.01em;
}
.stock__equipment strong {
	font-weight: 900;
}
.stock__image {
	flex: 1;
	min-width: 0;
	aspect-ratio: 432 / 275;
	object-fit: cover;
}
.columns__main .stock__row {
	max-width: none;
}
.columns__main .stock__image {
	aspect-ratio: 510 / 275;
}
.columns__main .stock__button {
	width: 100%;
}
.stock__button {
	margin-top: 30px;
} /* 写真の下端 → ボタン 30（Figma） */
/* ボタンは青の塗り＋白文字。マウスを乗せると白地＋青文字に反転 */
.stock__button {
	background: var(--brand);
	color: #fff;
}
a.stock__button:hover {
	background: #fff;
	color: var(--brand);
}
/* 英語版：価格は「JPY ＋金額」の下に Japanese Yen。項目名・値が長いのでスペックは1行に1項目（Figma 英語版 TOP） */
:root:lang(en) .stock__vehicle {
	grid-template-columns: 131px 1fr;
}
:root:lang(en) .stock__price-label {
	font-size: 13px;
}
.stock__price-note {
	font-size: 13px;
	line-height: 18px;
	letter-spacing: 0.01em;
	color: var(--text-sub);
}
:root:lang(en) .stock__specs {
	grid-template-columns: 1fr;
	gap: 8px;
}
:root:lang(en) .stock__spec dt {
	width: 130px;
	padding-inline: 4px;
	white-space: nowrap;
} /* 値の位置をそろえる（Figma 英語版の項目名は幅130） */

/* ---------- NEWS（TOP・企業情報・ストックカーの下部） ---------- */
/* ※ お知らせページの行（css/news.css の .news-row＝Figma 部品 News/Row）とは Figma 上で別デザイン（余白・日付幅・線の色が少し違う）なので分けている */
/* 直前のセクションの固定背景が重ならないよう、白い背景で前面に出す */
.news {
	position: relative;
	z-index: 1;
	background: #fff;
	padding-bottom: 142px;
}
.news__body {
	max-width: var(--content-width-narrow);
	margin: 48px auto 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 24px;
}
.news__list {
	width: 100%;
	border-top: 1px solid var(--border);
}
.news__row {
	display: flex;
	align-items: center;
	gap: 40px;
	padding: 15px 0;
	border-bottom: 1px solid var(--border);
	transition: background 0.2s;
}
.news__row:hover {
	background: var(--surface-hover);
}
.news__date {
	flex: none;
	width: 85px;
	font-family: var(--font-latin);
	font-weight: 700;
	font-size: 15px;
	line-height: 36px;
}
.news__category {
	flex: none;
	width: 98px;
	height: 26px;
	border: 1px solid var(--brand);
	color: var(--brand);
	font-size: 12px;
	line-height: 24px;
	text-align: center;
}
.news__title {
	font-size: 14px;
	line-height: 36px;
}
.news__new {
	margin-left: 19px;
	font-family: var(--font-latin);
	color: var(--new);
} /* タイトルとの間19は Figma の指定 */

/* ---------- 整備記録の部品（TOP・整備記録で共用） ---------- */
/* ZEROMAX PIT LOG の青い帯（Figma 部品 PitLog/Header） */
.pitlog-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 63px;
	padding: 0 16px;
	background: var(--brand);
}
.pitlog-banner span {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 25px;
	color: #fff;
}
/* カテゴリのタグ（Figma 部品 PitLog/Tag） */
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.tag {
	display: block;
	padding: 0 8px;
	border: 1px solid var(--accent);
	border-radius: 2px;
	color: var(--accent);
	font-size: 10px;
	font-weight: 500;
	line-height: 21px;
}
a.tag:hover {
	background: var(--accent);
	color: #fff;
} /* 記事詳細ではタグがカテゴリ一覧へのリンク */
/* 投稿日（時計アイコン付き） */
.post-date {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--font-latin);
	font-weight: 500;
	font-size: 12px;
	line-height: 22px;
}
.post-date::before {
	content: "";
	width: 19px;
	height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23666'%3E%3Cpath d='M9.26 4a6.04 6.25 0 1 1 0 12.5A6.04 6.25 0 0 1 9.26 4Zm0 .83a5.24 5.42 0 1 0 0 10.84 5.24 5.42 0 0 0 0-10.84Zm-.4 1.67h.8v3.63l2.46 1.19-.34.76-2.92-1.41V6.5Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* 写真の左上の NEW */
.badge-new {
	position: absolute;
	left: 6px;
	top: 8px;
	width: 50px;
	height: 17px;
	background: #d9d642;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 15px;
	line-height: 17px;
	text-align: center;
}

/* ---------- 固定背景（TOP「SUBARUをより深く」・企業情報「OUR STORY」） ---------- */
/* 背景写真をセクションの入り口から終わりまで画面に固定する。セクションに .has-fixed-background を付け、中に .fixed-background を置く。
   ※ background-attachment: fixed はiPhoneで効かないため、position: fixed ＋ clip-path で実現。
     clip-path でセクションの範囲だけ見せるので、前後のセクションには重ならない（＝窓からのぞく見え方）
   暗幕（.fixed-background__shade）の濃さは各ページのJSがスクロールに合わせて変える（最初の濃さは各ページのCSS） */
.has-fixed-background {
	position: relative;
	clip-path: inset(0);
}
.fixed-background {
	position: fixed;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}
.fixed-background img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.fixed-background__shade {
	position: absolute;
	inset: 0;
	background: #000;
	will-change: opacity;
}

/* ---------- スクロールで順に表示（js/reveal.js がクラスを付け外しする） ---------- */
/* 下から少し浮き上がりながら、勢いよく止まる＝ポンポンと出る印象に */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity 0.6s ease,
		transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15);
	transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-shown {
	opacity: 1;
	transform: none;
}

/* =========================================================
   タブレット・小さめのPC（1100px以下）
   ========================================================= */
@media (max-width: 1100px) {
	.global-nav__list {
		gap: 28px;
	}
	.site-footer__nav {
		gap: 48px;
	}
}

/* 900px以下：2カラムのサイドバーを本文の下へ（縦並びのときは画面幅いっぱいに。中身の長さで幅が決まらないように） */
@media (max-width: 900px) {
	.columns {
		flex-direction: column;
		align-items: stretch;
	}
	.columns__sidebar {
		width: 100%;
	}
}

/* =========================================================
   1023px以下：メニューをハンバーガーに切り替え（タブレット・スマホ）
   ========================================================= */
@media (max-width: 1023px) {
	.site-header__inner {
		display: flex;
		justify-content: space-between;
	}
	.global-nav {
		display: none;
	}

	.menu-button {
		display: block;
		position: relative;
		width: 32px;
		height: 32px;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}
	/* 2本線 → 開くと × */
	.menu-button span {
		position: absolute;
		left: 6px;
		right: 6px;
		height: 2px;
		background: var(--text);
		transition:
			transform 0.3s,
			top 0.3s;
	}
	.menu-button span:first-child {
		top: 12px;
	}
	.menu-button span:last-child {
		top: 19px;
	}
	.menu-button[aria-expanded="true"] span:first-child {
		top: 15px;
		transform: rotate(45deg);
	}
	.menu-button[aria-expanded="true"] span:last-child {
		top: 15px;
		transform: rotate(-45deg);
	}

	/* ハンバーガーメニュー（Figma 1155:4031）：ヘッダーの下に全画面で開く。中が長いときはメニューの中だけスクロール */
	.mobile-menu {
		position: fixed;
		top: var(--header-height);
		left: 0;
		right: 0;
		bottom: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 8px 20px 48px;
		background: #fff;
		border-top: 1px solid var(--border);
		display: flex;
		flex-direction: column;
		gap: 40px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition:
			opacity 0.3s,
			transform 0.3s,
			visibility 0.3s;
	}
	.mobile-menu.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	html.is-menu-open {
		overflow: hidden;
	} /* 開いている間は後ろのページを止める */

	.mobile-menu__group {
		padding: 24px 0 16px;
		border-bottom: 1px solid var(--border);
	}
	.mobile-menu__group-title {
		display: flex;
		align-items: center;
		gap: 12px;
		font-weight: 700;
		font-size: 16px;
		line-height: 20px;
		letter-spacing: 0.01em;
	}
	.mobile-menu__group-title span {
		font-family: var(--font-latin);
		font-weight: 500;
		font-size: 12px;
		line-height: 22px;
		color: var(--text-muted);
	}
	.mobile-menu__links {
		margin-top: 8px;
	}
	.mobile-menu__link {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 12px 4px 12px 0;
		font-size: 14px;
		line-height: 22px;
		letter-spacing: 0.01em;
	}
	a.mobile-menu__link::after {
		content: "";
		width: 6px;
		height: 6px;
		border-right: 1.5px solid var(--text-muted);
		border-bottom: 1.5px solid var(--text-muted);
		transform: rotate(-45deg);
	}
	.mobile-menu__link[aria-current] {
		color: var(--brand);
	}

	.mobile-menu__buttons {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.mobile-menu__button {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 8px;
		height: 54px;
		border: 1px solid var(--brand);
		font-weight: 700;
		font-size: 15px;
		line-height: 22px;
		letter-spacing: 0.1em;
		color: var(--brand);
	}
	.mobile-menu__button--primary {
		background: var(--brand);
		color: #fff;
	}
	.mobile-menu__button--external::after {
		content: "";
		width: 10px;
		height: 10px;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%230f3893' stroke-width='1.4'%3E%3Cpath d='M3 1h6v6M9 1 1.5 8.5'/%3E%3C/svg%3E") no-repeat center / contain;
	}
	.mobile-menu__footer {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 24px;
	}
	.mobile-menu__privacy {
		font-size: 13px;
		line-height: 18px;
		color: var(--text-muted);
	}
}

/* =========================================================
   スマホ（767px以下）
   共通ルール「PC→SP変換ルール」に準拠：左右余白20／文字は約0.5〜0.6倍
   ========================================================= */
@media (max-width: 767px) {
	:root {
		--header-height: 56px;
		--gutter: 20px;
	}
	.sp-only {
		display: inline;
	}

	/* ヘッダー */
	.site-header__logo img {
		width: 120px;
	}
	.language-switch {
		height: 24px;
		line-height: 24px;
		font-size: 10px;
	}
	.language-switch__item {
		width: 36px;
	}

	/* フッター：4分類は2列に */
	.site-footer {
		padding: 40px 20px 64px;
	}
	.floating-cta {
		bottom: 40px;
	}
	.floating-cta__link {
		height: 38px;
		font-size: 11.5px;
	} /* Figma SP版 Fixed_Buttons（334×38） */
	.site-footer__nav {
		margin-top: 40px;
		padding-top: 40px;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 32px 20px;
	}
	.site-footer__sub-links {
		margin-top: 40px;
		padding-top: 20px;
		gap: 12px 32px;
	}
	.site-footer__company {
		margin-top: 48px;
	}
	.site-footer__bottom {
		margin-top: 48px;
		gap: 16px;
	}
	.site-footer__copyright {
		line-height: 20px;
	}

	/* 部品 */
	.section {
		padding-top: 64px;
	}
	.section-title {
		font-size: 32px;
		line-height: 32px;
		gap: 10px;
	} /* Section/Title の Size=SP */
	.section-title::before,
	.section-title::after {
		width: 16px;
		height: 16px;
		background-size:
			16px 1px,
			1px 16px;
	}
	.section-lead {
		font-size: 14px;
		line-height: 22px;
		text-align: left;
	} /* 本文／M */
	.section-lead br {
		display: none;
	}
	.heading-bar {
		font-size: 22px;
		line-height: 30px;
	}
	.heading-bar::before {
		height: 21px;
	}
	.button-pill {
		height: 54px;
		margin-top: 40px;
		font-size: 14px;
		line-height: 22px;
	}
	.button-wide {
		height: 54px;
		margin-top: 40px;
	}

	/* 下層ページ */
	.page {
		padding-bottom: 64px;
	}
	.page-title {
		margin-top: 40px;
	}
	.page-heading {
		gap: 10px;
		font-size: 32px;
	}
	.page-heading::before {
		width: 4px;
		height: 32px;
	}

	/* NEWS：日付とカテゴリを上、タイトルを下に */
	.news {
		padding-bottom: 64px;
	}
	.news__body {
		margin-top: 32px;
	}
	.news__row {
		flex-wrap: wrap;
		gap: 4px 16px;
		padding: 14px 0;
	}
	.news__date {
		width: auto;
		font-size: 16px;
		line-height: 24px;
	}
	.news__category {
		width: 76px;
		height: 19px;
		font-size: 10px;
		line-height: 17px;
	}
	.news__title {
		width: 100%;
		font-size: 14px;
		line-height: 22px;
	}
	.news__new {
		font-size: 13px;
	}

	/* 2カラム → 1列（サイドバーは本文の下）。検索・カテゴリは各ページ上部のプルダウンに移す */
	.columns {
		gap: 64px;
	}
	.columns__main {
		gap: 64px;
	}
	.columns__sidebar {
		gap: 40px;
	}
	.sidebar-block {
		display: none;
	}
	.page-body {
		margin-top: 24px;
		gap: 24px;
	}
	.mobile-filter {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
	/* iPhoneは16px未満の入力欄を押すと画面を自動で拡大し、左右にずれてしまうので、スマホでは16pxにする */
	.select-box select {
		font-size: 16px;
	}
	.pagination__numbers .is-pc-only {
		display: none;
	}

	/* 記事 */
	.article {
		gap: 24px;
	}
	.article__title {
		font-size: 22px;
		line-height: 32px;
	}
	.entry {
		gap: 24px;
	}
	.entry p {
		line-height: 26px;
	}
	.entry figcaption {
		font-size: 13px;
		line-height: 20px;
	}

	/* ストックカーの紹介：ラベル → 写真 → 車名・価格 → スペック → 主な装備 → ボタン の縦積み（Figma SP TOP 04_StockCar）
     幅はほかの中身（335）より少し狭い 315 にして差をつける */
	.stock__row,
	.columns__main .stock__row {
		max-width: 315px;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
	.stock__button,
	.columns__main .stock__button {
		width: 315px;
	}
	.stock__body {
		display: contents;
	} /* 写真をラベルと車名のあいだに入れるため、中身を並び替える */
	.stock__label {
		order: 1;
	}
	.stock__category {
		order: 2;
	}
	.stock__image,
	.columns__main .stock__image {
		order: 3;
		width: 100%;
		margin-top: 16px;
		aspect-ratio: 315 / 176;
	}
	.stock__vehicle {
		order: 4;
		margin-top: 24px;
		grid-template-columns: 1fr auto;
	} /* 価格は右寄せ（左から207＝右端から128） */
	.stock__price-block {
		width: 128px;
	}
	/* 英語は車名と価格が横に並びきらないので、価格を車名の下に置く（Figma 英語版 SP） */
	:root:lang(en) .stock__vehicle {
		grid-template-columns: 1fr;
	}
	:root:lang(en) .stock__price-block {
		width: auto;
		margin-top: 25px;
	}
	:root:lang(en) .stock__specs {
		grid-template-columns: 1fr;
	}
	.stock__specs {
		order: 5;
		grid-template-columns: 157px 150px;
	}
	.stock__equipment {
		order: 6;
		font-size: 13px;
	} /* スマホは本文／S（13）のまま */
	.stock__button {
		margin-top: 32px;
	}

	.pitlog-banner {
		height: 48px;
		padding: 0 12px;
		gap: 12px;
	}
	.pitlog-banner img {
		width: 130px;
	}
	.pitlog-banner span {
		font-size: 18px;
	}
}

/* 「動きを減らす」設定の人には、表示の動きを止める */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.floating-cta {
		transition: none;
	}
	.language-switch::before,
	.language-switch__item {
		transition: none;
	}
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
