/* メインビジュアル */
/* ------------------------------ */
.index-page {
    position: relative;
    isolation: isolate;
    width: min(100% - 32px, 1240px);
    margin: 0 auto;
    padding: 146px 0 64px;
    font-family: var(--font-sans);
    overflow-x: clip;
}

.index-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.index-page-content {
    max-width: 100%;
    animation: archive-page-in 0.32s ease-out both;
}

@keyframes archive-page-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-visual {
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    text-align: center;
}

.main-visual img {
    width: 100%;
    height: auto;
    max-width: 1200px; /* 必要に応じて最大幅を設定 */
    border-radius: 10px; /* 必要に応じて角を丸くする */
}

.archive-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(220px, 0.44fr);
    gap: 20px;
    align-items: end;
    margin: 0 auto;
    max-width: 1020px;
    min-width: 0;
}

.archive-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.archive-hero h1 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-sans);
    max-width: 820px;
    font-size: clamp(28px, 3.8vw, 50px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: 0.01em;
    word-break: keep-all;
    overflow-wrap: normal;
}

.archive-search-card {
    justify-self: end;
    width: min(100%, 360px);
    max-width: 100%;
    margin: 18px 0 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--soft-shadow);
    box-sizing: border-box;
    transform: rotate(1deg);
}

.archive-search-card,
.archive-search-card * {
    box-sizing: border-box;
}

.archive-search-card label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.archive-search-card__control {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(32, 35, 51, 0.08);
    overflow: hidden;
}

.archive-search-card input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 12px 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 700;
}

.archive-search-card button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 15px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-sans);
    cursor: pointer;
}

.sticker-category-stage {
    width: min(1160px, 100%);
    margin: 80px auto 42px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.sticker-category-stage__header,
.archive-section-heading {
    max-width: 1020px;
    margin: 0 auto 14px;
}

.sticker-category-stage__header h2,
.archive-section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0;
}

.sticker-category-stage__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.sticker-category-stage--archive {
    width: min(1160px, 100%);
    margin: 54px auto 52px;
}

.sticker-category-stage--archive .sticker-category-stage__grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.sticker-category-stage--archive .sticker-category-card {
    aspect-ratio: 0.9 / 1;
    padding: 14px;
}

.sticker-category-stage--archive .sticker-category-card__stack,
.sticker-category-stage--archive .sticker-category-card__fallback {
    inset: 14px 14px 52px;
}

.sticker-category-card--back {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.96), transparent 28%),
        linear-gradient(135deg, #ffffff, #f8fafc 54%, #f7f9fb);
    opacity: 0.92;
}

.sticker-category-card {
    --rotate: 0deg;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    aspect-ratio: 0.9 / 1;
    padding: 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    box-shadow: none;
    transform: rotate(var(--rotate));
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
    overflow: visible;
}

.sticker-category-card::before {
    display: none;
}

.sticker-category-card:hover {
    z-index: 2;
    border-color: transparent;
    transform: rotate(0deg) translateY(-8px) scale(1.02);
    box-shadow: none;
}

.sticker-category-card__stack {
    position: absolute;
    inset: 14px 14px 52px;
    z-index: 1;
    pointer-events: none;
}

.sticker-category-card__stack::before,
.sticker-category-card__stack::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 18px;
    background: #f8fafc;
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.06);
}

.sticker-category-card__stack::before {
    transform: translate(10px, 8px) rotate(5deg);
}

.sticker-category-card__stack::after {
    transform: translate(-10px, 11px) rotate(-6deg);
}

.sticker-category-card__sheet {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 8px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}

.sticker-category-card__sheet img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: contain;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.96), transparent 28%),
        linear-gradient(135deg, #ffffff, #f9fafb 54%, #f7f9fb);
}

.sticker-category-card__sheet--1 {
    z-index: 3;
    transform: rotate(-1deg);
}

.sticker-category-card__sheet--2 {
    z-index: 2;
    transform: translate(8px, 7px) rotate(4deg);
}

.sticker-category-card__sheet--3 {
    z-index: 1;
    transform: translate(-8px, 10px) rotate(-5deg);
}

.sticker-category-card.has-images:hover .sticker-category-card__sheet--2 {
    transform: translate(14px, 8px) rotate(6deg);
}

