/* HugMe(はぐみ記録)Web 共通スタイル。
   配色はアプリのデザインシステム(docs/screens/00_overview.md 2.1)に合わせる。 */

:root {
  --bg-deep: #1a1035;
  --bg-mid: #2a1850;
  --text-primary: #f9e8f0;
  --text-muted: #b0a5d8;
  --text-muted-light: #c9b8f0;
  --accent-pink: #e8a0c0;
  --accent-purple: #7c6fc9;
  --card-bg: rgba(61, 46, 107, 0.5);
  --card-bg-soft: rgba(61, 46, 107, 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  background: linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.9;
  min-height: 100vh;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  position: relative;
  z-index: 1;
}

/* --- 星屑(装飾) --- */

.stars {
  position: fixed;
  inset: 0;
  height: 35vh;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #ffd6f0;
  box-shadow: 0 0 6px 3px rgba(232, 160, 192, 0.4);
  animation: twinkle 3.5s ease-in-out infinite alternate;
}

.star:nth-child(2n) {
  animation-duration: 2.7s;
  animation-delay: 0.8s;
}

.star:nth-child(3n) {
  animation-duration: 4.5s;
  animation-delay: 1.6s;
}

@keyframes twinkle {
  from { opacity: 0.3; }
  to { opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .star { animation: none; opacity: 0.5; }
}

/* --- 見出し・本文 --- */

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.5em 0 0.75em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid rgba(124, 111, 201, 0.4);
}

p, li {
  color: var(--text-primary);
  font-size: 0.95rem;
}

ul, ol {
  padding-left: 1.4em;
  margin: 0.5em 0 1em;
}

li {
  margin-bottom: 0.3em;
}

a {
  color: var(--accent-pink);
  text-decoration-color: rgba(232, 160, 192, 0.5);
}

a:hover {
  text-decoration-color: var(--accent-pink);
}

.muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- ランディング --- */

.hero {
  text-align: center;
  padding: 40px 0 16px;
}

.moon-chip {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(124, 111, 201, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.moon-chip svg {
  width: 44px;
  height: 44px;
}

.hero .app-name {
  font-size: 2.2rem;
  font-weight: 600;
}

.hero .app-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.hero .lead {
  margin: 24px auto 0;
  max-width: 34em;
  color: var(--text-primary);
}

.store-badge {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  border-radius: 14px;
  border: 1.5px solid rgba(232, 160, 192, 0.5);
  background: rgba(232, 160, 192, 0.15);
  color: var(--text-primary);
  font-size: 0.95rem;
  text-decoration: none;
}

.store-badge.coming-soon {
  pointer-events: none;
  color: var(--text-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(124, 111, 201, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.notice {
  margin-top: 48px;
  background: var(--card-bg-soft);
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- ドキュメント(規約・ポリシー) --- */

.doc header {
  margin-bottom: 8px;
}

.doc .updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.doc-important {
  background: rgba(232, 100, 100, 0.12);
  border: 1px solid rgba(240, 144, 144, 0.45);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 1em 0;
}

/* --- フッター --- */

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(124, 111, 201, 0.35);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer nav {
  margin-bottom: 8px;
}

footer nav a {
  margin: 0 10px;
  color: var(--text-muted-light);
}
