:root { --text-color: #111; --background-color: #fff; --separator-color: #e2e2e2; }
body { background: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid #111; outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; background: #111; color: #fff; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.header { background: #fff; border-bottom: 1px solid #e2e2e2; z-index: 5; }
.header__logo, .snsicon { filter: brightness(0); }
.navigation__link { color: #111; font-size: .85rem; }
.navigation__link:hover { text-decoration: underline; text-underline-offset: 6px; }
.hamburger { margin-right: 16px; }
.hamburger__line { background: #111; }
.header__navigation { background: #fff; }
@media (max-width: 699px) { .header__navigation { visibility: hidden; } .header__navigation.is-open { visibility: visible; border-bottom: 1px solid #ddd; } }
.exhibition { width: min(1120px, 88%); margin: auto; }
.hero { padding: 42px 0 0; }
.hero-top, .hero-bottom { display: flex; justify-content: space-between; gap: 20px; }
.eyebrow { font-family: Arial, sans-serif; font-size: .68rem; font-weight: 600; letter-spacing: .16em; color: #666; }
.edition { font-family: Georgia, serif; font-size: 1.1rem; }
.hero-event { margin-top: 70px; font-size: 1.15rem; letter-spacing: .14em; }
.hero h1 { margin-top: 18px; font-size: clamp(2.4rem, 6.3vw, 5.3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.25; }
.hero h1 span { display: block; font-size: .72em; letter-spacing: .025em; margin-top: 12px; }
.hero-photo { margin-top: 28px; width: 100%; max-width: 720px; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 65%; }
.hero-photo figcaption { margin-top: 10px; color: #666; font-size: .7rem; letter-spacing: .04em; }
.hero-intro { margin: 32px 0 28px; font-size: .95rem; line-height: 2.1; color: #555; }
.text-link { display: inline-flex; align-items: center; gap: 28px; text-decoration: none; font-size: .82rem; border-bottom: 1px solid #aaa; padding-bottom: 5px; }
.text-link:hover { border-color: #111; }
.hero-bottom { margin-top: 74px; padding: 20px 0; border-bottom: 1px solid #111; color: #666; font-size: .72rem; }
.section { padding: 64px 0; border-bottom: 1px solid #ddd; scroll-margin-top: 20px; }
.section-heading h2 { border: 0; width: auto; text-align: left; padding: 0; margin: 10px 0 0; font-size: 1.8rem; font-weight: 500; letter-spacing: .06em; }
.section-heading > p:last-child:not(.eyebrow) { margin-top: 16px; color: #666; font-size: .85rem; }
.information-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 32px; }
.information-grid > div + div { border-left: 1px solid #ddd; padding-left: 40px; }
dl { margin: 18px 0; }
dl > div { display: grid; grid-template-columns: 80px 1fr; gap: 16px; margin-top: 12px; }
dt { color: #666; font-size: .8rem; }
dd { font-size: .93rem; }
.information-note { color: #666; font-size: .75rem; margin-top: 28px; }
.venue-map { margin-top: 32px; }
.venue-map iframe { display: block; width: 100%; height: clamp(260px, 32vw, 360px); border: 1px solid #ddd; background: #f5f5f5; }
.venue-map p { margin-top: 10px; color: #666; font-size: .75rem; }
.venue-map .venue-map-title { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; }
.venue-map-title strong { color: #111; font-size: 1rem; font-weight: 600; }
.sample-notice { margin-top: 26px; padding: 14px 18px; background: #f6f6f6; border-left: 2px solid #aaa; font-size: .78rem; color: #555; line-height: 1.9; }
.poster-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 32px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 1px solid #ddd; padding: 8px 20px; font-size: .8rem; cursor: pointer; border-radius: 2px; background: #fff; transition: background .15s, color .15s; }
.filter:hover { background: #eee; }
.filter[aria-pressed="true"] { background: #111; color: #fff; border-color: #111; }
.poster-count { font-size: .75rem; color: #666; white-space: nowrap; }
.poster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.poster-card { display: flex; flex-direction: column; border: 1px solid #e2e2e2; text-decoration: none; background: #fff; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; }
.poster-card:hover { transform: translateY(-4px); border-color: #aaa; box-shadow: 0 8px 24px #00000008; }
.poster-preview { display: block; padding: 24px 35px; background: #f5f5f5; border-bottom: 1px solid #e2e2e2; }
.poster-preview img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; box-shadow: 0 2px 8px #0000000a; }
.poster-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.poster-meta { display: flex; justify-content: space-between; color: #666; font-size: .68rem; letter-spacing: .06em; }
.poster-card h3, .poster-title { font-size: 1.08rem; font-weight: 600; line-height: 1.65; padding: 0; margin: 12px 0; }
.poster-description { font-size: .8rem; color: #555; line-height: 1.95; }
.poster-link { display: flex; justify-content: space-between; margin-top: auto; padding-top: 26px; font-size: .8rem; }
.pdf-note { color: #666; font-size: .65rem; }
.posters { padding-bottom: 88px; border-bottom: none; }
.footer { background: #fafafa; border-top: 1px solid #ddd; height: auto; padding: 38px 6%; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-family: Georgia, serif; font-size: 1.35rem; text-decoration: none; }
.footer-site { font-size: .75rem; text-underline-offset: 4px; }
.footer__snslist, .footer__copyright { position: static; transform: none; }
.footer__snslist { margin-left: auto; }
.snslist__item { width: 20px; height: 20px; }
.footer__copyright { color: #666; font-size: .7rem; }
@media (max-width: 1000px) { .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .information-grid { gap: 28px; } .information-grid > div + div { padding-left: 28px; } }
@media (max-width: 600px) {
 .hero { padding-top: 28px; } .hero-event { margin-top: 52px; } .eyebrow { font-size: .6rem; } .hero h1 { font-size: clamp(2rem, 9vw, 3.4rem); } .hero-intro { font-size: .82rem; }
 .hero-bottom { flex-direction: column; gap: 6px; margin-top: 48px; }
 .hero-photo { margin-top: 24px; }
 .hero-photo img { aspect-ratio: 16 / 9; }
 .section { padding: 44px 0; } .section-heading h2 { font-size: 1.5rem; }
 .information-grid { grid-template-columns: 1fr; gap: 28px; } .information-grid > div + div { padding: 24px 0 0; border-left: 0; border-top: 1px solid #ddd; }
 .poster-toolbar { align-items: start; flex-direction: column; gap: 14px; margin: 24px 0; } .filter { padding: 7px 14px; } .poster-grid { grid-template-columns: 1fr; gap: 24px; }
 .poster-preview { display: block; padding: 26px 48px; } .footer { gap: 18px; } .footer__copyright { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } .poster-card:hover { transform: none; } }

/* 複数枚の展示も、ひとつのカードにまとめます。 */
.poster-main { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.poster-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 20px; border-top: 1px solid #e2e2e2; }
.poster-pages-label { width: 100%; font-size: .65rem; color: #666; margin-bottom: 3px; }
.poster-page { background: #fff; border: 1px solid #ddd; padding: 7px 12px; font-size: .72rem; cursor: pointer; border-radius: 2px; }
.poster-page:hover { background: #eee; }
.poster-page[aria-pressed="true"] { color: #fff; background: #111; border-color: #111; }

.poster-guide { margin-top: 28px; padding: 22px 24px; border: 1px solid #e2e2e2; }
.poster-guide h3 { margin: 0; padding: 0; font-size: .9rem; font-weight: 600; }
.poster-guide > p { margin-top: 8px; color: #666; font-size: .78rem; }
.poster-guide-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; list-style: none; }
.poster-guide-levels li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .8rem; }
.poster-guide-stars { min-width: 3.5em; letter-spacing: .1em; }
@media (max-width: 600px) { .poster-guide { padding: 20px; } .poster-guide-levels { grid-template-columns: 1fr; gap: 12px; } }

/* PDFプレビュー */
button.poster-main { width: 100%; text-align: left; font: inherit; background: #fff; cursor: pointer; border: 0; }
.pdf-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: .75rem; }
.pdf-actions a { text-underline-offset: 4px; padding: 5px 0; }
.pdf-actions .download-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border: 1px solid #111; border-radius: 3px; background: #111; color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
@media (hover: hover) { .download-button:hover { transform: translateY(-3px); background: #292929; box-shadow: 0 6px 14px #0002; } }
.download-button:focus-visible { outline: 2px solid #111; outline-offset: 4px; box-shadow: 0 4px 12px #0002; }
.download-button:active { transform: translateY(0); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .download-button:hover, .download-button:active { transform: none; } }
.poster-file-actions { padding: 12px 24px; border-top: 1px solid #e2e2e2; }
body.preview-open { overflow: hidden; }
.pdf-dialog { position: fixed; inset: 0; margin: auto; width: min(1200px, 94vw); height: 92dvh; max-width: 94vw; max-height: 92dvh; padding: 0; border: 1px solid #ddd; background: #fff; color: #111; }
.pdf-dialog[open] { display: flex; flex-direction: column; }
.pdf-dialog::backdrop { background: #0009; }
.pdf-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; border-bottom: 1px solid #ddd; }
.pdf-dialog-header h2 { border: 0; text-align: left; margin: 0; padding: 0; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.pdf-close { flex-shrink: 0; padding: 8px 12px; border: 1px solid #ddd; font-size: .8rem; cursor: pointer; }
.pdf-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 24px; }
.pdf-status { padding: 0 24px 12px; color: #666; font-size: .75rem; }
.pdf-viewer-pages { position: relative; flex: 1; min-height: 0; overflow: auto; background: #eee; padding: 16px 20px 28px; overscroll-behavior: contain; }
.pdf-rendered-page { margin: 0 auto 20px; max-width: 1100px; }
.pdf-rendered-page canvas { display: block; width: 100%; height: auto; background: white; box-shadow: 0 2px 10px #0001; }
.pdf-page-number { color: #666; font-size: .7rem; margin-bottom: 8px; }
@media (max-width: 600px) {
 .pdf-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; }
 .pdf-dialog-header, .pdf-dialog-toolbar { padding: 12px 16px; }
 .pdf-status { padding: 0 16px 12px; }
 .pdf-dialog-header h2 { font-size: .9rem; }
 .pdf-dialog .filter { padding: 6px 12px; }
}

/* 分野と星を組み合わせて探せます。 */
.poster-controls { margin-top: 32px; display: grid; gap: 16px; }
.poster-filter-row { display: flex; align-items: center; gap: 20px; }
.poster-control-label { flex-shrink: 0; width: 6em; color: #666; font-size: .75rem; }
.poster-controls + .poster-toolbar { margin-top: 22px; }
.poster-sort-label { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .75rem; color: #666; }
#poster-sort { border: 1px solid #ddd; padding: 8px 12px; background: #fff; color: #111; font: inherit; cursor: pointer; max-width: 100%; }
.poster-level { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: #666; font-size: .67rem; }
.poster-stars { color: #111; letter-spacing: .1em; font-size: .8rem; }
@media (max-width: 600px) {
 .poster-filter-row { align-items: start; flex-direction: column; gap: 8px; }
 .poster-controls { gap: 18px; }
 .poster-count { white-space: normal; }
}

/* 活動写真のスライドショー。写真の表示枠は最大720pxのままです。 */
.hero-slideshow-viewport { overflow: hidden; background: #f4f4f4; }
.hero-slideshow-track { display: flex; transition: transform .65s ease; }
.hero-slide { flex: 0 0 100%; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .hero-slideshow-track { transition: none; } }

/* 公開前はPDFへの操作を持たない概要カードです。 */
.publication-notice { margin-bottom: 24px; color: #666; font-size: .8rem; }
.poster-card-unpublished:hover { transform: none; box-shadow: none; border-color: #e2e2e2; }
.poster-card-unpublished .poster-main { height: 100%; }
.poster-card-unpublished .poster-body { padding: 28px; }
.poster-card-unpublished .poster-description { display: block; }
