/* ===== リセット & ベース ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #1a1a2e;
  --bg2: #16213e;
  --purple: #7b6cbf;
  --purple-light: #a89dd4;
  --pink: #f4c2c2;
  --blue: #b8c5e8;
  --white: #f0eeff;
  --card-bg: rgba(255, 255, 255, 0.07);
  --card-border: rgba(168, 157, 212, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.8;
  position: relative;
  overflow-x: hidden;
}

/* ===== 星のアニメーション ===== */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.stars span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: white;
  opacity: 0;
  animation: twinkle 4s infinite;
}

.stars span:nth-child(1)  { width: 3px; height: 3px; top: 10%; left: 15%; animation-delay: 0s; }
.stars span:nth-child(2)  { width: 2px; height: 2px; top: 20%; left: 75%; animation-delay: 0.8s; }
.stars span:nth-child(3)  { width: 4px; height: 4px; top: 35%; left: 40%; animation-delay: 1.5s; }
.stars span:nth-child(4)  { width: 2px; height: 2px; top: 55%; left: 85%; animation-delay: 2.2s; }
.stars span:nth-child(5)  { width: 3px; height: 3px; top: 70%; left: 25%; animation-delay: 0.4s; }
.stars span:nth-child(6)  { width: 2px; height: 2px; top: 80%; left: 60%; animation-delay: 1.1s; }
.stars span:nth-child(7)  { width: 3px; height: 3px; top: 15%; left: 55%; animation-delay: 2.8s; }
.stars span:nth-child(8)  { width: 2px; height: 2px; top: 45%; left: 10%; animation-delay: 1.8s; }
.stars span:nth-child(9)  { width: 4px; height: 4px; top: 60%; left: 45%; animation-delay: 0.6s; }
.stars span:nth-child(10) { width: 2px; height: 2px; top: 90%; left: 80%; animation-delay: 3.2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50%       { opacity: 0.9; transform: scale(1.2); }
}

/* ===== ヘッダー / ナビ ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--pink);
  letter-spacing: 0.05em;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul a {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

nav ul a:hover,
nav ul a.active {
  color: var(--pink);
}

/* ===== メインコンテンツ ===== */
main {
  position: relative;
  z-index: 1;
}

/* ===== ヒーローセクション ===== */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(123, 108, 191, 0.25) 0%, transparent 70%);
}

.hero-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 30px;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(168, 157, 212, 0.4),
    0 0 80px rgba(168, 157, 212, 0.15);
  animation: float 4s ease-in-out infinite;
}

.hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: bold;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(168, 157, 212, 0.6);
}

.tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--blue);
  margin-bottom: 2.5rem;
  line-height: 2;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  background: linear-gradient(135deg, var(--purple), #5a4fa0);
  color: white;
  border: 1px solid var(--purple-light);
  box-shadow: 0 4px 20px rgba(123, 108, 191, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 108, 191, 0.5);
}

.btn-store {
  background: linear-gradient(135deg, #34a853, #1a7a35);
  border-color: #5cbf79;
  box-shadow: 0 4px 20px rgba(52, 168, 83, 0.35);
  margin-top: 1.5rem;
}

.btn-store:hover {
  box-shadow: 0 8px 30px rgba(52, 168, 83, 0.5);
}

/* ===== アプリセクション ===== */
.app-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h2 {
  font-size: 1.4rem;
  color: var(--pink);
  margin-bottom: 1rem;
}

.card p {
  color: var(--blue);
  font-size: 0.95rem;
  line-height: 1.9;
}

.features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0 0.5rem;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--purple-light);
}

.feature-icon {
  font-size: 1.8rem;
}

/* ===== お問い合わせセクション ===== */
.contact-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
  text-align: center;
}

.contact-section h2 {
  font-size: 1.3rem;
  color: var(--pink);
  margin-bottom: 0.8rem;
}

.contact-section p {
  color: var(--blue);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.contact-link {
  color: var(--purple-light);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px dotted var(--purple-light);
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--pink);
}

/* ===== ポリシーページ ===== */
.policy-section {
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.policy-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem 2.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.policy-card h1 {
  font-size: 1.8rem;
  color: var(--pink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.policy-card .updated {
  font-size: 0.8rem;
  color: var(--purple-light);
  margin-bottom: 2rem;
}

.policy-card h2 {
  font-size: 1.1rem;
  color: var(--blue);
  margin: 2rem 0 0.6rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--purple);
}

.policy-card p {
  font-size: 0.92rem;
  color: rgba(240, 238, 255, 0.85);
  margin-bottom: 0.5rem;
}

.policy-card ul {
  list-style: none;
  margin: 0.5rem 0;
  padding-left: 0.5rem;
}

.policy-card ul li {
  font-size: 0.92rem;
  color: rgba(240, 238, 255, 0.85);
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}

.policy-card ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-size: 0.7rem;
  top: 0.45rem;
}

/* ===== フッター ===== */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--card-border);
  color: var(--purple-light);
  font-size: 0.85rem;
}

.footer-nav {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.footer-nav a {
  color: var(--purple-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--pink);
}

.footer-nav span {
  color: var(--card-border);
}

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
  nav ul {
    gap: 1rem;
    font-size: 0.82rem;
  }

  .policy-card {
    padding: 1.8rem 1.2rem;
  }

  .features {
    gap: 1.2rem;
  }
}
