/* トップ（LP）だけで使う見た目。共通の色・フォントは style.css */

.wrap.wide {
  max-width: 1080px;
}

.lp {
  overflow-x: hidden;
}

.lp .site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(19, 17, 27, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.eyebrow {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0 0 14px;
}

.eyebrow.center,
.h2 {
  text-align: center;
}

.h2 {
  font-size: clamp(24px, 4.4vw, 34px);
  line-height: 1.4;
  margin: 0 0 36px;
  text-wrap: balance;
}

.h2.left {
  text-align: left;
}

/* 区切りの見出し（英字だけ。アプリのボタン・ページ名と同じ考え方） */
.sec-title {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1.4;
  letter-spacing: 2px;
  text-align: center;
  margin: 0 0 40px;
}

.sec-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 6px;
  margin: 18px auto 0;
  background: var(--accent);
}

.sec-title.left {
  text-align: left;
}

.sec-title.left::after {
  margin-left: 0;
}

.section {
  padding: 88px 0;
}

/* ページ内リンクで、上の固定ヘッダーに隠れないように */
section[id] {
  scroll-margin-top: 60px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

/* ===== ファーストビュー ===== */

.hero2 {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
}

/* うっすらとマス目のドット */
.dots-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(108, 99, 255, 0.16) 1.5px, transparent 1.6px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero2-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.title {
  font-family: "Doto", var(--pixel);
  font-weight: 700;
  font-size: clamp(88px, 15vw, 152px);
  line-height: 0.95;
  margin: 0;
  letter-spacing: 2px;
}

.reading {
  color: var(--muted);
  margin: 6px 0 28px;
  letter-spacing: 4px;
}

.catch {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 16px;
}

.catch em {
  font-style: normal;
  color: var(--accent);
}

.sub {
  color: #d8d2ea;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.cta-row.center {
  justify-content: center;
}

.badge-soon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 170px;
  height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  background: #000;
  border: 1px solid #4a4466;
  color: #fff;
  /* 英字だけの「App Store」は Press Start 2P、上の日本語は DotGothic16 */
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
}

