:root {
  --bg: #080808;
  --bg-soft: #111111;
  --panel: #171717;
  --line: #2b2b2b;
  --text: #f7f3ee;
  --muted: #a7a29b;
  --paper: #f4f1ec;
  --ink: #151515;
  --red: #c91f2e;
  --red-deep: #8f121d;
  --steel: #5f6870;
  --gold: #c29a55;
  --max: 1160px;
  --header: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.visually-hidden,
.skip-link {
  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:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 8px 12px;
  margin: 0;
  clip: auto;
  background: var(--text);
  color: var(--ink);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  background: rgba(8, 8, 8, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  transition: background-color 180ms ease, height 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 8, 0.96);
  height: 68px;
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  min-height: 42px;
  padding: 0 18px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1;
  font-weight: 900;
}

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

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 14px;
  color: #d9d5ce;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  border-color: var(--red);
  outline: none;
}

.header-tel {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  background: rgba(201, 31, 46, 0.12);
  border: 1px solid rgba(201, 31, 46, 0.55);
  color: #fff;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.menu-toggle span:not(.visually-hidden) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #050505;
}

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

.hero-slide {
  object-fit: cover;
  object-position: 68% center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 5200ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.46) 34%, rgba(0, 0, 0, 0.08) 70%, rgba(0, 0, 0, 0.06) 100%),
    linear-gradient(0deg, rgba(8, 8, 8, 0.42) 0%, rgba(8, 8, 8, 0) 48%, rgba(8, 8, 8, 0.1) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 152px 0 164px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 5.8rem;
  line-height: 0.94;
  font-weight: 900;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 680px;
  font-size: 1.85rem;
  line-height: 1.45;
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}

