/* ======================================================
   TSUKIMI STYLE - Lunar Glass Theme (Night Sky)
   - Dark / Glassmorphism / Soft Glow / Starfield
   - Distinct from clay-morphism warm earth tones
   - No divider lines; clean cards with glow
====================================================== */

/* ---------- Color & scale system ---------- */
:root {
  --bg: #0b1020; /* deep night */
  --bg-alt: #101733; /* card base */
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.09);
  --txt: #eef2ff; /* near-white */
  --txt-dim: #c7d2fe;
  --accent: #98b9ff; /* moonlight blue */
  --accent-2: #ffd09e; /* warm moon rim */
  --muted: #c7d2fe;

  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 26px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(152, 185, 255, 0.25);

  --blur: 12px;

  --space-1: 8px;
  --space-2: 14px;
  --space-3: 20px;
  --space-4: 28px;
  --space-5: 40px;

  --speed-fast: 160ms;
  --speed: 260ms;
  --speed-slow: 520ms;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter,
    "SF Pro Text", "Hiragino Kaku Gothic ProN", "游ゴシック体", "Yu Gothic",
    Meiryo, sans-serif;
  color: var(--txt);
  line-height: 1.75;
  background: radial-gradient(
      1000px 600px at 10% -10%,
      #1a2452 0%,
      transparent 60%
    ),
    radial-gradient(1000px 600px at 110% 10%, #16224a 0%, transparent 60%),
    linear-gradient(180deg, #0a0f20 0%, #080b16 100%);
  min-height: 100vh;
  padding: var(--space-3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle starfield noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
      1px 1px at 20% 30%,
      rgba(255, 255, 255, 0.35) 0,
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 70% 20%,
      rgba(255, 255, 255, 0.25) 0,
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 40% 80%,
      rgba(255, 255, 255, 0.25) 0,
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 85% 65%,
      rgba(255, 255, 255, 0.25) 0,
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 10% 75%,
      rgba(255, 255, 255, 0.2) 0,
      transparent 60%
    );
  mix-blend-mode: screen;
  opacity: 0.35;
}

/* ---------- Reveal animation hooks ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--speed-slow) ease, transform var(--speed-slow) ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Shell ---------- */
.container {
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  overflow: clip;
}

/* ---------- Header: lunar hero ---------- */
.header {
  position: relative;
  padding: clamp(48px, 8vw, 84px) clamp(26px, 4vw, 46px);
  text-align: center;
  background: radial-gradient(
      600px 220px at 50% 0%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 70%
    ),
    linear-gradient(
      180deg,
      rgba(46, 76, 138, 0.25) 0%,
      rgba(18, 26, 56, 0.4) 100%
    );
}

/* Moon motif */
.header::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 8%;
  width: clamp(80px, 12vw, 140px);
  height: clamp(80px, 12vw, 140px);
  border-radius: 50%;
  background: radial-gradient(
      circle at 35% 35%,
      var(--accent) 0%,
      #d7e4ff 45%,
      #9bb7ff 60%,
      rgba(152, 185, 255, 0.1) 75%,
      transparent 76%
    ),
    radial-gradient(
      circle at 65% 65%,
      rgba(255, 208, 158, 0.35),
      transparent 60%
    );
  box-shadow: 0 0 50px rgba(152, 185, 255, 0.25),
    0 0 120px rgba(255, 208, 158, 0.18);
  opacity: 0.9;
  filter: saturate(1.1);
}

/* Subtle moving aurora */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    70% 40% at 50% 100%,
    rgba(152, 185, 255, 0.12),
    transparent 70%
  );
  animation: aurora 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  from {
    transform: translateY(0px) scale(1);
    opacity: 0.5;
  }
  to {
    transform: translateY(-10px) scale(1.02);
    opacity: 0.75;
  }
}

.app-title,
.policy-title {
  font-weight: 650;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 5.6vw, 3.2rem);
  text-shadow: 0 6px 24px rgba(152, 185, 255, 0.25);
}

.app-subtitle {
  margin-top: 10px;
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  color: var(--txt-dim);
  opacity: 0.95;
}

/* ---------- Content ---------- */
.content {
  padding: clamp(22px, 4vw, 44px);
  display: grid;
  gap: var(--space-4);
}

/* ---------- Sections ---------- */
.section {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3.2vw, 28px);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-soft);
  transition: transform var(--speed), box-shadow var(--speed),
    background var(--speed);
}
.section:hover {
  transform: translateY(-2px);
  background: var(--glass-strong);
  box-shadow: var(--shadow-soft), 0 0 44px rgba(152, 185, 255, 0.12);
}

.section-title {
  font-size: clamp(1.2rem, 3.8vw, 1.7rem);
  font-weight: 600;
  margin-bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Lunar underline glow */
.section-title::after {
  content: "";
  height: 3px;
  width: 64px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 999px;
  display: block;
  position: absolute;
  left: 0;
  bottom: -10px;
  box-shadow: 0 0 16px rgba(152, 185, 255, 0.5);
}

/* ---------- App info card ---------- */
.app-info {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3.2vw, 28px);
}

.description-content {
  margin-top: var(--space-2);
}
.description-content p {
  color: var(--txt-dim);
  margin-bottom: 1em;
  font-size: 1.04rem;
}

