/* Colophon: the shared page end for the list roughs and the mist pages (top, contact, privacy).
   Split out of mist-common.css so pages built from bundles can load it on its own. */
/* Colophon (list roughs): the end of the page as one piece instead of a photo band stacked on a footer. The background
   photo's record (when, where, an icon-sized square that opens the photo) and the way on (top, profile, contact, policy)
   sit on the photo without a plate. mist's short rule marks its start; the logo with "トップへ" is one link home.
   Edges follow the page container; on desktop the record column starts on the content's second column line (set by script). */
body footer.colophon{position:relative;margin:56px 0 0;width:auto;box-sizing:border-box;padding-left:calc((100% - var(--colo-w,100%)) / 2);padding-right:calc((100% - var(--colo-w,100%)) / 2);color:#e9ede2;text-shadow:0 1px 5px #0c1110e0;font-size:13px;line-height:1.8;letter-spacing:.05em}
.colophon a{color:inherit;text-decoration:none}
/* No plate: the landscape itself darkens towards the page end (as mist's footer already does on phones), full-bleed and
   fading in from above, so the colophon stays readable over bright sky without a box behind it. */
body footer.colophon{isolation:isolate}
body footer.colophon::before{content:"";position:absolute;z-index:-1;top:-72px;bottom:0;left:0;right:0;pointer-events:none;background:linear-gradient(180deg,rgb(13 28 23 / 0),rgb(13 28 23 / .62) 72px,rgb(13 28 23 / .74) 55%,rgb(13 28 23 / .82))}

.colophon .rule{position:absolute;top:-1px;left:calc((100% - var(--colo-w,100%)) / 2);width:38px;border-top:1px solid #e9ede2cc}
.colophon .arr{margin-left:8px;color:var(--moss-on-band, #d9e7b0)}
.colophon .home{display:flex;flex-direction:column;justify-content:space-between;gap:12px;width:max-content}
.colophon .home .mark{display:block;width:104px;height:auto;opacity:.95}
.colophon .home .to,.colophon nav a,.colophon .rec .photo{font-size:14px;line-height:25px}
.colophon .home:hover .to,.colophon nav a:hover span:first-child{text-decoration:underline;text-underline-offset:.3em;text-decoration-thickness:1px}
.colophon .rec{display:flex;align-items:flex-start;gap:16px;font-size:12px;line-height:1.8}
.colophon .rec .info{display:flex;flex-direction:column;min-width:0}
.colophon .rec .l1{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.colophon .rec .lab{color:#c9cfbe}
.colophon .rec time{font:12px var(--sans, ui-monospace, Consolas, monospace);letter-spacing:.12em}
.colophon .rec .photo{align-self:flex-start;text-decoration:underline;text-underline-offset:.35em;text-decoration-thickness:1px;text-decoration-color:#e9ede280}
.colophon .thumb{width:72px;height:72px;max-width:72px;max-height:72px;flex:none;display:block;overflow:hidden;border-radius:3px;box-shadow:0 0 0 1px #e9ede233,0 6px 16px #0007;cursor:zoom-in}
.colophon .thumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 30%;transition:transform .4s}
.colophon .thumb:hover img{transform:scale(1.04)}
.colophon nav{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}
.colophon nav a{display:flex;justify-content:space-between;align-items:center}
.colophon .copy{font:11px var(--mincho, Georgia, serif);letter-spacing:.08em;color:#d5dbcb}
.colophon a:focus-visible{outline:2px solid #d2d9c4;outline-offset:4px}
@media(min-width:761px){
body footer.colophon{display:grid;grid-template-columns:var(--colo-c1,minmax(0,1fr)) minmax(0,1fr) auto;column-gap:var(--colo-gap,56px);align-items:stretch;padding-top:34px;padding-bottom:14px}
body footer.colophon::after{content:"";position:absolute;top:0;left:calc((100% - var(--colo-w,100%)) / 2);right:calc((100% - var(--colo-w,100%)) / 2);border-top:1px solid #c0c7b44a;pointer-events:none}
.colophon .head{display:flex}
.colophon .head .home{height:100%}
.colophon .home .mark{margin-top:2px}
.colophon .rec .info{align-self:stretch}
.colophon .rec .photo{margin-top:auto}
.colophon.no-rec nav{grid-column:3}
.colophon .copy{grid-column:1/-1;text-align:right;margin-top:26px}
}
@media(max-width:760px){
body footer.colophon{padding-top:28px;padding-bottom:30px}
.colophon .head{padding-top:14px}
.colophon .rec{margin-top:22px;padding:12px 0;border-top:1px solid #c0c7b44a;border-bottom:1px solid #c0c7b44a}
.colophon .rec .photo{margin-top:2px;font-size:13px;line-height:1.8}
.colophon.no-rec nav{margin-top:22px;border-top:1px solid #c0c7b44a}
.colophon nav{align-items:stretch}
.colophon nav a{min-height:44px;border-bottom:1px solid #c0c7b44a}
.colophon .copy{display:block;margin-top:16px}
}
/* Photo viewer opened from the colophon (and any [data-view] control). */
.photo-viewer{position:fixed;inset:0;z-index:60;display:grid;place-items:center;background:#0b1210f2;padding:24px}
.photo-viewer[hidden]{display:none}
.photo-viewer figure{margin:0;max-width:min(1400px,100%);display:flex;flex-direction:column;gap:10px}
.photo-viewer img{display:block;max-width:100%;max-height:calc(100vh - 110px);object-fit:contain;border-radius:3px}
.photo-viewer figcaption{display:flex;flex-wrap:wrap;gap:4px 14px;color:#e9ede2;font-size:12px;line-height:1.7}
.photo-viewer figcaption time{font:12px var(--sans, ui-monospace, Consolas, monospace);letter-spacing:.12em}
.photo-viewer .close{position:absolute;top:12px;right:14px;min-width:44px;min-height:44px;background:none;border:0;color:var(--on-band, #eef0e6);font:inherit;font-size:13px;letter-spacing:.06em;cursor:pointer}
.photo-viewer .close:focus-visible{outline:2px solid #d2d9c4;outline-offset:2px}
html.viewer-open{overflow:hidden}

/* Colophon: the category pages as a second column of links beside the site links, built exactly like them
   (vertical, right-aligned, 14px, ↗). The page you are on is bold, not a link. On phones the same full-width rows,
   categories first, then the site links. */
.colophon nav.cats{display:block;margin:0}
.colophon .cats ul{margin:0;padding:0;list-style:none}
.colophon nav.cats a,.colophon .cats .here{display:flex;align-items:center;color:inherit;text-decoration:none;font-size:14px;line-height:25px}
.colophon .cats .here{font-weight:700}
.colophon .cats .arr{margin-left:8px;color:var(--moss-on-band, #d9e7b0)}
@media(min-width:761px){
body footer.colophon{grid-template-columns:var(--colo-c1,minmax(0,1fr)) minmax(0,1fr) auto auto}
.colophon nav.cats{grid-column:3;grid-row:1}
.colophon nav.cats a,.colophon .cats .here{justify-content:flex-end}
.colophon .cats li+li{margin-top:0}
footer.colophon > nav:not(.cats){grid-column:4;grid-row:1;padding-left:40px;border-left:1px solid #c0c7b44a}
.colophon .head{grid-row:1}.colophon .rec{grid-row:1}
.colophon .rec .photo{margin-top:auto}
}
@media(max-width:760px){
.colophon nav.cats{margin-top:22px;border-top:1px solid #c0c7b44a}
.colophon nav.cats a,.colophon .cats .here{justify-content:space-between;min-height:44px;border-bottom:1px solid #c0c7b44a}
footer.colophon > nav:not(.cats){margin-top:22px;border-top:1px solid #c0c7b44a}
}
/* With five category rows the footer row is taller than the other groups: everything sits on the top line at the same
   25px rhythm instead of stretching (no gaps opening up inside the site links, record or home). */
@media(min-width:761px){
body footer.colophon{align-items:start}
footer.colophon > nav:not(.cats){justify-content:flex-start;align-self:stretch}
.colophon .head .home{height:auto;justify-content:flex-start}
.colophon .rec,.colophon .rec .info{align-self:start}
.colophon .rec .photo{margin-top:0}
}
/* Tablet widths (761–1100px): four columns get too narrow, so the two link columns move under home and the record. */
@media(min-width:761px) and (max-width:1180px){
body footer.colophon{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.colophon nav.cats{grid-column:1;grid-row:2;margin-top:22px}
.colophon nav.cats a,.colophon .cats .here{justify-content:flex-start}
footer.colophon > nav:not(.cats){grid-column:2;grid-row:2;margin-top:22px;padding-left:24px;align-items:flex-start}
}
/* The current page has no arrow; an invisible one keeps its name on the same right edge as the other names. */
.colophon .cats .here::after{content:"↗";margin-left:8px;visibility:hidden}
/* Phones: the group above already ends with a rule, so the link groups start without a second one (no double lines). */
@media(max-width:760px){.colophon nav.cats,footer.colophon > nav:not(.cats){border-top:0;margin-top:14px}}
/* Tablet: the site links start on the same line as the record above them (no divider there). */
@media(min-width:761px) and (max-width:1180px){footer.colophon > nav:not(.cats){padding-left:0;border-left:0}}
/* The current page among the site links (contact, privacy) is shown like the current category: bold, not a link. */
footer.colophon > nav:not(.cats) .here{display:flex;align-items:center;font-size:14px;line-height:25px;font-weight:700}
footer.colophon > nav:not(.cats) .here::after{content:"↗";margin-left:8px;visibility:hidden}
@media(min-width:761px){footer.colophon > nav:not(.cats) .here{justify-content:flex-end}}
@media(max-width:760px){footer.colophon > nav:not(.cats) .here{justify-content:space-between;min-height:44px;border-bottom:1px solid #c0c7b44a}}
/* Without a photo record (the mist pages keep theirs in the scene), the link columns keep their place on the right. */
@media(min-width:761px) and (max-width:1180px){.colophon.no-rec nav.cats{grid-column:1}.colophon.no-rec > nav:not(.cats){grid-column:2}}
/* © sits at the right edge on every width (phones too). */
.colophon .copy{text-align:right}
@media(max-width:760px){.colophon .copy{display:block;text-align:right}}
/* One frame for the page end on all eight pages (top, contact, privacy and the five category lists): the same side
   gutters as the header logo (4.5vw on desktop, 22px on phones), whatever the width of the page body above it. */
body footer.colophon{--colo-w:calc(100% - 9vw);margin-bottom:0;padding-bottom:24px}
@media(max-width:760px){body footer.colophon{--colo-w:calc(100% - 44px);margin-bottom:0;padding-bottom:24px}}
/* Card pages (contact, privacy, profile): the card's size comes from the height left above the page end. Since the
   page end became this colophon (2026-10-19), phones and low desktop windows left almost nothing (0-118px cards).
   Keep room for one card at the phone size (min(260px,72vw)); where the screen is short, the colophon goes below.
   2026-10-31, docs/design/card-size-20261030/. */
:is([data-contact-view=card],[data-policy-view=card]) :is(.contact-stage,.policy-stage){min-height:calc(min(260px,72vw) / .5882353 + 36px)}

/* F4: keep the symbol intact and hide the reflected lettering in the small shared logos.
   The original 1200x372 asset stays available for large uses. The 28% step is in the
   gap before the wordmark; the 65% cut follows its baseline. Preserve image boxes. */
header.page-header .brand img,
footer.colophon .home .mark{
  clip-path:polygon(0 0,100% 0,100% 65%,28% 65%,28% 100%,0 100%);
}
