/* ======================================================
   TDR GO — 攻略記事（ブログ）スタイル
   ====================================================== */

/* ════════════════════════════════════════
   共通: ブログ 2カラムレイアウト
   ════════════════════════════════════════ */

.tw-blog-layout {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: var(--content-gap);
  align-items: start;
}
body.single .tw-blog-layout {
  padding-top: 16px;
}
.tw-blog-hero-row {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 16px var(--page-gutter) 2px;
}
@media (max-width: 780px) {
  .tw-blog-layout { grid-template-columns: 1fr; }
}

/* ── ブログサイドバー ── */
.tw-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-gap);
}
/* ── ウィジェット共通 ── */
.tw-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

/* サイドバー各項目の見出し（CTA「まずはここをチェック」と同じデザイン） */
.tw-widget-title {
  margin: 0 0 12px;
  color: var(--text-main);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
}
@media (max-width: 640px) {
  .tw-widget-title { font-size: 18px; }
}

/* 目次（開閉式 / 初期は閉じる） */
.tw-toc-widget {
  background: #fff7fb;
  background: color-mix(in oklab, var(--p) 5%, #fff);
  border-color: #f6cadd;
  border-color: color-mix(in oklab, var(--p) 30%, #fff);
  border-left: 4px solid #f3a6c9;
  border-left-color: color-mix(in oklab, var(--p) 55%, #fff);
}
.tw-toc-widget > summary.tw-widget-title {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.tw-toc-widget > summary.tw-widget-title::-webkit-details-marker { display: none; }
.tw-toc-widget > summary.tw-widget-title::after {
  content: '▾';
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  transition: transform .2s;
}
/* 閉じている間は見出し下線の余白を詰める */
.tw-toc-widget:not([open]) > summary.tw-widget-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.tw-toc-widget[open] > summary.tw-widget-title::after { transform: rotate(-180deg); }

/* カテゴリリスト */
.tw-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tw-cat-list li a,
.tw-cat-list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--primary-ultra);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
  text-decoration: none;
  transition: .15s;
}
/* クリックできると分かるよう右に矢印を表示 */
.tw-cat-list li a::after {
  content: '›';
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  transition: .15s;
}
.tw-cat-list li a:hover {
  background: var(--primary-pale);
  border-color: var(--primary);
  color: var(--primary);
}
.tw-cat-list li a:hover::after { color: var(--primary); transform: translateX(2px); }
/* WordPress が出力する .children を非表示 */
.tw-cat-list .children { display: none; }

/* 攻略記事タグ */
.tw-post-tags {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 18px;
}
.tw-post-tags-label {
  flex: 0 0 auto;
  padding-top: 5px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.tw-tag-list {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}
.tw-tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #c7deef;
  border-radius: 999px;
  background: var(--primary-ultra);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  transition: .15s;
}
.tw-tag-link::before { content: '#'; margin-right: 3px; color: var(--primary-light); }
.tw-tag-link:hover { border-color: var(--primary); background: var(--primary-pale); }
@media (max-width: 560px) {
  .tw-post-tags { flex-direction: column; gap: 6px; }
  .tw-post-tags-label { padding-top: 0; }
}

/* 最近の記事 */
.tw-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tw-recent-item { min-width: 0; }
.tw-recent-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: .15s;
}
.tw-recent-link:hover { background: var(--primary-ultra); }
.tw-recent-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-pale), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tw-recent-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tw-recent-thumb-emoji { font-size: 18px; line-height: 1; }
.tw-recent-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tw-recent-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tw-recent-link:hover .tw-recent-title { color: var(--primary); }
.tw-recent-date {
  font-size: 10px;
  color: var(--text-muted);
}

/* クイックリンク */
.tw-quicklink-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tw-quicklink-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: .15s;
}
.tw-quicklink-list li a:hover { background: var(--primary-ultra); color: var(--primary); }