/* ---------- Feature list ---------- */
.features-list {
  list-style: none;
  margin-top: var(--space-3);
  display: grid;
  gap: var(--space-2);
}

.features-list li {
  position: relative;
  padding: 14px 16px 14px 46px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  transition: transform var(--speed-fast) ease,
    background var(--speed-fast) ease, border-color var(--speed-fast) ease;
  backdrop-filter: blur(6px);
}
.features-list li:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(152, 185, 255, 0.25);
  color: var(--txt);
}
.features-list li::before {
  content: "●";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(152, 185, 255, 0.9);
}

/* ---------- Company / contact ---------- */
.company-info,
.contact-info {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3.2vw, 28px);
}

.company-info h3,
.contact-info h3 {
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--txt);
}

.company-details {
  color: var(--txt-dim);
  line-height: 1.9;
}
.company-details p {
  margin: 8px 0;
}
.company-details p strong {
  color: var(--txt);
  font-weight: 600;
}

/* ---------- A11y & motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  body {
    padding: var(--space-2);
  }
  .container {
    border-radius: var(--radius-md);
  }
  .section {
    padding: 18px;
  }
  .features-list {
    gap: 10px;
  }
  .features-list li {
    padding-left: 40px;
  }
}
@media (max-width: 480px) {
  .features-list li {
    padding: 12px 12px 12px 36px;
  }
}

/* ---------- Optional helper (date info if used) ---------- */
.date-info {
  margin-top: var(--space-4);
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

/* ======================================================
   Policy Content Enhancements (append to tsukimi-style.css)
   - List / Paragraph / Headings / Links / Print
====================================================== */

/* 見出し（h3.section-titleのサブ階層にも統一感） */
.section .section-title {
  margin-bottom: 16px;
}
.section .section-title + .section-content {
  margin-top: 6px;
}

/* 本文: 文字間・行間をやや落ち着かせる */
.section-content {
  color: var(--txt-dim);
  font-size: 1.02rem;
  line-height: 1.9;
}
.section-content p + p {
  margin-top: 0.8em;
}

/* 箇条書き（ul）: 月見テーマの丸アイコン + ネスト対応 */
.section-content ul {
  list-style: none; /* デフォを消す（WordPress貼付時の謎の線も出にくく） */
  margin: 0.6em 0 0;
  padding-left: 0;
  display: grid;
  gap: 10px;
}
.section-content ul li {
  position: relative;
  padding: 10px 12px 10px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--speed-fast), border-color var(--speed-fast),
    transform var(--speed-fast);
}
.section-content ul li::before {
  content: "●"; /* 軽い月光粒っぽい丸 */
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(152, 185, 255, 0.85);
}
.section-content ul li:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(152, 185, 255, 0.25);
  color: var(--txt);
}

/* ネストしたul（第二階層以降） */
.section-content ul ul {
  margin-top: 8px;
  padding-left: 26px;
  gap: 8px;
}
.section-content ul ul li {
  padding: 8px 10px 8px 32px;
  background: rgba(255, 255, 255, 0.03);
}
.section-content ul ul li::before {
  content: "○";
  left: 10px;
  font-size: 9px;
  color: var(--accent-2);
}

/* 番号付き（ol）: CSSカウンタで 1) 2) 表記 */
.section-content ol {
  counter-reset: moon-ol;
  margin: 0.6em 0 0;
  padding-left: 0;
  display: grid;
  gap: 10px;
}
.section-content ol li {
  counter-increment: moon-ol;
  position: relative;
  padding: 10px 12px 10px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--speed-fast), border-color var(--speed-fast),
    transform var(--speed-fast);
}
.section-content ol li::before {
  content: counter(moon-ol) ")"; /* 1) 2) */
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 16px;
  text-align: right;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.section-content ol li:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(152, 185, 255, 0.25);
  color: var(--txt);
}

/* リンク（規約内参照・外部ポリシーリンク想定） */
.section-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(152, 185, 255, 0.5);
  transition: color var(--speed-fast), border-color var(--speed-fast);
}
.section-content a:hover {
  color: #d9e6ff;
  border-bottom-color: rgba(152, 185, 255, 0.9);
}
.section-content a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-bottom-color: transparent;
}

/* 定義リスト（必要なら） */
.section-content dl {
  display: grid;
  grid-template-columns: minmax(110px, 220px) 1fr;
  gap: 8px 16px;
  margin-top: 0.6em;
}
.section-content dt {
  color: var(--txt);
  font-weight: 600;
}
.section-content dd {
  color: var(--txt-dim);
}

/* contact-info の中の連絡先も整える */
.contact-info p {
  color: var(--txt-dim);
  line-height: 1.9;
}
.contact-info strong {
  color: var(--txt);
}

/* 日付欄をより控えめに */
.date-info {
  font-size: 0.95rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

/* 印刷用（審査提出・PDF保存想定） */
@media print {
  body {
    background: #fff;
    color: #111;
    padding: 0;
  }
  .container,
  .section,
  .app-info,
  .company-info,
  .contact-info,
  .date-info {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .section-title::after {
    background: #111 !important;
    box-shadow: none !important;
  }
  .section-content a {
    color: #0645ad !important;
    border-bottom: 1px solid #0645ad !important;
  }
  .header::before,
  .header::after,
  body::before {
    content: none !important;
  }
}
