/* うちなーぐちドリルの公開ページ共通スタイル。
   アプリ本体（src/theme/palette.ts）と同じ紅型の配色を使う。
   外部リソースを一切読まない。CDN も Web フォントも無し。 */
:root {
  --bg: #fbf4e6;
  --surface: #ffffff;
  --surface-alt: #f3e8d2;
  --border: #e0d2b6;
  --text: #2a1f16;
  --text-sub: #7a6754;
  --text-faint: #a8967f;
  --accent: #d93b2b;
  --sea: #0e8fa8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16110c;
    --surface: #221a13;
    --surface-alt: #2e241a;
    --border: #3d3024;
    --text: #f6ecdc;
    --text-sub: #bca98f;
    --text-faint: #8a7862;
    --accent: #f05b49;
    --sea: #38b8ce;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 5rem; }
header { border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; margin-bottom: 2rem; }
.eyebrow { color: var(--text-faint); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; margin: 0; }
h1 { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.01em; margin: 0.25rem 0 0; }
h2 {
  font-size: 1.0625rem; font-weight: 800; margin: 2.25rem 0 0.25rem;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
}
h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.5rem; }
h3 { font-size: 1rem; font-weight: 800; margin: 1.5rem 0 0.25rem; }
p { margin: 0.5rem 0; }
ul { margin: 0.5rem 0; padding-left: 1.25rem; }
li { margin: 0.25rem 0; }
a { color: var(--accent); }
a:hover { text-decoration: none; }
.sub { color: var(--text-sub); font-size: 0.875rem; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1rem 1.25rem; margin: 1rem 0;
}
.contact { font-size: 1.125rem; font-weight: 800; }
nav.links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
nav.links a {
  display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); text-decoration: none; font-size: 0.875rem; font-weight: 700;
}
nav.links a:hover { border-color: var(--accent); color: var(--accent); }
footer { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 0.8125rem; }

/* ================= LP（index.html）専用 ================= */

/* 帯（フルブリード）と、その中の最大幅コンテナ */
.band { padding: 4.5rem 1.25rem; }
.band--alt { background: var(--surface-alt); }
.band--tight { padding-top: 3rem; padding-bottom: 3rem; }
.inner { max-width: 64rem; margin: 0 auto; }
.inner--narrow { max-width: 46rem; }

/* 上部の細いヘッダー */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .inner { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1.25rem; max-width: 64rem; }
.topbar img { width: 30px; height: 30px; border-radius: 8px; }
.topbar .name { font-weight: 900; font-size: 0.9375rem; white-space: nowrap; }
.topbar nav { margin-left: auto; display: flex; gap: 1rem; }
.topbar nav a { color: var(--text-sub); text-decoration: none; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.topbar nav a:hover { color: var(--accent); }

/* ヒーロー */
.hero { background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.hero .inner { display: grid; gap: 2rem; align-items: center; padding: 3.5rem 1.25rem; }
.kicker {
  display: inline-block; margin: 0; color: var(--accent);
  font-weight: 900; font-size: 0.8125rem; letter-spacing: 0.1em;
}
.hero h1 {
  font-size: clamp(2.25rem, 7vw, 3.75rem); line-height: 1.2;
  letter-spacing: -0.02em; margin: 0.75rem 0 0;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: var(--text-sub); font-size: 1.0625rem; margin-top: 1rem; max-width: 32rem; }
.hero-art img {
  width: 100%; height: auto; display: block;
  border-radius: 20px; border: 1px solid var(--border);
}

.cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1.35rem; border-radius: 999px; font-weight: 800; font-size: 0.9375rem;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-sub);
}
.pill--ghost { background: transparent; }
.pill svg { width: 15px; height: 15px; }
a.pill { text-decoration: none; }
a.pill:hover { border-color: var(--accent); color: var(--accent); }

/* 断言ブロック */
.claim { text-align: center; }
.claim p { font-size: clamp(1.25rem, 3.6vw, 1.875rem); font-weight: 900; line-height: 1.65; margin: 0; }
.claim .mark { color: var(--accent); }
.claim .note { font-size: 1rem; font-weight: 400; color: var(--text-sub); margin-top: 1rem; }

