* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: #eef9ff;
  background:
    radial-gradient(circle at 15% 20%, rgba(102, 214, 255, 0.18), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(0, 153, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #04111c 0%, #071824 45%, #06121b 100%);
}

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

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

.bg-wrap {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.light {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.42;
  animation: floatLight 14s ease-in-out infinite;
}

.light-1 {
  width: 340px;
  height: 340px;
  background: #74d8ff;
  top: 6%;
  left: 4%;
}

.light-2 {
  width: 420px;
  height: 420px;
  background: #0f89ff;
  right: 7%;
  top: 30%;
  animation-delay: -5s;
}

.light-3 {
  width: 260px;
  height: 260px;
  background: #9cecff;
  left: 30%;
  bottom: 6%;
  animation-delay: -9s;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

@keyframes floatLight {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -28px, 0) scale(1.08);
  }
}

/* スマホ初回イントロ */
.mobile-splash {
  display: none;
}

.mobile-splash-inner {
  text-align: center;
  padding: 0 20px;
}

.mobile-splash-sub {
  color: #84defe;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(14px);
}

.mobile-splash-title {
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.35;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 35px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(20px);
}

.mobile-splash.is-visible {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(102, 214, 255, 0.16), transparent 26%),
    radial-gradient(circle at 80% 24%, rgba(0, 153, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(4,17,28,0.96) 0%, rgba(7,24,36,0.96) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-splash.is-visible .mobile-splash-sub {
  animation: splashFadeUp 0.8s ease forwards;
}

.mobile-splash.is-visible .mobile-splash-title {
  animation: splashFadeUp 0.9s ease 0.18s forwards;
}

.mobile-splash.is-leaving {
  animation: splashFadeOut 0.55s ease forwards;
}

.mobile-main-hidden {
  opacity: 0;
  pointer-events: none;
}

.mobile-main-ready {
  opacity: 1;
  transition: opacity 0.45s ease;
}

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

@keyframes splashFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.entrance {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 48px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0;
}

.intro {
  max-width: 520px;
}

.brand-sub {
  color: #84defe;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.brand-title {
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  text-shadow: 0 10px 35px rgba(0,0,0,0.25);
}

.brand-text {
  font-size: 18px;
  line-height: 1.9;
  color: #c5e5f4;
}

.device-zone {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* PC / TABLET MOCKUP */
.desktop-device {
  display: block;
}

.tablet {
  position: relative;
  width: min(760px, 100%);
  aspect-ratio: 1.35 / 1;
  border-radius: 38px;
  padding: 16px;
  background:
    linear-gradient(145deg, #1d2a35, #0a1218 58%, #2b3947);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.45),
    inset 0 1px 1px rgba(255,255,255,0.12),
    inset 0 -2px 10px rgba(0,0,0,0.55);
  animation: tabletFloat 5.2s ease-in-out infinite;
}

@keyframes tabletFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.tablet::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 46px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.tablet-camera {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.08);
  z-index: 3;
}

.tablet-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #08121b;
  border: 1px solid rgba(255,255,255,0.08);
}

.tablet-wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 22%, rgba(125,223,255,0.34), transparent 20%),
    radial-gradient(circle at 76% 28%, rgba(16,141,255,0.28), transparent 18%),
    radial-gradient(circle at 55% 75%, rgba(130,235,255,0.15), transparent 22%),
    linear-gradient(160deg, #071420 0%, #0b1e2d 42%, #0f3045 100%);
}

.tablet-wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.18;
}

.statusbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px 10px;
  font-size: 13px;
  color: #d8f4ff;
  opacity: 0.9;
}

.screen-content {
  position: relative;
  z-index: 2;
  height: calc(100% - 98px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 22px 28px 110px;
}

.screen-label {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #89e1ff;
  margin-bottom: 28px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 24px 18px;
  width: 100%;
}

.app-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  transition: transform 0.25s ease, filter 0.25s ease;
  transform-origin: center;
}

.app-link:hover {
  transform: translateY(-4px) scale(1.04);
  filter: brightness(1.05);
}

.app-link.is-opening {
  transform: scale(0.94);
}

.app-icon-wrap {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.28),
    inset 0 1px 1px rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.app-name {
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  color: #f3fbff;
  text-shadow: 0 4px 10px rgba(0,0,0,0.28);
  word-break: break-word;
}

.dock {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 26px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.24);
}

