/* 両生類手帳 LP（2026-08-20・作り直し2回目）
 *
 * # 1回目を捨てた理由
 *
 * アプリの画面をそのまま並べただけで、**Web としての顔が無かった**
 * （オーナー評: 地味・印象に残らない・アプリと同じすぎる・写真がもったいない・
 * 情報の並びが悪い）。同じ轍を踏まないよう、次を守る。
 *
 * 1. **写真が主役。** 幕開けは写真だけの1画面。アプリの画面は「証拠」として
 *    後から小さく出す。生き物の美しさで引き、道具の確かさで納得させる順番
 * 2. **見出しは明朝（Zen Old Mincho）。** アプリはゴシックで統一している
 *    （画面の文字は迷いなく読めることが第一）。Web は読み物なので、
 *    書体を分けて別の顔にする。**アプリの DESIGN.md に違反しない** ——
 *    §5 が縛るのはアプリ内のタイポグラフィで、ここは対外の面
 * 3. **色は DESIGN.md のまま。** 金 #C1AB4F と黒 #050604 は動かさない。
 *    ここを変えると「別のもの」になる
 * 4. **章立てにする。** 01/02/03 と番号を振り、写真とアプリ画面を交互に。
 *    平坦に並べない
 */

:root {
  /* DESIGN.md §5（アプリと同じ値。ここで新しい色を作らない） */
  --peat: #050604;
  --reed: #C1AB4F;
  --reed-deep: #8f7c2e;   /* 白地に載せる金（R-U3: 金の文字は読ませない） */
  --ink: #20231E;
  --muted: #666E67;
  --paper: #FBFAF7;       /* 白より少し温かい地。写真の緑と喧嘩しない */
  --surface: #F1F0EA;
  --white: #FFFFFF;

  --serif: 'Zen Old Mincho', serif;
  --sans: 'Zen Kaku Gothic New', system-ui, sans-serif;

  --page: 1200px;
  --gut: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* 横にはみ出させない（社内ルール） */
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 16px; z-index: 100;
  padding: 12px 16px; background: var(--reed); color: var(--peat); border-radius: 8px;
}

/* 小見出し。**字間を広げてよいのはこの役割だけ**（DESIGN.md §5） */
.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--reed-deep);
}
.eyebrow--light { color: var(--reed); }

/* ロゴ（単色素材をマスクで塗る。`filter` では狙った色にならない） */
.brand-mark {
  display: block;
  width: 112px;
  height: 28px;
  background-color: currentColor;
  -webkit-mask: url(assets/brand/lockup-ja.png) center / contain no-repeat;
  mask: url(assets/brand/lockup-ja.png) center / contain no-repeat;
}

/* ── ヘッダー ─────────────────────────────────────────────── */

.masthead {
  /* **写真の上でだけ透明**。地の上では `.is-solid` が付く（main.js）。
     JS が落ちても読める色にしておく（既定を白文字にしない）。 */
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gut);
  color: var(--ink);
  transition: background .4s ease, color .4s ease, padding .4s ease;
}
.masthead.is-solid {
  padding: 12px var(--gut);
  background: rgba(251, 250, 247, .92);
  box-shadow: 0 1px 0 rgba(32, 35, 30, .06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--ink);
}
/* 幕開けの写真の上にいるあいだだけ白。 */
.masthead.is-over { color: var(--white); }
.masthead__logo { display: inline-flex; }

.masthead__cta {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--reed);
  color: var(--peat);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s ease;
}
.masthead__cta:hover { transform: translateY(-2px); }

/* ── 幕開け ───────────────────────────────────────────────── */

.opening {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: var(--gut);
  color: var(--white);
  overflow: hidden;
}

.opening__media { position: absolute; inset: 0; }
.opening__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
  /* ゆっくり寄る。**transform だけ**（社内ルール: layout は動かさない） */
  animation: slow-zoom 24s ease-out forwards;
}
/* 文字を読ませるための覆い。下だけ濃く、写真の上半分は素のまま見せる。 */
.opening__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(5,6,4,.88) 0%, rgba(5,6,4,.55) 32%, rgba(5,6,4,.08) 62%, rgba(5,6,4,.35) 100%);
}

@keyframes slow-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .opening__media img { animation: none; }
}

