/*
Theme Name: Nookpress
Author: ごとうたつや
Description: gototatsuya.net のテーマ。ページ全体を waterfall CSS Grid で組む。
Version: 0.1.99
Text Domain: nookpress
*/

:root {
    --color-text: #333;
    --color-background: #fff;
    --color-background-2nd: #f8f8f8;
    --color-shadow: #ddd;
    --grid-max: 1512px;
    --grid-pad: 96px;
    --grid-gap: 36px;
    --grid-column-gap: 36px;
    --content-max: 750px;
    --text-max: 500px;
    --content-gap: 16px;
    --sidebar-width: 250px;
    --sidebar-sticky-top: 24px;
    --header-gap: 24px;
    --header-height: 50px;
    --menu-duration: 0.32s;
    --menu-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar,
*::before::-webkit-scrollbar,
*::after::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: Inter, "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 1rem;
    font-weight: 350;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*
 * ページ全体の waterfall CSS Grid。
 * PC は左列 250px 固定（signage → profile → ad → copy）を上に詰めて sticky にし、右列（nav → gallery）と並走する。
 */
.site-grid {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    grid-template-areas:
        "header  header"
        "hero    hero"
        "sidebar main";
    grid-auto-flow: dense;
    align-items: start;
    row-gap: var(--grid-gap);
    column-gap: var(--grid-column-gap);
    width: min(100%, var(--grid-max));
    margin: 0 auto;
    padding: 24px var(--grid-pad);
}

.site-grid:not(.site-grid-has-signage) {
    grid-template-areas:
        "header  header"
        "hero    hero"
        "nav     nav"
        "sidebar gallery";
}

.site-grid-detail {
    grid-template-areas:
        "header  header"
        "sidebar gallery";
}

.site-header {
    grid-area: header;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr) auto;
    align-items: stretch;
    column-gap: var(--grid-column-gap);
    height: var(--header-height);
}

.site-sidebar {
    grid-area: sidebar;
    align-self: start;
    width: 100%;
    min-width: 0;
    position: sticky;
    top: var(--sidebar-sticky-top);
}

.admin-bar .site-sidebar {
    top: calc(32px + var(--sidebar-sticky-top));
}

.site-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
    width: 100%;
    min-width: 0;
}

.site-main-column {
    grid-area: main;
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
    min-width: 0;
}

.site-grid:not(.site-grid-has-signage) .site-main-column {
    display: contents;
}

.site-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    padding-right: 24px;
    color: inherit;
    text-decoration: none;
}

.site-brand img {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}

.site-brand span {
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.site-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 24px;
    background: var(--color-background-2nd);
    border: 1px solid var(--color-shadow);
    border-radius: 8px;
    overflow: hidden;
}

.site-search input[type="search"] {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    font-family: "Noto Sans JP", Inter, sans-serif;
    font-size: 1rem;
    font-weight: 350;
    line-height: 1.25;
    appearance: none;
}

.site-search input[type="search"]::-webkit-search-decoration,
.site-search input[type="search"]::-webkit-search-cancel-button {
    appearance: none;
}

.site-search input[type="search"]:focus {
    outline: none;
}

.site-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    flex-shrink: 0;
}

.site-search button img {
    display: block;
    width: 24px;
    height: 24px;
}

.site-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 50px;
    padding: 0 24px;
    background: var(--color-text);
    border-radius: 8px;
    color: var(--color-background);
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.site-menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
}

.site-menu-icon {
    position: relative;
    display: block;
    width: 21px;
    height: 14px;
}

.site-menu-icon span {
    position: absolute;
    left: 0;
    width: 21px;
    height: 2.5px;
    background: currentColor;
    transition:
        transform var(--menu-duration) var(--menu-ease),
        opacity 0.2s var(--menu-ease);
}

.site-menu-icon span:nth-child(1) {
    top: 0;
}

.site-menu-icon span:nth-child(2) {
    top: 5.75px;
}

.site-menu-icon span:nth-child(3) {
    top: 11.5px;
}

.site-menu-button.is-open .site-menu-icon span:nth-child(1) {
    transform: translateY(5.75px) rotate(45deg);
}