.hero-copy {
  max-width: 680px;
  margin: 20px 0 0;
  color: #d7d2cb;
  font-size: 1.02rem;
}

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 96px;
  width: min(var(--max), calc(100% - 48px));
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dots span {
  display: block;
  width: 34px;
  height: 3px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dots span.is-active {
  background: var(--red);
}

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

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

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-strip {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: min(var(--max), calc(100% - 48px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(12px);
}

.hero-strip div {
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-strip div:last-child {
  border-right: 0;
}

.hero-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.hero-strip strong {
  display: block;
  margin-top: 2px;
  font-size: 1rem;
}

.section {
  padding: 96px 0;
  background: var(--paper);
  color: var(--ink);
}

.dark-band {
  background: var(--bg);
  color: var(--text);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 60px;
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.25;
}

.section-copy,
.section-heading p {
  margin: 16px 0 0;
  color: #4d4a45;
}

.dark-band .section-copy,
.dark-band .section-heading p {
  color: #c6c0b8;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-heading.narrow {
  max-width: 520px;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: stretch;
}

.service-image {
  position: relative;
  min-height: 470px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.service-image img,
.recruit-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.service-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.service-card span {
  color: var(--red);
  font-weight: 900;
  font-size: 0.82rem;
}

.service-card h3 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
}

.service-card p {
  margin: 0;
  color: #c9c3bc;
  font-size: 0.95rem;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
  background: transparent;
}

.process-item {
  position: relative;
  padding: 22px 24px;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-item:not(:last-child)::before,
.process-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  z-index: 2;
  pointer-events: none;
}

.process-item:not(:last-child)::before {
  right: -20px;
  width: 20px;
  height: 2px;
  background: var(--red);
  transform: translateY(-50%);
}

.process-item:not(:last-child)::after {
  right: -22px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  transform: translateY(-50%) rotate(45deg);
}

.process-item span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.process-item strong {
  display: block;
  margin-top: 4px;
  font-size: 1.12rem;
}

.recruit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 48px;
  align-items: center;
}

.job-list {
  display: grid;
  gap: 1px;
  margin: 30px 0;
  border: 1px solid #d6d1ca;
  background: #d6d1ca;
}

.job-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  background: #fff;
}

.job-list dt,
.job-list dd {
  margin: 0;
  padding: 14px 16px;
}

.job-list dt {
  color: #5c5650;
  font-weight: 800;
  border-right: 1px solid #d6d1ca;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.tag-list span {
  padding: 8px 12px;
  background: #171717;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.recruit-image {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid #d8d2ca;
}

.company-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: end;
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.company-table {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.company-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: #101010;
}

.company-table dt,
.company-table dd {
  margin: 0;
  padding: 16px 18px;
}

.company-table dt {
  color: var(--muted);
  font-weight: 800;
  border-right: 1px solid var(--line);
}

.company-table a {
  color: #fff;
  border-bottom: 1px solid var(--red);
}

.map-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 800;
}

.map-link:hover,
.map-link:focus-visible {
  border-color: var(--red);
  outline: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: 52px;
  align-items: start;
}

.phone-large {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding: 22px;
  background: var(--ink);
  color: #fff;
  border-left: 5px solid var(--red);
}

.phone-large span {
  color: #c8c2ba;
  font-size: 0.85rem;
  font-weight: 800;
}

.phone-large strong {
  font-size: 2rem;
  line-height: 1.1;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  background: #fff;
  border: 1px solid #d9d4cd;
  border-radius: 8px;
}

.field {
  display: grid;
  gap: 8px;
  color: #2d2925;
  font-weight: 800;
}

.field.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field.two-col label {
  display: grid;
  gap: 8px;
}

.label-text {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.required-mark {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  vertical-align: 0.12em;
}

.form-note .required-mark {
  margin-right: 4px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8c1b8;
  background: #f7f4ef;
  color: #171717;
  padding: 12px 13px;
  border-radius: 4px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  outline: 3px solid rgba(201, 31, 46, 0.18);
}

.form-submit {
  width: fit-content;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note {
  margin: -6px 0 0;
  color: #6a625a;
  font-size: 0.88rem;
}

.form-result {
  display: none;
  padding: 16px;
  background: #f1eee9;
  border: 1px solid #d7d1c9;
  color: #24211e;
  border-radius: 8px;
  white-space: pre-wrap;
}

.form-result.is-visible {
  display: block;
}

.form-result.is-error {
  border-color: rgba(201, 31, 46, 0.4);
  background: #fff0f1;
}

.copy-button {
  margin-top: 12px;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--red);
  outline: none;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #050505;
}

.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header) 0 auto;
    display: none;
    padding: 16px 20px 22px;
    background: rgba(8, 8, 8, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .header-tel {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-inner {
    padding: 128px 0 168px;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  .hero-lead {
    font-size: 1.42rem;
  }

  .split,
  .service-layout,
  .recruit-layout,
  .company-panel,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-image,
  .recruit-image {
    min-height: 360px;
  }

  .company-panel {
    padding: 24px;
  }
}

@media (max-width: 720px) {
  :root {
    --header: 68px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    height: var(--header);
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    min-width: 108px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .hero {
    min-height: 780px;
  }

  .hero-slide {
    object-position: 72% center;
  }

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

  .hero-inner {
    padding: 116px 0 300px;
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .hero-lead {
    font-size: 1.24rem;
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-dots {
    bottom: 244px;
  }

  .hero-dots span {
    width: 28px;
  }

  .button {
    width: 100%;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .hero-strip div {
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 72px 0;
  }

  .section h2 {
    font-size: 2rem;
  }

  .service-grid,
  .process,
  .field.two-col,
  .job-list div,
  .company-table div {
    grid-template-columns: 1fr;
  }

  .service-image,
  .recruit-image {
    min-height: 300px;
  }

  .process {
    gap: 24px;
  }

  .process-item:not(:last-child)::before {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -24px;
    width: 2px;
    height: 24px;
    transform: translateX(-50%);
  }

  .process-item:not(:last-child)::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -27px;
    border-top: 0;
    border-left: 0;
    border-right: 2px solid var(--red);
    border-bottom: 2px solid var(--red);
    transform: translateX(-50%) rotate(45deg);
  }

  .job-list dt,
  .company-table dt {
    border-right: 0;
    border-bottom: 1px solid #d6d1ca;
  }

  .company-table dt {
    border-bottom-color: var(--line);
  }

  .contact-form {
    padding: 22px;
  }

  .phone-large strong {
    font-size: 1.55rem;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }

  .footer-inner {
    display: grid;
  }
}
