/*!
Theme Name: Tateroute - Cocoon Child
Template: cocoon-master
Description: タテルート（建設キャリア情報メディア）用カスタム子テーマ。運営：株式会社ヘルスベイシス・コンストラクション
Version: 2.0.0
Author: Health Basis Construction
*/

/* =============================================
   0. CSS変数（ブランドカラー定義）
   ============================================= */
:root {
  --primary: #EC6A1E;
  --primary-hover: #D55816;
  --primary-light: #FEF3EC;
  --primary-soft: #FFF7ED;
  --dark: #1F2937;
  --dark-2: #374151;
  --text: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --bg: #FFFFFF;
  --bg-soft: #F9FAFB;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --line-green: #06C755;
  --line-green-dark: #05a548;
  --danger: #DC2626;
  --shadow-sm: 0 1px 2px rgba(17,24,39,0.04);
  --shadow: 0 4px 20px rgba(17,24,39,0.06);
  --shadow-lg: 0 12px 40px rgba(17,24,39,0.10);
  --radius: 8px;
  --radius-lg: 14px;
  --container: 1180px;
  --font-base: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =============================================
   1. ベース / リセット
   ============================================= */
body.tateroute, body {
  font-family: var(--font-base) !important;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* アンカーリンクのスクロール時に sticky ヘッダー分だけオフセット */
html {
  scroll-padding-top: 90px;
  scroll-behavior: smooth;
}
/* 各見出し・id要素への直接オフセット指定（Safari旧版・念のため対応） */
body.tateroute h1[id],
body.tateroute h2[id],
body.tateroute h3[id],
body.tateroute h4[id],
body.tateroute h5[id],
body.tateroute h6[id],
body.tateroute [id]:target {
  scroll-margin-top: 90px;
}

@media (max-width: 768px) {
  html { scroll-padding-top: 80px; }
  body.tateroute h1[id],
  body.tateroute h2[id],
  body.tateroute h3[id],
  body.tateroute h4[id],
  body.tateroute h5[id],
  body.tateroute h6[id],
  body.tateroute [id]:target {
    scroll-margin-top: 80px;
  }
}
body a { transition: color .2s; }
body a:hover { color: var(--primary); }
.tr-container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* -------- フォント統一（Cocoon親テーマの個別指定を上書き） -------- */
body.tateroute p,
body.tateroute h1, body.tateroute h2, body.tateroute h3,
body.tateroute h4, body.tateroute h5, body.tateroute h6,
body.tateroute ul, body.tateroute ol, body.tateroute li,
body.tateroute dl, body.tateroute dt, body.tateroute dd,
body.tateroute table, body.tateroute thead, body.tateroute tbody,
body.tateroute tr, body.tateroute th, body.tateroute td,
body.tateroute blockquote, body.tateroute cite, body.tateroute q,
body.tateroute figure, body.tateroute figcaption,
body.tateroute label, body.tateroute legend,
body.tateroute address, body.tateroute time,
body.tateroute summary, body.tateroute details {
  font-family: var(--font-base);
}

/* コード・等幅は monospace に統一 */
body.tateroute code,
body.tateroute pre,
body.tateroute kbd,
body.tateroute samp,
body.tateroute var,
body.tateroute tt {
  font-family: ui-monospace, 'SF Mono', Consolas, Menlo, 'Courier New', monospace;
}

/* インラインコード見た目 */
body.tateroute :not(pre) > code {
  background: var(--primary-soft);
  color: var(--primary-hover);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.88em;
  border: 1px solid var(--primary-light);
}

/* コードブロック見た目 */
body.tateroute pre {
  background: #1F2937;
  color: #E5E7EB;
  padding: 18px 22px;
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.65;
  margin: 20px 0 28px;
  font-size: 13.5px;
}
body.tateroute pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* =============================================
   2. Cocoon既定の無効化（タテルートでは使わない要素）
   ============================================= */
.no-sidebar .main { max-width: 100%; }
body.tateroute #header-container,
body.tateroute #navi,
body.tateroute .navi-in,
body.tateroute .footer { /* 独自ヘッダー/フッターを使うため非表示にする場合 */ }

/* =============================================
   3. サイトヘッダー（独自）
   ============================================= */
.tr-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.tr-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.tr-logo img { height: 40px; width: auto; display: block; }
.tr-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.tr-nav li { margin: 0; padding: 0; }
.tr-nav a {
  font-size: 14px; font-weight: 500; color: var(--dark-2);
  padding: 8px 0;
  position: relative;
  text-decoration: none;
}
.tr-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--primary); transform: scaleX(0);
  transition: transform .2s;
}
.tr-nav a:hover::after, .tr-nav a.active::after,
.tr-nav .current-menu-item > a::after { transform: scaleX(1); }
.tr-nav .current-menu-item > a { color: var(--primary); }
.tr-header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--line-green); color: #fff !important;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}
.tr-header-cta:hover { opacity: 0.9; color: #fff !important; }
.tr-header-cta svg { width: 16px; height: 16px; }

/* =============================================
   4. ボタン（共通）
   ============================================= */
.tr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 700;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.tr-btn-primary {
  background: var(--primary); color: #fff !important;
  box-shadow: 0 4px 14px rgba(236,106,30,0.25);
}
.tr-btn-primary:hover {
  background: var(--primary-hover); color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(236,106,30,0.35);
}
.tr-btn-line {
  background: var(--line-green); color: #fff !important;
  border-radius: 999px;
}
.tr-btn-line:hover { opacity: 0.9; color: #fff !important; }
.tr-btn-outline {
  background: #fff; color: var(--dark) !important;
  border: 1.5px solid var(--border);
}
.tr-btn-outline:hover { border-color: var(--primary); color: var(--primary) !important; }
.tr-btn .arrow { transition: transform .2s; }
.tr-btn:hover .arrow { transform: translateX(3px); }

/* =============================================
   5. ヒーロー（TOP）
   ============================================= */
.tr-hero {
  position: relative;
  padding: 90px 0 110px;
  background: linear-gradient(180deg, #FFF7ED 0%, #FFFFFF 100%);
  overflow: hidden;
}
.tr-hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px;
  align-items: center;
}
.tr-hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--primary);
  padding: 6px 14px; background: #fff;
  border: 1px solid var(--primary-light);
  border-radius: 999px;
  margin-bottom: 24px;
}
.tr-hero-title {
  font-size: 52px; font-weight: 900; line-height: 1.35;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.tr-hero-title .accent { color: var(--primary); }
.tr-hero-sub {
  font-size: 16px; line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 560px;
}
.tr-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.tr-hero-cta .tr-btn { padding: 16px 32px; font-size: 15px; }

.tr-hero-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  justify-self: end;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tr-hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(236,106,30,0.08), transparent 60%);
  pointer-events: none;
}
.tr-hero-steps {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 100%;
}
.tr-hero-step {
  flex: 1;
  background: var(--primary);
  border-radius: 10px 10px 0 0;
  position: relative;
}
.tr-hero-step:nth-child(1) { height: 40%; opacity: 0.55; }
.tr-hero-step:nth-child(2) { height: 65%; opacity: 0.75; }
.tr-hero-step:nth-child(3) {
  height: 95%;
  background: transparent;
  border-radius: 0;
}
.tr-hero-step:nth-child(3)::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -36px; bottom: 0;
  background: var(--primary);
  clip-path: polygon(50% 0, 100% 36px, 100% 100%, 0 100%, 0 36px);
}

