:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-deep: #050506;
  --surface: #14161a;
  --surface-2: #1c1f24;
  --surface-3: #242830;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .20);
  --text: #f4f4f5;
  --muted: #c2c6cc;
  --muted-2: #989fa8;
  --red: #e2341d;
  --ember: #ff6a2b;
  --accent: linear-gradient(135deg, #e2341d 0%, #ff6a2b 100%);
  --glow: rgba(226, 52, 29, .42);
  --shadow: 0 26px 70px rgba(0, 0, 0, .45);
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Zen Kaku Gothic New", system-ui, sans-serif;
  --max: 1180px;
  --header-h: 76px;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 6%, rgba(226, 52, 29, .20), transparent 34rem),
    radial-gradient(circle at 8% 30%, rgba(255, 106, 43, .10), transparent 28rem),
    linear-gradient(180deg, #0a0a0b 0%, #111216 43%, #080809 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent 78%);
}

body.intro-lock {
  overflow: hidden;
}

::selection {
  color: #fff;
  background: var(--red);
}

a {
  text-decoration: none;
  text-underline-offset: .18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
  min-height: var(--header-h);
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, .82);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .26);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  line-height: 1;
}

.brand::before {
  content: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 26px);
}

.site-nav a,
.footer-nav a,
.back-link {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
  transition: color .18s ease, text-shadow .18s ease;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-nav a:hover,
.footer-nav a:hover,
.back-link:hover {
  color: #fff;
  text-shadow: 0 0 18px var(--glow);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  min-height: 46px;
  padding: 13px 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.btn::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .22) 42%, transparent 64%);
  opacity: 0;
  transform: translateX(-90%);
  transition: opacity .18s ease, transform .4s ease;
}

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

.btn:hover::after {
  opacity: 1;
  transform: translateX(90%);
}

.btn-primary {
  border-color: rgba(255, 106, 43, .70);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(226, 52, 29, .25);
}

.btn-primary:hover {
  box-shadow: 0 18px 44px rgba(226, 52, 29, .42);
}

.btn-secondary {
  background: rgba(20, 22, 26, .84);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.btn-secondary:hover {
  border-color: rgba(255, 106, 43, .55);
  background: #20242b;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 24px rgba(226, 52, 29, .16);
}

.header-contact {
  min-width: 118px;
  min-height: 44px;
  padding: 12px 18px;
  font-family: var(--font-display);
  letter-spacing: .04em;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(226, 52, 29, .14), transparent 23rem),
    #020203;
  pointer-events: none;
}

.intro-overlay.is-playing {
  display: grid;
  animation: introFade 2.4s cubic-bezier(.22, 1, .36, 1) forwards;
}

.intro-overlay.is-done {
  display: none;
}

.intro-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(82vw, 840px);
  min-height: 220px;
  overflow: hidden;
}

.intro-stage::before,
.intro-stage::after {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 106, 43, .80), transparent);
  opacity: .55;
}

.intro-stage::before {
  top: 38%;
}

.intro-stage::after {
  bottom: 38%;
}

.intro-spark {
  position: absolute;
  top: 50%;
  left: -22%;
  width: 34%;
  height: 5px;
  background: linear-gradient(90deg, transparent, #ffb089 18%, #ff6a2b 45%, #e2341d 76%, transparent);
  filter: drop-shadow(0 0 12px #ff6a2b) drop-shadow(0 0 28px var(--red));
  transform: translateY(-50%) skewX(-18deg);
  animation: sparkSlash 1.05s cubic-bezier(.68, 0, .2, 1) .18s forwards;
}

.intro-brand {
  color: #f6f6f6;
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 10.5rem);
  line-height: .9;
  letter-spacing: .11em;
  opacity: 0;
  text-shadow:
    0 1px 0 #7b7f86,
    0 14px 30px rgba(0, 0, 0, .85),
    0 0 34px rgba(226, 52, 29, .45);
  transform: scale(.94);
  animation: brandStamp 1.45s cubic-bezier(.2, .9, .18, 1) .55s forwards;
}

/* Lottie forge演出（intro）。背面に重ね、ブランド文字を前面に保つ。装飾のためクリック非干渉。 */
.intro-lottie {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.intro-spark {
  z-index: 1;
}

.intro-brand {
  position: relative;
  z-index: 2;
}

/* Lottieマウント成功時はCSSスラッシュを排他（二重描画回避）。ブランド文字はLottie側に無いため残す。
   失敗/reduced-motion時は data-lottie-ok が付かず既存CSS演出のみ。 */
.intro-stage[data-lottie-ok] .intro-spark {
  opacity: 0;
}

main {
  min-height: 70vh;
}

/* カーソル追従グロー（案2 b-neo より移植）。ポインタ位置を screen 合成で淡く照らす。
   初期は非表示で、shared/intro.js が初回 pointermove で .is-active を付与して表示する。
   タッチ/粗ポインタ/reduced-motion では JS が起動せず、下の media query でも非表示にする二重防御。 */
.cursor-glow {
  position: fixed;
  left: var(--x, 50%);
  top: var(--y, 50%);
  z-index: 60;
  width: clamp(220px, 26vw, 480px);
  height: clamp(220px, 26vw, 480px);
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 106, 43, .22) 0 8%, rgba(255, 106, 43, .10) 24%, transparent 60%),
    radial-gradient(circle, rgba(226, 52, 29, .20) 0 12%, rgba(226, 52, 29, .08) 28%, transparent 64%);
  mix-blend-mode: screen;
  opacity: 0;
  filter: blur(10px);
  transform: translate(-50%, -50%);
  transition: opacity .35s ease;
}

