/* =====================================================
   Antique Magic Bookstore x Modern EC
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600;700;800&display=swap');

:root {
    /* Colors */
    --bg-parchment: #F4ECD8;
    --bg-dark-wood: #1A0D08;
    --bg-mahogany: #2C1A12;
    --text-ink: #1A1A1A;
    --text-muted: #4F4F4F;
    --accent-gold: #C5A059;
    --accent-gold-dark: #8C6B36;
    --accent-red: #8B1E1E;
    
    /* Fonts */
    --font-heading: 'Shippori Mincho', "Yu Mincho", "Mincho", serif;
    --font-ui: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    
    /* UI Borders */
    --border-ornate: 2px solid var(--accent-gold);
    --card-bg: #FCF9F2;
}

body {
    margin: 0;
    font-family: var(--font-ui);
    background-color: var(--bg-parchment);
    color: var(--text-ink);
    line-height: 1.6;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .site-logo, .grimoire-title, .page-title, .description-title {
    font-family: var(--font-heading);
}

a {
    color: var(--text-ink);
    text-decoration: none;
}
a:hover {
    color: var(--accent-red);
}

/* =====================================================
   Header (Modern Functionality, Antique Look)
   ===================================================== */
.site-header {
    background: var(--bg-mahogany);
    color: var(--bg-parchment);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: top 0.4s ease;
}

.notice-bar {
    background: var(--bg-dark-wood);
    color: var(--accent-gold);
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--accent-gold-dark);
}

.notice-free {
    color: #FFF;
    font-weight: bold;
    margin-left: 5px;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 26px;
    margin: 0;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.site-logo-link {
    color: var(--accent-gold);
}
.site-logo-link:hover {
    color: #E2C27F;
}

/* Header Icons - Modern layout with antique colors */
.header-nav {
    display: flex;
    align-items: center;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Header Search Form */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.search-input {
    background: rgba(244, 236, 216, 0.1);
    color: var(--bg-parchment);
    border: 1px solid var(--accent-gold-dark);
    border-radius: 4px;
    padding: 8px 12px 8px 36px;
    font-family: var(--font-ui);
    font-size: 13px;
    width: 260px;
    max-width: 100%;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(244, 236, 216, 0.6);
}

.search-input:focus {
    outline: none;
    background: rgba(244, 236, 216, 0.2);
    border-color: #FFDF73;
    box-shadow: 0 0 8px rgba(255, 223, 115, 0.5);
}

.btn-search {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-gold);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.btn-search:hover {
    color: #FFDF73;
}

.btn-search .material-icons-outlined {
    font-size: 18px;
}

.header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--bg-parchment);
    font-size: 11px;
    font-family: var(--font-ui);
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.header-icon:hover {
    color: var(--accent-gold);
}

.header-icon .material-icons-outlined {
    font-size: 24px;
    margin-bottom: 2px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hamburger { display: none; } /* Hide on PC */

/* =====================================================
   Main Layout
   ===================================================== */
.site-main {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

/* =====================================================
   Product List (Modern Grid + Book Cover Style)
   ===================================================== */
.page-title {
    font-size: 32px;
    text-align: center;
    color: var(--accent-red);
    margin-bottom: 40px;
    position: relative;
}
.page-title::after {
    content: "༄ ❖ ༄";
    display: block;
    font-size: 18px;
    color: var(--accent-gold);
    margin-top: 10px;
}

/* =====================================================
   Product List Layout (2 Column)
   ===================================================== */
.grimoire-list-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar */
.category-sidebar {
    flex: 0 0 240px;
    background: var(--card-bg);
    border: var(--border-ornate);
    padding: 24px;
    border-radius: 4px;
    position: sticky;
    top: 100px; /* Offset for sticky header */
    box-shadow: 2px 4px 12px rgba(0,0,0,0.08);
}

.category-sidebar::before {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px dashed var(--accent-gold-dark);
    pointer-events: none;
    opacity: 0.6;
}

.sidebar-title {
    font-size: 20px;
    color: var(--accent-red);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 12px;
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.category-menu li {
    margin-bottom: 12px;
}

.category-menu a {
    display: block;
    color: var(--text-ink);
    font-size: 15px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.category-menu a:hover {
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent-red);
}

.category-menu a.active {
    background: var(--accent-gold);
    color: #FFF;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Antique Toggle Switch */
.antique-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-ink);
    user-select: none;
}

.antique-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: var(--bg-dark-wood);
    border: 2px solid var(--accent-gold-dark);
    border-radius: 12px;
    margin-right: 12px;
    transition: background-color 0.4s ease, border-color 0.4s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 1px 2px rgba(255,255,255,0.4);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-parchment);
    top: 2px;
    left: 2px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    border: 1px solid #c2b59b;
}

.antique-toggle input[type="checkbox"]:checked + .toggle-slider {
    background-color: var(--accent-red);
    border-color: var(--accent-gold);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.6), 0 0 8px rgba(197, 160, 89, 0.4);
}

