/* 運賃表（/brand/tariffe/）。brand.css（頭の .bh など）の上に、この頁の分だけ。三色は使わない
   5 つの区は、色・濃さ・大きさを同じにする（上下を表さない）。区の番号と円の境だけで分ける */

/* ===== 頭 ===== */
.tf-sub{margin-top:4px;font-weight:900;font-size:18px;color:var(--y)}
.tf-notice{margin-top:16px;display:flex;gap:10px;align-items:flex-start;padding:10px 12px;box-shadow:inset 0 0 0 2px var(--mut)}
.tf-notice-k{flex:none;margin-top:3px;font-family:var(--en);font-weight:700;font-size:13px;letter-spacing:.14em;line-height:1.2;padding:2px 6px;background:var(--w);color:var(--k)}
.tf-notice p{font-weight:700;font-size:15px;line-height:1.75}

/* ===== 品目を選ぶ ===== */
.tf-ix{padding-top:22px;padding-bottom:24px}
.tf-ix-h{display:flex;align-items:center;gap:10px;font-weight:900;font-size:16px}
.tf-ix-h span{font-family:var(--en);font-weight:700;font-size:15px;letter-spacing:.14em;background:var(--k);color:var(--y);padding:1px 8px}
.tf-ix-l{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tf-ix-l a{display:flex;justify-content:space-between;align-items:center;gap:6px;min-height:48px;padding:6px 12px;box-shadow:inset 0 0 0 2px var(--k);text-decoration:none}
.tf-ix-l b{font-weight:900;font-size:16px}
.tf-ix-l span{font-family:var(--en);font-weight:700;font-size:17px;white-space:nowrap}
.tf-ix-l a:hover b,.tf-ix-l a:focus-visible b{text-decoration:underline;text-decoration-color:var(--r);text-decoration-thickness:2px;text-underline-offset:3px}
.tf-ix-none{margin-top:12px;font-size:14px;color:var(--g)}

/* ===== 品目ごとの運賃表 ===== */
.tf{border-top:4px solid var(--k);scroll-margin-top:8px}
/* 帯の上の境（目盛り）。区の左の端に、その区の下の境 */
.tf-board{margin-top:2px}
.tf-scale{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));font-family:var(--en);font-weight:700;font-size:16px;line-height:1}
.tf-scale span{display:block;height:24px;padding:0 0 0 4px;border-left:2px solid var(--k)}
.tf-scale em{position:absolute;right:0;top:0;font-style:normal;font-family:var(--jp);font-weight:700;font-size:13px}
/* 5 つの帯（同じ黒・同じ大きさ） */
.tf-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));box-shadow:inset 0 0 0 2px var(--k);background:var(--k)}
.tf-strip li + li{border-left:2px solid var(--w)}
.tf-strip a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:60px;padding:6px 2px;color:var(--w);text-decoration:none}
.tf-strip b{font-family:var(--en);font-weight:700;font-size:24px;line-height:1}
.tf-strip b small{font-family:var(--jp);font-weight:700;font-size:13px;margin-left:2px}
.tf-strip span{font-family:var(--en);font-weight:700;font-size:15px;line-height:1;color:var(--mut)}
.tf-strip span small{font-family:var(--jp);font-size:12px}
.tf-strip a:hover,.tf-strip a:focus-visible{outline:3px solid var(--y);outline-offset:-3px}

/* 区の段（1 区が上） */
.tf-zones{margin-top:18px;border-top:4px solid var(--k)}
.tf-z{display:grid;grid-template-columns:86px minmax(0,1fr);gap:10px;padding:10px 0;border-bottom:1px solid #cfccc4;scroll-margin-top:8px}
.tf-z:target{outline:4px solid var(--y);outline-offset:2px}
/* 左：のりば番号の丸＋「区」、その下に円の境 */
.tf-zh{display:grid;grid-template-columns:40px 1fr;align-items:center;column-gap:5px;row-gap:3px;align-content:start}
.tf-zn{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--y);box-shadow:inset 0 0 0 2px var(--k);font-family:var(--en);font-weight:700;font-size:25px;line-height:1;padding-top:1px}
.tf-zk{font-weight:900;font-size:15px;line-height:1}
.tf-zb{grid-column:1 / -1;font-size:14px;font-weight:700;color:var(--g);line-height:1.35}
.tf-empty{align-self:center;font-size:13px;color:var(--g);line-height:1.6}

