/* アプリ(app/src/theme.tsx)のクリーム地と革のアクセントをそのまま持ってくる */
:root {
  color-scheme: light;
  --bg: #fdfaf5;
  --panel: #fff;
  --text: #2c241c;
  --subtle: #8b7a64;
  --border: rgba(74, 56, 38, 0.2);
  --accent: #a35a2c;
  --shot: 1320 / 2868; /* 6.9インチの画面比。撮り直しても崩れない */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.9 "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2 { font-weight: 600; letter-spacing: 0.01em; }
a { color: var(--accent); }

/* 端末の画面。枠は薄く、影で浮かせるだけにする */
.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  aspect-ratio: var(--shot);
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(74, 56, 38, 0.14);
}

/* App Store バッジ。Apple のガイドライン上、比率は変えない */
.badge { display: inline-block; line-height: 0; }
.badge img { height: 54px; width: auto; }

.lang-switch { text-align: center; font-size: 0.8rem; padding-top: 20px; }
.lang-switch a { color: var(--subtle); text-decoration: none; }

/* ヒーロー */
.hero {
  text-align: center;
  padding: 64px 20px 72px;
}

.logo {
  font-size: 2.6rem;
  font-style: italic;
  margin: 0;
}

.lead {
  font-size: 1.5rem;
  line-height: 1.7;
  margin: 24px 0 0;
}

.sub {
  color: var(--subtle);
  margin: 12px 0 32px;
}

.hero-shot {
  max-width: 260px;
  margin: 56px auto 0;
}

/* 画像と文章を交互に。奇数番目は画像が左、偶数番目は右 */
main { max-width: 56rem; margin: 0 auto; padding: 0 20px; }

.feature {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 48px;
  padding: 72px 0;
  border-top: 1px solid var(--border);
}


.feature:nth-child(even) { grid-template-columns: 1fr 260px; }
.feature:nth-child(even) .shot { order: 2; }

.feature h2 { font-size: 1.35rem; line-height: 1.6; margin: 0 0 12px; }
.feature p { margin: 0; }

/* 価格 */
.price { padding: 72px 0; border-top: 1px solid var(--border); }
.price h2 { font-size: 1.35rem; margin: 0 0 20px; }
.price dl { margin: 0; border-top: 1px solid var(--border); }
.price dl > div {
  display: grid;
  grid-template-columns: 10em 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.price dt { color: var(--subtle); font-size: 0.9rem; }
.price dd { margin: 0; }

.cta { text-align: center; padding: 24px 0 80px; }

footer {
  color: var(--subtle);
  font-size: 0.85rem;
  text-align: center;
  padding: 32px 20px 56px;
  border-top: 1px solid var(--border);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-bottom: 12px;
}

footer a { color: inherit; text-decoration: none; opacity: 0.8; }
footer a:hover { opacity: 1; text-decoration: underline; }
footer p { margin: 0; }

.sp { display: none; }

@media (max-width: 720px) {
  .hero { padding-top: 48px; }
  .logo { font-size: 2.1rem; }
  .lead { font-size: 1.25rem; }
  .sp { display: inline; }

  /* 縦積み。画像が先に来ると文章まで遠いので、見出しを上に出す */
  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 0;
  }
  .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature .shot, .feature:nth-child(even) .shot { order: 2; max-width: 230px; margin: 0 auto; }
  .price dl > div { grid-template-columns: 1fr; gap: 2px; }
}
