/*
Theme Name: Tabi Media (BlankSlate Child)
Description: 旅メディア用の BlankSlate 子テーマ。TOP・カテゴリー・新着記事・記事詳細・固定ページのデザインと、スライドバナー(最大5枚・5秒で自動切り替え)を含みます。
Template: blankslate
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: tabi-blankslate-child
*/

/* ==========================================================
   目次
   1. 基本  2. ヘッダー  3. スライドバナー  4. TOP
   5. 共通パーツ(カード・見出し・ボタン・広告)
   6. 一覧ページ  7. 記事詳細  8. 固定ページ用パーツ
   9. サイドバー  10. フッター
   アクセント色は --tb-accent を書き換えると一括で変わります
   ========================================================== */

/* ---------- 1. 基本 ---------- */
body { margin: 0; }
:root {
  --tb-accent: #C2410C;
  --tb-ink: #15181A;
  --tb-muted: #5A5F5C;
  --tb-sub: #3C403D;
  --tb-line: #DEDFD8;
  --tb-ground: #F5F5F1;
  --tb-thumb: #D5D7CF;
  --tb-head: 'Zen Kaku Gothic New', sans-serif;
  --tb-en: 'Barlow Condensed', sans-serif;
}
.tb-page {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--tb-ink);
  background: var(--tb-ground);
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.tb-page *, .tb-page *::before, .tb-page *::after { box-sizing: border-box; }
.tb-page a { color: inherit; text-decoration: none; }
.tb-page a:hover { color: var(--tb-accent); }
.tb-page img { max-width: 100%; height: auto; }
.tb-page h1, .tb-page h2, .tb-page h3, .tb-page p { margin: 0; }
.tb-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.tb-container--narrow { max-width: 1000px; }
.screen-reader-text, .skip-link {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; margin: 0;
  padding: 10px 16px; background: #fff; color: #15181A; z-index: 1000; font-weight: 700;
}
.tb-en { font-family: var(--tb-en); font-weight: 600; letter-spacing: 0.14em; color: var(--tb-muted); }

