:root {
  --red: #b91522;
  --red-dark: #8f101a;
  --ink: #1f2421;
  --muted: #69706b;
  --paper: #f3f0ea;
  --paper-strong: #ebe7df;
  --line: #ded8ce;
  --wood: #b99b74;
  --white: #fffdf9;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(185, 21, 34, 0.07), transparent 28rem),
    linear-gradient(180deg, var(--white) 0%, #fbfaf7 42%, var(--white) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 270px 1fr auto;
  align-items: center;
  gap: 30px;
  width: min(1200px, calc(100% - 56px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  font-weight: 900;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: #4b514d;
  font-size: 13px;
  font-weight: 800;
}

.desktop-nav a {
  transition: color 160ms ease;
}

.desktop-nav a:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch,
.tel-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.lang-switch {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.lang-switch button {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.lang-switch button.is-active {
  color: #fff;
  background: var(--ink);
}

.tel-pill {
  padding: 0 18px;
  color: var(--red);
  border: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  align-items: center;
  gap: 56px;
  width: min(1200px, calc(100% - 56px));
  min-height: 720px;
  margin: 0 auto;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span,
.lead span,
.intro-section h2 span {
  display: block;
}

.lead {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 2.1;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 950;
}

.btn.primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 18px 46px rgba(185, 21, 34, 0.24);
}

.btn.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 46px;
}

.trust-cards article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.trust-cards span,
.trust-cards strong {
  display: block;
}

.trust-cards span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.trust-cards strong {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 610px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shift-x: 0px;
  --shift-y: 0px;
  perspective: 1200px;
}

.hero-visual::before {
  position: absolute;
  top: 36px;
  right: 0;
  z-index: 2;
  width: 88%;
  height: 520px;
  border-radius: 4px;
  pointer-events: none;
  content: "";
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.32) 48%,
    transparent 58%,
    transparent 100%
  );
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: imageLightSweep 6.4s ease-in-out 1.2s infinite;
}

.main-photo {
  position: absolute;
  top: 36px;
  right: 0;
  width: 88%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 34px 90px rgba(31, 36, 33, 0.18);
  transform: translate3d(var(--shift-x), var(--shift-y), 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1.018);
  transform-origin: center;
  transition: transform 420ms ease, filter 420ms ease;
  will-change: transform;
}

.vertical-copy {
  position: absolute;
  top: 86px;
  left: 48px;
  writing-mode: vertical-rl;
  padding: 22px 12px;
  color: #fff;
  background: rgba(31, 36, 33, 0.58);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.sign-card {
  position: absolute;
  left: 0;
  bottom: 12px;
  width: 330px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(31, 36, 33, 0.16);
  animation: signFloat 5.8s ease-in-out infinite;
  will-change: transform;
}

.sign-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.intro-section,
.services,
.cases,
.owner-cta,
.flow-section,
.company,
.contact,
.map-section {
  width: min(1200px, calc(100% - 56px));
  margin: 0 auto;
}

.intro-section {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 80px;
  padding: 94px 0;
  border-top: 1px solid var(--line);
}

.intro-section h2,
.section-heading h2,
.owner-cta h2,
.company h2,
.contact h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.15;
}

.intro-section > p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 2.1;
}

.services {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 108px;
}

.services article {
  min-height: 250px;
  padding: 26px;
  background: var(--paper);
}

.services article > span,
.service-feature span,
.case-grid span,
.flow-grid span {
  color: var(--wood);
  font-weight: 950;
}

.services h3,
.case-grid h3,
.flow-grid h3 {
  margin: 72px 0 14px;
  font-size: 26px;
  line-height: 1.24;
}

.services p,
.case-grid p,
.flow-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.8;
}

.service-feature {
  position: relative;
  overflow: hidden;
  min-height: 420px !important;
  color: #fff;
}

.service-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 900ms cubic-bezier(0.2, 0.72, 0.22, 1), filter 900ms ease;
}

.service-feature:hover img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.1);
}

.service-feature::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 10%, rgba(31, 36, 33, 0.74));
}

.service-feature div {
  position: relative;
  z-index: 1;
  margin-top: 180px;
}

.service-feature p {
  color: rgba(255, 255, 255, 0.84);
}

