/*
Theme Name: 転職ツリー
Theme URI: https://career-tree.jp/
Author: 株式会社イノベル
Author URI: https://career-tree.jp/about/
Description: 年収データで選ぶ転職メディア「転職ツリー」専用テーマ。企業・求人・エージェントのカスタム投稿、職種別年収、旧URLの301/410、Phase 2 フラグ（tt_monetization_enabled）を内蔵。
Version: 1.4.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tenshoku-tree
*/

/* ==========================================================================
   トークン（1.3.0: 見やすさ更新。色は 紙・墨・深緑 の 3 系統＋増減の 2 色）
   ========================================================================== */
:root {
	--tt-paper: #FAF8F2;
	--tt-paper-2: #F2EFE6;
	--tt-white: #FFFFFF;
	--tt-ink: #1F1E1B;
	--tt-ink-2: #5F5B54;
	--tt-ink-3: #8C877C;
	--tt-chart: #2E7D5B;
	--tt-chart-soft: #BFD9CB;
	--tt-rule: #CFC9BC;
	--tt-line: #E6E1D5;
	--tt-accent: #1F5E45;
	--tt-accent-hover: #164633;
	--tt-tint: #EAF2EC;
	--tt-tint-2: #D9E8DE;
	--tt-up: #1F7A4D;
	--tt-down: #B5473C;
	--tt-radius: 12px;
	--tt-radius-s: 8px;
	--tt-shadow: 0 1px 2px rgba(31, 30, 27, .04), 0 10px 28px -20px rgba(31, 30, 27, .25);
	--tt-font-display: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
	--tt-font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
	--tt-size-h1: clamp(28px, 2.4vw + 10px, 40px);
	--tt-size-h2: 24px;
	--tt-size-h3: 17px;
	--tt-size-lead: 18px;
	--tt-size-body: 16px;
	--tt-size-table: 14.5px;
	--tt-size-caption: 13px;
	--tt-size-note: 12.5px;
	--tt-lh-body: 1.95;
	--tt-measure: 38em;
	--tt-content-max: 1140px;
	--tt-gutter-l: 48px;
	--tt-gutter-r: 32px;
	--tt-aside-w: 280px;
}

/* ==========================================================================
   ベース
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--tt-paper);
	color: var(--tt-ink);
	font-family: var(--tt-font-body);
	font-size: var(--tt-size-body);
	line-height: var(--tt-lh-body);
	font-feature-settings: "palt";
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--tt-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--tt-accent-hover); }
.tt-nav a, .tt-crumb a, .tt-footer a, .tt-aside a, .tt-ink a, .tt-news a, .tt-list a { color: var(--tt-ink); text-decoration: none; }
.tt-nav a:hover, .tt-crumb a:hover, .tt-footer a:hover, .tt-aside a:hover, .tt-ink a:hover, .tt-news a:hover, .tt-list a:hover { text-decoration: underline; text-decoration-color: var(--tt-accent); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--tt-rule); margin: 32px 0; }
.tt-muted { color: var(--tt-ink-3); }

.tt-skip { position: absolute; left: -9999px; top: 0; background: var(--tt-ink); color: var(--tt-paper); padding: 8px 12px; z-index: 100; }
.tt-skip:focus { left: 8px; top: 8px; }
.tt-visually-hidden, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tt-wrap { max-width: var(--tt-content-max); margin: 0 auto; padding-left: var(--tt-gutter-l); padding-right: var(--tt-gutter-r); }

/* ==========================================================================
   マストヘッド
   ========================================================================== */
.tt-masthead { background: var(--tt-white); border-bottom: 1px solid var(--tt-line); }
.tt-masthead-inner { padding-top: 18px; padding-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; }
.tt-brand { display: flex; flex-direction: column; gap: 2px; }
.tt-wordmark { color: var(--tt-ink); text-decoration: none; display: flex; align-items: flex-end; gap: 12px; }
.tt-logo-svg { display: block; height: 38px; width: auto; }
.tt-wordmark .tt-domain { padding-bottom: 3px; }
.tt-wordmark:hover { color: var(--tt-ink); text-decoration: none; }
.tt-logo { font-family: var(--tt-font-display); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: .06em; }
.tt-domain { font-size: 12px; color: var(--tt-ink-3); letter-spacing: .04em; }
.tt-tagline { font-size: 12px; color: var(--tt-ink-2); letter-spacing: .08em; }
.tt-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; font-size: 14px; flex-wrap: wrap; }
.tt-nav li { margin: 0; }
.tt-nav a { display: inline-block; padding: 7px 12px; border-radius: 999px; font-weight: 500; }
.tt-nav a:hover { background: var(--tt-tint); text-decoration: none; color: var(--tt-accent); }
.tt-nav .current-menu-item > a, .tt-nav .current_page_item > a { background: var(--tt-tint); color: var(--tt-accent); }
.tt-rule-double { height: 3px; background: linear-gradient(90deg, var(--tt-accent), var(--tt-chart) 60%, var(--tt-chart-soft)); }