/* ---------- 2. ヘッダー ---------- */
.tb-header { background: #fff; border-bottom: 1px solid var(--tb-line); }
.tb-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
}
.tb-logo { display: flex; align-items: baseline; gap: 12px; min-height: 44px; }
.tb-logo__name { font-family: var(--tb-head); font-weight: 900; font-size: 24px; letter-spacing: 0.04em; line-height: 44px; }
.tb-logo__sub { font-size: 12px; color: var(--tb-muted); }
.tb-logo img { max-height: 44px; width: auto; display: block; }
.tb-nav {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 4px; max-width: 100%;
  white-space: nowrap; font-weight: 700; font-size: 14px;
}
.tb-nav__link { padding: 10px 12px; min-height: 44px; display: flex; align-items: center; }
.tb-nav__link.is-current { box-shadow: inset 0 -3px 0 var(--tb-accent); }
.tb-iconbtn {
  width: 44px; height: 44px; flex-shrink: 0; border: none; background: transparent; color: inherit;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.tb-searchbar { background: #fff; border-bottom: 1px solid var(--tb-line); }
.tb-searchbar[hidden] { display: none; }
.tb-searchbar__inner { max-width: 1200px; margin: 0 auto; padding: 12px 20px; }
.tb-search { display: flex; gap: 8px; }
.tb-search__input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; font: inherit; font-size: 16px;
  border: 1px solid #9A9E98; border-radius: 4px; background: #fff; color: var(--tb-ink);
}
.tb-search__btn {
  min-height: 48px; padding: 0 24px; border: none; border-radius: 4px; background: var(--tb-ink);
  color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}

/* スマートフォン用メニュー(767px 以下でハンバーガーボタンに切り替え) */
.tb-burger { display: none; margin-right: -10px; }
.tb-drawer { position: fixed; inset: 0; z-index: 1000; }
.tb-drawer[hidden] { display: none; }
.tb-drawer__backdrop { position: absolute; inset: 0; background: rgba(21, 24, 26, 0.55); opacity: 0; transition: opacity 0.25s ease; }
.tb-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); background: #fff;
  padding: 12px 20px 32px; overflow-y: auto; overscroll-behavior: contain; outline: none;
  display: flex; flex-direction: column; gap: 20px;
  transform: translateX(100%); transition: transform 0.25s ease;
}
.tb-drawer.is-open .tb-drawer__backdrop { opacity: 1; }
.tb-drawer.is-open .tb-drawer__panel { transform: none; }
.tb-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-right: -10px; }
.tb-drawer__title { font-family: var(--tb-en); font-weight: 700; font-size: 16px; letter-spacing: 0.14em; color: var(--tb-muted); }
.tb-drawer__nav { display: flex; flex-direction: column; border-top: 2px solid var(--tb-ink); }
.tb-drawer__link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px;
  border-bottom: 1px solid var(--tb-line); font-family: var(--tb-head); font-weight: 700; font-size: 17px;
}
.tb-drawer__link.is-current, .tb-drawer__link[aria-current="page"] { color: var(--tb-accent); }
.tb-drawer__sub { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; color: var(--tb-sub); }
.tb-drawer__sub a { min-height: 44px; display: flex; align-items: center; }
html.tb-noscroll, html.tb-noscroll body { overflow: hidden; }
@media (max-width: 767px) {
  .tb-nav { display: none; }
  .tb-burger { display: flex; }
  .tb-header__inner { flex-wrap: nowrap; gap: 8px; }
  .tb-logo { flex-wrap: wrap; gap: 0 10px; min-width: 0; }
  .tb-logo__name { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-drawer__backdrop, .tb-drawer__panel { transition: none; }
}

/* ---------- 3. スライドバナー ---------- */
.tb-slider { width: 100%; }
.tb-slider__viewport { position: relative; overflow: hidden; background: var(--tb-thumb); touch-action: pan-y; }
.tb-slider__track { display: flex; transition: transform 0.6s ease; }
.tb-slider__slide, .tb-slider__slide img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.tb-slider__slide {
  flex: 0 0 100%; min-width: 0; position: relative; display: block;
  aspect-ratio: 16 / 7; min-height: 260px; max-height: 560px; background: var(--tb-thumb);
}
.tb-slider__img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none !important; object-fit: cover; display: block; }
.tb-slider__noimage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding-bottom: 72px; color: var(--tb-sub); font-size: 13px;
}
.tb-slider__caption {
  position: absolute; left: max(0px, calc(50% - 580px)); bottom: 0; max-width: min(560px, 88%);
  background: var(--tb-ink); color: var(--tb-ground); padding: 14px 20px 16px;
  display: flex; flex-direction: column; gap: 4px; border-radius: 0 6px 0 0;
}
.tb-slider__label { font-size: 12px; font-weight: 700; color: #FF9A62; }
.tb-slider__title { font-family: var(--tb-head); font-weight: 700; font-size: clamp(16px, 2.2vw, 24px); line-height: 1.4; }
.tb-slider__arrow {
  position: absolute; top: calc(50% - 40px); width: 44px; height: 44px; border: none; padding: 0;
  background: transparent; color: #fff; opacity: 0.75; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.tb-slider__arrow:hover, .tb-slider__arrow:focus-visible { opacity: 1; }
.tb-slider__arrow svg { filter: drop-shadow(0 0 2px rgba(21, 24, 26, 0.6)); }
.tb-slider__arrow--prev { left: 4px; }
.tb-slider__arrow--next { right: 4px; }
.tb-slider__controls { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 4px; }
.tb-slider__icon-play { display: none; }
.tb-slider.is-paused .tb-slider__icon-play { display: block; }
.tb-slider.is-paused .tb-slider__icon-pause { display: none; }
.tb-slider__dots { display: flex; align-items: center; }
.tb-slider__dot { height: 44px; padding: 0 4px; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; }
.tb-slider__dot span { display: block; width: 10px; height: 6px; border-radius: 3px; background: #9A9E98; transition: width 0.3s ease, background 0.3s ease; }
.tb-slider__dot[aria-current="true"] span { width: 28px; background: var(--tb-ink); }
.tb-slider__counter { font-family: var(--tb-en); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; color: var(--tb-muted); min-width: 44px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .tb-slider__track { transition: none; } }

/* ---------- 4. TOP ---------- */
.tb-hero { max-width: 1200px; margin: 0 auto; padding: 32px 20px 24px; }
.tb-hero__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 32px; }
.tb-hero__title { font-family: var(--tb-head); font-weight: 900; font-size: clamp(34px, 6vw, 64px); line-height: 1.15; letter-spacing: 0.01em; }
.tb-hero__text { max-width: 440px; color: var(--tb-sub); }
.tb-pickup { display: flex; flex-wrap: wrap; gap: 24px; }
.tb-pickup__main { flex: 2 1 480px; min-width: 0; display: flex; }
.tb-pickup__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.tb-pcard { flex: 1; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tb-line); border-radius: 6px; overflow: hidden; }
.tb-pcard .tb-thumb { border-radius: 0; }
.tb-pcard__body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.tb-pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; }
.tb-pcard__meta b { font-weight: 700; }
.tb-pcard__meta time { color: var(--tb-muted); }
.tb-pcard__title { font-size: 16px; line-height: 1.5; font-weight: 700; }
.tb-pcard--lg .tb-pcard__body { padding: 20px 24px 24px; gap: 10px; }
.tb-pcard--lg .tb-pcard__title { font-family: var(--tb-head); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.4; }
.tb-pcard__excerpt { color: var(--tb-muted); font-size: 14px; }
.tb-page .tb-badge { background: var(--tb-accent); color: #fff; font-weight: 700; padding: 2px 10px; border-radius: 3px; font-size: 12px; }
.tb-page a.tb-badge:hover { color: #fff; opacity: 0.9; }

.tb-cats { max-width: 1200px; margin: 0 auto; padding: 24px 20px 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tb-cat { background: #fff; border: 1px solid var(--tb-line); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tb-cat__en { font-family: var(--tb-en); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; color: var(--tb-muted); }
.tb-cat__name { font-family: var(--tb-head); font-weight: 700; font-size: 19px; }
.tb-cat__desc { font-size: 13px; color: var(--tb-muted); }

.tb-start { background: var(--tb-ink); color: var(--tb-ground); }
.tb-start__inner { max-width: 1200px; margin: 0 auto; padding: 56px 20px; }
.tb-start__en { font-family: var(--tb-en); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; color: #B9BDB8; }
.tb-start__title { font-family: var(--tb-head); font-weight: 900; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.3; margin-top: 4px; }
.tb-start__lead { margin: 8px 0 28px !important; color: #B9BDB8; font-size: 14px; }
.tb-start__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tb-page a.tb-startcard { background: #22262A; border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--tb-ground); }
.tb-page a.tb-startcard:hover { color: #FF9A62; }
.tb-startcard__num { font-family: var(--tb-en); font-weight: 700; font-size: 40px; line-height: 1; color: #FF9A62; }
.tb-startcard__title { font-size: 18px; line-height: 1.5; font-weight: 700; }
.tb-start__more { margin-top: 24px; }
.tb-page a.tb-start__more-link { color: var(--tb-ground); font-weight: 700; text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- 5. 共通パーツ ---------- */
.tb-thumb {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--tb-thumb); color: var(--tb-sub); font-size: 12px; border-radius: 4px;
}
.tb-thumb img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.tb-thumb--wide { aspect-ratio: 16 / 8; }
.tb-thumb--square { aspect-ratio: 1 / 1; }
.tb-thumb--43 { aspect-ratio: 4 / 3; }

.tb-sechead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-bottom: 2px solid var(--tb-ink); padding-bottom: 10px; margin-bottom: 24px; }
.tb-sechead__title { font-family: var(--tb-head); font-weight: 900; font-size: 24px; }
.tb-sechead__en { font-family: var(--tb-en); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; color: var(--tb-muted); }
.tb-sechead__count { font-weight: 500; font-size: 13px; color: var(--tb-muted); }
.tb-sechead__sort { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }

.tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 20px; }
.tb-card { display: flex; flex-direction: column; gap: 10px; }
.tb-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 12px; }
.tb-card__date { font-family: var(--tb-en); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; color: var(--tb-muted); }
.tb-card__cat { font-weight: 700; color: var(--tb-accent); }
.tb-card__title { font-size: 15px; line-height: 1.6; font-weight: 700; }

.tb-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 4px; font-weight: 700; font-size: 15px; background: var(--tb-accent); color: #fff !important;
  border: none; cursor: pointer; text-decoration: none !important;
}
.tb-btn:hover { opacity: 0.9; }
.tb-btn--block { display: flex; width: 100%; }
.tb-btn--outline { background: transparent; color: var(--tb-ink) !important; border: 1px solid var(--tb-ink); }
.tb-btn--pill { background: transparent; color: var(--tb-ink) !important; border: 2px solid var(--tb-ink); border-radius: 999px; padding: 0 40px; font-size: 14px; }
.tb-btn--light { background: var(--tb-ground); color: var(--tb-ink) !important; border-radius: 999px; padding: 0 36px; font-size: 14px; }
.tb-center { display: flex; justify-content: center; margin-top: 32px; }

.tb-ad { margin: 40px 0; }
.tb-ad--flush { margin: 0; }
.tb-ad__label { font-size: 11px; color: var(--tb-muted); text-align: center; margin-bottom: 6px; line-height: 1.7; }
.tb-ad__placeholder {
  min-height: 120px; border: 1px dashed #9A9E98; border-radius: 4px; display: flex; align-items: center;
  justify-content: center; color: var(--tb-muted); font-size: 13px; text-align: center; padding: 12px; line-height: 1.7;
}
.tb-ad__placeholder--box { min-height: 250px; }
.tb-adband { max-width: 1200px; margin: 0 auto; padding: 40px 20px 0; }
.tb-adband .tb-ad { margin: 0; }

.tb-breadcrumb { font-size: 12px; color: var(--tb-muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding-top: 14px; }
.tb-breadcrumb a { min-height: 32px; display: flex; align-items: center; }
.tb-breadcrumb__current { color: var(--tb-ink); font-weight: 700; }

.tb-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; padding: 28px 0 40px; }
.tb-pagehead__en { font-family: var(--tb-en); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; color: var(--tb-muted); display: block; }
.tb-pagehead__title { font-family: var(--tb-head); font-weight: 900; font-size: clamp(30px, 5vw, 52px); line-height: 1.25; margin-top: 6px; }
.tb-pagehead__desc { max-width: 520px; color: var(--tb-sub); font-size: 14px; }
.tb-pagehead__desc p + p { margin-top: 8px; }

/* ---------- 6. 一覧ページ ---------- */
.tb-layout { max-width: 1200px; margin: 0 auto; padding: 0 20px 72px; display: flex; flex-wrap: wrap; gap: 48px 40px; align-items: flex-start; }
.tb-layout--top { padding-top: 56px; }
.tb-main { flex: 999 1 560px; min-width: 0; }
.tb-main--stack { display: flex; flex-direction: column; gap: 64px; }
.tb-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.tb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 32px; font-size: 14px; font-weight: 700; }
.tb-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; border: 1px solid var(--tb-line); }
.tb-chip__count { margin-left: 8px; font-family: var(--tb-en); font-weight: 600; font-size: 14px; color: var(--tb-muted); }
.tb-chips + .tb-chips { margin-top: -20px; }
.tb-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; }
.tb-tags--side { margin-top: 12px; }
.tb-tags__label { font-family: var(--tb-en); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; color: var(--tb-muted); margin-right: 4px; }
.tb-tag { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--tb-ground); border: 1px solid var(--tb-line); font-size: 13px; font-weight: 700; }
.tb-tags--side .tb-tag { background: #fff; }
.tb-page a.tb-tag.is-current { background: var(--tb-ink); border-color: var(--tb-ink); color: #fff; }
.tb-chip.is-current { background: var(--tb-ink); color: #fff !important; border-color: var(--tb-ink); }
.tb-pager { margin-top: 48px; }
.tb-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tb-pager .page-numbers:not(ul) {
  min-width: 44px; height: 44px; padding: 0 6px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--tb-line); border-radius: 22px;
  font-family: var(--tb-en); font-weight: 700; font-size: 17px;
}
.tb-pager .page-numbers.current { background: var(--tb-ink); color: #fff; border-color: var(--tb-ink); }
.tb-pager .page-numbers.dots { background: transparent; border-color: transparent; }
.tb-empty { background: #fff; border: 1px solid var(--tb-line); border-radius: 6px; padding: 32px 24px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- 7. 記事詳細 ---------- */
.tb-article { background: #fff; border: 1px solid var(--tb-line); border-radius: 6px; padding: clamp(20px, 4vw, 48px); }
.tb-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--tb-muted); }
.tb-article__meta time { font-family: var(--tb-en); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; }
.tb-article__title { font-family: var(--tb-head); font-weight: 900; font-size: clamp(24px, 3.6vw, 36px); line-height: 1.4; margin: 14px 0 !important; }

.tb-content { font-size: 16px; line-height: 1.95; margin-top: 28px; }
.tb-content > * { margin-top: 0; margin-bottom: 20px; }
.tb-content > *:last-child { margin-bottom: 0; }
.tb-content p { margin: 0 0 20px; }
.tb-content h2 {
  margin: 56px 0 20px; padding: 12px 16px; background: var(--tb-ink); color: var(--tb-ground);
  font-family: var(--tb-head); font-weight: 700; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.5; border-radius: 4px;
}
.tb-content h3 { margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--tb-ink); font-size: 18px; line-height: 1.5; font-weight: 700; }
.tb-content h4 { margin: 28px 0 12px; font-size: 16px; font-weight: 700; }
.tb-content ul, .tb-content ol { padding-left: 24px; }
.tb-content li + li { margin-top: 4px; }
.tb-content a { text-decoration: underline; font-weight: 700; }
.tb-content img { border-radius: 4px; }
.tb-content figure { margin-left: 0; margin-right: 0; }
.tb-content figcaption { font-size: 13px; color: var(--tb-muted); line-height: 1.6; margin-top: 8px; }
.tb-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tb-content th, .tb-content td { border: 1px solid var(--tb-line); padding: 10px 14px; text-align: left; vertical-align: top; }
.tb-content th { background: var(--tb-ground); font-weight: 700; }
.tb-content .wp-block-table { overflow-x: auto; }
.tb-content blockquote { margin-left: 0; margin-right: 0; padding: 16px 20px; background: var(--tb-ground); border-radius: 6px; }

.tb-toc { background: var(--tb-ground); border-radius: 6px; padding: 20px 24px; margin: 0 0 20px; }
.tb-toc__title { font-family: var(--tb-head); font-weight: 900; font-size: 16px; margin-bottom: 8px; }
.tb-toc ol { margin: 0; padding-left: 22px; font-size: 15px; font-weight: 700; }
.tb-toc li + li { margin-top: 0; }
.tb-toc a { display: flex; align-items: center; min-height: 40px; }

.tb-conclusion { border: 2px solid var(--tb-ink); border-radius: 6px; padding: 20px 24px; }
.tb-conclusion__title { font-family: var(--tb-head); font-weight: 900; font-size: 18px; margin-bottom: 12px; }
.tb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; font-size: 15px; line-height: 1.7; }
.tb-cols__head { font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tb-cols ul { margin: 0; padding-left: 20px; }
.tb-cols--boxed > div { border: 1px solid var(--tb-line); border-radius: 6px; padding: 16px 20px; }

.tb-product { background: var(--tb-ground); border: 1px solid var(--tb-line); border-radius: 6px; padding: 16px; display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; line-height: 1.7; }
.tb-product--white { background: #fff; }
.tb-product__img { width: 120px; flex-shrink: 0; }
.tb-product__body { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tb-product__maker { font-size: 12px; color: var(--tb-muted); font-weight: 700; }
.tb-product__name { font-size: 16px; font-weight: 700; line-height: 1.5; }
.tb-product__note { font-size: 13px; color: var(--tb-sub); }
.tb-product__btns { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }

/* 商品比較表(スマホでは横スクロール。左の項目名は固定) */
.tb-compare { overflow-x: auto; background: #fff; border: 1px solid var(--tb-line); border-radius: 6px; -webkit-overflow-scrolling: touch; }
.tb-compare:focus-visible { outline: 2px solid var(--tb-ink); outline-offset: 2px; }
.tb-compare table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.6; table-layout: fixed; }
.tb-compare th, .tb-compare td {
  border: 0; border-bottom: 1px solid var(--tb-line); border-left: 1px solid var(--tb-line);
  padding: 12px 14px; text-align: center; vertical-align: middle; background: #fff; font-weight: 400;
}
.tb-compare tr > :first-child { border-left: 0; }
.tb-compare tbody tr:last-child > * { border-bottom: 0; }
.tb-compare thead th { vertical-align: bottom; padding-top: 18px; position: relative; }
.tb-compare thead td, .tb-compare th[scope="row"] {
  position: sticky; left: 0; z-index: 1; width: 104px; background: var(--tb-ground);
  font-weight: 700; font-size: 13px; text-align: left; box-shadow: 1px 0 0 var(--tb-line);
}
.tb-compare .is-pick { background: #FFF5EE; }
.tb-compare thead .is-pick { box-shadow: inset 0 4px 0 var(--tb-accent); }
.tb-compare__pick { display: inline-block; background: var(--tb-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; margin-bottom: 8px; }
.tb-compare__img { width: 96px; max-width: 100%; margin: 0 auto 8px; }
.tb-compare__name { display: block; font-size: 15px; font-weight: 700; line-height: 1.5; }
.tb-compare__buy td { vertical-align: top; }
.tb-compare__buy .tb-btn { min-height: 44px; padding: 0 8px; font-size: 14px; }
.tb-compare__buy .tb-textlink { justify-content: center; width: 100%; }
.tb-content .tb-compare__hint, .tb-compare__hint { font-size: 12px; color: var(--tb-muted); line-height: 1.6; margin: -12px 0 20px; }

.tb-author { margin-top: 48px; border-top: 1px solid var(--tb-line); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; }
.tb-avatar { border-radius: 50%; overflow: hidden; background: var(--tb-thumb); flex-shrink: 0; display: block; }
.tb-avatar img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.tb-author__body { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tb-author__label { font-size: 12px; color: var(--tb-muted); }
.tb-author__name { font-size: 16px; font-weight: 700; }
.tb-author__text { font-size: 13px; color: var(--tb-sub); }
.tb-textlink { font-size: 13px; font-weight: 700; text-decoration: underline !important; min-height: 44px; display: inline-flex; align-items: center; }

/* スマートフォン用の追従ボタン(記事詳細。767px 以下でのみ表示) */
.tb-sticky { display: none; }
@media (max-width: 767px) {
  .tb-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom, 0px)) 16px;
    background: #fff; border-top: 1px solid var(--tb-line); box-shadow: 0 -4px 16px rgba(21, 24, 26, 0.12);
    transform: translateY(110%); visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .tb-sticky.is-visible { transform: none; visibility: visible; transition: transform 0.25s ease, visibility 0s; }
  .tb-sticky__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
  .tb-sticky__label { font-size: 11px; color: var(--tb-muted); }
  .tb-sticky__name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-sticky__btn { flex-shrink: 0; min-height: 44px; padding: 0 18px; font-size: 14px; }
  .tb-sticky__close { flex-shrink: 0; color: var(--tb-muted); }
  html.tb-has-sticky .tb-footer { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .tb-sticky, .tb-sticky.is-visible { transition: none; } }

/* ---------- 8. 固定ページ用パーツ ---------- */
.tb-pagebody { max-width: 1000px; margin: 0 auto; padding: 0 20px 72px; }
.tb-pagebody .tb-content { margin-top: 0; }
.tb-pagebody--plain .tb-content { background: #fff; border: 1px solid var(--tb-line); border-radius: 6px; padding: clamp(20px, 4vw, 44px); }
.tb-stack { display: flex; flex-direction: column; gap: 56px; line-height: 1.7; font-size: 15px; }
.tb-stack--tight { gap: 32px; }
.tb-lead { font-size: 16px; line-height: 1.9; max-width: 720px; }
.tb-jump { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; font-weight: 700; }
.tb-content .tb-jump a, .tb-jump a {
  background: #fff; border: 1px solid var(--tb-line); border-radius: 6px; padding: 0 18px; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none;
}
.tb-course { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.tb-course__head { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tb-course__en { font-family: var(--tb-en); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; color: var(--tb-accent); }
.tb-course__title { font-family: var(--tb-head); font-weight: 900; font-size: clamp(22px, 3vw, 28px); line-height: 1.4; }
.tb-content .tb-course__title, .tb-content .tb-panel__title, .tb-content .tb-closing__title, .tb-content .tb-sechead__title {
  margin: 0; padding: 0; background: none; color: inherit; border: 0; border-radius: 0;
}
.tb-course__text { font-size: 14px; color: var(--tb-sub); margin: 0 !important; }
.tb-steps { flex: 2 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0 !important; display: flex; flex-direction: column; gap: 12px; }
.tb-steps li { margin: 0 !important; }
.tb-content .tb-steps a, .tb-steps a { background: #fff; border: 1px solid var(--tb-line); border-radius: 6px; padding: 14px; display: flex; gap: 16px; align-items: center; text-decoration: none; }
.tb-steps__num { font-family: var(--tb-en); font-weight: 700; font-size: 32px; line-height: 1; width: 30px; flex-shrink: 0; text-align: center; }
.tb-steps__img { width: 104px; flex-shrink: 0; aspect-ratio: 16 / 10; }
.tb-steps__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb-steps__hint { font-size: 12px; color: var(--tb-muted); font-weight: 400; }
.tb-steps__title { font-size: 15px; font-weight: 700; line-height: 1.5; }
.tb-panel { background: #fff; border: 1px solid var(--tb-line); border-radius: 6px; padding: clamp(20px, 4vw, 44px); }
.tb-panel__title { font-family: var(--tb-head); font-weight: 900; font-size: 20px; }
.tb-panel__note { font-size: 13px; color: var(--tb-muted); margin: 6px 0 20px !important; }
.tb-panel h3 { margin: 32px 0 10px; padding: 0; border: 0; font-size: 18px; font-weight: 700; line-height: 1.5; }
.tb-panel .tb-sechead + h3 { margin-top: 0; }
.tb-panel p, .tb-panel li { font-size: 16px; line-height: 1.9; }
.tb-panel p { margin: 0 0 14px; }
.tb-gear3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tb-gear3__item { display: flex; flex-direction: column; gap: 10px; }
.tb-gear3__kind { font-size: 12px; font-weight: 700; color: var(--tb-muted); }
.tb-gear3__name { font-size: 15px; font-weight: 700; line-height: 1.5; }
.tb-gear3__why { font-size: 13px !important; color: var(--tb-sub); line-height: 1.7 !important; margin: 0 !important; }
.tb-gearlist { display: flex; flex-direction: column; gap: 16px; }
.tb-faq { list-style: none; margin: 0; padding: 0 !important; font-size: 15px; font-weight: 700; }
.tb-faq li { border-bottom: 1px solid var(--tb-line); margin: 0 !important; }
.tb-content .tb-faq a, .tb-faq a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 8px 0; text-decoration: none; }
.tb-closing { background: var(--tb-ink); color: var(--tb-ground); border-radius: 6px; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.tb-closing__title { font-family: var(--tb-head); font-weight: 900; font-size: clamp(20px, 2.8vw, 26px); line-height: 1.4; }
.tb-closing__text { font-size: 14px; color: #B9BDB8; margin: 6px 0 0 !important; }
.tb-profilebox { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-start; }
.tb-profilebox__body { flex: 1 1 300px; min-width: 0; }
.tb-profilebox__name { font-family: var(--tb-head); font-weight: 900; font-size: 22px; margin-bottom: 10px; }
.tb-tablewrap { overflow-x: auto; margin-top: 28px; }
.tb-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 300px; }
.tb-table th, .tb-table td { border: 1px solid var(--tb-line); padding: 12px 14px; text-align: left; }
.tb-table th { width: 32%; background: var(--tb-ground); font-weight: 700; }
.tb-signoff { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 14px; color: var(--tb-sub); }

/* ---------- 9. サイドバー ---------- */
.tb-profile { background: #fff; border: 1px solid var(--tb-line); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tb-profile__name { font-size: 16px; font-weight: 700; }
.tb-profile__text { font-size: 13px; color: var(--tb-sub); text-align: left; }
.tb-widget__title { font-family: var(--tb-head); font-weight: 900; font-size: 18px; border-bottom: 2px solid var(--tb-ink); padding-bottom: 8px; margin-bottom: 8px !important; }
.tb-rank, .tb-catlist { list-style: none; margin: 0; padding: 0; }
.tb-rank li, .tb-catlist li { border-bottom: 1px solid var(--tb-line); }
.tb-rank a { display: flex; gap: 14px; padding: 14px 0; align-items: flex-start; }
.tb-rank__num { font-family: var(--tb-en); font-weight: 700; font-size: 26px; line-height: 1; color: var(--tb-muted); width: 20px; flex-shrink: 0; }
.tb-rank li:nth-child(-n+3) .tb-rank__num { color: var(--tb-accent); }
.tb-rank__title { font-size: 14px; font-weight: 700; line-height: 1.6; }
.tb-catlist { font-size: 14px; font-weight: 700; }
.tb-catlist a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.tb-catlist a.is-current { color: var(--tb-accent); }

/* サイドバーウィジェット(外観 → ウィジェット →「Sidebar Widget Area」) */
.tb-widgets__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 40px; }
.tb-widgets__list > li { min-width: 0; }
.tb-widgets :is(h1, h2, h3, h4, .widget-title, .widgettitle, .wp-block-search__label) {
  display: block; font-family: var(--tb-head); font-weight: 900; font-size: 18px; line-height: 1.5;
  border-bottom: 2px solid var(--tb-ink); padding: 0 0 8px; margin: 0 0 8px;
}
.tb-widgets p { font-size: 14px; margin: 0 0 12px; }
.tb-widgets img { max-width: 100%; height: auto; border-radius: 4px; }
.tb-widgets ul:not(.tb-widgets__list), .tb-widgets ol { list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 700; line-height: 1.6; }
.tb-widgets ul:not(.tb-widgets__list) li, .tb-widgets ol li { border-bottom: 1px solid var(--tb-line); padding: 12px 0; margin: 0; }
.tb-widgets li li { border-bottom: 0; padding: 8px 0 0 16px; font-weight: 500; }
.tb-widgets li time, .tb-widgets .post-date, .tb-widgets .wp-block-latest-posts__post-date { display: block; font-family: var(--tb-en); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; color: var(--tb-muted); }
.tb-widgets .wp-block-search__inside-wrapper { display: flex; gap: 8px; border: 0; padding: 0; }
.tb-widgets input[type="search"], .tb-widgets input[type="text"], .tb-widgets input[type="email"], .tb-widgets select {
  width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; font: inherit; font-size: 16px;
  border: 1px solid #9A9E98; border-radius: 4px; background: #fff; color: var(--tb-ink);
}
.tb-widgets .wp-block-search__input { flex: 1; }
.tb-widgets button, .tb-widgets input[type="submit"] {
  min-height: 44px; padding: 0 16px; margin: 0; border: 0; border-radius: 4px; background: var(--tb-ink); color: #fff;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.tb-widgets .wp-block-tag-cloud, .tb-widgets .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-widgets .wp-block-tag-cloud a, .tb-widgets .tagcloud a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; margin: 0; border-radius: 999px;
  background: #fff; border: 1px solid var(--tb-line); font-size: 13px !important; font-weight: 700;
}
.tb-widgets .wp-block-group > * + * { margin-top: 0; }
.tb-widgets .wp-block-latest-comments { padding: 0; }
.tb-widgets .wp-block-calendar table { width: 100%; font-size: 13px; text-align: center; }

/* ---------- 10. フッター ---------- */
.tb-footer { background: var(--tb-ink); color: var(--tb-ground); }
.tb-footer__inner { max-width: 1200px; margin: 0 auto; padding: 48px 20px 24px; }
.tb-footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.tb-footer__about { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.tb-footer__name { font-family: var(--tb-head); font-weight: 900; font-size: 22px; letter-spacing: 0.04em; }
.tb-footer__desc { font-size: 13px; color: #B9BDB8; max-width: 360px; }
.tb-footer__nav { display: flex; flex-direction: column; font-size: 14px; }
.tb-footer__navtitle { font-family: var(--tb-en); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; color: #B9BDB8; margin-bottom: 4px; }
.tb-page .tb-footer__nav a { min-height: 40px; display: flex; align-items: center; color: var(--tb-ground); }
.tb-page .tb-footer__nav a:hover { color: #FF9A62; }
.tb-footer__note { margin-top: 32px !important; padding-top: 20px; border-top: 1px solid #3A3F43; font-size: 12px; color: #B9BDB8; }
.tb-footer__note + .tb-footer__note { margin-top: 6px !important; padding-top: 0; border-top: 0; }
.tb-footer__copy { margin-top: 12px !important; font-size: 12px; color: #B9BDB8; }