.sticker-category-card.has-images:hover .sticker-category-card__sheet--3 {
    transform: translate(-14px, 12px) rotate(-7deg);
}

.sticker-category-card--event {
    background: transparent;
}

.sticker-category-card--all {
    background: transparent;
}

.sticker-category-card__title {
    position: relative;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 34px;
    margin-top: auto;
    padding: 6px 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: clamp(13px, 1.15vw, 17px);
    font-weight: 800;
    line-height: 1.18;
    text-align: center;
    letter-spacing: 0.02em;
}

.sticker-category-card__fallback {
    position: absolute;
    inset: 14px 14px 52px;
    z-index: 1;
    display: block;
}

.sticker-category-card__fallback::before,
.sticker-category-card__fallback::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 18px;
    background: #f8fafc;
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.06);
}

.sticker-category-card__fallback::before {
    transform: translate(10px, 8px) rotate(5deg);
}

.sticker-category-card__fallback::after {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.96), transparent 28%),
        linear-gradient(135deg, #ffffff, #f9fafb 54%, #f7f9fb);
    transform: rotate(-1deg);
}

.archive-section-heading {
    margin-top: 10px;
}
/* カテゴリーページ */
/* ------------------------------ */
.back-to-list a {
    color: #333;
    text-decoration: none;
    margin-right: 20px;
}
    
.back-to-list a:hover {
        text-decoration: underline;
}

.category-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.category-title {
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.category-description {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
    color: #666;
}

.category-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.post-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}


.post-thumbnail {
    width: 100%;
    height: 100%;
    max-width: 100%; /* 親要素の幅に収まるようにする */
    margin-bottom: 20px;
    box-sizing: border-box; /* ボックスのサイズを正確に計算する */
}

.post-thumbnail img {
    width: 100%; /* 親要素の幅に合わせる */
    display: block;
}

.post-title {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.post-updated {
    font-size: 0.6rem;
}

.post-excerpt {
    font-size: 14px;
    margin: 10px;
    color: #666;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px auto 12px;
}

.pagination .page-numbers,
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    color: var(--ink);
    text-decoration: none;
    padding: 7px 12px;
    border: 1px solid var(--line);
    margin: 0;
    border-radius: 999px;
    background: #fff;
    font-weight: 900;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.pagination a:hover,
.pagination .page-numbers:hover {
    transform: translateY(-2px);
    background-color: var(--soft-card);
}

.pagination .current,
.pagination .page-numbers.current {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.archive-pagination-numbers {
    display: none;
}

.archive-pagination-numbers.is-visible {
    display: flex;
}
.category-list-button:hover {
    background-color: #222;
}
.category-list-button {
    display: inline-block;
    padding: 4px 20px 6px;
    margin: 0 5px 8px 0;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.category-list-button a {
    color: #fff;
    text-decoration: none;
}

.category-links {
    max-width: 920px;
    margin: 4px auto 14px;
    opacity: 0.82;
}

.category-links .category-scroll {
    gap: 6px;
    padding: 4px 2px 10px;
}

.category-links .category-button {
    padding: 3px 12px 5px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: none;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.category-links .category-button a {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.category-links .category-button:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

.category-links .category-button:hover a,
.category-links .category-button a:hover {
    color: var(--ink);
}


.archive-bundle-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 34px auto 0;
}

.archive-bundle-nav--state {
    display: none;
}

.archive-bundle-card {
    --bundle-rotate: -1.2deg;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 164px;
    min-height: 76px;
    padding: 18px 24px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    box-shadow: var(--soft-shadow);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-align: center;
    transform: rotate(var(--bundle-rotate));
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease, background-color 0.28s ease;
}

.archive-bundle-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    z-index: 2;
    pointer-events: none;
    border-bottom-left-radius: 10px;
    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.94) 0%,
            rgba(244,245,247,0.96) 60%,
            rgba(218,222,228,0.86) 100%);
    box-shadow: -1px 2px 3px rgba(17, 24, 39, 0.10);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    opacity: 0;
    transform: scale(0.72);
    transform-origin: 100% 0;
    transition:
        width 0.24s cubic-bezier(.2,.8,.2,1),
        height 0.24s cubic-bezier(.2,.8,.2,1),
        opacity 0.2s ease,
        transform 0.24s cubic-bezier(.2,.8,.2,1);
}

.archive-bundle-card:hover,
.archive-bundle-card:focus-visible {
    background-color: #000;
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.14);
}