/* ==========================================================================
   トップのリード帯・検索
   ========================================================================== */
.tt-intro { background: var(--tt-white); border-bottom: 1px solid var(--tt-line); }
.tt-intro-inner { padding-top: 36px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 20px 64px; align-items: flex-end; justify-content: space-between; }
.tt-intro-text { flex: 1 1 480px; max-width: 42em; }
.tt-intro-text p { margin: 0; font-size: 15.5px; color: var(--tt-ink-2); }
.tt-intro-title { margin: 0 0 10px; font-family: var(--tt-font-display); font-weight: 700; font-size: clamp(24px, 1.6vw + 14px, 30px); line-height: 1.45; letter-spacing: .02em; }
.tt-intro-stats { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tt-intro-stats li { font-size: 13px; color: var(--tt-ink-2); background: var(--tt-paper); border: 1px solid var(--tt-line); border-radius: 999px; padding: 5px 12px; }
.tt-intro-stats b { font-family: var(--tt-font-display); font-weight: 700; font-size: 15px; color: var(--tt-ink); margin-right: 1px; }
.tt-search { flex: 0 1 380px; display: flex; border: 1.5px solid var(--tt-rule); background: var(--tt-white); position: relative; border-radius: 999px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.tt-search:focus-within { border-color: var(--tt-accent); box-shadow: 0 0 0 3px var(--tt-tint); }
.tt-search input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0 18px; height: 46px; font: inherit; font-size: 14px; background: transparent; color: var(--tt-ink); border-radius: 0; }
.tt-search input:focus { outline: none; }
.tt-search button { border: 0; background: var(--tt-accent); color: var(--tt-white); padding: 0 20px; height: 46px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 0; }
.tt-search button:hover { background: var(--tt-accent-hover); }

/* ==========================================================================
   メイン 2 カラム（本文 + 右カラム）
   ========================================================================== */
.tt-main { padding-top: 24px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: flex-start; }
.tt-main.tt-main-top { padding-top: 32px; }
.tt-article { flex: 999 1 560px; min-width: 0; }
.tt-aside { flex: 1 1 240px; max-width: 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 16px; }
.tt-aside section { margin: 0; background: var(--tt-white); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); padding: 16px 18px 14px; box-shadow: var(--tt-shadow); }
.tt-aside h2 { font-family: var(--tt-font-display); font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--tt-ink); margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px solid var(--tt-line); display: flex; align-items: center; gap: 8px; }
.tt-aside h2::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--tt-accent); }
.tt-aside ul { list-style: none; margin: 0; padding: 0; }
.tt-aside li { padding: 8px 0; border-bottom: 1px solid var(--tt-line); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.tt-aside li:last-child { border-bottom: 0; }
.tt-aside li span { color: var(--tt-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; }
.tt-aside-bars li { position: relative; padding-bottom: 14px; }
.tt-aside-bars li i { position: absolute; left: 0; bottom: 6px; height: 4px; border-radius: 2px; background: var(--tt-chart-soft); width: var(--w, 0); }
.tt-aside-bars li i::after { content: ""; position: absolute; inset: 0; border-radius: 2px; background: var(--tt-chart); opacity: .9; }
.tt-aside p { font-size: 14px; margin: 0; }
.tt-aside .tt-more { margin: 10px 0 0; font-size: 13px; }
.tt-aside .tt-more a { color: var(--tt-accent); }
.tt-toc { counter-reset: toc; }
.tt-toc li { display: flex; flex-wrap: nowrap; gap: 10px; align-items: flex-start; justify-content: flex-start; counter-increment: toc; padding: 7px 0; }
.tt-toc a { flex: 1 1 auto; min-width: 0; }
.tt-toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--tt-font-display); font-weight: 700; font-size: 12px; color: var(--tt-accent); line-height: 1.9; flex: none; }
.tt-toc a { color: var(--tt-ink); }

