/* deploy/landing/style.css
 * Tailwind CDN 補完用. CDN 提供範囲外のカスタムが必要な箇所のみ.
 * print 用、reveal アニメ、reduced-motion 配慮を含む.
 */

/* ===== Base typography fallback (Tailwind CDN が遅延する場合の保険) ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Noto Sans CJK JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  font-feature-settings: "palt" 1;
  letter-spacing: 0.005em;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== Number emphasis (1.3m / 81区 / 22,791件) ===== */
.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ===== Scroll reveal (JS で .is-visible を付与) ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* スクロールアニメは reduced-motion で無効化 */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Smooth scroll for in-page anchors ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* sticky header 高さ + α */
}

/* ===== Verdict marks (◎ ○ △ ×) ===== */
.verdict-mark {
  display: inline-block;
  min-width: 1.25em;
  text-align: center;
  font-weight: 800;
}

/* ===== Confidence tier swatches (用途: legend, 補助) ===== */
.tier-dot {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  margin-right: 0.4em;
  vertical-align: 0.1em;
}
.tier-dot.verified { background: #0a5d3a; }
.tier-dot.estimated { background: #1d4ed8; }
.tier-dot.low { background: #b45309; }
.tier-dot.insufficient { background: #6b7280; }

/* ===== Focus visible (a11y) ===== */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #0a5d3a;
  outline-offset: 2px;
  border-radius: 6px;
}

/* details/summary marker 抑制 (Safari/Firefox 差異対策) */
summary::-webkit-details-marker {
  display: none;
}
summary {
  list-style: none;
}

/* ===== Print (A4) ===== */
@media print {
  @page {
    size: A4;
    margin: 14mm 12mm;
  }
  header,
  footer,
  #cta-top a,
  #cta-bottom,
  nav,
  [data-cta] {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.55;
  }
  section {
    break-inside: avoid;
    border-top: 1px solid #d1d5db !important;
    background: #fff !important;
    padding: 18pt 0 !important;
  }
  h1,
  h2,
  h3 {
    color: #000 !important;
    break-after: avoid;
  }
  a {
    color: #000 !important;
    text-decoration: underline;
  }
  .max-w-container {
    max-width: 100% !important;
  }
}

/* ===== Small screen polish ===== */
@media (max-width: 640px) {
  h1 {
    letter-spacing: -0.005em;
  }
  section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* ===== Dark mode opt-in (ユーザー指定なし。OS prefer-color-scheme には追随しない) ===== */
/* 本 LP は白ベース固定 (印刷・PDF 出力前提) */
