/* Static route anchors retain the prototype's filter and pagination treatment. */
.archive-categories a{display:inline-flex;align-items:center;border:0;border-right:1px solid var(--shell-rule);border-bottom:1px solid var(--shell-rule);padding:14px 19px;font-size:11px;background:var(--panel-solid);color:var(--shell-ink);text-decoration:none}
.archive-categories a[aria-current]{background:var(--blue);color:#fff}
.archive-categories a:hover{box-shadow:inset 0 -2px var(--page-accent)}
.filter-bar a{border:0;border-right:1px solid var(--shell-rule);border-bottom:1px solid var(--shell-rule);background:var(--shell-bg);color:var(--shell-ink);padding:18px 24px;font:12px var(--mono);text-decoration:none}
.filter-bar a[aria-current],.filter-bar a:hover{background:var(--shell-ink);color:var(--shell-bg)}
.archive-pagination a{display:grid;place-items:center;background:var(--panel-solid);color:var(--shell-ink);border:1px solid var(--shell-rule);margin-left:-1px;min-width:48px;min-height:48px;font:12px var(--mono);text-decoration:none}
.archive-pagination a[aria-current=page]{background:var(--shell-ink);color:var(--shell-bg)}
@media(max-width:700px){.archive-categories a{padding:12px 10px;font-size:10px}.archive-pagination a{min-width:38px;min-height:44px;font-size:11px}}
.product-main>img{max-width:160px;height:auto;object-fit:contain}
.prose iframe,.article-body iframe{max-width:100%}
.article-body img{max-width:100%;height:auto}
/* Static category links need the prototype's phone rule for buttons (journal.css), or the tabs squeeze to one character per line. */
@media(max-width:767px){.archive-categories a{flex:none;white-space:nowrap;min-height:44px}}
/* WP section titles put an English label and a Japanese <small> in one heading; keep them on separate lines. */
.article-body .is-style-section_ttl small.mininote{display:block;margin-top:.35em}
/* Converted Pochipp boxes: the review icon and the 1px impression pixel get framed like photos; hide them and keep the product photo small. */
.product-buttons .image-frame,.product-buttons img{display:none}
.product-main>a{display:block;max-width:145px}
.product-main>a .image-frame{aspect-ratio:1/1;background:transparent}
.product-main>a img{object-fit:contain}
/* Converted boxes carry 3–5 shop links; draw the grid lines between rows too. */
.product-buttons a:nth-child(n+3){border-top:1px solid var(--shell-rule)}
.product-buttons a:nth-child(odd){border-left:0}
.product-buttons a:last-child:nth-child(odd){grid-column:1/-1}

/* Important layered rules outrank the prototype's unlayered important filters. */
@layer durer-eyecatch{
:root body :is(img[src*="/assets/assets/eyecatch/"],img[src*="/assets/company/okada-portrait"]){filter:grayscale(1)!important;transition:filter .45s ease!important}
@media (hover:hover) and (pointer:fine){
 :root body :is(a,article,figure,#entity-card):hover :is(img[src*="/assets/assets/eyecatch/"],img[src*="/assets/company/okada-portrait"]){filter:grayscale(0)!important}
}
:root body a:focus-visible :is(img[src*="/assets/assets/eyecatch/"],img[src*="/assets/company/okada-portrait"]),
:root body :is(#entity-card,.feature-card,article,.work-item):has(a:focus-visible) :is(img[src*="/assets/assets/eyecatch/"],img[src*="/assets/company/okada-portrait"]){filter:grayscale(0)!important}
@media (hover:none){
 :root body :is(img[src*="/assets/assets/eyecatch/"],img[src*="/assets/company/okada-portrait"])[data-color="on"]{filter:grayscale(0)!important}
}
@media (prefers-reduced-motion:reduce){
 :root body :is(img[src*="/assets/assets/eyecatch/"],img[src*="/assets/company/okada-portrait"]){transition-duration:0s!important}
}
}
:root body :is(.article-cover,.case-cover,.representative-portrait) .eyecatch-credit{margin:14px 0 0;font-size:9px;line-height:1.6;color:var(--shell-muted);font-weight:400}

/* Keep the representative portrait and its lazy image frame at the full 4:5 ratio. */
.representative-portrait{margin:0 0 24px}
.representative-portrait img{display:block;width:100%;height:auto}
/* The inserted figure shifts child positions; the labels remain the first two paragraphs. */
.representative-id>p:first-of-type{font:var(--type-label)/1.8 var(--mono);color:var(--shell-muted);margin:0 0 12px}
.representative-id>p:nth-of-type(2){font:700 28px/1.6 var(--heading-ja);color:inherit;margin:0 0 24px}
/* Align the portrait and copy columns to the guide lines: the profile spans the full guide columns of the article area
   (cancelling --about-inset), so equal fr tracks land on the lines. PC: 9 columns = portrait 3 + copy 6. SP (guides are 4 columns below 768px): portrait 3. */
.page-about .representative-profile{margin-inline:calc(-1 * var(--about-inset))}
.page-about .representative-portrait{margin:0 0 24px}
.page-about .representative-id{padding-inline:var(--about-inset)}
.page-about .representative-copy{padding-inline:var(--about-inset)}
@media(min-width:768px){
 .page-about .representative-profile{grid-template-columns:minmax(0,3fr) minmax(0,6fr)}
 .page-about .representative-id{min-width:0;padding-block:0 28px;border-right:1px solid var(--shell-rule);border-bottom:0}
 .page-about .representative-portrait{margin-inline:calc(-1 * var(--about-inset))}
 .page-about .representative-facts{display:block}
 .page-about .representative-copy{padding-block:28px 6px}
}
@media(max-width:767px){
 .page-about .representative-id{padding-top:0}
 .page-about .representative-portrait{width:calc((100% + 2 * var(--about-inset)) * 3 / 4);margin-left:calc(-1 * var(--about-inset))}
}
.page-about .representative-portrait figcaption{padding-inline:var(--about-inset)}