.site-menu-button.is-open .site-menu-icon span:nth-child(2) {
    opacity: 0;
}

.site-menu-button.is-open .site-menu-icon span:nth-child(3) {
    transform: translateY(-5.75px) rotate(-45deg);
}

.site-drawer {
    display: none;
}

.site-hero {
    grid-area: hero;
    height: 250px;
    overflow: hidden;
    background: var(--color-shadow);
    border: 1px solid var(--color-shadow);
    border-radius: 8px;
}

.site-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.site-signage {
    grid-area: signage;
    display: flex;
    align-items: center;
    height: 50px;
    min-width: 0;
    padding: 12px;
    overflow: hidden;
    background: var(--color-background-2nd);
    border: 1px solid var(--color-shadow);
    border-radius: 8px;
}

.site-signage-track {
    display: flex;
    width: max-content;
    animation-name: nookpress-signage-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.site-signage:hover .site-signage-track {
    animation-play-state: paused;
}

.site-signage-group {
    flex: none;
    width: max-content;
    margin: 0;
    padding-right: 3em;
    color: var(--color-text);
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.site-signage-item,
.site-signage-link {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.site-signage-link:hover,
.site-signage-link:focus-visible {
    text-decoration: underline;
}

@keyframes nookpress-signage-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-1 * var(--nookpress-signage-shift, 50%)));
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-signage-track {
        animation: none;
    }

    .site-signage-group:last-child {
        display: none;
    }

    .site-signage-group {
        overflow: hidden;
        padding-right: 0;
        text-overflow: ellipsis;
    }
}

.site-nav {
    grid-area: nav;
    flex-shrink: 0;
    min-width: 0;
    height: 50px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 24px;
    background: var(--color-background);
    border: 1px solid var(--color-shadow);
    border-radius: 8px;
}

.site-nav:focus {
    outline: none;
}

.site-nav-list {
    display: flex;
    align-items: stretch;
    gap: 12px;
    height: 100%;
    margin: 0;
    padding: 0 0 0 24px;
    list-style: none;
}

.site-nav-list::after {
    content: "";
    flex: 0 0 24px;
    margin-inline-start: -12px;
}

.site-nav-list li {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
}

.site-nav-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px 12px 9px;
    border-bottom: 3px solid transparent;
    color: var(--color-text);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav-list a:hover,
.site-nav-list a:focus-visible {
    border-bottom-color: var(--color-shadow);
}

.site-nav-list .current-menu-item a,
.site-nav-list .current_page_item a {
    border-bottom-color: var(--color-text);
}

.site-profile {
    grid-area: profile;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 24px 0;
    overflow: hidden;
    background: var(--color-background);
    border-radius: 0;
}

.site-profile-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.site-profile-avatar {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    object-fit: cover;
}

.site-profile-name {
    margin: 0;
    color: var(--color-text);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.site-profile-bio {
    width: 100%;
    margin: 0;
    color: var(--color-text);
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2rem;
}

.site-profile-history {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    color: var(--color-text);
    font-size: 1rem;
}

.site-profile-history h2 {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.site-profile-history p {
    width: 100%;
    margin: 0;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-weight: 400;
    line-height: 2rem;
}

.site-gallery {
    grid-area: gallery;
    align-self: stretch;
    min-width: 0;
}

.site-gallery.site-placeholder {
    min-height: 400px;
    border-radius: 8px;
}

.site-gallery-list,
.article-list,
.project-card-list {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
}

.site-gallery-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    align-items: start;
    gap: var(--content-gap);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.site-gallery-list.is-waterfall {
    grid-auto-rows: 1px;
    align-items: start;
    row-gap: 0;
}

@supports (grid-template-rows: masonry) {
    .site-gallery-list {
        grid-template-rows: masonry;
        grid-auto-flow: row;
    }
}

.site-gallery-item {
    overflow: hidden;
    background: var(--color-background-2nd);
    border: 1px solid var(--color-shadow);
    border-radius: 8px;
}

.site-gallery-item a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.site-gallery-image {
    display: block;
    width: 100%;
    height: auto;
}

.site-gallery-item--more {
    aspect-ratio: 1 / 1;
}

.site-gallery-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 12px;
    border: 0;
    background: transparent;
    color: var(--color-text);
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.site-gallery-more:hover,
.site-gallery-more:focus-visible {
    background: var(--color-background);
}

.site-gallery-more:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: -2px;
}

.site-gallery-more:disabled {
    cursor: wait;
    opacity: 0.6;
}

.work-detail-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
    min-width: 0;
}

