:root {
  --ink: #0c1720;
  --ink-soft: #263746;
  --paper: #f7f9fa;
  --snow: #eef4f7;
  --line: #d8e2e7;
  --steel: #1f3442;
  --steel-2: #2c4a5a;
  --ice: #cfe5ef;
  --safety: #e1a622;
  --rust: #9b4f31;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(12, 23, 32, 0.16);
  --container: 1160px;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--safety);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  border-radius: 6px;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 12px max(20px, calc((100vw - var(--container)) / 2));
  color: var(--white);
  background: rgba(12, 23, 32, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--safety);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  font-weight: 800;
  line-height: 1;
}

.brand-name,
.brand-sub {
  display: block;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.brand-sub {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  line-height: 1.2;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
}

.nav-toggle span:not(.visually-hidden) {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.global-nav {
  position: absolute;
  top: calc(100% + 1px);
  right: 20px;
  left: 20px;
  display: grid;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  background: rgba(12, 23, 32, 0.96);
  border: 0 solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: max-height 220ms ease, border-width 220ms ease;
}

.global-nav.is-open {
  max-height: 420px;
  border-width: 1px;
}

.global-nav a {
  padding: 13px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
}

.global-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  color: var(--ink) !important;
  background: var(--safety);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.94) contrast(1.03);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 17, 24, 0.9) 0%, rgba(8, 17, 24, 0.72) 36%, rgba(8, 17, 24, 0.22) 70%, rgba(8, 17, 24, 0.34) 100%),
    linear-gradient(0deg, rgba(8, 17, 24, 0.78) 0%, rgba(8, 17, 24, 0.04) 42%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header-h) + 70px) 34px;
}

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

.hero h1 {
  max-width: 790px;
  margin: 16px 0 22px;
  font-size: clamp(3rem, 13vw, 7.6rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2.2vw, 1.22rem);
}

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

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

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

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

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.button.tertiary {
  color: var(--white);
  background: var(--steel);
  border-color: var(--steel);
}

.hero-facts {
  display: grid;
  gap: 10px;
  margin: 44px 0 0;
  padding: 0;
}

.hero-facts div {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-facts dt {
  color: var(--ice);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.notice-band {
  color: var(--white);
  background: var(--steel);
}

.notice-inner {
  display: grid;
  gap: 10px;
  padding-block: 18px;
}

.notice-inner p {
  margin: 0;
  font-weight: 700;
}

.notice-inner a {
  width: fit-content;
  color: var(--safety);
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.section {
  padding-block: clamp(70px, 10vw, 124px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.wide {
  max-width: 920px;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.section-heading p:not(.section-kicker),
.intro p,
.service-card p,
.work-card p,
.mini-work p,
.flow-list p,
.recruit p,
.contact-copy p {
  color: var(--ink-soft);
}

.intro {
  background: var(--white);
}

.intro-grid {
  display: grid;
  gap: 26px;
}

.intro-grid > p {
  margin: 0;
  font-size: 1.04rem;
}

.strength {
  background:
    linear-gradient(180deg, var(--paper), var(--snow));
}

.feature-grid {
  display: grid;
  gap: 16px;
}

.feature {
  min-height: 260px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(12, 23, 32, 0.06);
}

.feature-index {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 900;
}

.feature p {
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.services {
  background: var(--ink);
  color: var(--white);
}

.services .section-heading p:not(.section-kicker),
.services .service-card p {
  color: rgba(255, 255, 255, 0.74);
}

.service-layout {
  display: grid;
  gap: 18px;
}

.service-card {
  display: grid;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

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

.service-card > div {
  padding: 24px;
}

.service-card h3 {
  margin-top: 6px;
}

.service-card p:last-child {
  margin-bottom: 0;
}

.works {
  background: var(--white);
}

.works-grid {
  display: grid;
  gap: 18px;
}

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

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

.work-card > div {
  padding: 24px;
}

.work-card h3 {
  margin-top: 8px;
}

.work-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}

.work-card dl div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.work-card dt {
  color: var(--steel-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.work-card dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.mini-work {
  padding: 24px;
  background: var(--steel);
  color: var(--white);
  border-radius: 8px;
}

.mini-work p:not(.work-area) {
  color: rgba(255, 255, 255, 0.75);
}

.flow {
  background: var(--snow);
}

.flow-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  position: relative;
  min-height: 220px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-list span {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--rust);
  font-weight: 900;
}

.flow-list p {
  margin-bottom: 0;
}

.recruit {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(31, 52, 66, 0.96), rgba(12, 23, 32, 0.98));
}

.recruit-grid {
  display: grid;
  gap: 28px;
}

.recruit p {
  color: rgba(255, 255, 255, 0.76);
}

.recruit-panel {
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.recruit-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.recruit-panel li {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.company {
  background: var(--paper);
}

.company-grid {
  display: grid;
  gap: 28px;
}

.company-list {
  margin: 0;
}

.company-list div {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.company-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.company-list dt {
  color: var(--steel-2);
  font-weight: 900;
}

.company-list dd {
  margin: 0;
}

.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  gap: 30px;
}

.phone-box {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding: 20px;
  color: var(--white);
  background: var(--steel);
  border-radius: 8px;
}

.phone-box span {
  color: var(--ice);
  font-size: 0.8rem;
  font-weight: 800;
}

.phone-box a {
  font-size: clamp(1.7rem, 8vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
}

.phone-box small {
  color: rgba(255, 255, 255, 0.74);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-weight: 900;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #bac9d1;
  border-radius: 6px;
}

.form-row textarea {
  resize: vertical;
}

.form-button {
  width: 100%;
  margin-top: 8px;
}

.form-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer {
  padding-block: 28px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer-inner {
  display: grid;
  gap: 6px;
}

.footer-inner p {
  margin: 0;
}

@media (min-width: 720px) {
  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .notice-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .intro-grid,
  .company-grid,
  .contact-grid,
  .recruit-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
  }

  .feature-grid,
  .flow-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card-large {
    grid-column: span 2;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-work {
    grid-column: span 2;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  }

  .company-list div {
    grid-template-columns: 160px 1fr;
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .global-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 2px;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
  }

  .global-nav a {
    padding: 10px 12px;
    border-radius: 6px;
  }

  .nav-cta {
    margin-left: 8px;
    padding-inline: 16px !important;
  }

  .hero-inner {
    padding-bottom: 48px;
  }

  .works-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }

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

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-sub {
    font-size: 0.62rem;
  }

  .global-nav {
    right: 14px;
    left: 14px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 17, 24, 0.92) 0%, rgba(8, 17, 24, 0.78) 58%, rgba(8, 17, 24, 0.48) 100%),
      linear-gradient(0deg, rgba(8, 17, 24, 0.88) 0%, rgba(8, 17, 24, 0.12) 45%);
  }

  .hero-actions .button {
    width: 100%;
  }

  .services-title span {
    display: block;
  }

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

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

  .button:hover {
    transform: none;
  }
}
