:root { --primary: #007bff; --interactive: #005bb5; --ink: #1d1d1f; --surface: #f5f8fc; --navy: #173d68; }
* { box-sizing: border-box; }
body { background: var(--surface); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; line-height: 1.7; margin: 0; }
button { font: inherit; }
a:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }
.navbar { background: var(--interactive); padding: 10px 0; position: sticky; top: 0; z-index: 1000; }
.navbar .container { align-items: center; display: flex; flex-wrap: wrap; justify-content: space-between; margin: 0 auto; max-width: 1140px; padding: 0 12px; width: 100%; }
.navbar-brand { display: inline-flex; flex: 0 0 auto; padding: 5px 0; }
.navbar-brand img { height: 40px; width: auto; }
.navbar-toggler { align-items: center; background: transparent; border: 1px solid rgba(255, 255, 255, .55); border-radius: 6px; cursor: pointer; display: none; height: 40px; justify-content: center; padding: 8px; width: 48px; }
.navbar-toggler-icon, .navbar-toggler-icon::before, .navbar-toggler-icon::after { background: white; border-radius: 2px; display: block; height: 2px; width: 24px; }
.navbar-toggler-icon { position: relative; }
.navbar-toggler-icon::before, .navbar-toggler-icon::after { content: ''; left: 0; position: absolute; }
.navbar-toggler-icon::before { top: -7px; }
.navbar-toggler-icon::after { top: 7px; }
.navbar-collapse { display: flex; flex-basis: auto; flex-grow: 1; }
.navbar-nav { align-items: center; display: flex; margin-left: auto; text-align: center; }
.nav-link { color: white; display: block; font-size: .88rem; font-weight: 700; margin-left: 14px; padding: 8px 0; text-decoration: none; }
.nav-link:hover { opacity: 1; }
.nav-link[aria-current='page'] { text-decoration: none; }
.detail-shell { margin: 0 auto; max-width: 1180px; min-height: 60vh; padding: clamp(32px, 6vw, 68px) 24px 84px; }
.breadcrumb-nav { color: #567089; font-size: .82rem; margin-bottom: 20px; }
.breadcrumb-nav ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb-nav li:not(:last-child)::after { color: #9aabba; content: '/'; margin-left: 8px; }
.breadcrumb-nav a, .back { color: var(--interactive); font-weight: 900; text-decoration: none; }
.back { display: inline-flex; font-size: .86rem; gap: 8px; margin-top: 22px; }
.detail-card { background: white; border-radius: 22px; box-shadow: 0 16px 44px rgba(17, 54, 88, .12); overflow: hidden; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .95fr); }
.detail-flyer { align-items: center; background: #e9f1f8; display: flex; justify-content: center; margin: 0; min-height: 100%; padding: clamp(22px, 4vw, 48px); }
.detail-flyer img { box-shadow: 0 15px 32px rgba(16, 42, 70, .22); display: block; height: auto; max-height: 760px; max-width: 100%; object-fit: contain; }
.detail-body { align-self: center; padding: clamp(28px, 5vw, 58px); }
.eyebrow { color: #146dc0; font-size: .76rem; font-weight: 900; letter-spacing: .18em; margin: 0 0 12px; }
.detail-tag-row { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.detail-tag, .detail-plan, .detail-role { border-radius: 999px; display: inline-block; font-size: .72rem; font-weight: 900; letter-spacing: .05em; padding: 5px 10px; }
.detail-tag { background: #e8f3ff; color: #0069d9; }
.detail-plan { background: #e9f8ef; border: 1px solid #99d5af; color: #176b39; }
.detail-role--operation { background: #0c75dc; color: white; }
.detail-role--support { border: 1px solid #315ca8; color: #315ca8; }
.detail-title { font-size: clamp(2rem, 3vw, 3.15rem); font-weight: 900; letter-spacing: .02em; line-height: 1.3; margin: 20px 0; overflow-wrap: anywhere; }
.detail-title--medium { font-size: clamp(1.72rem, 2.55vw, 2.65rem); line-height: 1.38; }
.detail-title--long { font-size: clamp(1.42rem, 2vw, 2rem); letter-spacing: 0; line-height: 1.46; }
.work-summary { color: #425466; font-size: 1rem; margin: 0; }
.artist { color: var(--navy); font-size: 1.06rem; font-weight: 900; margin: 24px 0 0; }
.role-assignments { border-top: 1px solid #dce6ef; display: grid; gap: 14px; margin-top: 26px; padding-top: 22px; }
.role-assignment { border-left: 3px solid #0c75dc; padding-left: 14px; }
.role-assignment--support { border-left-color: #315ca8; }
.role-assignment h2 { font-size: .85rem; font-weight: 900; letter-spacing: .06em; margin: 0 0 4px; }
.role-assignment p { color: #4d5b68; font-size: .9rem; margin: 0; }
.role-assignment .assignment-artists { color: var(--navy); font-weight: 900; margin-top: 4px; }
.detail-meta { border-top: 1px solid #dce6ef; margin: 26px 0 0; padding-top: 22px; }
.detail-meta div { display: grid; gap: 8px; grid-template-columns: 7.5em 1fr; margin: 10px 0; }
.detail-meta dt { color: #617487; font-size: .8rem; font-weight: 900; letter-spacing: .08em; }
.detail-meta dd { font-weight: 700; margin: 0; }
.content-section { border-top: 1px solid #e2eaf1; padding: clamp(28px, 5vw, 52px); }
.content-section h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 900; margin: 0 0 10px; }
.content-section p:not(.eyebrow) { color: #4d5b68; margin: 0 0 18px; }
.button { background: var(--interactive); border: 2px solid var(--interactive); border-radius: 999px; color: white; display: inline-block; font-weight: 900; padding: 11px 22px; text-decoration: none; }
.button:hover { background: #00498f; border-color: #00498f; color: white; }
.button--secondary { background: white; color: var(--interactive); }
.work-pagination { padding-bottom: clamp(26px, 4vw, 40px); padding-top: clamp(26px, 4vw, 40px); }
.work-pagination__grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-pagination__grid--single .work-pagination__link--newer { grid-column: 2; }
.work-pagination__link { background: #f7faff; border: 2px solid #ccdbea; border-radius: 16px; color: var(--navy); display: flex; flex-direction: column; justify-content: center; min-height: 132px; padding: 18px 20px; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.work-pagination__link:hover { border-color: var(--interactive); box-shadow: 0 10px 24px rgba(17, 54, 88, .12); color: var(--navy); transform: translateY(-2px); }
.work-pagination__link--newer { text-align: right; }
.work-pagination__direction { color: var(--interactive); font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.work-pagination__date { color: #536b80; font-size: .8rem; font-weight: 700; margin-top: 9px; }
.work-pagination__title { display: -webkit-box; font-size: 1rem; font-weight: 900; line-height: 1.55; margin-top: 2px; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.related-works__grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
.related-work-card { background: #f7faff; border: 2px solid transparent; border-radius: 16px; box-shadow: 0 8px 22px rgba(17, 54, 88, .1); color: var(--navy); display: block; min-width: 0; overflow: hidden; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.related-work-card:hover { border-color: var(--interactive); box-shadow: 0 13px 28px rgba(17, 54, 88, .15); color: var(--navy); transform: translateY(-3px); }
.related-work-card__image { align-items: center; aspect-ratio: 3 / 4; background: #e9f1f8; display: flex; justify-content: center; overflow: hidden; }
.related-work-card__image img { display: block; height: 100%; object-fit: contain; width: 100%; }
.related-work-card__body { display: block; padding: 16px; }
.related-work-card__date { color: #536b80; display: block; font-size: .78rem; font-weight: 700; }
.related-work-card__title { display: -webkit-box; font-size: .95rem; font-weight: 900; line-height: 1.55; margin-top: 5px; min-height: 2.95em; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.contact-panel { align-items: center; background: #10233b; color: white; display: flex; gap: 24px; justify-content: space-between; }
.contact-panel .eyebrow { color: #a9d5ff; }
.contact-panel p:not(.eyebrow) { color: #d9e7f4; margin-bottom: 0; }
.contact-panel .button { border-color: white; flex: 0 0 auto; }
.loading, .not-found { background: white; border-radius: 18px; color: #57708a; padding: clamp(36px, 7vw, 72px) 24px; text-align: center; }
.not-found h1 { color: var(--ink); font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; }
.not-found .button { margin-top: 14px; }
.site-footer { background: white; border-top: 1px solid #dee2e6; color: #65717c; padding: 24px; text-align: center; }
.site-footer a { color: var(--interactive); }
@media (max-width: 991px) {
    .navbar-toggler { display: flex; }
    .navbar-collapse { display: none; flex-basis: 100%; width: 100%; }
    .navbar-collapse.is-open { display: block; }
    .navbar-nav { align-items: stretch; flex-direction: column; margin-left: 0; padding: 8px 0; }
    .nav-link { margin-left: 0; padding: 12px 0; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-flyer { min-height: 0; }
    .detail-flyer img { max-height: none; width: min(100%, 620px); }
    .related-works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .detail-shell { padding-inline: 14px; }
    .detail-card { border-radius: 16px; }
    .detail-meta div { grid-template-columns: 1fr; }
    .contact-panel { align-items: flex-start; flex-direction: column; }
    .contact-panel .button { width: 100%; text-align: center; }
    .work-pagination__grid { grid-template-columns: 1fr; }
    .work-pagination__grid--single .work-pagination__link--newer { grid-column: auto; }
    .work-pagination__link--newer { text-align: left; }
    .related-works__grid { grid-template-columns: 1fr; }
    .related-work-card { display: grid; grid-template-columns: minmax(104px, 34%) minmax(0, 1fr); }
    .related-work-card__image { min-height: 138px; }
    .related-work-card__body { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
    .work-pagination__link, .related-work-card { transition: none; }
}