/* ブランドの札（開くと根拠） */
.tf-bl{display:flex;flex-direction:column;gap:8px}
.tf-b{box-shadow:inset 0 0 0 2px var(--k)}
.tf-b > summary{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;min-height:52px;padding:6px 10px 6px 30px;position:relative;cursor:pointer;list-style:none;touch-action:manipulation}
.tf-b > summary::-webkit-details-marker{display:none}
.tf-b > summary::before{content:"";position:absolute;left:11px;top:50%;margin-top:-6px;border-style:solid;border-width:6px 0 6px 9px;border-color:transparent transparent transparent currentColor}
.tf-b[open] > summary::before{transform:rotate(90deg)}
.tf-b[open] > summary{background:var(--k);color:var(--w)}
.tf-bn{font-family:var(--en);font-weight:700;font-size:22px;line-height:1.1;letter-spacing:.03em;overflow-wrap:anywhere}
.tf-bj{flex-basis:100%;font-size:13px;font-weight:700;color:var(--g);line-height:1.5}
.tf-b[open] .tf-bj{color:var(--mut)}
.tf-b > summary:hover .tf-bn{text-decoration:underline;text-decoration-color:var(--r);text-decoration-thickness:2px;text-underline-offset:3px}
.tf-d{padding:6px 10px 0}
/* 札の幅が狭い（スマホ幅で 200px 前後）ので、見出しは上に小さく、中身はその下に */
.tf-d > div{padding:5px 0;border-top:1px solid #cfccc4}
.tf-d > div:first-child{border-top:0}
.tf-d dt{font-size:12px;font-weight:900;color:var(--g);line-height:1.5}
.tf-nw{white-space:nowrap}
.tf-d dd{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.tf-range small{display:block;font-size:12px;color:var(--g)}
.tf-date{font-family:var(--mono);font-size:13px}
.tf-shop{display:block}
.tf-shop a{display:inline-flex;align-items:center;min-height:44px;font-weight:700;text-decoration-color:var(--r);text-decoration-thickness:2px;text-underline-offset:3px}
.tf-srcs{display:flex;flex-wrap:wrap;gap:0 12px;padding:0 10px;border-top:1px solid #cfccc4;margin:0 10px;padding-left:0}
.tf-src{display:inline-flex;align-items:baseline;gap:6px;min-height:44px;padding-top:12px;font-weight:700;font-size:14px;text-decoration-color:var(--r);text-decoration-thickness:2px;text-underline-offset:3px}
.tf-src small{font-family:var(--en);font-weight:600;font-size:13px;letter-spacing:.04em;color:var(--g)}
.tf-go{padding:0 10px 4px}
.tf-go a{display:inline-flex;align-items:center;min-height:44px;font-weight:700;font-size:14px;text-decoration-color:var(--r);text-decoration-thickness:2px;text-underline-offset:3px}

/* 区分なし（灰の枠に名前だけ） */
.tf-un{margin-top:20px;padding:8px 12px 12px;box-shadow:inset 0 0 0 2px #8a877f}
.tf-un-h,.tf-un > summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:44px;font-weight:900;font-size:15px;color:var(--g)}
.tf-un > summary{cursor:pointer;list-style:none;touch-action:manipulation}
.tf-un > summary::-webkit-details-marker{display:none}
.tf-un-open{flex-basis:100%;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;text-decoration:underline;text-decoration-color:var(--r);text-decoration-thickness:2px;text-underline-offset:3px}
.tf-un-open::before{content:"";flex:none;border-style:solid;border-width:6px 0 6px 9px;border-color:transparent transparent transparent currentColor}
.tf-un[open] .tf-un-open::before{transform:rotate(90deg)}
.tf-un[open] .tf-un-open{display:none}
.tf-un-k{font-size:13px;font-weight:900;background:var(--g);color:var(--w);padding:0 6px}
.tf-un-t{flex:1 1 0;min-width:9em;line-height:1.45}
.tf-un-n{font-family:var(--en);font-weight:700;font-size:20px}
.tf-un-l{display:flex;flex-wrap:wrap;gap:2px 16px;margin-top:4px}
.tf-un-l li{font-family:var(--en);font-weight:700;font-size:18px;letter-spacing:.03em;color:var(--g)}

/* ===== 作り方 ===== */
.tf-how-h{font-weight:900;font-size:18px}
.tf-how-l{margin:10px 0 14px;counter-reset:h}
.tf-how-l li{position:relative;padding:6px 0 6px 32px;font-size:15px;line-height:1.7;counter-increment:h;border-bottom:1px solid #cfccc4}
.tf-how-l li::before{content:counter(h);position:absolute;left:0;top:8px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--k);color:var(--w);font-family:var(--en);font-weight:700;font-size:15px;line-height:1}
@media (prefers-reduced-motion:reduce){.tf-b > summary::before{transition:none}}
/* 英語の頁：区の札の「1 Zone」の間 */
html[lang="en"] .tf-strip b small{margin-left:3px}

/* ===== 2026-11-21 直し：円の帯を主役に、区の番号は小さく（等級表に見えないように） ===== */
.tf-strip a{gap:3px;min-height:72px;padding:6px 3px}
.tf-strip b{font-family:var(--jp);font-weight:900;font-size:13px;line-height:1.25;text-align:center;letter-spacing:0}
.tf-strip .tf-sz{font-family:var(--jp);font-weight:700;font-size:12px;line-height:1;color:var(--mut)}
.tf-zh{display:flex;flex-direction:column;align-items:flex-start;gap:4px;grid-template-columns:none}
.tf-zb{font-size:16px;font-weight:900;color:var(--k);line-height:1.3}
.tf-zs{font-size:12px;font-weight:700;color:var(--g);box-shadow:inset 0 0 0 1px #8a877f;padding:0 5px;line-height:1.6}
.tf-mid{font-size:14px}
/* 簡単な形（ブランドの少ない品目） */
.tf-simple{margin-top:6px;font-size:14px;line-height:1.7;color:var(--g)}
.tf-bl-s{margin-top:12px}
.tf-bz{flex-basis:100%;font-size:13px;font-weight:900;line-height:1.4;color:var(--g)}
.tf-b[open] .tf-bz{color:var(--mut)}
/* 値段を確かめられていないブランド（いつもたたむ。見出しは灰） */
.tf-un-t{min-width:0}

/* 2026-11-21：スマホは空の帯を 1 行にまとめる（.tf-z-none）。PC は 5 列の表のまま（desktop-b.css） */
@media (max-width:959px){
  .tf-z.tf-z0{display:none}
  .tf-strip a[data-empty]{pointer-events:none}
}
.tf-z-none{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:10px 0;border-bottom:1px solid #cfccc4;font-size:14px;color:var(--g)}
.tf-z-none-k{flex-basis:100%;font-weight:900;font-size:13px}
.tf-z-none-b{font-weight:900;font-size:15px;color:var(--k);box-shadow:inset 0 0 0 1px #8a877f;padding:0 6px}
