:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --paper: #f5f3ee;
  --paper-strong: #ffffff;
  --muted: #62615d;
  --line: #d8d3c8;
  --line-dark: #1f1f1f;
  --seal: #b41414;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
  --max: 1160px;
  --font-jp: "Noto Sans CJK JP", "Yu Gothic", "Hiragino Kaku Gothic ProN",
    "Meiryo", system-ui, sans-serif;
  --font-cyber: "Noto Sans Mono CJK JP", "Noto Sans Mono", "Roboto Mono",
    ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(10, 10, 10, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: var(--font-jp);
  letter-spacing: 0;
  line-height: 1.6;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--paper-strong);
  border: 1px solid var(--ink);
  padding: 0.7rem 0.9rem;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 32px;
  color: var(--paper-strong);
  mix-blend-mode: difference;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-family: var(--font-cyber);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  font-family: "Noto Serif CJK JP", "Noto Serif JP", "Yu Mincho", serif;
  font-size: 1rem;
}

.nav-links {
  gap: 1.1rem;
  font-size: 0.78rem;
  font-family: var(--font-cyber);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a {
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88vh;
  overflow: hidden;
  padding: 132px 32px 34px;
  background: #050505;
  color: var(--paper-strong);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1) brightness(1.08) contrast(1.18);
  opacity: 0.84;
  transform: scale(1.01);
  transform-origin: center;
  z-index: -3;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.14) 54%, rgba(0, 0, 0, 0.38)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.52));
  z-index: -2;
}
.vertical-label {
  position: absolute;
  right: 34px;
  bottom: 110px;
  writing-mode: vertical-rl;
  font-family: "Noto Serif CJK JP", "Noto Serif JP", "Yu Mincho", serif;
  font-size: 0.86rem;
  letter-spacing: 0;
  opacity: 0.74;
}

.hero-content {
  align-self: center;
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.74rem;
  font-family: var(--font-cyber);
  font-weight: 800;
  text-transform: uppercase;
  color: currentColor;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  margin-bottom: 1rem;
  font-size: 6.4rem;
  font-family: var(--font-cyber);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: lowercase;
}

h2 {
  margin-bottom: 0;
  font-size: 3rem;
  font-family: var(--font-jp);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}

.stacked-heading span {
  display: block;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-family: var(--font-jp);
  line-height: 1.2;
}

.hero-copy {
  width: min(650px, 100%);
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-identity {
  position: absolute;
  right: 9vw;
  bottom: 132px;
  z-index: 1;
  display: grid;
  width: 280px;
  gap: 0.3rem;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.86);
  text-transform: uppercase;
}

.hero-identity::before,
.hero-identity::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.84);
}

.hero-identity::before {
  top: -1px;
  left: -44px;
}

.hero-identity::after {
  right: -44px;
  bottom: -1px;
}

.identity-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-family: var(--font-cyber);
  font-weight: 900;
}

.hero-identity strong {
  position: relative;
  width: max-content;
  color: #fff;
  font-size: 2.45rem;
  font-family: var(--font-cyber);
  line-height: 0.95;
  font-weight: 900;
  text-transform: lowercase;
}

.hero-identity span:not(.identity-label) {
  font-size: 0.75rem;
  font-family: var(--font-cyber);
  font-weight: 850;
  color: rgba(255, 255, 255, 0.72);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 0.72rem 1rem;
  cursor: pointer;
  font-family: var(--font-cyber);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

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

.button-primary {
  background: var(--paper-strong);
  color: var(--ink);
}

.button-secondary {
  background: transparent;
  color: currentColor;
}

.hero-rail {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), 100%);
  margin-top: 70px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.22);
}

.hero-rail span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 0.7rem;
  background: rgba(0, 0, 0, 0.74);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  font-family: var(--font-cyber);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.section {
  padding: 92px 32px;
  border-top: 1px solid var(--line);
}

.section-inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 54px;
  align-items: start;
}

.profile-copy {
  display: grid;
  gap: 1rem;
  font-size: 1.06rem;
}

.profile-copy p,
.operation p,
.cert-heading p,
.dialog-header p {
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.metric {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: var(--paper);
}

.metric-value {
  font-size: 2rem;
  font-family: var(--font-cyber);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.metric-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--font-cyber);
  font-weight: 800;
  text-transform: uppercase;
}