.cases {
  padding: 90px 0 110px;
  background: linear-gradient(180deg, transparent, rgba(243, 240, 234, 0.72));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-heading a {
  color: var(--red);
  font-weight: 950;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-grid article {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 70px rgba(31, 36, 33, 0.08);
}

.case-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1000ms cubic-bezier(0.2, 0.72, 0.22, 1), filter 1000ms ease;
}

.case-grid article:hover img {
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.08);
}

.case-grid span,
.case-grid h3,
.case-grid p {
  display: block;
  margin-right: 24px;
  margin-left: 24px;
}

.case-grid span {
  margin-top: 22px;
  color: var(--red);
  font-size: 12px;
}

.case-grid h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.case-grid p {
  margin-bottom: 26px;
}

.owner-cta {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 44px 48px;
  color: #fff;
  background: var(--ink);
}

.owner-cta p {
  margin: 0;
  color: var(--wood);
  font-weight: 950;
}

.owner-cta h2 {
  font-size: 32px;
}

.flow-section {
  padding: 100px 0 30px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.flow-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.company {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 70px;
  padding: 110px 0;
}

.company > img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 900ms cubic-bezier(0.2, 0.72, 0.22, 1), filter 900ms ease;
}

.company > img:hover {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.035);
}

.company dl {
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
}

.company dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company dt {
  color: var(--muted);
  font-weight: 850;
}

.company dd {
  margin: 0;
  font-weight: 850;
  line-height: 1.6;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 70px;
  align-items: center;
  padding: 60px 0 110px;
}

.contact h2 {
  margin-bottom: 24px;
}

.contact-panel {
  padding: 34px;
  background: var(--paper);
}

.contact-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  margin-bottom: 12px;
  background: #fff;
  font-weight: 950;
}

.contact-phone {
  color: var(--red);
  font-size: 24px;
}

.contact-panel p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.inquiry-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: #4b514d;
  font-size: 13px;
  font-weight: 950;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.inquiry-form input {
  min-height: 48px;
  padding: 0 14px;
}

.inquiry-form textarea {
  resize: vertical;
  padding: 12px 14px;
  line-height: 1.7;
}

.inquiry-form button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.form-status {
  min-height: 22px;
  margin: 0 !important;
  color: var(--red) !important;
  font-size: 13px;
  font-weight: 850;
}

.map-section {
  display: grid;
  grid-template-columns: 0.48fr 1fr;
  gap: 44px;
  align-items: stretch;
  padding: 0 0 110px;
}

.map-section h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.25;
}

.map-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 360px;
  padding: 34px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(31, 36, 33, 0.88), rgba(31, 36, 33, 0.64)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 74px 74px, 74px 74px, auto;
  animation: mapGridDrift 12s linear infinite;
}

.map-card::before,
.map-card::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(-28deg);
}

.map-card::before {
  top: 54px;
  left: -80px;
  width: 100%;
  height: 22px;
}

.map-card::after {
  right: -80px;
  bottom: 92px;
  width: 76%;
  height: 18px;
}

.map-pin {
  position: absolute;
  top: 42%;
  left: 52%;
  width: 28px;
  height: 28px;
  border: 7px solid #fff;
  border-radius: 999px 999px 999px 0;
  background: var(--red);
  box-shadow: 0 18px 44px rgba(185, 21, 34, 0.34);
  transform: rotate(-45deg);
  animation: pinPulse 2.4s ease-in-out infinite;
}

.map-card strong,
.map-card span {
  position: relative;
  z-index: 1;
  display: block;
}

.map-card strong {
  font-size: 24px;
  line-height: 1.35;
}

.map-card div span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 850;
}

