:root {
  --background: #070710;
  --background-deep: #030307;

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.74);

  --accent-purple: #a78bfa;
  --accent-blue: #67e8f9;

  --header-height: 88px;
}

/* ========================================
   リセット
======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;

  color: var(--text);
  background: var(--background);

  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  scroll-behavior: smooth;
}

body {
  margin: 0;

  min-width: 320px;
  min-height: 100vh;

  overflow-x: hidden;

  color: var(--text);
  background: transparent;
}

body.is-opening {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ========================================
   背景動画
======================================== */

.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 40%,
      #211842 0%,
      #070710 58%,
      #030307 100%
    );

  pointer-events: none;
}

.background-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;

  background: var(--background-deep);

  opacity: 1;

  transform: scale(1.01);

  transition:
    filter 1.2s ease,
    transform 1.4s ease,
    opacity 800ms ease;
}

.background-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(2, 3, 12, 0.12) 0%,
      rgba(3, 3, 14, 0.14) 46%,
      rgba(3, 3, 10, 0.7) 100%
    ),
    radial-gradient(
      circle at 50% 42%,
      rgba(103, 232, 249, 0.02),
      rgba(167, 139, 250, 0.07) 45%,
      rgba(3, 3, 10, 0.2) 80%
    );

  transition: background 1.2s ease;
}

/* オープニング中は背景を暗くする */

body.is-opening .background-video {
  filter:
    brightness(0.24)
    saturate(0.9)
    blur(1px);

  transform: scale(1.04);
}

body.is-opening .background-overlay {
  background:
    radial-gradient(
      circle at 50% 46%,
      rgba(48, 34, 108, 0.25) 0%,
      rgba(5, 5, 17, 0.68) 62%,
      rgba(2, 2, 8, 0.86) 100%
    );
}

/* ========================================
   オープニング
======================================== */

.opening {
  position: fixed;
  inset: 0;
  z-index: 100;

  display: grid;
  place-items: center;

  width: 100%;
  min-height: 100vh;
  min-height: 100svh;

  overflow: hidden;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 850ms ease,
    visibility 850ms ease;
}

.opening::before {
  content: "";

  position: absolute;
  inset: -20%;

  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.45) 0 1px,
      transparent 1.6px
    );

  background-size: 64px 64px;

  opacity: 0.1;

  animation: particlesMove 20s linear infinite;

  pointer-events: none;
}

.opening::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(103, 232, 249, 0.09),
      transparent 34%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(167, 139, 250, 0.1),
      transparent 55%
    );

  pointer-events: none;
}

.opening.is-hidden {
  opacity: 0;
  visibility: hidden;

  pointer-events: none;
}

.opening-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: min(1200px, 94vw);

  text-align: center;
}

.opening-logo {
  display: block;

  width: 100%;
  max-width: 1100px;

  overflow: visible;
}

.handwriting {
  font-family:
    "Caveat",
    "Segoe Print",
    cursive;

  font-size: 118px;
  font-weight: 600;

  fill: transparent;

  stroke-linecap: round;
  stroke-linejoin: round;

  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
}

.handwriting-main {
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 2.5px;

  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 13px rgba(103, 232, 249, 0.88))
    drop-shadow(0 0 28px rgba(167, 139, 250, 0.82));

  animation:
    writeText 2.75s
    cubic-bezier(0.65, 0, 0.35, 1)
    250ms
    forwards,

    fillText 650ms
    ease
    2.55s
    forwards,

    textGlow 800ms
    ease
    2.75s
    forwards;
}

.handwriting-shadow {
  stroke: rgba(146, 111, 255, 0.8);
  stroke-width: 9px;

  opacity: 0.28;

  filter: blur(7px);

  animation:
    writeText 2.75s
    cubic-bezier(0.65, 0, 0.35, 1)
    250ms
    forwards,

    shadowGlow 800ms
    ease
    2.75s
    forwards;
}

.opening-brand {
  margin: -18px 0 0;

  color: rgba(255, 255, 255, 0.72);

  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.48em;
  text-transform: uppercase;

  opacity: 0;
  transform: translateY(10px);

  animation:
    brandAppear 700ms
    ease
    2.6s
    forwards;
}

.skip-button {
  position: absolute;
  top: 28px;
  right: 30px;
  z-index: 4;

  padding: 9px 16px;

  color: rgba(255, 255, 255, 0.65);
  background: rgba(7, 6, 22, 0.3);

  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 999px;

  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;

  cursor: pointer;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.skip-button:hover {
  color: #ffffff;

  background: rgba(44, 34, 94, 0.55);
  border-color: rgba(103, 232, 249, 0.5);
}

.skip-button:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 5px;
}

