/*
タノタビ Visual Refresh(2026-10-16)

目的: 旅行サイトとして「明るい・清潔・写真が映える・スマホで読みやすい・回遊しやすい」体裁に
共通化する。新しい記事が追加されても同じ体裁になるよう、記事本文のHTMLは書き換えずCSSだけで整える。

原則
- STORK19本体・記事本文・URL・タクソノミーは変更しない
- 本文を隠さない(display:none での本文非表示・body{overflow:hidden}をしない)
- ブランド(ティール+イエロー)は維持し、コントラストだけを上げる
- STORK19の変数(--main-*, --stk-*)はデザイントークンから供給する

構成
  1. Design tokens
  2. ベース(背景・文字・リンク)
  3. ヘッダー / グローバルナビ
  4. レイアウト(本文カラム・サイドバーのカード化)
  5. 記事ページ(タイトル・メタ・アイキャッチ・SNS・見出し・本文要素・装飾・CTA・記事フッター・回遊)
  6. 目次(table-of-contents-plus)
  7. 一覧(TOP / カテゴリ / タグ / ページ送り)
  8. TOPセクション
  9. サイドバー
 10. フッター / パンくず
 11. モバイル
*/

/* ===== 1. Design tokens ===== */
:root {
  /* color */
  --rt-primary: #0b7d9a;          /* 海のティール(白文字とのコントラスト 4.7:1) */
  --rt-primary-strong: #08657d;
  --rt-primary-soft: #e7f4f8;
  --rt-primary-line: #b9dde8;
  --rt-accent: #ffd84a;           /* ロゴのイエロー */
  --rt-accent-strong: #f2b705;
  --rt-accent-soft: #fff6d6;
  --rt-text: #24313a;
  --rt-text-muted: #5d6b74;
  --rt-bg: #f3f6f8;
  --rt-surface: #ffffff;
  --rt-border: #e1e8ec;
  --rt-danger: #c93a3a;
  --rt-footer-bg: #163845;

  /* typography */
  --rt-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "游ゴシック体", YuGothic, "Yu Gothic", Meiryo, sans-serif;
  --rt-font-size-body: 1rem;      /* 16px */
  --rt-line-height: 1.9;
  --rt-line-height-tight: 1.5;

  /* spacing / radius / elevation */
  --rt-space-1: 4px;
  --rt-space-2: 8px;
  --rt-space-3: 12px;
  --rt-space-4: 16px;
  --rt-space-5: 24px;
  --rt-space-6: 32px;
  --rt-space-7: 48px;
  --rt-radius-s: 6px;
  --rt-radius-m: 12px;
  --rt-radius-l: 18px;
  --rt-radius-pill: 999px;
  --rt-shadow: 0 1px 2px rgba(16, 45, 58, .05), 0 6px 18px rgba(16, 45, 58, .06);
  --rt-shadow-hover: 0 2px 4px rgba(16, 45, 58, .06), 0 12px 28px rgba(16, 45, 58, .12);

  /* STORK19 variables fed from the tokens */
  --main-text-color: var(--rt-text);
  --main-link-color: var(--rt-primary);
  --main-link-color-hover: var(--rt-primary-strong);
  --main-ttl-bg: var(--rt-primary);
  --main-ttl-color: #fff;
  --header-bg: var(--rt-primary);
  --header-bg-overlay: var(--rt-primary-strong);
  --header-logo-color: var(--rt-accent);
  --header-text-color: #fff;
  --inner-content-bg: transparent;
  --label-bg: var(--rt-accent);
  --label-text-color: var(--rt-text);
  --side-text-color: var(--rt-text);
  --footer-bg: var(--rt-footer-bg);
  --footer-text-color: #c9dbe2;
  --footer-link-color: #fff;
  --stk-base-font-family: var(--rt-font);
  --stk-base-font-size-pc: 106%;
  --stk-base-font-size-sp: 100%;
  --stk-line_height: var(--rt-line-height);
  --stk-heading-line_height: var(--rt-line-height-tight);
  --stk-margin: 1.4em;
  --stk-heading-margin_top: 2.4em;
  --stk-heading-margin_bottom: 1em;
  --stk-h2-margin-rl: 0;
  --stk-el-margin-rl: 0;
  --stk-h2-border_radius: var(--rt-radius-m);
  --stk-post-radius: var(--rt-radius-l);
  --stk-postlist-radius: var(--rt-radius-m);
  --stk-cardlist-radius: var(--rt-radius-m);
  --stk-btn-border_radius: var(--rt-radius-s);
  --stk-box-border_radius: var(--rt-radius-m);
  --stk-shadow-s: var(--rt-shadow);
}