.opening__copy {
  position: relative;
  /* **`em` で持たない。** 見出しが 96px まで育つので、20em = 1920px の
     つもりが、実際は本文基準で狭く効いて1文字ずつ折れた（実際そうなった）。
     px で持ち、狭い画面では 100% に収まる。 */
  max-width: min(760px, 100%);
  padding-bottom: 4vh;
}

.opening__title {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(38px, 8.5vw, 96px);
  line-height: 1.22;
  letter-spacing: .01em;
}
/* 行ごとに下から立ち上げる。`overflow: hidden` の中で動かすので、
   文字が枠の外へはみ出さない。 */
.opening__title .line { display: block; overflow: hidden; }
/* 行の中で折り返させない。折れると意味の切れ目が崩れる。 */
.opening__title .line > span { white-space: nowrap; }
.opening__title .line > span {
  display: block;
  transform: translateY(110%);
  animation: rise .95s cubic-bezier(.16,1,.3,1) forwards;
}
.opening__title .line:nth-child(2) > span { animation-delay: .12s; }

.opening__lead {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 2;
  color: rgba(255,255,255,.86);
  opacity: 0;
  animation: fade-up .9s cubic-bezier(.16,1,.3,1) .34s forwards;
}

@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .opening__title .line > span,
  .opening__lead { animation: none; transform: none; opacity: 1; }
}

.opening__scroll {
  position: absolute;
  right: var(--gut);
  bottom: var(--gut);
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  color: rgba(255,255,255,.7);
  writing-mode: vertical-rl;
}
.opening__scroll::after {
  content: "";
  display: block;
  width: 1px; height: 48px;
  margin: 12px auto 0;
  background: linear-gradient(rgba(255,255,255,.7), transparent);
}

/* ── 導入 ─────────────────────────────────────────────────── */

.intro {
  padding: clamp(80px, 14vw, 180px) var(--gut);
  text-align: center;
}
.intro__text {
  max-width: 26em;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 30px);
  line-height: 2.1;
  color: var(--muted);
}
.intro__text strong {
  display: block;
  margin-top: 1.2em;
  color: var(--ink);
  font-weight: 700;
}

/* ── 章（写真 × アプリ画面） ───────────────────────────────
 *
 * 左に写真、右に文とアプリの画面。次の章で左右を入れ替える
 * （`--reverse`）。同じ形が続くと読み飛ばされる。 */

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(60px, 10vw, 140px) var(--gut);
  max-width: var(--page);
  margin: 0 auto;
}
.chapter--reverse .chapter__photo { order: 2; }

.chapter__photo { position: relative; }
.chapter__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px; /* 写真は角を立てる。丸くすると図版に見える */
}
/* 章の番号。**写真に重ねる**ことで、写真が装飾ではなく本文の一部になる。 */
.chapter__num {
  position: absolute;
  top: -.42em;
  left: -.12em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(72px, 12vw, 152px);
  font-weight: 900;
  line-height: 1;
  color: var(--reed);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.chapter--reverse .chapter__num { left: auto; right: -.12em; }

.chapter__title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1.42;
}
.chapter__text {
  margin: 0;
  max-width: 26em;
  color: var(--muted);
}
.chapter__text strong { color: var(--ink); font-weight: 700; }

/* スクショが入るまでの枠（2026-08-20）。**空白のまま出さない** ——
   何が入る場所なのか分からないと、レビューで「ここは何？」になる。
   素材が届いたら `<img>` に差し替えるだけ。 */
.shot-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 831 / 1800;
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .06em;
}
.chapter__pair .shot-slot { width: min(190px, 44%); }

/* アプリの画面は「証拠」。**主役にしない**ので小さく、下にずらして置く。 */
.chapter__shot {
  width: min(210px, 42%);
  margin-top: 40px;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(32,35,30,.18);
}
.chapter__pair {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}
.chapter__pair img {
  width: min(190px, 44%);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(32,35,30,.18);
}
.chapter__pair img:last-child,
.chapter__pair .shot-slot:last-child { transform: translateY(28px); }

/* ── 警告（全画面・写真の上） ─────────────────────────────── */