.work-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    overflow: hidden;
    white-space: nowrap;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 350;
    line-height: 2rem;
    color: var(--color-text);
    background: var(--color-background);
    border-bottom: 1px solid var(--color-shadow);
}

.work-breadcrumb-end {
    border-bottom: 0;
    border-top: 1px solid var(--color-shadow);
}

.work-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.work-breadcrumb span[aria-hidden="true"] {
    font-size: 0.75rem;
    line-height: 1rem;
}

.work-breadcrumb-current {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-detail-body {
    display: flex;
    flex-direction: column;
    gap: 128px;
    align-items: stretch;
}

.article-detail-body {
    gap: 48px;
}

.work-hero-block,
.work-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
}

.work-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: var(--content-max);
    height: 50vh;
    margin-inline: auto;
    padding: var(--work-stage-pad, 96px);
    overflow: hidden;
    background: var(--color-background-2nd);
    border: 1px solid var(--color-shadow);
    border-radius: 8px;
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.1);
}

.work-frame {
    display: block;
    width: fit-content;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    font: inherit;
    color: inherit;
    line-height: 0;
    background: transparent;
    border: 16px solid var(--color-text);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
}

.work-frame:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 4px;
}

.work-frame-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(50vh - (2 * var(--work-stage-pad, 96px)) - 32px);
    object-fit: contain;
    pointer-events: none;
}

.work-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 96px 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}

.work-lightbox.is-open {
    display: flex;
}

.admin-bar .work-lightbox {
    top: 32px;
}

.work-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 75%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

body.work-lightbox-open {
    overflow: hidden;
}

.work-meta {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--text-max);
    margin-inline: auto;
    padding: 0;
}

.work-title {
    margin: 0;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 3rem;
    text-align: center;
}

.work-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin: 16px 0 0;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1rem;
    text-align: right;
}

.work-dates p {
    margin: 0;
    width: 100%;
}

.work-entry {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.work-entry-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2rem;
    text-align: left;
}

.work-entry-content > * {
    margin-block: 0;
}

.work-entry-content > *:first-child {
    margin-top: 0;
}

.work-entry-content > *:last-child {
    margin-bottom: 0;
}

.work-entry-content h1,
.work-entry-content h2,
.work-entry-content h3,
.work-entry-content h4,
.work-entry-content h5,
.work-entry-content h6,
.work-entry-content p,
.work-entry-content ul,
.work-entry-content ol,
.work-entry-content figure,
.work-entry-content blockquote,
.work-entry-content pre {
    margin-block: 0;
}

.work-entry-content .has-text-align-center {
    text-align: center;
}

.work-entry-content .has-text-align-right {
    text-align: right;
}

.work-entry-content figure {
    margin-inline: 0;
    width: 100%;
}

.work-entry-content img:not(.emoji):not(.url-card-photo),
.work-entry-content video,
.work-entry-content iframe,
.work-entry-content embed,
.work-entry-content object {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
    border-radius: 8px;
}

.work-entry-content .url-card img,
.work-entry-content .url-card video,
.work-entry-content .url-card iframe {
    border-radius: 0;
}

.work-entry-content .wp-block-video,
.work-entry-content .wp-block-embed,
.work-entry-content .wp-block-embed__wrapper {
    overflow: hidden;
    border-radius: 8px;
}

.work-entry-content iframe {
    width: 100%;
}