/* ===== 2. ベース ===== */
body {
  background: var(--rt-bg);
  color: var(--rt-text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rt-primary); }
a:hover { color: var(--rt-primary-strong); }
::selection { background: var(--rt-accent-soft); }
:focus-visible { outline: 3px solid var(--rt-accent-strong); outline-offset: 2px; }

/* ===== 3. ヘッダー ===== */
.stk_header {
  background: linear-gradient(100deg, var(--rt-primary-strong) 0%, var(--rt-primary) 55%, #0e93b4 100%);
  box-shadow: 0 2px 10px rgba(8, 60, 78, .18);
}
.stk_header .site__logo__title,
.stk_header .site__logo__title a {
  color: var(--rt-accent);
  letter-spacing: .08em;
  font-weight: 800;
}
.ul__g_nav > .menu-item > a { font-weight: 600; letter-spacing: .04em; }
.stk_header .nav_btn { color: #fff; }

/* ===== 4. レイアウト ===== */
#inner-content {
  background: transparent;
  box-shadow: none;
  padding-top: var(--rt-space-6);
}
/* 記事・固定ページの本文カラムを白いカードにする */
.single #main > article,
.page #main > article {
  background: var(--rt-surface);
  border-radius: var(--rt-radius-l);
  box-shadow: var(--rt-shadow);
  padding: var(--rt-space-6) clamp(16px, 4vw, 44px) var(--rt-space-7);
}
.single #single_foot,
.single #np-post,
.single #related-box,
.single #respond {
  background: var(--rt-surface);
  border-radius: var(--rt-radius-l);
  box-shadow: var(--rt-shadow);
  padding: var(--rt-space-5) clamp(16px, 3vw, 32px);
  margin-top: var(--rt-space-5);
}
.single #single_foot { background: transparent; box-shadow: none; padding: 0; }

/* ===== 5. 記事ページ ===== */
/* アフィリエイト表記(記事タイトル上のテキストウィジェット) */
#main > article > .widget_text {
  font-size: 12px;
  color: var(--rt-text-muted);
  margin: 0 0 var(--rt-space-4);
  padding: 0;
}
#main > article > .widget_text p { margin: 0; }

.article-header .byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rt-space-2) var(--rt-space-3);
  font-size: 13px;
  color: var(--rt-text-muted);
  margin-bottom: var(--rt-space-3);
}
.cat-name {
  background: var(--rt-accent);
  color: var(--rt-text);
  border-radius: var(--rt-radius-pill);
  padding: .25em .9em;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
}
.single .byline:has(.cat-name:not(.noposition)) { padding-top: 0; }
.single .byline:has(.cat-name:not(.noposition)) .cat-name,
.article-header .cat-name { position: static; top: auto; left: auto; }
.time__date { color: var(--rt-text-muted); }
.entry-title.post-title {
  font-size: clamp(1.35em, 3.4vw, 1.85em);
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--rt-text);
  margin: 0 0 var(--rt-space-5);
}
.stk_post_main_thum,
.article-header .eyecatch {
  margin: 0 0 var(--rt-space-5);
}
.stk_post_main_thum img,
.article-header .eyecatch img {
  border-radius: var(--rt-radius-m);
  width: 100%;
  height: auto;
}

/* SNSボタン: 色はサービスのまま、高さと影を抑える */
.sns_btn__ul { gap: 8px; margin: 0 0 var(--rt-space-5); }
.sns_btn__link {
  box-shadow: none !important;
  border-radius: 10px;
  padding: .55em .2em;
}
.sns_btn__link:hover { transform: translate3d(0, -2px, 0); }

/* 本文 */
.entry-content {
  font-size: var(--rt-font-size-body);
  line-height: var(--rt-line-height);
  letter-spacing: .03em;
  color: var(--rt-text);
  overflow-wrap: anywhere;
}
.entry-content p { margin: 0 0 var(--stk-margin); }
/* 旧記事の空段落(<p>&nbsp;</p>): テキストは残し、高さだけを詰める(inc/tanotabi-presentation.php) */
.entry-content p.rt-gap {
  height: .5em;
  margin: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}