.cursor-glow.is-active {
  opacity: .6;
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

.site-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #080809;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.08) brightness(.62);
  transform: scale(1.03);
}

.hero-overlay {
  background:
    radial-gradient(circle at 76% 38%, rgba(226, 52, 29, .28), transparent 30rem),
    linear-gradient(90deg, rgba(5, 5, 6, .94) 0%, rgba(8, 8, 9, .80) 36%, rgba(8, 8, 9, .34) 68%, rgba(8, 8, 9, .72) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, .20) 0%, rgba(10, 10, 11, .88) 100%);
}

/* hero アンビエントember（Lottie/SVG・装飾）。テキスト(.hero-inner z:1)の背面、overlayの前。
   既定opacity:0、mount成功(.is-lottie-active)でごく薄くfade-in。モバイル/粗ポインタ/reduced-motionでは非mount。 */
.hero-embers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
}

.hero-embers.is-lottie-active {
  opacity: .16;
}

.hero-embers svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) clamp(20px, 4vw, 46px) clamp(44px, 6vw, 82px);
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ember);
  font-family: var(--font-display);
  font-size: clamp(.94rem, 1.1vw, 1.08rem);
  line-height: 1;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  display: inline-block;
  width: 38px;
  height: 3px;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 18px var(--glow);
}

.hero-title {
  max-width: 950px;
  margin-top: 22px;
  font-size: clamp(3.4rem, 9vw, 8.8rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 48px rgba(0, 0, 0, .72);
}

.reveal-char {
  display: inline-block;
}

/* 句グループ：句読点/空白で区切った短い句を nowrap で1かたまりに保ち、改行を句境界に寄せる。
   ※長すぎる句・分割不能な1グループには render側が .reveal-word を付けない（横溢れ0保証）。 */
.reveal-word {
  display: inline-block;
  white-space: nowrap;
}

/* 英字混在見出しの英単語途中割れ防止（和文主体の本文には適用しない＝base.css の overflow-wrap:break-word を維持）。 */
.work-card h4,
.related-card strong {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.site-hero.is-revealed .reveal-char,
.site-hero.is-revealed .hero-reveal-step,
body.js-ready .site-hero.is-revealed .reveal-char,
body.js-ready .site-hero.is-revealed .hero-reveal-step {
  opacity: 1;
  transform: none;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .5s;
}

@media (prefers-reduced-motion: no-preference) {
  body.js-ready .site-hero .reveal-char {
    opacity: 0;
    transform: translateY(.5em);
  }

  body.js-ready .site-hero .hero-reveal-step {
    opacity: 0;
    transform: translateY(1em);
  }
}

.hero-lead {
  max-width: 760px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.55vw, 1.28rem);
  font-weight: 700;
  line-height: 1.9;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 860px;
  margin-top: clamp(42px, 7vw, 74px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, .52);
  backdrop-filter: blur(10px);
}

.stat {
  min-height: 112px;
  padding: 22px clamp(16px, 2.5vw, 28px);
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat dt {
  color: var(--muted-2);
  font-size: .82rem;
  font-weight: 900;
}

.stat dd {
  margin-top: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.25rem);
  line-height: 1;
  letter-spacing: .03em;
}

.site-positioning,
.site-services,
.site-process,
.site-works,
.site-company,
.site-contact-cta,
.detail-hero,
.detail-body,
.detail-actions,
.form-section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-right: clamp(20px, 4vw, 46px);
  padding-left: clamp(20px, 4vw, 46px);
}

