/* ============================================================
   サポートページ共通スタイル
   （Thunderbird 設定ページ / メール設定ご案内ページ 共通）
   ============================================================ */

/* ───────── 変数 ───────── */
:root {
  --accent: #0071e3;
  --accent-dark: #0066cc;
  --ink: #1d1d1f;
  --muted: #86868b;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --border: #d2d2d7;
  --highlight: #c0392b;
}

/* ───────── ベース ───────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro JP", "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

small { color: var(--muted); }
a { color: var(--accent); }

/* ───────── ページ枠 ───────── */
.page {
  width: 900px;
  max-width: 100%;
  min-height: 297mm;
  margin: 0 auto;
  padding: 48px 64px;
  background: var(--surface);
}

/* ───────── 見出し ───────── */
h1 {
  margin: 0 0 .4em;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.018em;
}
.lead {
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -.012em;
}

/* ───────── パンくず ───────── */
.breadcrumb {
  margin-top: -16px;
  margin-bottom: 48px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }
.breadcrumb .current { color: var(--ink); }

/* ───────── セクション（1エリア = .section） ───────── */
.section { margin-bottom: 56px; page-break-inside: avoid; }
.section h2 {
  margin: 0 0 .6em;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.014em;
}
.section p { margin: 0 0 14px; }

/* サブ見出し */
.subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1.8em 0 .8em;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.subhead::before {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
}

/* 注記 */
.note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
td > p:last-child { margin-bottom: 0; }
table + .note { margin-top: 16px; }

/* 表キャプション */
caption {
  margin-bottom: 8px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}
table + table { margin-top: 24px; }

/* ───────── ラベルバッジ ───────── */
.badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ───────── 画像（設定ページ） ───────── */
.step-image {
  margin: 1.5em auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-alt);
  text-align: center;
}
.step-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}

/* ───────── テーブル ───────── */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
tr:last-child th, tr:last-child td { border-bottom: none; }
th {
  background: var(--surface-alt);
  color: var(--accent-dark);
  font-weight: 600;
  border-right: 1px solid var(--border);
}
.server-old { color: var(--muted); text-decoration: line-through; }
.server-new { font-weight: 600; color: var(--highlight); }

/* ───────── 注意ボックス ───────── */
.alert {
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid #f0c040;
  border-left: 3px solid #e6a800;
  border-radius: 8px;
  background: #fffdf0;
}
.page > .alert { margin-bottom: 40px; }
.alert-title { font-weight: 600; margin-bottom: 8px; color: #7a5800; }
.alert p { margin-bottom: 10px; }
.alert p:last-child { margin-bottom: 0; }
.alert ul { margin: 6px 0 0 18px; }
.alert ul li { margin-bottom: 4px; }

/* ───────── ボックス ───────── */
.faq-box,
.support-box {
  padding: 48px 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* ───────── FAQ ───────── */
.faq-item { margin-bottom: 24px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-q {
  display: flex;
  gap: 9px;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.faq-q::before { content: "Q"; color: var(--accent); flex-shrink: 0; font-weight: 700; }
.faq-a { padding-left: 20px; }

/* ───────── リンクメニュー ───────── */
.link-list {
  list-style: none;
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.link-list a::after {
  content: "›";
  flex-shrink: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  transition: color .15s ease, transform .15s ease;
}
.link-list a:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.link-list a:hover::after {
  color: var(--accent);
  transform: translateX(3px);
}

/* ───────── サポート ───────── */
.support-box ul { margin: 0 0 14px 18px; }
.support-box ul li { margin-bottom: 3px; }
.contact { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.contact-company { font-weight: 600; margin-bottom: 5px; }
.contact-row { color: var(--muted); margin-bottom: 3px; }
.contact-row:last-child { margin-bottom: 0; }

/* ───────── フッター ───────── */
footer {
  margin-top: 80px;
  font-size: 11px;
  text-align: center;
  color: var(--muted);
}

/* ───────── レスポンシブ ───────── */
@media (max-width: 768px) {
  .page { min-height: auto; padding: 28px 20px 48px; }
  h1 { font-size: 28px; }
  .lead { font-size: 17px; }
  .section { margin-bottom: 44px; }
  .section h2 { font-size: 24px; }
  th, td { padding: 12px; }
  .link-list { grid-template-columns: 1fr; }
}

/* ───────── 印刷 ───────── */
@media print {
  body { background: #fff; font-size: 11pt; }
  .page { width: auto; min-height: auto; margin: 0; padding: 0; }
  .breadcrumb { display: none; }
  .section { page-break-inside: avoid; }
  .faq-item { page-break-inside: avoid; }
  th { background: #ddd !important; color: #000; border-color: #999; }
  a { color: #000; text-decoration: none; }
  .server-new { color: #000; font-weight: 700; text-decoration: underline; }
  .server-old { color: #999; }
}
