/* app-template の最小スタイル。サービスごとに自由に書き換える。 */

:root {
  --theme: #e0a23c;
  /* 砂・黄金色のグラデーション（上→下）。背景色は site.config.json の backgroundColor とも揃える。 */
  --bg-top: #f5c96b;
  --bg-bottom: #c9822b;
  --fg: #3b2108;
  --accent: #8a5a1b;
}

* { box-sizing: border-box; }

/* ===== アクセシビリティ（全アプリ共通の土台） ===== */

/* 視覚的には隠すがスクリーンリーダーには読まれる（aria-live リージョン・SEO見出し用） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* スキップリンク類: 通常は隠し、キーボードのTabでフォーカスされたときだけ画面左上に出現する */
.a11y-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  width: 1px;
  height: 1px;
  overflow: hidden;
  cursor: pointer;
}
.a11y-skip:focus {
  left: 8px;
  top: 8px;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #00323a;
  color: #7df9ff;
  font-size: 14px;
  font-weight: 800;
  white-space: normal;
  box-shadow: 0 0 0 2px #7df9ff, 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* キーボード操作時のフォーカスを必ず見えるようにする（マウス時は出さない） */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* 動きを減らす設定の利用者には、アニメーション・トランジションを抑える */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html, body {
  margin: 0;
  padding: 0;
}

/* 砂・黄金色のグラデーション背景に、中央寄せのシンプルな表示。 */
body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(var(--bg-top), var(--bg-bottom));
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.app {
  padding: 1.25rem;
}

.app-title {
  font-size: 56px;
  margin: 0;
  line-height: 1.1;
}

.app-desc,
.app-stat {
  font-size: 20px;
}

/* バージョン番号（ビルドID）。右下にこっそり。控えめな薄い文字色。 */
.version {
  position: fixed;
  right: 10px;
  bottom: 8px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}