.dock-item {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.dock-item:hover {
  transform: translateY(-4px) scale(1.05);
  filter: brightness(1.06);
}

.dock-item.is-opening {
  transform: scale(0.94);
}

.dock-icon {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
}

.tablet-home-indicator {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

/* MOBILE */
.mobile-device {
  display: none;
}

.mobile-home {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0 18px;
}

.mobile-home-top {
  width: 100%;
}

.mobile-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 18px;
  font-size: 13px;
  color: #d8f4ff;
  letter-spacing: 0.04em;
}

.mobile-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 10px;
  width: 100%;
}

.mobile-app-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.mobile-app-link:hover {
  transform: translateY(-4px) scale(1.04);
  filter: brightness(1.05);
}

.mobile-app-link.is-opening {
  transform: scale(0.94);
}

.mobile-app-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 12px 24px rgba(0,0,0,0.24),
    inset 0 1px 1px rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.mobile-app-name {
  text-align: center;
  font-size: 11px;
  line-height: 1.25;
  color: #f3fbff;
  text-shadow: 0 4px 10px rgba(0,0,0,0.28);
  word-break: break-word;
}

.mobile-guide-text {
  margin: 22px 0 18px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: #cbe8f6;
}

.mobile-dock {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 24px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.24);
}

.mobile-dock-item {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.mobile-dock-item:hover {
  transform: translateY(-4px) scale(1.05);
  filter: brightness(1.06);
}

.mobile-dock-item.is-opening {
  transform: scale(0.94);
}

.mobile-dock-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 12px;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.85s ease forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.28s; }
.delay-3 { animation-delay: 0.44s; }
.delay-4 { animation-delay: 0.60s; }

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

/* RESPONSIVE */
@media (max-width: 1100px) {
  .entrance {
    grid-template-columns: 1fr;
    gap: 36px;
    justify-items: center;
    padding: 52px 0 40px;
    overflow: auto;
  }

  body {
    overflow: auto;
  }

  .intro {
    max-width: 720px;
    text-align: center;
  }

  .screen-content {
    align-items: center;
  }
}

@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: repeat(3, minmax(80px, 1fr));
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow: hidden;
  }

  body {
    min-height: 100dvh;
  }

  .entrance {
    width: min(100% - 24px, 100%);
    min-height: 100dvh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 18px 0 14px;
    gap: 0;
  }

  .intro {
    display: none;
  }

  .desktop-device {
    display: none;
  }

  .device-zone {
    width: 100%;
    align-items: stretch;
  }

  .mobile-device {
    display: block;
    width: 100%;
  }

  .mobile-app-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 8px;
  }

  .mobile-app-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 17px;
  }

  .mobile-app-name {
    font-size: 10px;
  }

  .mobile-guide-text {
    font-size: 13px;
    margin: 18px 0 16px;
  }

  .mobile-dock {
    padding: 10px 12px;
    gap: 10px;
  }

  .mobile-dock-item {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .mobile-dock-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
}
.phone-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.phone-modal.active {
  display: flex;
}

.phone-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 16, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
}

.phone-modal-dialog {
  position: relative;
  width: min(92vw, 460px);
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(160deg, rgba(10,24,35,0.95), rgba(15,48,69,0.92));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.36);
  color: #eef9ff;
  z-index: 1;
}

.phone-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.phone-modal-title {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.phone-modal-text {
  margin: 0;
  color: #bfe3f4;
  line-height: 1.7;
  font-size: 14px;
}

.phone-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.phone-number-box {
  display: grid;
  gap: 8px;
  margin: 8px 0 22px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.phone-number-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #89e1ff;
}

.phone-number-main {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
}

.phone-qr-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 8px;
}

.phone-qr {
  width: min(220px, 58vw);
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: #fff;
  padding: 14px;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(0,0,0,0.24);
}

.phone-qr-note {
  color: #bfe3f4;
  font-size: 13px;
  text-align: center;
  line-height: 1.7;
}

.phone-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.phone-action-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.14);
  transition: 0.22s ease;
  cursor: pointer;
}

.phone-action-btn.primary {
  background: linear-gradient(135deg, #80e0ff, #45c3ff);
  color: #032033;
  box-shadow: 0 10px 30px rgba(69,195,255,0.28);
  border: none;
}

.phone-action-btn.secondary {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.phone-action-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .phone-number-main {
    font-size: 26px;
  }
}