/* Hakumei LP — 薄明（マジックアワー）基調のダークテーマ。
   外部リソースゼロ（Webフォント・解析・JSなし）＝表示高速・Cookieバナー不要。
   早期審査の証拠を兼ねるため、機能説明テキストの可読性を最優先に保つこと。 */

:root {
  --bg0: #080b15;
  --bg1: #0d1222;
  --card: #111830;
  --line: #232b4a;
  --ink: #eae7dd;
  --muted: #a8a4b4;
  --amber: #dfa267;
  --amber-soft: #e9bd8e;
  --maxw: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg0);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
    "Yu Gothic", "Noto Sans JP", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

/* 薄明グラデーションをビューポートに固定＝スクロールしても地平線の光が画面下に残る
   （iOS Safari は background-attachment:fixed が効かないため fixed 疑似要素方式） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(110% 52% at 50% 104%, rgba(233, 152, 82, 0.26), rgba(233, 152, 82, 0.09) 42%, transparent 72%),
    radial-gradient(70% 34% at 50% 108%, rgba(255, 202, 138, 0.32), transparent 62%),
    linear-gradient(180deg, #05070f 0%, #0a0e1d 45%, #121933 78%, #1c2340 100%);
}

.serif,
h1, h2, h3 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho",
    "Noto Serif JP", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.04em;
}

a { color: var(--amber-soft); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ───────── ナビ ───────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 11, 21, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(35, 43, 74, 0.6);
}
.nav .wrap {
  display: flex; align-items: baseline; gap: 26px;
  padding-top: 14px; padding-bottom: 14px;
}
.nav .brand {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  font-size: 18px; letter-spacing: 0.1em; color: var(--ink);
}
.nav .brand:hover { text-decoration: none; }
.nav ul { display: flex; gap: 22px; list-style: none; margin-left: auto; align-items: baseline; }
.nav ul a { color: var(--muted); font-size: 13.5px; }
.nav ul a:hover { color: var(--ink); text-decoration: none; }
.nav .lang {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 12px; font-size: 12px; letter-spacing: 0.08em;
  color: var(--amber-soft);
}

/* ───────── ヒーロー ───────── */
.hero {
  position: relative;
  text-align: center;
  padding: 108px 24px 132px;
  /* 背景は body::before の固定グラデーションに任せる */
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; left: 12%; right: 12%; bottom: 68px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 170, 105, 0.75), transparent);
}
.hero .kanji {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 15px; letter-spacing: 1.2em; text-indent: 1.2em;
  color: var(--amber-soft); opacity: 0.9; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(56px, 11vw, 104px);
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow: 0 0 48px rgba(233, 170, 105, 0.22);
}
.hero h1 .tm { font-size: 0.22em; vertical-align: super; letter-spacing: 0; color: var(--muted); }
.hero .yomi { color: var(--muted); font-size: 13px; letter-spacing: 0.5em; text-indent: 0.5em; margin-top: 10px; }
.hero .tagline {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(20px, 3.4vw, 27px);
  line-height: 2.0; letter-spacing: 0.12em;
  margin-top: 44px;
}
.hero .sub { color: var(--muted); margin-top: 18px; font-size: 15px; }
.badges { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badges span {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: 12.5px; letter-spacing: 0.08em;
  background: rgba(17, 24, 48, 0.5);
}
.badges .hot { color: var(--amber-soft); border-color: rgba(223, 162, 103, 0.45); }

/* ───────── セクション共通 ───────── */
section { padding: 84px 0; }
section.alt { background: rgba(13, 18, 34, 0.42); border-top: 1px solid rgba(35, 43, 74, 0.5); border-bottom: 1px solid rgba(35, 43, 74, 0.5); }
h2 {
  font-size: 26px; letter-spacing: 0.14em;
  margin-bottom: 14px; color: var(--ink);
}
h2::before { content: "— "; color: var(--amber); }
.lead { color: var(--muted); margin-bottom: 44px; font-size: 15px; }

/* 名前の由来 */
.naming p { max-width: 40em; margin: 0 0 1.4em; }
.naming .en {
  color: var(--muted); font-style: italic; font-size: 14.5px;
  font-family: Georgia, "Times New Roman", serif;
  border-left: 2px solid rgba(223, 162, 103, 0.5); padding-left: 16px;
}

/* 機能カード */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 26px 24px;
}
.feature .tag {
  display: inline-block; font-size: 11.5px; letter-spacing: 0.28em; text-indent: 0.28em;
  color: var(--amber); border: 1px solid rgba(223, 162, 103, 0.35);
  border-radius: 999px; padding: 3px 12px; margin-bottom: 14px;
}
.feature h3 { font-size: 18.5px; margin-bottom: 10px; letter-spacing: 0.06em; }
.feature p { font-size: 14.5px; color: #c9c5d2; line-height: 2.0; }
.feature p a { color: var(--amber-soft); }
.note {
  margin-top: 30px; font-size: 13px; color: var(--muted);
  border-left: 2px solid rgba(223, 162, 103, 0.4); padding-left: 16px;
  max-width: 44em;
}

/* スクリーンショット */
.shots figure { margin: 0 0 58px; }
.shots img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 120px rgba(233, 152, 82, 0.05);
}
.shots figcaption { color: var(--muted); font-size: 13.5px; margin-top: 14px; text-align: center; letter-spacing: 0.04em; }

/* 動作環境・入手 */
.env p, .get p { max-width: 40em; }
.get .cta {
  margin-top: 26px; display: inline-block;
  border: 1px solid rgba(223, 162, 103, 0.5); border-radius: 10px;
  padding: 14px 26px; color: var(--amber-soft); letter-spacing: 0.14em;
  font-size: 14.5px; background: rgba(223, 162, 103, 0.06);
}

/* ───────── フッター ───────── */
footer {
  border-top: 1px solid rgba(35, 43, 74, 0.6);
  padding: 52px 0 64px;
  font-size: 13px; color: var(--muted);
}
footer .desc { max-width: 44em; margin-bottom: 18px; }
footer nav { margin-bottom: 18px; display: flex; gap: 20px; flex-wrap: wrap; }
footer .fine { font-size: 12px; line-height: 2.0; }
footer .fine p { margin-bottom: 4px; }

/* ───────── 下層ページ（運営者情報・bot） ───────── */
.page { padding: 72px 0 96px; min-height: 60vh; }
.page h1 { font-size: 30px; letter-spacing: 0.12em; margin-bottom: 10px; }
.page h1::before { content: "— "; color: var(--amber); }
.page .lead { margin-bottom: 40px; }
.page h2 { font-size: 20px; margin: 44px 0 12px; }
.page h2::before { content: ""; }
.page p, .page li { max-width: 44em; }
.page ul { padding-left: 1.4em; margin-bottom: 1.2em; }

table.info { border-collapse: collapse; margin: 8px 0 28px; width: 100%; max-width: 640px; }
table.info th, table.info td {
  text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 13px 16px 13px 0; font-weight: normal;
}
table.info th { color: var(--muted); white-space: nowrap; width: 9em; font-size: 14px; }
table.info td { font-size: 15.5px; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 64px 0; }
.center { text-align: center; }
.center h1::before { content: ""; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em; background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 7px;
}

@media (max-width: 640px) {
  .nav ul { gap: 14px; }
  section { padding: 64px 0; }
  .hero { padding: 84px 20px 108px; }
  .hero .tagline br { display: none; }  /* 狭幅では自然改行に任せる */
}
