@font-face {
  font-family: "PlemolJP Console";
  src: url("/fonts/PlemolJPConsole-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0510;
  --fg: #ededed;
  --fg-soft: rgba(237, 237, 237, 0.55);
  --fg-mute: #8a7e95;
  --primary: #ff2e88;
  --secondary: #7c3aed;
  --rule: #251a30;

  /* IBM Plex Sans JP for body / headings / Japanese — same family covers all */
  --font-sans: "IBM Plex Sans JP", system-ui, -apple-system, "Segoe UI",
    "Hiragino Kaku Gothic ProN", sans-serif;
  /* PlemolJP Console = JetBrains Mono + IBM Plex Sans JP fusion (mono with JP glyphs) */
  --font-mono: "PlemolJP Console", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, monospace;
  --font-jp: var(--font-sans);

  --pad-x: clamp(20px, 6vw, 96px);
  --measure: 64ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#app {
  position: relative;
  z-index: 1;
}

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

::selection {
  background: var(--primary);
  color: var(--bg);
}

/* ============== Topbar ============== */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--pad-x);
  z-index: 50;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  pointer-events: none;
}
.topbar > * {
  pointer-events: auto;
}
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  font-size: 13px;
  letter-spacing: 0.22em;
}
.topbar__brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow:
    0 0 8px rgba(255, 46, 136, 0.7),
    0 0 18px rgba(255, 46, 136, 0.4);
  opacity: 0.55;
  transform: scale(0.9);
}

.topbar__nav {
  display: flex;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.2em;
}
.topbar__nav a {
  color: var(--fg-mute);
  padding: 10px 20px;
  border: 1px solid
    rgba(37, 26, 48, calc(0.4 + 0.6 * var(--nav-proximity, 0)));
  background: rgba(37, 26, 48, calc(0.12 + 0.58 * var(--nav-proximity, 0)));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.3s ease, border-color 0.18s ease,
    background-color 0.18s ease;
}
.topbar__nav a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(255, 46, 136, 0.14);
}

@media (max-width: 600px) {
  .topbar__nav {
    display: none;
  }
}

/* ============== Chapter label ============== */

.chapter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--primary);
  margin: 0 0 36px;
  font-weight: 500;
}

/* ============== Hero ============== */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 22vh var(--pad-x) 14vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Cell reveal/hide timing — adjust freely */
  --reveal-ms: 300ms;
  --hide-ms: 1100ms;
  --reveal-ease: cubic-bezier(0.18, 0.78, 0.3, 1);
  --hide-ease: cubic-bezier(0.5, 0, 0.7, 0.95);
}

/* ============== Cell overlay ============== */

#cell-overlay {
  position: fixed;
  top: 0;
  left: 0;
  /* Negative z-index puts the halo behind static hero text (chapter,
     name, sub) within #app's stacking context, while still painting
     above the canvas (#bg z-index: 0). */
  z-index: -1;
  pointer-events: none;
  /* Per-cell values set by JS */
  --inradius: 50px;
  --svg-size: 48px;
  --cell-clip: polygon(50% 50%, 50% 50%, 50% 50%);
  /* Position via translate3d (set by JS), keep on its own transform */
  will-change: transform;
}

.cell-overlay__inner {
  position: relative;
  width: 0;
  height: 0;
}

.cell-overlay__halo {
  position: absolute;
  width: 480px;
  height: 480px;
  left: -240px;
  top: -240px;
  background: radial-gradient(
    circle at center,
    rgba(255, 46, 136, 0.28) 0%,
    rgba(124, 58, 237, 0.10) 38%,
    transparent 72%
  );
  pointer-events: none;

  /* hide state — polygon collapsed to centroid; opacity/scale/blur do the work */
  opacity: 0;
  filter: blur(14px);
  transform: scale(0.45);
  clip-path: var(--cell-clip);

  transition:
    opacity var(--hide-ms) var(--hide-ease),
    transform var(--hide-ms) var(--hide-ease),
    filter calc(var(--hide-ms) * 0.7) var(--hide-ease);
}

.cell-overlay__content {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: max-content;
  height: max-content;
  pointer-events: none;

  /* Initial invisible state. WAAPI-style animation (below) re-runs
     from this baseline every time the cell changes. */
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  filter: blur(18px);
}

.cell-overlay__content.anim-emerge {
  animation: cell-content-emerge var(--reveal-ms) var(--reveal-ease) forwards;
}

.cell-overlay__content.anim-hide {
  animation: cell-content-hide var(--hide-ms) var(--hide-ease) forwards;
}

@keyframes cell-content-emerge {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    filter: blur(18px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

@keyframes cell-content-hide {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55);
    filter: blur(14px);
  }
}

