/* 天理時報社 自動車修理工場。整備記録簿をモチーフに、紺のインク・紙の白・標識の黄で組む */
:root {
	--ink: #14233c;
	--ink-soft: #46536a;
	--paper: #f6f4ee;
	--sheet: #fff;
	--rule: #cfcabd;
	--rule-strong: #14233c;
	--signal: #ffd02e;
	--stamp: #bf2f1e;
	--display: "Dela Gothic One", "BIZ UDPGothic", sans-serif;
	--body: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--wrap: 1080px;
	--gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.9;
	overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; }
.skip {
	position: absolute; left: -999px; top: 0; padding: 8px 14px;
	background: var(--signal); font-weight: 700; z-index: 10;
}
.skip:focus { left: 0; }

/* ---------- ヘッダー ---------- */
.band { background: var(--ink); color: #fff; font-size: 12px; line-height: 1.5; }
.band .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.band__cert { color: var(--signal); font-weight: 700; white-space: nowrap; }
.masthead { background: var(--sheet); }
.masthead .wrap {
	display: grid; grid-template-columns: 1fr auto; gap: 16px 32px;
	align-items: center; padding-block: 18px;
}
.brand { display: block; text-decoration: none; }
.brand__corp { display: block; font-size: 13px; font-weight: 700; line-height: 1.4; }
.brand__name { display: block; font-family: var(--display); font-size: clamp(26px, 4.4vw, 40px); line-height: 1.25; letter-spacing: .02em; }
.contact-lines { display: grid; gap: 2px; text-align: right; }
.contact-lines__tel {
	font-family: var(--mono); font-size: 26px; font-weight: 600; line-height: 1.2;
	letter-spacing: -.01em; text-decoration: none;
}
.contact-lines__tel span, .contact-lines__fax span { margin-right: 6px; font-family: var(--body); font-size: 12px; font-weight: 700; }
.contact-lines__fax { font-family: var(--mono); font-size: 14px; line-height: 1.3; }
.insurers { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; color: var(--ink-soft); }

.nav { background: var(--sheet); border-block: 2px solid var(--rule-strong); }
.nav ul { display: grid; grid-template-columns: repeat(6, 1fr); }
.nav li + li { border-left: 1px solid var(--rule); }
.nav a {
	display: flex; flex-direction: column; gap: 2px; height: 100%;
	padding: 10px 12px 11px; line-height: 1.35; font-weight: 700; text-decoration: none;
	transition: background-color .15s ease;
}
.nav small { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { background: var(--signal); }
.nav a[aria-current="page"] small { color: var(--ink); }

.subnav { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 36px; border-bottom: 1px solid var(--rule-strong); }
.subnav a {
	padding: 8px 16px; border: 1px solid transparent; border-bottom: 0;
	font-size: 14px; font-weight: 700; text-decoration: none; line-height: 1.5;
}
.subnav a:hover { text-decoration: underline; }
.subnav a[aria-current="page"] { position: relative; top: 1px; background: var(--sheet); border-color: var(--rule-strong); }

/* ---------- 下層ページの共通 ---------- */
.crumbs { padding-top: 14px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { text-underline-offset: 3px; }
main { padding-bottom: 72px; }
.page-title { padding-block: 24px 28px; }
.page-title__code { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--ink-soft); }
.page-title h1 { font-family: var(--display); font-size: clamp(28px, 5vw, 44px); font-weight: 400; line-height: 1.35; }
.lead { max-width: 42em; margin-bottom: 36px; font-size: 17px; }
.lead p + p { margin-top: .8em; }
.sheet { background: var(--sheet); border: 1px solid var(--rule-strong); }
.section-head {
	display: flex; align-items: baseline; gap: 12px; margin: 56px 0 16px;
	font-size: 22px; font-weight: 700; line-height: 1.5;
}
.section-head::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--signal); border: 1px solid var(--ink); transform: translateY(1px); }
.note { font-size: 14px; color: var(--ink-soft); }
.textlink { font-weight: 700; text-underline-offset: 3px; }
.textlink:hover { text-decoration-thickness: 2px; }

