/* トップページ専用スタイル(モックアップ再現) */
:root {
  --lp-bg: #0a090f;
  --lp-panel: #141218;
  --lp-line: rgba(255, 255, 255, 0.09);
  --lp-purple: #7c5cff;
  --lp-purple-2: #a78bfa;
  --lp-lav: #c4b5fd;
}
body.landing {
  background: var(--lp-bg);
  font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
body.landing::before {
  background:
    radial-gradient(900px 620px at 78% 8%, rgba(124, 92, 255, 0.20), transparent 60%),
    radial-gradient(700px 500px at 100% 45%, rgba(168, 85, 247, 0.12), transparent 60%),
    radial-gradient(600px 480px at -8% 80%, rgba(124, 92, 255, 0.08), transparent 60%);
}
.lp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ── ナビ ── */
.lp-nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  background: rgba(10, 9, 15, 0.78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--lp-line);
}
.lp-nav .logo { display: flex; align-items: center; gap: 11px; color: var(--text); }
.lp-nav .logo img { width: 36px; height: 36px; border-radius: 9px; }
.lp-nav .logo b { font-size: 18px; font-weight: 800; letter-spacing: 0.01em; }
.lp-nav ul {
  list-style: none; display: flex; gap: 4px; margin: 0 auto; padding: 0;
}
.lp-nav ul a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--sub); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: color .15s, background .15s;
}
.lp-nav ul a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.lp-nav ul a.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--lp-purple); border-radius: 8px 8px 0 0; }
.lp-nav .store {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 10px;
  background: linear-gradient(120deg, #b7a6ff, #8f7bff);
  color: #17102e; font-weight: 900; font-size: 13px; letter-spacing: 0.08em;
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.35);
  transition: transform .15s, filter .15s;
}
.lp-nav .store:hover { transform: translateY(-1px); filter: brightness(1.06); color: #17102e; }

/* ── 左レール ── */
.lp-rail {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  z-index: 40; color: var(--sub); font-size: 11px; letter-spacing: 0.28em;
}
.lp-rail .num { font-weight: 800; color: var(--text); }
.lp-rail .dots { display: flex; flex-direction: column; gap: 6px; }
.lp-rail .dots i {
  width: 15px; height: 15px; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lp-rail .dots i::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transition: background .3s, box-shadow .3s, transform .3s;
}
.lp-rail .dots i:hover::before { background: rgba(255,255,255,0.55); transform: scale(1.3); }
.lp-rail .dots i.on::before { background: var(--lp-purple); box-shadow: 0 0 8px var(--lp-purple); transform: scale(1.4); }
.lp-rail .num { transition: opacity .25s; }
.lp-rail .scr { writing-mode: vertical-rl; text-transform: uppercase; margin-top: 18px; }
.lp-rail .scr::after {
  content: ""; display: block; width: 1px; height: 42px; margin: 10px auto 0;
  background: linear-gradient(var(--lp-purple), transparent);
  animation: railFlow 1.9s ease-in-out infinite;
  transform-origin: top;
}
@keyframes railFlow {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  75% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ── ヒーロー ── */
.lp-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: 30px;
  padding: 72px 0 60px; min-height: 78vh;
}
.lp-eyebrow {
  color: var(--lp-purple-2); font-size: 13px; font-weight: 800;
  letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 22px;
}
.lp-display {
  font-family: "Archivo Black", "Inter", sans-serif;
  font-size: clamp(52px, 8.2vw, 104px);
  line-height: 0.98; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--text);
  margin: 0 0 26px;
}
.lp-display .accent {
  background: linear-gradient(115deg, #a78bfa 5%, #7c5cff 55%, #6d28d9 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-sub1 { font-size: clamp(17px, 2.4vw, 21px); font-weight: 800; margin: 0 0 8px; }
.lp-sub2 { color: var(--sub); font-size: 14.5px; margin: 0 0 30px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.lp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 10px;
  background: linear-gradient(120deg, #8f7bff, #7c5cff);
  color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.4);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.lp-btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; box-shadow: 0 14px 38px rgba(124, 92, 255, 0.55); }
.lp-btn.line {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none; color: var(--text);
}
.lp-btn.line:hover { background: rgba(255, 255, 255, 0.06); box-shadow: none; }

/* ── パネルモックアップ ── */
.mock-stage { position: relative; min-height: 460px; display: flex; align-items: center; }
/* ヒーローの大判Premiere画面(斜め+両端ディゾルブ) */
.pr-showcase {
  display: block; width: 132%; max-width: none; height: auto;
  margin-left: -8%;
  border-radius: 18px;
  transform: perspective(1500px) rotateY(-14deg) rotateX(5deg) rotate(1deg);
  mask-image: radial-gradient(ellipse 70% 66% at 50% 50%, #000 42%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 66% at 50% 50%, #000 42%, transparent 90%);
  opacity: 0.96;
  pointer-events: none;
}
.mock-stage .glow {
  position: absolute; inset: -8% -12%;
  background: radial-gradient(closest-side at 60% 45%, rgba(124, 92, 255, 0.3), transparent 70%);
  filter: blur(6px); pointer-events: none;
}
.mock-stage .ring {
  position: absolute; right: -60px; bottom: 30px; width: 340px; height: 340px;
  border: 1.5px solid rgba(167, 139, 250, 0.35); border-radius: 50%;
  mask-image: linear-gradient(200deg, #000 30%, transparent 68%);
  -webkit-mask-image: linear-gradient(200deg, #000 30%, transparent 68%);
  pointer-events: none;
}
.mock-stage .glow, .mock-stage .ring { z-index: 1; }
.panel-mock {
  position: relative; z-index: 2;
  width: min(520px, 100%);
  margin-left: auto;
  background: linear-gradient(160deg, #1b1823, #14121a);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 92, 255, 0.18);
  transform: perspective(1400px) rotateY(-13deg) rotateX(5deg) rotateZ(0.6deg);
  padding: 14px 16px 18px;
  font-size: 11px;
}
.panel-mock .bar { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--lp-line); }
.panel-mock .bar img { width: 18px; height: 18px; border-radius: 4px; }
.panel-mock .bar b { letter-spacing: 0.16em; font-size: 10.5px; color: var(--text); }
.panel-mock .bar .x { margin-left: auto; color: var(--sub); }
.panel-mock .tabs { display: flex; gap: 5px; margin: 10px 0; flex-wrap: wrap; }
.panel-mock .tabs span {
  padding: 4px 11px; border-radius: 999px; color: var(--sub);
  border: 1px solid transparent; font-size: 10px;
}
.panel-mock .tabs .on { background: rgba(124, 92, 255, 0.2); border-color: rgba(139, 123, 255, 0.5); color: #d6cdff; }
.panel-mock .cols { display: grid; grid-template-columns: 1fr 118px; gap: 12px; }
.panel-mock .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.panel-mock .tile {
  background: #0e0d13; border: 1px solid var(--lp-line); border-radius: 8px;
  padding: 12px 6px 6px; text-align: center; position: relative; overflow: hidden;
}
.panel-mock .tile .star { position: absolute; top: 4px; right: 6px; color: #574f77; font-size: 9px; }
.panel-mock .tile .t { display: block; font-weight: 900; font-size: 13px; line-height: 1.4; white-space: nowrap; }
.panel-mock .tile .n { display: block; color: #6f6890; font-size: 8.5px; margin-top: 6px; }
.s-min  { color: #f2f0fa; }
.s-thin { color: #cfcbe0; font-weight: 700 !important; }
.s-glow { color: #7ff3ff; text-shadow: 0 0 8px rgba(46, 230, 214, 0.9); }
.s-pop  { color: #ffb03a; -webkit-text-stroke: 0.5px #7c2d12; transform: rotate(-4deg); display: inline-block; }
.s-grad { background: linear-gradient(100deg, #f472b6, #a78bfa, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-cool { color: #93c5fd; font-style: italic; }
.s-neon { color: #ff7ad9; text-shadow: 0 0 9px rgba(255, 61, 205, 0.95); }
.s-str  { color: #ffe14d; -webkit-text-stroke: 0.6px #111; }
.s-simple { color: #fff; text-shadow: 1.2px 1.2px 0 #444; }
.panel-mock .tray { border-left: 1px solid var(--lp-line); padding-left: 12px; display: flex; flex-direction: column; gap: 8px; }
.panel-mock .tray .h { color: #a78bfa; font-size: 9px; font-weight: 800; letter-spacing: 0.18em; }
.panel-mock .tray .tile { padding: 14px 6px 8px; }
.panel-mock .drop {
  flex: 1; min-height: 74px; border: 1.5px dashed rgba(167, 139, 250, 0.45); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #8d85ad; font-size: 9px; letter-spacing: 0.14em; text-align: center;
}
/* ミニタイムライン装飾 */
.mock-stage .tl {
  position: absolute; right: -20px; bottom: -12px; width: 220px; opacity: 0.55;
  display: flex; flex-direction: column; gap: 5px; pointer-events: none;
}
.mock-stage .tl i { height: 9px; border-radius: 3px; display: block; }
.mock-stage .tl i:nth-child(1) { background: #6d5cd3; width: 82%; }
.mock-stage .tl i:nth-child(2) { background: #3f3768; width: 100%; }
.mock-stage .tl i:nth-child(3) { background: #2b2547; width: 64%; }

/* ── セクション共通 ── */
.lp-section { padding: 76px 0 10px; }
.lp-kicker { color: var(--lp-purple-2); font-size: 12px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 14px; }
.lp-h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 900; line-height: 1.5; margin: 0 0 22px; letter-spacing: 0.01em; }

/* ── PHILOSOPHY ── */
.philo { max-width: 46em; border-left: 2px solid rgba(139, 123, 255, 0.45); padding-left: 26px; }
.philo p { color: var(--sub); font-size: 15.5px; line-height: 2.15; margin: 0 0 22px; }
.philo p:last-child { margin-bottom: 0; }
.philo b { color: var(--text); font-weight: 800; }
.philo .hl { color: var(--lp-lav); }
@media (max-width: 760px) {
  .philo { padding-left: 18px; }
  .philo p br { display: none; }
}

/* ── FEATURES ── */
.feat { display: grid; grid-template-columns: 1.1fr 0.6fr 0.6fr 1.5fr; gap: 16px; align-items: stretch; }
.feat .card { margin: 0; }
.feat .rocket { grid-column: 1; }
.mini-card { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.mini-card .ic {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: linear-gradient(135deg, #7c5cff, #a855f7);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.4);
}
.mini-card b { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.mini-card p { color: var(--sub); font-size: 12px; margin: 0; }
.showcase {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, rgba(124, 92, 255, 0.16), rgba(20, 18, 24, 0.9) 55%);
  border: 1px solid rgba(139, 123, 255, 0.35);
}
.showcase .new {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: #7c5cff; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.showcase h3 { font-size: 21px; letter-spacing: 0.06em; margin: 0; }
.showcase .for { color: var(--lp-purple-2); font-weight: 800; font-size: 12.5px; margin: 2px 0 10px; }
.showcase p { color: var(--sub); font-size: 13.5px; }
.mini-grid { position: absolute; right: -30px; top: 18px; width: 220px; transform: rotate(6deg); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; opacity: 0.9; }
.mini-grid i {
  height: 34px; border-radius: 6px; background: #0e0d13; border: 1px solid var(--lp-line);
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 900; font-size: 10px;
}

/* ── PRODUCTS ── */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prod-grid .card { margin: 0; }

/* ── レスポンシブ ── */
@media (max-width: 1100px) {
  .lp-rail { display: none; }
  .feat { grid-template-columns: 1fr 1fr; }
  .feat .rocket { grid-column: auto; }
  .showcase { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 46px; gap: 24px; }
  .panel-mock { margin: 0 auto; transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); }
  .mock-stage { min-height: 0; }
  .pr-showcase { width: 118%; margin-left: -9%; transform: perspective(1500px) rotateY(-8deg) rotateX(3deg); }
  .mock-stage .ring { right: -30px; width: 240px; height: 240px; }
  .lp-nav ul { display: none; }
  .prod-grid { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; }
  .mini-grid { display: none; }
}

/* カスタム開発の5枚カードは、PC幅では横一列に並べる(2026-08-21 ユーザー指示)。
   狭い画面では従来どおり折り返す(style.cssのauto-fitが効く) */
@media (min-width: 1100px) {
  #custom .grid { grid-template-columns: repeat(5, 1fr); }
}
