/* トップページ（index.html）の見た目。配色と文字の大きさの決まりは style.css（転送ページと同じ）を使い、ここでは並べ方だけを足す。
   色は style.css の色の名前だけを使い、値を書かない。上の帯の形も style.css に書く（プライバシーポリシーのページと同じ形にするため）。見出しはアプリの見出しと同じく標準の大きさの 1.5 倍で止める（テストで確かめる） */
body.landing {
  line-height: 1.5;
}

.landing main {
  max-width: 1080px;
  padding: 0 20px 48px;
  gap: 72px;
}

.landing p {
  padding: 0;
  background: none;
  line-height: 1.5;
}

.landing ul,
.landing ol {
  margin: 0;
  padding: 0;
}

/* ---------------------------------------------------------------- はじめの段 */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 24px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.landing h1 {
  font-size: min(2.353rem, 60px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1.059rem;
}

/* ストアのボタン。ストアに登録するまでは押せないので、リンクにせず「近日公開」を添える */
.stores {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stores li {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 10px 18px;
  border: 2px solid var(--accent);
  border-radius: 12px;
}

.store-name {
  font-weight: 700;
}

/* 「近日公開」はアプリの添え書きと同じく控えめな文字にする。テスターの募集のページで、まだ押せない参加のボタンに添える「準備中」も同じ形にする */
.store-soon,
.link-soon {
  color: var(--textSecondary);
  font-size: 0.882rem;
  font-weight: 600;
}

/* トップページからテスターの募集のページへのリンク */
.testers-link a {
  color: var(--accent);
  font-weight: 600;
}

/* 撮った画面。配色ごとの画像を <picture> で替える（明るい配色の画像も地が明るいので、地の色との境に区切り線の色の縁を付ける） */
.landing picture {
  display: block;
}

.screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  outline: 1px solid var(--divider);
}

.hero-screen {
  justify-self: center;
  width: 100%;
  max-width: 300px;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1fr 320px;
    gap: 64px;
  }
}

/* ---------------------------------------------------------------- 段の見出しとカード */

/* はじめの段（.hero）は格子で並べるので除く */
.landing section:not(.hero) {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.landing h2 {
  margin: 0;
  font-size: min(1.647rem, 42px);
  line-height: 1.25;
}

.landing h3 {
  margin: 0;
  font-size: min(1.059rem, 27px);
  line-height: 1.3;
}

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.cards > li,
.cards > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
}

.cards ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 1.2em;
}

/* 有料版のカードは、地のある色の縁で見分ける */
.cards > .paid {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ---------------------------------------------------------------- 使い方 */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 番号は地のある丸に入れる。文字は地のあるボタンと同じく background の色 */
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--accent);
  color: var(--background);
  font-weight: 700;
}

.screens {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  justify-content: center;
  gap: 16px;
}

/* テスターの募集のページの参加のボタン。リンクの値が無いあいだは href を書かず、押せないことを薄くして見せる */
.steps .button:not([href]) {
  opacity: 0.5;
}

.link-soon {
  text-align: center;
}

/* ---------------------------------------------------------------- 下の段 */

.site-footer {
  box-sizing: border-box;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  border-top: 1px solid var(--divider);
  color: var(--textSecondary);
  font-size: 0.882rem;
}

/* 文の中のリンク（テスターの募集のページのサポートの窓口など）も同じ色にする */
.site-footer a,
.cards a {
  color: var(--accent);
}