/* =============================================
   6. セクション見出し（共通）
   ============================================= */
.tr-section { padding: 100px 0; }
.tr-section-soft { background: var(--bg-soft); }
.tr-section-header { text-align: center; margin-bottom: 60px; }
.tr-section-title {
  font-size: 34px; font-weight: 900;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 14px;
}
.tr-section-lead {
  font-size: 15px; color: var(--text-secondary);
  max-width: 680px; margin: 0 auto;
}

/* =============================================
   7. 編集部ピックアップ（特集記事）
   ============================================= */
.tr-featured {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  transition: all .2s;
}
.tr-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.tr-featured-visual {
  position: relative;
  background: linear-gradient(135deg, #F97316 0%, #EC6A1E 50%, #C2410C 100%);
  min-height: 360px;
  display: flex; align-items: flex-end; padding: 30px;
}
.tr-featured-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px);
}
.tr-featured-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-featured-visual-tag {
  position: absolute; top: 24px; left: 24px;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px;
  z-index: 1;
}
.tr-featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.tr-featured-cat {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 14px;
}
.tr-featured-title {
  font-size: 26px; font-weight: 900; line-height: 1.5;
  color: var(--dark);
  margin-bottom: 18px;
}
.tr-featured-excerpt {
  font-size: 14px; color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.9;
}
.tr-featured-meta {
  display: flex; gap: 16px; align-items: center;
  font-size: 12px; color: var(--text-muted);
  padding-top: 20px; border-top: 1px solid var(--border-light);
}
.tr-featured-meta .readmore {
  margin-left: auto; color: var(--primary); font-weight: 700;
}

/* =============================================
   8. カテゴリグリッド
   ============================================= */