/* ---------- 記録簿の行 ---------- */
.ledger > li, .ledger > div { display: grid; grid-template-columns: 56px 1fr; border-bottom: 1px solid var(--rule); }
.ledger > :last-child { border-bottom: 0; }
.ledger__no {
	padding: 22px 0 22px 16px; font-family: var(--mono); font-size: 18px; font-weight: 600; line-height: 1.5;
	border-right: 1px solid var(--rule);
}
.ledger__body { padding: 20px 22px 22px; }
.ledger__body h2, .ledger__body h3 { font-size: 19px; font-weight: 700; line-height: 1.55; }
.ledger__body h2 + p, .ledger__body h3 + p { margin-top: 6px; }

.photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.photos img { width: 200px; border: 1px solid var(--rule); }

/* 点検のお問いかけ：左にアイコン */
.check-rows > div { grid-template-columns: 116px 1fr; }
.check-rows__icon { padding: 18px 0 18px 16px; border-right: 1px solid var(--rule); }
.check-rows__icon img { width: 84px; }

/* 手続き・必要なもの */
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.ticks li {
	position: relative; padding: 14px 18px 14px 44px;
	border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); line-height: 1.6;
}
.ticks li:nth-child(even) { border-right: 0; }
.ticks li::before {
	content: ""; position: absolute; left: 16px; top: 18px; width: 16px; height: 16px;
	border: 2px solid var(--ink); background: var(--sheet);
}
.ticks li::after {
	content: ""; position: absolute; left: 21px; top: 19px; width: 6px; height: 12px;
	border: solid var(--stamp); border-width: 0 3px 3px 0; transform: rotate(40deg);
}
.ticks strong { display: block; font-size: 16px; }
.ticks span { display: block; font-size: 14px; color: var(--ink-soft); }

