:root {
  color-scheme: light;
  --paper: #f4f2ed;
  --paper-soft: #ebe8df;
  --black: #050505;
  --ink: #111111;
  --muted: #5c5c5c;
  --soft: #8b8b86;
  --line-dark: rgba(0, 0, 0, 0.16);
  --line-light: rgba(255, 255, 255, 0.18);
  --blue: #247cff;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Inter", "SF Pro Display", "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0;
  line-height: 1.65;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 76px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(244, 242, 237, 0.82);
  backdrop-filter: blur(18px);
}

.logo,
.site-nav,
.nav-contact {
  display: flex;
  align-items: center;
}

.logo {
  min-width: 0;
  width: 210px;
  height: 58px;
}

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

.site-nav {
  justify-content: center;
  gap: 30px;
  color: rgba(0, 0, 0, 0.64);
  font-size: 13px;
  font-weight: 760;
}

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

.site-nav a:hover,
.nav-contact:hover {
  color: var(--blue);
}

.nav-contact {
  justify-self: end;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  min-height: 100svh;
  padding: 122px 32px 42px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34) 42%, rgba(0, 0, 0, 0.1)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.04) 46%, rgba(0, 0, 0, 0.22));
}

.hero-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.18) saturate(0.92) contrast(1.08);
}

.hero-video-layer {
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-video-layer.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 76% 46%, rgba(36, 124, 255, 0.18), transparent 30rem);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.hero-inner,
.section,
.statement,
.contact-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
}

.kicker,
.section-label {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1 {
  position: relative;
  width: max-content;
  max-width: none;
  margin-bottom: 0;
  color: var(--paper);
  font-family:
    "Arial Black", "Inter", "SF Pro Display", "Helvetica Neue", Arial, "Hiragino Sans",
    "Yu Gothic", sans-serif;
  font-size: clamp(16px, 5.2vw, 84px);
  line-height: 0.98;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.9),
    0 12px 40px rgba(0, 0, 0, 0.42);
}

.hero-bottom {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 740px) auto;
  gap: 36px;
  align-items: end;
}

.hero-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1.9;
}

.desktop-break {
  display: inline;
}

.hero .kicker {
  color: rgba(255, 255, 255, 0.72);
}

.hero .button-light {
  border-color: rgba(255, 255, 255, 0.82);
  background: var(--paper);
  color: var(--ink);
}

.hero .button-dark {
  border-color: rgba(255, 255, 255, 0.56);
  color: var(--paper);
}

.hero .button-dark:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

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

.button-dark {
  background: transparent;
  color: var(--ink);
}

.button-dark:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.statement {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: 660px;
  padding: 108px 32px 126px;
  display: flex;
  align-items: center;
  border-bottom: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.statement-video-frame {
  position: absolute;
  top: 72px;
  right: 32px;
  bottom: 72px;
  left: 54%;
  z-index: 0;
  width: auto;
  height: auto;
  overflow: hidden;
}

.statement-video {
  display: block;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: var(--paper);
}

.statement-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

.statement-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.statement .section-label {
  color: rgba(0, 0, 0, 0.5);
}

.statement-copy {
  margin-top: 34px;
  display: grid;
  color: var(--ink);
  font-size: 64px;
  font-weight: 880;
  line-height: 1.02;
}

.section {
  position: relative;
  z-index: 2;
  padding: 118px 32px;
  border-bottom: 1px solid var(--line-dark);
  background: var(--paper);
}

.section.service {
  background: var(--black);
  color: var(--paper);
  border-bottom-color: var(--line-light);
}

.section.strength {
  background: var(--paper-soft);
  border-top: 72px solid var(--paper);
}

.section.works {
  background: var(--paper);
}

.section.company {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--black);
  color: var(--paper);
  border-bottom-color: var(--line-light);
}

.split {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 76px;
  align-items: start;
}

.about .split {
  grid-template-columns: minmax(660px, 1fr) minmax(0, 0.72fr);
  gap: 58px;
}

.strength .split {
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
}

h2 {
  margin-bottom: 0;
  font-size: 58px;
  line-height: 1.1;
  font-weight: 880;
}

.keep-line {
  white-space: nowrap;
}

.about-heading {
  font-size: clamp(30px, 3.7vw, 50px);
}

.about-heading .keep-line {
  display: inline-block;
}

.body-copy {
  color: rgba(0, 0, 0, 0.68);
  font-size: 18px;
}

.body-copy p {
  margin-bottom: 24px;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.section-head {
  margin-top: 34px;
  max-width: 920px;
}

.section-head h2 {
  margin-bottom: 22px;
}

.section-head p {
  max-width: 690px;
  color: var(--muted);
  font-size: 18px;
}

.section.service .section-head p,
.section.company .company-list dd {
  color: rgba(255, 255, 255, 0.72);
}

.service-list,
.works-list {
  margin-top: 68px;
  border-top: 1px solid var(--line-dark);
}

.section.service .service-list,
.section.company .company-list {
  border-top-color: var(--line-light);
}

.service-row,
.work-row {
  display: grid;
  grid-template-columns: 90px minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-dark);
}

.section.service .service-row,
.section.company .company-list div {
  border-bottom-color: var(--line-light);
}

.number,
.work-row span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.section.service .number {
  color: rgba(255, 255, 255, 0.48);
}

.service-row h3,
.work-row h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.work-main {
  display: grid;
  gap: 18px;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
}

/* ブランドロゴを見出しの代わりに置く行 */
.work-brand {
  display: flex;
  align-items: center;
}

.work-brand-link {
  display: inline-flex;
  transition: opacity 200ms ease;
}

.work-brand-link:hover {
  opacity: 0.62;
}