#cell-overlay.is-active .cell-overlay__halo {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  /* clip-path stays as var(--cell-clip); JS keeps it updated to current polygon */
  transition:
    opacity var(--reveal-ms) var(--reveal-ease),
    transform var(--reveal-ms) var(--reveal-ease),
    filter calc(var(--reveal-ms) * 1.2) var(--reveal-ease);
}

/* content is driven entirely by .anim-emerge / .anim-hide on the element itself.
   No is-active rule here — the keyframe animation overrides the base state. */

.cell-content__svg {
  width: var(--svg-size);
  height: var(--svg-size);
  filter: drop-shadow(0 0 16px rgba(255, 46, 136, 0.35));
  display: block;
}

.cell-content__text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  white-space: nowrap;
  color: var(--fg);
  text-shadow: 0 0 18px rgba(255, 46, 136, 0.35);
}

.cell-content__text--long {
  font-size: 14px;
}

.cell-content__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--primary);
  text-shadow: 0 0 14px rgba(255, 46, 136, 0.45);
}

.hero__name {
  font-size: clamp(64px, 14vw, 200px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-weight: 500;
  margin: 0;
}

/* G: vertical light-green → deep emerald → purple, matches GO's icon.
   Inline (not inline-block) so the click box stays aligned with the
   parent's line-box instead of inflating to the font's natural
   ascent/descent and shifting upward. */
.hero__name-g {
  position: relative;
  pointer-events: none;
  background: linear-gradient(180deg, #e8f94a 0%, #1fa756 50%, #761fb8 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__name-g::after {
  content: "";
  position: absolute;
  inset: 50px 5px 70px 5px;
  pointer-events: auto;
  cursor: pointer;
}


.hero__sub {
  margin-top: 36px;
  color: var(--fg-mute);
  font-size: 15px;
  max-width: var(--measure);
  font-family: var(--font-jp);
}

/* ============== Section ============== */

.section {
  padding: clamp(120px, 22vh, 240px) var(--pad-x);
  border-top: 1px solid var(--rule);
  position: relative;
}

.section__title {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 64px;
  max-width: 22ch;
}

/* ============== Profile ============== */

.profile {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 800px) {
  .profile {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.profile__body {
  display: grid;
  gap: 16px;
}
.profile__lead {
  margin: 0;
  max-width: var(--measure);
  font-size: 16px;
  color: var(--fg-soft);
  font-family: var(--font-jp);
}
.profile__lead strong {
  color: var(--fg);
  font-weight: inherit;
}
.profile__lead--first {
  position: relative;
  padding-left: 20px;
  font-size: 19px;
  line-height: 1.75;
  margin-top: 8px;
}
.profile__lead--first::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--primary);
  animation: profile-bar-pulse 4.8s ease-in-out infinite;
}
@keyframes profile-bar-pulse {
  0%, 100% {
    opacity: 0.85;
    box-shadow: 0 0 4px rgba(255, 46, 136, 0.18);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 14px rgba(255, 46, 136, 0.4);
  }
}

.profile__stats {
  list-style: none;
  margin: 0 0 24px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  align-items: end;
}
.profile__stats li {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 6px;
  row-gap: 6px;
  font-family: var(--font-mono);
  cursor: default;
  position: relative;
}
.profile__stats strong {
  font-size: 48px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.45s ease, text-shadow 0.45s ease;
}
.profile__stats span {
  font-size: 13px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  transition: color 0.45s ease;
}
.profile__stats em {
  grid-column: 1 / -1;
  font-style: normal;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.18em;
  transition: color 0.45s ease;
}
.profile__stats-note {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--fg-mute);
  opacity: 0.7;
}
@media (hover: hover) {
  .profile__stats li:hover strong {
    color: #a78bfa;
    text-shadow:
      0 0 18px rgba(167, 139, 250, 0.55),
      0 0 36px rgba(124, 58, 237, 0.35);
  }
  .profile__stats li:hover span,
  .profile__stats li:hover em {
    color: #c4b5fd;
  }
}
@media (max-width: 600px) {
  .profile__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .profile__stats strong {
    font-size: 36px;
  }
  .profile__stats em {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
}

.profile__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
.profile__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  letter-spacing: 0.05em;
  cursor: default;
}
.profile__row:first-child {
  border-top: 1px solid var(--rule);
}
.profile__row dt {
  color: var(--fg-mute);
  margin: 0;
  letter-spacing: 0.15em;
  transition: color 0.35s ease;
}
.profile__row dd {
  color: var(--fg);
  margin: 0;
}
@media (hover: hover) {
  .profile__row:hover dt {
    color: #a78bfa;
  }
}

/* ============== Works ============== */

.works {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.works__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.work-row {
  border-bottom: 1px solid var(--rule);
}

.work-row__trigger {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  width: 100%;
  padding: 24px 0;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: padding-left 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.work-row__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--fg);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}
.work-row__title {
  font-size: 16px;
  font-family: var(--font-jp);
  color: var(--fg);
  line-height: 1.45;
  transition: color 0.35s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-row:hover .work-row__trigger {
  padding-left: 12px;
}
.work-row.is-active .work-row__idx {
  color: #c4b5fd;
  text-shadow:
    0 0 18px rgba(167, 139, 250, 0.75),
    0 0 36px rgba(124, 58, 237, 0.5);
}
.work-row.is-active .work-row__title {
  color: #a78bfa;
}

.works__panels {
  position: sticky;
  top: 96px;
}

.work-panel {
  position: relative;
  display: none;
  padding: 44px 40px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(20, 12, 28, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 480px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.10),
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 90px rgba(124, 58, 237, 0.10),
    0 0 140px rgba(255, 46, 136, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(124, 58, 237, 0.10);
}
.work-panel.is-active {
  display: block;
  animation: work-panel-fade 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Holographic rotating gradient border */
@property --holo-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.work-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  background: conic-gradient(
    from var(--holo-angle, 0deg),
    transparent 0deg,
    rgba(167, 139, 250, 0.7) 28deg,
    rgba(124, 58, 237, 0.6) 60deg,
    transparent 92deg,
    transparent 188deg,
    rgba(124, 58, 237, 0.5) 218deg,
    rgba(255, 46, 136, 0.4) 248deg,
    transparent 280deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.32));
  animation: holo-border-rotate 14s linear infinite;
}

@keyframes holo-border-rotate {
  to {
    --holo-angle: 360deg;
  }
}
@keyframes work-panel-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.work-panel__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(0.7) blur(1.5px);
  z-index: 0;
}
.work-panel__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 5, 16, 0.55) 0%,
    rgba(10, 5, 16, 0.92) 100%
  );
}

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

