:root {
  color-scheme: light;
  --ink: #121416;
  --muted: #5b6470;
  --line: #d9dee4;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --teal: #007d72;
  --teal-dark: #005a52;
  --amber: #b9822b;
  --charcoal: #171a1f;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  /* 日本語の改行制御：句読点・小書き仮名で不自然に折り返さない／長い英字は必要時のみ折り返す */
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 74px;
  padding: 0 clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 222, 228, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  width: 96px;
  height: 58px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #2d343b;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--teal);
}

.nav-cta {
  min-width: 104px;
  padding: 10px 16px;
  color: #fff !important;
  text-align: center;
  background: var(--ink);
  border-radius: 6px;
}

.nav-cta:hover {
  background: var(--teal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  padding: 150px clamp(20px, 5vw, 68px) 78px;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(10, 13, 17, 0.9) 0%, rgba(10, 13, 17, 0.62) 48%, rgba(10, 13, 17, 0.28) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2400&q=82");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(20px, 5vw, 68px);
  right: clamp(20px, 5vw, 68px);
  bottom: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-copy {
  width: min(780px, 100%);
}

.hero-logo {
  width: min(280px, 66vw);
  margin-bottom: 34px;
  filter: invert(1);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9fe4db;
}

.hero h1,
.section-heading h2,
.intro h2,
.process h2,
.company h2,
.contact h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(34px, 8vw, 82px);
}

/* 大見出しは文節ごとに改行（文の途中で折り返さない）。PCでは2行・スマホでも各句が1行に収まる */
.hero h1 .hl {
  display: block;
}

/* 見出しは文節（意味のまとまり）単位で折り返す＝語の途中で改行しない。PC・スマホ共通 */
.intro h2 .ph,
.process h2 .ph,
.contact h2 .ph {
  display: inline-block;
}

.hero-lead {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.95;
}

.hero-actions,
.contact-inner .button {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 152px;
  padding: 13px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  margin-left: 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

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

.intro {
  padding: 64px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  grid-template-areas:
    "kicker ."
    "title  body";
  column-gap: clamp(28px, 6vw, 88px);
  row-gap: 14px;
  align-items: start;
}

/* 小見出しは上段、見出しと本文を同じ段に置き、本文の先頭を見出し「経営判断と…」の行に揃える */
.intro-grid .intro-kicker {
  grid-area: kicker;
  margin: 0;
}

.intro-grid h2 {
  grid-area: title;
}

.intro-grid .intro-body {
  grid-area: body;
}

.intro h2,
.section-heading h2,
.process h2,
.company h2,
.contact h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.intro p:not(.section-kicker),
.section-heading p,
.process-copy p,
.company p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}

.services,
.process {
  padding: 96px 0;
}

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

.section-heading.split {
  max-width: none;
  grid-template-columns: 1fr minmax(260px, 420px);
  align-items: end;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.service-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  min-width: 0;
  background: #fff;
}

.service-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.service-body {
  padding: 24px;
}

.service-body span,
.steps span,
.case-list span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-body h3,
.case-list h3,
.steps h3 {
  margin: 12px 0;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0;
}

.service-body p,
.case-list p,
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.cases,
.company {
  padding: 88px 0;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.case-list article {
  min-height: 188px;
  padding: 30px 28px;
  border-bottom: 1px solid var(--line);
}

.case-list article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(34px, 7vw, 90px);
}

.steps {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.steps li {
  padding: 28px;
  background: #fff;
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(280px, 390px) 1fr;
  gap: clamp(36px, 7vw, 92px);
}

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

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

.company-table dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.company-table dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.75;
}

.company-table a {
  color: var(--teal);
}

.contact {
  padding: 92px 0;
  color: #fff;
  background: var(--charcoal);
}

.contact-inner {
  max-width: 820px;
  margin-left: max(20px, calc((100vw - var(--max)) / 2));
}

.contact .section-kicker {
  color: #9fe4db;
}

.contact p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 20px;
}

.button.light {
  background: #fff;
  color: var(--ink);
}

.button.light:hover {
  background: #d8f3ef;
}

.site-footer {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 42px clamp(20px, 5vw, 68px);
  color: rgba(255, 255, 255, 0.72);
  background: #0b0d0f;
}

.site-footer img {
  width: 190px;
  filter: invert(1);
}

.site-footer p,
.site-footer small {
  margin: 0;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .section-heading.split,
  .process-grid,
  .company-grid {
    grid-template-columns: 1fr;
  }

  /* スマホ等の1カラム時は 小見出し→見出し→本文 の縦並びに戻す */
  .intro-grid {
    grid-template-areas:
      "kicker"
      "title"
      "body";
    row-gap: 16px;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 68px;
    padding: 0 16px;
  }

  .brand {
    width: 82px;
    height: 52px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 12px auto 12px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(17, 20, 24, 0.16);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 14px;
    border-radius: 6px;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .hero {
    min-height: 88vh;
    padding: 116px 20px 64px;
  }

  .hero-media {
    background-image: linear-gradient(180deg, rgba(10, 13, 17, 0.82) 0%, rgba(10, 13, 17, 0.76) 55%, rgba(10, 13, 17, 0.9) 100%),
      url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1400&q=82");
    background-position: center;
  }

  .hero-logo {
    width: min(250px, 78vw);
    margin-bottom: 28px;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .button.secondary {
    margin-left: 0;
  }

  .section-inner {
    width: min(100% - 32px, var(--max));
  }

  .intro,
  .cases,
  .company,
  .contact,
  .services,
  .process {
    padding: 64px 0;
  }

  .service-grid,
  .case-list {
    grid-template-columns: 1fr;
  }

  .case-list article:nth-child(odd) {
    border-right: 0;
  }

  .company-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-inner {
    margin: 0 auto;
  }
}
