/* =================================================
   Article / News Page Styles
   Used only for individual article pages
================================================= */

/* Page Scope */
.news-page {
    background-color: var(--secondary-color);
}

/* =================================================
   Page Title Override (News Article Only)
================================================= */

.news-page .page-title-section {
    background-color: #111;
}

.news-page .page-title-section .tp-title_jp,
.news-page .page-title-section .tp-title_en {
    color: #fff;
}

.news-page .breadcrumbs {
    color: #bbb;
}

.news-page .breadcrumbs a:hover {
    color: var(--primary-color);
}

/* =================================================
   Article Layout
================================================= */

.article {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(50px, 8vh, 90px) 30px;
}

@media (max-width: 768px) {
    .article {
        padding: 40px 20px;
    }
}

/* =================================================
   Article Header
================================================= */

.article-header {
    margin-bottom: 50px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--medium-grey);
    margin-bottom: 18px;
}

.article-category {
    background-color: var(--light-grey);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
}

.article-date {
    font-weight: 700;
}

.article-title {
    font-family: var(--heading-font);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-color);
}

/* =================================================
   Hero Image
================================================= */

.article-hero {
    margin: 40px 0 50px;
}

.article-hero img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

/* =================================================
   Article Body
================================================= */

.article-body {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--dark-grey);
}

.article-body > * + * {
    margin-top: 1.6em;
}

/* Paragraph */
.article-body p {
    margin: 0;
}

/* Headings */
.article-body h2 {
    font-family: var(--heading-font);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--text-color);
    margin-top: 2.5em;
    margin-bottom: 0.8em;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.article-body h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 2em;
    margin-bottom: 0.6em;
}

/* Lists */
.article-body ul,
.article-body ol {
    padding-left: 1.5em;
}

.article-body li {
    margin-bottom: 0.6em;
}

/* Strong / Emphasis */
.article-body strong {
    font-weight: 700;
    color: var(--text-color);
}

.article-body em {
    font-style: italic;
}

/* =================================================
   Figures & Images
================================================= */

.article-body figure {
    margin: 40px 0;
}

.article-body figure img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.article-body figcaption {
    font-size: 0.85rem;
    color: var(--medium-grey);
    text-align: center;
    margin-top: 10px;
}

/* Inline Image */
.article-body img {
    max-width: 100%;
    height: auto;
}

/* =================================================
   Blockquote
================================================= */

.article-body blockquote {
    margin: 40px 0;
    padding: 25px 30px;
    background-color: var(--light-grey);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: var(--text-color);
}

.article-body blockquote p {
    margin: 0;
}

/* =================================================
   Links (Article Only)
================================================= */

.article-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-body a:hover {
    text-decoration: none;
}

/* =================================================
   Article Footer
================================================= */

.article-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.article-footer-note {
    font-size: 0.9rem;
    color: var(--medium-grey);
}

/* =================================================
   NewsPicks Banner
================================================= */

.np-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 15px;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.np-banner.is-visible {
    transform: translateY(0);
}

.np-banner__close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.np-banner__close:hover {
    color: #333;
}

.np-banner__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.np-banner__thumbwrap {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f0f0f0;
}

.np-banner__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-banner__text {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-color);
}

/* =================================================
   NewsPicks Banner (SP)
================================================= */

@media (max-width: 480px) {
    .np-banner {
        width: 86%;
        left: 7%;
        right: auto;
        bottom: 12px;
        padding: 10px;
        border-radius: 6px;
    }

    .np-banner__thumbwrap {
        padding-bottom: 50%;
        margin-bottom: 8px;
    }

    .np-banner__text {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .np-banner__close {
        font-size: 1.2rem;
        top: 3px;
        right: 3px;
    }
}