.antique-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
    background-color: #FFDF73;
    border-color: #FFF;
    box-shadow: 0 0 10px #FFD700, 1px 1px 2px rgba(0,0,0,0.2);
}

.antique-toggle:hover .toggle-slider {
    border-color: var(--accent-gold);
}

.grimoire-list-main {
    flex: 1;
    min-width: 0;
}

/* Search Results Title */
.search-results-title {
    font-size: 24px;
    color: var(--accent-red);
    margin-top: 0;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    text-align: center;
    border-bottom: 2px dashed var(--accent-gold);
    padding-bottom: 16px;
}

/* List Header & Sort Select */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px dotted var(--accent-gold-dark);
}

.list-count {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.sort-form label {
    font-size: 14px;
    color: var(--accent-gold-dark);
    font-family: var(--font-heading);
    margin-right: 8px;
}

.sort-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-parchment);
    color: var(--text-ink);
    border: 1px solid var(--accent-gold);
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    font-family: var(--font-ui);
    border-radius: 2px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C5A059' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.05);
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 1px var(--accent-red);
}

.grimoire-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.grimoire-item {
    background: var(--card-bg);
    border: var(--border-ornate);
    border-radius: 4px;
    padding: 16px;
    text-align: center;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Ornate Inner Border */
.grimoire-item::before {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px dashed var(--accent-gold-dark);
    pointer-events: none;
    opacity: 0.6;
}

.grimoire-item:hover {
    transform: translateY(-6px);
    box-shadow: 4px 12px 24px rgba(0,0,0,0.15);
}

.grimoire-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1; /* Above pseudo-element */
}

/* Book spine illusion */
.grimoire-thumb {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    margin-bottom: 16px;
    border-radius: 2px 10px 10px 2px; 
    box-shadow: inset 8px 0 12px rgba(0,0,0,0.15), 2px 2px 5px rgba(0,0,0,0.1);
    background: #eADDD0;
}

.grimoire-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.grimoire-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-ink);
}

.grimoire-price {
    font-size: 18px;
    font-family: var(--font-ui);
    font-weight: bold;
    color: var(--accent-red);
    margin-bottom: 8px;
}

.in-stock {
    font-size: 13px;
    color: #2e7d32;
    font-weight: bold;
}
.sold-out {
    font-size: 13px;
    color: var(--accent-red);
    font-weight: bold;
}

.grimoire-item.is-sold-out {
    opacity: 0.7;
}
.grimoire-item.is-sold-out .grimoire-thumb {
    filter: sepia(0.5) grayscale(0.8);
}

/* =====================================================
   Product Detail (2 Column + Magic Hover)
   ===================================================== */
.grimoire-detail-page {
    background: var(--card-bg);
    border: var(--border-ornate);
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
/* Inner wrap */
.grimoire-detail-page::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid var(--accent-gold-dark);
    pointer-events: none;
    opacity: 0.4;
}

.grimoire-detail-main {
    display: flex;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.grimoire-image-wrap {
    flex: 0 0 380px;
}

.grimoire-image {
    width: 100%;
    margin: 0 auto;
    display: block;
    border-radius: 4px 12px 12px 4px;
    box-shadow: -6px 0 20px rgba(0,0,0,0.25), inset 6px 0 12px rgba(255,255,255,0.2);
}

.grimoire-detail-info {
    flex: 1;
}

.detail-label {
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--accent-gold-dark);
    margin-bottom: 12px;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.grimoire-detail-page .grimoire-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 12px;
}

.grimoire-detail-page .grimoire-price {
    font-size: 32px;
    font-family: var(--font-ui);
    font-weight: bold;
    color: var(--text-ink);
    margin-bottom: 16px;
}

