/* お役立ちガイド（/guide/ 記事ページ）専用。
 * 一覧・記事とも body.top-apple を前提に style.css / top.css の上に重ねる。
 * 記事本文は読み物なので、サイト本体より行間・余白を広めに取る。
 * サイト全体の色・見出しの流儀は top.css に合わせる（青 #176dc1・マーカー #ffe66d）。 */

/* ---- 記事本文 ---- */
body.top-apple .guide-article {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.95;
  color: #1d2a36;
  text-align: left;
}
body.top-apple .guide-article h1 {
  font-size: clamp(23px, 5vw, 34px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
body.top-apple .guide-article h2 {
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 900;
  line-height: 1.4;
  margin: 56px 0 18px;
  padding-left: 14px;
  border-left: 5px solid #176dc1;
}
body.top-apple .guide-article h3 {
  font-size: clamp(17px, 2.8vw, 20px);
  font-weight: 700;
  margin: 36px 0 12px;
}
body.top-apple .guide-article p {
  margin: 0 0 18px;
}
body.top-apple .guide-article ul,
body.top-apple .guide-article ol {
  margin: 0 0 18px;
  padding-left: 1.5em;
}
body.top-apple .guide-article li {
  margin-bottom: 8px;
}
body.top-apple .guide-article a {
  color: #176dc1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* 記事カードはリンクだが、本文リンクの下線ルールを引き継がない */
body.top-apple .guide-article a.guide-card {
  text-decoration: none;
  color: inherit;
}
body.top-apple .guide-article strong {
  background: linear-gradient(transparent 62%, #ffe66d 62%);
  padding: 0 2px;
}
body.top-apple .guide-article table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 18px;
  font-size: 14px;
  /* スマホ幅（320px実測で崩れやすい）では表ごと横スクロールに逃がす */
  display: block;
  overflow-x: auto;
}
body.top-apple .guide-article th,
body.top-apple .guide-article td {
  border: 1px solid #dfe7ef;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
body.top-apple .guide-article th {
  background: #f2f7fd;
  font-weight: 700;
  white-space: nowrap;
}

/* 記事冒頭の要点ボックス */
body.top-apple .guide-point {
  background: #f2f7fd;
  border: 1px solid #d8e6f5;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 28px;
}
body.top-apple .guide-point p {
  margin: 0 0 6px;
  font-size: 15px;
}
body.top-apple .guide-point p:last-child {
  margin-bottom: 0;
}

/* パンくず・更新日 */
body.top-apple .guide-breadcrumb {
  font-size: 13px;
  color: #5b6b7a;
  margin: 0 0 8px;
  text-align: left;
}
body.top-apple .guide-breadcrumb a {
  color: #5b6b7a;
}
body.top-apple .guide-date {
  font-size: 13px;
  color: #5b6b7a;
  margin: 0 0 28px;
  text-align: left;
}

/* 記事内CTA（診断・一覧への誘導帯） */
body.top-apple .guide-cta {
  background: #eef6ff;
  border-radius: 14px;
  padding: 26px 22px;
  margin: 40px 0;
  text-align: center;
}
body.top-apple .guide-cta p {
  margin: 0 0 14px;
  font-size: 15px;
}
body.top-apple .guide-cta .ap-btn {
  display: inline-block;
  background: #176dc1;
  color: #fff;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
}

/* ---- 記事カード（一覧・関連記事共用） ---- */
body.top-apple .guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  text-align: left;
}
body.top-apple .guide-card {
  display: block;
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
body.top-apple .guide-card:hover {
  box-shadow: 0 8px 22px rgba(23, 109, 193, 0.12);
  transform: translateY(-2px);
}
body.top-apple .guide-card h3,
body.top-apple .guide-card h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 8px;
  color: #176dc1;
}
body.top-apple .guide-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #5b6b7a;
  margin: 0;
}

/* 関連記事の見出し */
body.top-apple .guide-related-h {
  font-size: 18px;
  font-weight: 900;
  margin: 56px 0 4px;
  text-align: left;
}
