/*
Theme Name: TJ Creativity-Culture Home
Description: Lightweight custom home page based on the supplied sketch.
Version: 5.6
Text Domain: tjcc
*/
:root{--ink:#252525;--muted:#777;--line:#deded9;--paper:#fff;--soft:#f5f4f0;--accent:#19c1ab}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}img{max-width:100%;height:auto;display:block}.wrap{width:min(1180px,calc(100% - 48px));margin:auto}.site-head{border-bottom:1px solid var(--line);padding:22px 0 15px}.head-top{display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font-size:clamp(19px,2.2vw,28px);font-weight:700;letter-spacing:.02em}.search-form{display:flex;width:min(390px,100%);border:1px solid #aaa}.search-form input{border:0;padding:10px 12px;min-width:0;flex:1;font:inherit}.search-form button{border:0;background:var(--ink);color:#fff;padding:9px 16px;cursor:pointer}.main-nav{display:flex;flex-wrap:wrap;gap:10px 25px;margin-top:21px;font-size:14px}.main-nav a{border-bottom:1px solid transparent;padding-bottom:3px}.main-nav a:hover{border-color:currentColor}main{padding-top:34px}.top-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:26px}.section-heading{font-size:19px;font-weight:700;letter-spacing:.06em;margin:0 0 16px}.hero-card{display:block;position:relative;overflow:hidden;background:var(--soft);min-height:355px}.hero-card img{width:100%;height:355px;object-fit:cover}.hero-card .fallback{height:355px;display:grid;place-items:center;color:#888}.hero-text{position:absolute;bottom:0;left:0;right:0;color:#fff;padding:45px 24px 20px;background:linear-gradient(transparent,rgba(0,0,0,.78))}.hero-text strong{font-size:clamp(20px,2.3vw,29px);line-height:1.35;display:block}.hero-text small{display:block;margin-top:8px}.side-stack{display:grid;grid-template-rows:1fr 1fr;gap:18px}.side-card{border:1px solid var(--line);padding:16px;min-height:164px}.side-card h2{font-size:17px;margin:0 0 10px}.side-card ul{list-style:none;margin:0;padding:0}.side-card li{border-top:1px solid var(--line);padding:7px 0;font-size:13px;line-height:1.45}.side-card li:first-child{border-top:0}.block-section{margin-top:48px}.articles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.article-card{min-width:0}.article-card img,.article-card .fallback{width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--soft)}.article-card .fallback{display:grid;place-items:center;color:#999}.article-card h3{font-size:15px;line-height:1.5;margin:10px 0 5px}.article-card time{font-size:12px;color:var(--muted)}.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.category-tile{display:flex;align-items:center;justify-content:center;text-align:center;min-height:140px;background:var(--soft);border:1px solid var(--line);padding:15px;font-size:19px;font-weight:700;transition:background .2s}.category-tile:hover{background:#eaece8}.category-tile small{display:block;font-size:12px;font-weight:400;color:var(--muted)}.site-footer{margin-top:65px;border-top:1px solid var(--line);padding:35px 0;color:var(--muted);font-size:13px}.empty{color:var(--muted);font-size:14px}@media(max-width:800px){.top-grid{grid-template-columns:1fr}.side-stack{grid-template-columns:1fr 1fr;grid-template-rows:auto}.articles,.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-card,.hero-card img,.hero-card .fallback{min-height:300px;height:300px}}@media(max-width:520px){.wrap{width:min(100% - 28px,1180px)}.head-top{align-items:stretch;flex-direction:column;gap:13px}.search-form{width:100%}.main-nav{gap:9px 16px}.side-stack{grid-template-columns:1fr}.articles{gap:15px}.category-grid{gap:10px}.category-tile{min-height:105px;font-size:16px}.hero-card,.hero-card img,.hero-card .fallback{min-height:260px;height:260px}.block-section{margin-top:36px}}

.category-unlinked{opacity:.5;cursor:default}

.category-tile--inactive{display:flex;flex-direction:column;gap:3px;color:#666;cursor:default}.category-tile--inactive:hover{background:var(--soft)}

/* Explicitly framed latest-article strip, matching the sketch */
.newposts-section{border:1px solid var(--line);padding:20px 22px 24px;background:#fff}
.newposts-section .section-heading{border-bottom:1px solid var(--line);padding-bottom:10px}
.side-card h2 small{font-size:11px;font-weight:400;color:var(--muted);margin-left:6px}
@media(max-width:520px){.newposts-section{padding:14px}}

/* Search links to the existing advanced-search page; no duplicate search form. */
.search-page-link{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:9px 18px;border:1px solid var(--line);font-weight:600;background:var(--soft);white-space:nowrap}
.search-page-link:hover,.search-page-link:focus-visible{background:var(--accent);color:#fff}
@media(max-width:520px){.search-page-link{width:100%}}

/* v1.6: sketch-aligned hierarchy, compact responsive layout */
.site-head{padding:18px 0 12px}
.main-nav{align-items:center;gap:12px 26px;margin-top:15px}
.main-nav-list{display:flex;flex-wrap:wrap;gap:12px 26px;list-style:none;margin:0;padding:0}
.main-nav-list li{margin:0;padding:0}
.top-grid{grid-template-columns:minmax(0,2.15fr) minmax(250px,.85fr);gap:24px;align-items:stretch}
.top-grid>section{min-width:0;display:flex;flex-direction:column}
.top-grid .hero-card{flex:1;min-height:370px}
.top-grid .hero-card img{height:100%;min-height:370px;position:absolute;inset:0}
.side-stack{grid-template-rows:repeat(2,minmax(0,1fr));gap:16px}
.side-card{min-height:0;overflow:hidden;padding:14px 17px}
.side-card h2{margin-bottom:7px}
.block-section{margin-top:35px}
.newposts-section{padding:0;border:0;background:transparent}
.newposts-section .section-heading{border:0;padding:0;margin-bottom:13px}
.newposts-section .articles{gap:15px}
.category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.category-tile{min-height:135px}
.article-card h3{overflow-wrap:anywhere}
@media(max-width:800px){.top-grid{grid-template-columns:1fr}.top-grid .hero-card{min-height:300px}.top-grid .hero-card img{min-height:300px}.side-stack{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.main-nav-list{gap:9px 16px}.top-grid .hero-card{min-height:260px}.top-grid .hero-card img{min-height:260px}.side-stack{grid-template-columns:1fr}.articles{grid-template-columns:repeat(2,minmax(0,1fr))}.category-tile{min-height:105px}.newposts-section{padding:0}}

/* v2.2: eight actual taxonomy term lists, not empty navigation tiles */
.category-list-grid{align-items:stretch;gap:16px}
.category-list-panel{min-width:0;border:1px solid var(--line);background:#fff;padding:15px 16px}
.category-list-panel h3{font-size:17px;margin:0 0 12px;padding-bottom:9px;border-bottom:1px solid var(--line)}
.category-list-panel h3 a{text-decoration:none;color:inherit}
.category-list-panel ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.category-list-panel li{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:14px;line-height:1.5}
.category-list-panel li a{overflow-wrap:anywhere;text-decoration:none}
.category-list-panel li a:hover{text-decoration:underline}
.category-list-panel .term-count{color:var(--muted);font-size:12px;white-space:nowrap}
.category-note{font-size:13px;color:var(--muted)}

/* v2.4: compact 8-category list: first term visible, remaining terms in native dropdown */
.category-list-grid{align-items:stretch}
.category-list-panel{min-height:165px;align-self:start}
.category-first-term{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;min-height:35px}
.category-first-term a:hover{text-decoration:underline}
.category-dropdown{margin-top:12px;position:relative}
.category-dropdown summary{cursor:pointer;list-style:none;border:1px solid var(--line);background:var(--soft);padding:9px 12px;font-size:13px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.category-dropdown summary::-webkit-details-marker{display:none}
.category-dropdown summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.category-dropdown[open] summary{border-bottom-color:transparent}
.category-dropdown[open] .dropdown-chevron{transform:rotate(180deg)}
.category-dropdown-items{border:1px solid var(--line);background:#fff;max-height:245px;overflow-y:auto;padding:8px 12px!important;gap:0!important;overscroll-behavior:contain}
.category-dropdown-items li{padding:5px 0;border-bottom:1px solid #eee}
.category-dropdown-items li:last-child{border-bottom:0}
.category-dropdown-spacer{height:47px}

/* v2.5: compact header selectors, regional special filters and no article dates */
.tagline{margin:5px 0 0;font-size:13px;color:var(--muted)}
.head-brand{min-width:0}.header-pickers{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.tjcc-term-select,.region-filter select{font:inherit;font-size:13px;max-width:100%;width:100%;padding:9px 30px 9px 10px;border:1px solid var(--line);border-radius:3px;background:#fff;color:var(--ink)}
.header-pickers .tjcc-term-select{width:auto;min-width:165px;max-width:235px}
.category-list-panel{min-height:160px}.category-list-panel .tjcc-term-select{margin-top:10px}
.region-filter{margin-top:10px}.region-filter label{display:block;font-size:12px;margin-bottom:5px;color:var(--muted)}
.region-filter button{margin-top:8px;width:100%;border:1px solid var(--line);padding:8px;background:var(--soft);cursor:pointer;font:inherit;font-size:13px}
.post-region{display:block;color:var(--muted);font-size:12px;margin-top:5px}.hero-text .post-region{color:#fff}
.top-grid>section>.hero-card{margin-top:0}
@media(max-width:600px){.header-pickers .tjcc-term-select{width:100%;max-width:none}.header-pickers{display:grid;grid-template-columns:1fr 1fr}.site-head .head-top{align-items:flex-start}}

/* v2.6: larger lead feature, 3-row ranking, clearer header, compact selectors */
.tagline{font-size:clamp(16px,1.55vw,21px);line-height:1.55;font-weight:500;color:var(--ink);margin:7px 0 0}
.top-grid{grid-template-columns:minmax(0,2.05fr) minmax(275px,.95fr);align-items:stretch}
.top-grid>section>.hero-card{min-height:530px}
.top-grid .hero-card img{min-height:530px}
.side-stack{grid-template-rows:1fr 1fr;min-height:530px}
.side-card{padding:17px 18px;display:flex;flex-direction:column}
.side-card li{padding:9px 0;line-height:1.45}
.category-list-panel{min-height:190px}
.category-list-panel .tjcc-term-select{margin-top:0}
.special-category-link{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:13px;margin-bottom:12px}
.special-category-link:hover{text-decoration:underline}
@media(max-width:800px){.top-grid{grid-template-columns:1fr}.top-grid>section>.hero-card,.top-grid .hero-card img{min-height:400px}.side-stack{min-height:0}}
@media(max-width:520px){.tagline{font-size:16px}.top-grid>section>.hero-card,.top-grid .hero-card img{min-height:330px}}

/* v2.7: explicit-submit filters; no selection-triggered navigation. */
.tjcc-filter-form{display:flex;flex-direction:column;gap:9px}
.tjcc-filter-form select,.tjcc-header-form select{font:inherit;font-size:13px;min-width:0;width:100%;padding:9px 10px;border:1px solid var(--line);background:#fff;color:var(--ink)}
.tjcc-filter-form button,.tjcc-header-form button{font:inherit;cursor:pointer;background:var(--soft);border:1px solid var(--line);padding:9px 12px;font-size:13px}
.tjcc-filter-form button:hover,.tjcc-header-form button:hover{background:var(--accent);color:#fff}
.tjcc-region-label{font-size:12px;color:var(--muted)}
.tjcc-header-form{display:flex;gap:4px;flex:1 1 215px;min-width:0;max-width:275px}
.tjcc-header-form select{flex:1;min-width:0}
.tjcc-header-form button{flex:none}
.special-category-name{font-size:13px;margin:0 0 12px}
.article-card .post-region{font-size:clamp(15px,1.3vw,18px);font-weight:600;line-height:1.5}
.hero-text .post-region{font-size:clamp(17px,1.7vw,22px);font-weight:600}
@media(max-width:600px){.tjcc-header-form{max-width:none;width:100%}}

/* v2.8: restored refined header navigation without browser-default select/button UI. */
.header-pickers{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;margin-top:16px}
.tjcc-header-dropdown{position:relative;min-width:0}
.tjcc-header-dropdown summary{list-style:none;display:flex;align-items:center;gap:9px;cursor:pointer;padding:8px 2px;color:var(--ink);font-size:15px;font-weight:500}
.tjcc-header-dropdown summary::-webkit-details-marker{display:none}
.tjcc-header-dropdown summary span{color:var(--muted);font-size:17px}
.tjcc-header-dropdown summary:hover{color:var(--accent)}
.tjcc-header-dropdown summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.tjcc-header-menu{position:absolute;z-index:50;top:100%;left:0;min-width:230px;max-width:min(310px,90vw);max-height:340px;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid var(--line);box-shadow:0 8px 22px rgba(0,0,0,.1);padding:7px 0}
.tjcc-header-menu a{display:block;padding:7px 13px;font-size:14px;white-space:normal}
.tjcc-header-menu a:hover,.tjcc-header-menu a:focus-visible{background:var(--soft)}
/* Regional labels beneath both hero and article names must remain readable. */
.article-card .post-region{font-size:clamp(18px,1.65vw,21px);font-weight:600;color:var(--ink);line-height:1.45;margin-top:7px}
.hero-text .post-region{font-size:clamp(21px,2vw,26px);font-weight:600;color:#fff;margin-top:8px}
/* Equal-width and equal-height dropdowns and explicit submit buttons. */
.tjcc-filter-form{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.tjcc-filter-form select,.tjcc-filter-form button{display:block;width:100%;height:44px;min-height:44px;box-sizing:border-box;font:inherit;font-size:14px;border:1px solid #b9beb9;border-radius:3px;padding:8px 12px}
.tjcc-filter-form select{background:#fff;color:var(--ink)}
.tjcc-filter-form button{background:var(--soft);font-weight:600;cursor:pointer}
.tjcc-filter-form .tjcc-region-label{display:block;width:100%;margin:4px 0 0;font-size:14px;line-height:1.5;color:var(--ink)}
.category-list-panel{min-width:0}
/* Special-category names are already expressed by the panel heading. */
.special-category-name{display:none}
@media(max-width:600px){.header-pickers{display:flex;gap:5px 15px}.tjcc-header-dropdown summary{font-size:14px}.tjcc-header-menu{min-width:190px}.article-card .post-region{font-size:18px}.hero-text .post-region{font-size:21px}}

/* Integrated article template v2.3, restricted to case and pages */
body.single :root,body.page :root{--ink:#25312e;--muted:#68736f;--line:#d9dfdc;--accent:#19c1ab;--paper:#fff;--surface:#f5f7f5}
body.single *,body.page *{box-sizing:border-box}
body.single html,body.page html{scroll-behavior:smooth}
body.single,body.page{margin:0;color:var(--ink);background:var(--paper);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;line-height:1.8}
body.single a,body.page a{color:var(--accent)}
body.single img,body.page img{max-width:100%;height:auto}
body.single button,body.page button,body.single input,body.page input{font:inherit}
body.single .site-header,body.page .site-header{border-bottom:1px solid var(--line);padding:15px max(20px,calc((100vw - 1320px)/2))}
body.single .site-brand,body.page .site-brand{font-size:1.3rem;font-weight:700;text-decoration:none;color:var(--ink)}
body.single .header-inner,body.page .header-inner{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
body.single .site-nav,body.page .site-nav{display:flex;gap:16px;flex-wrap:wrap;font-size:.9rem}
body.single .site-nav a,body.page .site-nav a{text-decoration:none}
body.single .site-search input,body.page .site-search input{width:175px;max-width:100%;padding:6px 9px;border:1px solid var(--line)}
body.single .site-search button,body.page .site-search button{padding:6px 10px;border:1px solid var(--line);background:white}
body.single .page-shell,body.page .page-shell{max-width:1320px;margin:0 auto;padding:32px 22px}
body.single .article-heading h1,body.page .article-heading h1{font-size:clamp(1.5rem,2.7vw,2.4rem);line-height:1.45;margin:0 0 10px}
body.single .facility-name,body.page .facility-name{font-size:1.1rem;font-weight:600}
body.single .article-meta,body.page .article-meta{color:var(--muted);font-size:.9rem;display:flex;flex-wrap:wrap;gap:14px;margin:10px 0 24px}
body.single .article-layout,body.page .article-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:48px;align-items:start}
body.single .article-main,body.page .article-main{min-width:0}
body.single .map-slot,body.page .map-slot{background:var(--surface);border:1px solid var(--line);min-height:130px;display:grid;place-items:center;color:var(--muted);font-size:.9rem}
body.single .visit-date,body.page .visit-date{margin:8px 0 22px;color:var(--muted);font-size:.9rem}
body.single .featured-image,body.page .featured-image{margin:0 0 26px}
body.single .featured-image img,body.page .featured-image img{width:100%;display:block}
body.single .entry-content,body.page .entry-content{overflow-wrap:anywhere}
body.single .entry-content figure,body.page .entry-content figure,body.single .entry-content p:has(> img),body.page .entry-content p:has(> img){margin:24px 0}
body.single .entry-content img,body.page .entry-content img{display:block}
body.single .entry-content figcaption,body.page .entry-content figcaption{font-size:.88rem;color:var(--muted)}
body.single .data-panel,body.page .data-panel{border-top:2px solid var(--ink);margin:34px 0;padding-top:10px}
body.single .data-panel h2,body.page .data-panel h2{font-size:1.25rem}
body.single .data-list,body.page .data-list{display:grid;grid-template-columns:150px minmax(0,1fr);margin:0}
body.single .data-list dt,body.page .data-list dt,body.single .data-list dd,body.page .data-list dd{padding:11px 10px;border-bottom:1px solid var(--line);margin:0}
body.single .data-list dt,body.page .data-list dt{font-weight:700;background:var(--surface)}
body.single .photo-rail,body.page .photo-rail{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto;border-left:1px solid var(--line);padding-left:14px}
body.single .photo-rail h2,body.page .photo-rail h2{font-size:.95rem;margin:0 0 12px}
body.single .photo-rail-list,body.page .photo-rail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body.single .photo-rail-list a,body.page .photo-rail-list a{display:block;aspect-ratio:4/3;overflow:hidden}
body.single .photo-rail-list img,body.page .photo-rail-list img{width:100%;height:100%;object-fit:cover}
body.single .related,body.page .related{margin-top:44px;border-top:1px solid var(--line);padding-top:18px}
body.single .related-grid,body.page .related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
body.single .related-item a,body.page .related-item a{text-decoration:none}
body.single .related-item img,body.page .related-item img{width:100%;aspect-ratio:4/3;object-fit:cover}
body.single .site-footer,body.page .site-footer{border-top:1px solid var(--line);padding:24px;text-align:center;color:var(--muted)}
body.single .archive-grid,body.page .archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
body.single .archive-card img,body.page .archive-card img{width:100%;aspect-ratio:4/3;object-fit:cover}
body.single .archive-card a,body.page .archive-card a{text-decoration:none}
body.single .archive-card h2,body.page .archive-card h2{font-size:1.05rem}
@media (max-width:850px){body.single .article-layout,body.page .article-layout{grid-template-columns:1fr}
body.single .photo-rail,body.page .photo-rail{position:static;max-height:none;border-left:0;border-top:1px solid var(--line);padding:16px 0 0}
body.single .photo-rail-list,body.page .photo-rail-list{grid-template-columns:repeat(5,minmax(0,1fr))}
body.single .related-grid,body.page .related-grid,body.single .archive-grid,body.page .archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:520px){body.single .data-list,body.page .data-list{grid-template-columns:110px minmax(0,1fr)}
body.single .photo-rail-list,body.page .photo-rail-list{grid-template-columns:repeat(4,minmax(0,1fr))}
body.single .related-grid,body.page .related-grid,body.single .archive-grid,body.page .archive-grid{grid-template-columns:1fr}
}
body.single .entry-content img,body.page .entry-content img{max-width:100%;height:auto}
body.single .photo-rail-list img,body.page .photo-rail-list img{display:block;max-width:100%;height:100%;object-fit:cover}
body.single .entry-content [id^="tjcc-photo-"],body.page .entry-content [id^="tjcc-photo-"]{scroll-margin-top:24px}
body.single .article-heading,body.page .article-heading{margin-bottom:16px}
body.single .article-meta:empty,body.page .article-meta:empty{display:none}
@media (max-width:850px){body.single .photo-rail,body.page .photo-rail{max-width:100%}
}
body.single.single .page-shell,body.page.single .page-shell,body.single.page .page-shell,body.page.page .page-shell,body.single.singular .page-shell,body.page.singular .page-shell{width:100%;max-width:1320px;margin-inline:auto}
body.single .article-layout,body.page .article-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;column-gap:32px;align-items:start}
body.single .article-main,body.page .article-main{min-width:0}
body.single .entry-content>p,body.page .entry-content>p,body.single .entry-content>figure,body.page .entry-content>figure{max-width:100%}
body.single .entry-content img,body.page .entry-content img{max-width:100%;height:auto}
body.single .photo-rail,body.page .photo-rail{align-self:start;position:sticky;top:16px}
body.single .photo-rail-list a:focus-visible,body.page .photo-rail-list a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media (max-width:850px){body.single .article-layout,body.page .article-layout{grid-template-columns:minmax(0,1fr)}
body.single .photo-rail,body.page .photo-rail{position:static}
}
body.single .featured-image img,body.page .featured-image img{height:auto;object-fit:contain}
body.single .photo-rail-list a,body.page .photo-rail-list a{background:var(--surface)}
body.single .photo-rail-list img,body.page .photo-rail-list img{content-visibility:auto}
body.single .article-heading,body.page .article-heading{min-height:0}
body.single .site-nav,body.page .site-nav{align-items:center}
body.single .site-header,body.page .site-header{padding-block:12px}
body.single .header-inner,body.page .header-inner{max-width:1320px;margin:auto}
body.single .site-nav,body.page .site-nav{gap:10px 18px}
body.single .site-nav a,body.page .site-nav a{white-space:nowrap}
body.single .site-nav a:hover,body.page .site-nav a:hover,body.single .site-nav a:focus,body.page .site-nav a:focus{text-decoration:underline}
body.single .article-heading,body.page .article-heading{margin-bottom:18px}
body.single .article-heading h1,body.page .article-heading h1{margin-bottom:5px}
body.single .facility-name,body.page .facility-name{font-size:1.05rem}
body.single .article-meta,body.page .article-meta{margin:6px 0 12px}
body.single .article-meta span+span:before,body.page .article-meta span+span:before{content:" / ";margin-right:12px;color:#9ba49e}
body.single .article-layout,body.page .article-layout{grid-template-columns:minmax(0,1fr) 220px;gap:32px}
body.single .featured-image,body.page .featured-image{margin-bottom:22px}
body.single .featured-image img,body.page .featured-image img{width:100%;height:auto}
body.single .photo-rail,body.page .photo-rail{top:16px;scrollbar-width:thin}
body.single .photo-rail-list,body.page .photo-rail-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.single .photo-rail-list a,body.page .photo-rail-list a{border:1px solid var(--line)}
body.single .entry-content,body.page .entry-content{font-size:1rem}
body.single .entry-content p,body.page .entry-content p{margin:0 0 1.1em}
body.single .entry-content img,body.page .entry-content img{max-width:100%;height:auto}
body.single .entry-content [id^="tjcc-photo-"],body.page .entry-content [id^="tjcc-photo-"]{scroll-margin-top:24px}
body.single .data-list,body.page .data-list{grid-template-columns:minmax(135px,185px) minmax(0,1fr)}
body.single .data-list dd,body.page .data-list dd{overflow-wrap:anywhere}
body.single .related-item img,body.page .related-item img{display:block}
@media (max-width:900px){body.single .header-inner,body.page .header-inner{align-items:flex-start}
body.single .site-nav,body.page .site-nav{order:3;width:100%}
body.single .article-layout,body.page .article-layout{grid-template-columns:minmax(0,1fr) 180px;gap:20px}
}
@media (max-width:700px){body.single .article-layout,body.page .article-layout{grid-template-columns:1fr}
body.single .photo-rail,body.page .photo-rail{position:static;max-height:280px;overflow:auto;border-left:0;border-top:1px solid var(--line);padding:12px 0}
body.single .photo-rail-list,body.page .photo-rail-list{grid-template-columns:repeat(4,minmax(0,1fr))}
body.single .data-list,body.page .data-list{grid-template-columns:120px minmax(0,1fr)}
}
@media (max-width:480px){body.single .photo-rail-list,body.page .photo-rail-list{grid-template-columns:repeat(3,minmax(0,1fr))}
body.single .page-shell,body.page .page-shell{padding-inline:16px}
}
body.single .description-title,body.page .description-title{font-size:1.2rem;font-weight:600;margin:2px 0 12px}
body.single .article-top-media,body.page .article-top-media{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:stretch}
body.single .article-map,body.page .article-map,body.single .article-featured,body.page .article-featured{min-width:0;overflow:hidden}
body.single .article-map iframe,body.page .article-map iframe{display:block;width:100%;height:100%;min-height:250px;border:0}
body.single .article-map>div:has(iframe),body.page .article-map>div:has(iframe){height:100%}
body.single .article-map .map-slot,body.page .article-map .map-slot{height:100%;min-height:250px}
body.single .article-featured .featured-image,body.page .article-featured .featured-image{margin:0;height:100%}
body.single .article-featured .featured-image img,body.page .article-featured .featured-image img{display:block;width:100%;height:100%;min-height:250px;max-height:360px;object-fit:cover}
body.single .article-intro,body.page .article-intro{margin:22px 0 12px;overflow-wrap:anywhere}
body.single .article-photos,body.page .article-photos{margin-top:28px}
body.single .article-photos img,body.page .article-photos img{height:auto}
@media (max-width:600px){body.single .article-top-media,body.page .article-top-media{grid-template-columns:1fr}
body.single .article-map iframe,body.page .article-map iframe,body.single .article-map .map-slot,body.page .article-map .map-slot{min-height:220px}
body.single .article-featured .featured-image img,body.page .article-featured .featured-image img{min-height:0;max-height:none;height:auto}
}
body.single .data-panel .data-list,body.page .data-panel .data-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
body.single .data-panel .data-item,body.page .data-panel .data-item{display:grid;grid-template-columns:minmax(100px,42%) minmax(0,1fr);margin:0;min-width:0}
body.single .data-panel .data-item dt,body.page .data-panel .data-item dt,body.single .data-panel .data-item dd,body.page .data-panel .data-item dd{min-width:0;overflow-wrap:anywhere}
body.single .article-map,body.page .article-map{display:flex;flex-direction:column;align-self:start;overflow:visible}
body.single .article-map .visit-date,body.page .article-map .visit-date{margin:8px 0 0;color:var(--muted);font-size:.9rem}
body.single .article-map iframe,body.page .article-map iframe{height:270px;min-height:270px}
body.single .article-map .map-slot,body.page .article-map .map-slot{min-height:270px;height:270px}
body.single .article-map>div:has(iframe),body.page .article-map>div:has(iframe){height:auto;min-height:270px}
@media (max-width:680px){body.single .data-panel .data-list,body.page .data-panel .data-list{grid-template-columns:1fr;gap:0}
body.single .data-panel .data-item,body.page .data-panel .data-item{grid-template-columns:minmax(110px,40%) minmax(0,1fr)}
}
body.single .article-map > div[style*="border"],body.page .article-map > div[style*="border"]{display:block!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin-top:16px!important;}
body.single .article-map > div[style*="border"] iframe,body.page .article-map > div[style*="border"] iframe{display:block;width:100%!important;max-width:100%!important;height:240px!important;min-height:240px!important;}
body.single .article-map .visit-date,body.page .article-map .visit-date{margin-top:10px!important;}
body.single .data-panel .data-list,body.page .data-panel .data-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
body.single .data-panel .data-column,body.page .data-panel .data-column{min-width:0}
body.single .data-panel .data-item,body.page .data-panel .data-item{display:grid;grid-template-columns:minmax(100px,42%) minmax(0,1fr)}
@media (max-width:680px){body.single .data-panel .data-list,body.page .data-panel .data-list{grid-template-columns:1fr}
}
body.single .tjcc-map-embed,body.page .tjcc-map-embed{position:relative;border:2px solid #ff6f00;padding:10px;border-radius:8px;margin-top:20px;width:100%;box-sizing:border-box}
body.single .tjcc-map-label,body.page .tjcc-map-label{position:absolute;top:-16px;left:10px;background:#ff6f00;color:white;padding:1px 10px;font-weight:700;border-radius:4px;font-size:14px}
body.single .tjcc-map-embed iframe,body.page .tjcc-map-embed iframe{display:block;width:100%;max-width:100%;height:200px}
body.single .article-top-media,body.page .article-top-media{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media (max-width:600px){body.single .article-top-media,body.page .article-top-media{grid-template-columns:minmax(0,1fr)}
}

/* requested: title more prominent than region */
.article-card h3{font-size:19px;line-height:1.45;font-weight:700}.article-card .post-region{font-size:14px;font-weight:400;line-height:1.5}.hero-text strong{font-size:clamp(22px,2.5vw,34px)}.hero-text .post-region{font-size:16px;font-weight:400}
.category-list-panel{align-self:stretch}

/* Result navigation only; other styling unchanged. */
.tjcc-results-back{display:inline-block;margin:0 0 22px;font-size:14px;text-decoration:underline;text-underline-offset:3px}

/* v3.2: article-style explanatory pages and optional homepage reading links */
.tjcc-reading-page{width:min(920px,calc(100% - 40px));margin:0 auto;padding:48px 0 70px}
.tjcc-reading-article{max-width:800px;margin:0 auto}
.tjcc-reading-heading{border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:34px}
.tjcc-reading-heading h1{font-size:clamp(25px,3vw,36px);line-height:1.45;margin:0}
.tjcc-reading-content{font-size:16px;line-height:2;overflow-wrap:anywhere}
.tjcc-reading-content p{margin:0 0 1.6em}
.tjcc-reading-content h2{font-size:1.5em;margin:2.3em 0 .9em;line-height:1.5}
.tjcc-reading-content h3{font-size:1.2em;margin:1.9em 0 .7em}
.tjcc-reading-content ul,.tjcc-reading-content ol{padding-left:1.7em;margin-bottom:1.5em}
.tjcc-reading-content table{border-collapse:collapse;max-width:100%;width:100%;display:block;overflow-x:auto;margin:1.6em 0}
.tjcc-reading-content th,.tjcc-reading-content td{border:1px solid var(--line);padding:9px 12px}
.tjcc-reading-content a{text-decoration:underline;text-underline-offset:3px}
.tjcc-reading-content img{height:auto;max-width:100%}
.tjcc-reading-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px}
.tjcc-reading-link{display:block;border:1px solid var(--line);background:#fff;overflow:hidden;min-width:0}
.tjcc-reading-link:hover{border-color:var(--accent)}
.tjcc-reading-link img{width:100%;aspect-ratio:16/9;object-fit:cover}
.tjcc-reading-link span{display:block;padding:13px 15px;font-size:16px;font-weight:600;line-height:1.55}
.tjcc-reading-link.no-photo{background:var(--soft)}
@media(max-width:750px){.tjcc-reading-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.tjcc-reading-grid{grid-template-columns:1fr}.tjcc-reading-page{padding-top:28px}.tjcc-reading-content{font-size:15px}}

/* v3.3: reading posts, four-column grid, two section dividers */
.tjcc-reading-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 20px}
.tjcc-reading-section,.tjcc-list-section{border-top:2px solid var(--line);padding-top:24px;margin-top:34px}
.tjcc-reading-more{text-align:right;margin:18px 0 0}
.tjcc-reading-more a{text-decoration:underline;text-underline-offset:3px}
.tjcc-reading-empty{color:#666;font-size:14px}
@media(max-width:900px){.tjcc-reading-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.tjcc-reading-grid{grid-template-columns:1fr}}

/* v3.4: Meiryo as the first-choice font throughout the public site. */
html body, html body.single, html body.page, html body button, html body input, html body select, html body textarea { font-family: Meiryo, "メイリオ", sans-serif; }

/* v3.6: Compact text-only reading links; cards no longer stretch to row height. */
.tjcc-reading-grid{align-items:start;grid-auto-rows:auto}
.tjcc-reading-link{align-self:start}
.tjcc-reading-link.no-photo{background:#fff;min-height:0;box-shadow:none}
.tjcc-reading-link.no-photo span{padding:14px 16px;line-height:1.55}

/* v3.7: uniform two-line text-only reading cards; no thumbnails. */
.tjcc-reading-grid{align-items:stretch;grid-auto-rows:auto}
.tjcc-reading-grid .tjcc-reading-link{display:flex;align-items:center;align-self:stretch;min-height:0;height:76px;background:#fff;overflow:hidden}
.tjcc-reading-grid .tjcc-reading-link span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;padding:0 16px;line-height:1.55;font-size:16px;font-weight:600}


/* v3.8 — tablet and smartphone responsive layout. Desktop unchanged. */
@media (max-width: 1024px) {
  .wrap{width:calc(100% - 36px)}
  .head-top,.header-pickers,.top-grid,.articles,.category-grid,.tjcc-reading-grid{min-width:0}
  .head-brand{min-width:0}
  .brand,.tagline{overflow-wrap:anywhere}
  .header-pickers{display:flex;flex-wrap:wrap;gap:10px 18px}
  .tjcc-header-dropdown{max-width:100%}
  .tjcc-header-menu{max-width:min(90vw,360px)}
  .top-grid{grid-template-columns:minmax(0,1fr)}
  .side-stack{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
  .articles,.category-grid,.tjcc-reading-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .category-list-panel,.category-tile,.article-card,.tjcc-reading-link{min-width:0}
  body.single .article-layout,body.page .article-layout{grid-template-columns:minmax(0,1fr)}
  body.single .photo-rail,body.page .photo-rail{position:static;max-width:100%}
}
@media (max-width: 600px) {
  html,body{max-width:100%;overflow-x:clip}
  .wrap{width:calc(100% - 28px)}
  .site-head{padding:15px 0}
  .head-top{display:flex;flex-direction:column;align-items:stretch;gap:12px}
  .search-page-link{align-self:flex-start;max-width:100%}
  .header-pickers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tjcc-header-dropdown{min-width:0;width:100%}
  .tjcc-header-dropdown summary{white-space:normal;overflow-wrap:anywhere;line-height:1.5}
  .tjcc-header-menu{min-width:0;max-width:calc(100vw - 28px)}
  main{padding-top:22px}
  .top-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
  .top-grid>section>.hero-card,.top-grid .hero-card img{min-height:280px}
  .side-stack{grid-template-columns:minmax(0,1fr);gap:12px}
  .articles{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
  .article-card h3{font-size:16px}
  .article-card .post-region{font-size:13px}
  .category-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .category-list-panel{width:100%;max-width:100%}
  .category-list-panel select,.category-list-panel button{max-width:100%}
  .tjcc-reading-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  .tjcc-reading-grid .tjcc-reading-link{height:76px}
  .tjcc-reading-section,.tjcc-list-section{margin-top:26px;padding-top:18px}
  body.single .page-shell,body.page .page-shell{padding:22px 14px}
  body.single .article-top-media,body.page .article-top-media{grid-template-columns:minmax(0,1fr)}
  body.single .data-panel .data-list,body.page .data-panel .data-list{grid-template-columns:minmax(0,1fr)}
  body.single .related-grid,body.page .related-grid,
  body.single .archive-grid,body.page .archive-grid{grid-template-columns:minmax(0,1fr)}
  .tjcc-reading-page{width:calc(100% - 28px);padding-top:24px}
  .tjcc-reading-content{overflow-wrap:anywhere}
  .tjcc-reading-content iframe{max-width:100%}
}
@media (max-width: 380px) {
  .header-pickers{grid-template-columns:minmax(0,1fr)}
  .articles{grid-template-columns:minmax(0,1fr)}
}

/* v3.9: smartphone related-case cards only; leave main photographs unchanged. */
@media (max-width:600px) {
  body.single .related, body.page .related {
    border-top:2px solid var(--line);
    padding-top:20px;
  }
  body.single .related-grid, body.page .related-grid {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:12px;
  }
  body.single .related-item a, body.page .related-item a {
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
  }
  body.single .related-item img, body.page .related-item img {
    display:block;
    flex:0 0 40%;
    width:40%;
    max-width:40%;
    height:auto;
    aspect-ratio:4/3;
    object-fit:cover;
  }
  body.single .related-item a > div, body.page .related-item a > div {
    flex:1 1 0;
    min-width:0;
    overflow-wrap:anywhere;
  }
}

/* v4.0: compact live Google My Maps preview */
.tjcc-mymap-frame{width:100%;height:220px;overflow:hidden;border:1px solid var(--line);background:var(--soft)}
.tjcc-mymap-frame iframe{display:block;width:100%;height:100%;border:0}
.tjcc-mymap-open{margin:10px 0 0;text-align:right;font-size:14px}
.tjcc-mymap-open a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.tjcc-mymap-frame{height:200px}}

/* v4.1: map at left of four latest cases; matching section heights on desktop */
.tjcc-map-latest-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:stretch;margin-top:35px}
.tjcc-map-latest-row>.block-section{margin-top:0;min-width:0;display:flex;flex-direction:column}
.tjcc-map-latest-row .section-heading{flex:0 0 auto}
.tjcc-map-latest-row .tjcc-mymap-frame{flex:1 1 auto;min-height:360px;height:auto;position:relative;overflow:hidden}
.tjcc-map-latest-row .tjcc-mymap-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.tjcc-map-latest-row .newposts-section .articles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-content:start}
.tjcc-map-latest-row .article-card img,.tjcc-map-latest-row .article-card .fallback{aspect-ratio:4/3;width:100%;object-fit:cover}
.tjcc-map-latest-row .article-card h3{font-size:15px;margin:6px 0 2px;line-height:1.35}
.tjcc-map-latest-row .article-card .post-region{font-size:12px;line-height:1.4;margin-top:2px}
@media(max-width:800px){
 .tjcc-map-latest-row{grid-template-columns:minmax(0,1fr);gap:26px}
 .tjcc-map-latest-row .tjcc-mymap-frame{flex:none;height:340px;min-height:0}
 .tjcc-map-latest-row .newposts-section .articles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .tjcc-map-latest-row .tjcc-mymap-frame{height:280px;min-height:0}
 .tjcc-map-latest-row .newposts-section .articles{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
 .tjcc-map-latest-row .article-card h3{font-size:14px}
}

/* v4.2: one cumulative top-four ranking with thumbnails */
.top-grid .tjcc-popular-stack{display:block;min-height:0;align-self:stretch}
.top-grid .tjcc-popular-card{height:100%;min-height:0}
.tjcc-popular-grid .tjcc-popular-list,.tjcc-popular-card .wpp-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;list-style:none;margin:0;padding:0}
.tjcc-popular-grid .tjcc-popular-item,.tjcc-popular-grid .wpp-list li{min-width:0;border:0;padding:0;margin:0}
.tjcc-popular-grid .tjcc-popular-item a{display:block}
.tjcc-popular-grid .tjcc-popular-item img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;margin:0 0 5px}
.tjcc-popular-grid .tjcc-popular-title{display:block;font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.tjcc-popular-grid .tjcc-popular-views{display:block;font-size:11px;color:var(--muted);margin-top:3px}
/* Crop the Google My Maps embedded header. The map content remains live. */
.tjcc-map-latest-row .tjcc-mymap-frame iframe{top:-76px!important;bottom:auto!important;height:calc(100% + 76px)!important}
@media(max-width:600px){.tjcc-popular-grid .tjcc-popular-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v4.3: distinguish featured newest article from four recent articles */
.top-grid .hero-card .tjcc-hero-badge{position:absolute;z-index:2;top:16px;left:16px;display:inline-block;padding:5px 12px;background:rgba(0,0,0,.70);color:#fff;font-size:15px;font-weight:700;letter-spacing:.04em;line-height:1.5}
@media(max-width:600px){.top-grid .hero-card .tjcc-hero-badge{top:12px;left:12px;font-size:13px;padding:4px 10px}}

/* v4.5: restore v4.3 hero dimensions; six compact latest at right; map + popular below */
@media(min-width:801px){
 .top-grid{grid-template-columns:minmax(0,2.05fr) minmax(275px,.95fr);align-items:stretch}
 .top-grid>section>.hero-card,.top-grid .hero-card img{min-height:530px}
}
.top-grid .tjcc-latest-aside{min-width:0;display:flex;flex-direction:column}
.top-grid .tjcc-latest-aside .section-heading{margin-top:0}
.top-grid .tjcc-latest-six{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px;align-content:start}
.top-grid .tjcc-latest-six .article-card{min-width:0}
.top-grid .tjcc-latest-six .article-card img,.top-grid .tjcc-latest-six .article-card .fallback{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;height:auto}
.top-grid .tjcc-latest-six .article-card h3{font-size:12px;line-height:1.35;margin:4px 0 1px}
.top-grid .tjcc-latest-six .article-card .post-region{font-size:11px;margin-top:2px}
.tjcc-map-latest-row .tjcc-popular-section{min-width:0;display:flex;flex-direction:column}
.tjcc-map-latest-row .tjcc-popular-grid{flex:1 1 auto}
.tjcc-map-latest-row .tjcc-popular-grid .tjcc-popular-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(max-width:800px){.top-grid{grid-template-columns:minmax(0,1fr)}.top-grid .tjcc-latest-six{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v4.6: curated reading articles and optional district name */
.tjcc-summary-cases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;margin-top:28px}
.tjcc-summary-case{display:flex;align-items:center;gap:13px;min-width:0;border-bottom:1px solid var(--line);padding:0 0 14px}
.tjcc-summary-thumb{display:block;flex:0 0 112px;width:112px;aspect-ratio:4/3;overflow:hidden;background:var(--soft)}
.tjcc-summary-thumb img{width:100%;height:100%;object-fit:cover}
.tjcc-summary-detail{display:flex;flex-direction:column;min-width:0;gap:5px}
.tjcc-summary-detail strong{font-size:15px;line-height:1.45}
.tjcc-summary-detail small{font-size:12px;color:var(--muted)}
.tjcc-footer-about{margin:0 0 8px}
@media(max-width:600px){.tjcc-summary-cases{grid-template-columns:1fr}.tjcc-summary-thumb{flex-basis:100px;width:100px}}

/* v4.8: Explain the advanced case search without changing other page layouts. */
.tjcc-search-promo{display:flex;flex-direction:column;align-items:flex-end;gap:6px;max-width:410px;min-width:0}
.tjcc-search-promo-desc{margin:0;color:var(--muted);font-size:12px;line-height:1.5;text-align:right}
.tjcc-search-promo .search-page-link{white-space:normal;text-align:center;font-size:14px}
@media(max-width:600px){.tjcc-search-promo{align-items:stretch;max-width:100%;width:100%}.tjcc-search-promo-desc{text-align:left}.tjcc-search-promo .search-page-link{width:100%}}

/* v4.9: prevent awkward header wrapping on laptop widths */
@media(min-width:901px){
 .site-head .head-top{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:26px;align-items:start}
 .site-head .head-brand{min-width:0}
 .site-head .tagline{font-size:clamp(15px,1.2vw,18px);line-height:1.5;overflow-wrap:normal;word-break:normal}
 .site-head .tjcc-search-promo{width:310px;max-width:100%;align-items:stretch}
 .site-head .tjcc-search-promo-desc{text-align:center;white-space:nowrap;font-size:12px}
 .site-head .tjcc-search-promo .search-page-link{width:100%;font-size:13px;white-space:nowrap;padding:9px 10px}
}
@media(min-width:601px) and (max-width:900px){
 .site-head .head-top{display:flex;flex-direction:column;align-items:stretch;gap:12px}
 .site-head .tjcc-search-promo{max-width:none;align-items:flex-start}
 .site-head .tjcc-search-promo-desc{text-align:left}
 .site-head .tagline{overflow-wrap:normal;word-break:normal}
}
@media(max-width:600px){
 .site-head .tjcc-search-promo-desc{white-space:normal}
 .site-head .tagline{overflow-wrap:normal;word-break:normal}
}

/* v5.1: region and region2 before cumulative views on popular cards */
.tjcc-popular-location{font-size:inherit}.tjcc-popular-separator{white-space:pre}

/* v5.2: requested case/search typography and larger summary thumbnails */
body.single .article-heading h1{color:#19c1ab}
body.single .article-heading .description-title{margin-bottom:3px}
body.single .article-heading .article-meta{margin-top:0}
body.single .article-heading .article-meta .tjcc-region{font-size:1.2rem !important;line-height:1.45}
body.archive .section-heading,body.search .section-heading{color:#19c1ab}
body.archive .article-card h3,body.search .article-card h3,
body.archive .article-card h3 a,body.search .article-card h3 a{color:#111}
.tjcc-summary-cases{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.tjcc-summary-case{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:0 0 18px}
.tjcc-summary-thumb{display:block;flex:none;width:100%;aspect-ratio:4/3}
.tjcc-summary-detail{display:flex;flex-direction:column;gap:4px}
.tjcc-summary-detail strong{font-size:16px}
@media(max-width:600px){.tjcc-summary-cases{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tjcc-summary-thumb{width:100%;flex:none}.tjcc-summary-detail strong{font-size:14px}}


/* v5.3: consistent turquoise accent; black content and search headings */
:root, body.single, body.page, body.archive, body.search { --accent:#19c1ab; }
.site-head .brand, .site-head .brand:visited { color:#19c1ab; }
body.single .article-heading h1, body.single .entry-title, body.search .section-heading, body.archive .section-heading { color:#111; }
body.search .article-card h3, body.archive .article-card h3,
body.search .article-card h3 a, body.archive .article-card h3 a { color:#111; }
.tjcc-header-dropdown summary:hover, .tjcc-header-dropdown summary:focus-visible,
.tjcc-header-menu a:hover, .tjcc-header-menu a:focus-visible { color:#19c1ab; }
.tjcc-header-dropdown summary:focus-visible { outline-color:#19c1ab; }

/* v5.4: dropdown labels and states use black, with neutral hover background */
.tjcc-header-dropdown summary,
.tjcc-header-dropdown summary:hover,
.tjcc-header-dropdown summary:focus-visible,
.tjcc-header-dropdown[open] summary,
.tjcc-header-menu a,
.tjcc-header-menu a:hover,
.tjcc-header-menu a:focus-visible,
.category-dropdown summary,
.category-dropdown summary:hover,
.category-dropdown summary:focus-visible,
.category-dropdown-items a,
.category-dropdown-items a:hover,
.tjcc-term-select,
.tjcc-term-select:hover,
.tjcc-term-select:focus,
.tjcc-filter-form select,
.tjcc-filter-form select:hover,
.tjcc-filter-form select:focus,
.tjcc-header-form select,
.tjcc-header-form select:hover,
.tjcc-header-form select:focus,
.region-filter select,
.region-filter select:hover,
.region-filter select:focus {color:#111 !important;}
.tjcc-header-menu a:hover,.tjcc-header-menu a:focus-visible,
.category-dropdown-items a:hover {background:#f3f3f3 !important;}
.tjcc-header-dropdown summary:focus-visible,
.category-dropdown summary:focus-visible,
.tjcc-term-select:focus-visible,
.tjcc-filter-form select:focus-visible,
.tjcc-header-form select:focus-visible {outline-color:#777 !important;}
.tjcc-term-select option,.tjcc-filter-form select option,.tjcc-header-form select option,.region-filter select option {color:#111;background:#fff;}

/* v5.5: align the single-case site title with the case heading; black search CTA. */
body.single .site-head > .wrap {
  width:100%; max-width:1320px; padding-left:16px; padding-right:16px; margin-left:auto; margin-right:auto;
}
body.single .site-head .search-page-link,
body.single .site-head .search-page-link:visited,
body.single .site-head .search-page-link:hover,
body.single .site-head .search-page-link:focus-visible,
.site-head .tjcc-search-promo .search-page-link,
.site-head .tjcc-search-promo .search-page-link:visited,
.site-head .tjcc-search-promo .search-page-link:hover,
.site-head .tjcc-search-promo .search-page-link:focus-visible {color:#111 !important;}
@media(max-width:600px){body.single .site-head > .wrap{padding-left:14px;padding-right:14px;}}

/* v5.6: Related case titles and combined location */
body.single .related-item .tjcc-related-title{color:#000!important;}
body.single .related-item .tjcc-related-location{color:#666;font-size:13px;line-height:1.5;margin-top:3px;}