.site-positioning,
.site-services,
.site-process,
.site-works,
.site-company,
.detail-body,
.form-section {
  padding-top: clamp(76px, 10vw, 138px);
  padding-bottom: clamp(76px, 10vw, 138px);
}

.site-positioning {
  border-bottom: 1px solid var(--line);
}

.positioning-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 80px);
  margin-top: 24px;
}

.positioning-grid h2,
.section-head h2,
.site-contact-cta h2,
.detail-hero h1 {
  font-size: clamp(2.1rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.positioning-grid p,
.site-contact-cta > p:not(.kicker),
.detail-subtitle,
.detail-hero > p:not(.eyebrow),
.detail-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 700;
  line-height: 2;
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.service-card,
.work-card,
.process-item,
.related-card,
.form-output {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .045), transparent 38%),
    var(--surface);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .28);
}

.service-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  color: var(--text);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card:hover {
  border-color: rgba(255, 106, 43, .48);
  box-shadow: 0 28px 62px rgba(0, 0, 0, .42), 0 0 32px rgba(226, 52, 29, .25);
  transform: translateY(-6px);
}

.service-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #070708;
}

.service-media img,
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.84) contrast(1.06);
  transition: transform .35s ease, filter .35s ease;
}

.service-card:hover .service-media img {
  filter: saturate(1) contrast(1.12);
  transform: scale(1.045);
}

.service-body {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3vw, 34px);
}

.service-body h3,
.process-item h3,
.work-card h4,
.detail-point h2 {
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 900;
  line-height: 1.22;
}

.service-body p,
.process-item p,
.work-card p,
.detail-point p,
.company-row dd,
.form-output p {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.9;
}

.card-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  color: var(--ember);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-more::after {
  margin-left: 10px;
  content: ">";
  transition: transform .18s ease;
}

.service-card:hover .card-more::after {
  transform: translateX(5px);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-item {
  position: relative;
  min-height: 270px;
  padding: 90px clamp(22px, 3vw, 32px) 28px;
  overflow: hidden;
  counter-increment: process;
}

.process-item::before {
  position: absolute;
  top: 14px;
  left: 22px;
  color: rgba(255, 255, 255, .10);
  content: counter(process, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6.8rem);
  line-height: .8;
}

.process-item::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 5px;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 24px var(--glow);
}

.process-item h3 {
  position: relative;
}

.process-item p {
  position: relative;
  margin-top: 14px;
}

.works-group + .works-group {
  margin-top: 52px;
}

.works-year {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 18px;
  color: var(--ember);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: .04em;
}

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

.work-card {
  min-height: 210px;
  padding: clamp(22px, 3vw, 32px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.work-card.has-cover {
  position: relative;
  overflow: hidden;
}

.work-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.work-cover img.cover-layer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .16;
}

.work-card-body {
  position: relative;
  z-index: 1;
}

.work-card.has-cover .work-card-body::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(8, 8, 9, .72), rgba(8, 8, 9, .88));
}

.work-card:hover {
  border-color: rgba(255, 106, 43, .42);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .40), 0 0 28px rgba(226, 52, 29, .18);
  transform: translateY(-4px);
}

.work-card h4 {
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
}

.work-card p {
  margin-top: 14px;
}

.gallery-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.gallery-thumb {
  width: 84px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: #111;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gallery-thumb:hover {
  border-color: rgba(255, 106, 43, .62);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .34), 0 0 18px rgba(226, 52, 29, .18);
  transform: scale(1.04);
}

.gallery-thumb:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
}

.gallery-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 5, .9);
}

.lightbox-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
}

.lightbox-stage {
  display: grid;
  place-items: center;
}

.lightbox-img {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #080809;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .62);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 106, 43, .62);
  border-radius: 999px;
  background: rgba(12, 12, 13, .90);
  color: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .42), 0 0 22px rgba(226, 52, 29, .22);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: rgba(255, 106, 43, .9);
  background: var(--red);
  transform: scale(1.05);
}

.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
}

.lightbox-close:disabled,
.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: .36;
  pointer-events: none;
}

.lightbox-close {
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 48px;
  height: 48px;
  font-size: 2.1rem;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: -24px;
}

.lightbox-next {
  right: -24px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.05);
}