.work-entry-content .aligncenter,
.work-entry-content .wp-block-image.aligncenter,
.work-entry-content .wp-block-embed.aligncenter,
.work-entry-content .wp-block-video.aligncenter,
.work-entry-content figure.aligncenter,
.work-entry-content img.aligncenter {
    align-self: center;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.work-entry-content .alignright,
.work-entry-content .wp-block-image.alignright,
.work-entry-content .wp-block-embed.alignright,
.work-entry-content .wp-block-video.alignright,
.work-entry-content figure.alignright,
.work-entry-content img.alignright {
    align-self: flex-end;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: 0;
}

.work-entry-content .alignleft,
.work-entry-content .wp-block-image.alignleft,
.work-entry-content .wp-block-embed.alignleft,
.work-entry-content .wp-block-video.alignleft,
.work-entry-content figure.alignleft,
.work-entry-content img.alignleft {
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
}

.work-entry-content .has-text-align-center > img,
.work-entry-content .has-text-align-center > figure,
.work-entry-content .has-text-align-center > .wp-block-embed {
    margin-inline: auto;
}

.work-entry-content .has-text-align-right > img,
.work-entry-content .has-text-align-right > figure,
.work-entry-content .has-text-align-right > .wp-block-embed {
    margin-left: auto;
    margin-right: 0;
}

.work-entry-content .url-card {
    margin-block: 0;
}

.work-heading {
    margin: 0;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 3rem;
}

.project-card-list {
    display: flex;
    flex-direction: column;
    gap: var(--content-gap);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.project-card {
    display: flex;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: var(--color-background);
    border: 1px solid var(--color-shadow);
    border-radius: 8px;
}

.project-card-image {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.project-card-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-body {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 36px 12px;
}

.project-card-category,
.project-card-title {
    margin: 0;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--color-text);
}

.project-card-category {
    font-weight: 400;
}

.project-card-title {
    font-weight: 700;
}

.article-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--content-gap);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.article-list.product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-gallery > .site-gallery-list,
.site-gallery > .article-list,
.site-gallery > .project-card-list {
    margin-block-start: var(--content-gap);
}

.search-results-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
    margin-block-start: var(--content-gap);
}

.search-results-title {
    margin: 0;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 3rem;
}

.search-results-empty {
    margin: 0;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2rem;
}

.search-results-section {
    display: flex;
    flex-direction: column;
    gap: var(--content-gap);
    min-width: 0;
}

.search-results-section .site-gallery-list,
.search-results-section .article-list,
.search-results-section .project-card-list {
    max-width: none;
}

.article-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    min-width: 0;
    width: 100%;
    padding: 16px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: var(--color-background);
    border: 1px solid var(--color-shadow);
    border-radius: 8px;
}

.article-card-image {
    flex: 0 0 38%;
    order: 1;
    align-self: stretch;
    width: 38%;
    max-width: 38%;
    min-width: 96px;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-background-2nd);
    border: 0;
    border-radius: 0;
}

.article-card-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    order: 0;
    gap: 8px;
    min-width: 0;
    padding: 0;
}

.article-card-date {
    margin: 0;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 0.625rem;
    font-weight: 400;
    line-height: 1rem;
    text-align: left;
}

.article-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-card-tag {
    padding: 0.5px 8px;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 0.625rem;
    font-weight: 400;
    line-height: 1rem;
    background: var(--color-background-2nd);
    border: 0.5px solid var(--color-shadow);
    border-radius: 4px;
}

.article-card-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    word-break: break-all;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.product-list > li {
    display: flex;
    min-width: 0;
}

.product-list .url-card,
.url-card--compact {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 12px;
    border-radius: 12px;
}

.product-list .url-card-image,
.product-list .url-card--product .url-card-image,
.product-list .url-card--product .url-card-image.site-placeholder,
.url-card--compact .url-card-image,
.url-card--compact.url-card--product .url-card-image,
.url-card--compact.url-card--product .url-card-image.site-placeholder {
    order: -1;
    flex: none;
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
}

.product-list .url-card-excerpt,
.product-list .url-card-url,
.url-card--compact .url-card-excerpt,
.url-card--compact .url-card-url {
    display: none;
}

.product-list .url-card-body,
.url-card--compact .url-card-body {
    flex: 1 1 auto;
    gap: 8px;
    justify-content: flex-start;
    padding: 0;
}

