/* test 下層ページ用（top.css の後に読み込む） */

/* ページの見出し */
.page-hero { background: linear-gradient(115deg, #fff 0%, #f1f5fb 55%, #dbe6f6 100%); }
.page-hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px 16px 24px; }
.crumb { display: flex; flex-wrap: wrap; gap: 0 8px; color: var(--muted); font-size: 13px; }
.crumb a { color: var(--navy); }
.crumb a:hover { text-decoration: underline; }
.page-hero .eng { margin-top: 14px; }
.page-hero h1 { display: flex; align-items: center; gap: 14px; font-size: clamp(27px, 6.500vw, 38px); font-weight: 900; line-height: 1.35; }
.page-hero h1::after { content: ""; width: 56px; height: 4px; background: var(--yellow-deep); flex: none; }

/* 本文の左端をヘッダーと見出しに揃える（top.css の中央寄せを下層では使わない） */
.section:not(#links) { padding-left: max(16px, calc((100% - var(--wrap)) / 2 + 16px)); padding-right: max(16px, calc((100% - var(--wrap)) / 2 + 16px)); }
.section:not(#links) > * { margin-left: 0; margin-right: 0; }
#links > * { max-width: calc(var(--wrap) - 32px); }
#links > .flat7 { max-width: 680px; }

/* 本文 */
main section[id] { scroll-margin-top: 80px; }
.ttl { margin: 28px 0 12px; padding-left: 10px; border-left: 5px solid var(--yellow-deep); font-size: 18px; font-weight: 700; line-height: 1.4; }
.catch { color: var(--navy); font-weight: 700; }
.catch-lg { color: var(--navy); font-size: 21px; font-weight: 900; line-height: 1.5; }
.prose { max-width: 860px; }
.prose p + p { margin-top: 12px; }
.red { color: var(--red); font-weight: 700; }
.note { margin-top: 12px; font-size: 14px; }
.note li + li { margin-top: 2px; }
.mt { margin-top: 16px; }
.panel { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.notice { padding: 32px 16px; background: var(--tint); border-radius: 8px; text-align: center; font-size: 18px; font-weight: 700; }

/* 項目の並び */
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chips li { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.chips svg { color: var(--navy); }

/* 写真と文章 */
.fig { max-width: 700px; }
.fig img { display: block; width: 100%; border-radius: 8px; }
.media { display: grid; gap: 14px; }
.media img { display: block; border-radius: 8px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 720px; }
.photos img { display: block; width: 100%; border-radius: 8px; }
.results { grid-template-columns: repeat(3, 1fr); }

/* 表 */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; }
.tbl { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15px; line-height: 1.5; }
.tbl th, .tbl td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl tr:first-child > * { border-top: 0; }
.tbl tr:last-child > * { border-bottom: 0; }
.tbl tr > :first-child { border-left: 0; }
.tbl tr > :last-child { border-right: 0; }
.tbl thead th { background: var(--navy); color: var(--white); font-weight: 700; text-align: center; }
.tbl tbody th { background: var(--tint); font-weight: 700; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .total th, .tbl .total td { background: #fff8d6; color: var(--navy-deep); font-weight: 900; }
.tbl .total td { font-size: 17px; }
.tbl-wide { min-width: 720px; }
.tbl-wide thead th { white-space: nowrap; }
.tbl-wide tbody th:first-child { width: 150px; font-size: 14px; }
.tbl-wide tbody th small { display: block; font-size: 12px; font-weight: 500; line-height: 1.4; }
.tbl-wide tbody th:first-child, .tbl-wide thead tr:first-child th:first-child { position: sticky; left: 0; z-index: 1; }
.scroll-hint { margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.badge { display: inline-block; margin-left: 4px; padding: 0 8px; background: #e8467c; border-radius: 999px; color: var(--white); font-size: 11px; font-weight: 700; line-height: 1.7; white-space: nowrap; vertical-align: middle; }

.info-tbl th { width: 100%; }
.history .group th { background: var(--navy); color: var(--white); }
.history .ymd { white-space: nowrap; font-weight: 500; }
@media (max-width: 639px) {
	.info-tbl th, .info-tbl td, .history .ymd, .history tr:not(.group) td { display: block; width: 100%; border: 0; }
	.info-tbl tr + tr th { border-top: 1px solid var(--line); }
	.history tr:not(.group) .ymd { padding-bottom: 0; border-top: 1px solid var(--line); color: var(--navy); font-weight: 700; }
	.history tr:not(.group) td:not(.ymd) { padding-top: 2px; }
	.history .group th { border: 0; }
}

/* 取扱いメーカー */
.parts { display: grid; gap: 16px; margin-top: 16px; }
.parts-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.parts-row img { display: block; max-width: 100%; }

/* ボタン */
.actions { display: grid; gap: 10px; margin-top: 16px; }
.call-panel { display: grid; gap: 4px; margin-top: 12px; padding: 16px; background: var(--tint); border-radius: 8px; }
.call-panel p { font-weight: 700; }
.call-panel a { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-size: 26px; font-weight: 700; line-height: 1.3; }

/* 店舗 */
.shop { display: grid; gap: 20px; }
.shop + .shop { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.shop h2 { font-size: 24px; font-weight: 900; line-height: 1.35; }
.shop .addr { margin-top: 6px; }
.shop-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.shop-photos img { display: block; width: 100%; border-radius: 8px; }
.shop-map { display: block; width: 100%; height: 280px; margin-top: 10px; border: 0; border-radius: 8px; }
.shop-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin-top: 4px; font-size: 15px; }
.shop-dl dt { color: var(--muted); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 0 14px; }
.staff { display: grid; gap: 10px; }
.staff li { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 12px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.staff img { display: block; width: 84px; border-radius: 8px; }
.staff b { font-size: 17px; line-height: 1.4; }
.staff small { display: block; color: var(--navy); font-size: 13px; font-weight: 500; }
.staff p { margin-top: 2px; font-size: 14px; line-height: 1.6; }

/* 保険 */
.ins-list { display: grid; grid-template-columns: repeat(2, 156px); gap: 12px; }
.ins-list li { padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 14px; font-weight: 500; }
.ins-list img { display: block; margin: 0 auto 4px; }

/* お問い合わせ */
.tel-grid { display: grid; gap: 16px; margin-top: 20px; }
.tel-card { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.tel-card h2 { font-size: 20px; font-weight: 900; line-height: 1.3; }
.tel-card a { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 4px; color: var(--navy); font-size: 30px; font-weight: 700; line-height: 1.2; }
.tel-card p { font-size: 14px; color: var(--muted); }

/* プライバシーポリシー */
.policy h3 { margin-top: 24px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.policy p { margin-top: 8px; }

@media (min-width: 640px) {
	.chips { grid-template-columns: repeat(4, 1fr); }
	.results { grid-template-columns: repeat(5, 1fr); }
	.media-side { grid-template-columns: 200px 1fr; align-items: start; }
	.media-side-lg { grid-template-columns: 380px 1fr; align-items: start; }
	.media-side img { width: 100%; }
	.parts-row { grid-template-columns: 124px minmax(0, 564px); }
	.actions { display: flex; flex-wrap: wrap; }
	.tel-grid { grid-template-columns: 1fr 1fr; }
	.info-tbl th { width: 160px; white-space: nowrap; }
	.scroll-hint { display: none; }
}

@media (min-width: 1000px) {
	.page-hero-inner { padding: 14px 16px 28px; }
	.shop { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
	.staff-list-wide { grid-template-columns: 1fr; }
	.catch-lg { font-size: 25px; }
	.chips-5 { grid-template-columns: repeat(5, 1fr); }
	.fig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
}
