/* Lower-page layout. Brand tokens, buttons, header, contact and footer come from top.css. */
.tk-subpage { --subpage-space: var(--space, clamp(64px, 6.6vw, 104px)); }

/* ---------- Hero（濃色パネル。高さは中身に合わせ、上下の余白を同じにする） ---------- */
.tk-subpage-hero { position: relative; }
.tk-subpage-breadcrumb { padding-block: 14px 14px; }
.tk-subpage-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.tk-subpage-breadcrumb li + li { display: inline-flex; align-items: center; gap: 12px; }
.tk-subpage-breadcrumb li + li::before { content: ""; width: 5px; height: 5px; flex: 0 0 auto; border: solid #828b98; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.tk-subpage-breadcrumb a:is(:hover, :focus-visible) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tk-subpage-mv { display: flex; align-items: center; min-height: 200px; background: radial-gradient(ellipse 50% 120% at 100% 0%, #15284a 0%, transparent 70%), var(--dark); }
.tk-subpage-mv-grid { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px); background-size: 44px 44px; background-position: -1px -1px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%); mask-image: linear-gradient(90deg, transparent 30%, #000 75%); }
.tk-subpage-mv-word { position: absolute; z-index: -1; right: -.04em; bottom: -.2em; font: 800 clamp(96px, 13vw, 210px)/1 var(--latin); letter-spacing: -.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px #ffffff1a; pointer-events: none; user-select: none; }
.tk-subpage-mv::after { content: ""; position: absolute; left: clamp(24px, 4.6vw, 72px); top: 0; width: 64px; height: 3px; background: var(--accent); }
.tk-subpage-mv-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: end; gap: 16px 48px; width: 100%; padding: clamp(36px, 3.4vw, 48px) clamp(24px, 4.6vw, 72px); }
.tk-subpage-mv .tk-label { margin-bottom: 14px; color: #fff; }
.tk-subpage .tk-subpage-mv h1 { color: #fff; font-size: clamp(30px, 3.9vw, 54px); font-weight: 900; line-height: 1.25; letter-spacing: -.02em; }
.tk-subpage-mv h1 em { font-style: normal; color: #6f9dff; }
.tk-site .tk-subpage-mv-lead { padding-bottom: 4px; color: #fff; font-size: 14px; line-height: 1.9; }


.tk-subpage [id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Section heading ---------- */
.tk-subpage-section { position: relative; padding-block: var(--subpage-space); }
.tk-subpage-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 3.6vw, 52px); }
.tk-subpage-section-head .tk-label { margin-bottom: 20px; }
.tk-subpage .tk-subpage-section-head h2, .tk-subpage .tk-subpage-strengths h2 { font-size: clamp(28px, 3.3vw, 48px); font-weight: 800; line-height: 1.38; letter-spacing: .03em; }
.tk-subpage-section-head h2 span { display: block; }
.tk-subpage-section-head h2, .tk-subpage-hero h1 { word-break: keep-all; overflow-wrap: anywhere; }
.tk-site .tk-subpage-prose { color: var(--muted); font-size: 15px; line-height: 2; }
.tk-subpage-prose p + p { margin-top: 12px; }

/* ---------- Benefits ---------- */
.tk-site .tk-subpage-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tk-subpage-benefits li { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .3s ease; }
.tk-subpage-benefits li::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--ink); clip-path: circle(0% at 100% 0%); transition: clip-path .7s var(--ease); }
.tk-subpage-benefit-top { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(12px, 2vw, 28px); }
.tk-subpage-benefit-no { font: 800 clamp(44px, 4.6vw, 68px)/.85 var(--latin); letter-spacing: -.05em; color: var(--accent); transition: color .3s ease; }
.tk-subpage-benefit-en { align-self: flex-end; font: 700 12px/1 var(--latin); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s ease; }
.tk-subpage-benefits .tk-icon { width: 52px; height: 52px; margin-left: auto; padding: 13px; border-radius: 10px; background: var(--soft); color: var(--ink); transition: background .3s ease, color .3s ease, transform .5s var(--ease); }
.tk-subpage .tk-subpage-benefits h3 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 800; line-height: 1.5; letter-spacing: .03em; transition: color .3s ease; }
.tk-subpage .tk-subpage-benefits p { color: var(--muted); font-size: 14.5px; line-height: 1.95; transition: color .3s ease; }

/* ---------- Strengths (dark panel) ---------- */
.tk-subpage-strengths { position: relative; }
.tk-subpage-strengths-panel { padding: clamp(44px, 5.4vw, 88px) clamp(24px, 5vw, 88px); background: radial-gradient(ellipse 60% 80% at 100% 0%, #16294a 0%, transparent 60%), var(--dark); }
.tk-subpage-strengths-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 88px); align-items: start; max-width: 1240px; margin-inline: auto; }
.tk-subpage .tk-subpage-strengths .tk-label { color: #fff; margin-bottom: 20px; }
.tk-site .tk-subpage-strengths figure { margin: 32px 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; }
.tk-subpage-strengths figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.tk-subpage-strengths-list { border-top: 1px solid #ffffff2e; }
.tk-subpage-strengths-list li { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr); align-items: start; gap: 16px; padding-block: clamp(22px, 2.4vw, 32px); border-bottom: 1px solid #ffffff2e; transition: padding .4s var(--ease); }
.tk-subpage-strength-no { padding-top: 12px; font: 700 14px/1 var(--latin); color: #8db4ff; }
.tk-subpage-strengths-list .tk-icon { width: 44px; height: 44px; padding: 11px; border-radius: 8px; background: #ffffff14; color: #fff; transition: background .3s ease, transform .5s var(--ease); }
.tk-subpage .tk-subpage-strengths-list p { padding-top: 8px; color: #c7ced7; font-size: 15px; line-height: 1.95; transition: color .3s ease; }

/* ---------- Examples ---------- */
.tk-site .tk-subpage-ratio { display: grid; gap: 12px; }
.tk-subpage-ratio li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "value text" "bar bar"; align-items: end; gap: 10px 18px; padding: 18px 22px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.tk-site .tk-subpage-ratio p { grid-area: value; display: flex; align-items: baseline; gap: 4px; }
.tk-subpage-ratio strong { font: 800 clamp(48px, 4.6vw, 64px)/.85 var(--latin); letter-spacing: -.04em; color: var(--accent); }
.tk-subpage-ratio p span { font-size: 18px; font-weight: 800; }
.tk-subpage-ratio-text { grid-area: text; padding-bottom: 4px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.tk-subpage-ratio-bar { grid-area: bar; position: relative; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.tk-subpage-ratio-bar span { position: absolute; inset: 0 auto 0 0; width: var(--ratio); border-radius: 3px; background: var(--accent); transform-origin: left; }
.tk-subpage-ratio li:nth-child(2) strong { color: var(--ink); }
.tk-subpage-ratio li:nth-child(2) .tk-subpage-ratio-bar span { background: var(--ink); }
.tk-shown .tk-subpage-ratio-bar span { animation: tk-bar-grow 1.4s var(--ease) .2s both; }
@keyframes tk-bar-grow { from { transform: scaleX(0); } to { transform: none; } }

.tk-subpage-example-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 16px; }
.tk-site .tk-subpage-example-image { min-height: 280px; border-radius: 14px; overflow: hidden; }
.tk-subpage-example-image img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.tk-subpage-topics { padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tk-subpage-topics h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: .03em; }
.tk-site .tk-subpage-topics-lead { margin: 12px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.tk-site .tk-subpage-topics ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tk-subpage-topics a { display: flex; align-items: center; gap: 10px; height: 100%; min-height: 56px; padding: 10px 14px 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 700; line-height: 1.4; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.tk-subpage-topics .tk-icon { width: 20px; height: 20px; color: var(--accent); transition: color .2s ease; }
.tk-subpage-topics .tk-mini-arrow { width: 12px; height: 12px; color: var(--accent); }
.tk-subpage-topics a:is(:hover, :focus-visible) { background: var(--accent); border-color: var(--accent); color: #fff; }
.tk-subpage-topics a:is(:hover, :focus-visible) :is(.tk-icon, .tk-mini-arrow) { color: #fff; }
.tk-site .tk-subpage-note { display: flex; align-items: flex-start; gap: 14px; margin-top: 16px; padding: 20px 24px; border-radius: 12px; background: var(--soft); font-size: 14.5px; font-weight: 500; line-height: 1.9; }
.tk-subpage-note .tk-icon { width: 24px; height: 24px; margin-top: 2px; color: var(--accent); }

/* ---------- Routes ---------- */
.tk-subpage-routes { padding-top: 0; }
.tk-subpage-routes > .tk-wrap { padding-top: var(--subpage-space); border-top: 1px solid var(--line); }
.tk-subpage-route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tk-subpage-route { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .3s ease, box-shadow .3s ease; }
.tk-subpage-route-head { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tk-site .tk-subpage-route-count { display: flex; align-items: baseline; gap: 8px; }
.tk-subpage-route-count strong { font: 800 clamp(52px, 5vw, 76px)/.85 var(--latin); letter-spacing: -.05em; color: var(--accent); }
.tk-subpage-route-count span { font-size: 16px; font-weight: 800; }
.tk-subpage-route-head .tk-icon { width: 48px; height: 48px; padding: 12px; border-radius: 10px; background: var(--soft); color: var(--ink); transition: background .3s ease, color .3s ease; }
.tk-subpage-route h3 { font-size: clamp(19px, 1.8vw, 24px); font-weight: 800; line-height: 1.5; letter-spacing: .03em; }
.tk-subpage-route h3 span { display: inline-block; }
.tk-site .tk-subpage-route-text { flex: 1; color: var(--muted); font-size: 14px; line-height: 1.9; }
.tk-subpage-route > .tk-button { margin-top: 4px; }
.tk-subpage-route details { width: 100%; margin-top: 4px; border-top: 1px solid var(--line); }
.tk-subpage-route summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 2px 2px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; transition: color .2s ease; }
.tk-subpage-route summary::-webkit-details-marker { display: none; }
.tk-subpage-route summary:is(:hover, :focus-visible) { color: var(--accent); }
.tk-subpage-route-toggle { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--ink); color: #fff; }
.tk-subpage-route-toggle::before, .tk-subpage-route-toggle::after { content: ""; grid-area: 1 / 1; width: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.tk-subpage-route-toggle::after { transform: rotate(90deg); }
.tk-subpage-route details[open] .tk-subpage-route-toggle::after { transform: rotate(0deg); }
.tk-site .tk-subpage-route details ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding-top: 10px; }
.tk-subpage-route details li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 500; line-height: 1.5; transition: color .2s ease, border-color .2s ease; }
.tk-subpage-route details .tk-mini-arrow { width: 12px; height: 12px; color: var(--accent); }
.tk-subpage-route details li a:is(:hover, :focus-visible) { color: var(--accent); border-color: var(--accent); }
.tk-subpage .tk-contact { padding-top: 0; }

/* ---------- Hover (no links on cards) ---------- */
@media (hover: hover) and (pointer: fine) {
    .tk-subpage-benefits li:hover { border-color: var(--ink); }
    .tk-subpage-benefits li:hover::before { clip-path: circle(150% at 100% 0%); }
    .tk-subpage-benefits li:hover :is(h3, .tk-subpage-benefit-no) { color: #fff; }
    .tk-subpage-benefits li:hover :is(p, .tk-subpage-benefit-en) { color: #c7ccd3; }
    .tk-subpage-benefits li:hover .tk-icon { background: var(--accent); color: #fff; }
    .tk-subpage-strengths-list li:hover { padding-left: 10px; }
    .tk-subpage-strengths-list li:hover .tk-icon { background: var(--accent); }
    .tk-subpage-strengths-list li:hover p { color: #fff; }
    .tk-subpage-route:hover { border-color: #b9c4d0; box-shadow: 0 24px 50px -36px #0d0f1259; }
    .tk-subpage-route:hover .tk-subpage-route-head .tk-icon { background: var(--accent); color: #fff; }
}

/* ---------- Header fallback before JS (mobile) ---------- */
@media (max-width: 960px) {
    .tk-subpage:not(.tk-subpage-menu-ready) .tk-header-inner { flex-wrap: wrap; gap: 8px; }
    .tk-subpage:not(.tk-subpage-menu-ready) .tk-nav { position: static; z-index: auto; order: 2; flex: 1 0 100%; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 5px 0; font-size: 12px; animation: none; }
    .tk-subpage:not(.tk-subpage-menu-ready) .tk-nav > a { padding: 4px; }
    .tk-subpage:not(.tk-subpage-menu-ready) .tk-nav-extra { display: none; }

    .tk-subpage-mv-inner { grid-template-columns: 1fr; }
    .tk-subpage-section-head { grid-template-columns: 1fr; align-items: start; }
    .tk-subpage-strengths-grid { grid-template-columns: 1fr; }
    .tk-subpage-example-grid { grid-template-columns: 1fr; }
    .tk-site .tk-subpage-example-image { min-height: 0; aspect-ratio: 3 / 1; }
}
@media (max-width: 690px) {
    .tk-subpage { --subpage-space: 56px; }
    .tk-subpage-breadcrumb { padding-block: 12px 18px; }
    .tk-subpage-breadcrumb ol { gap: 4px 9px; font-size: 11px; }
    .tk-subpage-breadcrumb li + li { gap: 8px; }
    .tk-subpage-mv { min-height: 0; }
    .tk-subpage-mv-inner { padding: 30px 20px; gap: 12px; }
    .tk-subpage .tk-subpage-mv h1 { font-size: clamp(26px, 7.6vw, 36px); }
    .tk-subpage-mv h1 em { display: block; }
    .tk-site .tk-subpage-mv-lead { font-size: 13px; }
    .tk-subpage-mv-word { font-size: 96px; bottom: -.18em; }
    .tk-subpage-mv::after { left: 20px; width: 48px; }

    .tk-subpage-section-head { gap: 16px; margin-bottom: 28px; }
    .tk-subpage .tk-subpage-section-head h2, .tk-subpage .tk-subpage-strengths h2 { font-size: clamp(20px, 6.3vw, 30px); letter-spacing: .02em; }
    .tk-subpage-section-head .tk-label { margin-bottom: 14px; }
    .tk-site .tk-subpage-prose { font-size: 14px; }
    .tk-site .tk-subpage-benefits { grid-template-columns: 1fr; gap: 10px; }
    .tk-subpage-benefits li { padding: 22px 20px; gap: 10px; }
    .tk-subpage-benefit-top { margin-bottom: 4px; }
    .tk-subpage-benefits .tk-icon { width: 44px; height: 44px; padding: 11px; }
    .tk-subpage .tk-subpage-benefits p { font-size: 13.5px; }

    .tk-subpage-strengths-panel { padding: 44px 20px; }
    .tk-site .tk-subpage-strengths figure { margin: 24px 0; }
    .tk-subpage-strengths-list li { grid-template-columns: 28px 38px minmax(0, 1fr); gap: 12px; padding-block: 18px; }
    .tk-subpage-strength-no { padding-top: 12px; font-size: 12px; }
    .tk-subpage-strengths-list .tk-icon { width: 38px; height: 38px; padding: 9px; }
    .tk-subpage .tk-subpage-strengths-list p { padding-top: 4px; font-size: 13.5px; }

    .tk-subpage-ratio li { padding: 16px 16px 18px; gap: 10px 14px; }
    .tk-subpage-ratio strong { font-size: 44px; }
    .tk-subpage-ratio-text { font-size: 13.5px; }
    .tk-site .tk-subpage-example-image { aspect-ratio: 16 / 9; }
    .tk-subpage-topics { padding: 20px 16px; }
    .tk-subpage-topics h3 { font-size: 16px; }
    .tk-site .tk-subpage-topics-lead { font-size: 13px; }
    .tk-site .tk-subpage-topics ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .tk-subpage-topics a { min-height: 50px; padding: 8px 10px; font-size: 13px; gap: 8px; }
    .tk-subpage-topics .tk-icon { width: 17px; height: 17px; }
    .tk-site .tk-subpage-note { padding: 16px; font-size: 13px; gap: 10px; }
    .tk-subpage-note .tk-icon { width: 20px; height: 20px; }

    .tk-subpage-route-grid { grid-template-columns: 1fr; gap: 10px; }
    .tk-subpage-route { padding: 22px 18px; gap: 14px; }
    .tk-subpage-route-count strong { font-size: 52px; }
    .tk-subpage-route-count span { font-size: 14px; }
    .tk-subpage-route-head .tk-icon { width: 42px; height: 42px; padding: 10px; }
    .tk-subpage-route h3 { font-size: 18px; }
    .tk-site .tk-subpage-route-text { font-size: 13px; }
    .tk-subpage-route > .tk-button { width: 100%; }
    .tk-site .tk-subpage-route details ul { gap: 0 12px; }
    .tk-subpage-route details li a { font-size: 12.5px; min-height: 44px; }
}
@media (min-width: 961px) and (max-width: 1100px) {
}
@media (prefers-reduced-motion: reduce) {
    .tk-subpage-ratio-bar span { animation: none !important; }
}

/* =========================================================================
   通常の下層ページ（templates/article.php）
   本文は content/ のファイルの素の HTML。見出し・段落・リストなどをここで整える。
   ========================================================================= */
.tk-subpage-mv h1.is-long { font-size: clamp(26px, 3vw, 42px); line-height: 1.35; }

/* ---------- 目次＋本文の 2 列 ---------- */
.tk-article-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: clamp(40px, 5.6vw, 96px); align-items: start; padding-block: var(--space-sm) var(--subpage-space); }
.tk-article-layout--single { grid-template-columns: minmax(0, 880px); justify-content: center; }

.tk-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.tk-toc-inner { padding-top: 20px; border-top: 1px solid var(--ink); }
.tk-site .tk-toc ol { counter-reset: toc; margin: 16px 0 28px; }
.tk-toc ol a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 500; line-height: 1.6; transition: color .2s ease; }
.tk-toc ol a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font: 700 12px/1.8 var(--latin); color: #a3abb5; transition: color .2s ease; }
.tk-toc ol a:is(:hover, :focus-visible, .is-current) { color: var(--ink); }
.tk-toc ol a.is-current { font-weight: 700; }
.tk-toc ol a:is(:hover, .is-current)::before { color: var(--accent); }
.tk-toc .tk-button { width: 100%; justify-content: space-between; gap: 12px; }

/* ---------- 本文 ---------- */
.tk-article { min-width: 0; counter-reset: sec; color: #262b33; font-size: 16px; line-height: 2; }
.tk-article > section + section { margin-top: clamp(64px, 6.6vw, 104px); }
.tk-article > section.is-soft { padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* 要素どうしの間隔 */
.tk-site .tk-article :is(p, ul, ol, dl, table, .tk-photo, .tk-form) + :is(p, ul, ol, dl, table, .tk-photo, .tk-form) { margin-top: 1.25em; }

/* 見出し：h2 は番号付き、h3 はドット＋下線、h4 は縦線、h5・h6 は小見出し */
.tk-site .tk-article h2 { margin: 0 0 28px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1.45; letter-spacing: .03em; word-break: keep-all; overflow-wrap: anywhere; }
.tk-site .tk-article * + h2 { margin-top: 2.4em; }
.tk-article--numbered h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 14px; font: 800 15px/1 var(--latin); letter-spacing: .02em; color: var(--accent); }
.tk-article--numbered h2:has(> span)::before { display: none; }
.tk-article h2 > span { display: block; width: fit-content; margin-bottom: 12px; padding: 5px 10px; border-radius: 4px; background: var(--ink); color: #fff; font: 700 13px/1.2 var(--latin); letter-spacing: .06em; }
.tk-site .tk-article h3 { display: flex; align-items: baseline; gap: 12px; margin: 2.6em 0 1em; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: clamp(19px, 1.7vw, 23px); font-weight: 800; line-height: 1.55; letter-spacing: .03em; }
.tk-site .tk-article h2 + h3 { margin-top: 1.4em; }
.tk-article h3::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 1px; background: var(--accent); transform: translateY(-.2em); }
.tk-site .tk-article h4 { margin: 2.2em 0 .8em; padding-left: 16px; border-left: 3px solid var(--accent); font-size: 17.5px; font-weight: 800; line-height: 1.6; }
.tk-site .tk-article h3 + h4 { margin-top: 1.4em; }
.tk-site .tk-article h5 { display: flex; align-items: center; gap: 10px; margin: 1.8em 0 .6em; font-size: 16px; font-weight: 700; line-height: 1.6; }
.tk-article h5::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border: 2px solid var(--accent); border-radius: 50%; }
.tk-site .tk-article h4 + h5 { margin-top: 1.2em; }
.tk-site .tk-article h6 { margin: 1.6em 0 .4em; color: var(--accent-dark); font-size: 15px; font-weight: 700; line-height: 1.6; }

/* 文中の強調・リンク */
.tk-article mark { padding: 0 2px; background: linear-gradient(transparent 60%, #d4e2ff 60%); color: inherit; font-weight: 700; }
.tk-site .tk-article p a, .tk-site .tk-article li a, .tk-site .tk-article dd a, .tk-site .tk-article td a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tk-site .tk-article p a:hover { color: var(--accent-dark); }
.tk-site .tk-article .is-note { color: var(--muted); font-size: 13px; text-align: right; }

/* 箇条書き：チェック付きの囲み */
.tk-site .tk-article ul { display: grid; gap: 8px; padding: 20px 24px; border-radius: 10px; background: #f3f5f8; }
.tk-article ul li { position: relative; padding-left: 28px; font-weight: 500; line-height: 1.8; }
.tk-article ul li::before { content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tk-site .tk-article ol { padding-left: 1.6em; list-style: decimal; }
.tk-article ol li::marker { color: var(--accent); font-family: var(--latin); font-weight: 700; }

/* 写真 */
.tk-site .tk-article .tk-photo { margin-block: 2em; overflow: hidden; border-radius: 12px; background: var(--soft); }
.tk-article .tk-photo img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }

/* 定義リスト（会社情報・特徴など）：左に項目、右に内容 */
.tk-site .tk-article dl { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); border-top: 1px solid var(--ink); }
.tk-article dl > dt, .tk-article dl > dd { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tk-article dl > dt { padding-right: 24px; font-weight: 700; line-height: 1.7; }
.tk-site .tk-article dl > dd > * + * { margin-top: 1em; }
.tk-article dl > dd .tk-photo { margin-block: 1.2em 0; }

/* よくある質問：Q と A */
.tk-site .tk-article dl.tk-qa { display: block; border-top: 0; }
.tk-article .tk-qa > dt, .tk-article .tk-qa > dd { position: relative; padding: 0 0 0 52px; border: 0; }
.tk-article .tk-qa > dt { padding-top: 28px; font-size: 17px; font-weight: 800; line-height: 1.7; border-top: 1px solid var(--line); }
.tk-article .tk-qa > dt:first-child { border-top: 1px solid var(--ink); }
.tk-article .tk-qa > dd { padding-block: 16px 28px; color: #3b424c; }
.tk-article .tk-qa > :is(dt, dd)::before { position: absolute; left: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font: 800 15px/1 var(--latin); }
.tk-article .tk-qa > dt::before { content: "Q"; top: 24px; background: var(--accent); color: #fff; }
.tk-article .tk-qa > dd::before { content: "A"; top: 14px; background: var(--soft); color: var(--ink); }

/* 表 */
.tk-site .tk-article table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.7; }
.tk-article :is(th, td) { padding: 12px 14px; border: 1px solid var(--line); text-align: center; vertical-align: middle; }
.tk-article th { background: var(--ink); color: #fff; font-weight: 700; }
.tk-article tr > td:first-child { background: #f3f5f8; font-weight: 700; }

/* ダウンロードリンク */
.tk-site .tk-article .tk-download a { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.tk-article .tk-download a::before { content: "PDF"; padding: 4px 6px; border-radius: 4px; background: #d93025; color: #fff; font: 800 11px/1 var(--latin); }
.tk-site .tk-article .tk-download a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- フォーム（MW WP Form の出力） ---------- */
.tk-form { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tk-form table { width: 100%; border-collapse: collapse; }
.tk-site .tk-article .tk-form :is(th, td) { display: block; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; font-weight: 400; }
.tk-site .tk-article .tk-form tr { display: block; padding-block: 18px; border-bottom: 1px solid var(--line); }
.tk-site .tk-article .tk-form th { margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.tk-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], select, textarea) { width: 100%; max-width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #cfd5dc; border-radius: 8px; background: #fff; color: var(--ink); font: 400 16px/1.6 var(--jp); transition: border-color .2s ease, box-shadow .2s ease; }
.tk-form textarea { min-height: 180px; resize: vertical; }
.tk-form :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #0b55d926; }
.tk-form :is(input[type="radio"], input[type="checkbox"]) { width: 18px; height: 18px; margin-right: 6px; accent-color: var(--accent); vertical-align: -3px; }
.tk-form label { margin-right: 16px; }
.tk-form :is(input[type="submit"], input[type="button"], button[type="submit"]) { display: inline-flex; align-items: center; justify-content: center; min-width: 240px; min-height: 60px; margin: 28px 8px 0 0; padding: 0 32px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: 700 16px/1 var(--jp); letter-spacing: .04em; cursor: pointer; transition: background .2s ease; }
.tk-form input[name="submitBack"] { background: var(--ink); }
.tk-form :is(input[type="submit"], button[type="submit"]):hover { background: var(--accent-dark); }
.tk-form .error, .tk-form .mwform-error { display: block; margin-top: 6px; color: #d93025; font-size: 13px; }
.tk-form .require, .tk-form .required { display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 4px; background: #d93025; color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }

/* ---------- ほかの業種などへのリンク ---------- */
.tk-related > .tk-wrap { padding-top: var(--subpage-space); border-top: 1px solid var(--line); }
.tk-related { padding-top: 0; }
.tk-related-head { margin-bottom: 24px; }
.tk-related-head .tk-label { margin-bottom: 16px; }
.tk-site .tk-related h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.45; }
.tk-site .tk-related-list a { min-height: 56px; font-size: 14px; font-weight: 500; }

/* =========================================================================
   一覧ページ（templates/directory.php）
   ========================================================================= */
.tk-directory-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 16px clamp(32px, 5vw, 80px); margin-bottom: clamp(32px, 3.6vw, 52px); padding-bottom: clamp(24px, 2.4vw, 32px); border-bottom: 1px solid var(--ink); }
.tk-site .tk-directory-count { display: flex; align-items: baseline; gap: 8px; }
.tk-directory-count strong { font: 800 clamp(64px, 6.4vw, 96px)/.8 var(--latin); letter-spacing: -.05em; color: var(--accent); }
.tk-directory-count span { font-size: 18px; font-weight: 800; }
.tk-site .tk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tk-card { position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 26px 26px 64px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .3s ease, box-shadow .3s ease; }
.tk-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tk-card-no { font: 800 15px/1 var(--latin); color: var(--accent); }
.tk-card .tk-icon { width: 44px; height: 44px; padding: 11px; border-radius: 10px; background: var(--soft); color: var(--ink); transition: background .3s ease, color .3s ease; }
.tk-card-title { font-size: 19px; font-weight: 800; line-height: 1.5; letter-spacing: .03em; transition: color .2s ease; }
.tk-card-text { color: var(--muted); font-size: 14px; line-height: 1.85; }
.tk-card-arrow { position: absolute; right: 22px; bottom: 22px; width: 36px; height: 36px; padding: 9px; border-radius: 6px; background: var(--accent); color: #fff; transition: transform .3s var(--ease); }
.tk-card:is(:hover, :focus-visible) { border-color: var(--ink); box-shadow: 0 24px 50px -36px #0d0f1259; }
.tk-card:is(:hover, :focus-visible) .tk-card-title { color: var(--accent); }
.tk-card:is(:hover, :focus-visible) .tk-icon { background: var(--accent); color: #fff; }
.tk-card:is(:hover, :focus-visible) .tk-card-arrow { transform: translateX(4px); }

/* =========================================================================
   サイトマップ（templates/sitemap.php）
   ========================================================================= */
.tk-sitemap { display: grid; gap: clamp(40px, 4.4vw, 64px); }
.tk-sitemap-top a { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.tk-sitemap-top .tk-icon { width: 20px; height: 20px; color: var(--accent); }
.tk-sitemap-group h2 { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-size: 20px; font-weight: 800; }
.tk-site .tk-sitemap ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.tk-sitemap li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; line-height: 1.5; transition: color .2s ease, border-color .2s ease; }
.tk-sitemap .tk-mini-arrow { width: 12px; height: 12px; flex: 0 0 auto; color: var(--accent); }
.tk-sitemap li a:is(:hover, :focus-visible) { color: var(--accent); border-color: var(--accent); }

/* =========================================================================
   ページ送り・404（templates/archive.php / 404.php）
   ========================================================================= */
.tk-pagination { margin-top: 48px; }
.tk-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tk-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 700 14px/1 var(--latin); }
.tk-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.tk-pagination .page-numbers.current { border-color: var(--accent); background: var(--accent); color: #fff; }
.tk-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tk-entry-empty { display: grid; gap: 28px; justify-items: start; max-width: 880px; margin-inline: auto; padding-block: var(--space-sm) var(--subpage-space); }
.tk-site .tk-entry-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; width: 100%; border-top: 1px solid var(--line); }
.tk-entry-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.tk-entry-links a:hover { color: var(--accent); }
.tk-entry-links .tk-mini-arrow { width: 16px; flex: 0 0 auto; color: var(--accent); }
.tk-entry-empty .search-form { display: flex; gap: 8px; width: min(100%, 480px); }
.tk-entry-empty .search-field { flex: 1; min-width: 0; height: 48px; padding-inline: 16px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.tk-entry-empty .search-submit { height: 48px; padding-inline: 20px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: 700 15px/1 var(--jp); cursor: pointer; }

/* =========================================================================
   記事一覧（templates/archive.php）
   ========================================================================= */
.tk-archive-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-bottom: clamp(28px, 3vw, 40px); padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.tk-site .tk-archive-count { display: flex; align-items: baseline; gap: 4px; }
.tk-archive-count strong { font: 800 clamp(40px, 3.6vw, 52px)/.9 var(--latin); letter-spacing: -.04em; color: var(--accent); }
.tk-archive-count span { font-size: 15px; font-weight: 700; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chips a { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 700; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.tk-chips a:is(:hover, :focus-visible) { border-color: var(--accent); color: var(--accent); }
.tk-chips a[aria-current] { border-color: var(--ink); background: var(--ink); color: #fff; }
.tk-archive-bar .search-form { display: flex; gap: 8px; flex: 1; min-width: min(100%, 320px); max-width: 480px; }
.tk-archive-bar .search-field { flex: 1; min-width: 0; height: 44px; padding-inline: 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.tk-archive-bar .search-submit { height: 44px; padding-inline: 18px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: 700 14px/1 var(--jp); cursor: pointer; }

.tk-site .tk-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.tk-post-card { position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%; }
.tk-post-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--soft); }
.tk-post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tk-post-card-body { display: flex; flex-direction: column; gap: 10px; padding-right: 44px; }
.tk-post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tk-post-card-meta time { font: 500 13px/1 var(--latin); color: var(--muted); }
.tk-post-card-title { font-size: 17px; font-weight: 800; line-height: 1.6; letter-spacing: .02em; transition: color .2s ease; }
.tk-post-card-text { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 13.5px; line-height: 1.85; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tk-post-card-arrow { position: absolute; right: 0; bottom: 2px; width: 34px; height: 34px; padding: 8px; border-radius: 6px; background: var(--accent); color: #fff; transition: transform .3s var(--ease); }
.tk-post-card:is(:hover, :focus-visible) .tk-post-card-title { color: var(--accent); }
.tk-post-card:is(:hover, :focus-visible) img { transform: scale(1.05); }
.tk-post-card:is(:hover, :focus-visible) .tk-post-card-arrow { transform: translateX(4px); }

/* =========================================================================
   記事ページ（templates/single.php）。本文はエディターの内容
   ========================================================================= */
.tk-site .tk-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 28px; color: var(--muted); font: 500 14px/1.4 var(--latin); }
.tk-site .tk-article .tk-post-meta a.tk-tag { font-family: var(--jp); color: var(--ink); text-decoration: none; transition: background .2s ease, color .2s ease; }
.tk-site .tk-article .tk-post-meta a.tk-tag:hover { background: var(--accent); color: #fff; }
.tk-site .tk-article .tk-post-thumb { margin-top: 0; }
.tk-article .tk-post-thumb img { aspect-ratio: auto; }
.tk-site .tk-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.tk-site .tk-article .tk-post-tags a { padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 13px; text-decoration: none; }
.tk-site .tk-post-tags a::before { content: "#"; color: var(--accent); }

/* エディターの画像・キャプション・配置 */
.tk-site .tk-article :is(img, video, iframe) { max-width: 100%; height: auto; }
.tk-site .tk-article img { border-radius: 8px; }
.tk-site .tk-article :is(figure, .wp-caption) { max-width: 100%; }
.tk-site .tk-article :is(figcaption, .wp-caption-text) { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.tk-site .tk-article :is(.aligncenter, .has-text-align-center) { margin-inline: auto; text-align: center; }
.tk-site .tk-article .alignleft { float: left; margin: .4em 1.6em 1em 0; }
.tk-site .tk-article .alignright { float: right; margin: .4em 0 1em 1.6em; }
.tk-site .tk-article blockquote { margin: 1.5em 0 0; padding: 20px 24px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: #f3f5f8; }
.tk-article::after { content: ""; display: block; clear: both; }

.tk-post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: var(--subpage-space); }
.tk-post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14.5px; font-weight: 700; line-height: 1.6; transition: border-color .2s ease, color .2s ease; }
.tk-post-nav small { font: 700 12px/1 var(--latin); letter-spacing: .06em; color: var(--accent); }
.tk-post-nav-next { grid-column: 2; text-align: right; }
.tk-post-nav a:is(:hover, :focus-visible) { border-color: var(--ink); color: var(--accent); }
.tk-site .tk-related-more { margin-top: 40px; text-align: center; }
.tk-related-more .tk-button { display: inline-flex; }
.tk-site .tk-lp-form { margin-top: 48px; }
.tk-site .tk-lp-form h2 { margin-bottom: 16px; }
.tk-site .tk-lp-form h2::before { display: none; }

/* ---------- 下層ページの画面幅ごとの調整 ---------- */
@media (max-width: 1100px) {
    .tk-site .tk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tk-site .tk-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tk-site .tk-sitemap ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .tk-article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .tk-toc { position: static; }
    .tk-toc .tk-button { display: none; }
    .tk-site .tk-toc ol { margin-bottom: 0; }
    .tk-site .tk-sitemap ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
    .tk-article { font-size: 15px; line-height: 1.95; }
    .tk-article > section.is-soft { padding: 24px 18px; border-radius: 12px; }
    .tk-site .tk-article h2 { margin-bottom: 20px; font-size: clamp(21px, 6vw, 26px); }
    .tk-site .tk-article h3 { font-size: 18px; }
    .tk-site .tk-article h4 { font-size: 16px; }
    .tk-site .tk-article ul { padding: 16px 16px; }
    .tk-site .tk-article dl { grid-template-columns: minmax(0, 1fr); }
    .tk-article dl > dt { padding: 16px 0 4px; border-bottom: 0; }
    .tk-article dl > dd { padding: 0 0 16px; }
    .tk-article .tk-qa > dt, .tk-article .tk-qa > dd { padding-left: 44px; }
    .tk-article .tk-qa > dt { padding-top: 22px; font-size: 15.5px; }
    .tk-article .tk-qa > dt::before { top: 20px; }
    .tk-article .tk-qa > :is(dt, dd)::before { width: 30px; height: 30px; font-size: 14px; }
    .tk-site .tk-article table { display: block; overflow-x: auto; font-size: 13px; white-space: nowrap; }
    .tk-form :is(input[type="submit"], button[type="submit"]) { width: 100%; margin-right: 0; }
    .tk-subpage-mv h1.is-long { font-size: clamp(22px, 6.2vw, 30px); }
    .tk-article .tk-photo img { aspect-ratio: 2 / 1; }

    .tk-directory-intro { grid-template-columns: minmax(0, 1fr); }
    .tk-site .tk-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .tk-card { padding: 20px 20px 56px; }
    .tk-card-title { font-size: 17px; }
    .tk-card-text { font-size: 13px; }
    .tk-card-arrow { right: 16px; bottom: 16px; width: 32px; height: 32px; padding: 8px; }
    .tk-site .tk-sitemap ul { grid-template-columns: minmax(0, 1fr); }
    .tk-site .tk-entry-links { grid-template-columns: minmax(0, 1fr); }

    .tk-site .tk-post-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .tk-post-card-title { font-size: 16px; }
    .tk-chips { gap: 6px; }
    .tk-chips a { min-height: 34px; padding: 4px 12px; font-size: 12.5px; }
    .tk-post-nav { grid-template-columns: minmax(0, 1fr); }
    .tk-post-nav-next { grid-column: auto; }
    .tk-site .tk-article :is(.alignleft, .alignright) { float: none; margin: 1em auto; }
}
