/* ============================================
   Sweets Luxe - 統合スタイルシート
   base_front.html と base_article.html 共通
   ============================================ */

/* -----------------------
   CSS変数定義
   ----------------------- */
:root {
    --primary-pink: #fdf2f8;
    --accent-pink: #db2777;
    --gold: #d4af37;
    --gold-light: rgba(212, 175, 55, 0.4);
    --gold-shine: rgba(255, 255, 255, 0.8);
    --text-main: #4a4a4a;
    --text-light: #666;
    --card-bg: rgba(255, 255, 255, 0.9);
    --article-bg: #fff;
    --western-accent: #2c3e50;
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --glass-shadow-hover: 0 20px 40px rgba(212, 175, 55, 0.25);
}

/* -----------------------
   リセット & 基本設定
   ----------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Shippori Mincho', serif;
    background-color: var(--primary-pink);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* overflow-y: hidden; */
    line-height: 1.8;
}

body.loaded {
    overflow-y: auto;
}

/* -----------------------
   ページ遷移アニメーション (Curtain)
   ----------------------- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff0f5;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: top;
    transition: transform 0.8s cubic-bezier(0.8, 0, 0.2, 1);
}

.page-transition.slide-up {
    transform: translateY(-100%);
}

.transition-content {
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    padding: 20px;
    max-width: 90%;
}

.page-transition.slide-up .transition-content {
    opacity: 0;
}

.transition-logo {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 20px;
    animation: pulseLogo 2s infinite ease-in-out;
    line-height: 1.2;
}

.transition-sub {
    letter-spacing: 0.2em;
    color: #666;
    font-size: 1rem;
}

@keyframes pulseLogo {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* スマホ用カーテン調整 */
@media (max-width: 768px) {
    .transition-logo {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .transition-sub {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
    }
}

/* -----------------------
ページ遷移アニメーション (追加要素)
----------------------- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), visibility 1.2s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ロゴとキラキラ演出 */
.loader-content {
    position: relative;
    text-align: center;
}

.loader-logo {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0;
    transform: scale(0.9);
    animation: logoFadeIn 1.5s ease-out forwards;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* さりげない光の輪 */
.loader-shine {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    animation: shinePulse 3s infinite ease-in-out;
}

/* キラキラ粒子 */
.sparkle {
    position: absolute;
    background: var(--gold);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 4px var(--gold);
    animation: sparkleAnim 2s infinite;
}

.sparkle:nth-child(1) {
    top: -20px;
    left: 50%;
    animation-delay: 0.2s;
}

.sparkle:nth-child(2) {
    top: 50%;
    left: 120%;
    animation-delay: 0.5s;
    width: 3px;
    height: 3px;
}

.sparkle:nth-child(3) {
    top: 110%;
    left: 30%;
    animation-delay: 0.8s;
    width: 5px;
    height: 5px;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes shinePulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes sparkleAnim {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: scale(1) rotate(45deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(90deg);
        opacity: 0;
    }
}

/* -----------------------
   スクロール表示アニメーション (Bouncy & Cute)
   ----------------------- */
/* カードの外枠用（出現担当） */
.scroll-reveal-wrapper {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    /* ポヨンと弾むベジェ曲線 */
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-reveal-wrapper.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: flex;
}

/* テキスト等の通常アニメーション */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--accent-pink);
}

/* -----------------------
   共通背景アニメーション
   ----------------------- */
.gold-dust-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gold-dust {
    position: absolute;
    background: radial-gradient(circle, #fff, var(--gold));
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 8px var(--gold);
    animation: floatDust linear infinite;
}

@keyframes floatDust {
    0% {
        transform: translateY(110vh) translateX(0) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) translateX(30px) scale(1);
        opacity: 0;
    }
}

/* ============================================
   base_front.html 固有スタイル
   ============================================ */

/* -----------------------
   パララックス背景
   ----------------------- */
.parallax-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-sweet {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    will-change: transform;
}

.layer-back .floating-sweet {
    filter: blur(3px);
    opacity: 0.3;
    font-size: 1.5rem;
    z-index: 1;
}

.layer-front .floating-sweet {
    font-size: 4rem;
    opacity: 0.7;
    z-index: 3;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.05));
}

/* -----------------------
   ヘッダー
   ----------------------- */
header {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.7), var(--primary-pink));
    z-index: -2;
}

.hero-content {
    text-align: center;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 3px;
    border: 1px solid var(--gold);
    outline: 4px solid rgba(255, 255, 255, 0.5);
    outline-offset: -8px;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
    transform-style: preserve-3d;
    max-width: 90%;
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 10vw, 6rem);
    background: linear-gradient(45deg, #b8860b, #ffd700, #b8860b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.8));
    padding-right: .4rem;
    margin-bottom: 0.5rem;
    transform: translateZ(50px);
}

.subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    transform: translateZ(20px);
    color: #555;
    text-transform: uppercase;
}

.site-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    font-family: 'Great Vibes', cursive;
    font-size: .8rem;
    color: var(--gold);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gold);
    border-radius: 50px;
    padding: 8px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

/* -----------------------
   ナビゲーション (ハンバーガーメニュー & ドロワー)
   ----------------------- */
.menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.menu-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.menu-btn i {
    color: var(--gold);
    font-size: 1.5rem;
}

.pinned-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--gold-light);
}

.pinned-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 30px 20px;
    border-bottom: 1px solid var(--gold-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--gold);
}

.close-btn {
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--accent-pink);
    transform: rotate(90deg);
}

.pinned-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-msg {
    text-align: center;
    color: #999;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* ドロワー内のアイテムスタイル */
.pinned-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
}

.pinned-item:hover {
    transform: translateX(-5px);
    border-color: var(--gold-light);
}

.pinned-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gold-light);
}

.pinned-item-info {
    flex-grow: 1;
}

.pinned-item-title {
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 3px;
    font-weight: bold;
}

.pinned-item-date {
    font-size: 0.7rem;
    color: #999;
}

.remove-pin {
    color: #ccc;
    cursor: pointer;
    padding: 5px;
    transition: 0.3s;
}

.remove-pin:hover {
    color: var(--accent-pink);
}

/* -----------------------
   コンテナ & フィルター
   ----------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    position: relative;
    z-index: 10;
}

section {
    margin-bottom: 120px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-pink);
    margin-bottom: 40px;
    position: relative;
    font-family: 'Great Vibes', cursive;
}

.section-title::before,
.section-title::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    vertical-align: middle;
    margin: 0 15px;
}

/* --- 検索窓 --- */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border-radius: 30px;
    border: 2px solid var(--gold-light);
    font-size: 1.1rem;
    font-family: 'Shippori Mincho', serif;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
    color: var(--text-main);
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.search-icon {
    position: absolute;
    right: 20px;
    color: var(--gold);
    font-size: 1.2rem;
    pointer-events: none;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--gold);
    padding: 10px 25px;
    font-family: 'Shippori Mincho', serif;
    font-size: 1rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gold), #e6c257);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
    font-weight: bold;
    transform: scale(1.1);
    padding: 12px 35px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.filter-btn[data-category="clear"] {
    border-color: #999;
    color: #666;
}

.filter-btn[data-category="clear"]:hover {
    background: #f0f0f0;
}

/* -----------------------
   カードグリッド
   ----------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform: translateY(0);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glass-shadow-hover);
}

.card::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--gold-light);
    pointer-events: none;
    z-index: 5;
    transition: border-color 0.5s ease;
}

.card:hover::after {
    border-color: var(--gold);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 6;
    transition: none;
    pointer-events: none;
}

.card:hover::before {
    animation: shine 1s ease;
}

@keyframes shine {
    100% {
        left: 150%;
    }
}

/* ピンボタン */
.pin-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    color: #ccc;
}

