:root {
  --ink: #1b1d1f;
  --muted-ink: #59616a;
  --line: #d9dee3;
  --paper: #ffffff;
  --soft: #f3f5f7;
  --field: #e9f1ec;
  --safety: #d86127;
  --safety-dark: #a74317;
  --steel: #23313d;
  --green: #2f6c56;
  --shadow: 0 18px 45px rgba(27, 29, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.75;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 222, 227, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-logo-mark {
  width: 54px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted-ink);
  font-size: 0.75rem;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2.5vw, 28px);
  color: var(--muted-ink);
  font-size: 0.92rem;
  white-space: nowrap;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:focus-visible,
.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--safety);
  outline: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-color: var(--steel);
  background-image: var(--hero-image, url("assets/work-23.jpg"));
  background-position: var(--hero-position, center);
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 29, 31, 0.66);
}

.hero::after {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0 92px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--safety);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3.2rem, 10vw, 7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 2vw, 1.3rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: #fff;
  background: var(--safety);
  border-color: var(--safety);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--safety-dark);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.36);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.button.secondary.light {
  color: #fff;
  background: transparent;
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 960px;
  margin: 54px 0 0;
  padding: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.proof-list div {
  min-height: 112px;
  padding: 18px;
  background: rgba(35, 49, 61, 0.86);
}

.proof-list dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.proof-list dd {
  margin: 8px 0 0;
  color: #fff;
  font-weight: 800;
  line-height: 1.45;
}

.section,
.section-band,
.contact-section {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 4vw, 56px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-band {
  background: var(--field);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.45;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading p:last-child,
.intro-grid p:last-child,
.contact-inner p {
  margin: 0;
  color: var(--muted-ink);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-card p {
  margin: 0;
  color: var(--muted-ink);
}

.service-number {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--safety-dark);
  background: #fff1e9;
  border: 1px solid #f0c2aa;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.contact-card {
  color: #fff;
  background: var(--steel);
  border-color: var(--steel);
}

.contact-card p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-card .service-number {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.text-link {
  width: max-content;
  color: #fff;
  border-bottom: 2px solid var(--safety);
  font-size: 1.1rem;
  font-weight: 800;
}

.muted {
  background: var(--soft);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}

.work-card div {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.work-card span {
  color: var(--safety-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.work-card p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.92rem;
}

.work-card.featured {
  grid-column: span 2;
}

.work-card.featured img {
  aspect-ratio: 16 / 7.7;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: var(--line);
}

.flow-list li {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 22px;
  background: #fff;
}

.flow-list strong {
  color: var(--steel);
  font-size: 1rem;
}

.flow-list span {
  color: var(--muted-ink);
  font-size: 0.92rem;
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.company-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  border-top: 2px solid var(--steel);
}

.company-logo {
  width: min(320px, 100%);
  margin-top: 24px;
}

.company-table th,
.company-table td {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.company-table th {
  width: 160px;
  color: var(--steel);
  font-size: 0.9rem;
}

.company-table a {
  color: var(--safety-dark);
  font-weight: 800;
}

.sub-note {
  display: inline-block;
  margin-left: 10px;
  color: var(--muted-ink);
  font-size: 0.78rem;
}

.profile-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-panel img {
  width: min(220px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
}

.profile-panel p {
  margin: 10px 0 18px;
  color: var(--muted-ink);
}

.profile-panel .button {
  width: 100%;
  color: var(--steel);
  border-color: var(--line);
  background: #fff;
}

.map-section {
  padding-top: 0;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.map-frame {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.contact-section {
  color: #fff;
  background: var(--green);
}

.contact-section .section-label {
  color: #ffd4bf;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 28px;
  align-items: center;
}

.contact-inner p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-actions {
  margin: 0;
}

.line-qr {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: 14px;
  justify-items: center;
  align-self: stretch;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.line-qr img {
  width: min(190px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
}

.line-qr strong,
.line-qr span {
  display: block;
}

.line-qr strong {
  font-size: 1rem;
}

.line-qr span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    right: -84px;
    bottom: 24px;
    width: 280px;
  }

  .proof-list,
  .intro-grid,
  .service-grid,
  .works-grid,
  .flow-list,
  .company-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .work-card.featured {
    grid-column: auto;
  }

  .work-card.featured img {
    aspect-ratio: 16 / 9;
  }

  .proof-list div {
    min-height: auto;
  }

  .flow-list li,
  .service-card {
    min-height: auto;
  }

  .contact-actions {
    width: 100%;
  }

  .line-qr {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    gap: 18px;
    font-size: 0.86rem;
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding: 58px 0 68px;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.5rem);
  }

  .button,
  .contact-actions .button {
    width: 100%;
  }

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .company-table td {
    padding-top: 0;
  }

  .sub-note {
    display: block;
    margin: 2px 0 8px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 340px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
