/* とりやまファン（toriyamafan.com） */
:root {
  --paper: #f6f1e7;
  --card: #fffdf8;
  --ink: #2a2622;
  --sub: #6b635a;
  --line: #e3dccd;
  --accent: #e8620c;
  --accent-ink: #b8470a;
  --navy: #1f3a5f;
  --tag: #f1e8d6;
  --radius: 12px;
  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic UI", sans-serif;
  --base: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--base); line-height: 1.85; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--accent-ink); }
.tf-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.tf-skip { position: absolute; left: -999px; }
.tf-skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 10; }

/* ヘッダー */
.tf-head { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.tf-head__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.tf-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.tf-logo svg { width: 34px; height: 34px; flex: none; }
.tf-logo span { display: flex; flex-direction: column; line-height: 1.15; }
.tf-logo b { font-family: var(--round); font-weight: 900; font-size: 20px; letter-spacing: .02em; }
.tf-logo small { font-size: 10px; letter-spacing: .18em; color: var(--sub); }
.tf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.tf-nav a { display: block; padding: 8px 12px; border-radius: 99px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; }
.tf-nav a:hover { background: var(--tag); color: var(--ink); }
.tf-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
@media (max-width: 560px) {
  .tf-head__in { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 8px; }
  .tf-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tf-nav ul { flex-wrap: nowrap; }
  .tf-nav a { padding: 6px 10px; font-size: 13px; }
  .tf-logo b { font-size: 18px; }
}

/* ホーム */
.tf-hero { background: radial-gradient(circle at 85% 20%, #fde3cc 0, transparent 45%), var(--paper); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.tf-hero__tag { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 2px 14px; font-size: 13px; color: var(--sub); margin: 0 0 14px; }
.tf-hero h1 { font-family: var(--round); font-weight: 900; font-size: clamp(30px, 6vw, 52px); line-height: 1.3; margin: 0 0 16px; }
.tf-hero__lead { max-width: 640px; color: var(--sub); margin: 0 0 18px; }
.tf-hero__count { font-family: var(--round); margin: 0 0 20px; }
.tf-hero__count b { font-size: 34px; color: var(--accent); margin-right: 4px; }
.tf-btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 26px; border-radius: 99px; }
.tf-btn:hover { background: var(--accent-ink); color: #fff; }
.tf-btn.is-sub { background: var(--ink); }
.tf-sec { padding: 40px 16px 8px; }
.tf-h2 { font-family: var(--round); font-weight: 900; font-size: 24px; margin: 8px 0 18px; }
.tf-more { text-align: right; margin: 12px 0 0; }
.tf-promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tf-promises li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tf-promises b { font-family: var(--round); font-size: 18px; color: var(--accent-ink); }
.tf-promises p { margin: 6px 0 0; font-size: 15px; color: var(--sub); }
.tf-unofficial { font-size: 14px; color: var(--sub); margin: 22px 0 40px; }

/* カード */
.tf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tf-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.tf-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(42, 38, 34, .12); color: var(--ink); }
.tf-card__img { aspect-ratio: 1; background: var(--tag); display: flex; align-items: center; justify-content: center; }
.tf-card__img img { width: 100%; height: 100%; object-fit: cover; }
.tf-card__noimg { color: var(--sub); font-size: 13px; }
.tf-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.tf-card__body b { font-size: 15px; line-height: 1.5; }
.tf-card__body small { color: var(--sub); font-size: 12px; }
.tf-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tf-card__tags i { font-style: normal; font-size: 11px; font-weight: 700; background: var(--tag); border-radius: 99px; padding: 1px 8px; }
.tf-card__soon { font-size: 12px; color: var(--sub); padding: 0 14px 12px; }
.tf-card.is-hidden { display: none; }

/* 一覧 */
.tf-pagetitle { font-family: var(--round); font-weight: 900; font-size: 32px; margin: 8px 0 8px; }
.tf-lead { color: var(--sub); margin: 0 0 20px; }
.tf-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.tf-filter span { font-weight: 700; font-size: 13px; margin-right: 4px; }
.tf-filter button { font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.tf-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tf-scroll { overflow-x: auto; margin-bottom: 48px; }
.tf-list { width: 100%; border-collapse: collapse; background: var(--card); font-size: 14px; }
.tf-list th, .tf-list td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; white-space: nowrap; }
.tf-list th { background: var(--tag); }
/* 長い表は枠の中でスクロールし、見出しの行を上に固定する（2026-10-21） */
.tf-scroll { max-height: min(75vh, 900px); overscroll-behavior-y: auto; }
.tf-list thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--line); }

