/*!
 * applesama 解説記事 /guide/{slug}/(2026-09-25)。
 *
 * マークアップは inc/guide.php(文章は inc/guides/{slug}.php)。記事の部品(見出し・本文・チェックリスト・FAQ・挿絵)は
 * model-article.css の .mart のものをそのまま使い、ここには 表(.gtable)・冒頭(.guide-hero)・出典(.guide-src)の差分だけを置く。
 * 色は .mart の変数(--art-*)を経由する。価格の上下の色(--up / --down)と売るボタンの色(--cta)は使わない。
 *
 * 会話(.gtalk)の見た目は model-article.css にある(機種・容量ページの記事でも使うため。2026-09-25)。
 */

.guide-main .mart { margin-inline: auto; }

/* ---------------------------------------------------------------- 冒頭 */
.guide-hero { margin-bottom: 20px; }

.guide-hero__title {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.45;
  font-feature-settings: "palt";
  color: var(--ink);
}

.guide-hero .mart__meta { margin-bottom: 14px; }
.guide-hero .mart-illust { max-width: 640px; }

@media (min-width: 769px) {
  .guide-hero__title { font-size: 28px; }
}

/* ---------------------------------------------------------------- 表(横に長い表は枠の中だけで横に送る) */
.gtable {
  margin: 0 0 18px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gtable__t {
  width: 100%;
  min-width: calc(var(--cols, 2) * 118px);   /* 列が多い表だけ、枠の中で横に送る(2 列は画面に収める) */
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--art-beige-2);
  border-radius: var(--r-card);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.gtable__t th,
.gtable__t td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--art-beige-2);
  text-align: left;
  vertical-align: top;
}

.gtable__t tr:last-child th,
.gtable__t tr:last-child td { border-bottom: 0; }

.gtable__t thead th {
  background: var(--art-accent);
  color: var(--art-on);
  font-weight: 700;
  white-space: nowrap;
}

.gtable__t tbody th {
  min-width: 7em;
  background: var(--art-beige);
  font-weight: 700;
}

/* 文字の多い表('stack' => true)は、スマホ幅で行ごとのカードにする(列の見出しは各セルの上に出す) */
@media (max-width: 599px) {
  .gtable--stack { overflow: visible; }
  .gtable--stack .gtable__t { min-width: 0; border: 0; border-radius: 0; overflow: visible; }
  .gtable--stack thead { display: none; }
  .gtable--stack tbody,
  .gtable--stack tr,
  .gtable--stack tbody th,
  .gtable--stack td { display: block; }
  .gtable--stack tr {
    margin-bottom: 10px;
    border: 1px solid var(--art-beige-2);
    border-radius: var(--r-card);
    overflow: hidden;
  }
  .gtable--stack tr:last-child th,
  .gtable--stack tr:last-child td { border-bottom: 1px solid var(--art-beige-2); }
  .gtable--stack tr td:last-child { border-bottom: 0; }
  .gtable--stack td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
  }
}

.gtable__cap {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------------------------------------------------------------- 出典 */
.guide-src {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
}

.guide-src__h {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.guide-src__list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.guide-src__list a { color: var(--art-accent); overflow-wrap: anywhere; }
.guide-src__date { margin-left: 4px; }