.entry-content a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
.entry-content strong, .entry-content b { font-weight: 700; }
.entry-content .red { color: var(--rt-danger); }

/* 見出し */
#main .entry-content h2:not([class*=is-style-style]) {
  background: var(--rt-primary);
  color: #fff;
  font-size: clamp(1.15em, 2.4vw, 1.3em);
  font-weight: 800;
  line-height: var(--rt-line-height-tight);
  letter-spacing: .03em;
  padding: .8em 1em .8em 1.1em;
  margin: 2.6em 0 1.1em;
  border-radius: var(--rt-radius-m);
  box-shadow: inset 6px 0 0 var(--rt-accent);
}
#main .entry-content h3:not([class*=is-style-style]) {
  border: none;
  border-left: 5px solid var(--rt-primary);
  border-bottom: 1px solid var(--rt-border);
  background: linear-gradient(90deg, var(--rt-primary-soft), rgba(231, 244, 248, 0) 70%);
  font-size: clamp(1.08em, 2vw, 1.16em);
  font-weight: 800;
  line-height: var(--rt-line-height-tight);
  padding: .6em .8em;
  margin: 2.2em 0 1em;
  border-radius: 0 var(--rt-radius-s) 0 0;
}
#main .entry-content h4:not([class*=is-style-style]) {
  border: none;
  position: relative;
  font-size: 1.04em;
  font-weight: 700;
  padding: .2em 0 .2em 1.1em;
  margin: 1.8em 0 .8em;
}
#main .entry-content h4:not([class*=is-style-style])::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .6em;
  height: .6em;
  border-radius: 2px;
  background: var(--rt-accent-strong);
}

/* リスト */
.entry-content ul:not([class]),
.entry-content ol:not([class]) {
  margin: 0 0 var(--stk-margin);
}
.entry-content li { margin-bottom: .45em; }

/* 表 */
#main .entry-content table:not(.tablepress) {
  border-collapse: collapse;
  border: 1px solid var(--rt-border);
  background: var(--rt-surface);
  font-size: .94em;
  line-height: 1.7;
}
#main .entry-content table:not(.tablepress) th,
#main .entry-content table:not(.tablepress) td {
  border: 1px solid var(--rt-border);
  padding: .6em .8em;
  vertical-align: top;
}
#main .entry-content table:not(.tablepress) th {
  background: var(--rt-primary-soft);
  font-weight: 700;
}
#main .entry-content table:not(.tablepress) tr:nth-child(even) td { background: #fafcfd; }

/* 引用 */
.entry-content blockquote {
  margin: 0 0 var(--stk-margin);
  padding: 1em 1.2em;
  border: none;
  border-left: 4px solid var(--rt-primary-line);
  background: var(--rt-bg);
  border-radius: 0 var(--rt-radius-m) var(--rt-radius-m) 0;
  color: var(--rt-text-muted);
}

/* 画像・キャプション */
.entry-content img { border-radius: var(--rt-radius-s); height: auto; }
.entry-content img[width="1"], .entry-content img[height="1"] { border-radius: 0; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text,
.entry-content figcaption {
  font-size: 12px;
  color: var(--rt-text-muted);
  text-align: center;
  margin-top: .4em;
}

/* 賢威8の装飾(本文HTMLはそのまま) */
.entry-content .box8,
.entry-content .box27,
.entry-content .box28 {
  margin: 0 0 var(--stk-margin);
  padding: 1.1em 1.3em;
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-m);
  background: #f8fbfc;
}
.entry-content .box8 { border-left: 4px solid var(--rt-primary); }
/* box27 / box28 は動画配信サービスの案内(CTAを含む)で使われている */
.entry-content .box27,
.entry-content .box28 {
  border: 2px solid var(--rt-accent);
  background: var(--rt-accent-soft);
}
.entry-content .box8 > :last-child,
.entry-content .box27 > :last-child,
.entry-content .box28 > :last-child { margin-bottom: 0; }