.product-list .url-card-cta,
.url-card--compact .url-card-cta {
    padding: 6px 8px;
}

.article-hero {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
    overflow: hidden;
    aspect-ratio: 981 / 570;
    background: var(--color-background-2nd);
    border: 1px solid var(--color-shadow);
    border-radius: 8px;
}

.article-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-meta {
    width: 100%;
    max-width: var(--text-max);
    margin-inline: auto;
    padding: 0;
    text-align: left;
}

.article-meta .work-title,
.article-meta .work-dates,
.article-meta .work-entry,
.article-meta .work-entry-content,
.article-meta .article-detail-tags,
.article-meta .letter-form {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.article-meta .work-title {
    text-align: left;
}

.article-meta .work-entry-content > * {
    max-width: 100%;
}

.article-meta .work-entry-content .alignwide,
.article-meta .work-entry-content .alignfull {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}

.article-detail-tags {
    margin-top: 16px;
}

.letter-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    margin: 48px 0 0;
}

.letter-form-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.letter-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.letter-form-field label {
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.letter-form-hint {
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

.letter-form textarea,
.letter-form input[type="email"] {
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--color-shadow);
    border-radius: 8px;
    background: var(--color-background-2nd);
    color: var(--color-text);
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 350;
    appearance: none;
}

.letter-form textarea {
    min-height: 16rem;
    line-height: 2rem;
    resize: vertical;
}

.letter-form input[type="email"] {
    height: 50px;
    line-height: 1.25;
}

.letter-form textarea:focus,
.letter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-text);
}

.letter-form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: var(--color-text);
    color: var(--color-background);
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.letter-form-notice {
    margin: 0;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.letter-form-notice-error {
    color: #a40000;
}

.url-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 984px;
    margin: 16px auto;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: var(--color-background);
    border: 1px solid var(--color-shadow);
    border-radius: 8px;
    padding: 16px;
}

.url-card-body,
.url-card-copy,
.url-card-buy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.url-card-body {
    flex: 1 1 0;
    gap: 8px;
    justify-content: center;
    padding: 0;
}

.url-card-copy,
.url-card-buy {
    gap: 8px;
}

.url-card-title,
.url-card-excerpt,
.url-card-url,
.url-card-price,
.url-card-cta {
    font-family: Inter, "Noto Sans JP", sans-serif;
    color: var(--color-text);
}

.url-card-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.url-card-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-all;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.url-card-title,
.url-card-price {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
}

.url-card-cta {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.url-card-excerpt,
.url-card-url {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
}

.url-card-url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-card-cta {
    display: block;
    max-width: 100%;
    overflow: hidden;
    padding: 6px 12px;
    color: #fff;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--color-text);
    border-radius: 4px;
}

.url-card:not(.url-card--product) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
}

.url-card-image {
    flex: 0 0 150px;
    align-self: stretch;
    width: 150px;
    min-width: 150px;
    min-height: 150px;
    overflow: hidden;
    background: var(--color-background-2nd);
}

.url-card--product .url-card-image,
.url-card--product .url-card-image.site-placeholder {
    flex: 0 0 150px;
    align-self: stretch;
    width: 150px;
    max-width: 150px;
    min-width: 150px;
    min-height: 150px;
    height: auto;
    max-height: none;
    aspect-ratio: 1 / 1;
    border-radius: 0;
}

.url-card:not(.url-card--product) .url-card-image,
.url-card:not(.url-card--product) .url-card-image.site-placeholder {
    flex: none;
    width: 300px;
    max-width: 300px;
    min-width: 300px;
    min-height: calc(300px * 9 / 16);
    height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
}

.url-card-photo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.site-ad {
    grid-area: ad;
}

.site-copy {
    grid-area: copy;
}

.site-placeholder {
    width: 100%;
    background: var(--color-background-2nd);
    border-radius: 8px;
}

.site-ad {
    grid-area: ad;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.site-ad-banner {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 1;
    overflow: hidden;
    background: var(--color-background-2nd);
    border: 1px solid var(--color-shadow);
    border-radius: 8px;
}

.site-ad-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    margin: 0;
    padding: 24px 0;
    overflow: hidden;
    font-family: Inter, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1rem;
    text-align: center;
    border-radius: 12px;
}