.map-card a {
  position: relative;
  z-index: 1;
  justify-self: start;
  margin-top: 24px;
  padding: 13px 18px;
  border-radius: 999px;
  color: var(--red);
  background: #fff;
  font-weight: 950;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(28px, calc((100vw - 1200px) / 2));
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.mobile-cta {
  display: none;
}

.not-found {
  display: grid;
  min-height: 100vh;
  align-content: center;
  width: min(760px, calc(100% - 56px));
  margin: 0 auto;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.05;
}

.not-found p:not(.section-label) {
  margin: 24px 0 34px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.8;
}

.motion-ready .image-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 850ms ease,
    transform 850ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

.motion-ready .image-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .case-grid article:nth-child(2) {
  transition-delay: 120ms;
}

.motion-ready .case-grid article:nth-child(3) {
  transition-delay: 240ms;
}

.motion-ready .company > img.image-reveal.is-visible:hover {
  transform: scale(1.035);
}

@keyframes imageLightSweep {
  0%,
  48% {
    transform: translateX(-120%);
  }

  70%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes signFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes mapGridDrift {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  100% {
    background-position: 0 0, 74px 0, 0 74px, 0 0;
  }
}

@keyframes pinPulse {
  0%,
  100% {
    box-shadow: 0 18px 44px rgba(185, 21, 34, 0.34);
  }

  50% {
    box-shadow: 0 18px 44px rgba(185, 21, 34, 0.34), 0 0 0 16px rgba(185, 21, 34, 0.16);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: calc(100% - 28px);
  }

  .desktop-nav,
  .lang-switch {
    display: none;
  }

  .tel-pill {
    padding: 0 13px;
    font-size: 12px;
  }

  .brand small {
    display: none;
  }

  .hero,
  .intro-section,
  .services,
  .case-grid,
  .owner-cta,
  .flow-grid,
  .company,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero,
  .intro-section,
  .services,
  .cases,
  .owner-cta,
  .flow-section,
  .company,
  .contact,
  .map-section {
    width: calc(100% - 28px);
    max-width: calc(100vw - 28px);
  }

  .hero {
    min-height: auto;
    gap: 40px;
    padding: 52px 0 40px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.08;
  }

  .lead {
    max-width: 100%;
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .trust-cards {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual::before {
    top: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3.55;
  }

  .main-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3.55;
    object-fit: cover;
    transform: scale(1.01);
  }

  .vertical-copy {
    top: 18px;
    left: 16px;
    padding: 16px 9px;
    font-size: 13px;
    line-height: 1.3;
  }

  .sign-card {
    position: relative;
    left: 0;
    bottom: auto;
    width: min(220px, 70vw);
    margin-top: -62px;
    animation-duration: 7s;
  }

  .intro-section {
    gap: 22px;
    padding: 64px 0;
  }

  .intro-section h2,
  .section-heading h2,
  .company h2,
  .contact h2 {
    font-size: 32px;
    line-height: 1.24;
  }

  .intro-section > p,
  .contact-copy p,
  .services p,
  .case-grid p,
  .flow-grid p {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .services {
    padding-bottom: 70px;
  }

  .services article {
    min-width: 0;
    min-height: auto;
    padding: 22px;
  }

  .services h3 {
    margin-top: 44px;
  }

  .service-feature {
    min-height: 330px !important;
  }

  .service-feature div {
    margin-top: 145px;
  }

  .section-heading {
    display: block;
  }

  .cases {
    padding: 70px 0;
  }

  .owner-cta {
    padding: 30px 24px;
  }

  .owner-cta h2 {
    font-size: 26px;
  }

  .flow-section {
    padding-top: 70px;
  }

  .company {
    gap: 30px;
    padding: 76px 0;
  }

  .company > img {
    height: 300px;
  }

  .company dl div {
    grid-template-columns: 96px 1fr;
  }

  .contact {
    gap: 28px;
    padding-bottom: 96px;
  }

  .map-section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 84px;
  }

  .map-section h2 {
    font-size: 27px;
  }

  .map-card {
    min-height: 290px;
    padding: 24px;
  }

  .contact-panel {
    padding: 20px;
  }

  .contact-phone {
    font-size: 20px;
  }

  .site-footer {
    display: grid;
    padding-bottom: 92px;
  }

  .mobile-cta {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(222, 216, 206, 0.78);
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.9);
    box-shadow: 0 18px 46px rgba(31, 36, 33, 0.16);
    backdrop-filter: blur(18px);
  }

  .mobile-cta a {
    display: grid;
    min-height: 44px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    font-weight: 950;
  }
}

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

  .motion-ready .image-reveal {
    opacity: 1;
    transform: none;
  }

  .main-photo,
  .service-feature img,
  .case-grid img,
  .company > img {
    transform: none;
  }
}