.archive-bundle-card:hover::after,
.archive-bundle-card:focus-visible::after {
    width: 24px;
    height: 24px;
    opacity: 1;
    transform: scale(1);
}

.archive-bundle-card:disabled {
    cursor: wait;
    opacity: 0.76;
    transform: rotate(var(--bundle-rotate));
}

.archive-bundle-card--prev {
    --bundle-rotate: 1.1deg;
    background: #fff;
    color: var(--ink);
}

.archive-bundle-card--grid {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 0.78 / 1;
    padding: 18px;
    border-radius: var(--radius);
    font-size: clamp(13px, 1.4vw, 16px);
    line-height: 1.35;
    box-sizing: border-box;
}

.archive-bundle-card--grid::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: calc(var(--radius) - 8px);
    pointer-events: none;
}

.archive-bundle-card--grid.archive-bundle-card--prev {
    background: #fff;
    color: var(--ink);
}

.archive-bundle-card--grid.archive-bundle-card--next {
    background: var(--accent);
    color: #fff;
}

.archive-return-card--grid {
    --return-rotate: -1.1deg;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    aspect-ratio: 0.78 / 1;
    padding: 18px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--soft-shadow);
    font-family: var(--font-sans);
    font-size: clamp(13px, 1.4vw, 16px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    transform: rotate(var(--return-rotate));
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease, border-color 0.28s ease;
    box-sizing: border-box;
}

.archive-return-card--grid::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: calc(var(--radius) - 8px);
    pointer-events: none;
}

.archive-return-card--grid:hover,
.archive-return-card--grid:focus-visible {
    z-index: 3;
    border-color: rgba(17, 24, 39, 0.18);
    color: var(--ink);
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
}

.post-tiles {
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.post-tiles.is-switching {
    opacity: 0.24;
    transform: translateY(8px);
    pointer-events: none;
}

.archive-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 10px auto 14px;
    padding: 6px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--soft-shadow);
    overflow-x: auto;
    scrollbar-width: none;
}

nav.archive-nav-tabs {
    list-style: none;
}

.archive-nav-tabs::-webkit-scrollbar {
    display: none;
}

.archive-nav-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    white-space: nowrap;
    border: 0;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.archive-nav-tab:hover {
    transform: translateY(-2px);
    background: var(--soft-card);
}

.archive-nav-tab.is-active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 18px rgba(32, 35, 51, 0.18);
}

.archive-filter-ui {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin: 24px 0;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.archive-filter-card {
    display: block;
    max-width: 920px;
    margin: 0 auto 22px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 2px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
    transform: rotate(-0.35deg);
}

.archive-filter-controls {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) minmax(130px, 0.85fr) minmax(130px, 0.85fr) minmax(116px, 0.7fr) auto;
    gap: 10px;
    align-items: flex-end;
    width: 100%;
}

.archive-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.archive-filter-field label {
    font-size: 13px;
    font-weight: 900;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.archive-filter-field input,
.archive-filter-field select {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    padding: 8px 13px;
    box-shadow: inset 0 0 0 1px rgba(32, 35, 51, 0.02);
}

.archive-filter-field--search {
    min-width: 0;
}

.archive-filter-submit {
    min-height: 40px;
    padding: 8px 18px;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(32, 35, 51, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.archive-filter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(32, 35, 51, 0.18);
}

/* 投稿タイルのスタイル */
/* ポストタイルのスタイル */
.post-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* PC表示で4カラム */
    gap: 16px; /* グリッドの隙間 */
    align-items: start;
    width: 100%;
}

.archive-sticker-stage {
    position: relative;
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: 8px;
    border-radius: 42px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18)),
        transparent;
    overflow: visible;
}

.archive-empty-message {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
    box-shadow: var(--soft-shadow);
}

/* スマホ表示で3カラムにする */
@media (max-width: 768px) {
    .post-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* タブレット表示で3カラム */
    }
}