.tr-categories-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.tr-category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px 22px;
  text-align: center;
  transition: all .2s;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
}
.tr-category-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--dark);
}
.tr-category-icon {
  width: 52px; height: 52px;
  background: var(--primary-soft);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.tr-category-icon svg { width: 26px; height: 26px; }
.tr-category-name { font-size: 14px; font-weight: 700; color: var(--dark); }
.tr-category-count { font-size: 11px; color: var(--text-muted); }

/* =============================================
   9. 記事カード（一覧・新着共通）
   ============================================= */
.tr-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tr-article-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s;
  border: 1px solid var(--border-light);
  text-decoration: none; color: inherit;
  display: block;
}
.tr-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
  color: inherit;
}
.tr-article-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 48px; font-weight: 900;
  overflow: hidden;
}
.tr-article-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-article-thumb.tone-a { background: linear-gradient(135deg, #FB923C, #EC6A1E); }
.tr-article-thumb.tone-b { background: linear-gradient(135deg, #334155, #1F2937); }
.tr-article-thumb.tone-c { background: linear-gradient(135deg, #0EA5E9, #0369A1); }
.tr-article-thumb.tone-d { background: linear-gradient(135deg, #14B8A6, #0F766E); }
.tr-article-thumb.tone-e { background: linear-gradient(135deg, #F59E0B, #B45309); }
.tr-article-thumb.tone-f { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.tr-article-thumb::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 22px, rgba(255,255,255,0.06) 22px, rgba(255,255,255,0.06) 44px);
}
.tr-article-thumb-label {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.95);
  color: var(--dark);
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  z-index: 1;
}
.tr-article-card-body { padding: 22px 24px 24px; }
.tr-article-card-title {
  font-size: 16px; font-weight: 700; line-height: 1.65;
  color: var(--dark);
  margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tr-article-card:hover .tr-article-card-title { color: var(--primary); }
.tr-article-card-excerpt {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tr-article-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.tr-read-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.tr-article-card:hover .tr-read-more { gap: 8px; color: var(--primary-hover); }

.tr-section-footer { text-align: center; margin-top: 50px; }

/* =============================================
   10. About（TOP）
   ============================================= */
.tr-about {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
  align-items: center;
  border: 1px solid var(--border-light);
}
.tr-about-heading { font-size: 26px; font-weight: 900; color: var(--dark); line-height: 1.6; margin-bottom: 20px; word-break: keep-all; }
.tr-about-heading .accent { color: var(--primary); }
.tr-about-heading .nobr { display: inline-block; }
.tr-about-body p { font-size: 14.5px; line-height: 2; color: var(--text-secondary); margin-bottom: 14px; }
.tr-about-principles { display: grid; gap: 18px; }
.tr-about-principle {
  display: flex; gap: 16px;
  padding: 22px 24px;
  background: var(--primary-soft);
  border-radius: var(--radius);
}
.tr-principle-no { font-size: 22px; font-weight: 900; color: var(--primary); min-width: 32px; }
.tr-principle-title { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.tr-principle-text { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* =============================================
   11. キャリア相談CTA（共通）
   ============================================= */
.tr-consult {
  background: var(--primary-soft);
  color: var(--dark);
  border-radius: var(--radius-lg);
  padding: 70px 60px;
  text-align: center;
  position: relative; overflow: hidden;
}
.tr-consult::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(236,106,30,0.10), transparent 45%),
                    radial-gradient(circle at 90% 80%, rgba(236,106,30,0.08), transparent 45%);
  pointer-events: none;
}
.tr-consult-inner { position: relative; }
.tr-consult-title { font-size: 32px; font-weight: 900; line-height: 1.5; color: var(--dark); margin-bottom: 16px; }
.tr-consult-sub { font-size: 15px; color: var(--text-secondary); line-height: 1.9; max-width: 640px; margin: 0 auto 40px; }
.tr-consult-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tr-consult-ctas .tr-btn { padding: 18px 38px; font-size: 16px; }

/* =============================================
   12. ページヘッド（非TOP共通）
   ============================================= */
.tr-page-head {
  padding: 48px 0 40px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
}
.tr-breadcrumb { font-size: 12.5px; color: var(--text-muted); margin-bottom: 20px; }
.tr-breadcrumb a { color: var(--text-muted); }
.tr-breadcrumb a:hover { color: var(--primary); }
.tr-breadcrumb .sep { margin: 0 8px; color: var(--text-light); }
.tr-breadcrumb .current { color: var(--dark-2); }
.tr-page-title { font-size: 36px; font-weight: 900; color: var(--dark); line-height: 1.4; margin-bottom: 14px; }
.tr-page-description { font-size: 14.5px; color: var(--text-secondary); line-height: 1.9; max-width: 720px; }
.tr-page-meta { margin-top: 18px; display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.tr-page-meta strong { color: var(--dark); font-weight: 700; margin-left: 4px; }
.tr-page-stats { display: flex; gap: 24px; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.tr-page-stats strong { color: var(--dark); font-size: 15px; font-weight: 900; margin-right: 4px; }

/* =============================================
   13. 記事一覧：フィルタ
   ============================================= */
.tr-filter-section {
  padding: 30px 0 24px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 73px;
  z-index: 50;
}
.tr-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tr-category-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-cat-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}
.tr-cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.tr-cat-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.tr-cat-tab .count { font-size: 11px; opacity: 0.75; }
.tr-cat-tab.active .count { opacity: 0.9; }
.tr-articles-section { padding: 50px 0 70px; }

/* =============================================
   14. ページネーション
   ============================================= */
.tr-pagination {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin-top: 60px;
}
.tr-page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  color: var(--dark-2);
  transition: all .2s;
  text-decoration: none;
}
.tr-page-link:hover { border-color: var(--primary); color: var(--primary); }
.tr-page-link.current,
.tr-page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.tr-page-link.dots { border: none; background: none; color: var(--text-muted); pointer-events: none; }

/* =============================================
   15. 記事詳細：ヘッダー
   ============================================= */
.tr-article-head {
  padding: 40px 0 24px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
}
.tr-article-category {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.tr-article-title {
  font-size: 36px; font-weight: 900;
  color: var(--dark);
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin-bottom: 28px;
  max-width: 860px;
}
.tr-article-meta {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--border-light);
}
.tr-meta-author { display: flex; align-items: center; gap: 12px; }
.tr-author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  overflow: hidden;
}
.tr-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tr-author-name { font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.4; }
.tr-author-role { font-size: 11.5px; color: var(--text-muted); }
.tr-meta-dates { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-muted); }
.tr-meta-dates .sep { color: var(--border); }

/* =============================================
   16. 記事アイキャッチ
   ============================================= */
.tr-article-eyecatch { max-width: 1100px; margin: 40px auto 0; padding: 0 32px; }
.tr-eyecatch-inner {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FB923C 0%, #EC6A1E 50%, #C2410C 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.tr-eyecatch-inner::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 24px, rgba(255,255,255,0.06) 24px, rgba(255,255,255,0.06) 48px);
}
.tr-eyecatch-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* =============================================
   17. 記事詳細：レイアウト
   ============================================= */
.tr-article-layout {
  max-width: 1100px;
  margin: 60px auto 80px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: start;
}

/* =============================================
   18. 記事本文タイポグラフィ
   ============================================= */
.tr-article-body { min-width: 0; }
.tr-article-lead {
  font-size: 17px; line-height: 2;
  color: var(--dark-2);
  font-weight: 500;
  margin-bottom: 40px;
  padding: 24px 28px;
  background: var(--primary-soft);
  border-radius: var(--radius);
}
.tr-article-body h2,
.tr-article-body .entry-content h2 {
  font-size: 26px; font-weight: 900;
  color: var(--dark);
  line-height: 1.5;
  margin: 60px 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.tr-article-body h2::before {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 60px; height: 2px;
  background: var(--primary);
}
.tr-article-body h3 {
  font-size: 21px; font-weight: 800;
  color: var(--dark);
  line-height: 1.55;
  margin: 52px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.tr-article-body h4 {
  font-size: 16px; font-weight: 700;
  color: var(--dark);
  margin: 28px 0 12px;
}
.tr-article-body p {
  font-size: 16px; line-height: 2;
  color: var(--text);
  margin-bottom: 20px;
}
.tr-article-body p strong {
  color: var(--dark); font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(236,106,30,0.25) 60%);
  padding: 0 2px;
}
.tr-article-body a:not(.tr-btn) {
  color: var(--primary); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.tr-article-body a:not(.tr-btn):hover { color: var(--primary-hover); }
.tr-article-body ul, .tr-article-body ol { margin: 20px 0 28px; padding-left: 4px; }
.tr-article-body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 15.5px; line-height: 1.9;
  list-style: none;
}
.tr-article-body ul li::before {
  content: '';
  position: absolute; left: 4px; top: 11px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
}
.tr-article-body ol { counter-reset: ol-counter; list-style: none; }
.tr-article-body ol li {
  counter-increment: ol-counter;
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  font-size: 15.5px; line-height: 1.9;
}
.tr-article-body ol li::before {
  content: counter(ol-counter) ".";
  position: absolute; left: 0; top: 0;
  color: var(--primary); font-weight: 700; font-size: 15px;
}
.tr-article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.tr-article-table thead { background: var(--dark); }
.tr-article-table thead th {
  padding: 14px 16px; color: #fff; font-weight: 700;
  text-align: left; font-size: 13px; letter-spacing: 0.5px;
}
.tr-article-table tbody td { padding: 14px 16px; border-top: 1px solid var(--border-light); color: var(--text); }
.tr-article-table tbody tr:hover { background: var(--primary-soft); }
.tr-article-table .num { font-weight: 700; color: var(--dark); }

.tr-callout {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--primary-soft);
  border-radius: var(--radius);
}
.tr-callout-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--primary);
  margin-bottom: 10px;
}
.tr-callout-title svg { width: 16px; height: 16px; }
.tr-callout p { font-size: 14.5px; line-height: 1.9; color: var(--text-secondary); margin-bottom: 0; }

.tr-article-body blockquote {
  margin: 28px 0;
  padding: 20px 28px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  color: var(--text-secondary);
  position: relative;
}
.tr-article-body blockquote::before {
  content: '"';
  position: absolute; top: 2px; left: 12px;
  font-size: 48px; font-weight: 900;
  color: var(--primary);
  line-height: 1;
  opacity: 0.4;
}
.tr-article-body blockquote p { margin-bottom: 8px; font-size: 15px; padding-left: 24px; }
.tr-article-body blockquote cite { display: block; padding-left: 24px; font-size: 12.5px; color: var(--text-muted); font-style: normal; }

/* =============================================
   19. 目次（Cocoon自動TOC・Markdown [TOC]・独自 .tr-toc 共通）
   ============================================= */
body.tateroute .tr-toc,
body.tateroute .toc,
body.tateroute #toc,
body.tateroute .toc-list,
body.tateroute .ez-toc-container,
body.tateroute #ez-toc-container {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0 40px;
}

/* 目次タイトル */
body.tateroute .tr-toc-title,
body.tateroute .toc-title,
body.tateroute .toc .toc-title,
body.tateroute #toc .toc-title,
body.tateroute .ez-toc-title,
body.tateroute #ez-toc-container .ez-toc-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--dark) !important;
  margin: 0 0 14px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid var(--border);
  background: none !important;
  text-align: left !important;
}

/* リスト全般リセット */
body.tateroute .tr-toc ol,
body.tateroute .tr-toc ul,
body.tateroute .toc ol,
body.tateroute .toc ul,
body.tateroute #toc ol,
body.tateroute #toc ul,
body.tateroute .ez-toc-list,
body.tateroute .ez-toc-container ol,
body.tateroute .ez-toc-container ul,
body.tateroute #ez-toc-container ol,
body.tateroute #ez-toc-container ul {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
body.tateroute .tr-toc li::before,
body.tateroute .toc li::before,
body.tateroute #toc li::before,
body.tateroute .ez-toc-container li::before,
body.tateroute #ez-toc-container li::before {
  display: none !important;
  content: none !important;
}

/* H2レベル（最上位ol/ul に toc-h2 カウンターをセット） */
body.tateroute .tr-toc > ol,
body.tateroute .tr-toc > ul,
body.tateroute .toc > ol,
body.tateroute .toc > ul,
body.tateroute #toc > ol,
body.tateroute #toc > ul,
body.tateroute .ez-toc-list,
body.tateroute .ez-toc-container > nav > ul,
body.tateroute .ez-toc-container > ul,
body.tateroute #ez-toc-container > nav > ul,
body.tateroute #ez-toc-container > ul {
  counter-reset: toc-h2;
}
body.tateroute .tr-toc > ol > li,
body.tateroute .tr-toc > ul > li,
body.tateroute .toc > ol > li,
body.tateroute .toc > ul > li,
body.tateroute #toc > ol > li,
body.tateroute #toc > ul > li,
body.tateroute .ez-toc-list > li,
body.tateroute .ez-toc-container > nav > ul > li,
body.tateroute .ez-toc-container > ul > li,
body.tateroute #ez-toc-container > nav > ul > li,
body.tateroute #ez-toc-container > ul > li {
  counter-increment: toc-h2;
  position: relative;
}
body.tateroute .tr-toc > ol > li > a,
body.tateroute .tr-toc > ul > li > a,
body.tateroute .toc > ol > li > a,
body.tateroute .toc > ul > li > a,
body.tateroute #toc > ol > li > a,
body.tateroute #toc > ul > li > a,
body.tateroute .ez-toc-list > li > a,
body.tateroute .ez-toc-container > nav > ul > li > a,
body.tateroute .ez-toc-container > ul > li > a,
body.tateroute #ez-toc-container > nav > ul > li > a,
body.tateroute #ez-toc-container > ul > li > a {
  display: inline-block;
  padding: 10px 0 10px 40px !important;
  position: relative;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--dark) !important;
  text-decoration: none !important;
  line-height: 1.7;
}
body.tateroute .tr-toc > ol > li > a::before,
body.tateroute .tr-toc > ul > li > a::before,
body.tateroute .toc > ol > li > a::before,
body.tateroute .toc > ul > li > a::before,
body.tateroute #toc > ol > li > a::before,
body.tateroute #toc > ul > li > a::before,
body.tateroute .ez-toc-list > li > a::before,
body.tateroute .ez-toc-container > nav > ul > li > a::before,
body.tateroute .ez-toc-container > ul > li > a::before,
body.tateroute #ez-toc-container > nav > ul > li > a::before,
body.tateroute #ez-toc-container > ul > li > a::before {
  content: counter(toc-h2, decimal-leading-zero);
  position: absolute; left: 0; top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  font-family: ui-monospace, monospace;
  letter-spacing: 1px;
}

