/* KOUAN 公式サイト 共通スタイル
   アプリ本体（kouan-premium-mobile）のダークUIに合わせた配色。
   bg #0a0a0a / card #1a1a1a / accent #dc2626 */

:root {
  --bg: #0a0a0a;
  --bg2: #1a1a1a;
  --ink: #ffffff;
  --sub: rgba(255, 255, 255, 0.72);
  --mute: rgba(255, 255, 255, 0.5);
  --hair: rgba(255, 255, 255, 0.12);
  --accent: #dc2626;
  --max: 760px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
  line-height: 1.8;
  font-size: 15px;
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
}

/* ---------- ヒーロー（トップページ） ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 40px 20px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  /* 画像未設置でも成立するフォールバック。assets/img/hero.webp を置けば差し替わる */
  background: radial-gradient(120% 80% at 50% 0%, #2a0d0d 0%, #0a0a0a 60%);
  background-size: cover;
  background-position: center;
}

/* アプリ起動画面（BrandSplash.tsx）と同じ絵。
   画像・スクリムの不透明度・位置をアプリ側の LinearGradient と一致させている:
   rgba(10,10,10) を 0.86 / 0.72 / 0.92 / 0.99、位置 0 / 30% / 70% / 100%。
   ⚠ アプリ側の HERO を差し替えたらこの画像も入れ替えること（assets/hero/fire_06.webp）。 */
.hero.has-image {
  background-image: linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.86) 0%,
      rgba(10, 10, 10, 0.72) 30%,
      rgba(10, 10, 10, 0.92) 70%,
      rgba(10, 10, 10, 0.99) 100%
    ),
    url("../img/hero.webp");
  /* 縦長の画像を横長のPC幅で切ると人物が外れるため、上寄りで固定する */
  background-position: center top;
}

.hero__inner {
  width: 100%;
  max-width: 480px;
}

/* アプリ起動画面と同じ赤（ACCENT = #dc2626）。
   字間もアプリに合わせている（fontSize 46 / letterSpacing 5 ≒ 0.11em）。 */
.hero__logo {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.11em;
  /* letter-spacing は最後の字の右にも入るため、その分だけ左に戻して光学的に中央へ */
  text-indent: 0.11em;
  color: var(--accent);
  margin: 0 0 10px;
}

.hero__tagline {
  color: var(--sub);
  font-size: 14px;
  margin: 0 0 28px;
}

/* ---------- 公開前の案内 ----------
   公式ストアバッジとは意図的に似せていない。角丸の白いピル型に
   ロゴ＋2段組みテキストを載せると Apple / Google のバッジの模倣になるため、
   ここでは枠線ベースのステータス表示にしている。
   公開後は公式アートワークを <img> で配置すること（index.html のコメント参照）。 */
.prelaunch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.prelaunch__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.prelaunch__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0483c;
}

.prelaunch__note {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
}

/* ---------- ストアバッジ ----------
   ⚠️ 公式アートワークなので、色・比率・文字を変更しないこと。
      指定してよいのは表示サイズだけ。

   高さの決め方:
     Apple のSVGは余白なし（108.85 x 40）なので、指定した高さ＝バッジの高さ。
     Google のPNGは 646x250 のうち上下29pxが透明余白で、実体は 76.8%。
     そのため同じ見た目の高さに揃えるには 44 / 0.768 ≒ 57px を指定する。
     ここを揃えないと Google 側だけ小さく見える。

   余白: バッジ高さ44pxに対しガイドラインの要求は 1/4 = 11px。
        gap: 18px と padding で確保している。 */
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 0;
}

/* バッジを囲むリンク。inline のままだと行の下に余白が入り、
   ガイドラインで決まっている周囲の余白が狂うので block にする。 */
.badge-link {
  display: block;
  line-height: 0;
  border-radius: 8px;
}

.badge-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.badge {
  display: block;
  width: auto;
}

.badge--apple {
  height: 44px;
}

.badge--google {
  height: 57px;
}

/* ---------- 子ページ ---------- */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px 24px;
}

.page__back {
  display: inline-block;
  color: var(--mute);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 20px;
}

.page__back:hover {
  color: var(--ink);
}

h1 {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 0 0 8px;
}

.page__updated {
  color: var(--mute);
  font-size: 12px;
  margin: 0 0 36px;
}

h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 40px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}

h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 24px 0 8px;
}

p,
li {
  color: var(--sub);
  font-size: 14.5px;
}

ol,
ul {
  padding-left: 1.4em;
}

li {
  margin-bottom: 6px;
}

.note {
  background: var(--bg2);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 24px 0;
}

.note p:last-child {
  margin-bottom: 0;
}

/* 定義リスト風テーブル（特商法表記など） */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.table th,
.table td {
  border: 1px solid var(--hair);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: var(--bg2);
  color: var(--ink);
  font-weight: 700;
  width: 34%;
  white-space: nowrap;
}

.table td {
  color: var(--sub);
}

@media (max-width: 520px) {
  .table th,
  .table td {
    display: block;
    width: 100%;
    border-bottom: none;
  }
  .table tr:last-child td {
    border-bottom: 1px solid var(--hair);
  }
}

/* ---------- フッター ---------- */
.footer {
  border-top: 1px solid var(--hair);
  margin-top: 56px;
  padding: 28px 20px calc(32px + env(safe-area-inset-bottom));
  text-align: center;
}

.footer--hero {
  border-top: none;
  margin-top: 36px;
  padding-bottom: 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.footer__links a {
  color: var(--mute);
  text-decoration: none;
  font-size: 12.5px;
}

.footer__links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer__copy {
  color: var(--mute);
  font-size: 11.5px;
  margin: 0;
}