.lightbox-count,
.lightbox-caption {
  max-width: min(92vw, 900px);
  color: var(--muted);
  text-align: center;
}

.lightbox-count {
  color: var(--ember);
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: .08em;
}

.lightbox-caption {
  font-size: .92rem;
  line-height: 1.7;
}

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

.company-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.company-row dt {
  color: #fff;
  font-weight: 900;
}

.company-row dd {
  font-weight: 700;
}

.site-contact-cta {
  position: relative;
  max-width: none;
  padding-top: clamp(70px, 9vw, 112px);
  padding-bottom: clamp(70px, 9vw, 112px);
  border-top: 1px solid rgba(255, 106, 43, .22);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 40%, rgba(226, 52, 29, .25), transparent 24rem),
    linear-gradient(135deg, #121418 0%, #080809 100%);
  text-align: center;
}

/* molten divider（Lottie/SVG・装飾）。既存border-top上に重ね、溶融の光を1回流す。
   border-top は reduced-motion / Lottie失敗時の恒久フォールバック線として残す（共存ではなく同位置に整列）。 */
.forge-divider {
  position: absolute;
  top: -7px;
  left: 0;
  right: 0;
  z-index: 1;
  height: 14px;
  pointer-events: none;
}

.forge-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Lottie divider 起動成功時は同位置の static border を消し「共存」を避ける（§14.5）。
   失敗 / reduced-motion 時は is-lottie-active が付かず border-top が恒久フォールバック線として残る。 */
.site-contact-cta:has(.forge-divider.is-lottie-active) {
  border-top-color: transparent;
}