/* H3以下：ネストしたul/olはインデント＋左罫線 */
body.tateroute .tr-toc li ul,
body.tateroute .tr-toc li ol,
body.tateroute .toc li ul,
body.tateroute .toc li ol,
body.tateroute #toc li ul,
body.tateroute #toc li ol,
body.tateroute .ez-toc-list li ul,
body.tateroute .ez-toc-list li ol,
body.tateroute .ez-toc-container li ul,
body.tateroute .ez-toc-container li ol,
body.tateroute #ez-toc-container li ul,
body.tateroute #ez-toc-container li ol {
  margin: 2px 0 10px 18px !important;
  padding: 4px 0 4px 16px !important;
  border-left: 1px dashed var(--border) !important;
}
body.tateroute .tr-toc li ul li a,
body.tateroute .tr-toc li ol li a,
body.tateroute .toc li ul li a,
body.tateroute .toc li ol li a,
body.tateroute #toc li ul li a,
body.tateroute #toc li ol li a,
body.tateroute .ez-toc-list li ul li a,
body.tateroute .ez-toc-list li ol li a,
body.tateroute .ez-toc-container li ul li a,
body.tateroute .ez-toc-container li ol li a,
body.tateroute #ez-toc-container li ul li a,
body.tateroute #ez-toc-container li ol li a {
  display: block !important;
  padding: 6px 0 6px 18px !important;
  position: relative !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  line-height: 1.6 !important;
}
body.tateroute .tr-toc li ul li a::before,
body.tateroute .tr-toc li ol li a::before,
body.tateroute .toc li ul li a::before,
body.tateroute .toc li ol li a::before,
body.tateroute #toc li ul li a::before,
body.tateroute #toc li ol li a::before,
body.tateroute .ez-toc-list li ul li a::before,
body.tateroute .ez-toc-list li ol li a::before,
body.tateroute .ez-toc-container li ul li a::before,
body.tateroute .ez-toc-container li ol li a::before,
body.tateroute #ez-toc-container li ul li a::before,
body.tateroute #ez-toc-container li ol li a::before {
  content: '–' !important;
  position: absolute !important;
  left: 0 !important;
  top: 6px !important;
  color: var(--text-light) !important;
  font-family: ui-monospace, monospace !important;
  font-weight: 600;
}