.companies-section {
  overflow: hidden;
  background: var(--paper-strong);
}

.companies-heading p {
  max-width: 440px;
  margin-bottom: 0;
  color: var(--muted);
}

.company-carousel {
  position: relative;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line-dark);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.carousel-viewport::before,
.carousel-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 82px;
  pointer-events: none;
}

.carousel-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper-strong), rgba(255, 255, 255, 0));
}

.carousel-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper-strong), rgba(255, 255, 255, 0));
}

.carousel-viewport.is-dragging {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 22px 0;
  will-change: transform;
}

.company-card {
  flex: 0 0 220px;
  min-height: 206px;
  display: grid;
  place-items: center;
  gap: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
}

.company-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.company-card span {
  font-size: 0.82rem;
  font-family: var(--font-cyber);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.work-section {
  background: var(--ink);
  color: var(--paper-strong);
}

.work-section .section-kicker {
  color: rgba(255, 255, 255, 0.82);
}

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

.operation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.26);
}

.operation {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #0f0f0f;
}

.operation-index {
  margin-bottom: 90px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.78rem;
  font-family: var(--font-cyber);
  font-weight: 900;
}

.operation p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
}

.cert-section {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.04) 1px, transparent 1px),
    var(--paper-strong);
  background-size: 32px 32px;
}

.cert-heading p {
  max-width: 390px;
  margin-bottom: 0;
}

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

.cert-card {
  min-width: 0;
}

.cert-button {
  width: 100%;
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.cert-button:hover,
.cert-button:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cert-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111;
  border-bottom: 1px solid var(--line-dark);
}

.cert-meta {
  display: grid;
  min-height: 86px;
  gap: 0.3rem;
  padding: 15px;
}

.cert-meta span:first-child {
  font-size: 1.02rem;
  font-family: var(--font-cyber);
  font-weight: 900;
}

.cert-meta span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--font-cyber);
  font-weight: 800;
  text-transform: uppercase;
}

.contact-section {
  background: var(--ink);
  color: var(--paper-strong);
}

.contact-section .section-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 54px;
  align-items: start;
}

.contact-links {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.32);
}

.contact-links a {
  display: grid;
  gap: 0.35rem;
  padding: 22px;
  background: #0f0f0f;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  background: var(--paper-strong);
  color: var(--ink);
  transform: translateX(4px);
}

.contact-links span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-family: var(--font-cyber);
  font-weight: 900;
  text-transform: uppercase;
}

.contact-links a:hover span,
.contact-links a:focus-visible span {
  color: var(--muted);
}

.contact-links strong {
  font-size: 1.35rem;
  font-family: var(--font-cyber);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--font-cyber);
  font-weight: 800;
  text-transform: uppercase;
}

.cert-dialog {
  width: min(1000px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.cert-dialog::backdrop {
  background: rgba(0, 0, 0, 0.74);
}

.dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  font-size: 1.5rem;
}

.dialog-header p {
  margin-bottom: 0;
}

.dialog-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper-strong);
  cursor: pointer;
  font-family: var(--font-cyber);
  font-weight: 900;
  text-transform: uppercase;
}

.cert-dialog img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #111;
}

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

@media (max-width: 880px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding: 112px 18px 24px;
  }

  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 2.2rem;
  }

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

  .vertical-label {
    display: none;
  }

  .hero-identity {
    position: static;
    width: min(280px, 100%);
    margin-top: 26px;
  }

  .hero-identity::before,
  .hero-identity::after {
    display: none;
  }

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

  .section {
    padding: 70px 18px;
  }

  .profile-grid,
  .contact-grid,
  .section-heading {
    grid-template-columns: 1fr;
    display: grid;
    gap: 22px;
  }

  .operation-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .carousel-viewport::before,
  .carousel-viewport::after {
    width: 36px;
  }

  .company-card {
    flex-basis: 178px;
    min-height: 176px;
    padding: 20px;
  }

  .company-card img {
    width: 72px;
    height: 72px;
  }

  .operation {
    min-height: 260px;
  }

  .operation-index {
    margin-bottom: 58px;
  }

}

@media (max-width: 520px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 1.9rem;
  }

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

  .metrics {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    display: grid;
    padding-inline: 18px;
  }

  .dialog-header {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
