/* ==========================================================================
   要覧スマホアプリ版ページ
   セクション・見出し・リスト・アコーディオンは style.css の共通パーツを使い、
   ここではこのページ固有のパーツ（ストアバッジ・手順・IDナンバー図）だけを定義
   ========================================================================== */

/* ---- 特色とアプリ画面の2カラム ---- */
.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}
.app-hero__body { min-width: 0; }
.app-hero__visual img {
  display: block;
  width: 100%;
  max-width: none;
}

/* ---- ストアバッジ ---- */
.app-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.app-badge {
  display: inline-flex;
  transition: opacity .2s ease, transform .2s ease;
}
.app-badge img {
  display: block;
  width: auto;
}
/* Apple／Google のバッジは余白の取り方が違うため、見た目が揃う高さに個別調整 */
.app-badge img[src$=".svg"] { height: 50px; }
.app-badge img[src$=".png"] { height: 60px; }

/* ---- 対応OSなどの補足 ---- */
.app-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 20px 0 0;
}
.app-facts > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.app-facts dt {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--c-accent-text);
  background: var(--c-chip-bg);
  padding: 3px 9px;
}
.app-facts dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--c-text-soft);
}

/* ---- ご利用方法（画面つきの3ステップ） ---- */
/* カードにはせず、セクションの背景に直接並べる。
   手順どうしは細い罫線で切る。見出しは左端に置き、
   それ以外（本文・バッジ・図）は字下げして見出しにぶら下げる */
.app-flow {
  display: flex;
  flex-direction: column;
  list-style: none;
  /* 見出しとのあいだを空ける。見出し側の margin-bottom と相殺されるので、
     それより大きい値を指定する */
  margin: 36px 0 0;
  padding: 0;
}
.app-flow__item + .app-flow__item {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--c-border);
}
/* 番号は見出しの一部として、同じ大きさ・同じ色で置く */
.app-flow .app-step__number {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--c-primary);
}
.app-flow__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.app-flow__body > :not(.app-flow__head) { margin-left: 32px; }
.app-flow__head h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-primary);
}
.app-flow__body p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text-soft);
}
/* 誌面画像は文字が小さいため、読める幅で止める */
.app-flow__figure {
  max-width: 600px;
  margin: 8px 0 0;
}
.app-flow__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
/* カード内のストアバッジは、ヒーローほど余白を取らない */
.app-flow__body .app-store-badges { margin-top: 16px; }

/* ---- 手順（よくあるご質問の中の手順リスト） ---- */
.app-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* 手順が多いセクションは3列に畳む */
.app-steps--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.app-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 16px 22px;
}
.app-step__number {
  flex-shrink: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--c-accent-light);
}
.app-step h3 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-primary);
}
.app-step p {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text-soft);
}
/* 元サイトから引き継いだ操作画面。145px幅の小さな画像なので等倍で置く */
.app-step__shot {
  display: block;
  width: 145px;
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  border: 1px solid var(--c-border-tint);
  border-radius: var(--radius-sm);
}

/* ---- よくあるご質問の回答（toc-accordion の中身） ---- */
.app-answer {
  padding: 2px 22px 24px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--c-text-soft);
}
.app-answer h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-primary);
  margin: 18px 0 4px;
}
.app-answer p + p { margin-top: 10px; }
/* 回答内の画面キャプチャ。縦長なので幅を絞って置く */
.app-answer__figure {
  max-width: 280px;
  margin: 16px 0 0;
}
.app-answer__figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--c-border-tint);
  border-radius: var(--radius-sm);
}
.app-answer__figure figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--c-text-faint);
}
/* 手順リスト（.app-steps）まで番号付きにならないよう除外する */
.app-answer ol:not(.app-steps) {
  list-style: decimal;
  padding-left: 1.4em;
}
.app-answer ol:not(.app-steps) li + li { margin-top: 4px; }
.app-answer .app-steps { margin: 12px 0; }
.app-answer strong { font-weight: 700; color: var(--c-text-strong); }
.app-answer a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.app-answer a:hover { color: var(--c-accent-dark); }

/* ---- Hover ---- */
@media (hover: hover) and (pointer: fine) {
  .app-badge:hover {
    opacity: .82;
    transform: translateY(-1px);
  }
}

/* ---- Tablet ---- */
@media (max-width: 1023px) {
  .app-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .app-hero__visual { order: -1; }

  .app-steps--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
  .app-store-badges {
    margin-top: 22px;
    gap: 10px;
  }
  .app-badge img[src$=".svg"] { height: 44px; }
  .app-badge img[src$=".png"] { height: 53px; }

  .app-facts { margin-top: 18px; }
  .app-facts dd { font-size: 13px; }

  .app-flow__item + .app-flow__item { margin-top: 22px; padding-top: 22px; }
  .app-flow .app-step__number { font-size: 16.5px; }
  .app-flow__head h3 { font-size: 16.5px; }
  .app-flow__body > :not(.app-flow__head) { margin-left: 20px; }
  .app-flow__body p { font-size: 13.5px; }

  .app-steps--grid { grid-template-columns: 1fr; }
  .app-step {
    padding: 14px 16px;
    gap: 12px;
  }
  .app-step h3 { font-size: 14.5px; }
  .app-step p { font-size: 13.5px; }

  .app-answer {
    padding: 0 16px 18px;
    font-size: 13.5px;
  }
}