/* 検索フォーム */
.tw-widget .search-form {
  display: flex;
  gap: 4px;
}
.tw-widget .search-field {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 12px;
  outline: none;
  transition: border-color .15s;
}
.tw-widget .search-field:focus { border-color: var(--primary); }
.tw-widget .search-submit {
  padding: 7px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.tw-widget .search-submit:hover { background: #1a5f9e; }

/* ════════════════════════════════════════
   記事一覧（index.php）
   ════════════════════════════════════════ */

.tw-blog-main { min-width: 0; }

/* ── 一覧ヘッダー ── */
.tw-blog-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.tw-blog-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.tw-blog-header-icon {
  font-size: 26px;
  width: 48px;
  height: 48px;
  background: var(--primary-ultra);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tw-blog-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 3px;
}
.tw-blog-lead { font-size: 12px; color: var(--text-sub); line-height: 1.6; }

/* ── 2カラムグリッド ── */
.tw-article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--section-gap);
}
@media (max-width: 560px) { .tw-article-grid { grid-template-columns: 1fr; } }

/* ── 記事カード（白背景） ── */
.tw-article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.tw-article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.tw-article-thumb-wrap { display: block; text-decoration: none; flex-shrink: 0; }

.tw-article-thumb {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
}
.tw-article-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tw-article-thumb-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 44px;
  line-height: 1;
  opacity: .85;
}
.tw-article-thumb-num {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 900;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.tw-article-thumb::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  pointer-events: none;
}

.tw-article-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tw-article-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 7px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.tw-article-meta a { color: var(--primary-light); text-decoration: none; }
.tw-article-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 7px;
  color: var(--text-main);
}
.tw-article-title a { text-decoration: none; color: inherit; }
.tw-article-card:hover .tw-article-title,
.tw-article-card:hover .tw-article-title a { color: var(--primary); }
.tw-article-excerpt {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}
.tw-article-more { font-size: 12px; font-weight: 700; color: var(--primary); margin-top: 16px; }

/* 記事なし */
.tw-no-articles {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tw-no-articles-icon { font-size: 44px; margin-bottom: 10px; }
.tw-no-articles p    { font-size: 13px; color: var(--text-muted); }

/* ページネーション */
.tw-pagination { margin-top: 28px; display: flex; justify-content: center; }
.tw-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tw-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 8px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: #fff; font-size: 13px; font-weight: 600;
  color: var(--text-sub); text-decoration: none; transition: .15s;
}
.tw-pagination .page-numbers.current,
.tw-pagination .page-numbers:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ════════════════════════════════════════
   記事詳細（single.php）— 白背景コンテンツ
   ════════════════════════════════════════ */

/* ── 記事本文エリア（白カード） ── */
.tw-single-main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
  min-width: 0;
}
@media (max-width: 560px) { .tw-single-main { padding: 20px 16px; } }

.tw-single-meta-top {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.tw-single-meta-top a { color: var(--primary-light); text-decoration: none; }

.tw-single-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 20px;
  color: var(--text-main);
}

