:root {
  --sw-accent: #ff5d7d;
  --sw-accent-2: #f4f61c;
  --home-cyan: #72d9e6;
  --home-blue: #3f80ed;
}

.home-body {
  background: #fffef5;
}

.home-hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  border-bottom: 3px solid var(--sw-ink);
  background: var(--sw-ink);
  color: var(--sw-white);
}

.home-hero-media {
  position: absolute;
  inset: 0 0 0 48%;
  overflow: hidden;
  background: #071022;
}

.home-hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #071022;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 700ms ease, transform 5.8s ease-out;
  pointer-events: none;
}

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

.home-hero-video[data-showcase-kind="3d"] {
  background: #dce5eb;
}

.home-hero-video[data-showcase-kind="business"] {
  object-position: center 42%;
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 38% 0 0;
  background: var(--sw-ink);
  clip-path: polygon(0 0, 83% 0, 100% 100%, 0 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 55%;
  width: 18px;
  border-inline: 3px solid var(--sw-ink);
  background: var(--home-cyan);
  transform: skewX(-7deg);
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 820px;
  padding-top: 120px;
  padding-bottom: 130px;
}

.home-hero-copy {
  width: 54%;
  max-width: 680px;
}

.home-hero .sw-kicker {
  color: var(--sw-white);
}

.home-hero h1 {
  margin: 0;
  font-size: 68px;
  font-weight: 950;
  line-height: 1.05;
}

.home-hero h1 span {
  display: block;
  margin-bottom: 14px;
  color: var(--sw-accent-2);
  font-size: 20px;
  line-height: 1.3;
}

.home-hero-lead {
  max-width: 610px;
  margin: 26px 0 0;
  color: #dedfe3;
  font-size: 15px;
  font-weight: 700;
}

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

.home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.home-hero-meta li {
  padding: 6px 9px;
  border: 1px solid #777a82;
  color: #d7d8dc;
  font-size: 9px;
  font-weight: 800;
}

.home-hero-caption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  margin: 0;
  padding: 8px 10px;
  border: 2px solid var(--sw-ink);
  background: var(--sw-accent-2);
  color: var(--sw-ink);
  font-size: 9px;
  font-weight: 950;
}

.home-hero-switcher {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 70px;
  display: flex;
  border: 2px solid var(--sw-white);
  background: rgba(11, 12, 14, .9);
  box-shadow: 5px 5px 0 var(--sw-ink);
}

.home-hero-switcher button {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  min-width: 94px;
  height: 43px;
  padding: 0 11px;
  border: 0;
  border-left: 1px solid #74777e;
  background: transparent;
  color: var(--sw-white);
  cursor: pointer;
}

.home-hero-switcher button:first-child {
  border-left: 0;
}

.home-hero-switcher button span {
  color: #a8abb2;
  font-size: 8px;
  font-weight: 950;
}

.home-hero-switcher button strong {
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}

.home-hero-switcher button.is-active {
  background: var(--sw-accent-2);
  color: var(--sw-ink);
}

.home-hero-switcher button.is-active span {
  color: var(--sw-ink);
}

.home-hero-switcher button.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 4px;
  background: var(--sw-accent);
  transform-origin: left;
  animation: home-showcase-progress 6.4s linear forwards;
}

@keyframes home-showcase-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.home-services {
  padding: 116px 0 126px;
  background: #fffef5;
}

.home-route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.home-route {
  display: grid;
  grid-template-rows: 260px 1fr;
  min-width: 0;
  border: 3px solid var(--sw-ink);
  background: var(--sw-white);
  box-shadow: var(--sw-shadow);
  transition: translate 160ms ease, box-shadow 160ms ease;
}

.home-route:hover {
  translate: -3px -3px;
  box-shadow: 10px 10px 0 var(--sw-ink);
}

.home-route-visual {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--sw-ink);
  background: #10151e;
}

.home-route-visual img,
.home-route-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-route-live2d .home-route-visual video {
  object-position: center 30%;
}

.home-route-3d .home-route-visual img,
.home-route-3d .home-route-visual video {
  object-fit: contain;
  object-position: center;
}

.home-route-3d .home-route-visual {
  background: #34577f;
}

.home-route-business .home-route-visual img,
.home-route-business .home-route-visual video {
  object-fit: cover;
  object-position: center;
}

.home-route-business .home-route-visual {
  background: #1c5144;
}

.home-route-number {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--sw-ink);
  background: var(--sw-accent-2);
  color: var(--sw-ink);
  font-size: 16px;
  font-weight: 950;
}

.home-route-body {
  display: grid;
  align-content: start;
  padding: 28px 26px 26px;
}

.home-route-type {
  margin: 0 0 10px;
  color: var(--sw-accent);
  font-size: 10px;
  font-weight: 950;
}

.home-route h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.2;
}

.home-route-copy {
  min-height: 78px;
  margin: 14px 0 0;
  color: var(--sw-muted);
  font-size: 12px;
  font-weight: 650;
}

.home-route-price {
  margin: 18px 0 0;
  font-size: 10px;
  font-weight: 800;
}

.home-route-price strong {
  display: block;
  margin-top: 2px;
  color: var(--sw-accent);
  font-size: 24px;
  line-height: 1.2;
}