.work-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 16px;
}
.work-panel__idx {
  font-family: var(--font-mono);
  font-size: 96px;
  font-weight: 500;
  color: #a78bfa;
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.work-panel__industry {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
  margin-top: 12px;
  text-align: right;
}
.work-panel__title {
  font-size: 22px;
  font-weight: 500;
  font-family: var(--font-jp);
  color: var(--fg);
  margin: 0 0 28px;
  line-height: 1.5;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: anywhere;
}

.work-panel__meta {
  display: flex;
  gap: 32px;
  margin: 0 0 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.work-panel__meta div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.work-panel__meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
  margin: 0;
}
.work-panel__meta dd {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  margin: 0;
  letter-spacing: 0.05em;
}

.work-panel__overview {
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.8;
  color: var(--fg-soft);
  margin: 0 0 26px;
}

.work-panel__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work-panel__tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fg);
  padding: 6px 10px;
  border: 1px solid var(--rule);
  background: rgba(37, 26, 48, 0.4);
}

@media (max-width: 800px) {
  .works {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .works__list,
  .works__panels {
    display: contents;
  }
  .work-row {
    border-bottom: none;
  }
  .work-row[data-idx="01"] { order: 1; }
  .work-panel[data-idx="01"] { order: 2; }
  .work-row[data-idx="02"] { order: 3; }
  .work-panel[data-idx="02"] { order: 4; }
  .work-row[data-idx="03"] { order: 5; }
  .work-panel[data-idx="03"] { order: 6; }
  .work-row[data-idx="04"] { order: 7; }
  .work-panel[data-idx="04"] { order: 8; }
  .work-row[data-idx="05"] { order: 9; }
  .work-panel[data-idx="05"] { order: 10; }
  .work-row[data-idx="06"] { order: 11; }
  .work-panel[data-idx="06"] { order: 12; }
  .work-panel {
    display: block;
    animation: none;
    padding: 28px 22px;
    min-height: 0;
    margin-bottom: 24px;
  }
  .work-panel__idx {
    font-size: 64px;
  }
  .work-panel__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .work-panel__industry {
    text-align: left;
    margin-top: 0;
  }
  .work-panel__title {
    font-size: 19px;
  }
  .work-panel__meta {
    flex-direction: column;
    gap: 12px;
  }
  .work-row__trigger {
    grid-template-columns: 36px 1fr;
    gap: 8px 14px;
    padding: 16px 0 8px;
  }
}

/* ============== Stack ============== */

.stack {
  margin: 0;
  border-top: 1px solid var(--rule);
}
.stack__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}

.stack__row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
  margin: 0;
  transition: color 0.35s ease;
}
@media (hover: hover) {
  .stack__row:hover dt {
    color: #a78bfa;
  }
}
.stack__row dd {
  margin: 0;
}

.stack__marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 60px,
    #000 calc(100% - 60px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 60px,
    #000 calc(100% - 60px),
    transparent 100%
  );
}

.stack__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration, 35s) linear infinite;
}