.tw-single-thumbnail {
  margin-bottom: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--primary-ultra);
  box-shadow: var(--shadow);
  aspect-ratio: 1200 / 630;
}
.tw-single-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tw-single-thumbnail-placeholder {
  height: 100%;
  min-height: 240px;
  padding: 28px;
  background:
    radial-gradient(circle at 86% 78%, rgba(255,255,255,.24) 0 54px, transparent 55px),
    linear-gradient(135deg, #1a5f9e 0%, #4f86c8 48%, #ef4f9a 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}
.tw-single-thumbnail-kicker {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .8px;
  opacity: .86;
}
.tw-single-thumbnail-title {
  max-width: 620px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.45;
}
@media (max-width: 560px) {
  .tw-single-thumbnail-placeholder {
    min-height: 190px;
    padding: 20px;
  }
  .tw-single-thumbnail-title {
    font-size: 17px;
  }
}

/* ── 記事本文コンテンツ ── */
.tw-single-content {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-main);
  counter-reset: ks-h2;
}

/* h2: numbered section card */
.tw-single-content h2 {
  counter-increment: ks-h2;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 52px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-ultra);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 16px;
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}
.tw-single-content h2:first-child { margin-top: 34px; }
.tw-single-content h2::before {
  content: counter(ks-h2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px; min-width: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 900;
  flex-shrink: 0;
}

/* h3 は content.css の共通デザインに統一 */

.tw-single-content p             { margin-bottom: 14px; }
.tw-single-content ul,
.tw-single-content ol            { padding-left: 22px; margin-bottom: 16px; }
.tw-single-content li            { margin-bottom: 7px; line-height: 1.75; }
.tw-single-content a             { color: var(--primary); }
.tw-single-content strong        { font-weight: 700; }
.tw-single-content .tw-marker,
.tw-single-content mark {
  font-weight: 700;
  background: linear-gradient(transparent 58%, #fff0a8 58%);
  padding: 0 .08em;
  color: inherit;
}
.tw-single-content img           { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 6px 0; }
.tw-single-content pre           { background: #1a2a3a; color: #e0f0ff; padding: 14px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 12.5px; line-height: 1.6; margin-bottom: 12px; }
.tw-single-content code          { background: var(--primary-ultra); color: var(--primary); padding: 2px 6px; border-radius: 4px; font-size: 12.5px; }
.tw-single-content table {
  display: table;
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  margin: 12px 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow);
}
.tw-single-content th,
.tw-single-content td {
  min-width: 120px;
  padding: 9px 11px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}
.tw-single-content th {
  background: #c4dffb;
  color: #2f6fae;
  font-weight: 800;
}
.tw-single-content tr:last-child td { border-bottom: 0; }
.tw-single-content th:last-child,
.tw-single-content td:last-child { border-right: 0; }

@media (max-width: 560px) {
  .tw-single-content table {
    font-size: 12px;
  }
  .tw-single-content th,
  .tw-single-content td {
    min-width: 0;
    padding: 8px 9px;
    overflow-wrap: anywhere;
  }
}

/* callout / warn / timeline / checklist */
.tw-info-box,
.callout {
  background: var(--primary-ultra);
  border-left: 4px solid var(--primary);
  padding: 10px 14px;
  margin: 10px 0;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.6;
}
.callout strong { color: var(--primary); }
.tw-info-box--yellow,
.tw-single-content > .tw-info-box:not(:first-of-type) {
  background: #fff8e1;
  background: color-mix(in oklab, var(--yellow) 14%, #fff);
  border-left-color: #f0b429;
}
.tw-info-box--yellow strong,
.tw-single-content > .tw-info-box:not(:first-of-type) strong {
  color: #7a5200;
}
.tw-note,
.warn {
  background: #fff8e6;
  border-left: 4px solid var(--yellow);
  padding: 10px 14px;
  margin: 10px 0;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: #5a4500;
  line-height: 1.6;
}

/* 記事導入の吹き出し */
.tw-article-speech {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 18px 0 24px;
}
.tw-article-speech-avatar {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
}
.tw-article-speech-bubble {
  position: relative;
  padding: 14px 16px;
  border: 1px solid #c7deef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(23, 102, 179, .08);
}
.tw-article-speech-bubble::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -9px;
  width: 16px;
  height: 16px;
  border-bottom: 1px solid #c7deef;
  border-left: 1px solid #c7deef;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}
.tw-article-speech-bubble p {
  position: relative;
  margin: 0;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}
@media (max-width: 560px) {
  .tw-article-speech { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; margin: 16px 0 20px; }
  .tw-article-speech-avatar { width: 76px; height: 76px; }
  .tw-article-speech-bubble { padding: 11px 13px; }
  .tw-article-speech-bubble p { font-size: 13px; }
}

/* 記事内CTAボタン（アフィリエイト等） */
.tw-single-content .tw-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 360px;
  margin: 16px auto;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a3d 0%, #ff6a00 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tw-single-content .tw-cta-btn::after { content: '›'; font-size: 20px; line-height: 1; }
.tw-single-content .tw-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(255, 106, 0, 0.34); }

/* 記事内 公式サイトなどへのテキストリンク（見やすいボックス） */
.tw-single-content .tw-official-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 16px 0;
  padding: 13px 16px;
  background: linear-gradient(180deg, #fff6ef 0%, #fff 70%);
  border: 1px solid #ffd3ad;
  border-left: 4px solid #ff6a00;
  border-radius: 10px;
}
.tw-single-content .tw-official-link-label {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #b34700;
  white-space: nowrap;
}
.tw-single-content .tw-official-link-label::after { content: '→'; margin-left: 10px; color: #ff8a3d; font-weight: 900; }
.tw-single-content .tw-official-link a {
  font-size: 14.5px;
  font-weight: 800;
  color: #ff6a00;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tw-single-content .tw-official-link a:hover { color: #d95a00; }
@media (max-width: 600px) {
  .tw-single-content .tw-official-link-label::after { display: none; }
}

/* 記事内バナー広告（アフィリエイト）: 中央寄せ＋レスポンシブ */
.tw-single-content .tw-cta-banner { text-align: center; margin: 18px 0; }
.tw-single-content .tw-cta-banner a { display: inline-block; line-height: 0; }
.tw-single-content .tw-cta-banner a img { max-width: 100%; height: auto; border-radius: 8px; }
.tw-single-content .tw-cta-banner a:hover img { opacity: .92; }

.tw-ticket-key-points {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: var(--primary-ultra);
}
.tw-ticket-key-points--yellow {
  background: #fff8e1;
  background: color-mix(in oklab, var(--yellow) 14%, #fff);
  border-left-color: #f0b429;
}
.tw-ticket-key-points--yellow .tw-ticket-key-points-title { color: #7a5200; }
.tw-ticket-key-points-title { margin: 0 0 10px; color: var(--text-main); font-weight: 800; }
.tw-ticket-key-points-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tw-ticket-key-points-list li {
  position: relative;
  padding-left: 16px;
  line-height: 1.65;
}
.tw-ticket-key-points-list li::before {
  content: '';
  position: absolute;
  top: .7em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.tw-single-content .callout.tw-ticket-callout {
  display: block;
}
.tw-ticket-callout strong { display: block; margin-bottom: 8px; line-height: 1.45; }
.tw-ticket-callout-text { display: block; line-height: 1.7; }
.tw-ticket-note {
  margin: 16px 0;
  padding: 15px 18px;
  line-height: 1.8;
}
.tw-ticket-note strong { display: block; margin-bottom: 7px; }
.tw-ticket-note span { display: block; }
.tw-ticket-reason-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.tw-ticket-reason-list li {
  padding: 13px 15px;
  border: 1px solid #cfe3f5;
  border-radius: 8px;
  background: #f8fcff;
  line-height: 1.7;
}
.tw-ticket-reason-list strong { display: block; margin-bottom: 4px; color: var(--primary); }
.timeline { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.timeline-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border);
  font-size: 12px;
}
.timeline-row.peak { border-left-color: var(--red);    background: #fef5f5; }
.timeline-row.good { border-left-color: var(--green);  background: #f0faf5; }
.timeline-row.warn { border-left-color: var(--yellow); background: #fff8e6; }
.timeline-time   { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--text-main); font-size: 12px; line-height: 1.45; }
.timeline-action { color: var(--text-sub); line-height: 1.55; }
.timeline-action strong { color: var(--text-main); font-weight: 700; }
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 10px 0;
}
@media (max-width: 500px) { .checklist { grid-template-columns: 1fr; } }
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
  transition: background .15s;
}
.checklist-item:hover { background: var(--primary-ultra); }
.checklist-item input[type="checkbox"] { margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }

/* ── おすすめ記事 ── */
.tw-recommend-section {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.tw-recommend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.tw-recommend-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--text-main);
}
.tw-recommend-head a {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}
.tw-recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tw-recommend-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.tw-recommend-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.tw-recommend-thumb {
  display: flex;
  aspect-ratio: 1200 / 630;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-pale), var(--primary-light));
  text-decoration: none;
}
.tw-recommend-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tw-recommend-thumb-emoji {
  font-size: 28px;
}
.tw-recommend-body {
  padding: 12px;
}
.tw-recommend-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.tw-recommend-body h3 {
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0 0 7px;
}
.tw-recommend-body h3 a {
  color: var(--text-main);
  text-decoration: none;
}
.tw-recommend-body h3 a:hover {
  color: var(--primary);
}
.tw-recommend-body p {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text-sub);
  margin: 0;
}
@media (max-width: 700px) {
  .tw-recommend-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 目次（サイドバー内） ── */
.toc-list { display: flex; flex-direction: column; gap: 1px; }
.toc-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--text-sub);
  text-decoration: none;
  transition: .15s;
  line-height: 1.4;
}
.toc-list a:hover,
.toc-list a.is-active {
  background: #fff1f7;
  background: color-mix(in oklab, var(--p) 8%, #fff);
  color: #bd3c73;
}
.toc-list a .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px; min-width: 18px;
  background: #fff1f7;
  background: color-mix(in oklab, var(--p) 10%, #fff);
  color: #bd3c73;
  border-radius: 50%;
  font-family: 'Nunito', sans-serif;
  font-size: 9px; font-weight: 800;
  flex-shrink: 0;
}
.toc-list a.is-active .num { background: var(--p); color: #fff; }
.toc-list a.tw-toc-sub { padding-left: 14px; font-size: 11px; }

/* ── 前後記事ナビ ── */
.tw-post-nav-outer {
  max-width: var(--content-width);
  margin: 16px auto 0;
  padding: 0 16px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) { .tw-post-nav-outer { grid-template-columns: 1fr; } }
.tw-post-nav-outer a {
  display: block;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  font-size: 13px;
  transition: .15s;
  box-shadow: var(--shadow);
}
.tw-post-nav-outer a:hover { border-color: var(--primary-light); background: var(--primary-ultra); }
.tw-post-nav-label { font-size: 10px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.tw-post-nav-title  { font-weight: 700; line-height: 1.45; font-size: 13px; }

@media (min-width: 781px) {
  .tw-cat-list li a,
  .tw-cat-list > li > a,
  .tw-quicklink-list li a,
  .tw-widget .search-field,
  .tw-widget .search-submit,
  .tw-article-more,
  .tw-recommend-head a,
  .toc-list a,
  .tw-post-nav-title {
    font-size: 13px;
  }
  .tw-recent-title,
  .tw-blog-lead,
  .tw-article-excerpt,
  .tw-single-meta-top,
  .tw-info-box,
  .callout,
  .tw-note,
  .warn,
  .timeline-row,
  .timeline-time,
  .checklist-item,
  .tw-recommend-body p,
  .tw-post-nav-outer a {
    font-size: 14px;
  }
  .tw-blog-title,
  .tw-single-content h2,
  .tw-recommend-head h2 {
    font-size: 19px;
  }
  .tw-article-title,
  .tw-single-content h3,
  .tw-recommend-body h3 {
    font-size: 18px;
  }
  .tw-single-content h3 {
    margin: 30px 0 18px;
  }
  .tw-single-content,
  .tw-single-content pre,
  .tw-single-content code {
    font-size: 15.5px;
  }
  .tw-single-title {
    font-size: 24px;
  }
  .tw-single-thumbnail-title {
    font-size: 24px;
  }
  .tw-article-meta,
  .tw-recent-date,
  .tw-recommend-meta,
  .tw-post-nav-label,
  .toc-list a.tw-toc-sub {
    font-size: 12px;
  }
}

/* 特Pの公式リンクは、広告ボタンではなく記事内の参考リンクとして控えめに見せる */
.tw-single-content .tw-official-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 14px;
  margin: 18px 0 20px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fcff 0%, #fff 100%);
  border: 1px solid var(--line2);
  border-left: 3px solid color-mix(in oklab, var(--b) 45%, #fff);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(61, 125, 200, .07);
}
.tw-single-content .tw-official-link-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-sub);
  letter-spacing: .02em;
}
.tw-single-content .tw-official-link-label::after {
  display: none;
}
.tw-single-content .tw-official-link a {
  justify-self: start;
  color: var(--b);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 4px;
}
.tw-single-content .tw-official-link a:hover {
  color: #2f6fae;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .tw-single-content .tw-official-link {
    grid-template-columns: 1fr;
    padding: 13px 14px;
  }
}