/* ========================================
   index本体
======================================== */

.main-content {
  position: relative;
  z-index: 10;

  min-height: 100vh;

  opacity: 0;
  transform: scale(1.02);

  pointer-events: none;

  transition:
    opacity 1s ease,
    transform 1.3s ease;
}

.main-content.is-visible {
  opacity: 1;
  transform: scale(1);

  pointer-events: auto;
}

/* ========================================
   ヘッダー
======================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: var(--header-height);

  padding:
    24px
    clamp(24px, 5vw, 80px);

  background:
    linear-gradient(
      180deg,
      rgba(3, 3, 10, 0.58),
      transparent
    );
}

.site-logo {

    display: flex;
    align-items: center;
    gap: 14px;

    color: #fff;

    text-decoration: none;

    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;

    text-shadow:
        0 0 12px rgba(167,139,250,.45),
        0 3px 14px rgba(0,0,0,.7);

}

.site-logo-image {

    width: 52px;
    height: 52px;

    object-fit: contain;

    transition: .35s;

    filter:
        drop-shadow(0 0 10px rgba(123,97,255,.35));

}

.site-logo:hover .site-logo-image {

    transform: rotate(-5deg) scale(1.08);

    filter:
        drop-shadow(0 0 20px rgba(103,232,249,.8))
        drop-shadow(0 0 35px rgba(167,139,250,.5));

}

.site-navigation {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.site-navigation a {
  position: relative;

  padding: 8px 0;

  color: rgba(255, 255, 255, 0.82);

  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;

  text-decoration: none;

  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.86);
}

.site-navigation a::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      var(--accent-purple),
      var(--accent-blue)
    );

  transform: scaleX(0);
  transform-origin: right;

  transition: transform 220ms ease;
}

.site-navigation a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-logo:focus-visible,
.site-navigation a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 5px;
}

/* ========================================
   ヒーロー
======================================== */

.hero {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 100vh;
  min-height: 100svh;

  padding:
    calc(var(--header-height) + 50px)
    clamp(24px, 8vw, 130px)
    90px;

  overflow: hidden;
}

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: -1;

  background:
    linear-gradient(
      90deg,
      rgba(2, 2, 9, 0.48) 0%,
      rgba(2, 2, 9, 0.14) 52%,
      rgba(2, 2, 9, 0.08) 100%
    );

  pointer-events: none;
}

.hero-content {
  width: min(850px, 100%);
}

.hero-label {
  margin: 0;

  color: var(--accent-blue);

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;

  text-shadow:
    0 0 12px rgba(103, 232, 249, 0.7),
    0 3px 14px rgba(0, 0, 0, 0.9);
}

.hero h1 {
  margin: 24px 0;

  color: #ffffff;

  font-size: clamp(52px, 7.5vw, 112px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.05em;

  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.22),
    0 0 28px rgba(103, 232, 249, 0.28),
    0 0 62px rgba(167, 139, 250, 0.44),
    0 7px 28px rgba(0, 0, 0, 0.9);
}

.hero-description {
  margin: 0;

  max-width: 720px;

  color: rgba(255, 255, 255, 0.88);

  font-size: clamp(15px, 1.55vw, 19px);
  line-height: 2;
  letter-spacing: 0.035em;

  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.95),
    0 4px 24px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 190px;
  min-height: 50px;

  padding: 13px 25px;

  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.035em;

  text-decoration: none;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #090711;
  background: rgba(255, 255, 255, 0.96);

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(255, 255, 255, 0.1);
}

.button-primary:hover {
  background: #ffffff;

  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(103, 232, 249, 0.2);
}

.button-secondary {
  color: #ffffff;

  background: rgba(13, 11, 32, 0.46);

  border: 1px solid rgba(255, 255, 255, 0.28);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.button-secondary:hover {
  background: rgba(40, 31, 84, 0.56);
  border-color: rgba(103, 232, 249, 0.5);
}

/* ========================================
   スクロール表示
======================================== */

.scroll-guide {
  position: absolute;
  bottom: 22px;
  left: 50%;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  transform: translateX(-50%);

  color: rgba(255, 255, 255, 0.56);

  font-size: 9px;
  letter-spacing: 0.3em;
}

.scroll-line {
  position: relative;

  display: block;

  width: 1px;
  height: 42px;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.2);
}