.home-route-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 22px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--sw-ink);
  font-size: 11px;
  font-weight: 950;
}

.home-method {
  padding: 112px 0;
  border-block: 3px solid var(--sw-ink);
  background: var(--sw-ink);
  color: var(--sw-white);
}

.home-method .sw-section-head > p {
  color: #b9bbc2;
}

.home-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--sw-white);
}

.home-method-grid article {
  min-height: 260px;
  padding: 34px;
  border-left: 2px solid var(--sw-white);
}

.home-method-grid article:first-child {
  border-left: 0;
}

.home-method-grid span {
  color: var(--sw-accent-2);
  font-size: 44px;
  font-weight: 950;
  line-height: 1;
}

.home-method-grid h3 {
  margin: 24px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.home-method-grid p {
  margin: 12px 0 0;
  color: #b9bbc2;
  font-size: 12px;
}

.home-work {
  padding: 116px 0 126px;
  background: var(--home-cyan);
}

.home-work-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 18px;
}

.home-work figure {
  margin: 0;
  border: 3px solid var(--sw-ink);
  background: var(--sw-white);
  box-shadow: 5px 5px 0 var(--sw-ink);
}

.home-work img {
  width: 100%;
  height: 320px;
  border-bottom: 3px solid var(--sw-ink);
  object-fit: cover;
}

.home-work figure:first-child img {
  object-position: center;
}

.home-work figure:nth-child(2) img {
  object-fit: contain;
  object-position: center;
  background: #111523;
}

.home-work figure:nth-child(3) img {
  object-position: center;
}

.home-work figcaption {
  padding: 18px;
}

.home-work figcaption strong,
.home-work figcaption span {
  display: block;
}

.home-work figcaption strong {
  font-size: 14px;
}

.home-work figcaption span {
  margin-top: 4px;
  color: var(--sw-muted);
  font-size: 10px;
}

@media (max-width: 980px) {
  .home-hero-media {
    left: 58%;
  }

  .home-hero::before {
    right: 24%;
  }

  .home-hero::after {
    left: 66%;
  }

  .home-hero-copy {
    width: 66%;
  }

  .home-hero h1 {
    font-size: 54px;
  }

  .home-route-grid,
  .home-work-grid {
    grid-template-columns: 1fr;
  }

  .home-route {
    grid-template-columns: .9fr 1.1fr;
    grid-template-rows: 1fr;
  }

  .home-route-visual {
    min-height: 310px;
    border-right: 3px solid var(--sw-ink);
    border-bottom: 0;
  }

  .home-work-grid {
    gap: 22px;
  }

  .home-work img {
    height: 380px;
  }
}

@media (max-width: 680px) {
  .home-hero {
    min-height: 760px;
  }

  .home-hero-media {
    inset: 0 0 auto;
    width: 100%;
    height: 40%;
  }

  .home-hero-video[data-showcase-kind="live2d"] {
    object-position: center 25%;
  }

  .home-hero-video[data-showcase-kind="3d"] {
    object-position: center 22%;
  }

  .home-hero-video[data-showcase-kind="business"] {
    object-position: center 32%;
  }

  .home-hero::before {
    top: 34%;
    right: 0;
    clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
  }

  .home-hero::after {
    top: 34%;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 13px;
    border: 2px solid var(--sw-ink);
    transform: rotate(-2deg);
  }

  .home-hero-inner {
    min-height: 760px;
    align-items: flex-end;
    padding-top: 300px;
    padding-bottom: 58px;
  }

  .home-hero-copy {
    width: 100%;
  }

  .home-hero h1 {
    font-size: 39px;
  }

  .home-hero h1 span {
    font-size: 15px;
  }

  .home-hero-lead {
    font-size: 12px;
  }

  .home-hero-actions {
    display: grid;
  }

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

  .home-hero-caption {
    display: none;
  }

  .home-hero-switcher {
    top: calc(40% - 48px);
    right: 14px;
    bottom: auto;
  }

  .home-hero-switcher button {
    min-width: 67px;
    height: 36px;
    padding: 0 8px;
  }

  .home-hero-switcher button span {
    display: none;
  }

  .home-hero-switcher button strong {
    font-size: 8px;
  }

  .home-services,
  .home-work {
    padding: 82px 0 92px;
  }

  .home-route {
    grid-template-columns: 1fr;
    grid-template-rows: 220px auto;
  }

  .home-route-visual {
    min-height: 0;
    border-right: 0;
    border-bottom: 3px solid var(--sw-ink);
  }

  .home-route-copy {
    min-height: 0;
  }

  .home-method {
    padding: 82px 0;
  }

  .home-method-grid {
    grid-template-columns: 1fr;
  }

  .home-method-grid article {
    min-height: 0;
    border-top: 2px solid var(--sw-white);
    border-left: 0;
  }

  .home-method-grid article:first-child {
    border-top: 0;
  }

  .home-work img {
    height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-video {
    transition: opacity 180ms linear;
    transform: none;
  }

  .home-hero-switcher button.is-active::after {
    animation: none;
    transform: scaleX(1);
  }
}
.home-media-pending {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #10141a;
  color: #d7ff37;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: .12em;
  text-align: center;
}
