:root {
  --bg: #05070b;
  --panel: #0b111a;
  --panel-soft: rgba(244, 239, 230, 0.055);
  --text: #f4efe6;
  --muted: rgba(244, 239, 230, 0.68);
  --faint: rgba(244, 239, 230, 0.13);
  --line: rgba(244, 239, 230, 0.18);
  --accent: #d6b77a;
  --blue: #70b8d0;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-synthesis: none;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(244, 239, 230, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding: 22px 64px;
  background: linear-gradient(to bottom, rgba(5, 7, 11, 0.86), rgba(5, 7, 11, 0.24));
  backdrop-filter: blur(18px);
}

.entry-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  background: #000000;
  text-align: center;
  isolation: isolate;
}

.entry-video,
.entry-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.entry-video {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  background: #000000;
}

.entry-overlay {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 38%, rgba(112, 184, 208, 0.16), transparent 34%),
    rgba(0, 0, 0, 0.5);
}

.entry-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 40px, 820px);
  padding: 96px 0;
  animation: entryRise 900ms ease both;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

.entry-kicker {
  color: rgba(244, 239, 230, 0.64);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.entry-title {
  max-width: none;
  margin-top: 18px;
  background: linear-gradient(144.5deg, #ffffff 24%, rgba(244, 239, 230, 0.42) 66%, rgba(0, 0, 0, 0) 116%);
  background-clip: text;
  color: transparent;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 600;
  line-height: 1.18;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.entry-copy {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.star-gate {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-top: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 48px rgba(214, 183, 122, 0.16);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.star-gate svg {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  fill: #f4efe6;
  filter: drop-shadow(0 0 18px rgba(244, 239, 230, 0.45));
  transition: transform 220ms ease;
}

.star-gate:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 0 76px rgba(214, 183, 122, 0.32);
}

.star-gate:hover svg {
  transform: rotate(12deg) scale(1.06);
}

.star-glow {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 239, 230, 0.32), transparent 62%);
  filter: blur(15px);
  opacity: 0.62;
  animation: starPulse 2.6s ease-in-out infinite;
}

.entry-hint {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 500;
}

#official {
  scroll-margin-top: 0;
}

.brand {
  width: 244px;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  color: rgba(244, 239, 230, 0.78);
  font-size: 13px;
  font-weight: 500;
}

.desktop-nav a,
.header-cta,
.primary-button,
.secondary-button,
.contact-button {
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.desktop-nav a:hover {
  color: var(--text);
}

.header-cta,
.primary-button,
.secondary-button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.header-cta {
  border: 1px solid var(--line);
  background: rgba(244, 239, 230, 0.06);
}

.header-cta:hover,
.secondary-button:hover {
  border-color: rgba(244, 239, 230, 0.46);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 25% 45%, rgba(5, 7, 11, 0.1), rgba(5, 7, 11, 0.72) 42%),
    linear-gradient(90deg, rgba(5, 7, 11, 0.94), rgba(5, 7, 11, 0.62) 46%, rgba(5, 7, 11, 0.32));
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  width: min(100% - 96px, 1120px);
  margin: 0 auto;
  padding: 150px 0 96px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

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

h1,
h2 {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-top: 20px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.08;
}

h1 span {
  display: block;
}

.hero-copy {
  max-width: 650px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 17px;
}

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

.primary-button {
  border: 1px solid rgba(244, 239, 230, 0.9);
  background: var(--text);
  color: #05070b;
}

.primary-button:hover,
.contact-button:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.18);
}

.official-main > section:not(.hero) {
  width: min(100% - 96px, 1120px);
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  padding: 108px 0 84px;
  border-bottom: 1px solid var(--line);
}

.intro h2,
.section-heading h2,
.approach h2,
.contact h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.22;
}

.intro p {
  color: var(--muted);
  font-size: 17px;
}

.services {
  padding: 104px 0;
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-item {
  min-height: 390px;
  padding: 34px 24px 38px;
  background: var(--panel-soft);
}

.service-item + .service-item {
  border-left: 1px solid var(--line);
}

.service-index {
  display: block;
  margin-bottom: 64px;
  color: rgba(244, 239, 230, 0.42);
  font-size: 13px;
  font-weight: 700;
}

.service-item h3 {
  min-height: 88px;
  font-size: 20px;
  line-height: 1.38;
}

.service-item p {
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
}

.works {
  padding: 26px 0 116px;
}

.works-heading {
  display: grid;
  justify-items: center;
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}

.works-heading h2 {
  margin-top: 12px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.18;
}

.works-heading p {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
}

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

.video-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(244, 239, 230, 0.045);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.video-item video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  background: #000000;
  transition: transform 320ms ease;
}