/* ==========================================================================
   パンくず・見出し部
   ========================================================================== */
.tt-crumb { font-size: 13px; color: var(--tt-ink-3); margin: 0 0 22px; }
.tt-crumb .sep { margin: 0 8px; color: var(--tt-rule); }
.tt-head { padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--tt-line); }
.tt-kicker { margin: 0 0 12px; font-size: 13px; color: var(--tt-ink-2); letter-spacing: .04em; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tt-kicker > span { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: var(--tt-tint); color: var(--tt-accent); }
.tt-kicker > span + span { background: var(--tt-paper-2); color: var(--tt-ink-2); }
.tt-kicker .tt-pr { background: transparent; color: var(--tt-ink); }
.tt-h1 { margin: 0; font-family: var(--tt-font-display); font-weight: 700; font-size: var(--tt-size-h1); line-height: 1.35; letter-spacing: .01em; }
.tt-meta { margin: 12px 0 0; font-size: 13px; color: var(--tt-ink-2); }
.tt-meta + .tt-meta { margin-top: 6px; }
.tt-h2 { position: relative; font-family: var(--tt-font-display); font-weight: 700; font-size: var(--tt-size-h2); line-height: 1.45; letter-spacing: .02em; margin: 56px 0 20px; padding: 2px 0 2px 16px; border-top: 0; }
.tt-h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: var(--tt-accent); }
.tt-h2-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 48px 0 18px; }
.tt-h2 small { font-family: var(--tt-font-body); font-size: 13px; font-weight: 400; color: var(--tt-ink-2); }
.tt-h3 { font-family: var(--tt-font-display); font-weight: 700; font-size: var(--tt-size-h3); line-height: 1.6; margin: 34px 0 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tt-h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--tt-accent); flex: none; }
.tt-h3 small { font-family: var(--tt-font-body); font-weight: 400; font-size: 13px; color: var(--tt-ink-2); margin-left: 4px; }
.tt-article > .tt-h2:first-child, .tt-article > .tt-h2-row:first-child { margin-top: 0; }
.tt-pr { display: inline-block; font-size: 11px; letter-spacing: .1em; border: 1px solid var(--tt-ink); padding: 1px 6px; margin-right: 8px; vertical-align: middle; line-height: 1.6; }
.tt-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--tt-paper-2); color: var(--tt-ink-2); margin-right: 8px; vertical-align: 1px; }

/* ==========================================================================
   結論カード・本文
   ========================================================================== */
