/* トップページ（index.html）専用。
   色・木の帯の見出し・メダルなどの部品は plus.css（PLUS の説明ページ）と共通で、ここではトップページだけの部品を足す。
   素材は assets/top/（アプリのデフォルトテーマの画像と、シミュレータで撮った画面）。 */

/* ヘッダーとフッターは全ページ共通なので styles.css にある */

/* ---------- ページの幅 ---------- */

.top-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.top-section {
  max-width: 760px;
  margin: 40px auto 0;
}

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

.top-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
}

.top-plate-text {
  font-family: var(--plus-heading-font);
  font-size: 20px;
  line-height: 1.2;
  color: var(--plus-cream);
  letter-spacing: 0.02em;
}

.top-hero h1 {
  font-family: var(--plus-heading-font);
  font-weight: normal;
  font-size: clamp(28px, 8vw, 44px);
  line-height: 1.35;
  margin-top: 14px;
}

.top-hero-sub {
  margin-top: 10px;
  max-width: 34em;
  color: var(--plus-ink-soft);
  font-size: 15px;
}

.top-chips {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.top-chips li {
  background: var(--plus-card);
  border: 1px solid var(--plus-card-line);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
}

.top-stores {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.top-stores img {
  height: 46px;
  width: auto;
}

.top-hero-phone {
  justify-self: center;
  width: min(290px, 74vw);
}

@media (max-width: 720px) {
  .top-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  .top-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .top-chips,
  .top-stores {
    justify-content: center;
  }
}

/* ---------- スマホの画面（シミュレータで撮った画面に端末のふちを付ける） ---------- */

.top-phone {
  border: 7px solid #2f2622;
  border-radius: 34px;
  background: #2f2622;
  box-shadow: 0 10px 24px rgba(54, 44, 36, 0.22);
  overflow: hidden;
}

.top-phone img {
  width: 100%;
  border-radius: 27px;
}

/* ---------- 使い方（アプリのアイテムアイコンで 3 つ） ---------- */

.top-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.top-steps li {
  background: var(--plus-card);
  border: 1px solid var(--plus-card-line);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
}

.top-steps img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto;
}

.top-steps h3 {
  font-family: var(--plus-heading-font);
  font-weight: normal;
  font-size: 16px;
  margin-top: 4px;
}

.top-steps p {
  font-size: 12.5px;
  color: var(--plus-ink-soft);
  line-height: 1.6;
  margin-top: 2px;
}

/* 3 列だと見出しが途中で折り返すので、アイコンを左に置いた縦並びにする */
@media (max-width: 480px) {
  .top-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .top-steps li {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 12px;
    align-items: center;
    text-align: left;
    padding: 10px 14px;
  }

  .top-steps img {
    width: 56px;
    height: 56px;
    grid-row: 1 / 3;
  }

  .top-steps h3 {
    margin-top: 0;
  }
}

/* ---------- ミッションの種類（アプリのタブとミッションカード） ---------- */

.top-board {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 12px 14px;
  background: url('assets/top/mission_window_vertical.png') center / 100% 100% no-repeat;
}

.top-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  transform: translateY(-14px);
}

.top-tabs span {
  width: 96px;
  padding: 8px 0 6px;
  text-align: center;
  font-family: var(--plus-heading-font);
  font-size: 13px;
  color: var(--plus-ink);
  background: url('assets/top/tab.png') center / 100% 100% no-repeat;
}

.top-tabs .is-selected {
  color: var(--plus-cream);
  background-image: url('assets/top/tab_selected.png');
}

.top-mcard {
  margin-bottom: 8px;
  padding: 12px 14px 10px;
  text-align: center;
  color: var(--plus-cream);
  background: url('assets/top/mission_card.png') center / 100% 100% no-repeat;
}

.top-mcard-title {
  font-family: var(--plus-heading-font);
  font-size: 15px;
  line-height: 1.3;
}

.top-mcard-sub {
  font-size: 11px;
  opacity: 0.8;
}

.top-mcard-pt {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-family: var(--plus-heading-font);
  font-size: 14px;
  color: #f2c94c;
}

.top-mcard-pt::before {
  content: '';
  width: 11px;
  height: 14px;
  background: url('assets/plus/pt.png') center / contain no-repeat;
}

.top-kinds {
  list-style: none;
  max-width: 440px;
  margin: 12px auto 0;
  font-size: 13.5px;
}

.top-kinds li {
  position: relative;
  padding-left: 1.2em;
}

.top-kinds li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.35em;
  font-size: 10px;
  color: var(--plus-gold);
}

.top-kinds b {
  font-family: var(--plus-heading-font);
  font-weight: normal;
  margin-right: 0.8em;
}

/* ---------- アプリの画面（画面ごとに 1 機能、左右交互） ---------- */

.top-feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
}

.top-feature:nth-of-type(even) {
  grid-template-columns: 1fr 220px;
}

.top-feature:nth-of-type(even) .top-phone {
  order: 2;
}

.top-feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  background: url('assets/plus/medallion.png') center / contain no-repeat;
  color: var(--plus-gold-soft);
  font-family: var(--plus-heading-font);
  font-size: 17px;
}

.top-feature h3 {
  font-family: var(--plus-heading-font);
  font-weight: normal;
  font-size: 22px;
  line-height: 1.4;
}

.top-feature p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--plus-ink-soft);
}

@media (max-width: 560px) {
  .top-feature {
    grid-template-columns: 132px 1fr;
    gap: 14px;
  }

  .top-feature:nth-of-type(even) {
    grid-template-columns: 1fr 132px;
  }

  .top-feature .top-phone {
    border-width: 4px;
    border-radius: 20px;
  }

  .top-feature .top-phone img {
    border-radius: 16px;
  }

  .top-feature h3 {
    font-size: 17px;
  }

  .top-feature p {
    font-size: 13px;
  }

  .top-feature-num {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* ---------- 着せ替えテーマ（テーマショップのサムネイル） ---------- */

.top-themes {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.top-themes li {
  overflow: hidden;
  background: var(--plus-card);
  border: 1px solid var(--plus-card-line);
  border-radius: 10px;
}

.top-themes li:first-child {
  grid-column: 1 / 3;
}

.top-themes img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 480px) {
  .top-themes {
    gap: 8px;
  }
}

/* ---------- PLUS への導線 ---------- */

.top-plus-band {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--plus-cocoa);
  color: var(--plus-cream);
  border: 2px solid var(--plus-cocoa-line);
  border-radius: 12px;
  text-decoration: none;
}

.top-plus-band .plus-medal {
  flex: none;
  margin: 0;
}

.top-plus-band h3 {
  font-family: var(--plus-heading-font);
  font-weight: normal;
  font-size: 17px;
  color: var(--plus-gold-soft);
}

.top-plus-band p {
  margin-top: 2px;
  font-size: 13px;
}

.top-plus-band .top-arrow {
  margin-left: auto;
  font-size: 22px;
  color: var(--plus-gold-soft);
}

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

.top-cta {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 28px 16px 22px;
  text-align: center;
  background: var(--plus-card);
  border: 1px solid var(--plus-card-line);
  border-radius: 14px;
}

.top-cta h2 {
  font-family: var(--plus-heading-font);
  font-weight: normal;
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1.4;
}

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

.top-free-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--plus-ink-soft);
}
