/* ============================================================
   apotrail コンテンツページ 共通スタイル（白ベース・記事型）
   方針: 白背景を基調。青/シアンはリンク・表ヘッダー・小アクセントのみ。
   全面グラデのヒーローは使わない。可視テキストは日本語。
   文字は大きめ・読みやすさ優先。
   ブランド色（#3212FE / #01C4CC）は死守しつつ多用しない。
   ============================================================ */

:root {
  --primary: #2563EB;
  --primary-deep: #1D4ED8;
  --accent: #01C4CC;
  --brand: #3212FE;
  --ink: #0f172a;
  --text: #1f2937;
  --text-sub: #5b6573;
  --line: #e7eaf0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --brand-grad: linear-gradient(135deg, #3212FE 0%, #01C4CC 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-size: 17px; line-height: 1.9; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:target { scroll-margin-top: 80px; }
section[id], div[id] { scroll-margin-top: 80px; }

/* ===== ナビ（index.html と統一） ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #ffffff; border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 900; color: var(--ink); -webkit-text-fill-color: var(--ink); }
.nav-brand img { width: 34px; height: 34px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--text-sub); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { padding: 11px 28px; background: var(--brand-grad); color: #fff !important; border-radius: 50px; font-weight: 700; font-size: 14px; -webkit-text-fill-color: #fff; box-shadow: 0 4px 14px rgba(50,18,254,0.22); }
.nav-cta:hover { box-shadow: 0 6px 20px rgba(50,18,254,0.32); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger svg { width: 26px; height: 26px; stroke: var(--ink); }
.nav-mobile { display: none; position: fixed; top: 66px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; z-index: 99; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.nav-mobile.open { display: flex; flex-direction: column; gap: 14px; }
.nav-mobile a { font-size: 16px; font-weight: 600; color: var(--ink); padding: 9px 0; border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: none; }
@media (max-width: 820px) { .nav-links { display: none; } .nav-hamburger { display: block; } }

/* ===== 2カラムレイアウト（本文 + 右サイドバー） ===== */
.layout { max-width: 1180px; margin: 0 auto; padding: 92px 24px 0; display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; align-items: start; }
.article { min-width: 0; }

/* 右サイドバー（余白を予約CTA・関連リンクで活用） */
.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.side-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; }
.side-cta { background: linear-gradient(160deg, #f4f7ff 0%, #eef9fb 100%); border-color: #dbe4ff; }
.side-card h3 { font-size: 16px; font-weight: 900; color: var(--ink); margin-bottom: 10px; }
.side-cta p { font-size: 13.5px; color: var(--text-sub); line-height: 1.8; margin-bottom: 14px; }
.side-btn { display: block; text-align: center; background: var(--brand-grad); color: #fff; -webkit-text-fill-color: #fff; padding: 14px; border-radius: 10px; font-weight: 800; font-size: 15px; box-shadow: 0 4px 14px rgba(50,18,254,0.2); }
.side-btn:hover { box-shadow: 0 6px 20px rgba(50,18,254,0.3); }
.side-mail { display: block; text-align: center; margin-top: 11px; font-size: 13px; font-weight: 700; color: var(--primary); }
.side-links { display: flex; flex-direction: column; }
.side-links a { font-size: 14px; font-weight: 600; color: var(--ink); padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.side-links a:last-child { border-bottom: none; padding-bottom: 0; }
.side-links a:hover { color: var(--primary); }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; padding-top: 88px; gap: 0; } .sidebar { position: static; margin: 28px 0 0; } }

/* ===== パンくず ===== */
.breadcrumb { font-size: 13px; color: var(--text-sub); padding: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--primary); }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: #cbd5e1; }

/* ===== 記事ヘッダー ===== */
.article-head { padding: 20px 0 8px; }
.article-cat { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary); border: 1px solid #dbe4ff; background: #f4f7ff; border-radius: 6px; padding: 5px 13px; margin-bottom: 16px; }
.article-head h1 { font-size: 36px; line-height: 1.45; font-weight: 900; color: var(--ink); letter-spacing: -0.01em; }
.article-meta { margin-top: 14px; font-size: 13.5px; color: #94a3b8; display: flex; gap: 14px; align-items: center; }
@media (max-width: 768px) { .article-head h1 { font-size: 27px; } }

/* ===== 図解 ===== */
.fig { margin: 24px 0 8px; }
.fig img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.fig-hero img { border-radius: 16px; box-shadow: 0 10px 40px rgba(15,23,42,0.08); }
.fig figcaption { margin-top: 12px; font-size: 14px; color: var(--text-sub); line-height: 1.8; }

/* ===== 本文 prose ===== */
.prose { padding: 30px 0 48px; }
.prose > p { font-size: 17.5px; line-height: 2.0; color: var(--text); margin: 18px 0; }
.prose .lead { font-size: 19px; color: #111827; line-height: 2.0; }
.prose h2 { font-size: 27px; font-weight: 900; color: var(--ink); line-height: 1.5; margin: 52px 0 18px; padding-left: 14px; border-left: 5px solid var(--brand); }
.prose h3 { font-size: 21px; font-weight: 800; color: var(--ink); margin: 32px 0 12px; }
.prose ul, .prose ol { margin: 16px 0; padding-left: 26px; }
.prose li { font-size: 17px; line-height: 2.0; color: var(--text); margin: 9px 0; }
.prose strong { color: var(--ink); font-weight: 800; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 768px) { .prose > p { font-size: 16.5px; } .prose li { font-size: 16.5px; } .prose .lead { font-size: 17.5px; } .prose h2 { font-size: 22px; } .prose h3 { font-size: 19px; } }

/* ===== 結論ボックス ===== */
.tldr { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 10px; padding: 20px 22px; margin: 24px 0; }
.tldr .tldr-label { font-size: 15px; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.tldr p { margin: 0; font-size: 17px; line-height: 1.95; color: var(--text); }

/* ===== 比較表 ===== */
.cmp-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; background: #fff; }
table.cmp th, table.cmp td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.75; }
table.cmp thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; }
table.cmp tbody th { font-weight: 700; color: var(--ink); background: var(--bg-soft); white-space: nowrap; }
table.cmp .col-us { background: #f4f7ff; font-weight: 600; color: var(--ink); }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: none; }
.cmp-note { font-size: 13px; color: var(--text-sub); margin-top: 10px; line-height: 1.8; }

/* ===== 要点カード ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card .card-ico { width: 42px; height: 42px; border-radius: 10px; background: #f4f7ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 900; margin-bottom: 13px; }
.card h3 { font-size: 17.5px; font-weight: 800; color: var(--ink); margin-bottom: 7px; }
.card p { font-size: 15px; color: var(--text-sub); line-height: 1.8; margin: 0; }
@media (max-width: 768px) { .cards { grid-template-columns: 1fr; } }

/* ===== FAQ アコーディオン ===== */
.faq-list { margin: 8px 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { padding: 22px 0; font-size: 17px; font-weight: 700; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q::after { content: '+'; font-size: 24px; color: var(--text-sub); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 0 22px; font-size: 16px; color: var(--text-sub); line-height: 1.95; }

/* ===== CTA ===== */
.cta-band { margin: 8px 0 0; padding: 60px 24px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.cta-band-inner { max-width: 800px; margin: 0 auto; }
.cta-band h2 { text-align: center; font-size: 28px; font-weight: 900; color: var(--ink); margin-bottom: 10px; }
.cta-band p.cta-sub { text-align: center; font-size: 15.5px; color: var(--text-sub); margin-bottom: 32px; line-height: 1.8; }
#timerex_calendar iframe { width: 100% !important; min-height: 700px !important; }
.cta-mail { text-align: center; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.cta-mail p { font-size: 14px; color: var(--text-sub); margin-bottom: 9px; }
.cta-mail a { color: var(--primary); font-size: 15.5px; font-weight: 700; }

/* ===== 関連ページ ===== */
.related { padding: 44px 0 60px; }
.related h2 { font-size: 21px; font-weight: 900; color: var(--ink); margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-grid a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; font-size: 15.5px; font-weight: 700; color: var(--ink); transition: all 0.2s; }
.related-grid a:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }

/* ===== フッター ===== */
footer { padding: 42px 24px; background: #0f172a; color: rgba(255,255,255,0.55); font-size: 14px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-size: 17px; font-weight: 800; background: var(--brand-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-links a:hover { color: #fff; }
@media (max-width: 768px) { .footer-inner { flex-direction: column; align-items: flex-start; } }
