:root {
  color-scheme: light;
  --ink: #10243a;
  --muted: #445b70;
  --navy: #071c33;
  --paper: #fff;
  --page: #f3f6fa;
  --line: #d9e2eb;
  --accent: #aee9e2;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 1rem; line-height: 1.65; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #16726c; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; overflow-wrap: anywhere; }

.shell { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; padding-block: 1rem; }
.brand { font-weight: 800; text-decoration: none; font-size: 1.15rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; }
.site-nav a { font-weight: 650; text-underline-offset: .24em; }
.site-nav a:not(:hover) { text-decoration: none; }

.hero, .shop-intro { color: var(--paper); background: var(--navy); }
.hero-layout { display: grid; grid-template-columns: 1fr minmax(0, 25rem); align-items: center; gap: 2.5rem; padding-block: clamp(2.2rem, 6vw, 5.5rem); }
.hero h1, .shop-intro h1 { font-size: clamp(2rem, 4.4vw, 4rem); letter-spacing: -.035em; }
.hero p, .shop-intro p { margin-top: 1rem; color: #d4e1ef; font-size: 1.0625rem; }
.hero-art { display: block; width: 100%; border-radius: 1rem; background: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button { display: inline-flex; min-height: 2.85rem; align-items: center; justify-content: center; padding: .55rem 1rem; border: 1px solid transparent; border-radius: .5rem; text-decoration: none; font-weight: 750; }
.button:hover { text-decoration: underline; text-underline-offset: .2em; }
.button-primary { background: var(--accent); color: var(--navy); }
.button-secondary { border-color: #9ab1c6; color: var(--paper); }

.section { padding-block: clamp(2rem, 5vw, 4rem); }
.section h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
.service-grid, .shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1.25rem; }
.card, .legacy, .shop-status { border: 1px solid var(--line); background: var(--paper); border-radius: .8rem; padding: clamp(.9rem, 3vw, 1.5rem); }
.card { overflow-wrap: anywhere; }
.card h3 { font-size: 1.13rem; }
.card p { margin-top: .5rem; color: var(--muted); }
.card-links { display: flex; gap: .45rem 1rem; flex-wrap: wrap; margin-top: .7rem; }
.card-links a { font-weight: 650; text-underline-offset: .2em; }

.legacy { margin-top: 1.4rem; }
.legacy summary { font-weight: 750; cursor: pointer; }
.legacy-content { margin-top: 1rem; overflow-wrap: anywhere; }
.legacy-content p { margin: .65rem 0 !important; text-align: start !important; }
.legacy-content p:empty { display: none; }
.legacy-content span, .legacy-content font { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important; }
.legacy-content table { max-width: 100%; }

.shop-intro .shell { padding-block: clamp(2rem, 6vw, 4.2rem); }
.shop-grid { margin-top: 0; }
.shop-card h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.shop-card p[lang="en"] { margin-top: .35rem; }
.shop-status { margin-top: 1rem; }
.shop-status p + p { margin-top: .3rem; }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }

@media (max-width: 45rem) {
  .shell { width: calc(100% - 2rem); }
  .hero-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-art { width: min(100%, 23rem); }
  .service-grid, .shop-grid { grid-template-columns: 1fr; }
}

.repair-lookup { padding-top: clamp(1.5rem, 4vw, 3rem); }
.repair-lookup h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
.repair-lookup form { margin-top: .9rem; }
.repair-lookup label { display: block; font-weight: 700; }
.repair-lookup-input { display: flex; gap: .55rem; margin-top: .3rem; }
.repair-lookup-input input {
  width: 100%;
  min-width: 0;
  padding: .65rem .75rem;
  color: var(--ink);
  font: inherit;
  border: 1px solid #788b9e;
  border-radius: .5rem;
}
.repair-lookup-input button { color: var(--paper); background: var(--navy); cursor: pointer; white-space: nowrap; }
.repair-lookup-results { list-style: none; padding: 0; margin: 0; }
.repair-lookup-results li { border-top: 1px solid var(--line); }
.repair-lookup-results a { display: block; padding: .65rem 0; text-underline-offset: .2em; overflow-wrap: anywhere; }
.repair-lookup-results span { display: block; color: var(--muted); font-size: .875rem; }
.repair-lookup [role="status"] { margin-block: .6rem; }
.repair-lookup [role="status"]:empty { display: none; }
