/* Inherited from aircon-shirabe: same paper, navy, brass and ruled tables. Loaded only on repair/cleaning sites. */
:root {
  color-scheme: light;
  --fg: #1d2b40;
  --bg: #f6f4ef;
  --chip: #ece9e2;
  --link: #1d2b40;
  --paper: #f6f4ef;
  --surface: #fffefd;
  --ink: #1d2b40;
  --muted: #5c6470;
  --line: #d6d2c9;
  --accent: #8c7048;
  --subtle: #ece9e2;
  --focus: #865922;
  --font-body: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --font-display: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
}

html { background: var(--paper); scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font: 16px/1.8 var(--font-body) !important;
}
body *, body *::before, body *::after { box-sizing: border-box; }
body a { color: inherit; text-underline-offset: 5px; overflow-wrap: anywhere; }
body a:hover { color: var(--accent); }
body a:focus-visible, body [tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
body header, body main, body footer {
  width: min(1200px, calc(100% - 80px));
  max-width: none;
  margin-inline: auto;
}

/* A wordmark and a separate navigation rail, as on the reference portal. */
body header { border: 0; }
body header .in {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  border-top: 4px solid var(--ink);
}
body header .in > a {
  display: flex;
  width: fit-content;
  min-height: 101px;
  align-items: center;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .035em;
  text-decoration: none;
}
body header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  border-block: 1px solid var(--line);
  font-size: 14px;
}
body header .nav-separator { display: none; }
body header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding-block: 14px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  line-height: 1.8;
  text-decoration: none;
}
body header nav a[aria-current] { border-bottom-color: var(--accent); font-weight: 700; }

body main { padding: 48px 0 80px; min-height: 60vh; }
body h1, body h2, body h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
body h1 { font-size: 32px; margin: 0 0 32px; max-width: 1050px; }
body[data-page="home"] h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding: 10px 0 10px 28px;
  margin-bottom: 36px;
}
body[data-page="home"] h1 span { display: inline-block; }
body h2 { font-size: 23px; margin: 48px 0 20px; max-width: 980px; }
body h1 + h2 { margin-top: 0; }
body h3 { font-size: 18px; margin: 32px 0 12px; }
body main p, body main ul, body main ol { max-width: 900px; }
body p { margin: 0 0 24px; }
body main ul, body main ol { padding-left: 24px; }
body main li { margin-bottom: 10px; }
body .src { color: var(--muted); font-size: 13px; line-height: 1.95; }
body p.source-scroll {
  max-width: none;
  max-height: 176px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-color: #a8a194 var(--subtle);
  border-left: 3px solid var(--accent);
  background: var(--subtle);
  padding: 18px 22px;
  margin-block: 28px 36px;
}