.scroll-line::after {
  content: "";

  position: absolute;
  top: -100%;
  left: 0;

  width: 100%;
  height: 100%;

  background:
    linear-gradient(
      transparent,
      var(--accent-blue),
      transparent
    );

  animation: scrollLineMove 2s ease-in-out infinite;
}

/* ========================================
   紹介セクション
======================================== */

.introduction {
  position: relative;

  padding:
    clamp(100px, 13vw, 180px)
    clamp(24px, 8vw, 120px);

  background:
    radial-gradient(
      circle at 75% 15%,
      rgba(103, 232, 249, 0.08),
      transparent 30%
    ),
    radial-gradient(
      circle at 20% 70%,
      rgba(167, 139, 250, 0.1),
      transparent 34%
    ),
    rgba(7, 7, 17, 0.97);
}

.section-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.section-label {
  margin: 0 0 22px;

  color: var(--accent-blue);

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.23em;
}

.introduction h2 {
  margin: 0;

  font-size: clamp(40px, 6vw, 78px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.section-description {
  max-width: 760px;

  margin: 34px 0 0;

  color: var(--text-muted);

  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 2.1;
}

/* ========================================
   アニメーション
======================================== */

@keyframes writeText {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fillText {
  to {
    fill: rgba(255, 255, 255, 0.93);
  }
}

@keyframes textGlow {
  0% {
    opacity: 1;
  }

  50% {
    filter:
      drop-shadow(0 0 7px rgba(255, 255, 255, 1))
      drop-shadow(0 0 23px rgba(103, 232, 249, 1))
      drop-shadow(0 0 50px rgba(167, 139, 250, 1));
  }

  100% {
    opacity: 1;
  }
}

@keyframes shadowGlow {
  0% {
    opacity: 0.28;
  }

  50% {
    opacity: 0.75;
  }

  100% {
    opacity: 0.38;
  }
}

@keyframes brandAppear {
  to {
    opacity: 0.72;
    transform: translateY(0);
  }
}

@keyframes particlesMove {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(64px, 64px, 0);
  }
}

@keyframes scrollLineMove {
  0% {
    top: -100%;
  }

  55%,
  100% {
    top: 100%;
  }
}

/* ========================================
   JavaScript無効
======================================== */

.noscript-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;

  max-width: calc(100% - 32px);

  padding: 14px 18px;

  color: #ffffff;
  background: rgba(130, 35, 70, 0.96);

  border-radius: 10px;

  font-size: 13px;
  line-height: 1.6;
}

/* ========================================
   スマートフォン
======================================== */

@media (max-width: 760px) {
  :root {
    --header-height: 76px;
  }

  .opening-content {
    width: calc(100% - 20px);
  }

  .handwriting {
    font-size: 82px;
  }

  .opening-brand {
    margin-top: -8px;

    font-size: 10px;
    letter-spacing: 0.35em;
  }

  .site-header {
    padding: 20px 22px;
  }

  .site-logo {
    font-size: 20px;
  }

  .site-navigation {
    gap: 17px;
  }

  .site-navigation a {
    font-size: 12px;
  }

  .hero {
    padding:
      calc(var(--header-height) + 30px)
      24px
      80px;
  }

  .hero-label {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .hero h1 {
    font-size: clamp(50px, 15vw, 82px);
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;

    width: 100%;
  }

  .button {
    width: min(290px, 100%);
  }

  .introduction {
    padding:
      90px
      24px
      105px;
  }
}

@media (max-width: 430px) {
  .skip-button {
    top: 18px;
    right: 18px;
  }

  .handwriting {
    font-size: 66px;
  }

  .opening-logo {
    transform: scale(1.06);
  }

  .hero-description br {
    display: none;
  }

  .scroll-guide {
    display: none;
  }
}

/* 横長ディスプレイ */

@media (min-aspect-ratio: 16 / 9) {
  .background-video {
    object-position: center 42%;
  }
}

/* ========================================
   動きを減らす設定
======================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .opening {
    display: none;
  }

  body.is-opening {
    overflow: auto;
  }

  body.is-opening .background-video {
    filter: none;
    transform: none;
  }

  .main-content {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
/* ======================================================
   コンテンツポリシーテーブル
====================================================== */

.policy-table{

    width:100%;

    margin:30px 0;

    border-collapse:collapse;

    background:rgba(255,255,255,.03);

    border:1px solid rgba(255,255,255,.08);

    border-radius:12px;

    overflow:hidden;

}

.policy-table th{

    background:linear-gradient(
        90deg,
        #6b4eff,
        #4ac7ff
    );

    color:#fff;

}

.policy-table td{

    padding:18px 20px;

    color:#ddd;

    font-size:15px;

    border-bottom:1px solid rgba(255,255,255,.05);

}

.policy-table tr:last-child td{

    border-bottom:none;

}

.policy-table td:first-child{

    width:40%;

    font-weight:700;

    color:#ffffff;

}

.policy-table td:nth-child(2),

.policy-table td:nth-child(3){

    width:30%;

    text-align:center;

}

.policy-table tr:hover{

    background:rgba(120,120,255,.08);

    transition:.2s;

}
.allow{

    display:inline-block;

    padding:4px 10px;

    border-radius:30px;

    background:#16391f;

    color:#7CFF95;

    font-weight:700;

}

.deny{

    display:inline-block;

    padding:4px 10px;

    border-radius:30px;

    background:#421414;

    color:#FF6B6B;

}

.partial{

    display:inline-block;

    padding:4px 10px;

    border-radius:30px;

    background:#44380d;

    color:#FFD84D;

}

/* ======================================================
   プライバシーポリシー
====================================================== */

.policy-page .page-hero h1{
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.15;
}

.policy-page .page-hero{
    padding: 120px 0 80px;
}

/* ========================================
   INFORMATION
======================================== */

.information-section {
    position: relative;
    padding: 110px 0;

    background:
        rgba(7, 7, 16, 0.82);

    border-top:
        1px solid rgba(255, 255, 255, 0.06);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);
}

.information-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;

    margin-bottom: 48px;
}