/* hover */
body.tateroute .tr-toc a:hover,
body.tateroute .toc a:hover,
body.tateroute #toc a:hover,
body.tateroute .ez-toc-container a:hover,
body.tateroute #ez-toc-container a:hover {
  color: var(--primary) !important;
  transition: color .2s;
}

/* ネストされた目次（H3以下） */
body.tateroute .tr-toc ol ol,
body.tateroute .tr-toc ul ul,
body.tateroute .toc ol ol,
body.tateroute .toc ul ul,
body.tateroute .ez-toc-container ul ul {
  margin-top: 2px !important;
  padding-left: 24px !important;
}
body.tateroute .tr-toc ol ol a,
body.tateroute .tr-toc ul ul a,
body.tateroute .toc ol ol a,
body.tateroute .toc ul ul a,
body.tateroute .ez-toc-container ul ul a {
  font-size: 13px !important;
  padding: 6px 0 6px 32px !important;
  color: var(--text-muted) !important;
}
body.tateroute .tr-toc ol ol a::before,
body.tateroute .tr-toc ul ul a::before,
body.tateroute .toc ol ol a::before,
body.tateroute .toc ul ul a::before,
body.tateroute .ez-toc-container ul ul a::before {
  top: 6px;
  font-size: 10px;
}

/* =============================================
   20. 記事末CTA（インライン）
   ============================================= */
