/* 麻雀計算機 ランディングページ。
   privacy / terms は style.css を使っているので、こちらは触らないこと。
   配色はアプリ本体から: 卓のフェルト #0E4218 / #164800、アイコンの黄緑 #8FC320 */

:root {
  --felt: #0e4218;
  --felt-deep: #06210b;
  --brand: #8fc320;
  --table: #00a523;
  --ink: #16201a;
  --paper: #fbfdf9;
  --muted: #5c6b60;
  --line: #e2e8e3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

/* ---------- ヒーロー ---------- */

.hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(143, 195, 32, 0.18), transparent 55%),
    linear-gradient(160deg, var(--felt) 0%, var(--felt-deep) 100%);
  color: var(--paper);
  padding: 72px 24px 88px;
}

.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(0, 300px);
  gap: 56px;
  align-items: center;
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 17px;
  margin-bottom: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}

.lead {
  font-size: 17px;
  color: rgba(251, 253, 249, 0.82);
  margin: 0 0 32px;
}

.note {
  font-size: 13px;
  color: rgba(251, 253, 249, 0.6);
  margin: 16px 0 0;
}

.hero-video video {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ---------- ストアボタン ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 190px;
  padding: 12px 26px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.store:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34); }
.store-sub { font-size: 11px; color: var(--muted); line-height: 1.3; }
.store-main { font-size: 19px; font-weight: 700; line-height: 1.3; }

/* ---------- 機能セクション ---------- */

main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.feature {
  display: grid;
  grid-template-columns: 1fr minmax(0, 300px);
  gap: 56px;
  align-items: center;
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

/* 左右を入れ替える。画像は DOM 順のまま grid で位置だけ動かす */
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-shot { order: 1; }

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #3f7a1c;
  background: rgba(143, 195, 32, 0.16);
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 0 16px;
}

.feature h2 {
  font-size: clamp(23px, 3.4vw, 31px);
  line-height: 1.45;
  font-weight: 800;
  margin: 0 0 16px;
}

.feature p { margin: 0 0 18px; color: #33403a; }

.feature ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 15px; }
.feature li { margin-bottom: 6px; }

/* 画像はベゼルの内側 (画面だけ) を切り出してある。
   端末の枠は CSS 側で作るので、角丸と縁取りはここで付ける */
.feature-shot img {
  width: 100%;
  border-radius: 34px;
  border: 8px solid #141815;
  box-shadow: 0 18px 44px rgba(20, 40, 25, 0.26);
}

/* ---------- 締め ---------- */

.cta { text-align: center; padding: 84px 0 96px; }

.cta h2 {
  font-size: clamp(23px, 3.6vw, 32px);
  font-weight: 800;
  margin: 0 0 30px;
}

.cta .stores { justify-content: center; }

.cta .store {
  background: var(--felt);
  color: var(--paper);
  box-shadow: 0 8px 22px rgba(14, 66, 24, 0.28);
}

.cta .store-sub { color: rgba(251, 253, 249, 0.66); }

/* ---------- フッター ---------- */

.site-footer {
  background: var(--felt-deep);
  color: rgba(251, 253, 249, 0.72);
  padding: 44px 24px 36px;
  font-size: 14px;
}

.site-footer h3 {
  max-width: 1040px;
  margin: 0 auto 12px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(251, 253, 249, 0.9);
}

.legal {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand); text-decoration: none; }
.legal a:hover { text-decoration: underline; }

.copyright {
  max-width: 1040px;
  margin: 28px auto 0;
  font-size: 12px;
  color: rgba(251, 253, 249, 0.45);
}

/* ---------- 縦画面 ---------- */

@media (max-width: 820px) {
  .hero { padding: 52px 20px 60px; }
  .hero-inner, .feature { grid-template-columns: 1fr; gap: 36px; }

  /* 狭い画面では上下が入れ替わると読み順が崩れるので、常に文章 → 画像に戻す */
  .feature.reverse .feature-text,
  .feature.reverse .feature-shot { order: 0; }

  .hero-video, .feature-shot { max-width: 280px; margin: 0 auto; }
  .feature { padding: 56px 0; }
  .store { flex: 1 1 auto; min-width: 0; }
}