.information-header h2 {
    margin: 8px 0 0;

    font-size:
        clamp(32px, 4vw, 52px);

    line-height: 1.2;
}

.information-list {
    border-top:
        1px solid rgba(255, 255, 255, 0.1);
}

.information-item {
    display: grid;

    grid-template-columns:
        120px
        110px
        minmax(0, 1fr)
        30px;

    align-items: center;
    gap: 24px;

    padding: 25px 4px;

    color: #ffffff;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.1);

    text-decoration: none;

    transition:
        background 180ms ease,
        padding 180ms ease;
}

.information-item:hover {
    padding-right: 16px;
    padding-left: 16px;

    background:
        rgba(167, 139, 250, 0.06);
}

.information-item time {
    color:
        rgba(255, 255, 255, 0.54);

    font-size: 13px;
    letter-spacing: 0.06em;
}

.information-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;

    padding:
        4px
        12px;

    color: #c7f7ff;

    background:
        rgba(103, 232, 249, 0.08);

    border:
        1px solid rgba(103, 232, 249, 0.2);

    border-radius: 999px;

    font-size: 11px;
    font-weight: 600;
}

.information-item p {
    margin: 0;

    font-size: 15px;
    line-height: 1.8;
}

.information-arrow {
    color: #67e8f9;

    font-size: 19px;

    transition:
        transform 180ms ease;
}

.information-item:hover .information-arrow {
    transform:
        translateX(4px);
}

@media (max-width: 760px) {

    .information-section {
        padding:
            80px
            0;
    }

    .information-header {
        align-items: flex-start;
        flex-direction: column;

        margin-bottom: 32px;
    }

    .information-item {
        grid-template-columns:
            auto
            1fr
            auto;

        gap:
            10px
            14px;

        padding:
            20px
            2px;
    }

    .information-item p {
        grid-column:
            1 / -2;
    }

    .information-arrow {
        grid-column: 3;
        grid-row: 1 / 3;
    }
}

/* ======================================================
   HEADER NAVIGATION ALIGNMENT
   About / Download / BGM を右側へまとめる
====================================================== */

.site-header {
  justify-content: flex-start;
}

.site-navigation {
  margin-left: auto;
}

.site-header > .bgm-control {
  margin-left: clamp(18px, 2vw, 30px);
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .site-navigation {
    margin-left: auto;
  }

  .site-header > .bgm-control {
    margin-left: 12px;
  }
}

@media (max-width: 430px) {
  .site-header {
    gap: 10px;
  }

  .site-navigation {
    gap: 12px;
  }

  .site-navigation a {
    font-size: 11px;
  }

  .site-header > .bgm-control {
    margin-left: 4px;
  }
}