.badge-soon small {
  display: block;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  color: #c9c3dc;
  letter-spacing: 0.5px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost::after {
  content: "↓";
  margin-left: 10px;
  color: var(--accent);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(255, 154, 61, 0.08);
}

.meta-line {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* スマホの枠 */
.phone {
  margin: 0;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #3a3452, #1c1928);
  box-shadow:
    0 0 0 1px #4a4466,
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(255, 138, 61, 0.12);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.hero2-phone {
  position: relative;
  max-width: 340px;
  justify-self: center;
  width: 100%;
  animation: float 6s ease-in-out infinite;
}

.burst-tag {
  position: absolute;
  right: -18px;
  top: 14%;
  transform: rotate(8deg);
  background: var(--accent);
  color: #1b1206;
  font-family: var(--pixel);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(255, 138, 61, 0.35);
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

/* ===== あそびかた ===== */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 22px 26px;
}

.step h3 {
  margin: 4px 0 6px;
  font-size: 19px;
}

.step p:last-child {
  margin: 0;
  color: #d8d2ea;
  font-size: 15px;
}

.step-no {
  position: absolute;
  top: 18px;
  left: 20px;
  margin: 0;
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--muted);
}

.step-art {
  position: relative;
  height: 130px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

/* マスの絵（受け皿4つ：上・右・下・左） */
.cellx {
  --u: 76px;
  position: relative;
  width: var(--u);
  height: var(--u);
  border-radius: 14px;
  background: #13111b;
  box-shadow: inset 0 0 0 1px #2c2740;
}

.cellx.mini {
  --u: 52px;
  border-radius: 10px;
}

.cellx.hot {
  background: radial-gradient(circle, rgba(255, 138, 61, 0.45), transparent 70%), #4a2420;
}

.cellx .s {
  position: absolute;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  border: 2px solid #3c3657;
  transform: translate(-50%, -50%);
}

.cellx .s:nth-child(1) { left: 50%; top: 21%; }
.cellx .s:nth-child(2) { left: 79%; top: 50%; }
.cellx .s:nth-child(3) { left: 50%; top: 79%; }
.cellx .s:nth-child(4) { left: 21%; top: 50%; }

.cellx .s.on1 { background: #4fd1c5; border-color: #4fd1c5; }
.cellx .s.on3 { background: #ff8a3d; border-color: #ff8a3d; }

.tap {
  position: absolute;
  right: calc(50% - 64px);
  top: 14px;
  font-family: var(--pixel);
  font-size: 13px;
  background: #fff;
  color: #13111b;
  padding: 6px 8px;
  border-radius: 8px;
  animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(-5px);
  }
}

.arrows b {
  position: absolute;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  left: 50%;
  top: 50%;
  animation: shoot 1.4s ease-out infinite;
}

.arrows .u { border-bottom-color: #ffd8a0; --dx: 0; --dy: -58px; }
.arrows .r { border-left-color: #ffd8a0; --dx: 58px; --dy: 0; }
.arrows .d { border-top-color: #ffd8a0; --dx: 0; --dy: 58px; }
.arrows .l { border-right-color: #ffd8a0; --dx: -58px; --dy: 0; }

@keyframes shoot {
  0% {
    transform: translate(-50%, -50%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)));
    opacity: 0;
  }
}

.chainrow {
  display: flex;
  gap: 8px;
  align-items: center;
}

.blockx {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--pixel);
  font-size: 16px;
  color: #ffe08a;
  background: linear-gradient(#9b95ff 50%, #6c63ff 50%);
  animation: crack 1.8s ease-in-out infinite;
}

@keyframes crack {
  0%, 60% { transform: none; opacity: 1; }
  65% { transform: translateX(-3px); }
  70% { transform: translateX(3px); }
  80%, 100% { transform: scale(0.6); opacity: 0.2; }
}

.threat {
  margin: 22px auto 0;
  max-width: 760px;
  text-align: center;
  color: #d8d2ea;
}

.threat strong {
  color: var(--text);
}

/* ===== さわってみる ===== */

.try {
  background:
    radial-gradient(ellipse at 75% 50%, rgba(108, 99, 255, 0.14), transparent 60%),
    #17151f;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.try-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.try-text p {
  color: #d8d2ea;
}

.legend {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lg {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border-radius: 6px;
  background: #13111b;
  font-family: var(--pixel);
  font-size: 11px;
}

.lg.burst {
  border: 2px solid #ffc85a;
  background: #4a2420;
}

.lg.dmg { color: #ff9a9a; }
.lg.brk { color: #ffe08a; }

.try-board {
  justify-self: center;
  width: 100%;
  max-width: 400px;
}

.readout {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.readout div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.readout span {
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--muted);
}

.readout b {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 18px;
  min-width: 4ch;
}

.readout button {
  margin-left: auto;
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.readout button:hover {
  border-color: var(--accent);
}

.board-wrap {
  background: #13111b;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

#demo {
  display: block;
  margin: 0 auto;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.demo-hint {
  min-height: 3.6em;
  margin: 14px 0 0;
  text-align: center;
  font-weight: 700;
  color: #ffe08a;
  text-wrap: balance;
}

/* ===== とくちょう ===== */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.features li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 22px;
}

.features h3 {
  margin: 12px 0 6px;
  font-size: 18px;
}

.features p {
  margin: 0;
  color: #d8d2ea;
  font-size: 15px;
}

.ficon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 154, 61, 0.12);
  color: var(--accent);
  font-size: 20px;
}

/* ===== 画面 ===== */

.shots-section {
  padding-bottom: 72px;
}

/* カルーセル：1枚ずつ自動で送り、最後の次は最初に戻ってぐるっと回る（carousel.js） */
.carousel {
  position: relative;
}

.shots {
  list-style: none;
  margin: 0;
  /* 1枚目も真ん中に来るよう、左右に半分の余白 */
  padding: 16px calc(50% - 115px) 28px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shots::-webkit-scrollbar {
  display: none;
}

.shots li {
  flex: 0 0 230px;
  scroll-snap-align: center;
  transition: transform 0.45s ease, opacity 0.45s ease;
  transform: scale(0.86);
  opacity: 0.45;
}

.shots li.is-active {
  transform: scale(1);
  opacity: 1;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--pixel);
  font-size: 12px;
  cursor: pointer;
}

.carousel-btn:hover {
  border-color: var(--accent);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--line);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.carousel-dots button[aria-current="true"] {
  width: 26px;
  background: var(--accent);
}

.phone.sm {
  padding: 7px;
  border-radius: 30px;
  box-shadow: 0 0 0 1px #4a4466, 0 18px 40px rgba(0, 0, 0, 0.5);
}

.phone.sm img {
  border-radius: 24px;
}

/* ===== 最後のよびかけ ===== */

.final {
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 138, 61, 0.16), transparent 60%);
}

.final p {
  color: #d8d2ea;
  max-width: 34em;
  margin: -18px auto 28px;
  text-wrap: balance;
}

.app-icon {
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

/* ===== 幅が狭いとき ===== */

@media (max-width: 860px) {
  .hero2 {
    padding-top: 40px;
  }
  .hero2-grid,
  .try-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero2-text {
    text-align: center;
  }
  .cta-row {
    justify-content: center;
  }
  .hero2-phone {
    max-width: 280px;
  }
  .burst-tag {
    right: -10px;
  }
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
  .h2.left,
  .sec-title.left {
    text-align: center;
  }
  .sec-title.left::after {
    margin-left: auto;
  }
  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .sub br {
    display: none;
  }
  .badge-soon,
  .btn-ghost {
    width: 100%;
    max-width: 320px;
    align-items: center;
  }
  .btn-ghost {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shots li {
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