.alert {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: clamp(80px, 12vw, 160px) var(--gut);
  color: var(--white);
  overflow: hidden;
}
.alert__media { position: absolute; inset: 0; }
.alert__media img { width: 100%; height: 100%; object-fit: cover; }
.alert__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(5,6,4,.93) 0%, rgba(5,6,4,.78) 44%, rgba(5,6,4,.3) 100%);
}
.alert__copy { position: relative; max-width: 30em; }
.alert__title {
  margin: 0 0 24px;
  max-width: 14em;
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.34;
}
.alert__text { margin: 0; max-width: 26em; color: rgba(255,255,255,.8); }

/* ── 料金 ─────────────────────────────────────────────────── */

.pricing {
  padding: clamp(80px, 12vw, 160px) var(--gut);
  max-width: var(--page);
  margin: 0 auto;
}
.pricing__head { margin-bottom: 56px; }
.pricing__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.34;
}
.pricing__note { margin: 0; font-size: 15px; color: var(--muted); }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* 区切りは背景色の差で作る（むやみなボーダー禁止・社内ルール） */
.tier { padding: 40px; border-radius: 6px; background: var(--surface); }
.tier--hero { background: var(--peat); color: var(--white); }

.tier__name { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.tier__price { margin: 12px 0 0; font-family: var(--serif); line-height: 1; }
.tier__price b { font-size: clamp(44px, 6vw, 68px); font-weight: 900; }
.tier__price span { margin-left: 6px; font-family: var(--sans); font-size: 15px; font-weight: 700; }
.tier__sub { margin: 10px 0 0; font-size: 13px; color: rgba(255,255,255,.62); }

.tier__list { margin: 32px 0 0; padding: 0; list-style: none; }
.tier__list li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 15px;
  color: var(--muted);
}
.tier--hero .tier__list li { color: rgba(255,255,255,.78); }
/* 素の「・」の羅列は禁止（社内ルール）。細い横棒で列を揃える */
.tier__list li::before {
  content: "";
  position: absolute; left: 0; top: 1.2em;
  width: 10px; height: 1px;
  background: var(--reed);
}

/* ── 入手 ─────────────────────────────────────────────────── */

.get {
  padding: clamp(80px, 12vw, 160px) var(--gut);
  text-align: center;
  background: var(--surface);
}
.get__icon { width: 88px; margin: 0 auto 28px; border-radius: 20px; }
.get__title {
  margin: 0 0 36px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.4;
}

/* 公開までバッジを出さない（押しても何も起きない的を置かない・規則 R-U1）。
   `main.js` の STORE を "released" にすると出る。 */
.store__note { margin: 0; font-size: 15px; color: var(--muted); }
.store__badges { display: none; justify-content: center; gap: 14px; flex-wrap: wrap; }
.store[data-store-state="released"] .store__note { display: none; }
.store[data-store-state="released"] .store__badges { display: flex; }

/* **公式素材をそのまま使う。** Apple も Google も自作・改変を禁じている
   （角丸・色・影を足すのも改変）。枠を作らず、高さだけ揃える。 */
.store__badge { display: inline-flex; align-items: center; }
.store__badge img { height: 52px; width: auto; }
.store__badge[data-store="android"] img { height: 64px; margin: -6px -8px; }

/* ── フッター ─────────────────────────────────────────────── */

.foot {
  padding: 72px var(--gut);
  background: var(--peat);
  color: rgba(255,255,255,.6);
  text-align: center;
}
.foot__logo { margin: 0 auto 28px; opacity: .5; }
.foot__nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 20px;
}
.foot__nav a {
  min-height: 44px;               /* 押せる的は 44px 以上（DESIGN.md §5） */
  display: inline-flex; align-items: center;
  font-size: 14px; text-decoration: none;
}
.foot__nav a:hover { color: var(--white); }
.foot__copy { margin: 0; font-size: 12px; }

/* ── 出現 ─────────────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── レスポンシブ ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .chapter--reverse .chapter__photo { order: 0; }
  .chapter__photo img { aspect-ratio: 3 / 2; }
  .chapter__num { font-size: clamp(64px, 18vw, 110px); }
  .chapter__shot { width: min(190px, 52%); }
  .chapter__pair img { width: min(170px, 46%); }
  .pricing__grid { grid-template-columns: minmax(0, 1fr); }
  .alert { min-height: 62vh; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .tier { padding: 28px; }
  .opening__copy { padding-bottom: 8vh; }
  .opening__scroll { display: none; }
}
