/* WorksとNotesの一覧ページに限定したマガジンレイアウト。 */
.archive-page { background: #fafdfe; color: #273850; }
.archive-page .archive-banner-wrap,
.archive-page .content-wrapper { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.archive-page .archive-banner-wrap { padding-top: 120px; }
.archive-page .section-banner { height: 220px; position: relative; overflow: hidden; background: #faf7ef; border-radius: 3px; }
.archive-page .section-banner > svg { display: block; width: 100%; height: 100%; }
.archive-page .section-banner h1 { position: absolute; left: 6%; top: 50%; transform: translateY(-50%); margin: 0; font-size: clamp(54px, 8vw, 94px); font-weight: 750; line-height: 1; letter-spacing: -.045em; color: white; -webkit-text-stroke: 1.5px #121820; paint-order: stroke fill; user-select: none; }
.archive-page .content-wrapper { padding: 0 0 48px; }
.archive-page .notes-section,
.archive-page .works-section { margin: 0; padding: 28px 0 0; }
.archive-page .search-container { margin: 0 0 16px; }
.archive-page .search-box { box-shadow: none; background: transparent; border: 1px solid #c6d0d8; border-radius: 5px; }
.archive-page .tag-cloud-container { margin-bottom: 28px; }
.archive-page .note-grid,
.archive-page .page-tile-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 32px 26px; }
.archive-page .note-card,
.archive-page .page-tile-item { display: block; min-width: 0; padding: 0 0 22px; border: 0; border-bottom: 1px solid #d3dde4; border-radius: 0; background: transparent; box-shadow: none; color: inherit; transform: none; }
.archive-page .note-card::before,
.archive-page .note-card::after { content: none; }
.archive-page .note-card:hover,
.archive-page .page-tile-item:hover { background: transparent; box-shadow: none; transform: none; }
.archive-page .note-card:hover h3,
.archive-page .page-tile-item:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.archive-page .pastel-note-art,
.archive-page .page-img-wrapper { width: 100%; height: auto; aspect-ratio: 8 / 3; overflow: hidden; margin: 0 0 18px; }
.archive-page .pastel-note-art svg,
.archive-page .page-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.archive-page .page-info { padding: 0; }
.archive-page .note-date { color: #647582; font-size: 12px; }
.archive-page .note-card h3,
.archive-page .page-info h3 { font-size: 19px; line-height: 1.6; font-weight: 550; margin: 8px 0 14px; }
.archive-page .note-excerpt:empty { display: none; }
.archive-page .hashtags { margin-top: 14px; }
.archive-page .page-info p,
.archive-page .note-excerpt { color: #647582; font-size: 14px; }
.archive-page .back-home { margin-top: 40px; }
.archive-page a:focus-visible,
.archive-page button:focus-visible,
.archive-page input:focus-visible { outline: 2px solid #427c8e; outline-offset: 4px; }
@media (max-width: 600px) {
    .archive-page .archive-banner-wrap,
    .archive-page .content-wrapper { width: calc(100% - 36px); }
    .archive-page .archive-banner-wrap { padding-top: 96px; }
    .archive-page .section-banner { height: 170px; }
    .archive-page .search-container { flex-wrap: wrap; }
}

.archive-page [hidden] { display: none !important; }

/* 一覧の操作部品と詳細ページで同じ輪郭・操作高を使う。 */
.archive-page .btn-accent,
.archive-page .btn-outline,
.reading-page .btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 10px 18px; border: 1px solid #c5d2dc;
    border-radius: 6px; color: #273850; background: transparent;
    font: inherit; font-size: 14px; letter-spacing: 0; box-shadow: none;
    text-decoration: none; transform: none;
}
.archive-page .btn-accent { background: #d8edf0; border-color: #afd2d9; }
.archive-page .btn-accent:hover,
.archive-page .btn-outline:hover,
.reading-page .btn-outline:hover { background: #edf3f6; box-shadow: none; transform: none; }
.archive-page .tag-cloud-container { display: flex; gap: 8px; flex-wrap: wrap; }
.archive-page .tag-cloud-chip {
    display: inline-flex; align-items: center; min-height: 40px; padding: 7px 12px;
    border: 1px solid #d5dfe6; border-radius: 6px; background: transparent;
    color: #526779; font: inherit; font-size: 13px; cursor: pointer;
    box-shadow: none; transform: none;
}
.archive-page .tag-cloud-chip:hover { background: #edf3f6; border-color: #afc5d0; }
.archive-page .tag-cloud-chip.active { background: #d8edf0; color: #233d4c; border-color: #8fbac5; }
.archive-page .tag-cloud-chip.active::before { content: '✓'; margin-right: 6px; }
.archive-page .clear-search { min-width: 44px; min-height: 44px; color: #526779; border-radius: 5px; }
.archive-page .search-box:focus-within { border-color: #638c9d; box-shadow: 0 0 0 2px #dcebf0; }
.archive-page .search-stats { color: #617383; font-size: 12px; }
.archive-page .admin-bar { margin: 0 0 18px; }
.archive-page .empty-list { padding: 32px 0; color: #617383; }

.reading-page { background: #fafdfe; color: #273850; }
.reading-page .reading-heading,
.reading-page .content-wrapper { width: min(780px, calc(100% - 48px)); margin-inline: auto; }
.reading-page .reading-heading { padding-top: 120px; padding-bottom: 32px; border-bottom: 1px solid #d7e1e7; }
.reading-page .reading-back { display: inline-flex; align-items: center; min-height: 44px; color: #617383; font-size: 14px; text-decoration: none; margin-bottom: 20px; }
.reading-page .reading-back:hover { color: #273850; text-decoration: underline; text-underline-offset: 5px; }
.reading-page .reading-heading h1 { font-size: clamp(28px, 4.5vw, 48px); font-weight: 550; line-height: 1.5; letter-spacing: -.025em; overflow-wrap: anywhere; margin: 0 0 14px; }
.reading-page .reading-heading p { font-size: 13px; color: #617383; }
.reading-page .content-wrapper { padding: 0 0 64px; }
.reading-page .note-detail,
.reading-page .project-detail { margin: 0; padding: 28px 0 0; }
.reading-page .note-header-info { margin-bottom: 28px; }
.reading-page .note-header-info .note-date { display: none; }
.reading-page .hashtags { display: flex; flex-wrap: wrap; gap: 8px; }
.reading-page .tag-link { color: #536a7c; font-size: 13px; text-decoration: none; border-bottom: 1px solid #bfced8; padding: 5px 0; }
.reading-page .note-body { margin: 0; padding: 0; min-height: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.reading-page .note-body,
.reading-page .project-desc { font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.reading-page .note-body h1 { font-size: 27px; margin: 30px 0 18px; }
.reading-page .note-body h2,
.reading-page .project-desc h3 { color: #273850; font-weight: 600; font-size: 23px; margin: 36px 0 18px; }
.reading-page .note-body h3 { font-size: 20px; color: #273850; }
.reading-page .note-body p { margin-bottom: 1.5em; }
.reading-page .note-body a { color: #326b7c; text-underline-offset: 4px; }
.reading-page .note-body blockquote { border-left: 3px solid #aacfd5; background: #f0f6f7; padding: 14px 20px; color: #536a7c; }
.reading-page .note-body img,
.reading-page .project-desc img { max-width: 100%; height: auto; border-radius: 4px; }
.reading-page .note-body pre { max-width: 100%; overflow-x: auto; background: #edf3f6; color: #273850; border: 1px solid #d5e1e8; border-radius: 6px; }
.reading-page .note-body pre code { color: inherit; background: transparent; }
.reading-page .note-body table { display: block; max-width: 100%; overflow-x: auto; }
.reading-page .project-hero-image { margin-bottom: 30px; border: 0; border-radius: 5px; background: transparent; box-shadow: none; }
.reading-page .project-info-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
.reading-page .project-meta { padding: 20px 0; border: 0; border-top: 1px solid #d7e1e7; border-radius: 0; background: transparent; box-shadow: none; }
.reading-page .project-meta .accent-blue { color: #536a7c; }
.reading-page .project-desc figure { padding: 0; border: 0; background: transparent; }
.reading-page .back-home { margin-top: 48px; padding-top: 24px; border-top: 1px solid #d7e1e7; }
.reading-page a:focus-visible,
.reading-page button:focus-visible { outline: 2px solid #427c8e; outline-offset: 4px; }
@media (max-width: 600px) {
    .reading-page .reading-heading,
    .reading-page .content-wrapper { width: calc(100% - 36px); }
    .reading-page .reading-heading { padding-top: 96px; }
    .reading-page .note-body,
    .reading-page .project-desc { font-size: 15px; }
}

/* Keep the first paint aligned with the animation's first frame. */
@media (prefers-reduced-motion: no-preference) {
    .archive-motion-pending [data-banner-motion] > svg > :not(:first-child),
    .archive-motion-pending [data-banner-motion] > h1 { visibility: hidden; }
}

/* Card tags use the same quiet palette as the filter buttons. */
.archive-page .tag-link {
    color: #526779; background: transparent; border: 1px solid #d5dfe6;
    border-radius: 4px; padding: 2px 6px; font: inherit; font-size: 12px;
    box-shadow: none; transform: none;
}
.archive-page .tag-link:hover { background: #edf3f6; border-color: #afc5d0; }
