/* 新聞記事全体を囲むコンテナ */
.newspaper {
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", serif;
    color: #000;
    line-height: 1.75;
    margin: 2em auto;
    padding: 3em;
    max-width: 800px;
    background-color: #fdfcf8; /* わずかにクリーム色がかった新聞紙風 */
    border: 1px solid #ccc;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: relative;
}

/* 新聞の質感を出す擬似要素 */
.newspaper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #333;
}

/* 大見出し */
.newspaper h1 {
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN", serif;
    font-weight: 900;
    font-size: 32px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #000;
    border-bottom: 4px double #333;
    padding-bottom: 0.5em;
    margin-bottom: 0.8em;
    text-align: center;
}

/* 小見出し */
.newspaper .newspaper-content h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 2em;
    margin-bottom: 0.8em;
    padding: 0.5em 0;
    border-top: 1px solid #666;
    border-bottom: 1px solid #666;
    letter-spacing: 0.05em;
}

/* 本文の段落 */
.newspaper .newspaper-content p {
    text-indent: 1em; /* 段落の字下げ */
    margin: 0 0 1em 0;
    text-align: justify;
    letter-spacing: 0.03em;
}

/* 最初の段落（リード文）を強調 */
.newspaper .newspaper-content > p:first-of-type {
    font-size: 18px;
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 1.5em;
    padding: 1em;
    background-color: #f5f5f5;
    border-left: 4px solid #333;
    text-indent: 0;
}

/* 発行日時 */
.newspaper .meta {
    font-size: 14px;
    color: #666;
    text-align: right;
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #ccc;
    font-family: "Hiragino Sans", "メイリオ", sans-serif;
}


/* 引用符を使った強調表現 */
.newspaper .newspaper-content p:has(span[class*="name"]) {
    position: relative;
}


/* レスポンシブ対応 */
@media (max-width: 600px) {
    .newspaper {
        padding: 1.5em;
    }

    .newspaper h1 {
        font-size: 24px;
    }

    .newspaper .newspaper-content h2 {
        font-size: 18px;
    }

    .newspaper .newspaper-content > p:first-of-type {
        font-size: 1.1rem;
    }
}

/* 印刷時の最適化 */
@media print {
    .newspaper {
        box-shadow: none;
        border: none;
        background-color: white;
    }

    .newspaper::before {
        display: none;
    }
}

/* ===== 新聞ヘッダ（カテゴリ + タイトル + 日付） ===== */
.newspaper-header-final {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f8f9fa;
    padding: 8px;
    margin: -15px -15px 5px -15px;
}

.newspaper-category-final {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background: #fff;
    padding: 4px 12px;
    border: 1px solid #333;
    border-radius: 3px;
}

.newspaper-title-section {
    text-align: right;
    flex: 1;
}

.newspaper-title-final {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    font-family: serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 2px;
    margin-top: 0;
    line-height: 1;
}

.newspaper-date-final {
    font-size: 11px;
    color: #666;
    font-family: serif;
}

/* ===== トップ画面：週刊POG-INFO 商品棚風横並び ===== */
.news-shelf-wrapper {
    margin-top: 24px;
}

.news-shelf-wrapper .shelf-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    padding-left: 4px;
    border-left: 4px solid #333;
}

.news-shelf {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 16px;
    -webkit-overflow-scrolling: touch;
}

.news-shelf::-webkit-scrollbar {
    height: 8px;
}

.news-shelf::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

.news-shelf .shelf-item {
    flex: 0 0 280px;
    width: 280px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform .15s ease;
}

.news-shelf .shelf-item:hover {
    transform: translateY(-2px);
}

.news-shelf .article-mini {
    width: 280px;
    height: 400px;
    overflow: hidden;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.12);
    background: #fefcf5;
    position: relative;
}

/* 縮小表示用のラッパー：原寸700pxの記事を0.40倍に（少し大きめの文字） */
.news-shelf .article-mini > .newspaper {
    width: 700px;
    height: 1000px;
    transform: scale(0.40);
    transform-origin: top left;
    pointer-events: none;
    margin: 0;
    padding: 24px;
    box-sizing: border-box;
}

.news-shelf .shelf-item-meta {
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}