.tt-lead-card { position: relative; background: var(--tt-white); border: 1px solid var(--tt-line); border-left: 5px solid var(--tt-accent); border-radius: var(--tt-radius); padding: 18px 22px 16px 22px; margin: 0 0 8px; max-width: 46em; box-shadow: var(--tt-shadow); }
.tt-lead-label { margin: 0 0 6px !important; font-family: var(--tt-font-display); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--tt-accent); }
.tt-lead-card .tt-lead { margin: 0 !important; }
.tt-lead-card .tt-lead strong { font-family: var(--tt-font-display); font-size: 1.25em; color: var(--tt-accent); font-weight: 700; padding: 0 1px; }
.tt-lead-card .tt-reader { margin: 12px 0 0 !important; padding-top: 10px; border-top: 1px dashed var(--tt-line); }
.tt-prose { max-width: var(--tt-measure); }
.tt-prose p { margin: 0 0 1.35em; }
.tt-prose p:last-child { margin-bottom: 0; }
.tt-lead { font-size: var(--tt-size-lead); line-height: 1.85; margin: 0 0 8px !important; }
.tt-reader { font-size: 13px; color: var(--tt-ink-2); margin: 0 0 8px !important; }
.tt-prose ul, .tt-prose ol { padding-left: 1.5em; margin: 0 0 1.35em; }
.tt-prose li { margin: 0 0 .5em; }
.tt-prose blockquote { margin: 0 0 1.35em; padding: 0 0 0 16px; border-left: 3px solid var(--tt-tint-2); color: var(--tt-ink-2); }
.tt-prose img, .tt-prose figure { margin: 0 0 1.35em; }
.tt-prose figcaption { font-size: var(--tt-size-note); color: var(--tt-ink-2); }
.tt-prose h2, .tt-content h2 { position: relative; font-family: var(--tt-font-display); font-weight: 700; font-size: var(--tt-size-h2); line-height: 1.45; letter-spacing: .02em; margin: 56px 0 20px; padding: 2px 0 2px 16px; border-top: 0; }
.tt-prose h2::before, .tt-content h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: var(--tt-accent); }
.tt-prose h3, .tt-content h3 { font-family: var(--tt-font-display); font-weight: 700; font-size: var(--tt-size-h3); line-height: 1.6; margin: 34px 0 12px; padding-left: 16px; position: relative; }
.tt-prose h3::before, .tt-content h3::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--tt-accent); }
.tt-prose h4, .tt-content h4 { font-weight: 700; font-size: 15px; margin: 22px 0 8px; }
.tt-prose > :first-child { margin-top: 0; }
.tt-content table { width: 100%; border-collapse: collapse; font-size: var(--tt-size-table); line-height: 1.6; background: var(--tt-white); margin: 0 0 1.35em; }
.tt-content th, .tt-content td { padding: 10px 12px; border-bottom: 1px solid var(--tt-line); text-align: left; vertical-align: top; font-weight: 400; }
.tt-content thead th { background: var(--tt-tint); font-weight: 700; font-size: 13px; color: var(--tt-ink-2); border-bottom: 1px solid var(--tt-tint-2); }
.tt-content tbody tr:nth-child(even) td, .tt-content tbody tr:nth-child(even) th { background: #FCFBF8; }
.tt-content .wp-block-table { margin: 0 0 1.35em; overflow-x: auto; border: 1px solid var(--tt-line); border-radius: var(--tt-radius-s); }
.tt-content .wp-block-table table { margin: 0; }
.tt-content .wp-block-image img { display: block; border-radius: var(--tt-radius-s); }
.tt-content .aligncenter { margin-left: auto; margin-right: auto; }
.tt-content .alignwide, .tt-content .alignfull { max-width: none; }
.tt-content .wp-block-separator { border: 0; border-top: 1px solid var(--tt-rule); margin: 32px 0; }
.tt-content .wp-block-quote { margin: 0 0 1.35em; padding: 0 0 0 16px; border-left: 3px solid var(--tt-tint-2); }
.tt-content .wp-block-quote cite { font-size: 13px; color: var(--tt-ink-2); font-style: normal; }
.tt-content .wp-block-code, .tt-content pre { background: var(--tt-paper-2); padding: 12px 16px; overflow-x: auto; font-size: 13px; border-radius: var(--tt-radius-s); }
.tt-content .wp-block-button__link { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; background: var(--tt-accent); color: var(--tt-white); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 999px; }
.tt-content .wp-block-button__link:hover { background: var(--tt-accent-hover); }
.tt-content .wp-block-columns { gap: 24px 32px; }
.tt-content .tt-prose { max-width: none; }
.tt-content > *:not(.alignwide):not(.alignfull):not(.wp-block-table):not(table):not(figure) { max-width: var(--tt-measure); }
.tt-data-note { font-size: 13px; color: var(--tt-ink-2); max-width: var(--tt-measure); margin: 12px 0 0; }
.tt-foot-note { margin: 32px 0 0; font-size: var(--tt-size-note); color: var(--tt-ink-2); max-width: var(--tt-measure); }

/* ==========================================================================
   数字タイル（KPI 行）
   ========================================================================== */
.tt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.tt-stat { background: var(--tt-white); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; box-shadow: var(--tt-shadow); }
.tt-stat:first-child { border-top: 3px solid var(--tt-accent); }
.tt-stat .l { font-size: 12px; color: var(--tt-ink-2); letter-spacing: .02em; line-height: 1.5; }
.tt-stat .v { font-family: var(--tt-font-display); font-weight: 700; font-size: clamp(22px, 1.4vw + 12px, 30px); line-height: 1.15; color: var(--tt-ink); letter-spacing: -.01em; margin-top: 4px; white-space: nowrap; }
.tt-stat .v small { font-size: 13px; font-weight: 700; color: var(--tt-ink-2); margin-left: 3px; letter-spacing: 0; }
.tt-stat .d { font-size: 12.5px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tt-stat .d em { font-style: normal; font-weight: 400; color: var(--tt-ink-3); margin-left: 6px; }
.tt-stat .d.up { color: var(--tt-up); }
.tt-stat .d.down { color: var(--tt-down); }
.tt-stat .d.flat { color: var(--tt-ink-2); }
.tt-stat .s { font-size: 11.5px; color: var(--tt-ink-3); margin-top: 4px; line-height: 1.5; }
.tt-delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.tt-delta.up { color: var(--tt-up); }
.tt-delta.down { color: var(--tt-down); }
.tt-delta.flat { color: var(--tt-ink-2); }

/* ==========================================================================
   表
   ========================================================================== */
table.tt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--tt-size-table); line-height: 1.55; background: var(--tt-white); }
table.tt caption { caption-side: top; text-align: left; font-size: var(--tt-size-caption); color: var(--tt-ink-2); padding: 0 0 8px; }
table.tt th, table.tt td { padding: 11px 12px; border-bottom: 1px solid var(--tt-line); text-align: left; vertical-align: middle; font-weight: 400; }
table.tt thead th { background: var(--tt-tint); font-weight: 700; font-size: 12.5px; color: var(--tt-ink-2); letter-spacing: .02em; border-bottom: 1px solid var(--tt-tint-2); white-space: nowrap; }
table.tt tbody tr:nth-child(even) td, table.tt tbody tr:nth-child(even) th { background: #FCFBF8; }
table.tt tbody tr:hover td, table.tt tbody tr:hover th { background: #F3F7F4; }
table.tt tbody th { font-weight: 500; color: var(--tt-ink-2); white-space: nowrap; width: 9em; }
table.tt .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tt .nw { white-space: nowrap; }
table.tt .tt-name { min-width: 11em; }
table.tt .tt-name a, table.tt .tt-ink a { font-weight: 500; }
table.tt tbody tr:last-child td, table.tt tbody tr:last-child th { border-bottom: 0; }
table.tt.tt-cmp td { font-size: 13px; }
table.tt.tt-kv tbody th { background: var(--tt-paper); vertical-align: top; }
table.tt.tt-kv td.num { text-align: left; }
table.tt.tt-kv td { white-space: normal; line-height: 1.7; }
.tt-cols .tt-col-kv { flex: 1 1 100%; max-width: 760px; }
.tt-cols .tt-col-kv + .tt-col-roles { flex-basis: 100%; }
.tt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--tt-line); border-radius: var(--tt-radius); background: var(--tt-white); box-shadow: var(--tt-shadow); }
.tt-scroll table.tt caption { padding: 12px 14px 0; }
.tt-scroll.tt-narrow { max-width: 680px; }
.tt-scroll.tt-mid { max-width: 760px; }
.tt-src { font-size: var(--tt-size-note); color: var(--tt-ink-2); margin: 8px 0 0; line-height: 1.7; }
.tt-src a { color: var(--tt-accent); }
.tt-cols { display: flex; flex-wrap: wrap; gap: 24px 24px; align-items: flex-start; }
.tt-col { flex: 1 1 320px; min-width: 0; }
.tt-col-wide { flex: 1 1 360px; }
.tt-col-basic { flex: 1 1 320px; max-width: 480px; }
.tt-col-roles { flex: 1 1 480px; }
.tt-col-text { flex: 1 1 300px; min-width: 0; }
.tt-col-text p { font-size: 15px; }
.tt-more { margin: 12px 0 0; font-size: 14px; }
.tt-more a { text-decoration: underline; text-underline-offset: 3px; }
.tt-more a::after { content: " →"; }