/* ---------- トップ ---------- */
.hero { background: var(--ink); color: #fff; }
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; padding-block: 48px 40px; align-items: start; }
.hero h1 { font-family: var(--display); font-size: clamp(30px, 5.6vw, 56px); font-weight: 400; line-height: 1.28; }
.hero h1 span { display: block; font-family: var(--body); font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--signal); margin-bottom: 8px; }
.hero__copy { max-width: 28em; margin-top: 20px; font-size: 17px; }
.hero__cta {
	display: inline-block; margin-top: 24px; padding: 12px 22px;
	background: var(--signal); color: var(--ink); font-weight: 700; line-height: 1.5; text-decoration: none;
	border: 2px solid var(--signal); transition: background-color .15s ease, color .15s ease;
}
.hero__cta:hover { background: transparent; color: var(--signal); }
.road {
	position: relative; overflow: hidden; height: 60px; background: #0d1829;
	font-family: var(--display); color: rgba(255, 255, 255, .22); font-size: 22px; line-height: 1;
}
.road__line {
	position: absolute; left: 0; right: 0; bottom: 8px; height: 4px;
	background: repeating-linear-gradient(90deg, var(--signal) 0 44px, transparent 44px 88px);
	animation: road 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
.road__sound { position: absolute; top: 12px; white-space: nowrap; }
.road__sound:nth-child(2) { left: 6%; }
.road__sound:nth-child(3) { left: 31%; }
.road__sound:nth-child(4) { left: 57%; }
.road__sound:nth-child(5) { left: 82%; }
@keyframes road { from { background-position-x: -176px; } to { background-position-x: 0; } }

.card-record { background: var(--sheet); color: var(--ink); border: 1px solid #fff; }
.card-record__title { padding: 8px 16px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; border-bottom: 2px solid var(--ink); }
.record dl, dl.record { display: grid; grid-template-columns: 88px 1fr; }
dl.record dt, dl.record dd { padding: 10px 14px; border-bottom: 1px solid var(--rule); line-height: 1.6; }
dl.record dt { font-size: 13px; font-weight: 700; color: var(--ink-soft); border-right: 1px solid var(--rule); }
dl.record dd a { font-family: var(--mono); font-weight: 600; font-size: 18px; text-decoration: none; }
dl.record > :nth-last-child(-n+2) { border-bottom: 0; }

.index-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 40px; background: var(--sheet); border: 1px solid var(--rule-strong); }
.index-grid > div { padding: 18px 16px 20px; border-left: 1px solid var(--rule); }
.index-grid > div:first-child { border-left: 0; }
.index-grid h2 { font-size: 18px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.index-grid h2 a { text-decoration: none; }
.index-grid h2 a:hover { text-decoration: underline; }
.index-grid li { font-size: 14px; line-height: 1.7; }
.index-grid li a { text-underline-offset: 3px; }

.top-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.flyers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.flyers a { display: block; background: var(--sheet); border: 1px solid var(--rule-strong); text-decoration: none; font-size: 14px; font-weight: 700; }
.flyers span { display: block; padding: 8px 12px; border-top: 1px solid var(--rule-strong); }
.flyers a:hover span { background: var(--signal); }
.news { padding: 14px 16px; }
.news dt { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.news dd { font-size: 14px; line-height: 1.7; }
.map-img { background: var(--sheet); border: 1px solid var(--rule-strong); }
.map-img a { display: block; }
.map-img span { display: block; padding: 8px 12px; font-size: 14px; font-weight: 700; border-top: 1px solid var(--rule-strong); }
.map-img a:hover span { background: var(--signal); }

/* ---------- 車検料金 ---------- */
.picker { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--sheet); border: 1px solid var(--rule-strong); }
.picker button {
	display: block; width: 100%; padding: 10px 8px 12px; border: 0; border-left: 1px solid var(--rule);
	background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.45; cursor: pointer;
	transition: background-color .15s ease;
}
.picker li:first-child button { border-left: 0; }
.picker img { width: 96px; margin: 0 auto 6px; }
.picker small { display: block; font-size: 12px; font-weight: 500; }
.picker button:hover { background: var(--paper); }
.picker button[aria-selected="true"] { background: var(--signal); }
.no-js .picker { display: none; }

.bill { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); margin-top: 16px; background: var(--sheet); border: 1px solid var(--rule-strong); scroll-margin-top: 12px; }
.bill[hidden] { display: none; }
.bill__main { padding: 22px 24px 24px; border-right: 1px solid var(--rule); }
.bill h2 { font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.bill__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dotted var(--ink-soft); line-height: 1.5; }
.bill__rows dd { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.bill__sub { background: var(--paper); margin-inline: -8px; padding-inline: 8px !important; font-weight: 700; }
.bill__total { padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.bill__total-label { font-weight: 700; font-size: 15px; }
.bill__total-num { font-family: var(--mono); font-size: 25px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.bill__add { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.6; }
.bill__add strong { display: block; font-size: 15px; }

/* ---------- スタッフ ---------- */
.staff { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.staff li { padding: 20px; background: var(--sheet); border: 1px solid var(--rule-strong); }
.staff img { width: 109px; margin-bottom: 12px; }
.staff__role { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); line-height: 1.5; }
.staff__name { display: block; font-size: 21px; font-weight: 700; line-height: 1.5; }
.staff__years { display: inline-block; margin: 6px 0; padding: 0 8px; background: var(--signal); font-size: 13px; font-weight: 700; line-height: 1.8; }
.staff p { line-height: 1.7; }

/* ---------- 相談 ---------- */
.consult { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.consult__list { padding: 20px 24px; }
.consult__list li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-weight: 700; line-height: 1.6; }
.consult__list li:last-child { border-bottom: 0; }

.insurer-list li { padding: 12px 16px; border-bottom: 1px solid var(--rule); font-weight: 700; line-height: 1.6; }
.insurer-list li:last-child { border-bottom: 0; }
.insurer-list a { text-underline-offset: 3px; }

/* ---------- フッター ---------- */
.foot { background: var(--ink); color: #fff; padding-block: 28px; font-size: 14px; line-height: 1.7; }
.foot ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 14px; }
.foot a { text-underline-offset: 3px; }
.foot small { font-family: var(--mono); font-size: 12px; color: #c6ccd8; }

.callbar { display: none; }

/* ---------- 小さな画面 ---------- */
@media (max-width: 960px) {
	.index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.index-grid > div { border-left: 0; border-top: 1px solid var(--rule); }
	.index-grid > div:nth-child(even) { border-left: 1px solid var(--rule); }
	.index-grid > div:nth-child(-n+2) { border-top: 0; }
	.hero__grid { grid-template-columns: 1fr; }
	.top-columns { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
	body { font-size: 15.5px; padding-bottom: 60px; }
	.band .wrap { flex-direction: column; gap: 0; }
	.masthead .wrap { grid-template-columns: 1fr; padding-block: 14px; }
	.contact-lines { display: none; }
	.nav ul { grid-template-columns: repeat(3, 1fr); }
	.nav li { border-top: 1px solid var(--rule); }
	.nav li:nth-child(-n+3) { border-top: 0; }
	.nav li:nth-child(3n+1) { border-left: 0; }
	.nav a { padding: 8px 10px 9px; font-size: 14px; }
	.page-title { padding-block: 16px 18px; }
	.lead { font-size: 16px; margin-bottom: 26px; }
	.section-head { margin-top: 40px; font-size: 20px; }
	.ledger > li, .ledger > div { grid-template-columns: 40px 1fr; }
	.ledger__no { padding: 16px 0 16px 10px; font-size: 15px; }
	.ledger__body { padding: 14px 14px 16px; }
	.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.photos img { width: 100%; }
	.check-rows > div { grid-template-columns: 76px 1fr; }
	.check-rows__icon { padding: 14px 0 14px 10px; }
	.check-rows__icon img { width: 56px; }
	.ticks { grid-template-columns: 1fr; }
	.ticks li { border-right: 0; }
	.picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.picker li { border-top: 1px solid var(--rule); }
	.picker li:nth-child(-n+2) { border-top: 0; }
	.picker li:nth-child(odd) button { border-left: 0; }
	.picker li:last-child { grid-column: 1 / -1; }
	.picker li:last-child button { border-left: 0; }
	.picker img { width: 72px; }
	.bill { grid-template-columns: 1fr; }
	.bill__main { padding: 16px; border-right: 0; border-bottom: 1px solid var(--rule); }
	.bill__total { padding: 16px; }
	.staff { grid-template-columns: 1fr; }
	.consult { grid-template-columns: 1fr; }
	.flyers { gap: 10px; }
	.road__sound:nth-child(2) { left: 4%; }
	.road__sound:nth-child(3), .road__sound:nth-child(4) { display: none; }
	.road__sound:nth-child(5) { left: auto; right: 4%; }
	.index-grid > div:last-child { grid-column: 1 / -1; }
	.callbar {
		display: grid; grid-template-columns: 1fr; position: fixed; inset: auto 0 0; z-index: 5;
		background: var(--signal); border-top: 2px solid var(--ink);
	}
	.callbar a { display: block; padding: 11px 12px; text-align: center; font-weight: 700; line-height: 1.5; text-decoration: none; }
	.callbar b { font-family: var(--mono); font-size: 18px; font-weight: 600; margin-left: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.road__line { animation: none; }
	* { transition: none !important; }
}
@media print {
	body { background: #fff; padding: 0; }
	.nav, .subnav, .callbar, .road, .skip { display: none; }
	.bill[hidden] { display: grid; }
	.hero { background: #fff; color: #000; }
}