.pin-btn:hover {
    transform: scale(1.1);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pin-btn.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.pin-btn i {
    pointer-events: none;
}

.card-image-box {
    height: 260px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--gold-light);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.card:hover .card-image {
    transform: scale(1.08);
}

.card-content {
    padding: 35px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #fff, #fffbf0);
    position: relative;
    z-index: 2;
}

.tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    font-size: 0.75rem;
    color: #fff;
    letter-spacing: 0.1em;
    background: var(--gold);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tag[data-cat="western"] {
    background: linear-gradient(135deg, #ff9a9e, #e91e63);
}

.tag[data-cat="japanese"] {
    background: linear-gradient(135deg, #84fab0, #2e8b57);
}

.tag[data-cat="other"] {
    background: linear-gradient(135deg, #a1c4fd, #1e90ff);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #333;
    font-family: 'Shippori Mincho', serif;
}

.card-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.card-desc {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    margin-top: auto;
    align-self: center;
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-bottom: 1px solid var(--gold-light);
    padding-bottom: 3px;
    transition: 0.3s;
}

.read-more:hover {
    border-bottom-color: var(--gold);
    color: #b8860b;
}

/* Featured (Latest 1st) */
.featured-wrapper {
    grid-column: 1 / -1;
}

.featured-card {
    flex-direction: row;
    min-height: 450px;
}

.featured-card .card-image-box {
    width: 55%;
    height: auto;
    border-bottom: none;
    border-right: 1px solid var(--gold-light);
}

.featured-card .card-content {
    width: 45%;
    justify-content: center;
    padding: 50px;
}

/* Archive Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
}

.mini-card {
    background: #fff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.mini-card::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid transparent;
    transition: 0.3s;
    pointer-events: none;
}

.mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
}

.mini-card:hover::after {
    border-color: var(--gold-light);
}

.mini-card .pin-btn {
    width: 30px;
    height: 30px;
    top: 5px;
    right: 5px;
    font-size: 0.8rem;
}

.mini-thumb {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 1px solid var(--gold-light);
    padding: 4px;
    background: #fff;
}

.mini-date {
    font-size: 0.7rem;
    color: #aaa;
    margin-bottom: 5px;
    display: block;
}

.mini-title {
    font-size: 0.9rem;
    color: #444;
    text-align: justify;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
    width: 100%;
    grid-column: 1 / -1;
}

.load-more-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 12px 40px;
    font-size: 1rem;
    font-family: 'Shippori Mincho', serif;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.4s;
    letter-spacing: 0.1em;
}

.load-more-btn:hover {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.hidden-archive-item {
    display: none !important;
}

/* .fade-in { animation: fadeIn 0.8s ease forwards; opacity: 0; transform: translateY(20px); }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } } */

@keyframes floatBtn {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* ============================================
   base_article.html 固有スタイル
   ============================================ */

/* -----------------------
   記事ヘッダー (Hero)
   ----------------------- */
.article-hero {
    min-height: 60vh;
    height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 120px;
}

.article-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7);
    transform: scale(1.1);
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.2);
    }
}

.article-header-content {
    text-align: center;
    color: #fff;
    padding: 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 900px;
    width: 90%;
    position: relative;
}

.article-header-content::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.category-label {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gold);
    margin-bottom: 20px;
    color: var(--gold);
}

h1.article-title {
    font-family: 'Playfair Display', 'Cormorant Garamond', 'Shippori Mincho', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    font-feature-settings: "palt";
}

.article-tags {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.article-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.article-tag:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.article-meta {
    font-size: 0.9rem;
    opacity: 0.9;
    font-family: 'Cormorant Garamond', serif;
}

/* -----------------------
   記事コンテナ
   ----------------------- */
.article-container {
    max-width: 800px;
    margin: -80px auto 0;
    background: var(--article-bg);
    padding: 60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.article-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gold);
}

/* -----------------------
   各セクションスタイル
   ----------------------- */
.lead-text {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: justify;
    margin-bottom: 50px;
    color: var(--western-accent);
    line-height: 2;
}

.lead-text::first-letter {
    font-size: 3rem;
    color: var(--gold);
    float: left;
    line-height: 0.8;
    margin-right: 10px;
    font-family: 'Great Vibes', cursive;
}

.main-content p {
    margin-bottom: 2rem;
    text-align: justify;
}

.main-content strong {
    background: linear-gradient(transparent 70%, rgba(212, 175, 55, 0.3) 70%);
    font-weight: bold;
    padding: 0 2px;
}

.main-content h2 {
    font-size: 1.6rem;
    color: var(--western-accent);
    margin: 3.5rem 0 1.5rem;
    text-align: center;
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content h2::before,
.main-content h2::after {
    content: '❧';
    color: var(--gold);
    margin: 0 15px;
    font-size: 1.5rem;
}

.content-image {
    width: 100%;
    height: auto;
    margin: 20px 0 40px;
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-caption {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: -30px;
    margin-bottom: 40px;
}

/* 特殊セクション共通 */
.special-box {
    background: #fffbf0;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid var(--gold-light);
    position: relative;
}

/* Shop Info (複数対応) */
.shop-section-title {
    text-align: center;
    font-family: 'Cormorant Garamond';
    color: var(--western-accent);
    font-size: 1.5rem;
    margin-top: 60px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gold-light);
    padding-bottom: 10px;
}

.shop-info-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: 0.3s;
}