/* 記事 */
.tf-crumb { list-style: none; padding: 14px 0 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--sub); }
.tf-crumb li + li::before { content: "›"; margin-right: 4px; }
.tf-crumb a { color: var(--sub); }
.tf-article { max-width: 780px; padding-bottom: 48px; }
.tf-kicker { font-size: 13px; color: var(--accent-ink); font-weight: 700; margin: 8px 0 4px; }
.tf-article h1 { font-family: var(--round); font-weight: 900; font-size: clamp(22px, 4.4vw, 30px); line-height: 1.45; margin: 4px 0 8px; }
.tf-date { font-size: 13px; color: var(--sub); margin: 0 0 18px; }
.tf-hero-photo { margin: 0 0 24px; }
.tf-hero-photo img, .tf-body figure img { border-radius: 10px; background: #eee; }
.tf-hero-photo figcaption, .tf-body figcaption { font-size: 13px; color: var(--sub); margin-top: 6px; }
.tf-body h2 { font-family: var(--round); font-weight: 900; font-size: 22px; line-height: 1.5; margin: 48px 0 14px; padding: 8px 0 8px 14px; border-left: 6px solid var(--accent); background: var(--card); border-radius: 0 8px 8px 0; }
.tf-body h3 { font-family: var(--round); font-weight: 700; font-size: 18px; margin: 30px 0 8px; }
.tf-body p { margin: 0 0 1em; }
.tf-body figure { margin: 18px 0 22px; }
.tf-body .narrow { max-width: 320px; margin-left: auto; margin-right: auto; }
.tf-body .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 22px; }
.tf-body .pair figure { margin: 0; }
.tf-body table, .tf-data { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); margin: 12px 0 20px; }
.tf-body th, .tf-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.tf-body th { background: var(--tag); width: 32%; font-weight: 700; }
.tf-body .box { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0 24px; }
.tf-body .box ul { margin: 6px 0 0; padding-left: 1.3em; }
.tf-body .voice { background: var(--card); border-left: 5px solid #e0b100; border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 18px 0; }
.tf-body .voice b { display: block; font-size: 13px; color: var(--sub); margin-bottom: 4px; }
.tf-body .note, .tf-note { font-size: 13px; color: var(--sub); }
.tf-shop { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 18px 0; }
.tf-shop__h { font-weight: 700; margin: 0 0 10px !important; }
.tf-shop__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tf-shop__btns a { flex: 1 1 200px; text-align: center; padding: 12px; border-radius: 10px; background: var(--c, var(--accent)); color: #fff; text-decoration: none; font-weight: 700; }
.tf-shop__btns a:hover { opacity: .9; color: #fff; }
.tf-shop .tf-note { margin: 10px 0 0 !important; }
.tf-pr { display: inline-block; font-size: .72em; font-weight: 700; line-height: 1; padding: 3px 6px; margin-right: 8px; border: 1px solid currentColor; border-radius: 4px; vertical-align: 2px; opacity: .75; }
.tf-photo-note { font-size: 13px; color: var(--sub); border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 36px; }
.tf-related { margin-top: 36px; }
.tf-related h2 { font-family: var(--round); font-size: 20px; }
@media (max-width: 520px) { .tf-body th { width: 38%; } .tf-body .pair { gap: 8px; } }

/* 種類のタイル（ホーム） */
.tf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tf-tile { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.tf-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(42, 38, 34, .12); color: var(--ink); }
.tf-tile b { font-family: var(--round); font-weight: 900; font-size: 22px; }
.tf-tile span { font-size: 13px; color: var(--sub); line-height: 1.6; flex: 1; }
.tf-tile em { font-style: normal; font-weight: 700; color: var(--accent-ink); font-size: 14px; }

/* 種類ごとのページ */
.tf-sec0 { margin: 8px 0 32px; }
.tf-sub { color: var(--sub); font-size: 14px; margin: -8px 0 14px; }
.tf-empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--sub); margin-bottom: 48px; }
.tf-acq { display: inline-block; font-size: 11px; font-weight: 700; color: var(--navy); border: 1px solid var(--navy); border-radius: 99px; padding: 0 7px; margin-left: 4px; vertical-align: 1px; }
.tf-photo-badge { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 99px; padding: 0 8px; margin-left: 4px; vertical-align: 1px; }
.tf-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; }
.tf-group summary { cursor: pointer; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.tf-group summary span { font-size: 13px; color: var(--sub); }
.tf-group .tf-scroll { margin: 0; padding: 0 8px 8px; }
.tf-list td:nth-child(2) { white-space: normal; min-width: 220px; }
.tf-list a { font-weight: 700; }
.tf-is-hidden { display: none !important; }
.tf-back { margin: 18px 0 0; }
.tf-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-nav__about { margin-left: 6px; }
@media (max-width: 560px) { .tf-nav__about { margin-left: 0; } }

.tf-h3 { font-family: var(--round); font-size: 18px; margin: 22px 0 10px; }

/* 取引相場 */
.tf-market { background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; }
.tf-market__h { font-weight: 700; font-size: 14px; color: var(--accent-ink); margin: 0 0 2px !important; }
.tf-market__price { margin: 0 0 4px !important; font-family: var(--round); }
.tf-market__price b { font-size: 28px; font-weight: 900; }
.tf-market__sub { font-size: 13px; color: var(--sub); margin: 0 0 8px !important; }
.tf-market__hist { font-size: 14px !important; margin: 8px 0 !important; }
.tf-body .tf-market__hist th, .tf-body .tf-market__hist td { width: auto; white-space: nowrap; padding: 6px 8px; }
.tf-market .tf-note { margin: 6px 0 0 !important; }

/* 相場の推移グラフ */
.tf-chart { margin: 12px 0 8px !important; }
.tf-chart__h { font-weight: 700; font-size: 14px; margin: 0 0 6px; color: var(--ink) !important; }
.tf-chart__box { position: relative; }
.tf-chart__svg { width: 100%; max-width: 600px; height: auto; display: block; overflow: visible; }
.tf-chart__svg .g { stroke: var(--line); stroke-width: 1; }
.tf-chart__svg .ax { font-size: 12px; fill: var(--sub); }
.tf-chart__svg .band { fill: rgba(232, 98, 12, .16); }
.tf-chart__svg .med { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tf-chart__svg .pt { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.tf-chart__svg .lp { stroke: var(--sub); stroke-width: 1; stroke-dasharray: 4 4; }
.tf-chart__svg .lpt { font-size: 11px; fill: var(--sub); }
.tf-chart__svg .lab { font-size: 13px; font-weight: 700; fill: var(--ink); }
.tf-chart__svg .cross { stroke: var(--sub); stroke-width: 1; opacity: 0; pointer-events: none; }
.tf-chart__svg .hit { fill: transparent; cursor: crosshair; outline: none; }
.tf-chart__tip { position: absolute; top: 0; pointer-events: none; background: var(--ink); color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12px; line-height: 1.5; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.tf-chart__tip b { font-size: 15px; display: block; }
.tf-chart__key { font-size: 12px; color: var(--sub); margin: 4px 0 0 !important; }
.tf-chart__key span { display: inline-block; vertical-align: middle; margin-right: 4px; }
.tf-chart__key .k-med { width: 16px; height: 2px; background: var(--accent); }
.tf-chart__key .k-band { width: 14px; height: 10px; background: rgba(232, 98, 12, .16); border-radius: 2px; }
.tf-chart__key .k-lp { width: 16px; border-top: 1px dashed var(--sub); }
.tf-market__soon { font-size: 13px; color: var(--sub); background: var(--tag); border-radius: 8px; padding: 8px 12px; margin: 8px 0 !important; }

/* 作品 */
.tf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.tf-chips span { font-weight: 700; font-size: 13px; margin-right: 4px; }
.tf-chips a { font-size: 13px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 4px 12px; text-decoration: none; color: var(--ink); }
.tf-chips a:hover { background: var(--tag); }
.tf-chips small { color: var(--sub); margin-left: 2px; }
.tf-works td { white-space: normal; vertical-align: top; }
.tf-works td:first-child { white-space: nowrap; }
.tf-works td:nth-child(3) { min-width: 180px; }
.tf-wlink { display: inline-block; font-size: 11px; font-weight: 700; background: var(--tag); border-radius: 99px; padding: 0 8px; margin-left: 4px; text-decoration: none; }
.tf-count { font-size: 14px; color: var(--sub); font-weight: 500; }
.tf-sec0 { scroll-margin-top: 110px; }

/* 検索 */
.tf-search { display: flex; gap: 8px; max-width: 560px; margin: 0 0 12px; }
.tf-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); }
.tf-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tf-search button { font: inherit; font-weight: 700; border: 0; border-radius: 99px; padding: 10px 18px; background: var(--ink); color: #fff; cursor: pointer; }
.tf-search__count { font-size: 14px; color: var(--sub); }
.tf-results { list-style: none; padding: 0; margin: 0 0 48px; }
.tf-results li { border-bottom: 1px solid var(--line); }
.tf-results a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 4px; text-decoration: none; color: var(--ink); }
.tf-results a:hover { background: var(--card); }
.tf-results b { font-weight: 700; }
.tf-results small { color: var(--sub); font-size: 12px; }
.tf-results i { font-style: normal; font-size: 11px; font-weight: 700; background: var(--tag); border-radius: 99px; padding: 0 8px; }
.tf-results .is-photo { background: var(--accent); color: #fff; }
tr.tf-target td { background: #fff1e3; }
tr[id] { scroll-margin-top: 140px; }   /* #b-… で飛んだ行が上の固定メニューに隠れないように */
.tf-hero .tf-search { margin-top: 8px; }

/* 新刊・イベント */
.tf-news { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.tf-news__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.tf-news__item b { display: block; font-size: 16px; line-height: 1.5; margin: 2px 0 4px; }
.tf-news__item p { margin: 0 0 4px; font-size: 14px; }
.tf-news__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--sub); font-size: 13px !important; }
.tf-news__meta i { font-style: normal; font-size: 11px; font-weight: 700; background: var(--tag); color: var(--ink); border-radius: 99px; padding: 0 8px; }
.tf-news__when { color: var(--accent-ink); font-weight: 700; }
.tf-news__link { font-size: 13px !important; }

/* 共有ボタン */
.tf-share { margin: 28px 0 8px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tf-share.is-compact { margin: 0 0 18px; padding: 0; background: none; border: 0; }
.tf-share__h { font-weight: 700; font-size: 14px; margin: 0 0 10px; }
.tf-share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-share__btns a, .tf-share__btns button { font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; color: #fff; border: 0; border-radius: 99px; padding: 7px 14px; cursor: pointer; line-height: 1.4; }
.tf-share.is-compact .tf-share__btns a, .tf-share.is-compact .tf-share__btns button { font-size: 12px; padding: 5px 11px; }
.tf-share__x { background: #000; }
.tf-share__line { background: #06c755; }
.tf-share__fb { background: #1877f2; }
.tf-share__hatena { background: #00a4de; }
.tf-share__copy, .tf-share__native { background: var(--ink); }
.tf-share__btns a:hover, .tf-share__btns button:hover { opacity: .85; color: #fff; }
.tf-foot__sns { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tf-foot__sns a { font-weight: 700; }

/* フッター */
.tf-foot { background: var(--ink); color: #e9e3d8; padding: 36px 0 28px; margin-top: 40px; font-size: 14px; }
.tf-foot .tf-logo { color: #fff; margin-bottom: 10px; }
.tf-foot .tf-logo small { color: #bfb6a8; }
.tf-foot p { margin: 0 0 8px; }
.tf-foot__rights { color: #bfb6a8; font-size: 12px; }
.tf-foot ul { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tf-foot a { color: #fff; }
.tf-foot small { color: #bfb6a8; }
