:root {
  --bg-top: #1a1a2e;
  --bg-bottom: #2d1b4e;
  --card-bg: #20203a;
  --card-border: #35355a;
  --cyan: #00e5ff;
  --yellow: #ffeb3b;
  --purple: #9c27b0;
  --orange: #ff9800;
  --green: #4caf50;
  --blue: #2196f3;
  --text-main: #f2f2fa;
  --text-sub: #b7b7cf;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  min-height: 100%;
}

h1, h2, h3, .brand-word {
  font-family: "Baloo 2", "Noto Sans JP", sans-serif;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
header.site-header {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-word {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
nav.site-nav a {
  margin-left: 24px;
  color: var(--text-sub);
  font-weight: 500;
}
nav.site-nav a:hover { color: var(--cyan); }

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 72px 0 48px;
}
.hero .logo-big {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: 42px;
  margin: 0 0 12px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.tagline {
  font-size: 18px;
  color: var(--text-sub);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- App grid / cards ---- */
.section-title {
  font-size: 26px;
  margin: 56px 0 24px;
  text-align: center;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.app-card, .coming-soon-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}
.app-card img.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.app-card h3 { margin: 0 0 8px; font-size: 20px; }
.app-card p { color: var(--text-sub); font-size: 14px; margin: 0 0 20px; }

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: #0a0a14;
  border: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.disabled {
  background: rgba(255,255,255,0.08);
  color: var(--text-sub);
  cursor: default;
}
.btn.disabled:hover { filter: none; }

.coming-soon-card {
  border-style: dashed;
  opacity: 0.7;
}
.coming-soon-card .placeholder-blocks {
  width: 64px; height: 64px; margin: 0 auto 16px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
}
.coming-soon-card .placeholder-blocks span {
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
}

/* ---- App detail hero (feature graphic banner) ---- */
.app-banner {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 32px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.app-banner img { width: 100%; display: block; }

.app-detail-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: -44px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.app-detail-head img.app-icon {
  width: 96px; height: 96px; border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 3px solid var(--bg-top);
}
.app-detail-head h1 { margin: 0; font-size: 30px; }
.app-detail-head p { margin: 4px 0 0; color: var(--text-sub); }

.cta-row { text-align: center; margin: 32px 0; }
.cta-row .btn { font-size: 16px; padding: 14px 36px; }
.cta-note { color: var(--text-sub); font-size: 13px; margin-top: 10px; }

/* ---- Screenshot gallery ---- */
.screenshot-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 12px 4px 28px;
  scroll-snap-type: x mandatory;
}
.screenshot-gallery img {
  height: 480px;
  border-radius: 18px;
  border: 6px solid #0d0d1a;
  box-shadow: 0 16px 32px rgba(0,0,0,0.5);
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ---- Feature list ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0 56px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px;
}
.feature-card .emoji-badge {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 12px;
}
.feature-card h4 { margin: 0 0 8px; font-size: 16px; }
.feature-card p { margin: 0; color: var(--text-sub); font-size: 13px; line-height: 1.6; }

/* ---- Legal / policy pages ---- */
.legal-doc {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px;
  margin: 40px 0 60px;
  line-height: 1.9;
}
.legal-doc h1 { font-size: 28px; margin-top: 0; }
.legal-doc h2 { font-size: 20px; color: var(--cyan); margin-top: 36px; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal-doc th, .legal-doc td {
  border: 1px solid var(--card-border);
  padding: 8px 12px;
  text-align: left;
}
.legal-doc th { background: rgba(255,255,255,0.05); }
.legal-doc .disclaimer {
  margin-top: 32px;
  padding: 16px;
  border-left: 3px solid var(--orange);
  background: rgba(255,152,0,0.08);
  font-size: 13px;
  color: var(--text-sub);
}

/* ---- Footer ---- */
footer.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 0;
  text-align: center;
  color: var(--text-sub);
  font-size: 13px;
}
footer.site-footer a { color: var(--text-sub); }
footer.site-footer a:hover { color: var(--cyan); }

@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .app-detail-head { flex-direction: column; text-align: center; margin-top: -32px; }
  .screenshot-gallery img { height: 360px; }
  .legal-doc { padding: 24px; }
}