.stack__row:nth-of-type(even) .stack__track {
  animation-direction: reverse;
}

.stack__marquee:hover .stack__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-25%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack__track {
    animation: none;
  }
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  margin-right: 14px;
  border: 1px solid var(--rule);
  background: rgba(20, 12, 28, 0.55);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-soft);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease,
    background-color 0.3s ease, transform 0.3s ease;
}

.tech-chip__icon {
  width: 20px;
  height: 20px;
  display: block;
  border-radius: 4px;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tech-chip:hover {
  border-color: rgba(167, 139, 250, 0.55);
  color: var(--fg);
  background: rgba(37, 26, 48, 0.7);
  transform: translateY(-2px);
}
.tech-chip:hover .tech-chip__icon {
  opacity: 1;
}

@media (max-width: 800px) {
  .stack__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stack__row dt {
    margin-bottom: 4px;
  }
  .stack__track {
    animation-duration: calc(var(--marquee-duration, 35s) * 1.4);
  }
}

/* ============== Services ============== */

.services {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.services::-webkit-scrollbar {
  display: none;
}
.service {
  flex: 0 0 380px;
  scroll-snap-align: start;
}
@media (max-width: 800px) {
  .services {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 0;
  }
  .service {
    flex: 1 1 auto;
    width: auto;
    scroll-snap-align: none;
  }
}
.service {
  border: 1px solid var(--rule);
  padding: 36px 32px;
  background: rgba(10, 5, 16, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.service:hover {
  border-color: var(--secondary);
}
.service__title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  font-family: var(--font-jp);
}
.service__price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.service__price {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 26px;
  letter-spacing: 0.02em;
}
.service__price span {
  color: var(--fg-mute);
  font-size: 12px;
  margin-left: 6px;
}
.service__price-note {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.05em;
}

.service__items {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 12px;
}
.service__items li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--fg-soft);
  line-height: 1.55;
}
.service__check {
  color: #a78bfa;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
}

.service__note {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 46, 136, 0.4);
  background: transparent;
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-align: center;
}

.service__target {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--fg-mute);
  line-height: 1.65;
}

.service__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border: 1px solid var(--rule);
  background: rgba(37, 26, 48, 0.55);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  align-self: flex-start;
  margin-top: auto;
  transition: border-color 0.3s ease, color 0.3s ease,
    background-color 0.3s ease, gap 0.3s ease;
}
.service__cta-arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}
.service__cta:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(255, 46, 136, 0.08);
}
.service__cta:hover .service__cta-arrow {
  transform: translateX(5px);
}

.services__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.services__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 48px;
  border: 1px solid rgba(255, 46, 136, 0.55);
  background: rgba(255, 46, 136, 0.08);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  transition: border-color 0.3s ease, color 0.3s ease,
    background-color 0.3s ease, gap 0.3s ease,
    box-shadow 0.3s ease;
}
.services__cta-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.services__cta:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(255, 46, 136, 0.18);
  box-shadow: 0 0 24px rgba(255, 46, 136, 0.25);
}
.services__cta:hover .services__cta-arrow {
  transform: translateX(6px);
}

/* ============== Foot ============== */

.foot {
  padding: 80px var(--pad-x);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}
.countdown {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
  align-items: center;
}
.countdown__label {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #c4b5fd;
  margin: 0;
  animation: countdown-label-pulse 3.6s ease-in-out infinite;
}
@keyframes countdown-label-pulse {
  0%,
  100% {
    opacity: 0.82;
    text-shadow:
      0 0 8px rgba(167, 139, 250, 0.32),
      0 0 18px rgba(124, 58, 237, 0.18);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 16px rgba(167, 139, 250, 0.6),
      0 0 36px rgba(124, 58, 237, 0.4);
  }
}
.countdown__display {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.countdown__number {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  min-width: 2ch;
  text-align: center;
  display: inline-flex;
  justify-content: center;
}
.countdown__digit {
  background-image: linear-gradient(
    180deg,
    var(--fg) 0%,
    var(--fg-mute) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: filter 0.3s ease;
}
.countdown__digit.is-zero {
  background-image: linear-gradient(
    180deg,
    var(--primary) 0%,
    rgba(255, 46, 136, 0.6) 100%
  );
  filter: drop-shadow(0 0 10px rgba(255, 46, 136, 0.5));
}
.countdown__separator {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 200;
  color: #a78bfa;
  align-self: flex-start;
  margin-top: 0.05em;
  animation: countdown-separator-pulse 1s ease-in-out infinite;
}
@keyframes countdown-separator-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}
.countdown__sublabel {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
}

@media (max-width: 800px) {
  .countdown__display {
    gap: 8px;
  }
  .countdown__separator {
    margin-top: 0.08em;
  }
}
.foot__copy {
  color: var(--fg-mute);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  margin: 24px 0 0;
}