/* 見出し */
.band > .inner > h2 {
  border: 0; padding: 0; margin: 0 0 0.5rem; text-align: center;
  font-size: clamp(1.375rem, 4vw, 2rem); letter-spacing: -0.01em;
}
.band > .inner > .sub-lead {
  color: var(--text-sub); text-align: center; margin: 0 auto 2.25rem; max-width: 36rem;
}

/* 数字の帯 */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; text-align: center; }
.stats .n { font-size: clamp(1.75rem, 6vw, 2.75rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.stats .n span { font-size: 0.5em; margin-left: 0.15em; }
.stats .k { color: var(--text-sub); font-size: 0.8125rem; font-weight: 700; margin-top: 0.25rem; }

/* 例文カード（アプリの見た目に寄せる） */
.examples { display: grid; gap: 1.25rem; }
.ex {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.35rem 1.4rem;
}
.ex .word { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.01em; margin: 0; }
.ex .kana { color: var(--text-faint); font-size: 0.8125rem; margin: 0.1rem 0 0; }
.ex .mean { color: var(--accent); font-weight: 800; font-size: 0.9375rem; margin: 0.6rem 0 0; }
.ex .body { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); line-height: 2; }
.ex .ja { color: var(--text-faint); font-size: 0.8125rem; margin-top: 0.6rem; }

/* 端末スクリーンショット */
.shots { display: flex; gap: 1.25rem; overflow-x: auto; padding: 0.5rem 0 1rem; scroll-snap-type: x mandatory; }
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.shots figure { margin: 0; flex: 0 0 auto; width: 232px; scroll-snap-align: center; }
.shots img {
  width: 100%; height: auto; display: block; border-radius: 22px;
  border: 1px solid var(--border); box-shadow: 0 18px 40px -22px var(--shadow);
}
.shots figcaption { color: var(--text-sub); font-size: 0.8125rem; text-align: center; margin-top: 0.75rem; }

/* 一座 */
.cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 0.75rem; }
.cast figure { margin: 0; text-align: center; }
.cast img { width: 68px; height: 68px; display: block; margin: 0 auto 0.4rem; }
.cast figcaption { font-size: 0.8125rem; font-weight: 800; line-height: 1.4; }
.cast .role { display: block; color: var(--text-faint); font-size: 0.6875rem; font-weight: 400; margin-top: 0.15rem; }

/* 特徴 */
.facts { display: grid; gap: 1rem; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.35rem 1.4rem; }
.fact .ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-alt); color: var(--accent); margin-bottom: 0.75rem;
}
.fact .ico svg { width: 18px; height: 18px; }
.fact h3 { margin: 0 0 0.35rem; font-size: 1.0625rem; }
.fact p { margin: 0; color: var(--text-sub); font-size: 0.9375rem; }

/* フッター */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 1.25rem 4rem; }
.site-footer .inner { display: grid; gap: 1.25rem; }
.site-footer .brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 900; }
.site-footer img { width: 28px; height: 28px; border-radius: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer nav a { color: var(--text-sub); font-size: 0.875rem; font-weight: 700; text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }
.site-footer .fine { color: var(--text-faint); font-size: 0.8125rem; }

@media (min-width: 46rem) {
  .band { padding: 6rem 1.5rem; }
  .hero .inner { grid-template-columns: 1.05fr 1fr; gap: 3rem; padding: 5rem 1.5rem; }
  .hero-art { order: 2; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .examples { grid-template-columns: repeat(3, 1fr); }
  .cast { grid-template-columns: repeat(6, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .site-footer .inner { grid-template-columns: auto 1fr; align-items: center; }
  .site-footer nav { justify-content: flex-end; }
  .site-footer .fine { grid-column: 1 / -1; }
}

/* 狭い画面では、上部バーのページ内リンクを畳む。
   4つ並べると2行に折り返して読めなくなるため */
@media (max-width: 45.99rem) { .topbar nav a.jump { display: none; } }

/* 断言ブロックの改行制御。広い画面では自然に流す */
.only-sp { display: inline; }
@media (min-width: 46rem) { .only-sp { display: none; } }

/* キーボード操作。ふだんは隠れていて、フォーカスしたときだけ出る */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 10px 0; font-weight: 800; text-decoration: none;
}
.skip:focus { left: 0; }
a:focus-visible, .skip:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