.site-contact-cta > * {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.site-contact-cta .kicker {
  justify-content: center;
}

.site-contact-cta h2 {
  margin-top: 18px;
}

.site-contact-cta > p:not(.kicker) {
  margin-top: 20px;
}

.site-contact-cta .btn {
  margin-top: 30px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: #080809;
  color: var(--muted-2);
  font-size: .9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.detail-page,
.form-page {
  background:
    radial-gradient(circle at 85% 10%, rgba(226, 52, 29, .18), transparent 27rem),
    var(--bg);
}

.detail-hero {
  padding-top: clamp(58px, 8vw, 104px);
  padding-bottom: clamp(46px, 7vw, 84px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 24px;
  font-weight: 900;
}

.detail-hero h1 {
  margin-top: 18px;
  max-width: 940px;
}

.detail-subtitle,
.detail-hero > p:not(.eyebrow) {
  max-width: 820px;
  margin-top: 22px;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
  padding-top: 0;
}

.detail-lead {
  padding: clamp(24px, 4vw, 38px);
  border-left: 5px solid var(--red);
  background: rgba(20, 22, 26, .70);
}

.detail-points {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.detail-point {
  position: relative;
  min-height: 210px;
  padding: 28px 28px 28px clamp(86px, 8vw, 126px);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.point-num {
  position: absolute;
  top: 22px;
  left: 24px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 106, 43, .70);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: .9;
}

.detail-point p {
  margin-top: 12px;
}

.detail-media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(8, 8, 9, .46));
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 0;
  padding-bottom: clamp(78px, 9vw, 120px);
}

.related-section {
  padding-top: 0;
}

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

.related-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.related-card:hover {
  border-color: rgba(255, 106, 43, .45);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .34), 0 0 28px rgba(226, 52, 29, .18);
  transform: translateY(-4px);
}

.related-card span {
  color: var(--ember);
  font-family: var(--font-display);
  letter-spacing: .08em;
}

.related-card strong {
  color: #fff;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.3;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: 24px;
  align-items: start;
  padding-top: 0;
}

.form-error,
.form-success {
  grid-column: 1 / -1;
  padding: 16px 18px;
  border: 1px solid;
  font-weight: 900;
}

.form-error {
  border-color: rgba(255, 106, 43, .55);
  background: rgba(226, 52, 29, .14);
  color: #ffd7ce;
}

.form-success {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.form-output strong {
  color: #fff;
  font-size: .94rem;
  font-weight: 900;
}

.field input,
.field textarea,
.form-output textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #0d0e10;
  color: var(--text);
  font: 500 1rem/1.6 var(--font-body);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.field textarea,
.form-output textarea {
  min-height: 180px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.form-output textarea:focus {
  border-color: rgba(255, 106, 43, .72);
  outline: 0;
  background: #111318;
  box-shadow: 0 0 0 3px rgba(226, 52, 29, .18);
}

.contact-form .btn {
  justify-self: start;
  margin-top: 6px;
}

.form-output {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 30px);
}

[hidden] {
  display: none !important;
}

.site-positioning,
.site-services,
.site-process,
.site-works,
.site-company,
.service-card,
.work-card,
.detail-point,
.process-item,
.company-row {
  opacity: .96;
  transform: translateY(0);
  transition: opacity .45s ease, transform .45s ease;
}

.site-positioning:not(.in-view),
.site-services:not(.in-view),
.site-process:not(.in-view),
.site-works:not(.in-view),
.site-company:not(.in-view),
.service-card:not(.in-view),
.work-card:not(.in-view),
.detail-point:not(.in-view),
.process-item:not(.in-view),
.company-row:not(.in-view) {
  opacity: .96;
}

.site-positioning.in-view,
.site-services.in-view,
.site-process.in-view,
.site-works.in-view,
.site-company.in-view,
.service-card.in-view,
.work-card.in-view,
.detail-point.in-view,
.process-item.in-view,
.company-row.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sparkSlash {
  0% {
    left: -28%;
    opacity: 0;
    transform: translateY(-50%) skewX(-18deg) scaleX(.55);
  }
  12% {
    opacity: 1;
  }
  64% {
    opacity: 1;
  }
  100% {
    left: 96%;
    opacity: 0;
    transform: translateY(-50%) skewX(-18deg) scaleX(1.2);
  }
}

@keyframes brandStamp {
  0% {
    opacity: 0;
    letter-spacing: .22em;
    filter: blur(6px);
    transform: scale(.88);
  }
  42% {
    opacity: 1;
    letter-spacing: .07em;
    filter: blur(0);
    transform: scale(1.035);
  }
  58% {
    transform: scale(.985);
  }
  100% {
    opacity: 1;
    letter-spacing: .10em;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes introFade {
  0% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 70px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 8px 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero-inner {
    padding-top: 84px;
  }

  .positioning-grid,
  .detail-body,
  .form-section {
    grid-template-columns: 1fr;
  }

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

  .detail-media {
    position: relative;
    top: auto;
    aspect-ratio: 16 / 10;
    order: -1;
  }
}

@media (max-width: 768px) {
  .site-header {
    gap: 10px 14px;
    padding: 10px 16px 12px;
  }

  .brand {
    font-size: 1.42rem;
  }

  .brand::before {
    content: none;
  }

  .brand-logo {
    height: 28px;
  }

  .header-contact {
    min-width: 104px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .site-nav {
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-hero {
    min-height: 760px;
  }

  .hero-overlay {
    background:
      radial-gradient(circle at 72% 26%, rgba(226, 52, 29, .20), transparent 20rem),
      linear-gradient(90deg, rgba(5, 5, 6, .96) 0%, rgba(8, 8, 9, .76) 100%),
      linear-gradient(180deg, rgba(10, 10, 11, .10) 0%, rgba(10, 10, 11, .92) 100%);
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 5.5rem);
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .stat {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .services-grid,
  .process-list,
  .works-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .process-item {
    min-height: 235px;
  }

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

  .gallery-thumb {
    width: 76px;
    height: 56px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-panel {
    max-width: 94vw;
  }

  .lightbox-img {
    max-width: 94vw;
    max-height: 72vh;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 58px;
    width: 44px;
    height: 44px;
    transform: none;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: scale(1.05);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

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

  .header-contact {
    display: none;
  }

  .site-nav {
    margin-right: -16px;
    padding-right: 16px;
  }

  .site-nav a {
    font-size: .86rem;
  }

  .hero-inner,
  .site-positioning,
  .site-services,
  .site-process,
  .site-works,
  .site-company,
  .detail-hero,
  .detail-body,
  .detail-actions,
  .form-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-contact-cta {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-title {
    font-size: clamp(2.65rem, 16vw, 4.6rem);
  }

  .positioning-grid h2,
  .section-head h2,
  .site-contact-cta h2,
  .detail-hero h1 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .service-body,
  .contact-form {
    padding: 22px;
  }

  .detail-point {
    padding: 86px 22px 24px;
  }

  .point-num {
    left: 22px;
  }

  .intro-brand {
    font-size: clamp(3.1rem, 18vw, 5.2rem);
  }

  .gallery-strip {
    gap: .45rem;
  }

  .gallery-thumb {
    width: 72px;
    height: 52px;
  }

  .lightbox-caption {
    font-size: .84rem;
  }
}