.video-item:hover,
.video-item:focus-within {
  border-color: rgba(244, 239, 230, 0.36);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  transform: translateY(-6px);
}

.video-item:hover video,
.video-item:focus-within video {
  transform: scale(1.02);
}

.video-item span {
  display: block;
  margin: 24px 24px 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.video-item h3 {
  margin: 10px 24px 0;
  font-size: 21px;
}

.video-item p {
  margin: 12px 24px 26px;
  color: var(--muted);
  font-size: 14px;
}

.approach {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 78px;
  padding: 36px 0 116px;
}

.approach-panel {
  position: sticky;
  top: 120px;
  align-self: start;
}

.approach-panel p {
  max-width: 620px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 16px;
}

.process-list {
  display: grid;
  gap: 18px;
}

.process-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: rgba(11, 17, 26, 0.66);
}

.process-list span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.process-list strong {
  display: block;
  margin-top: 14px;
  font-size: 22px;
}

.process-list p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.company {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

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

.company-list div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.company-list dt {
  color: rgba(244, 239, 230, 0.52);
  font-size: 14px;
  font-weight: 600;
}

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

.company-list a {
  text-decoration: underline;
  text-decoration-color: rgba(244, 239, 230, 0.28);
  text-underline-offset: 4px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 50px;
  margin-bottom: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 54px;
  background:
    radial-gradient(circle at 84% 10%, rgba(112, 184, 208, 0.18), transparent 36%),
    rgba(244, 239, 230, 0.045);
}

.contact p {
  max-width: 590px;
  margin-top: 18px;
  color: var(--muted);
}

.contact-title span {
  display: block;
}

.contact-button {
  min-height: 54px;
  border: 1px solid rgba(244, 239, 230, 0.92);
  background: var(--text);
  color: #05070b;
  font-size: 16px;
}

.contact-action {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.copy-status {
  min-height: 20px;
  color: rgba(244, 239, 230, 0.82);
  font-size: 13px;
  font-weight: 600;
}

.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 40px));
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: 8px;
  padding: 14px 18px;
  background: rgba(244, 239, 230, 0.94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  color: #05070b;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(16px);
}

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

.hero-bg img {
  animation: heroFloat 16s ease-in-out infinite alternate;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 64px;
  border-top: 1px solid var(--line);
  color: rgba(244, 239, 230, 0.52);
  font-size: 13px;
}

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

  .brand {
    width: 210px;
  }

  .desktop-nav {
    display: none;
  }

  .hero-inner,
  .official-main > section:not(.hero) {
    width: min(100% - 40px, 720px);
  }

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

  .intro,
  .approach,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro {
    gap: 26px;
    padding-top: 84px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-item {
    min-height: auto;
  }

  .service-item + .service-item {
    border-left: 1px solid var(--line);
  }

  .service-item:nth-child(odd) {
    border-left: 0;
  }

  .service-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .service-index {
    margin-bottom: 36px;
  }

  .service-item h3 {
    min-height: 0;
  }

  .video-showcase {
    grid-template-columns: 1fr;
  }

  .video-item {
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    align-items: center;
  }

  .video-item video {
    height: 100%;
    max-height: 360px;
  }

  .approach-panel {
    position: static;
  }

  .contact {
    padding: 34px;
  }
}

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

  .brand {
    width: 172px;
  }

  .header-cta {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero-inner,
  .official-main > section:not(.hero) {
    width: min(100% - 32px, 420px);
  }

  .entry-content {
    width: min(100% - 32px, 420px);
  }

  .entry-title {
    font-size: 42px;
  }

  .entry-copy {
    font-size: 15px;
  }

  .star-gate {
    width: 96px;
    height: 96px;
  }

  .star-gate svg {
    width: 44px;
    height: 44px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-copy,
  .intro p {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-button,
  .secondary-button {
    flex: 1 1 150px;
  }

  .section-heading {
    display: block;
  }

  .services,
  .works,
  .company {
    padding-block: 76px;
  }

  .works-heading {
    margin-bottom: 34px;
  }

  .video-item {
    display: block;
  }

  .video-item video {
    max-height: none;
  }

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

  .service-item + .service-item,
  .service-item:nth-child(odd) {
    border-left: 0;
  }

  .service-item:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

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

  .contact {
    margin-bottom: 64px;
    padding: 28px 22px;
  }

  .contact-button {
    width: 100%;
  }

  .contact-action {
    justify-items: stretch;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}

@keyframes entryRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes starPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.94);
  }

  50% {
    opacity: 0.78;
    transform: scale(1.08);
  }
}

@keyframes heroFloat {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.04) translate3d(0, -12px, 0);
  }
}