/* CTA(賢威8のボタン・[su_button] 互換) */
.entry-content a.btn,
.entry-content a.rt-su-button {
  display: inline-block;
  position: relative;
  max-width: 100%;
  padding: .85em 2.6em .85em 1.6em;
  border-radius: var(--rt-radius-pill);
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .15);
  transition: transform .15s ease, box-shadow .15s ease;
}
.entry-content a.btn:hover,
.entry-content a.rt-su-button:hover {
  color: #fff;
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}
.entry-content a.btn::after,
.entry-content a.rt-su-button::after {
  content: "\f054";
  font-family: var(--stk-font-awesome-free, "Font Awesome 6 Free");
  font-weight: 900;
  font-size: .8em;
  position: absolute;
  right: 1.1em;
  top: 50%;
  transform: translateY(-50%);
}
.entry-content a.btn .icon_arrow_s_right { display: none; }
.entry-content a.btn.btn_orange { background: #e98a00; }
.entry-content a.btn.btn_bluegreen { background: #0a9aa6; }
.entry-content a.rt-su-button { background: var(--rt-primary); }
.rt-su-button-wrap { display: block; text-align: center; margin: 0 0 var(--stk-margin); }

/* 記事フッター: カテゴリー・タグ */
.article-footer { margin-top: var(--rt-space-6); }
.article-footer .post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--rt-space-2);
  padding: 0;
}
.article-footer .post-categories li { list-style: none; margin: 0; padding: 0; }
.article-footer .post-categories li::before { content: none; }
.article-footer .post-categories a {
  display: inline-block;
  padding: .35em .95em;
  border-radius: var(--rt-radius-pill);
  background: var(--rt-primary-soft);
  color: var(--rt-primary-strong);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.article-footer .post-categories.tags a {
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  color: var(--rt-text-muted);
  font-weight: 500;
}
.article-footer .post-categories.tags a::before { content: "#"; margin-right: .15em; opacity: .6; }

/* 回遊: 関連記事・前後の記事 */
#related-box .h_ttl,
#related-box .related-h {
  background: none;
  color: var(--rt-text);
  padding: 0;
  margin: 0 0 var(--rt-space-4);
  font-size: 1.1em;
  font-weight: 800;
}
#related-box .related-h .gf {
  color: var(--rt-primary);
  font-size: 12px;
  letter-spacing: .12em;
  display: block;
}
#related-box .h_ttl::after { color: var(--rt-text); font-size: 1em; }
#related-box ul .related_newpost__li {
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-m);
  overflow: hidden;
}
#related-box ul .related_newpost__li a { display: block; height: 100%; }
#related-box .related_newpost__li .eyecatch img { border-radius: 0; }
#related-box .related_newpost__li .time__date { display: block; padding: .6em .8em 0; font-size: 11px; }
#related-box .related_newpost__li .ttl {
  padding: .3em .8em .9em;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}
#np-post a { border-radius: var(--rt-radius-m); }
#np-post .eyecatch img { border-radius: var(--rt-radius-s); }
#np-post .ttl { font-size: 13px; font-weight: 700; line-height: 1.55; }

/* ===== 6. 目次(table-of-contents-plus) ===== */
#toc_container {
  border: 1px solid var(--rt-primary-line) !important;
  border-radius: var(--rt-radius-m);
  background: #f7fbfc !important;
  padding: 1em 1.3em !important;
  margin: 0 0 var(--rt-space-6);
}
#toc_container p.toc_title { font-size: 1em; color: var(--rt-text); }
#toc_container .toc_title::before { color: var(--rt-primary); }
#toc_container .toc_list { max-width: none; }
#toc_container li { margin: .55em 0; line-height: 1.55; }
#toc_container li li { margin: .35em 0; font-size: .95em; }
#toc_container .toc_number { background-color: var(--rt-primary); }
#toc_container a { color: var(--rt-text); }
#toc_container a:hover { color: var(--rt-primary); }

/* ===== 7. 一覧 ===== */
.archive-title {
  font-size: clamp(1.25em, 3vw, 1.6em);
  font-weight: 800;
  border-bottom: none;
  padding: 0;
  margin: 0 0 var(--rt-space-5);
}
.archive-title::before { color: var(--rt-primary); opacity: 1 !important; letter-spacing: .14em; font-weight: 700; }