@media screen and (max-width: 1279.98px) {
    .site-gallery-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100.02px) {
    .article-list:not(.product-list) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-card {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
        border-radius: 12px;
    }

    .article-card-image {
        flex: none;
        order: 0;
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 200px;
        aspect-ratio: unset;
        border: 0.5px solid var(--color-shadow);
        border-radius: 8px;
    }

    .article-card-body {
        flex: 1 1 auto;
        justify-content: flex-start;
        padding: 12px;
    }

    .article-card-date {
        text-align: right;
    }

    .article-card-title {
        display: block;
        overflow: visible;
        font-size: 1rem;
        line-height: 1rem;
        text-overflow: unset;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }
}

@media (min-width: 1280px) {
    .article-list,
    .article-list:not(.product-list) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 1100px) {
    .site-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "header"
            "hero"
            "signage"
            "profile"
            "nav"
            "gallery"
            "ad"
            "copy";
        gap: 12px;
        padding: 12px 0;
    }

    .site-sidebar,
    .site-sidebar-inner,
    .site-main-column {
        display: contents;
    }

    .site-grid:not(.site-grid-has-signage) {
        grid-template-areas:
            "header"
            "hero"
            "profile"
            "nav"
            "gallery"
            "ad"
            "copy";
    }

    .site-grid-detail {
        grid-template-areas:
            "header"
            "gallery"
            "profile"
            "signage"
            "ad"
            "copy";
    }

    .site-grid-detail:not(.site-grid-has-signage) {
        grid-template-areas:
            "header"
            "gallery"
            "profile"
            "ad"
            "copy";
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 40;
        display: flex;
        gap: 0;
        background: var(--color-background);
    }

    .site-nav {
        position: sticky;
        top: var(--header-height);
        z-index: 19;
        border-radius: 0;
        scroll-margin-top: var(--header-height);
    }

    .site-search,
    .site-cta {
        display: none;
    }

    .site-menu-button {
        display: flex;
    }

    .site-drawer {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        width: 100%;
        padding: 24px;
        overflow: auto;
        background: var(--color-background);
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition:
            transform var(--menu-duration) var(--menu-ease),
            visibility 0s linear var(--menu-duration);
    }

    .site-drawer.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition:
            transform var(--menu-duration) var(--menu-ease),
            visibility 0s linear 0s;
    }

    .site-drawer .site-search,
    .site-drawer .site-cta {
        display: flex;
        flex: 0 0 auto;
        width: 100%;
        height: 50px;
    }

    .site-drawer-nav {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
        background: var(--color-background);
        border-radius: 8px;
    }

    .site-drawer-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .site-drawer-list li {
        display: flex;
        flex: 0 0 auto;
    }

    .site-drawer-list a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 48px;
        padding: 12px 12px 9px;
        border-bottom: 0;
        border-left: 3px solid var(--color-shadow);
        color: var(--color-text);
        font-family: "Noto Sans JP", sans-serif;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1rem;
        text-decoration: none;
        white-space: nowrap;
    }

    .site-drawer-list a:hover,
    .site-drawer-list a:focus-visible {
        border-left-color: var(--color-shadow);
    }

    .site-drawer-list .current-menu-item a,
    .site-drawer-list .current_page_item a {
        border-left-color: var(--color-text);
    }

    body.site-menu-open {
        overflow: hidden;
    }

    .site-hero {
        border-radius: 0;
    }

    .site-signage {
        height: 52px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .site-profile {
        justify-self: center;
        width: 100%;
        max-width: 500px;
        margin-inline: auto;
        padding: 24px;
        border-radius: 0;
    }

    .site-grid-detail .site-profile {
        justify-self: center;
        width: min(500px, calc(100% - 48px));
        max-width: 500px;
        margin: 24px auto;
        border: 1px solid var(--color-shadow);
        border-radius: 8px;
    }

    .site-ad {
        align-items: center;
        padding: 24px 0;
    }

    .site-ad-banner {
        width: min(294px, calc(100% - 48px));
    }

    .site-copy {
        min-height: 75px;
    }

    .site-gallery {
        justify-self: center;
        width: 100%;
        max-width: var(--content-max);
        margin-inline: auto;
        padding: 0 24px;
    }

    .work-detail {
        max-width: none;
        padding: 0;
    }

    .work-detail-body {
        padding: 0 24px;
        gap: 128px;
    }

    .article-hero {
        aspect-ratio: 430 / 250;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .article-detail-body {
        gap: 48px;
    }

    .site-gallery-list {
        gap: var(--content-gap);
    }

    .site-gallery-list.is-waterfall {
        row-gap: 0;
        column-gap: var(--content-gap);
    }

    .work-detail-inner,
    .work-hero-block,
    .work-section {
        gap: 48px;
    }

    .work-section {
        width: 100%;
        max-width: var(--content-max);
        margin-inline: auto;
    }

    .work-breadcrumb {
        padding: 12px 24px;
    }

    .work-stage {
        --work-stage-pad: 24px;
        width: 100%;
        max-width: var(--content-max);
        margin-inline: auto;
        padding: var(--work-stage-pad);
    }

    .work-frame {
        border-width: 16px;
    }

    .work-lightbox {
        padding: 36px;
    }

    .work-lightbox-image {
        max-width: 100%;
    }

    .work-meta {
        width: 100%;
        max-width: var(--text-max);
        margin-inline: auto;
        padding: 0;
        gap: 24px;
        align-items: stretch;
    }

    .work-title {
        text-align: left;
    }

    .work-dates,
    .work-entry {
        margin: 0;
        width: 100%;
    }

    .letter-form-submit {
        align-self: stretch;
        width: 100%;
    }

    .work-detail .site-gallery-list {
        gap: var(--content-gap);
    }

    .work-detail .site-gallery-list.is-waterfall {
        row-gap: 0;
        column-gap: var(--content-gap);
    }
}

@media screen and (max-width: 1100px) {
    .admin-bar .site-header {
        top: 32px;
    }

    .admin-bar .site-nav {
        top: calc(32px + var(--header-height));
        scroll-margin-top: calc(32px + var(--header-height));
    }

    .admin-bar .site-drawer {
        top: calc(32px + var(--header-height));
    }
}

@media screen and (max-width: 767.98px) {
    .url-card {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        border-radius: 12px;
    }

    .url-card:not(.url-card--product) {
        grid-template-columns: minmax(0, 1fr);
    }

    .url-card-image,
    .url-card--product .url-card-image,
    .url-card--product .url-card-image.site-placeholder,
    .url-card:not(.url-card--product) .url-card-image,
    .url-card:not(.url-card--product) .url-card-image.site-placeholder,
    .url-card-image.site-placeholder {
        order: -1;
        flex: none;
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        border-radius: 0;
    }

    .url-card--product .url-card-image,
    .url-card--product .url-card-image.site-placeholder {
        height: auto;
        max-height: none;
        aspect-ratio: 1 / 1;
    }

    .url-card:not(.url-card--product) .url-card-image,
    .url-card:not(.url-card--product) .url-card-image.site-placeholder {
        aspect-ratio: 16 / 9;
    }

    .url-card-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .url-card-body {
        padding: 0;
    }

    .url-card:not(.url-card--product) .url-card-excerpt {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .url-card--product .url-card-excerpt,
    .url-card--product .url-card-url {
        display: none;
    }

    .url-card-url {
        font-size: 0.625rem;
        line-height: 1rem;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .admin-bar .site-nav {
        top: calc(46px + var(--header-height));
        scroll-margin-top: calc(46px + var(--header-height));
    }

    .admin-bar .site-drawer {
        top: calc(46px + var(--header-height));
    }

    .admin-bar .work-lightbox {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }

    .admin-bar .site-nav {
        top: var(--header-height);
        scroll-margin-top: var(--header-height);
    }

    .admin-bar .site-drawer {
        top: var(--header-height);
    }

    .admin-bar .work-lightbox {
        top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-menu-icon span,
    .site-drawer,
    .site-drawer.is-open {
        transition: none;
    }
}