.tr-article-cta {
  margin: 60px 0 40px;
  padding: 40px;
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative; overflow: hidden;
}
.tr-article-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(236,106,30,0.12), transparent 50%);
  pointer-events: none;
}
.tr-article-cta-label {
  position: relative;
  display: inline-block;
  font-size: 11.5px; font-weight: 700; color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.tr-article-cta h3 { position: relative; font-size: 22px; font-weight: 900; color: var(--dark); margin-bottom: 12px; line-height: 1.5; }
.tr-article-cta p { position: relative; font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.9; }
.tr-article-cta-buttons { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   21. タグ・著者ボックス
   ============================================= */
.tr-article-tags { margin: 40px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tr-tag-label { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-right: 8px; }
.tr-tag-link {
  display: inline-block;
  font-size: 12.5px; color: var(--text-secondary);
  padding: 6px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all .2s;
  text-decoration: none;
}
.tr-tag-link:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }

.tr-author-box {
  margin: 40px 0 0;
  padding: 28px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  display: flex; gap: 22px;
  align-items: flex-start;
}
.tr-author-avatar-lg {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
  overflow: hidden;
}
.tr-author-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.tr-author-info { flex: 1; }
.tr-author-name-lg { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.tr-author-info p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 0 !important; }

/* =============================================
   22. サイドバー
   ============================================= */
.tr-article-sidebar {
  position: sticky;
  top: 90px;
  display: flex; flex-direction: column; gap: 28px;
}
.tr-sidebar-block {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.tr-sidebar-title {
  font-size: 13px; font-weight: 700; color: var(--dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.tr-popular-list { display: flex; flex-direction: column; gap: 16px; padding: 0; margin: 0; list-style: none; }
.tr-popular-list li { position: static; padding: 0; margin: 0; list-style: none; }
.tr-popular-list li::before { display: none; content: none; }
.tr-popular-list a { display: block; padding: 0; transition: color .2s; text-decoration: none; color: inherit; }
.tr-popular-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tr-popular-rank {
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: var(--dark); color: #fff;
  font-size: 11.5px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  line-height: 1;
  font-family: ui-monospace, monospace;
}
.tr-popular-list li:first-child .tr-popular-rank { background: var(--primary); }
.tr-popular-cat { font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 0.5px; line-height: 1; }
.tr-popular-title {
  font-size: 13px; font-weight: 500; color: var(--dark);
  line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tr-popular-list a:hover .tr-popular-title { color: var(--primary); }

.tr-sidebar-cat-list { display: flex; flex-direction: column; padding: 0; margin: 0; list-style: none; }
.tr-sidebar-cat-list li { padding: 0; margin: 0; list-style: none; }
.tr-sidebar-cat-list li::before { display: none; content: none; }
.tr-sidebar-cat-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px; color: var(--text);
  text-decoration: none;
}
.tr-sidebar-cat-list li:last-child a { border-bottom: none; }
.tr-sidebar-cat-list a:hover { color: var(--primary); padding-left: 4px; }
.tr-sidebar-cat-list .count {
  font-size: 11px; color: var(--text-muted);
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

.tr-sidebar-cta {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #FFEDD5 100%);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.tr-sidebar-cta-icon {
  width: 48px; height: 48px;
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: var(--primary);
}
.tr-sidebar-cta-icon svg { width: 26px; height: 26px; }
.tr-sidebar-cta h3 { font-size: 15px; font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.tr-sidebar-cta p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.tr-sidebar-cta .tr-btn { padding: 11px 20px; font-size: 13px; width: 100%; }

/* =============================================
   23. お問い合わせページ
   ============================================= */
.tr-contact-main { padding: 60px 0 80px; }
.tr-contact-layout { max-width: 760px; margin: 0 auto; }
.tr-line-banner {
  background: linear-gradient(135deg, var(--line-green) 0%, var(--line-green-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
  align-items: center;
  position: relative; overflow: hidden;
}
.tr-line-banner::before {
  content: '';
  position: absolute; right: -40px; bottom: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.tr-line-banner-content { position: relative; }
.tr-line-banner-label {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--line-green);
  background: #fff;
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 14px; letter-spacing: 1px;
}
.tr-line-banner h2 { font-size: 24px; font-weight: 900; line-height: 1.5; margin-bottom: 12px; color: #fff; }
.tr-line-banner p { font-size: 14px; line-height: 1.9; opacity: 0.95; margin-bottom: 22px; max-width: 420px; color: #fff; }
.tr-line-banner-button {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--line-green) !important;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  transition: transform .2s;
}
.tr-line-banner-button:hover { transform: translateY(-2px); color: var(--line-green) !important; }
.tr-line-banner-button svg { width: 18px; height: 18px; }
.tr-line-banner-visual {
  position: relative;
  width: 140px; height: 140px;
  background: rgba(255,255,255,0.15);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
}
.tr-line-banner-visual svg { width: 70px; height: 70px; color: #fff; }

.tr-or-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 50px 0 36px;
  color: var(--text-muted);
  font-size: 13px; font-weight: 500;
}
.tr-or-divider::before, .tr-or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.tr-form-intro { text-align: center; margin-bottom: 24px; }
.tr-form-intro h3 { font-size: 20px; font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.tr-form-intro p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.8; }

/* Contact Form 7 スタイル（コンパクト版） */
.tr-cf7-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 28px 20px;
}
/* CF7のautopが挿入する <br /> を全て無効化（縦余白の支配的要因） */
.tr-cf7-wrap .wpcf7-form > p > br { display: none !important; }
.tr-cf7-wrap .wpcf7-form > p:first-of-type { margin-top: 0 !important; }
.tr-cf7-wrap .wpcf7-form > p:last-of-type { margin-bottom: 0 !important; }
/* 各項目：上に少し余白（項目名の上）、下は0 */
.tr-cf7-wrap .wpcf7-form p {
  margin: 14px 0 0;
  display: flex; flex-direction: column;
  font-size: 13.5px; font-weight: 700;
  color: var(--dark);
  gap: 5px;
}
.tr-cf7-wrap .wpcf7-form label { margin: 0 !important; padding: 0 !important; }
.tr-cf7-wrap .wpcf7-form-control-wrap { margin: 0 !important; padding: 0 !important; }
.tr-cf7-wrap .wpcf7-form p:last-of-type { margin-bottom: 0; }
.tr-cf7-wrap .wpcf7-form label { display: flex; align-items: center; gap: 8px; }
.tr-cf7-wrap .wpcf7-form-control-wrap { display: block; }
.tr-cf7-wrap input[type="text"],
.tr-cf7-wrap input[type="email"],
.tr-cf7-wrap input[type="tel"],
.tr-cf7-wrap input[type="url"],
.tr-cf7-wrap select,
.tr-cf7-wrap textarea {
  width: 100%;
  padding: 9px 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--dark);
  transition: border-color .2s;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.5;
}
.tr-cf7-wrap textarea { min-height: 0; height: auto; resize: vertical; line-height: 1.6; padding-top: 8px; padding-bottom: 8px; }
.tr-cf7-wrap input:focus,
.tr-cf7-wrap select:focus,
.tr-cf7-wrap textarea:focus { outline: none; border-color: var(--primary); }
.tr-cf7-wrap input::placeholder,
.tr-cf7-wrap textarea::placeholder { color: var(--text-light); }

.tr-cf7-wrap .wpcf7-list-item { margin: 0 0 8px 0; display: block; }
.tr-cf7-wrap .wpcf7-list-item:last-child { margin-bottom: 0; }
.tr-cf7-wrap .wpcf7-list-item label {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  font-weight: 500; font-size: 14.5px;
  line-height: 1.6;
}
.tr-cf7-wrap .wpcf7-list-item-label {
  padding: 2px 0;
}
.tr-cf7-wrap .wpcf7-list-item label:hover { border-color: var(--primary); background: var(--primary-soft); }
.tr-cf7-wrap input[type="radio"],
.tr-cf7-wrap input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  position: relative;
  transition: border-color .2s;
}
.tr-cf7-wrap input[type="radio"] { border-radius: 50%; }
.tr-cf7-wrap input[type="checkbox"] { border-radius: 4px; }
.tr-cf7-wrap input[type="radio"]:checked { border-color: var(--primary); }
.tr-cf7-wrap input[type="radio"]:checked::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
}
.tr-cf7-wrap input[type="checkbox"]:checked { border-color: var(--primary); background: var(--primary); }
.tr-cf7-wrap input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  color: #fff; font-size: 13px; font-weight: 900;
}

.tr-label-required,
.tr-cf7-wrap .required-mark {
  font-size: 10px; font-weight: 700;
  color: #fff; background: var(--danger);
  padding: 2px 8px; border-radius: 4px;
  letter-spacing: 1px;
  display: inline-block;
}
.tr-label-optional,
.tr-cf7-wrap .optional-mark {
  font-size: 10px; font-weight: 700;
  color: var(--text-muted); background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 4px;
  letter-spacing: 1px;
  display: inline-block;
}

.tr-cf7-wrap .wpcf7-form p:has(.wpcf7-submit) { margin-top: 20px; }
.tr-cf7-wrap .wpcf7-submit {
  width: 100%;
  padding: 13px 28px !important;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  font-size: 15px !important; font-weight: 700 !important;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(236,106,30,0.25);
  border: none !important;
  cursor: pointer;
}
.tr-cf7-wrap .wpcf7-submit:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(236,106,30,0.35);
}
.tr-cf7-wrap .wpcf7-spinner { display: none; }

.tr-cf7-wrap .wpcf7-not-valid-tip {
  color: var(--danger) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  margin-top: 6px;
}
.tr-cf7-wrap .wpcf7-response-output {
  border-radius: var(--radius) !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  margin: 14px 0 0 !important;
}

/* お問い合わせページ：LINEバナー〜OR区切り〜フォーム間の縦余白を圧縮 */
.tr-contact-main { padding: 40px 0 60px; }
.tr-or-divider { margin: 36px 0 24px !important; }
.tr-line-banner { padding: 32px 36px; }

/* =============================================
   24. 利用規約・プライバシー（Legal pages）
   ============================================= */
.tr-legal-main { padding: 60px 0 90px; }
.tr-legal-container { max-width: 840px; margin: 0 auto; padding: 0 32px; }
.tr-legal-lead { font-size: 15px; color: var(--text-secondary); line-height: 2; margin-bottom: 50px; padding: 24px 28px; background: var(--bg-soft); border-radius: var(--radius); }
.tr-legal-section { margin-bottom: 48px; }
.tr-legal-section h2 { font-size: 19px; font-weight: 900; color: var(--dark); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--border); line-height: 1.5; }
.tr-legal-section h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin: 22px 0 10px; }
.tr-legal-section p { font-size: 14.5px; color: var(--text); line-height: 2; margin-bottom: 14px; }

/* --- class付きカスタム番号/箇条書き（利用規約の(1)(2)形式など） --- */
.tr-legal-section ol.numbered { counter-reset: clause; margin: 12px 0 20px; padding: 0; list-style: none; }
.tr-legal-section ol.numbered > li { counter-increment: clause; position: relative; padding-left: 36px; margin-bottom: 12px; font-size: 14.5px; line-height: 2; list-style: none; }
.tr-legal-section ol.numbered > li::before { content: "(" counter(clause) ")"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--dark-2); font-family: ui-monospace, monospace; }
.tr-legal-section ul.bulleted { margin: 8px 0 16px; padding: 0; list-style: none; }
.tr-legal-section ul.bulleted > li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 14.5px; line-height: 1.9; list-style: none; }
.tr-legal-section ul.bulleted > li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }

/* --- 汎用 ol/ul（クラス指定なし） --- */
.tr-legal-section ol:not(.numbered),
.tr-legal-section ul:not(.bulleted) {
  margin: 14px 0 24px;
}
.tr-legal-section ol:not(.numbered) {
  list-style: decimal outside;
  padding-left: 28px;
}
.tr-legal-section ul:not(.bulleted) {
  list-style: disc outside;
  padding-left: 24px;
}
.tr-legal-section ol:not(.numbered) > li,
.tr-legal-section ul:not(.bulleted) > li {
  font-size: 14.5px;
  line-height: 1.95;
  margin-bottom: 8px;
  color: var(--text);
}
.tr-legal-section ol:not(.numbered) > li::marker,
.tr-legal-section ul:not(.bulleted) > li::marker {
  color: var(--dark-2);
}
.tr-legal-section ol:not(.numbered) ol,
.tr-legal-section ul:not(.bulleted) ul,
.tr-legal-section ol:not(.numbered) ul,
.tr-legal-section ul:not(.bulleted) ol {
  margin: 6px 0 6px;
}
.tr-legal-section a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.tr-legal-section table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.tr-legal-section th { background: var(--bg-soft); padding: 12px 14px; text-align: left; font-weight: 700; color: var(--dark); border: 1px solid var(--border); }
.tr-legal-section td { padding: 12px 14px; border: 1px solid var(--border); line-height: 1.8; }
.tr-legal-footer { margin-top: 60px; padding: 28px 32px; background: var(--bg-soft); border-radius: var(--radius); text-align: right; }
.tr-legal-footer p { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.tr-legal-footer p:last-child { margin-bottom: 0; font-weight: 700; color: var(--dark); }

/* =============================================
   24-2. About ページ専用スタイル
   ============================================= */
.tr-about-page { padding: 60px 0 90px; }
.tr-about-page-inner { max-width: 880px; margin: 0 auto; padding: 0 32px; }

.tr-about-page-inner > * { margin-bottom: 24px; }
.tr-about-page-inner > *:last-child { margin-bottom: 0; }

.tr-about-page-inner h2 {
  font-size: 24px; font-weight: 900;
  color: var(--dark);
  line-height: 1.5;
  margin: 60px 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.tr-about-page-inner h2::before {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 56px; height: 2px;
  background: var(--primary);
}
.tr-about-page-inner h2:first-child { margin-top: 0; }

.tr-about-page-inner h3 {
  font-size: 17px; font-weight: 700;
  color: var(--dark);
  margin: 32px 0 14px;
}

.tr-about-page-inner p {
  font-size: 15.5px; line-height: 2;
  color: var(--text);
  margin-bottom: 20px;
}
.tr-about-page-inner p strong {
  color: var(--dark); font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(236,106,30,0.25) 60%);
  padding: 0 2px;
}

.tr-about-page-inner ul, .tr-about-page-inner ol { margin: 16px 0 28px; padding-left: 4px; list-style: none; }
.tr-about-page-inner ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 15px; line-height: 1.9;
}
.tr-about-page-inner ul li::before {
  content: '';
  position: absolute; left: 4px; top: 11px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
}
.tr-about-page-inner ol { counter-reset: about-counter; }
.tr-about-page-inner ol li {
  counter-increment: about-counter;
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  font-size: 15px; line-height: 1.9;
}
.tr-about-page-inner ol li::before {
  content: counter(about-counter) ".";
  position: absolute; left: 0; top: 0;
  color: var(--primary); font-weight: 700;
}

.tr-about-page-inner table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14.5px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.tr-about-page-inner th {
  background: var(--bg-soft);
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  color: var(--dark);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 30%;
}
.tr-about-page-inner td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  line-height: 1.8;
}
.tr-about-page-inner tr:last-child th,
.tr-about-page-inner tr:last-child td { border-bottom: none; }

.tr-about-page-inner a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* About ページ専用パーツ */
.tr-mission-card {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #FFEDD5 100%);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  margin: 0 0 60px !important;
  text-align: center;
}
.tr-mission-card p {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--dark) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}
.tr-mission-card p strong { color: var(--primary) !important; background: none !important; padding: 0 !important; }

.tr-pain-quotes {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0 32px !important;
}
.tr-pain-quotes p {
  font-size: 15px !important;
  font-style: italic;
  color: var(--text-secondary) !important;
  margin-bottom: 8px !important;
  line-height: 1.7 !important;
  padding-left: 18px;
  position: relative;
}
.tr-pain-quotes p::before {
  content: '"';
  position: absolute; left: 0; top: -2px;
  color: var(--primary);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
}

.tr-principles-grid {
  display: grid; gap: 16px;
  margin: 24px 0 40px !important;
  list-style: none !important;
  padding: 0 !important;
}
.tr-principles-grid li {
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  list-style: none !important;
  padding-left: 28px !important;
  margin-bottom: 0 !important;
  counter-increment: none !important;
}
.tr-principles-grid li::before { display: none !important; content: none !important; }
.tr-principles-grid li .num {
  flex-shrink: 0;
  font-size: 28px; font-weight: 900;
  color: var(--primary);
  line-height: 1;
  width: 40px;
}
.tr-principles-grid li .title {
  display: block;
  font-size: 16px; font-weight: 900;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.5;
}
.tr-principles-grid li .desc {
  display: block;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.tr-categories-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0 40px !important;
  padding: 0 !important;
  list-style: none !important;
}
.tr-categories-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px !important;
  list-style: none !important;
  margin-bottom: 0 !important;
  counter-increment: none !important;
}
.tr-categories-list li::before { display: none !important; content: none !important; }
.tr-categories-list li strong {
  display: block;
  font-size: 15px;
  color: var(--dark);
  font-weight: 700;
  background: none !important;
  padding: 0 !important;
  margin-bottom: 4px;
}
.tr-categories-list li span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 720px) {
  .tr-about-page { padding: 40px 0 60px; }
  .tr-about-page-inner { padding: 0 20px; }
  .tr-about-page-inner h2 { font-size: 20px; margin: 44px 0 18px; }
  .tr-about-page-inner h3 { font-size: 16px; }
  .tr-mission-card { padding: 28px 24px; }
  .tr-mission-card p { font-size: 17px !important; }
  .tr-categories-list { grid-template-columns: 1fr; }
}