.archives-list .post-list {
  background: var(--rt-surface);
  border-radius: var(--rt-radius-m);
  box-shadow: var(--rt-shadow);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.archives-list .post-list:hover {
  box-shadow: var(--rt-shadow-hover);
  transform: translateY(-2px);
}
.archives-list .post-list__link { color: var(--rt-text); }
.archives-list .eyecatch img { border-radius: 0; }
.archives-list .eyecatch .cat-name { top: 10px; left: 10px; right: auto; font-size: 11px; }
.archives-list .entry-title {
  font-size: 1em;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archives-list .description,
.archives-list .description p {
  color: var(--rt-text-muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.archives-list .description p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.card-list .archives-list-entry-content { padding: .9em 1.1em 1.1em; }
.simple-list .post-list { margin-bottom: var(--rt-space-4); }
.simple-list .post-list__link { padding: var(--rt-space-3); align-items: center; }
.simple-list .eyecatch img { border-radius: var(--rt-radius-s); }

.pagination .page-numbers,
.page-links .post-page-numbers {
  border: 1px solid var(--rt-border);
  background: var(--rt-surface);
  color: var(--rt-text);
  border-radius: var(--rt-radius-s);
  min-width: 2.9em;
  font-weight: 700;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.page-links .post-page-numbers.current {
  background: var(--rt-primary);
  border-color: var(--rt-primary);
  color: #fff;
}
.pagination .page-numbers.dots { background: none; border: none; }

/* ===== 8. TOPセクション ===== */
.rt-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--rt-radius-l);
  margin: 0 0 var(--rt-space-6);
  padding: clamp(24px, 5vw, 48px) clamp(20px, 5vw, 48px);
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 216, 74, .35) 0%, rgba(255, 216, 74, 0) 45%),
    linear-gradient(120deg, var(--rt-primary-strong) 0%, var(--rt-primary) 50%, #14a6c4 100%);
  box-shadow: var(--rt-shadow);
}
.rt-hero::after {
  /* 波のモチーフ(装飾、画像を使わない) */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 36px;
  background: radial-gradient(28px 18px at 28px 36px, rgba(255, 255, 255, .14) 98%, transparent 100%) repeat-x;
  background-size: 56px 36px;
  pointer-events: none;
}
.rt-hero__body { position: relative; z-index: 1; max-width: 680px; }
.rt-hero__eyebrow {
  display: inline-block;
  margin: 0 0 var(--rt-space-3);
  padding: .3em .9em;
  border-radius: var(--rt-radius-pill);
  background: rgba(255, 255, 255, .16);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.rt-hero__title {
  margin: 0 0 var(--rt-space-3);
  font-size: clamp(1.45em, 3.2vw, 1.85em);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .03em;
}
.rt-hero__lead { margin: 0 0 var(--rt-space-5); font-size: 14px; opacity: .92; line-height: 1.7; }
.rt-hero__search .searchform { position: relative; max-width: 520px; }
.rt-hero__search .searchform_input {
  width: 100%;
  height: 52px;
  padding: 0 56px 0 20px;
  border: none;
  border-radius: var(--rt-radius-pill);
  background: #fff;
  color: var(--rt-text);
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.rt-hero__search .searchsubmit {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--rt-accent);
  color: var(--rt-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rt-hero__search .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rt-sp-only { display: none; }

.rt-home-section { margin: 0 0 var(--rt-space-7); }
.rt-home-section__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3em .8em;
  font-size: 1.2em;
  font-weight: 800;
  letter-spacing: .03em;
  margin: 0 0 var(--rt-space-4);
  padding-left: .7em;
  border-left: 5px solid var(--rt-accent-strong);
  line-height: 1.4;
}
.rt-home-section__sub { font-size: 12px; font-weight: 500; color: var(--rt-text-muted); }
.rt-home-section__more {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.rt-home-section__more::after { content: " ›"; }

.rt-themes__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rt-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rt-theme { margin: 0; padding: 0; list-style: none; }
.rt-theme::before { content: none; }
.rt-theme__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--rt-space-3);
  height: 100%;
  padding: var(--rt-space-4);
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-m);
  color: var(--rt-text);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.rt-theme__link:hover {
  color: var(--rt-text);
  border-color: var(--rt-primary-line);
  box-shadow: var(--rt-shadow-hover);
  transform: translateY(-2px);
}
.rt-theme__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rt-primary-soft);
  color: var(--rt-primary);
  font-size: 18px;
}
.rt-theme:nth-child(even) .rt-theme__icon { background: var(--rt-accent-soft); color: #b78400; }
.rt-theme__text { display: flex; flex-direction: column; min-width: 0; }
.rt-theme__label { font-weight: 800; font-size: 15px; line-height: 1.4; }
.rt-theme__desc { font-size: 12px; color: var(--rt-text-muted); line-height: 1.5; }
.rt-theme__count { position: absolute; top: 8px; right: 10px; font-size: 11px; color: var(--rt-text-muted); white-space: nowrap; }
.rt-theme__text { padding-right: 2.6em; }

.rt-regions {
  background: var(--rt-surface);
  border-radius: var(--rt-radius-l);
  box-shadow: var(--rt-shadow);
  padding: var(--rt-space-5);
}
.rt-region { display: flex; gap: var(--rt-space-3); padding: var(--rt-space-3) 0; border-top: 1px dashed var(--rt-border); }
.rt-region:first-of-type { border-top: none; }
.rt-region__name { flex: 0 0 6.5em; margin: 0; font-size: 13px; font-weight: 800; color: var(--rt-primary-strong); line-height: 2.2; }
.rt-region__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rt-region__chips li { margin: 0; padding: 0; list-style: none; }
.rt-region__chips li::before { content: none; }
.rt-chip {
  display: inline-block;
  padding: .3em .85em;
  border-radius: var(--rt-radius-pill);
  background: var(--rt-bg);
  border: 1px solid var(--rt-border);
  color: var(--rt-text);
  font-size: 13px;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.rt-chip:hover { background: var(--rt-primary); border-color: var(--rt-primary); color: #fff; }

.rt-mini-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--rt-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rt-mini-card { margin: 0; padding: 0; list-style: none; }
.rt-mini-card::before { content: none; }
.rt-mini-card a {
  display: block;
  height: 100%;
  background: var(--rt-surface);
  border-radius: var(--rt-radius-m);
  overflow: hidden;
  box-shadow: var(--rt-shadow);
  color: var(--rt-text);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.rt-mini-card a:hover { color: var(--rt-text); box-shadow: var(--rt-shadow-hover); transform: translateY(-2px); }
.rt-mini-card__fig { margin: 0; aspect-ratio: 16 / 10; background: var(--rt-primary-soft); }
.rt-mini-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-mini-card__noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--rt-primary-line); font-size: 28px; }
.rt-mini-card__title {
  margin: .7em .8em .9em;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rt-latest-title { margin-top: 0; }

/* ===== 9. サイドバー ===== */
.sidebar .widget {
  background: var(--rt-surface);
  border-radius: var(--rt-radius-m);
  box-shadow: var(--rt-shadow);
  padding: var(--rt-space-4);
  margin-bottom: var(--rt-space-5);
}
/* 広告ウィジェット: 枠だけ。中身(広告)には触れない */
.sidebar .widget_text { padding: var(--rt-space-2); background: transparent; box-shadow: none; }
#inner-content .sidebar .widgettitle {
  background: none;
  color: var(--rt-text);
  margin: 0 0 var(--rt-space-3);
  padding: 0 0 0 .7em;
  border-left: 4px solid var(--rt-accent-strong);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}
.sidebar .widget_search .searchform_input {
  border-radius: var(--rt-radius-pill);
  border: 1px solid var(--rt-border);
  background: var(--rt-bg);
}
.rt-side-nav ul { margin: 0; padding: 0; }
.rt-side-nav .cat-item a { display: flex; align-items: center; gap: .5em; color: var(--rt-text); }
.rt-side-nav .rt-count {
  margin-left: auto;
  margin-right: 1.2em;
  font-size: 11px;
  padding: .1em .6em;
  border-radius: var(--rt-radius-pill);
  background: var(--rt-bg);
  color: var(--rt-text-muted);
}
.widget_newentryimagewidget .cat_postlist__li a,
.widget_top-posts a { color: var(--rt-text); }
/* Jetpack 人気記事(タイトルのみのリスト): 番号付きの行にする */
.widget_top-posts ul { margin: 0; padding: 0; counter-reset: rt-rank; }
.widget_top-posts li {
  list-style: none;
  margin: 0;
  padding: .7em 0 .7em 2.2em;
  position: relative;
  border-bottom: 1px dotted var(--rt-border);
  font-size: 14px;
  line-height: 1.6;
}
.widget_top-posts li:last-child { border-bottom: none; }
.widget_top-posts li::before {
  counter-increment: rt-rank;
  content: counter(rt-rank);
  position: absolute;
  left: 0;
  top: .75em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--rt-primary-soft);
  color: var(--rt-primary-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6em;
  text-align: center;
}
.widget_top-posts li:nth-child(-n+3)::before { background: var(--rt-accent); color: var(--rt-text); }
.widget_top-posts a { text-decoration: none; }
.widget_top-posts a:hover { color: var(--rt-primary); }
.widget_newentryimagewidget img { border-radius: var(--rt-radius-s); }

/* ===== 10. フッター / パンくず ===== */
#footer { margin-top: var(--rt-space-7); box-shadow: none; }
#inner-footer { padding-top: var(--rt-space-6); padding-bottom: var(--rt-space-5); }
.footer-links { margin-bottom: var(--rt-space-4); }
.footer-links > .menu { gap: .6em 1.6em; }
.footer-links .menu-item { list-style: none; }
.footer-links a { color: #fff; font-size: 13px; }
.footer-links a::before { color: var(--rt-accent); }
#footer-bottom .copyright { color: var(--footer-text-color); font-size: 12px; }
#breadcrumb { background: transparent; font-size: 12px; color: var(--rt-text-muted); }
#breadcrumb a { color: var(--rt-text-muted); }

#page-top.pt-button { background: var(--rt-primary); border-radius: 50%; }

/* ===== 11. モバイル ===== */
@media (max-width: 767px) {
  #inner-content { padding: var(--rt-space-4) 0 0; }
  .single #main > article,
  .page #main > article {
    border-radius: 0;
    box-shadow: none;
    padding: var(--rt-space-5) var(--rt-space-4) var(--rt-space-6);
  }
  .single #np-post,
  .single #related-box,
  .single #respond { border-radius: 0; padding-left: var(--rt-space-4); padding-right: var(--rt-space-4); }
  .entry-title.post-title { font-size: 1.32em; }
  #main .entry-content h2:not([class*=is-style-style]) { font-size: 1.12em; padding: .75em .9em .75em 1em; }
  /* 表は横にはみ出す前に幅いっぱいへ(旧記事のinline幅指定を上書き) */
  #main .entry-content table:not(.tablepress) { width: 100% !important; font-size: .9em; }
  #main .entry-content table:not(.tablepress) th,
  #main .entry-content table:not(.tablepress) td { padding: .5em .55em; width: auto !important; }
  .entry-content a.btn,
  .entry-content a.rt-su-button { display: block; text-align: center; }
  /* 目次: スマホでは H2 だけを出して短くする(H3 はPCで表示) */
  #toc_container ul ul { display: none; }
  #toc_container { padding: .9em 1em !important; }

  .rt-sp-only { display: inline; }
  .rt-hero { border-radius: 0; margin-left: 0; margin-right: 0; }
  .rt-home-section { margin-left: var(--rt-space-4); margin-right: var(--rt-space-4); margin-bottom: var(--rt-space-6); }
  .rt-latest-title { margin-left: var(--rt-space-4); margin-right: var(--rt-space-4); }
  .rt-themes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rt-space-2); }
  .rt-theme__link { flex-direction: column; align-items: flex-start; gap: var(--rt-space-2); padding: var(--rt-space-3); }
  .rt-theme__desc { display: none; }
  .rt-theme__count { position: static; }
  .rt-theme__text { padding-right: 0; }
  .rt-regions { padding: var(--rt-space-4); border-radius: var(--rt-radius-m); }
  .rt-region { flex-direction: column; gap: var(--rt-space-1); }
  .rt-region__name { flex-basis: auto; line-height: 1.6; }
  .rt-mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rt-space-2); }
  .archives-list, .archive-title, .pagination { margin-left: var(--rt-space-4); margin-right: var(--rt-space-4); }
  .simple-list .post-list { margin-bottom: var(--rt-space-3); }
  .card-list .archives-list-entry-content { padding: .75em .9em .9em; gap: .3em; }
  .card-list .post-list { margin-bottom: var(--rt-space-3); }
  .sidebar { padding: 0 var(--rt-space-4); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .rt-themes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .archives-list .post-list, .rt-theme__link, .rt-mini-card a, .entry-content a.btn { transition: none; }
}