@media (max-width: 1024px) {
    .sticker-category-stage__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sticker-category-stage--archive .sticker-category-stage__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .archive-filter-card {
        max-width: 760px;
    }

    .archive-filter-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .archive-filter-submit {
        width: 100%;
    }

    .post-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* グリッドアイテムのスタイル */
.post-tile {
    background-color: #fff;
    /*border: 1px solid #ddd;*/
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%; /* タイルをコンテナの幅に合わせる */
    padding-bottom: 100%; /* 正方形にする */
    position: relative;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    float: none;
    clear: none;
    max-width: none;
    min-width: 0;
}

.post-tile.sticker-card {
    --rotate: 0deg;
    aspect-ratio: 0.78 / 1;
    padding: 10px;
    padding-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--soft-shadow);
    transform: rotate(var(--rotate));
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
    min-width: 0;
    box-sizing: border-box;
}

.post-tile.sticker-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 1;
    border: 1px solid rgba(17, 24, 39, 0.05);
    border-radius: calc(var(--radius) - 8px);
    pointer-events: none;
}

/* マウスオーバー時のスタイル */
.post-tile:hover {
    transform: translateY(-5px); /* タイルを上に移動 */
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.post-tile.sticker-card:hover {
    z-index: 3;
    border-color: rgba(17, 24, 39, 0.18);
    transform: rotate(0deg) translateY(-8px) scale(1.02);
    box-shadow: 0 22px 48px rgba(17, 24, 39, 0.12);
}

.post-tile a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sticker-card > a {
    position: relative;
    z-index: 2;
    gap: 8px;
    min-width: 0;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticker-card__thumb {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 0.64;
    margin-bottom: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 16px;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.95), transparent 28%),
        linear-gradient(135deg, var(--blue), #fff 52%, var(--lavender));
    padding: 10px;
    box-sizing: border-box;
}

.sticker-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    border-radius: 12px;
}

.sticker-card__fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    overflow: hidden;
    color: var(--ink);
    font-size: clamp(13px, 1.4vw, 20px);
    font-weight: 900;
    line-height: 1.12;
    text-align: center;
    letter-spacing: 0;
    border: 1px dashed rgba(17, 24, 39, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.42);
    box-sizing: border-box;
}

/* タイルテキスト */
.post-tile-content {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(249, 249, 249, 0.8);
    padding: 4px;
    text-align: center;
}

.sticker-card__meta {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    padding: 0;
    text-align: left;
    background: transparent;
    opacity: 1;
    min-width: 0;
}

.post-tile:hover .post-tile-content {
    opacity: 1;
}

.sticker-card__badge {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 4px 8px;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 999px;
    background: var(--soft-card);
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
}

.sticker-card--logo .sticker-card__badge {
    background: var(--blue);
}

.sticker-card--stream .sticker-card__badge {
    background: var(--pink);
}

.sticker-card--tips .sticker-card__badge {
    background: var(--mint);
}

.sticker-card--works .sticker-card__badge {
    background: var(--blue);
}

.sticker-card--shop .sticker-card__badge {
    background: var(--yellow);
}

.sticker-card--material .sticker-card__badge {
    background: var(--lavender);
}

.post-tile-cta {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #333;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.sticker-card .post-tile-cta {
    display: none;
}