.shop-info-card:hover {
    border-color: var(--gold-light);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.shop-name {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.shop-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.shop-link {
    font-size: 0.85rem;
    color: #999;
    display: inline-block;
}

.shop-link i {
    margin-left: 5px;
}

/* Google MAP 埋め込み */
.shop-map-wrap {
    margin-top: 15px;
    box-sizing: border-box;
    padding: 1rem 1rem .5rem;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
}

/* 界隈の反応 (Reactions) */
.reaction-box {
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    padding: 25px;
}

.reaction-title {
    font-weight: bold;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reaction-title i {
    color: #db2777;
}

/* ページめくりアニメーション共通 (Real Book Flip Version) */
.flip-container {
    perspective: 2000px;
    /* パースを深めにとって3D感を強調 */
    margin: 40px auto;
    cursor: pointer;
    position: relative;
    z-index: 10;
    max-width: 100%;
}

.flip-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
}

/* コンテンツ本体（めくった後に見える中身） */
.flip-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

/* カバー（めくる前の表紙） */
.flip-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;

    /* 軸を「左端」に固定して、本の背表紙のように振る舞わせる */
    transform-origin: left center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
    transform-style: preserve-3d;

    background: #fdfbf7;
    border: 1px solid rgba(212, 175, 55, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;

    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
    /* 影を控えめに */

    /* 裏面を見せる設定 */
    backface-visibility: visible;
}

/* カバー内のテキストやアイコン：めくった時に裏から透けないように隠す */
.flip-cover>* {
    backface-visibility: hidden;
}

/* 右上のリアルなめくれ（大きくして視認性アップ） */
.flip-cover::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    /* めくれた部分の裏側と、落ちる影 */
    background: linear-gradient(to bottom left, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.15) 50%, #f0f0f0 50%);
    border-radius: 0 0 0 10px;
    /* デフォルトで少し大きくめくれている状態 */
    border-width: 0 40px 40px 0;
    box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 6;
    backface-visibility: hidden;
}

/* めくれの下地（ハイライト） */
.flip-cover::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, transparent 45%, rgba(0, 0, 0, 0.05) 50%, rgba(255, 255, 255, 0) 65%);
    border-width: 0 40px 40px 0;
    transition: all 0.4s ease-out;
    pointer-events: none;
    z-index: 7;
    backface-visibility: hidden;
}

/* ホバー時の「めくり誘い」アニメーション */
.flip-container:hover .flip-cover::before {
    border-width: 0 60px 60px 0;
    /* カールが大きくなる */
    box-shadow: -6px 6px 12px rgba(0, 0, 0, 0.2);
}

.flip-container:hover .flip-cover::after {
    border-width: 0 60px 60px 0;
}

.flip-container:hover .flip-cover {
    /* ほんの少し浮かせつつ、SkewYで「斜めに引っ張る」感覚を出す */
    transform: rotateY(-15deg) skewY(2deg);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

/* ★クリックしてオープンした状態 (Book Flip with Fade Out) */
.flip-container.is-open .flip-cover {
    /* ページをめくりながらフェードアウト */
    transform: rotateY(-140deg);
    /* 完全に倒しきらなくてもフェードアウトで見えなくなるので少し浅めでもOK */
    opacity: 0;
    visibility: hidden;

    /* めくった後の影 */
    box-shadow: -10px 5px 25px rgba(0, 0, 0, 0.05);
    cursor: default;
    pointer-events: none;
    /* クリック無効化 */

    /* フェードアウト時間を調整 (transformより少し早く消えると自然) */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease 0.1s, visibility 0s linear 0.7s;
}

/* 開いた状態では右上のカール擬似要素を消す */
.flip-container.is-open .flip-cover::before,
.flip-container.is-open .flip-cover::after {
    opacity: 0;
    transition: opacity 0.2s;
}

/* テキスト等のアジャスト */
.trivia-cover i,
.mania-cover i {
    transition: transform 0.4s ease;
}

.flip-container:hover .trivia-cover i,
.flip-container:hover .mania-cover i {
    transform: scale(1.1) rotate(-5deg);
}

/* クリックを促すテキストのアニメーション */
.click-hint {
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: bold;
    color: var(--gold);
    animation: textPulse 2s infinite ease-in-out;
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }
}

/* めくった時の裏面の影などの演出があればリッチになるが今回はシンプルに */

/* 豆知識 (Trivia) 用スタイル上書き */
.trivia-box-content {
    background: #fffbf0;
    border-left: 4px solid var(--gold);
}

.trivia-cover {
    background: linear-gradient(135deg, #fffbf0 0%, #fff 100%);
    color: var(--gold);
}

.trivia-cover i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.trivia-cover-text {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
}

/* マニア向け (Mania) 用スタイル上書き */
.mania-box-content {
    background: #2c3e50;
    color: #eee;
}

.mania-cover {
    background: #34495e;
    color: #fff;
    border: 1px solid #2c3e50;
}

/* マニア向けドッグイヤーの色調整 */
.mania-cover::after {
    border-color: #2c3e50 #2c3e50 #f39c12 #2c3e50;
}

.mania-cover i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.mania-cover-text {
    font-family: 'Cormorant Garamond';
    letter-spacing: 0.1em;
    font-size: 1.5rem;
    color: var(--gold);
}

.mania-cover-sub {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 5px;
}


/* 豆知識・マニア向け内シェアボタン */
.flip-share-container {
    margin-top: 20px;
    text-align: right;
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
    padding-top: 15px;
}

.mania-box-content .flip-share-container {
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.flip-share-btn {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-main);
    text-decoration: none;
    background: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--text-main);
    transition: all 0.3s ease;
    font-weight: 500;
}