/* =============================================
   25. フッター（独自）
   ============================================= */
.tr-footer { background: var(--dark); color: #D1D5DB; padding: 70px 0 30px; }
.tr-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.tr-footer-brand img { height: 34px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.tr-footer-description { font-size: 13px; line-height: 1.9; color: #9CA3AF; }
.tr-footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.tr-footer-col ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tr-footer-col li { list-style: none; padding: 0; margin: 0; }
.tr-footer-col a { font-size: 13px; color: #9CA3AF; text-decoration: none; }
.tr-footer-col a:hover { color: #fff; }
.tr-footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #6B7280;
}
.tr-footer-bottom-links { display: flex; gap: 24px; }
.tr-footer-bottom-links a { color: #6B7280; text-decoration: none; }
.tr-footer-bottom-links a:hover { color: #fff; }

/* =============================================
   26. レスポンシブ
   ============================================= */
@media (max-width: 1000px) {
  .tr-article-layout { grid-template-columns: 1fr; gap: 50px; }
  .tr-article-sidebar { position: static; }
}
@media (max-width: 960px) {
  .tr-nav { display: none; }
  .tr-hero { padding: 60px 0 80px; }
  .tr-hero-grid { grid-template-columns: 1fr; }
  .tr-hero-title { font-size: 36px; }
  .tr-hero-visual { max-width: 360px; margin: 0 auto; }
  .tr-section { padding: 70px 0; }
  .tr-section-title { font-size: 26px; }
  .tr-page-title { font-size: 28px; }
  .tr-page-head { padding: 36px 0 28px; }
  .tr-featured { grid-template-columns: 1fr; }
  .tr-featured-body { padding: 30px; }
  .tr-categories-grid { grid-template-columns: repeat(3, 1fr); }
  .tr-articles-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .tr-about { grid-template-columns: 1fr; padding: 40px 28px; gap: 30px; }
  .tr-consult { padding: 50px 28px; }
  .tr-consult-title { font-size: 24px; }
  .tr-article-head { padding: 28px 0 20px; }
  .tr-article-title { font-size: 24px; }
  .tr-article-meta { gap: 16px; }
  .tr-article-eyecatch { padding: 0 20px; margin-top: 24px; }
  .tr-article-layout { padding: 0 20px; margin: 40px auto 60px; }
  .tr-article-body h2 { font-size: 21px; margin: 44px 0 18px; }
  .tr-article-body h3 { font-size: 18px; margin: 40px 0 14px; padding-bottom: 8px; }
  .tr-article-body p { font-size: 15px; }
  .tr-article-cta { padding: 30px 24px; }
  .tr-line-banner { grid-template-columns: 1fr; padding: 24px 22px; }
  .tr-line-banner-visual { display: none; }
  .tr-cf7-wrap { padding: 6px 20px 18px; }
  .tr-cf7-wrap .wpcf7-form p { margin: 12px 0 0; }
  .tr-legal-section h2 { font-size: 17px; }
  .tr-filter-section { position: static; }
  .tr-filter-bar { gap: 16px; }
  .tr-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .tr-container { padding: 0 20px; }
  .tr-header-inner { padding: 14px 20px; }
  .tr-header-cta span { display: none; }
  .tr-hero-title { font-size: 28px; }
  .tr-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .tr-articles-grid { grid-template-columns: 1fr; }
  .tr-legal-container { padding: 0 20px; }
  .tr-cf7-wrap { padding: 4px 16px 16px; }
  .tr-cf7-wrap .wpcf7-form p { margin: 10px 0 0; }
  .tr-line-banner h2 { font-size: 20px; }
  .tr-category-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: thin; }
  .tr-cat-tab { flex-shrink: 0; }
  .tr-footer-grid { grid-template-columns: 1fr; }
  .tr-footer-bottom { flex-direction: column; gap: 14px; }
  .tr-page-link { min-width: 36px; height: 36px; padding: 0 8px; font-size: 13px; }
  .tr-pagination { gap: 4px; }
  .tr-legal-section table { font-size: 12.5px; }
  .tr-legal-section th, .tr-legal-section td { padding: 8px; }
}

/* =============================================
   28. サイトマップページ
   ============================================= */
body.tateroute .tr-sitemap-content {
  padding: 30px 0 80px;
}
body.tateroute .tr-sitemap-content .tr-container {
  max-width: 900px;
}
body.tateroute .tr-sitemap-section {
  margin-bottom: 56px;
}
body.tateroute .tr-sitemap-section > h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
body.tateroute .tr-sitemap-section > h2::before {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 60px; height: 2px;
  background: var(--primary);
}
body.tateroute .tr-sitemap-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 28px 0 12px;
  padding: 0;
  border: none;
}
body.tateroute .tr-sitemap-section h3 a {
  color: var(--dark);
  text-decoration: none;
  transition: color .2s;
}
body.tateroute .tr-sitemap-section h3 a:hover {
  color: var(--primary);
}
body.tateroute .tr-sitemap-section .tr-sitemap-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 8px;
}
body.tateroute .tr-sitemap-section ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
}
body.tateroute .tr-sitemap-section ul li {
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 1px dashed var(--border-light);
}
body.tateroute .tr-sitemap-section ul li::before {
  content: none !important;
  display: none !important;
}
body.tateroute .tr-sitemap-section ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 4px;
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  transition: color .2s, background .2s;
}
body.tateroute .tr-sitemap-section ul li a:hover {
  color: var(--primary);
  background: var(--bg-soft);
  padding-left: 8px;
  padding-right: 8px;
}
body.tateroute .tr-sitemap-section ul li a > span:first-child {
  flex: 1;
  min-width: 0;
}
body.tateroute .tr-sitemap-section ul li a .date {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  font-weight: 500;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
body.tateroute .tr-sitemap-cat-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 3px;
  margin-right: 4px;
  letter-spacing: 0.3px;
}
body.tateroute .tr-sitemap-empty {
  padding: 14px 16px;
  background: var(--bg-soft);
  color: var(--text-muted);
  border-radius: var(--radius);
  font-size: 13px;
}
body.tateroute .tr-sitemap-note {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.8;
}
body.tateroute .tr-sitemap-note a {
  color: var(--primary);
  text-decoration: underline;
}
@media (max-width: 768px) {
  body.tateroute .tr-sitemap-section > h2 { font-size: 19px; }
  body.tateroute .tr-sitemap-section ul li a { font-size: 13.5px; padding: 10px 0; }
  body.tateroute .tr-sitemap-section ul li a .date { font-size: 11px; }
}
