:root {
  color-scheme: light;
  --ink: #292923;
  --muted: #5b5b50;
  --quiet: #5d5946;
  --paper: #faf9f5;
  --tint: #eeeee6;
  --rule: #d7d8ca;
  --charcoal: #22241e;
  --light-ink: #fbf8f1;
  --light-muted: #d7d1c7;
  --brass: #d6bd95;
  --face: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --display: "Repair Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "BIZ UDMincho", "MS PMincho", serif;
  --latin: Georgia, "Times New Roman", serif;
}

@font-face {
  font-family: "Repair Mincho";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/repair-mincho.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.75 var(--face); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.35; }
ul { padding: 0; list-style: none; }
[id] { scroll-margin-top: 6.25rem; }
:focus-visible { outline: 3px solid #906436; outline-offset: 4px; }

.shell { width: min(100% - 7rem, 75rem); margin-inline: auto; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 5; transform: translateY(-150%); padding: .4rem 1rem; background: var(--paper); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 3; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; min-height: 4.8rem; }
.brand { flex: none; display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; line-height: 1.26; }
.brand img { width: 2.15rem; height: 2.15rem; object-fit: contain; }
.brand b { display: block; font: 600 1.16rem/1.25 var(--latin); letter-spacing: -.025em; }
.brand small { display: block; margin-top: .14rem; color: var(--muted); font-size: .75rem; font-weight: 600; }
nav { display: flex; align-items: center; gap: clamp(.85rem, 2vw, 1.8rem); }
nav a { flex: none; color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 600; }
nav a:hover, .text-link:hover { color: var(--quiet); text-decoration: underline; text-underline-offset: .24em; }
.button { min-height: 3.2rem; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.45rem; border: 1px solid transparent; border-radius: .125rem; font-weight: 700; font-size: .9375rem; text-align: center; text-decoration: none; line-height: 1.45; transition: background-color .16s ease, border-color .16s ease; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #46483c; }
.button-outline { background: transparent; border-color: #a39583; }
.button-outline:hover { background: var(--tint); border-color: var(--ink); }
.header-button { min-height: 2.65rem; padding: .55rem .95rem; white-space: nowrap; font-size: .875rem; }

.hero {
  position: relative;
  isolation: isolate;
  color: var(--light-ink);
  background: #211e1a;
}
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #1717158c 2%, #17171555 42%, transparent 72%), linear-gradient(0deg, #17171554, transparent 24%);
}
.hero-inner { display: flex; align-items: center; min-height: clamp(34rem, 47vw, 55rem); padding-block: 3.8rem; }
.hero-copy { max-width: 38rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--quiet); font-size: .875rem; font-weight: 700; letter-spacing: .15em; }
.eyebrow::before { content: ""; flex: 0 0 1.75rem; height: 1px; background: currentColor; }
.hero .eyebrow { color: #f4e5cb; }
.hero h1 { margin-block: 1.35rem 1.5rem; font: 600 clamp(2.9rem, 5.9vw, 6.35rem)/1.16 var(--display); letter-spacing: .045em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-description { font-size: clamp(1rem, 1.4vw, 1.1rem); color: #f7f3e9; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.95rem; }
.button-light { background: #f5f1e7; color: var(--ink); }
.button-light:hover { background: #e6dbca; }
.hero .button-outline { background: #17171535; border-color: #c1b9aa; }
.hero .button-outline:hover { background: #49453b; border-color: #f5f1e7; }
.hero :focus-visible, .contact :focus-visible { outline-color: var(--brass); }
.hero-caption { position: absolute; inset: auto 1rem .65rem auto; padding: .08rem .4rem; font-size: .75rem; color: #fff; background: #21211bcc; }
.intro-copy { display: grid; grid-template-columns: 1fr minmax(16rem, .83fr); align-items: end; gap: 1.6rem 3.5rem; }
.intro-copy h2 { font-size: clamp(2.1rem, 4.1vw, 3.75rem); }
.intro-copy > p { max-width: 28rem; margin-bottom: .25rem; color: var(--muted); line-height: 1.95; }
.service-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(1.7rem, 4vw, 3.4rem); border-block: 1px solid var(--rule); }
.service-facts li { display: flex; flex-direction: column; gap: .15rem; padding: 1.05rem 1.5rem 1.2rem; border-left: 1px solid var(--rule); }
.service-facts li:first-child { padding-left: 0; border-left: 0; }
.service-facts b { font-size: .95rem; }
.service-facts span { color: var(--muted); font-size: .875rem; }

.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section-tint { background: var(--tint); border-block: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: 1fr minmax(16rem, .56fr); gap: 1.2rem 2.5rem; align-items: end; margin-bottom: 2.35rem; }
.section-head > p, .section-description { color: var(--muted); }
.section-description { margin-block: 1rem 1.2rem; max-width: 26rem; }
h2 { margin-top: .8rem; font: 600 clamp(1.75rem, 3.3vw, 2.85rem)/1.45 var(--display); letter-spacing: .02em; text-wrap: balance; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.service-grid li { min-width: 0; }
.service-link { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: .65rem; min-height: 6rem; padding: 1.15rem 1.1rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; }
.service-grid li:nth-child(4n) .service-link { border-right: 0; }
.service-link:hover { background: var(--tint); }
.service-link:focus-visible { position: relative; z-index: 1; outline-offset: -4px; }
.service-link b { display: block; font-weight: 800; }
.service-link small { display: block; margin-top: .15rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.plus, .disclosure summary::after { width: .95rem; height: .95rem; flex: none; color: var(--quiet); background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; }

.featured-cases { display: grid; gap: clamp(2.5rem, 6vw, 5.5rem); }
.featured-cases > .case-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5.5vw, 5.5rem);
  overflow: visible;
  border: 0;
  background: transparent;
}
.featured-cases > .case-card:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.featured-cases > .case-card:nth-child(even) .case-gallery { order: 2; }
.featured-cases .case-copy { padding: 0; }
.featured-cases .case-copy .eyebrow { color: var(--quiet); margin-bottom: 1rem; }
.featured-cases .case-copy h3 { margin-bottom: .85rem; font: 600 clamp(1.45rem, 3vw, 2.6rem)/1.45 var(--display); }
.featured-cases .case-facts { margin: .6rem 0 1rem; }
.case-gallery { min-width: 0; }
.case-gallery .case-photos { gap: .25rem; }
.case-gallery .case-photos[data-view="before"], .case-gallery .case-photos[data-view="after"] { grid-template-columns: minmax(0, 1fr); }
.case-gallery .case-photos[data-view="compare"] img { aspect-ratio: .72; }
.case-gallery .case-photos img { aspect-ratio: 1.48; object-position: 50% 55%; }
#case-handle .case-gallery img { object-position: 50% 5%; }
.case-gallery .case-photos figcaption { position: absolute; inset: auto auto .7rem .7rem; padding: .17rem .6rem; }
.case-controls { display: flex; justify-content: flex-start; gap: .35rem; padding-top: .65rem; }
.case-controls button {
  min-height: 2.75rem;
  padding: .5rem .9rem;
  font: 700 .875rem/1.3 var(--face);
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
}
.case-controls button:hover { border-color: var(--quiet); }
.case-controls button[aria-pressed="true"] { background: var(--charcoal); color: var(--light-ink); border-color: var(--charcoal); }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.case-card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--rule); overflow: hidden; }
.case-card.case-entered { animation: case-arrival .55s ease-out; }
@keyframes case-arrival {
  from { opacity: .72; transform: translateY(.45rem); }
  to { opacity: 1; transform: translateY(0); }
}
.case-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--paper); }
.case-photos figure { position: relative; overflow: hidden; min-width: 0; background: #e6dfd3; }
.case-photos img { width: 100%; aspect-ratio: 1.12; object-fit: cover; }
.case-photos figcaption { padding: .36rem .75rem; background: var(--tint); color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .045em; }
.case-photos figure:last-child figcaption { background: #e7dfd0; color: var(--ink); }
.case-copy { display: flex; flex-direction: column; align-items: start; flex: 1; padding: 1.1rem 1.25rem; }
.case-copy h3 { margin-bottom: .7rem; font-size: 1rem; font-weight: 800; }
.case-copy p { margin-bottom: 1rem; color: var(--muted); }
.case-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; width: 100%; margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--rule); }
.case-facts dt { color: var(--muted); font-size: .8125rem; }
.case-facts dd { margin: .08rem 0 0; font-size: .875rem; font-weight: 700; }
.case-facts > div:first-child dd { font: 700 1.25rem/1.4 var(--latin); font-variant-numeric: tabular-nums; }
.all-cases { margin-top: 2.1rem; }
.all-cases > h3 { margin-bottom: .9rem; font-size: 1.125rem; }
.disclosure { border-top: 1px solid var(--rule); }
.disclosure:last-child { border-bottom: 1px solid var(--rule); }
.disclosure summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none; padding: .9rem .15rem; font-weight: 750; cursor: pointer; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: ""; }
.disclosure[open] summary::after { background-size: 100% 1px, 0 0; }
.disclosure summary:hover { color: var(--quiet); }
.disclosure-content { padding: 0 .15rem 1.15rem; color: var(--muted); }
.disclosure-content .case-grid { margin-top: 1rem; color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.text-link { color: var(--quiet); font-weight: 700; text-underline-offset: .24em; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .72rem .8rem; text-align: left; border-bottom: 1px solid var(--rule); }
thead th { background: var(--tint); color: var(--muted); font-size: .875rem; }
tbody th { font-weight: 650; }
td { font: 700 1.125rem/1.4 var(--latin); font-variant-numeric: tabular-nums; }
td, th:last-child { text-align: right; white-space: nowrap; }
.steps { list-style: none; padding: 0; }
.steps li { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); gap: .75rem; border-top: 1px solid var(--rule); padding: 1rem 0; }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.step-index { color: var(--quiet); font: 600 1.15rem/1.35 var(--latin); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.0625rem; margin-bottom: .25rem; }
.steps p { color: var(--muted); }
#faq h2 { margin-top: 0; }

.contact { background: linear-gradient(125deg, #22241e, #383b30); color: var(--light-ink); }
.contact .eyebrow, .contact .text-link { color: var(--brass); }
.contact p { max-width: 32rem; color: var(--light-muted); }
.button-line { margin-top: 1.1rem; background: #06743a; color: #fff; border-color: #13854a; }
.button-line:hover { background: #096533; }
.email-note { margin-top: 1.15rem; }
.email-address { margin-top: .4rem; font-size: .9375rem; font-weight: 700; overflow-wrap: anywhere; }
.footer-inner { min-height: 4.5rem; }
.footer-inner small { color: var(--muted); font-size: .8125rem; }
.footer-brand { font-weight: 800; text-decoration: none; }
.mobile-actions { display: none; }

@media (max-width: 64rem) {
  .shell { width: calc(100% - 4rem); }
  nav { gap: .85rem; }
}
@media (max-width: 53rem) {
  .site-header nav { display: none; }
  .shell { width: calc(100% - 3rem); }
  .hero h1 { font-size: clamp(2.7rem, 6vw, 3.65rem); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid li:nth-child(2n) .service-link { border-right: 0; }
}
@media (max-width: 38rem) {
  .shell { width: calc(100% - 2.2rem); }
  .header-inner { min-height: 3.85rem; gap: .55rem; }
  .brand b { font-size: .96rem; }
  .brand img { width: 1.8rem; height: 1.8rem; }
  .brand { flex: 0 1 auto; min-width: 0; gap: .45rem; }
  .brand > span { min-width: 0; }
  .brand b { overflow-wrap: anywhere; }
  .brand img, .header-button { flex-shrink: 0; }
  .header-button { min-height: 2.35rem; padding-inline: .6rem; font-size: .8125rem; }
  .hero-inner { min-height: auto; padding-block: clamp(13rem, 54vw, 17rem) 2.5rem; }
  .hero-photo, .hero::after { height: clamp(17rem, 70vw, 22rem); }
  .hero-photo { object-position: 77% 61%; }
  .hero::after { background: linear-gradient(0deg, #211e1a, #211e1a45 14%, transparent 33%); }
  .hero h1 { margin-block: .64rem .85rem; font-size: clamp(2.55rem, 10.3vw, 3.7rem); }
  .hero-description { line-height: 1.65; }
  .hero-actions { margin-top: 1.2rem; }
  .hero-actions .button { min-height: 2.8rem; padding-inline: .83rem; }
  .hero-caption { inset: .6rem .75rem auto auto; }
  .service-facts { grid-template-columns: 1fr; }
  .service-facts li, .service-facts li:first-child { padding: .65rem 0; gap: 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .service-facts li:last-child { border-bottom: 0; }
  .section-head, .split, .intro-copy, .case-grid,
  .featured-cases > .case-card, .featured-cases > .case-card:nth-child(even) { grid-template-columns: 1fr; }
  .featured-cases > .case-card:nth-child(even) .case-gallery { order: 0; }
  .section-head { gap: .65rem; margin-bottom: 1.25rem; }
  .split { gap: 1.35rem; }
  .service-link { min-height: 5.25rem; padding: .7rem .65rem; gap: .35rem; }
  .service-link b, .service-link small { font-size: .875rem; }
  .service-link small { line-height: 1.4; }
  .plus { width: .7rem; height: .7rem; }
  .case-facts { grid-template-columns: 1fr 1.35fr; }
  th, td { padding-inline: .4rem; }
  tbody th { font-size: .9375rem; }
  .contact { padding-bottom: 3rem; }
  .footer-inner { flex-wrap: wrap; justify-content: flex-start; gap: .35rem 1rem; padding-block: .75rem; }
  .mobile-actions { position: fixed; z-index: 2; inset: auto 0 0; display: grid; grid-template-columns: .9fr 1.1fr; gap: .55rem; padding: .5rem 1.1rem max(.5rem, env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule); }
  .mobile-actions .button { min-height: 2.65rem; padding: .42rem .35rem; }
  body { padding-bottom: calc(3.7rem + env(safe-area-inset-bottom)); }
  [id] { scroll-margin-top: 4.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .case-card.case-entered { animation: none; }
}

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }
