@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;500;600;700&display=swap");

:root {
  --page: #0b0d10;
  --surface: #111;
  --surface-2: #171717;
  --ink: #f4f2ed;
  --muted: #a8abb1;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #d8ff3e;
  --accent-2: #fff;
  --accent-rgb: 216, 255, 62;
  --font: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-display: "Big Shoulders Display", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.theme-yomikau {
  --accent: #ff7848;
  --accent-2: #ffb28c;
  --accent-rgb: 255, 120, 72;
}

body.theme-pairsnap {
  --accent: #aeb8ff;
  --accent-2: #6964ff;
  --accent-rgb: 174, 184, 255;
}

body.theme-revmeter {
  --accent: #ff4355;
  --accent-2: #ff9a35;
  --accent-rgb: 255, 67, 85;
}

body.theme-neoneq {
  --accent: #43dff4;
  --accent-2: #d83cff;
  --accent-rgb: 67, 223, 244;
}

body.theme-kintai {
  --accent: #52e49a;
  --accent-2: #d9ed6f;
  --accent-rgb: 82, 228, 154;
}

body.theme-previewmaker {
  --accent: #9c8cff;
  --accent-2: #62c9ff;
  --accent-rgb: 156, 140, 255;
}

body.theme-salon {
  --accent: #ff76ae;
  --accent-2: #ffbd73;
  --accent-rgb: 255, 118, 174;
}

body.theme-agentgauge {
  --accent: #5ee1a4;
  --accent-2: #5f9dff;
  --accent-rgb: 94, 225, 164;
}

body.theme-task {
  --accent: #f8d568;
  --accent-2: #ff8b6a;
  --accent-rgb: 248, 213, 104;
}

body.theme-memo {
  --accent: #69d5ff;
  --accent-2: #8b8cff;
  --accent-rgb: 105, 213, 255;
}

body.theme-household {
  --accent: #65dfa4;
  --accent-2: #f7d35f;
  --accent-rgb: 101, 223, 164;
}

body.theme-hanamaru {
  --accent: #ff9a76;
  --accent-2: #ffd166;
  --accent-rgb: 255, 154, 118;
}

body.theme-yomikau,
body.theme-pairsnap,
body.theme-revmeter,
body.theme-neoneq,
body.theme-kintai,
body.theme-previewmaker,
body.theme-salon,
body.theme-agentgauge,
body.theme-task,
body.theme-memo,
body.theme-household,
body.theme-hanamaru {
  --accent: #d8ff3e;
  --accent-2: #fff;
  --accent-rgb: 216, 255, 62;
}

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

::selection {
  color: #05080e;
  background: var(--accent);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  color: #060810;
  background: #fff;
  border-radius: 7px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.legal-nav {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 5vw, 72px);
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.legal-brand i {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  color: #09101e;
  background: #f4f7ff;
  border-radius: 0;
  font-style: normal;
  font-weight: 900;
}

.legal-brand span {
  color: #68748b;
}

.legal-brand span::before {
  margin-right: 12px;
  color: #394357;
  content: "/";
}

.legal-nav-links,
.legal-footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.legal-nav-links a {
  color: #9ba6bb;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.legal-nav-links a:hover,
.legal-nav-links a[aria-current="page"] {
  color: #fff;
}

.legal-nav-links a[aria-current="page"]::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 4px;
  background: var(--accent);
  content: "";
}

.legal-hero {
  position: relative;
  display: grid;
  min-height: 68svh;
  align-items: end;
  padding: 156px clamp(24px, 5vw, 72px) 84px;
  background:
    linear-gradient(90deg, rgba(11, 13, 16, 0.96), rgba(11, 13, 16, 0.76) 52%, rgba(11, 13, 16, 0.42)),
    url("../cube/images/bg_main.jpg") center / cover no-repeat;
  isolation: isolate;
  overflow: hidden;
}

.legal-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.04) 1px, transparent 1px);
  background-size: clamp(52px, 5vw, 84px) clamp(52px, 5vw, 84px);
  content: "";
  mask-image: linear-gradient(90deg, transparent 2%, #000 45%, #000 100%);
}

.legal-hero::after {
  position: absolute;
  z-index: -1;
  top: 46%;
  right: clamp(-140px, -8vw, -70px);
  width: clamp(300px, 36vw, 580px);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  box-shadow: 0 0 90px rgba(var(--accent-rgb), 0.08);
  content: "";
  transform: translateY(-50%) rotate(18deg);
}

.legal-hero-inner {
  display: grid;
  width: min(100%, 1280px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: clamp(44px, 9vw, 150px);
  align-items: end;
}

.legal-kicker,
.legal-label {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-kicker::before {
  width: 36px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.legal-hero h1 {
  max-width: 940px;
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.84;
}

.legal-hero h1 span {
  color: var(--accent);
}

.legal-hero-note {
  position: relative;
  z-index: 1;
  padding: 26px 0 6px 28px;
  color: #929db3;
  border-left: 1px solid rgba(var(--accent-rgb), 0.45);
  font-size: 13px;
}

.legal-hero-note strong {
  display: block;
  margin-bottom: 12px;
  color: #f4f7ff;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 580;
  letter-spacing: -0.03em;
}

.legal-hero-note p {
  margin: 0;
}

.legal-scroll {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: 24px;
  color: #576278;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-section {
  padding: clamp(86px, 11vw, 154px) clamp(24px, 5vw, 72px);
  background:
    linear-gradient(rgba(11, 13, 16, 0.84), rgba(11, 13, 16, 0.92)),
    url("../cube/images/bg3.jpg") repeat center top / 200px;
}

.legal-shell {
  display: grid;
  width: min(100%, 1180px);
  margin: 0 auto;
  grid-template-columns: 240px minmax(0, 760px);
  gap: clamp(60px, 10vw, 150px);
  justify-content: space-between;
}

.legal-rail {
  align-self: start;
  position: sticky;
  top: 34px;
}

.legal-rail h2 {
  margin: 18px 0 16px;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.legal-rail p:last-child {
  margin: 0;
  color: #69758b;
  font-size: 11px;
  line-height: 1.8;
}

.legal-rule {
  display: block;
  width: 42px;
  height: 1px;
  margin: 26px 0;
  background: var(--accent);
}

.legal-document {
  min-width: 0;
  color: #aab3c5;
  font-size: 1rem;
  line-height: 2;
}

.legal-document > :first-child {
  margin-top: 0;
}

.legal-document p {
  margin: 0 0 24px;
}

.legal-document h1 {
  margin: 0 0 32px;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.legal-document h2,
.legal-legacy-list .legal-document > ol > li {
  color: #eff3fb;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.55;
}

.legal-document h2 {
  margin: 58px 0 16px;
  padding-top: 4px;
}

.legal-document ol {
  margin: 16px 0 22px;
  padding-left: 22px;
  list-style: decimal;
}

.legal-document ol > li {
  margin: 8px 0;
  padding-left: 5px;
  color: #aab3c5;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.9;
}

.legal-legacy-list .legal-document > ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-legacy-list .legal-document > ol > li {
  margin: 52px 0 13px;
  padding: 0;
}

.legal-document ol ol {
  margin: 16px 0 22px;
  padding-left: 22px;
  list-style: decimal;
}

.legal-document ol ol > li {
  margin: 8px 0;
  padding-left: 5px;
  color: #aab3c5;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.9;
}

.legal-document ul {
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
}

.legal-document ul li {
  position: relative;
  margin: 7px 0;
  padding-left: 20px;
}

.legal-document ul li::before {
  position: absolute;
  top: 0.9em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  content: "";
}

.legal-document ul ul {
  margin: 8px 0 14px;
  padding-left: 18px;
}

.legal-document a {
  color: #eaf5ff;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.52);
}

.legal-document code {
  padding: 0.15em 0.42em;
  color: #d8e4f5;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.legal-document br {
  display: block;
  margin-bottom: 8px;
  content: "";
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 5vw, 72px);
  color: #576278;
  background: #05070c;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-footer p {
  margin: 0;
}

.legal-footer a {
  transition: color 180ms ease;
}

.legal-footer a:hover {
  color: #fff;
}

@media (max-width: 820px) {
  .legal-nav {
    padding: 18px 20px;
  }

  .legal-nav-links {
    gap: 16px;
  }

  .legal-nav-links a {
    font-size: 9px;
  }

  .legal-hero {
    min-height: 640px;
    padding: 138px 24px 76px;
  }

  .legal-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .legal-hero h1 {
    font-size: clamp(3.7rem, 17vw, 5.6rem);
  }

  .legal-hero-note {
    max-width: 440px;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .legal-rail {
    position: static;
    max-width: 420px;
  }
}

@media (max-width: 560px) {
  .legal-brand b {
    display: none;
  }

  .legal-brand span::before {
    display: none;
  }

  .legal-nav-links a.optional-link {
    display: none;
  }

  .legal-hero {
    min-height: 590px;
  }

  .legal-hero h1 {
    font-size: clamp(3.5rem, 16vw, 5.2rem);
  }

  html[lang="ja"] .legal-hero h1 {
    font-size: clamp(3.5rem, 16vw, 5.2rem);
  }

  .legal-scroll {
    display: none;
  }

  .legal-section {
    padding: 82px 24px 96px;
  }

  .legal-document {
    font-size: 1rem;
    line-height: 2;
  }

  .legal-document h2,
  .legal-legacy-list .legal-document > ol > li {
    font-size: 1rem;
  }

  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (min-width: 900px) {
  html {
    font-size: 16px;
  }
}

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

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