:root {
  --primary: #b0182d;
  --primary-dark: #74101f;
  --platinum: #e5e4e2;
  --platinum-soft: #f5f5f4;
  --silver: #a9aaad;
  --ink: #292b30;
  --muted: #65676c;
  --paper: #ffffff;
  --line: #d8e3e6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.page-width { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.content-width { width: min(830px, calc(100% - 48px)); margin-inline: auto; }
.section-pad { padding: 96px 0; }

.site-header {
  height: 74px;
  width: min(1260px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { color: var(--ink); display: grid; place-items: center; position: relative; }
.static-brand-mark { width: 26px; height: 26px; font-size: 18px; }
.brand-mark::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 8px;
  left: -19px;
  top: 8px;
  background: var(--platinum);
  clip-path: polygon(0 50%, 35% 0, 35% 28%, 100% 28%, 100% 72%, 35% 72%, 35% 100%);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 14px; font-weight: 900; }
.brand-copy small { font-size: 7px; margin-top: 5px; color: var(--muted); font-weight: 700; }
.header-contact {
  min-height: 40px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 5px 16px rgba(176, 24, 45, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.header-contact:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(176, 24, 45, 0.3); }

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 58px;
  background-color: var(--platinum-soft);
  background-image: radial-gradient(#d2d2d1 1px, transparent 1px);
  background-size: 8px 8px;
}
.hero-copy { position: relative; z-index: 3; text-align: center; min-height: 590px; }
.eyebrow { margin: 0 0 14px; color: var(--primary-dark); font-size: 11px; font-weight: 900; letter-spacing: 0.14em; }
.hero h1 { margin: 0; color: #303638; font-size: clamp(42px, 6vw, 74px); line-height: 1.22; font-weight: 900; display: inline-block; padding: 2px 26px; background: rgba(255,255,255,0.82); }
.hero-subtitle { margin: 14px auto 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 18px; font-weight: 700; color: #3f474a; display: inline-block; padding: 6px 18px; background: rgba(255,255,255,0.82); }
.hero-illustration { position: absolute; z-index: 2; left: 50%; bottom: 96px; width: min(930px, 78vw); height: auto; transform: translateX(-50%); pointer-events: none; opacity: 0.5; }
.service-strip { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(6, 1fr); height: 132px; }
.service-tile { position: relative; overflow: hidden; border-right: 1px solid rgba(255,255,255,0.55); }
.service-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 280ms ease; }
.service-tile:hover img { transform: scale(1.04); }
.service-tile::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(255,255,255,0.98) 56%); }
.service-tile strong { position: absolute; z-index: 2; bottom: 12px; left: 0; right: 0; text-align: center; color: #263a42; font-size: 16px; }

.partner-section { background: linear-gradient(115deg, #c3213b, var(--primary) 58%, var(--primary-dark)); color: white; position: relative; overflow: hidden; }
.partner-section::before { content: ""; position: absolute; inset: 0; opacity: 0.18; background: linear-gradient(132deg, transparent 42%, var(--platinum) 43%, transparent 44%), linear-gradient(28deg, transparent 62%, var(--platinum) 63%, transparent 64%); background-size: 220px 170px; }
.partner-section::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -58px; height: 100px; background: white; transform: rotate(-3deg); transform-origin: center; }
.partner-inner { min-height: 480px; padding: 66px 0 95px; display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 50px; }
.partner-callout { border: 4px solid white; padding: 24px 30px; text-align: center; }
.partner-callout strong { font-size: 18px; }
.partner-callout p { margin: 10px 0 0; font-size: 12px; line-height: 1.8; font-weight: 700; }
.case-pills { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.case-pills span { background: white; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 22px; font-size: 16px; font-weight: 900; box-shadow: 0 4px 0 rgba(7,77,83,0.35); }
.partner-message { margin: 0; max-width: 570px; font-weight: 800; font-size: 15px; line-height: 1.85; }
.building-cluster { display: flex; align-items: flex-end; justify-content: center; color: white; gap: 2px; transform: translateY(24px); }
.building-cluster svg { width: 96px; height: 145px; stroke-width: 1.8; }
.building-cluster svg:nth-child(2) { width: 140px; height: 205px; }
.building-cluster svg:nth-child(3) { width: 110px; height: 130px; }
.static-buildings span { display: block; width: 76px; height: 132px; border: 7px solid white; border-bottom-width: 18px; position: relative; }
.static-buildings span::after { content: ""; position: absolute; inset: 14px 10px; background: repeating-linear-gradient(90deg, white 0 10px, transparent 10px 20px), repeating-linear-gradient(0deg, white 0 8px, transparent 8px 19px); opacity: 0.85; }
.static-buildings span:nth-child(2) { width: 110px; height: 184px; }
.static-buildings span:nth-child(3) { width: 88px; height: 112px; }

.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading p { margin: 0 0 8px; color: var(--primary); font-size: 10px; font-weight: 900; letter-spacing: 0.14em; }
.section-heading h2 { margin: 0; display: inline-block; font-size: 28px; line-height: 1.4; font-weight: 900; position: relative; }
.section-heading h2::after { content: ""; position: absolute; width: 68px; height: 4px; background: var(--primary); border-radius: 4px; left: 50%; bottom: -12px; transform: translateX(-50%); }
.process-intro { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 38px; margin-bottom: 34px; }
.round-label { width: 130px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: white; font-size: 21px; font-weight: 900; }
.process-intro p { font-size: 14px; line-height: 1.9; font-weight: 700; margin: 0; }
.gallery-title { display: flex; align-items: center; gap: 20px; color: white; margin: 0 0 22px 168px; }
.gallery-title::after { content: ""; flex: 1; height: 1px; background: #b7c9ce; }
.gallery-title span { min-width: 230px; padding: 8px 24px; background: var(--primary); border-radius: 999px; text-align: center; font-size: 13px; font-weight: 900; }
.gallery-subtitle { font-size: 16px; margin: 0 0 14px; }
.gallery-subtitle small { margin-left: 12px; font-size: 10px; }
.repair-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; }
.repair-gallery figure { margin: 0; }
.gallery-image { position: relative; aspect-ratio: 1.58; overflow: hidden; background: #e7ecee; }
.gallery-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 280ms ease; }
.repair-gallery figure:hover img { transform: scale(1.05); }
.repair-gallery figcaption { font-size: 11px; margin-top: 6px; font-weight: 900; }
.investigation-intro { margin-top: 76px; }
.investigation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.investigation-grid article { min-width: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.investigation-type { width: 100%; min-height: 40px; padding: 8px 4px; display: grid; place-items: center; color: white; background: var(--primary); font-size: 11px; font-weight: 900; position: relative; }
.investigation-type::after { content: ""; position: absolute; bottom: -13px; height: 16px; width: 1px; background: var(--primary); }
.investigation-grid svg { width: 62px; height: 62px; color: var(--ink); margin: 30px 0 10px; stroke-width: 1.7; }
.investigation-grid strong { font-size: 12px; line-height: 1.55; }
.investigation-grid .static-icon { width: 84px; height: 84px; flex-shrink: 0; margin: 30px 0 12px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.investigation-grid .static-icon img { width: 42px; height: 42px; object-fit: contain; display: block; }
.strengths-block { padding-top: 94px; }
.section-heading.compact { margin-bottom: 52px; }
.strengths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.strengths-grid article { position: relative; text-align: center; }
.strength-number { position: absolute; left: 2px; top: -22px; color: var(--primary); font-size: 24px; font-weight: 900; }
.strength-circle { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--primary); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); }
.strength-circle::after { content: ""; position: absolute; inset: -12px; border: 4px dotted var(--primary); border-radius: 50%; }
.strengths-grid article:nth-child(2) .strength-circle::after { display: none; }
.strength-circle svg { width: 52px; height: 52px; margin-bottom: 12px; }
.strength-circle p { margin: 0; font-size: 12px; font-weight: 900; line-height: 1.6; }
.static-strength-icon { width: 54px; height: 54px; margin-bottom: 12px; object-fit: contain; filter: brightness(0) invert(1); }

.flow-section { background: linear-gradient(180deg, var(--platinum-soft), var(--platinum)); }
.flow-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.flow-list li { min-height: 120px; display: grid; grid-template-columns: 160px 1fr; background: white; position: relative; }
.flow-list li::after { content: ""; position: absolute; left: 50%; bottom: -13px; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 14px solid white; }
.flow-list > li > span { display: grid; place-items: center; background: var(--primary); color: white; font-size: 25px; font-weight: 900; }
.flow-list li div { padding: 22px 30px; align-self: center; }
.flow-list strong { font-size: 15px; }
.flow-list p { margin: 7px 0 0; font-size: 12px; line-height: 1.75; font-weight: 700; }

.company-section { background: white; }
.company-profile { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.company-profile h3 { margin: 0; padding-top: 18px; font-size: 22px; line-height: 1.6; font-weight: 900; }
.company-facts { margin: 0; border-top: 1px solid var(--silver); }
.company-facts div { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--platinum); }
.company-facts dt, .company-facts dd, .company-facts .fact-label, .company-facts .fact-value { margin: 0; padding: 16px 14px; font-size: 12px; line-height: 1.7; }
.company-facts dt, .company-facts .fact-label { color: var(--primary-dark); font-weight: 900; }
.company-facts dd, .company-facts .fact-value { font-weight: 700; }
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 42px; }
.office-grid article { min-width: 0; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 20px; background: var(--platinum-soft); border-left: 4px solid var(--primary); border-radius: 6px; }
.office-grid svg { width: 23px; height: 23px; color: var(--primary); }
.office-grid .map-marker { width: 23px; height: 23px; display: grid; place-items: center; color: var(--primary); font-size: 17px; }
.office-grid strong { display: block; font-size: 13px; line-height: 1.5; }
.office-grid p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; font-weight: 700; }
.official-link { width: fit-content; min-height: 44px; margin: 30px auto 0; padding: 0 22px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--primary); color: var(--primary-dark); font-size: 12px; font-weight: 900; transition: background 180ms ease, color 180ms ease; }
.official-link:hover { background: var(--primary); color: white; }
.official-link svg { width: 16px; height: 16px; }

.contact-section { min-height: 380px; padding: 68px 0 46px; background: linear-gradient(120deg, #c82540, var(--primary-dark)); color: white; position: relative; overflow: hidden; text-align: center; }
.contact-lines { position: absolute; inset: 0; opacity: 0.15; background-image: linear-gradient(35deg, transparent 47%, white 48%, transparent 49%), linear-gradient(145deg, transparent 47%, white 48%, transparent 49%); background-size: 190px 120px; transform: translateX(35%); }
.contact-inner { position: relative; z-index: 1; }
.contact-icon { width: 40px; height: 40px; margin-bottom: 10px; }
.static-contact-icon { width: 40px; height: 40px; margin: 0 auto 10px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; font-size: 24px; font-weight: 900; }
.contact-section h2 { margin: 0; font-size: 25px; font-weight: 900; }
.contact-section h2::after { content: ""; display: block; width: 160px; height: 2px; background: white; margin: 12px auto 18px; }
.contact-section p { font-size: 13px; font-weight: 700; }
.contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 270px)); justify-content: center; gap: 4px; margin-top: 24px; }
.contact-actions a { min-height: 52px; padding: 0 18px; background: var(--platinum-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 15px; font-weight: 900; transition: background 180ms ease; }
.contact-actions a:hover { background: white; }
.contact-actions svg { width: 19px; }
.footer-brand { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 900; }
footer { min-height: 46px; padding: 12px 28px; background: #24262a; color: white; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 9px; }
footer nav { display: flex; gap: 16px; }

@media (max-width: 760px) {
  .page-width, .content-width { width: min(100% - 32px, 600px); }
  .section-pad { padding: 70px 0; }
  .site-header { width: calc(100% - 28px); height: 64px; }
  .brand-copy strong { font-size: 12px; }
  .header-contact { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; font-size: 0; }
  .header-contact svg { width: 18px; height: 18px; }
  .hero { padding-top: 44px; }
  .hero-copy { min-height: 340px; }
  .hero h1 { font-size: clamp(20px, 8.8vw, 50px); white-space: nowrap; padding: 2px 14px; }
  .hero-subtitle { max-width: 320px; font-size: 14px; line-height: 1.8; }
  .hero-illustration { width: min(520px, 112vw); bottom: 150px; }
  .service-strip { grid-template-columns: repeat(3, 1fr); height: 190px; }
  .service-tile strong { font-size: 12px; bottom: 7px; }
  .partner-section::after { bottom: -74px; }
  .partner-inner { min-height: 520px; padding: 50px 0 105px; grid-template-columns: 1fr; gap: 22px; }
  .partner-callout { border-width: 3px; padding: 20px 16px; }
  .partner-callout strong { font-size: 15px; line-height: 1.6; display: block; }
  .case-pills { justify-content: center; gap: 8px; }
  .case-pills span { font-size: 13px; padding: 6px 15px; }
  .partner-message { font-size: 13px; }
  .building-cluster { display: none; }
  .section-heading h2 { font-size: 24px; }
  .process-intro { grid-template-columns: 88px 1fr; gap: 22px; }
  .round-label { width: 88px; font-size: 17px; }
  .process-intro p { font-size: 12px; line-height: 1.75; }
  .gallery-title { margin-left: 110px; }
  .gallery-title span { min-width: 160px; }
  .repair-gallery { grid-template-columns: repeat(2, 1fr); }
  .investigation-intro { margin-top: 60px; }
  .investigation-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .strengths-grid { grid-template-columns: 1fr; gap: 54px; max-width: 260px; margin-inline: auto; }
  .flow-list li { grid-template-columns: 78px 1fr; min-height: 142px; }
  .flow-list li div { padding: 18px; }
  .company-profile { grid-template-columns: 1fr; gap: 20px; }
  .company-profile h3 { padding-top: 0; font-size: 19px; text-align: center; }
  .company-facts div { grid-template-columns: 92px 1fr; }
  .company-facts dt, .company-facts dd, .company-facts .fact-label, .company-facts .fact-value { padding: 13px 10px; font-size: 11px; }
  .office-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .contact-section { padding: 58px 0 42px; }
  .contact-section h2 { font-size: 21px; line-height: 1.55; }
  .contact-actions { grid-template-columns: 1fr; }
  .contact-actions a { min-width: 0; padding-inline: 10px; font-size: 12px; overflow-wrap: anywhere; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