.grimoire-detail-page .grimoire-stock {
    font-size: 15px;
    color: #2e7d32;
    margin-bottom: 32px;
    font-weight: bold;
}

.grimoire-actions {
    margin-bottom: 40px;
}

/* === 魔法の光が灯るボタン === */
.btn-buy {
    width: 100%;
    max-width: 320px;
    background: var(--bg-mahogany);
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    padding: 18px 24px;
    font-size: 18px;
    font-weight: bold;
    font-family: var(--font-heading);
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}

@keyframes magic-glow {
    0%   { box-shadow: 0 0 5px var(--accent-gold); text-shadow: 0 0 5px var(--accent-gold); }
    50%  { box-shadow: 0 0 20px 8px #FFDF73, 0 0 40px #FFD700; text-shadow: 0 0 15px #FFDF73; color: #FFF; background: #3C2216; }
    100% { box-shadow: 0 0 5px var(--accent-gold); text-shadow: 0 0 5px var(--accent-gold); }
}

.btn-buy:hover {
    animation: magic-glow 1.5s infinite alternate;
    border-color: #FFDF73;
}
.btn-buy:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

.grimoire-detail-page .sold-out {
    font-size: 15px;
    color: var(--accent-red);
    font-weight: bold;
}

.grimoire-description-wrap {
    padding-top: 32px;
    border-top: 1px solid var(--accent-gold);
}

.description-title {
    font-size: 22px;
    color: var(--accent-red);
    margin-bottom: 16px;
}

.grimoire-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-ink);
    white-space: pre-line;
}

.back-to-list {
    display: inline-block;
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: underline;
}
.back-to-list:hover {
    color: var(--accent-red);
}

/* =====================================================
   Cart Detail (Keep modern table/list but antique UI)
   ===================================================== */
.cart-page {
    background: var(--card-bg);
    border: var(--border-ornate);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.cart-page::before {
    content: ''; position: absolute; top:8px; left:8px; right:8px; bottom:8px;
    border: 1px dotted var(--accent-gold-dark); pointer-events:none;
}
.cart-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--accent-red);
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 16px;
    margin-bottom: 32px;
    position: relative; z-index: 1;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px dotted var(--accent-gold-dark);
    position: relative; z-index: 1;
}
.cart-item-image img {
    width: 80px;
    border-radius: 2px 6px 6px 2px;
    box-shadow: inset 3px 0 6px rgba(0,0,0,0.2);
}

.cart-item-title a {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-ink);
}
.cart-item-price {
    font-size: 18px;
    color: var(--accent-red);
    font-weight: bold;
    margin: 8px 0;
}
.btn-remove {
    background: none; border: none; font-size: 13px; color: var(--text-muted); cursor: pointer; text-decoration: underline; padding: 0;
}
.btn-remove:hover { color: var(--accent-red); }

.cart-summary {
    display: flex; justify-content: flex-end; align-items: center; gap: 32px; padding-top: 32px; position: relative; z-index: 1;
}
.cart-total { font-size: 18px; }
.total-price { font-size: 28px; font-weight: bold; color: var(--accent-red); margin-left:12px; }

.btn-checkout {
    background: var(--accent-red);
    color: #FFF;
    border: 2px solid #5A1010;
    padding: 14px 32px;
    font-size: 16px;
    font-family: var(--font-heading);
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}
.btn-checkout:hover { background: #B32828; box-shadow: 0 6px 15px rgba(0,0,0,0.3); transform: translateY(-2px); }

/* License Modal */
.license-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8);
    display: flex; align-items: center; justify-content: center; z-index: 2000;
}
.modal-content {
    background: var(--card-bg); border: var(--border-ornate); padding: 40px; border-radius: 4px;
    max-width: 450px; width: 90%; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
}
.modal-content::before {
    content:''; position:absolute; top:6px; left:6px; right:6px; bottom:6px; border: 1px dotted var(--accent-gold-dark); pointer-events:none;
}
.modal-content h3 { font-family: var(--font-heading); font-size: 24px; color: var(--accent-red); margin-top: 0; position:relative; z-index:1; }
.modal-content input { width: 100%; padding: 12px; margin: 24px 0; border: 1px solid var(--accent-gold-dark); background: var(--bg-parchment); font-size: 16px; font-family: var(--font-ui); box-sizing: border-box; position:relative; z-index:1; }
.modal-actions { display: flex; gap: 16px; justify-content: center; position:relative; z-index:1; }
.btn-cancel { padding: 10px 24px; border: 1px solid #999; background: #eaeaea; cursor: pointer; border-radius: 2px; }
.btn-submit-license { padding: 10px 24px; background: var(--bg-mahogany); color: var(--accent-gold); border: 2px solid var(--accent-gold); cursor: pointer; border-radius: 2px; }

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
    background: var(--bg-mahogany);
    color: var(--bg-parchment);
    border-top: 4px solid var(--accent-gold);
    padding: 60px 20px 40px;
    margin-top: 80px;
}