/* 表の数値に添える横棒 */
.tt-nb { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 7.5em; }
.tt-nb b { font-weight: 700; color: var(--tt-ink); }
.tt-nb i { display: block; width: 100%; height: 5px; border-radius: 3px; background: var(--tt-tint); position: relative; overflow: hidden; }
.tt-nb i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0); border-radius: 3px; background: var(--tt-chart); }
/* 順位バッジ */
.tt-rank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-family: var(--tt-font-display); font-weight: 700; font-size: 12.5px; color: var(--tt-ink-2); background: var(--tt-paper-2); }
.tt-rank.r1 { background: var(--tt-accent); color: var(--tt-white); }
.tt-rank.r2 { background: var(--tt-chart); color: var(--tt-white); }
.tt-rank.r3 { background: var(--tt-chart-soft); color: var(--tt-ink); }

/* ==========================================================================
   グラフ（SVG 棒）・分布
   ========================================================================== */
.tt-chart { margin: 0 0 8px; background: var(--tt-white); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); padding: 16px 16px 12px; max-width: 640px; box-shadow: var(--tt-shadow); }
.tt-cc { display: flex; gap: 6px; align-items: stretch; --plot-h: 190px; padding-top: 22px; }
.tt-cc-y { position: relative; width: 3.2em; flex: none; height: var(--plot-h); margin-bottom: 26px; }
.tt-cc-y span { position: absolute; right: 6px; transform: translateY(50%); font-size: 11px; color: var(--tt-ink-3); font-variant-numeric: tabular-nums; line-height: 1; }
.tt-cc-plot { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-end; height: var(--plot-h); margin-bottom: 26px; border-bottom: 1px solid var(--tt-rule); }
.tt-cc-plot .g { position: absolute; left: 0; right: 0; height: 1px; background: var(--tt-line); pointer-events: none; }
.tt-cc-col { position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.tt-cc-col .st { height: 100%; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.tt-cc-col .st i { display: block; width: 56%; max-width: 28px; min-width: 10px; border-radius: 4px 4px 0 0; background: var(--tt-chart-soft); transition: background .2s; }
.tt-cc-col.hl .st i { background: var(--tt-chart); }
.tt-cc-col:hover .st i { background: var(--tt-accent); }
.tt-cc-col .v { font-size: 12.5px; font-weight: 700; color: var(--tt-ink); font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.tt-cc-col .x { position: absolute; top: 100%; margin-top: 8px; font-size: 12px; color: var(--tt-ink-2); white-space: nowrap; line-height: 1; }
/* 折れ線 */
.tt-lc { display: flex; gap: 6px; align-items: stretch; --plot-h: 200px; padding-top: 22px; }
.tt-lc .tt-cc-y { height: var(--plot-h); margin-bottom: 26px; }
.tt-lc-plot { position: relative; flex: 1 1 auto; min-width: 0; height: var(--plot-h); margin-bottom: 26px; border-bottom: 1px solid var(--tt-rule); }
.tt-lc-plot .g { position: absolute; left: 0; right: 0; height: 1px; background: var(--tt-line); pointer-events: none; }
.tt-lc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tt-lc-plot .ln { fill: none; stroke-width: 2.5px; stroke-linejoin: round; stroke-linecap: round; }
.tt-lc-plot .ln.s1 { stroke: var(--tt-chart); }
.tt-lc-plot .ln.s2 { stroke: var(--tt-ink-3); stroke-dasharray: 4 3; }
.tt-lc-plot .ar { fill: var(--tt-chart); opacity: .09; }
.tt-lc-plot .pt { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--tt-chart); border: 2px solid var(--tt-white); box-shadow: 0 0 0 1px var(--tt-chart); transform: translate(-50%, 50%); z-index: 2; }
.tt-lc-plot .pt.s2 { background: var(--tt-ink-3); box-shadow: 0 0 0 1px var(--tt-ink-3); }
.tt-lc-plot .pt:hover { transform: translate(-50%, 50%) scale(1.3); }
.tt-lc-plot .lbl { position: absolute; transform: translate(-50%, calc(50% - 16px)); font-size: 12.5px; font-weight: 700; color: var(--tt-ink); font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; z-index: 3; }
.tt-lc-plot .lbl.s2 { color: var(--tt-ink-2); font-weight: 500; transform: translate(-50%, calc(50% + 15px)); }
.tt-lc-plot .xs span { position: absolute; top: 100%; margin-top: 8px; transform: translateX(-50%); font-size: 12px; color: var(--tt-ink-2); white-space: nowrap; line-height: 1; }
.tt-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; font-size: 12.5px; color: var(--tt-ink-2); }
.tt-legend span { display: inline-flex; align-items: center; gap: 7px; }
.tt-legend i { width: 18px; height: 0; border-top: 2.5px solid var(--tt-chart); border-radius: 2px; }
.tt-legend i.s2 { border-top-color: var(--tt-ink-3); border-top-style: dashed; }
/* この数字から言えること */
.tt-insights { margin: 0 0 24px; padding: 16px 20px 14px; background: var(--tt-white); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); box-shadow: var(--tt-shadow); max-width: 46em; }
.tt-insights-title { margin: 0 0 8px; font-family: var(--tt-font-display); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--tt-accent); display: flex; align-items: center; gap: 8px; }
.tt-insights-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tt-accent); box-shadow: 0 0 0 3px var(--tt-tint); }
.tt-insights ul { list-style: none; margin: 0; padding: 0; }
.tt-insights li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--tt-line); font-size: 15px; line-height: 1.75; }
.tt-insights li:first-child { border-top: 0; }
.tt-insights .tx strong { color: var(--tt-accent); }
.tt-itag { flex: none; display: inline-block; min-width: 3.2em; text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; margin-top: 4px; background: var(--tt-paper-2); color: var(--tt-ink-2); }
.tt-itag.trend { background: var(--tt-tint); color: var(--tt-accent); }
.tt-itag.caution { background: #F7E6E3; color: var(--tt-down); }
.tt-chart figcaption { margin-top: 10px; }
/* 旧 HTML 棒（互換） */
.tt-bars { display: flex; align-items: flex-end; gap: 16px; height: 150px; }
.tt-bars .tt-bar { height: 100%; justify-content: flex-end; }
.tt-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; }
.tt-bar .v { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--tt-ink); }
.tt-bar .y { font-size: 12px; color: var(--tt-ink-2); white-space: nowrap; }
.tt-bar .b { width: 100%; max-width: 28px; background: var(--tt-chart); border-radius: 4px 4px 0 0; }
.tt-bars-x { display: flex; gap: 16px; border-top: 1px solid var(--tt-rule); margin-top: 8px; padding-top: 6px; }
/* 分布（横棒） */
.tt-dist-box { flex: 1 1 300px; min-width: 0; max-width: 560px; background: var(--tt-white); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); padding: 14px 18px 12px; box-shadow: var(--tt-shadow); }
.tt-dist-title { margin: 0 0 10px; font-size: 13px; color: var(--tt-ink-2); line-height: 1.6; }
.tt-dist { display: grid; grid-template-columns: 7em minmax(0, 1fr) 4.5em; align-items: center; gap: 12px; font-size: 13.5px; padding: 5px 0; }
.tt-dist .l { color: var(--tt-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-dist .tr { height: 12px; border-radius: 6px; background: var(--tt-tint); overflow: hidden; }
.tt-dist .tr i { display: block; height: 100%; width: var(--w, 0); border-radius: 6px; background: var(--tt-chart-soft); }
.tt-dist.hl .tr i { background: var(--tt-chart); }
.tt-dist .v { font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; }
.tt-dist.hl .v { font-weight: 700; }

/* ==========================================================================
   採用実務者の一言・出典・更新履歴
   ========================================================================== */
.tt-note { max-width: 46em; margin: 28px 0 0; padding: 18px 22px 16px; background: var(--tt-tint); border: 1px solid var(--tt-tint-2); border-radius: var(--tt-radius); }
.tt-note-label { margin: 0 0 8px !important; font-family: var(--tt-font-display); font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--tt-accent); display: flex; align-items: center; gap: 8px; }
.tt-note-icon { width: 22px; height: 22px; color: var(--tt-white); background: var(--tt-accent); border-radius: 50%; padding: 3px; flex: none; }
.tt-note p { margin: 0; font-size: 15px; }
.tt-note p + p { margin-top: .8em; }
.tt-sources { margin: 0; padding: 14px 18px 14px 2.6em; font-size: 14px; max-width: 46em; background: var(--tt-white); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); }
.tt-sources li { margin-bottom: 6px; padding-left: 4px; }
.tt-sources li::marker { color: var(--tt-accent); font-weight: 700; }
.tt-sources li:last-child { margin-bottom: 0; }
.tt-changelog { margin-top: 24px; }

