/*
Theme Name: Stand.fm Zine Theme
Author: AI Developer
Version: 1.3
Description: A colorful, zine-style theme for Stand.fm fans.
*/

:root {
    --color-bg: #fffbf0;
    --color-text: #1a1a1a;
    
    /* CMYK Palette */
    --c-cyan: #00f2ea;
    --c-magenta: #ff0050;
    --c-yellow: #ffde59;
    --c-lime: #ccff00;
    --c-purple: #8a2be2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--color-text);
    line-height: 1.5;
    background-color: var(--color-bg);
    background-image: 
        radial-gradient(var(--c-cyan) 1.5px, transparent 1.5px),
        radial-gradient(var(--c-magenta) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    overflow-x: hidden;
}

/* --- MARQUEE --- */
.marquee-wrapper {
    background: #000; color: #fff; padding: 5px 0;
    overflow: hidden; white-space: nowrap;
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, var(--c-cyan), var(--c-magenta), var(--c-yellow), var(--c-lime)) 1;
    position: sticky; top: 0; z-index: 100;
}
.marquee-content {
    display: inline-block; font-family: 'Dela Gothic One', cursive;
    font-size: 0.8rem; letter-spacing: 0.05em;
    animation: marquee 40s linear infinite;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }

/* --- HEADER --- */
header { padding: 40px 0 30px; text-align: center; }
.site-title-box {
    display: inline-block; background: #fff; padding: 10px 25px;
    border: 2px solid #000; transform: rotate(-1deg);
    box-shadow: 4px 4px 0 var(--c-cyan); transition: transform 0.2s;
}
.site-title-box:hover { transform: rotate(0deg) scale(1.02); box-shadow: 2px 2px 0 var(--c-magenta); }
.site-title {
    font-family: 'Dela Gothic One', cursive; font-size: 2.2rem;
    text-transform: uppercase; line-height: 1; margin: 0;
}
.site-title a { color: #000; text-decoration: none; }
.site-subtitle {
    font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 0.9rem;
    background: var(--c-yellow); color: #000; padding: 3px 15px;
    border: 1px solid #000; margin-top: 10px; display: inline-block;
    transform: rotate(1deg); box-shadow: 2px 2px 0 #000;
}

/* --- SECTION LABEL --- */
.section-label {
    font-family: 'Dela Gothic One', cursive; font-size: 1.2rem;
    margin-bottom: 20px; display: inline-block; background: #fff;
    padding: 5px 15px; transform: skewX(-10deg); border: 2px solid #000;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

/* --- PICKUP SECTION (Editor's Pick) --- */
.pickup-section { margin-bottom: 60px; }
.pickup-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* --- LATEST SCROLLER --- */
.latest-section { margin-bottom: 60px; }
.post-scroller {
    display: flex; gap: 20px; overflow-x: auto; padding-bottom: 30px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--c-magenta) #eee; scrollbar-width: thin;
}
.post-scroller::-webkit-scrollbar { height: 8px; }
.post-scroller::-webkit-scrollbar-track { background: #eee; border-radius: 4px; }
.post-scroller::-webkit-scrollbar-thumb { background: var(--c-magenta); border-radius: 4px; }

/* Post Card */
.post-card {
    min-width: 300px; max-width: 300px; background-color: #fff;
    border: 2px solid #000; position: relative; transition: transform 0.2s;
    display: flex; flex-direction: column; scroll-snap-align: start;
}
.post-card:nth-child(4n+1) { box-shadow: 6px 6px 0 var(--c-cyan); }
.post-card:nth-child(4n+2) { box-shadow: 6px 6px 0 var(--c-magenta); }
.post-card:nth-child(4n+3) { box-shadow: 6px 6px 0 var(--c-lime); }
.post-card:nth-child(4n+4) { box-shadow: 6px 6px 0 var(--c-purple); }
.post-card:hover { transform: translateY(-4px); }

/* --- SPECIAL PICKUP (God Episode Style) --- */
.special-pickup {
    border-width: 3px;
    box-shadow: 8px 8px 0 var(--c-yellow), 12px 12px 0 #000 !important;
    transform: rotate(-1deg);
    margin: 10px; z-index: 5;
}
.special-pickup:nth-child(even) { transform: rotate(1deg); }
.special-pickup:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 6px 6px 0 var(--c-magenta), 10px 10px 0 #000 !important;
    z-index: 15;
}
.god-label {
    position: absolute; top: 0; left: 0; width: 100%;
    background: linear-gradient(90deg, #ffd700, #ffec8b, #ffd700);
    color: #000; font-family: 'Dela Gothic One', cursive; font-size: 0.9rem;
    text-align: center; padding: 6px 0; z-index: 20;
    border-bottom: 3px solid #000; text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.special-pickup .card-body {
    background-color: #fffef0;
    background-image: radial-gradient(#ffd700 1.5px, transparent 1.5px);
    background-size: 12px 12px;
}

.card-image-area {
    position: relative; height: 160px; border-bottom: 2px solid #000;
    overflow: hidden; background: #000;
}
.card-image {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(100%); transition: 0.3s;
}
.post-card:hover .card-image { filter: grayscale(0%); transform: scale(1.05); }

.tape-accent {
    position: absolute; top: -8px; left: 50%; width: 60px; height: 18px;
    background: rgba(255, 255, 255, 0.5); border: 1px dotted rgba(0,0,0,0.2);
    transform: rotate(2deg) translateX(-50%); z-index: 10; backdrop-filter: blur(2px);
}
.duration-badge-card {
    position: absolute; bottom: 5px; right: 5px; background: #000;
    color: #fff; font-size: 0.7rem; padding: 2px 6px; font-family: monospace;
    z-index: 5; border-radius: 2px;
}
.duration-badge {
    position: absolute; bottom: 0; right: 0; background: var(--c-lime);
    color: #000; font-weight: bold; font-size: 0.8rem; padding: 3px 8px;
    border-top: 2px solid #000; border-left: 2px solid #000;
}

.card-body { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; background: #fff; position: relative; }

.post-date-sticker {
    position: absolute; top: 10px; right: 10px; color: #000; background: #fff;
    font-family: 'Dela Gothic One', cursive; font-size: 0.7rem; padding: 4px 8px;
    transform: rotate(3deg); border: 1px solid #000; box-shadow: 2px 2px 0 rgba(0,0,0,0.2); z-index: 5;
}
.special-pickup .post-date-sticker { top: 40px; }

.post-title {
    font-family: 'Zen Maru Gothic', sans-serif; font-weight: 900; font-size: 1rem;
    line-height: 1.4; margin-bottom: 8px; color: #000;
}
.post-title span { background: linear-gradient(transparent 70%, var(--c-yellow) 70%); padding: 0 2px; }
.post-title a { text-decoration: none; color: inherit; }

.post-excerpt { font-size: 0.8rem; color: #444; margin-bottom: 10px; flex-grow: 1; line-height: 1.4; }

.card-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto; padding-top: 10px; border-top: 2px dashed #eee;
}
.read-more {
    font-family: 'Dela Gothic One', cursive; font-size: 0.7rem; background: #000; color: #fff;
    padding: 5px 12px; text-decoration: none; border-radius: 4px; transition: 0.2s;
}
.read-more:hover { background: var(--c-magenta); transform: scale(1.05); }

.standfm-link-icon {
    color: #000; display: flex; align-items: center; padding: 5px;
    border-radius: 50%; transition: 0.2s;
}
.standfm-link-icon:hover { background: #f0f0f0; color: var(--c-cyan); }

.like-btn {
    background: transparent; border: none; cursor: pointer; color: #ccc;
}
.like-btn svg { width: 24px; height: 24px; fill: currentColor; stroke: #000; stroke-width: 2; }
.like-btn:hover { color: #ffb6c1; transform: scale(1.2); }
.like-btn.liked { color: var(--c-magenta); }
.like-btn.liked svg { stroke: var(--c-magenta); }

/* Mobile Button */
.load-more-btn-container { display: none; text-align: center; margin-top: 20px; }
.load-more-btn {
    background: #000; color: #fff; font-family: 'Dela Gothic One', cursive;
    padding: 12px 30px; border: none; font-size: 0.9rem; cursor: pointer;
    box-shadow: 4px 4px 0 var(--c-yellow); transition: 0.2s;
}
.load-more-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--c-yellow); background: var(--c-magenta); }

/* --- ARCHIVE LIST --- */
.archive-section {
    margin-bottom: 60px; background: #fff; border: 2px solid #000;
    box-shadow: 6px 6px 0 #ccc; padding: 20px; position: relative;
}
.archive-section::before {
    content: ''; position: absolute; top: -10px; left: 20px; width: 80px; height: 25px;
    background: rgba(255,222,89, 0.8); transform: rotate(-2deg); z-index: 5;
    box-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}
.archive-table { width: 100%; border-collapse: collapse; font-family: 'Zen Maru Gothic', sans-serif; }
.archive-row { border-bottom: 1px dashed #eee; transition: 0.2s; }
.archive-row:hover { background: #f0faff; }
.archive-cell { padding: 8px 5px; font-size: 0.8rem; }
.col-date { font-family: 'Dela Gothic One', cursive; color: #888; width: 60px; font-size: 0.75rem; }
.col-title a {
    text-decoration: none; color: #000; display: block; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; max-width: 400px; font-weight: 700;
}
.col-play { width: 40px; text-align: right; }
.mini-play-btn {
    background: #000; color: #fff; border: none; border-radius: 50%;
    width: 24px; height: 24px; font-size: 0.6rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.mini-play-btn:hover { background: var(--c-cyan); color: #000; }
.archive-row.hidden-row { display: none; }
.col-like { width: 40px; text-align: center; }
.archive-like-btn {
    width: 24px; height: 24px; padding: 0;
    display: flex; align-items: center; justify-content: center;
}
.archive-like-btn svg { width: 18px; height: 18px; }

/* --- NEWS SECTION --- */
.news-section {
    margin-bottom: 60px; background: #fff; border: 2px solid #000;
    position: relative; padding: 20px; box-shadow: 6px 6px 0 var(--c-purple);
}
.news-scroll-area {
    max-height: 180px; overflow-y: auto; padding-right: 10px;
    scrollbar-color: var(--c-purple) #eee; scrollbar-width: thin;
}
.news-scroll-area::-webkit-scrollbar { width: 8px; }
.news-scroll-area::-webkit-scrollbar-track { background: #eee; }
.news-scroll-area::-webkit-scrollbar-thumb { background: var(--c-purple); border-radius: 4px; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item { display: flex; border-bottom: 1px solid #eee; padding: 10px 0; align-items: baseline; }
.news-item:last-child { border-bottom: none; }
.news-date {
    font-family: 'Dela Gothic One', cursive; font-size: 0.75rem;
    color: #fff; background: #000; padding: 2px 6px; margin-right: 10px;
    transform: skewX(-10deg); white-space: nowrap;
}
.news-title { font-size: 0.9rem; font-weight: 700; color: #333; }
.news-title a { text-decoration: none; color: inherit; }
.news-title a:hover { color: var(--c-purple); text-decoration: underline; }

/* --- SINGLE PAGE --- */
.single-view {
    background: #fff; border: 2px solid #000; margin-top: 30px;
    box-shadow: 8px 8px 0 var(--c-yellow); max-width: 800px;
    margin-left: auto; margin-right: auto;
}
.single-header {
    padding: 30px 20px; background: linear-gradient(135deg, var(--c-cyan), var(--c-lime));
    border-bottom: 2px solid #000; text-align: center;
}
.single-title {
    font-family: 'Zen Maru Gothic', sans-serif; font-weight: 900;
    font-size: 1.5rem; line-height: 1.3; color: #000; background: #fff;
    padding: 15px 25px; border: 2px solid #000;
    box-shadow: 4px 4px 0 var(--c-magenta); display: inline-block; transform: rotate(-1deg);
}
.single-meta {
    margin-top: 15px; font-family: 'Dela Gothic One', cursive;
    font-size: 0.8rem; color: #000;
}
.single-meta span { background: #fff; padding: 3px 8px; border: 1px solid #000; margin: 0 5px; box-shadow: 2px 2px 0 rgba(0,0,0,0.1); }

.content-area { padding: 30px; }
.player-area {
    width: 100%; aspect-ratio: 16/9; background: #000; display: flex;
    align-items: center; justify-content: center; color: #fff;
    border: 2px solid #000; border-radius: 4px; margin-bottom: 20px;
}
.action-buttons { text-align: center; margin-bottom: 30px; }
.standfm-action-btn {
    display: inline-block; background: #000; color: #fff;
    font-family: 'Zen Maru Gothic', sans-serif; font-weight: 900;
    padding: 12px 30px; border-radius: 50px; text-decoration: none;
    transition: 0.2s; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.standfm-action-btn:hover { background: var(--c-magenta); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,0,80,0.3); }

.gemini-box {
    background: #f0f8ff; border: 1px solid #000; padding: 20px;
    margin-bottom: 30px; position: relative; box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    font-size: 0.9rem;
}
.gemini-label {
    font-family: 'Dela Gothic One', cursive; color: var(--c-magenta);
    font-size: 0.8rem; display: block; margin-bottom: 10px;
    border-bottom: 1px dashed #ccc; padding-bottom: 5px;
}
.styled-link {
    display: inline-block; padding: 8px 16px; border: 1px solid #000;
    background: #fff; color: #000; text-decoration: none; font-weight: 700;
    margin: 0 5px 10px 0; transition: 0.2s; font-family: 'Zen Maru Gothic', sans-serif;
    border-radius: 50px; font-size: 0.85rem;
}
.styled-link:hover { background: #000; color: var(--c-cyan); }


/* =========================================
   NEWS (お知らせ) CUSTOM STYLES
   ========================================= */

/* --- News Single (Scrapbook Style) --- */
.news-paper-wrapper {
    max-width: 800px;
    margin: 40px auto;
    position: relative;
    padding: 0 10px;
}

.news-paper {
    background: #fff;
    padding: 40px;
    border: 1px solid #ccc;
    box-shadow: 
        1px 1px 3px rgba(0,0,0,0.1),
        10px 10px 0 rgba(0,0,0,0.05); /* 紙の浮き感 */
    position: relative;
    transform: rotate(-0.5deg); /* 微妙に傾ける */
    overflow: hidden; /* テープのはみ出し防止 */
}

/* マスキングテープ装飾 */
.news-tape-top {
    position: absolute;
    top: -15px; left: 50%;
    width: 120px; height: 35px;
    background: rgba(255,222,89, 0.7);
    border-left: 2px dashed rgba(0,0,0,0.1);
    border-right: 2px dashed rgba(0,0,0,0.1);
    transform: translateX(-50%) rotate(2deg);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.news-tape-corner {
    position: absolute;
    width: 80px; height: 30px;
    background: rgba(204, 255, 0, 0.6); /* Lime transparent */
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.tape-tl { top: 15px; left: -25px; transform: rotate(-45deg); }
.tape-br { bottom: 15px; right: -25px; transform: rotate(-45deg); background: rgba(0, 242, 234, 0.6); /* Cyan */ }

/* News Header */
.news-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px dashed #eee;
    padding-bottom: 20px;
}
.news-date-label {
    display: inline-block;
    background: #000; color: #fff;
    font-family: 'Dela Gothic One', cursive;
    font-size: 0.8rem; padding: 4px 12px;
    transform: skewX(-10deg);
    margin-bottom: 10px;
}
.news-main-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1.4;
    color: #1a1a1a;
}

/* News Body (Block Editor Styles) */
.news-body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: #333;
    font-size: 1rem;
    line-height: 1.8;
}

/* Paragraphs */
.news-body p { margin-bottom: 1.5em; }

/* Headings within content */
.news-body h2 {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 2em 0 1em;
    padding-bottom: 5px;
    border-bottom: 3px solid var(--c-cyan);
    display: inline-block;
    width: 100%;
}
.news-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5em 0 1em;
    background: linear-gradient(transparent 60%, var(--c-yellow) 60%);
    display: inline;
    padding: 0 5px;
}

/* Lists */
.news-body ul, .news-body ol {
    margin-bottom: 1.5em;
    padding-left: 20px;
    background: #fcfcfc;
    border: 2px solid #1a1a1a;
    padding: 20px 20px 20px 40px;
    border-radius: 4px;
    box-shadow: 4px 4px 0 #eee;
}
.news-body ul li { list-style-type: square; margin-bottom: 5px; }
.news-body ol li { margin-bottom: 5px; }

/* Blockquote */
.news-body blockquote {
    margin: 2em 0;
    padding: 20px;
    background: #f0f0f0;
    border-left: 5px solid var(--c-magenta);
    font-style: italic;
    color: #555;
}

/* Links */
.news-body a {
    color: var(--c-purple);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    transition: 0.2s;
}
.news-body a:hover {
    background: var(--c-purple);
    color: #fff;
    text-decoration: none;
}

/* WP Buttons Block */
.news-body .wp-block-button__link {
    background-color: #000;
    color: #fff !important;
    border-radius: 50px;
    padding: 12px 30px;
    font-family: 'Dela Gothic One', cursive;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--c-cyan);
    transition: 0.2s;
    border: 2px solid #000;
}
.news-body .wp-block-button__link:hover {
    background-color: #fff;
    color: #000 !important;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--c-cyan);
}

/* Images */
.news-body img {
    max-width: 100%; height: auto;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

/* Footer Navigation */
.news-footer-nav {
    margin-top: 40px;
    display: flex; justify-content: space-between;
    border-top: 2px dashed #ccc;
    padding-top: 20px;
}
.news-nav-link {
    font-family: 'Dela Gothic One', cursive;
    font-size: 0.8rem;
    color: #000; text-decoration: none;
    padding: 5px 10px;
    border: 1px solid transparent;
}
.news-nav-link:hover { border-bottom: 2px solid #000; }


/* --- News Archive (Notice Board Style) --- */
.news-archive-board {
    background: #fdfdfd;
    padding: 20px;
    border: 4px solid #1a1a1a;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.05),
        8px 8px 0 var(--c-purple);
    max-width: 900px;
    margin: 30px auto;
}

.news-archive-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}
.news-archive-item:hover {
    background: #f9f9f9;
    padding-left: 20px; /* Slide effect */
    border-left: 4px solid var(--c-magenta);
}

.news-archive-date {
    font-family: 'Dela Gothic One', cursive;
    font-size: 0.8rem;
    color: #888;
    width: 100px;
    flex-shrink: 0;
}
.news-archive-title a {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    text-decoration: none;
}
.news-archive-title a:hover {
    color: var(--c-purple);
    text-decoration: underline;
}

/* Pagination */
.news-pagination {
    margin-top: 30px; text-align: center;
    font-family: 'Dela Gothic One', cursive;
}
.news-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 2px solid #000;
    color: #000; text-decoration: none;
    background: #fff;
}
.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
    background: #000; color: #fff;
    box-shadow: 4px 4px 0 var(--c-lime);
}

/* --- SITE TITLE BREAK (Mobile Only) --- */
/* PC初期状態では非表示 */
.sp-title-break {
    display: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* スマホで改行を有効化 */
    .sp-title-break {
        display: block; 
    }
    .site-title {
        line-height: 1.4; /* タイトル行間を調整 */
        font-size: 1.8rem; /* ★追加: スマホ時は少し小さく (デフォルト2.2rem) */
    }

    .pickup-grid { flex-direction: column; align-items: center; }
    .post-scroller { flex-direction: column; overflow-x: hidden; gap: 15px; }
    .post-scroller.horizontal-mode { flex-direction: row; overflow-x: auto; }
    .post-card { min-width: 100%; max-width: 100%; }
    .post-scroller.horizontal-mode .post-card { min-width: 280px; max-width: 280px; }
    .post-card.hidden-mobile { display: none; }
    .load-more-btn-container { display: block; }
    .col-title a { max-width: 180px; }
    
    /* News Responsive */
    .news-paper { padding: 25px 15px; transform: none; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .news-archive-item { flex-direction: column; align-items: flex-start; }
    .news-archive-date { margin-bottom: 5px; font-size: 0.7rem; }
}