.work-brand-logo {
  display: block;
  /* 見出しの文字サイズに連動（36px x 13 = 約468px、スマホは 25px x 13 = 約325px） */
  width: 13em;
  max-width: 100%;
  height: auto;
}

/* STOMP は横長ワードマークではなく縦のあるバッジ型なので幅を抑える */
.work-brand-logo-stomp {
  width: 4.4em;
}

.work-service {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  transition: opacity 200ms ease;
}

.work-service:hover {
  opacity: 0.62;
}

.work-row .work-service-label {
  color: var(--ink);
  /* 見出し(.work-row h3 = 36px)より小さめ */
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.work-service-logo {
  display: block;
  width: 168px;
  max-width: 100%;
  height: auto;
}

/* ONI光は太い文字ロゴなので少し小さめに */
.work-service-logo-hikari {
  width: 128px;
}

/* JOINT はリング無しの文字のみ（2行）なので少し小さめに（スマホ含め一貫させるため詳細度を上げる） */
.work-row .work-service-logo-joint {
  width: 108px;
}

.service-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.85;
}

.strength-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-dark);
}

.strength-grid div {
  min-height: 72px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(0, 0, 0, 0.82);
  font-size: 19px;
  font-weight: 820;
  white-space: nowrap;
}

.work-row {
  grid-template-columns: minmax(140px, 0.38fr) minmax(0, 1fr);
}

.work-row h3 {
  font-size: 36px;
}

.works-note {
  margin: 18px 0 0;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.company-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-light);
}

.company-list dt {
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  font-weight: 850;
}

.company-list dd {
  margin: 0;
  font-size: 16px;
}

.contact {
  position: relative;
  z-index: 4;
  min-height: 760px;
  padding: 0 32px 32px;
  border-top: 0;
  background: var(--black);
  box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  isolation: isolate;
}

.contact-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.03) 58%, rgba(0, 0, 0, 0)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0) 56%);
}

.contact-inner {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 156px 0 142px;
}

.contact h2 {
  max-width: 940px;
  margin: 32px 0 24px;
  color: var(--paper);
  font-size: 76px;
  line-height: 1.02;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.42);
}

.contact p {
  max-width: 670px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.contact .section-label {
  color: rgba(255, 255, 255, 0.68);
}

.contact .contact-mail {
  margin: 10px 0 0;
  /* スマホでは少し小さく、PCでは24px */
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact .contact-mail a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 4px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
  transition: opacity 0.25s ease;
}

.contact .contact-mail a:hover {
  opacity: 0.68;
}

/* JS が動いている時だけ隠す。JS 無効・読み込み失敗時は最初から見える。 */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 118px;
  }

  .hero-media {
    inset: 0;
    height: auto;
    opacity: 1;
    background: var(--black);
  }

  .hero-video {
    height: 112%;
    object-position: center top;
    filter: none;
    transform-origin: center top;
    transform: translateY(-6%);
  }

  .hero-overlay {
    background: radial-gradient(circle at 74% 58%, rgba(36, 124, 255, 0.2), transparent 22rem);
  }

  .statement {
    min-height: 560px;
  }

  .statement-shade {
    background: transparent;
  }

  .hero-bottom,
  .split,
  .service-row {
    grid-template-columns: 1fr;
  }

  .strength .split {
    grid-template-columns: 1fr;
  }

  .strength-grid div {
    white-space: normal;
  }

  .about .split {
    grid-template-columns: 1fr;
  }

  .section.company {
    padding-bottom: 145px;
  }

  .contact {
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    box-shadow: 0 -26px 50px rgba(0, 0, 0, 0.55);
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .statement-copy,
  .contact h2 {
    font-size: 58px;
  }

  h2 {
    font-size: 46px;
  }

  .service-row {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 64px;
    padding: 0 18px;
  }

  .logo {
    width: 128px;
    height: 42px;
  }

  .hero {
    min-height: 650px;
    padding: 96px 18px 28px;
  }

  .hero-video {
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none;
  }

  .hero-video-layer:nth-child(2) {
    object-position: 52% center;
  }

  .hero-bottom p,
  .body-copy,
  .section-head p,
  .contact p {
    font-size: 15px;
  }

  .desktop-break {
    display: none;
  }

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

  .statement,
  .section {
    padding: 82px 18px;
  }

  .section.strength {
    border-top-width: 44px;
  }

  .statement-video-frame {
    top: 54px;
    right: 18px;
    bottom: 54px;
    left: 47%;
    width: auto;
    height: auto;
  }

  .statement-copy,
  .contact h2 {
    font-size: 40px;
  }

  h2 {
    font-size: 35px;
  }

  .keep-line {
    white-space: nowrap;
  }

  .about-heading {
    min-width: 0;
    font-size: clamp(22px, 6.4vw, 34px);
    overflow-wrap: anywhere;
  }

  .about-heading .keep-line {
    display: inline;
    white-space: normal;
  }

  .split {
    gap: 34px;
  }

  .service-list,
  .works-list {
    margin-top: 42px;
  }

  .service-row,
  .work-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
  }

  .service-row h3,
  .work-row h3 {
    font-size: 25px;
  }

  .work-row .work-service-label {
    /* 見出し(25px)より小さめ */
    font-size: 18px;
  }

  .works-note {
    margin-top: 14px;
    font-size: 12px;
  }

  .work-service {
    gap: 10px;
  }

  .work-service-logo {
    width: 138px;
  }

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

  .contact {
    min-height: 640px;
    padding: 0 18px 18px;
    border-top-width: 0;
  }

  .contact-inner {
    padding: 96px 0 104px;
  }
}