/* ==========================================================================
   一覧（記事・企業・求人）
   ========================================================================== */
.tt-news { list-style: none; margin: 0; padding: 0; background: var(--tt-white); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); box-shadow: var(--tt-shadow); }
.tt-news li { display: flex; gap: 20px; padding: 14px 18px; border-bottom: 1px solid var(--tt-line); align-items: baseline; }
.tt-news li:last-child { border-bottom: 0; }
.tt-news li:hover { background: #F3F7F4; }
.tt-news time { font-size: 12px; color: var(--tt-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; width: 84px; flex: none; }
.tt-news .t { font-size: 15.5px; font-weight: 500; line-height: 1.6; }
.tt-news .d { font-size: 13px; color: var(--tt-ink-2); margin-top: 4px; }
.tt-news .c { display: inline-block; font-size: 11px; font-weight: 700; color: var(--tt-accent); background: var(--tt-tint); border-radius: 999px; padding: 1px 8px; letter-spacing: .04em; margin-right: 8px; vertical-align: 2px; }
.tt-index { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.tt-index li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--tt-line); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; }
.tt-index li span { color: var(--tt-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-pagination { margin: 32px 0 0; font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.tt-pagination .page-numbers { display: inline-block; padding: 6px 12px; border: 1px solid var(--tt-line); border-radius: 999px; color: var(--tt-ink); text-decoration: none; background: var(--tt-white); }
.tt-pagination .page-numbers.current { border-color: var(--tt-accent); background: var(--tt-accent); color: var(--tt-white); }
.tt-pagination a.page-numbers:hover { border-color: var(--tt-accent); }

/* ==========================================================================
   CTA（Phase 2 のみ描画される。OFF では要素自体が出ない）
   ========================================================================== */
.tt-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; background: var(--tt-accent); color: var(--tt-white); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; border-radius: 999px; }
.tt-btn:hover { background: var(--tt-accent-hover); color: var(--tt-white); text-decoration: none; }
.tt-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 24px 0 0; max-width: 680px; }
.tt-cta-note { font-size: 13px; color: var(--tt-ink-2); }
.tt-cta-inline { margin: 12px 0 0; font-size: 14px; max-width: var(--tt-measure); }

/* ==========================================================================
   フッター
   ========================================================================== */
.tt-footer { border-top: 1px solid var(--tt-line); background: var(--tt-white); margin-top: 24px; }
.tt-footer-inner { padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 48px; font-size: 13px; color: var(--tt-ink-2); }
.tt-footer-brand { display: flex; flex-direction: column; gap: 6px; max-width: 36em; }
.tt-footer-brand .tt-logo { font-size: 18px; color: var(--tt-ink); }
.tt-footer-brand .tt-logo-svg { height: 24px; }
.tt-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.tt-copyright { flex-basis: 100%; border-top: 1px solid var(--tt-line); padding-top: 12px; font-size: 12px; color: var(--tt-ink-3); }

/* ==========================================================================
   404 / 410 / 準備中
   ========================================================================== */
.tt-status { padding-top: 40px; }
.tt-status .tt-h1 { margin-bottom: 16px; }
.tt-coming { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 48px var(--tt-gutter-r) 48px var(--tt-gutter-l); max-width: 640px; margin: 0 auto; }
.tt-coming .tt-logo { font-size: 36px; }
.tt-coming .tt-logo-svg { height: 48px; }
.tt-coming p { margin: 16px 0 0; }
.tt-coming .tt-rule { border-top: 2px solid var(--tt-ink); margin: 20px 0 0; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 1024px) {
	.tt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.tt-aside { max-width: none; flex-basis: 100%; position: static; }
}
@media (max-width: 640px) {
	:root { --tt-gutter-l: 16px; --tt-gutter-r: 16px; --tt-size-h2: 21px; }
	.tt-masthead-inner { padding-top: 14px; padding-bottom: 10px; }
	.tt-logo { font-size: 24px; }
	.tt-logo-svg { height: 32px; }
	.tt-nav ul { gap: 2px; font-size: 13px; }
	.tt-nav a { padding: 6px 9px; }
	.tt-intro-inner { padding-top: 24px; padding-bottom: 22px; }
	.tt-main { gap: 36px; padding-bottom: 48px; }
	.tt-h2 { margin-top: 40px; }
	.tt-search { flex-basis: 100%; }
	.tt-index { columns: 1; }
	.tt-stats { gap: 8px; }
	.tt-stat { padding: 12px 12px 10px; border-radius: var(--tt-radius-s); }
	.tt-lead-card { padding: 16px 16px 14px; }
	.tt-chart { padding: 10px 10px 8px; }
	.tt-cc { --plot-h: 160px; }
	.tt-lc { --plot-h: 170px; }
	.tt-lc-plot .lbl { font-size: 11px; }
	.tt-lc-plot .xs span { font-size: 10.5px; }
	.tt-insights { padding: 12px 14px 10px; }
	.tt-insights li { font-size: 14px; gap: 8px; }
	.tt-cc-col .v { font-size: 11px; }
	.tt-cc-col .x { font-size: 10.5px; }
	.tt-dist { grid-template-columns: 6em minmax(0, 1fr) 4em; gap: 8px; }
	.tt-bars { gap: 8px; }
	.tt-bars-x { gap: 8px; }
	.tt-news li { gap: 12px; padding: 12px 14px; }
	.tt-news time { width: 64px; }
	.tt-cta .tt-btn { width: 100%; }
	.tt-note { padding: 14px 16px 12px; }
	.tt-sources { padding-left: 2.2em; }
}

/* 管理バー表示時の余白 */
.admin-bar .tt-skip:focus { top: 40px; }
.admin-bar .tt-aside { top: 48px; }