.flip-share-btn i {
    font-size: 1rem;
    margin-right: 4px;
    vertical-align: middle;
}

.flip-share-btn:hover {
    background: var(--text-main);
    color: #fff;
}

.mania-box-content .flip-share-btn {
    background: transparent;
    color: #eee;
    border: 1px solid #eee;
}

.mania-box-content .flip-share-btn:hover {
    background: #eee;
    color: var(--text-main);
}

/* 既存の .trivia-box, .mania-box, .digression-box を削除または無効化し、新しいHTML構造に合わせるため、
   JS側でクラス名を .flip-content 内の要素に割り当てるか、
   以下の古い定義はそのまま残しておいてJS側でラップして利用する。
   今回はJSでHTML構造をガラッと変えるので、CSSもそれに合わせて新規クラスを追加する形をとった。
   ※既存の .digression-box はそのまま残します
*/
.digression-box {
    font-style: italic;
    color: #555;
    background: transparent;
    border: none;
    padding: 0 20px;
    border-left: 1px solid #ddd;
}

/* 出典リスト */
.source-section {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.source-title {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.source-list {
    list-style: none;
    font-size: 0.8rem;
    color: #aaa;
    text-align: right;
}

.source-list li {
    margin-bottom: 5px;
}

.source-list a {
    color: #999;
    text-decoration: underline;
}

/* -----------------------
   アーカイブ (下部)
   ----------------------- */
.archive-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    /* スクロールアニメーション初期状態 */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.archive-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--accent-pink);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.archive-card {
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.archive-thumb {
    height: 150px;
    object-fit: cover;
    width: 100%;
}

.archive-info {
    padding: 15px;
}

.archive-title {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.archive-date {
    font-size: 0.75rem;
    color: #999;
}

/* -----------------------
   レスポンシブデザイン
   ----------------------- */
@media (max-width: 768px) {

    /* base_front.html 用 */
    h1 {
        font-size: 3.5rem;
        filter: drop-shadow(1px 1px 0px rgba(255, 255, 255, 0.8));
    }

    .hero-content {
        padding: 2rem;
        max-width: 95%;
    }

    .featured-card {
        flex-direction: column;
    }

    .featured-card .card-image-box,
    .featured-card .card-content {
        width: 100%;
    }

    .featured-card .card-image-box {
        height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--gold-light);
    }

    .pinned-drawer {
        width: 85%;
    }

    /* base_article.html 用 */
    .article-hero {
        min-height: 50vh;
        height: auto;
        padding: 100px 20px 80px;
    }

    .article-header-content {
        padding: 30px 20px;
    }

    .article-container {
        padding: 40px 20px;
        margin-top: -40px;
        width: 95%;
    }

    h1.article-title {
        font-size: 1.6rem;
    }

    .lead-text::first-letter {
        font-size: 2.5rem;
    }
}

@media (min-width: 769px) {
    .spOnly {
        display: none;
    }
}

/* Dual Shop Card (Online & Physical) */
.dual-shop-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.shop-left-col {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dual-shop-card>.shop-physical {
    flex: 1 1 300px;
}

.shop-online,
.shop-others,
.shop-physical {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: 0.3s;
}

.shop-online:hover,
.shop-others:hover,
.shop-physical:hover {
    border-color: var(--gold-light);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.shop-online h4,
.shop-others h4,
.shop-physical h4 {
    margin-top: 0;
    color: var(--gold);
    border-bottom: 1px dashed var(--gold-light);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.shop-online-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), #e6c257);
    color: white;
    padding: 12px 0;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.shop-online-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    color: white;
}

.shop-others-link {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 12px 0;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.shop-others-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
    color: white;
}

.shop-physical .shop-name {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 12px;
    display: block;
}

.shop-detail {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.shop-detail i {
    color: var(--gold);
    width: 20px;
    text-align: center;
    margin-right: 5px;
}

.shop-detail.remarks {
    background: #fdfbf7;
    padding: 15px;
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    margin-top: 15px;
    font-size: 0.9rem;
}