.site-footer-inner {
    max-width: 1200px; margin: 0 auto; text-align: center; position: relative;
}
.site-footer-inner::before {
    content: "༄ ❖ ༄"; display: block; font-size: 20px; color: var(--accent-gold); margin-bottom: 24px;
}

.footer-links h3 {
    color: var(--accent-gold); font-family: var(--font-heading); font-size: 16px; margin-bottom: 16px;
}
.footer-links ul { list-style: none; padding: 0; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #D5C29B; font-size: 13px; }
.footer-links a:hover { color: #FFF; text-decoration: underline; }
.site-footer-text { margin-top: 40px; font-size: 12px; color: #8F7F6B; }

/* =====================================================
   Product Specs (Amazon-style Details)
   ===================================================== */
.grimoire-specs-wrap {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px dashed var(--accent-gold-dark);
}

.specs-title {
    font-size: 20px;
    color: var(--accent-red);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.specs-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px 16px;
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.5;
}

.specs-list dt {
    color: var(--accent-gold-dark);
    font-weight: normal;
    padding-bottom: 8px;
    border-bottom: 1px dotted rgba(140, 107, 54, 0.3);
}

.specs-list dd {
    color: var(--text-ink);
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px dotted rgba(140, 107, 54, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .grimoire-list-layout {
        flex-direction: column;
    }
    .category-sidebar {
        flex: none;
        width: 100%;
        position: static;
        margin-bottom: 32px;
        box-sizing: border-box;
    }
    
    .grimoire-detail-main { flex-direction: column; gap: 32px; }
    .grimoire-image-wrap { flex: none; width: 100%; }
    .hamburger { display: block; width: 30px; height: 20px; background: none; border: none; cursor: pointer; position: relative; padding: 0; margin-left: auto; }
    .hamburger span { display: block; position: absolute; height: 2px; width: 100%; background: var(--bg-parchment); transition: 0.3s; }
    .hamburger span:nth-child(1) { top: 0; } .hamburger span:nth-child(2) { top: 9px; } .hamburger span:nth-child(3) { top: 18px; }
    .header-nav { position: relative; }
    .header-icons { display: none; }
    /* Mobile nav logic relies on JS toggle applied by base.html */
    .header-nav.is-open .header-icons {
        display: flex; flex-direction: column; position: absolute; top: 100%; right: 0; background: var(--bg-mahogany);
        padding: 20px; border: 2px solid var(--accent-gold); gap: 15px; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }
}

/* =====================================================
   品切れ（封印）状態のスタイル
   ===================================================== */

/* 一覧カード：在庫0リンクのホバー演出 */
.grimoire-card.is-sold-out {
    cursor: pointer;
}
.grimoire-card.is-sold-out .grimoire-thumb {
    filter: sepia(0.4) grayscale(0.6);
    transition: filter 0.4s ease;
}
.grimoire-item:hover .grimoire-card.is-sold-out .grimoire-thumb {
    filter: sepia(0.2) grayscale(0.3);
}

/* 詳細ページ：封印ボタン */
.btn-sealed {
    opacity: 0.55;
    cursor: not-allowed !important;
    background: #2a1a1a;
    color: #9a7a7a;
    border-color: #5a3a3a;
    animation: none !important;
    pointer-events: none;
}
.btn-sealed:hover {
    animation: none !important;
    border-color: #5a3a3a;
}

/* 詳細ページ：品切れサブメッセージ */
.sold-out-detail {
    margin-top: 12px;
    font-size: 13px;
    color: var(--accent-red);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