.post-title {
    font-size: 70%;
    margin-bottom: 5px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticker-card__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: clamp(11px, 0.95vw, 14px);
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.sticker-card__date {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* カテゴリボタン */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.post-category {
    margin-right: 10px;
    margin-bottom: 10px;
}

.post-category a {
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f7f6;
    color: #333;
    transition: background-color 0.3s ease;
}

.post-category a:hover {
    background-color: #0073aa;
    color: #fff;
}

/* メディアクエリでレスポンシブ対応 */
@media (max-width: 768px) {
    .index-page {
        width: min(100% - 24px, 1240px);
        padding: 28px 0 56px;
        overflow-x: clip;
    }
    .archive-hero {
        width: 100%;
        min-width: 0;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 0;
    }
    .archive-hero h1 {
        max-width: 100%;
        font-size: clamp(26px, 8.8vw, 38px);
        line-height: 1.08;
    }
    .archive-search-card {
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        margin-top: 4px;
        padding: 14px;
        transform: none;
    }
    .archive-search-card__control {
        min-width: 0;
    }
    .archive-search-card input {
        min-height: 44px;
        font-size: 14px;
    }
    .sticker-category-stage {
        margin: 32px auto 24px;
        padding: 0;
        border-radius: 0;
    }
    .sticker-category-stage__header,
    .archive-section-heading {
        margin-bottom: 12px;
    }
    .sticker-category-stage__grid {
        gap: 10px;
    }
    .sticker-category-card {
        padding: 10px;
        aspect-ratio: 0.9 / 1;
        transform: none;
        box-shadow: none;
    }
    .sticker-category-card:hover {
        transform: translateY(-4px);
        box-shadow: none;
    }
    .sticker-category-card__title {
        width: 100%;
        min-height: 30px;
        padding: 5px 6px 0;
        font-size: clamp(12px, 3.8vw, 17px);
        line-height: 1.18;
    }
    .sticker-category-card__stack {
        inset: 12px 12px 42px;
    }
    .sticker-category-card__sheet {
        padding: 6px;
        border-radius: 14px;
    }
    .sticker-category-card__sheet img {
        border-radius: 10px;
    }
    .archive-nav-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
        border-radius: 24px;
    }
    .archive-filter-card {
        padding: 12px;
        transform: none;
        box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
    }
    .archive-filter-controls {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .archive-filter-field,
    .archive-filter-field--search {
        flex-basis: auto;
        width: 100%;
    }
    .archive-filter-submit {
        width: 100%;
    }
    .post-tags {
        justify-content: center;
    }
    .archive-sticker-stage {
        padding: 4px;
        border-radius: 28px;
    }
    .post-tiles {
        gap: 10px;
    }

    .post-title {
        font-size: 0.5rem;
    }
    .post-updated {
        font-size: 0.5rem;
    }
    .post-tile.sticker-card {
        --rotate: -0.18deg;
        padding: 8px;
        transform: rotate(var(--rotate));
        box-shadow: 0 8px 18px rgba(17, 24, 39, 0.07);
        aspect-ratio: 0.76 / 1;
    }
    .post-tiles > .post-tile.sticker-card:nth-child(2n) {
        --rotate: 0.18deg;
    }
    .post-tiles > .post-tile.sticker-card:nth-child(3n) {
        --rotate: -0.12deg;
    }
    .post-tile.sticker-card:hover {
        transform: rotate(var(--rotate));
        box-shadow: 0 12px 24px rgba(17, 24, 39, 0.10);
    }
    .sticker-card > a {
        gap: 6px;
    }
    .sticker-card__thumb {
        border-radius: 13px;
        padding: 7px;
        aspect-ratio: 1 / 0.62;
    }
    .sticker-card__badge {
        margin-bottom: 4px;
        padding: 3px 6px;
        font-size: 8px;
    }
    .sticker-card__title {
        font-size: 10.5px;
        line-height: 1.28;
    }
    .breadcrumb {
        font-size: 12px;
    }

    .post-category a {
        font-size: 12px;
    }
}

@media (max-width: 560px) {
    .sticker-category-stage__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sticker-category-card {
        aspect-ratio: 0.9 / 1;
    }

    .sticker-category-stage--archive {
        margin: 34px auto 34px;
    }

    .sticker-category-stage--archive .sticker-category-stage__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sticker-category-card__title {
        font-size: clamp(13px, 5.4vw, 20px);
    }

    .post-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sticker-card__title {
        font-size: 12px;
    }

    .archive-bundle-nav {
        margin-top: 26px;
    }

    .archive-bundle-card {
        width: min(100%, 240px);
        min-height: 66px;
        padding: 15px 20px;
        font-size: 13px;
    }

    .archive-bundle-card--grid {
        width: 100%;
        min-height: 0;
        aspect-ratio: 0.78 / 1;
        padding: 14px;
    }

    .archive-return-card--grid {
        aspect-ratio: 0.78 / 1;
        padding: 14px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .index-page-content {
        animation: none;
    }

    .post-tiles {
        transition: none;
    }

    .post-tiles.is-switching {
        transform: none;
    }
}