/* Classification lists use the reference site's ruled directory treatment. */
body .facets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  border-top: 2px solid var(--ink);
  margin-block: 28px 40px;
}
body .facets a {
  display: flex;
  align-items: center;
  min-height: 72px;
  min-width: 0;
  margin: 0;
  padding: 18px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
body .facets a:hover { background: var(--subtle); }
body .facets:has(a[href^="/area/pref/"]) { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Preserve every table column and full source value in a scrollable ledger. */
body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: #a8a194 var(--subtle);
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  margin: 32px 0;
  font-size: 14px;
  line-height: 1.85;
  font-variant-numeric: tabular-nums;
}
body th, body td { min-width: 110px; padding: 18px 16px; border-bottom: 1px solid var(--line); }
body th { background: var(--subtle); font-weight: 700; }
body td { background: var(--surface); }
body tbody tr:nth-child(even) td { background: var(--paper); }
body tbody tr:hover td { background: var(--subtle); }
body table :is(th,td):first-child { min-width: 200px; font-weight: 600; }
body table:has(th:nth-child(9)) :is(th,td):nth-child(7) { min-width: 320px; }
body table:has(th:nth-child(9)) :is(th,td):nth-child(8) { min-width: 160px; }
body table:has(th:nth-child(5)):not(:has(th:nth-child(6))) :is(th,td):nth-child(3) { min-width: 240px; }
body table:has(th:nth-child(5)):not(:has(th:nth-child(6))) :is(th,td):nth-child(4) { min-width: 360px; }
body table:has(th:nth-child(5)):not(:has(th:nth-child(6))) :is(th,td):nth-child(5) { min-width: 200px; }
body dl {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(180px, 25%) minmax(0, 1fr);
  gap: 0 32px;
  border-top: 2px solid var(--ink);
  margin: 32px 0;
}
body dt, body dd { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
body dt { color: var(--muted); font-size: 14px; }
body .pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 28px; }
body .pager a, body .pager strong { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 16px; margin: 0; border: 1px solid var(--line); border-radius: 2px; text-decoration: none; }
body .pager strong { background: var(--ink); color: var(--surface); border-color: var(--ink); }
body .pager a:hover { background: var(--subtle); }

body footer { border-top: 2px solid var(--ink); padding: 32px 0 48px; margin-top: 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
body footer h2 { font-size: 18px; margin-top: 32px; }
body footer ul { columns: 2; column-gap: 48px; padding-left: 20px; }
body footer li { break-inside: avoid; margin-bottom: 10px; }
.contact-unconfigured { color: inherit; text-decoration: underline dotted; cursor: help; }

@media (max-width: 760px) {
  body header, body main, body footer { width: calc(100% - 40px); }
  body header .in > a { font-size: 18px; min-height: 86px; }
  body header nav { gap: 0 18px; }
  body header nav a { min-height: 44px; padding-block: 10px; font-size: 12px; }
  body main { padding-block: 32px 56px; }
  body h1 { font-size: 26px; margin-bottom: 24px; }
  body[data-page="home"] h1 { font-size: 29px; padding-left: 20px; margin-bottom: 28px; }
  body h2 { font-size: 21px; margin-top: 36px; }
  body p { font-size: 14px; line-height: 1.95; }
  body p.source-scroll { font-size: 12px; max-height: 160px; padding: 14px 16px; margin-block: 24px 28px; }
  body .facets { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body .facets a { min-height: 64px; padding: 16px 2px; font-size: 15px; }
  body .facets:has(a[href^="/area/pref/"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  body th, body td { padding: 14px 12px; }
  body dl { grid-template-columns: 1fr; }
  body dt { border: 0; padding: 16px 0 4px; font-weight: 600; }
  body dd { padding: 0 0 16px; font-size: 14px; }
  body footer ul { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body .brand-byline { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 20px; }
body .site-lead { font-size: 19px; }
body .search-entry { display:flex; gap:24px; align-items:center; justify-content:space-between; padding:20px 24px; margin-bottom:40px; background:var(--subtle); border-left:3px solid var(--accent); }
body .search-entry p { font-size:13px; margin:4px 0 0; }
body .search-entry a { flex-shrink:0; font-weight:700; }
body .related-services { margin-top:56px; padding-top:32px; border-top:2px solid var(--ink); }
body .section-kicker { color:var(--muted); font-size:12px; letter-spacing:.1em; margin-bottom:10px; }
body .related-services h2 { margin-top:0; }
body .related-grid, body .footer-services { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; }
body .related-grid article { border-top:1px solid var(--line); }
body .related-grid h3 { margin-top:20px; }
body .related-grid p, body .related-note { font-size:14px; }
body .related-grid ul { padding-left:0; list-style:none; }
body .related-grid li { margin-bottom:20px; }
body .related-grid li span { display:block; font-size:12px; color:var(--muted); }
body .related-note { color:var(--muted); margin-top:24px; }
body footer .footer-identity strong { color:var(--ink);font-size:23px; }
body footer ul { columns:1; }
body footer nav { display:flex; flex-wrap:wrap; gap:12px 28px; padding-block:24px; border-top:1px solid var(--line); }
body footer .copyright { font-size:12px; margin:0; }
body .search-app h2 { margin-top:36px; }
body .search-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
body .search-fields label { display:grid; gap:6px; font-size:14px; font-weight:600; }
body .search-keyword { grid-column:span 2; }
body .search-fields input, body .search-fields select { min-height:48px; width:100%; min-width:0; padding:10px 12px; border:1px solid #aaa69c; border-radius:2px; background:var(--surface); color:var(--ink); font:inherit; font-size:15px; }
body .search-options, body .search-actions { display:flex; flex-wrap:wrap; gap:14px 24px; margin-block:24px; }
body .search-options label { display:flex; align-items:center; gap:8px; font-size:14px; }
body .search-options input { width:20px; height:20px; accent-color:var(--ink); }
body .search-actions button { min-height:48px; padding:10px 24px; border:1px solid var(--ink); background:var(--ink); color:var(--surface); font:inherit; font-weight:700; cursor:pointer; border-radius:2px; }
body .search-actions .secondary { background:transparent; color:var(--ink); }
body input:focus-visible, body select:focus-visible, body button:focus-visible, body summary:focus-visible { outline:2px solid var(--focus); outline-offset:3px; }
body .search-method { font-size:13px; margin-block:24px; background:var(--subtle); padding:16px 20px; }
body summary { cursor:pointer; }
body .search-method p { margin:16px 0 0; }
body #search-count { padding-top:24px; border-top:2px solid var(--ink); font-weight:700; scroll-margin-top:20px; }
body .result-card { padding:24px 0; border-bottom:1px solid var(--line); }
body .result-heading { display:flex; justify-content:space-between; align-items:baseline; gap:20px; }
body .result-heading h3 { margin:0; font-size:20px; }
body .result-kind { flex-shrink:0; font-size:12px; color:var(--muted); }
body .result-tags { font-size:13px; color:var(--muted); margin:8px 0 12px; }
body .result-price { font-size:24px; font-weight:700; margin:0; font-variant-numeric:tabular-nums; }
body .result-price small { font-size:12px; font-weight:400; }
body .result-price-note { font-size:12px; color:var(--muted); margin:4px 0 16px; }
body .result-card details { font-size:14px; }
body .result-card details p { margin:16px 0; overflow-wrap:anywhere; }
body .empty-results { background:var(--subtle); padding:24px; }
body .empty-results h3 { margin-top:0; }
body .pager a[aria-current=page] { background:var(--ink);color:var(--surface); }
body .search-error { color:#8b312a; }
@media(max-width:760px){
  body .search-entry { display:block; padding:18px; }
  body .search-entry a { display:inline-block; margin-top:12px; }
  body .related-grid, body .footer-services, body .search-fields { grid-template-columns:1fr;gap:16px; }
  body .search-keyword { grid-column:auto; }
  body .result-heading { display:block; }
  body .result-heading h3 { font-size:18px; }
  body .result-price { font-size:22px; }
  body .search-fields label { font-size:13px; }
  body .search-fields input,body .search-fields select { font-size:16px; }
  body .brand-byline { margin-left:12px; font-size:11px; }
}

/* Directory and article layouts shared by every published route in these two sites. */
body .ienote-header { background:transparent; }
body .ienote-header .in { max-width:none; padding:0; }
body .ienote-wordmark { flex-wrap:wrap; gap:8px 0; }
body .ienote-header nav a { margin:0; }
body .ienote-owner { border-block:1px solid var(--line); padding:0 0 12px; margin:24px 0 40px; }
body .ienote-owner h2 { margin-top:24px; }
body h2 { border-bottom:0; padding-bottom:0; }
body .answer, body .callout, body .toc { border:0; border-left:3px solid var(--accent); border-radius:0; padding:20px 24px; background:var(--subtle); color:var(--ink); }
body .amap { border-block:1px solid var(--line); padding:24px 0; margin:32px 0; }
body .amap > h2 { margin:0 0 24px; }
body .amap-b { font-family:var(--font-body); }
body .facets:has(a[href*="/prefecture/"]) { grid-template-columns:repeat(4,minmax(0,1fr));gap:0 24px;max-width:none; }
body .tags { display:flex; flex-wrap:wrap; gap:8px; max-width:none; }
body .tags a { font-size:13px; border:1px solid var(--line); border-radius:2px; background:transparent; color:var(--ink); padding:8px 12px; margin:0; }
body .tags a:hover { background:var(--subtle); }
body main > .tags { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:2px solid var(--ink); gap:0 24px; }
body main > .tags a { display:flex; align-items:center; min-height:72px; border:0; border-bottom:1px solid var(--line); padding:16px 0; font-size:14px; border-radius:0; }
body main > ul.list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 36px; max-width:none; }
body main > ul.list li { padding:24px 0; margin:0; min-width:0; border-bottom:1px solid var(--line); }
body main > ul.list h2,body main > ul.list h3 { font-size:20px;margin:12px 0;line-height:1.65; }
body main > ul.list h3 a { text-decoration:none; }
body .meta { color:var(--muted);font-size:12px; }
body .note { border-color:var(--line); }
body .ienote-footer :is(p,ul) { max-width:none; }
body .ienote-footer section { min-width:0; }
body .ienote-footer p { margin-bottom:18px; }
body .ienote-footer nav { margin-top:24px; }
body .collection-table-scroll { border:0; }
body .collection-table-scroll table { display:table; margin:0; }
body .collection-table-scroll { margin:28px 0; }
body main > ul:not([class]) { columns:2; column-gap:40px; }
body main > ul:not([class]) li { break-inside:avoid; }
body[data-page="detail"] main > ul:not([class]) { columns:1; }
@media(max-width:760px){
 body .ienote-wordmark { display:block; padding:22px 0; min-height:0!important; }
 body .ienote-wordmark strong { display:block; font-size:19px; }
 body .ienote-wordmark .brand-byline { display:block; margin:4px 0 0; }
 body .ienote-header nav { gap:0 20px; }
 body .ienote-header nav a { font-size:13px; }
 body main > ul.list,body main > .tags { grid-template-columns:1fr; }
 body .facets:has(a[href*="/prefecture/"]) { grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px; }
 body main > ul:not([class]) { columns:1; }
 body .answer,body .callout,body .toc { padding:16px; font-size:14px; }
 body main > ul.list h2,body main > ul.list h3 { font-size:18px; }
}
body[data-ienote] h1 .brand-line { display:inline-block; }
@media(max-width:760px){body .ienote-header .in > a.ienote-wordmark { display:block; } body .ienote-header .brand-byline { display:block; margin-left:0; }}
