/* article_style.css */
.article-container {
    color: #333;
    line-height: 1.8;
}

/* PDF Exact Header Styles */
.pdf-finance-banner {
    display: flex;
    margin-bottom: 30px;
}

.pfb-left {
    width: 42%;
}

.pfb-cover-placeholder {
    width: 100%;
    height: 300px;
    background-color: #dcdcdc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border: 1px solid #bbb;
    background-image: linear-gradient(45deg, #e5e5e5 25%, transparent 25%, transparent 75%, #e5e5e5 75%, #e5e5e5),
        linear-gradient(45deg, #e5e5e5 25%, transparent 25%, transparent 75%, #e5e5e5 75%, #e5e5e5);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.pfb-right {
    width: 58%;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
}

.pfb-logo-area {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-bottom: 30px;
    margin-top: 10px;
}

.pfb-logo-text {
    text-align: center;
    margin-right: 15px;
}

.pfb-the-finance {
    font-style: italic;
    font-size: clamp(20px, 3.5vw, 28px);
    color: #001A5E;
    letter-spacing: 2px;
    margin-bottom: -15px;
    padding-left: 10px;
}

.pfb-finance-main {
    font-weight: 900;
    font-style: italic;
    font-size: clamp(36px, 6.5vw, 60px);
    color: #001A5E;
    letter-spacing: -3px;
    transform: scaleX(1.1);
    transform-origin: right center;
    display: inline-block;
    white-space: nowrap;
}

.pfb-issue-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 10px;
}

.pfb-issue-date {
    color: #BFA75D;
    /* Gold */
    text-align: center;
    line-height: 0.9;
    margin-bottom: 10px;
}

.pfb-month {
    font-size: 58px;
    font-weight: bold;
}

.pfb-year {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 4px;
}

.pfb-issue-number {
    background-color: #BFA75D;
    color: #fff;
    padding: 15px 12px;
    font-size: 16px;
}

/* Specific Article H1 in PDF Style */
.article-header-pdf {
    display: flex;
    align-items: stretch;
    /* Stretch to children height */
    margin-top: 15px;
}

.article-category-pdf {
    background-color: #BFA75D;
    color: #111;
    font-weight: bold;
    font-size: 16px;
    width: 36px;
    border-radius: 18px;
    /* makes it a pill shape */
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    line-height: 1.1;
}

.article-category-pdf>span {
    display: block;
    margin-bottom: 2px;
}

.article-category-pdf>span:last-child {
    margin-bottom: 0;
}

.article-category-pdf.tokushu>span:first-child {
    margin-bottom: 1.5em;
}

.article-category-pdf.spot {
    background-color: #7AB87A;
    /* Green for SPOT */
}

.article-category-pdf.kantougen {
    background-color: #BFA75D;
    /* Gold for 巻頭言 */
    color: #fff;
}

.article-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-title-pdf {
    margin: 0;
    color: #222;
    line-height: 1.35;
}

.title-sub {
    display: block;
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 5px;
}

.title-main {
    display: block;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.article-author {
    font-size: 15px;
    text-align: right;
    color: #555;
    margin-top: 20px;
}

.article-paragraph.noindent {
    text-indent: 0;
}

.article-paragraph.nomargin {
    margin: 0;
}

.bold {
    font-weight: bold;
}

.small {
    font-size: 80%;
}

.right {
    text-align: right;
}

.center {
    text-align: center;
}

.left {
    text-align: left;
}

.indent1-1 {
    text-indent: -1em;
    padding-left: 1em;
}

.indent2-2 {
    text-indent: -2em;
    padding-left: 2em;
}

.indent2-3 {
    text-indent: -2em;
    padding-left: 3em;
}

/* Magazine Table of Contents (CONTENTS) */
.magazine-toc {
    margin: 30px 0 20px 0;
    border-bottom: 3px solid #555;
}

.magazine-toc-header {
    background-color: #004098;
    color: #fff;
    text-align: center;
    font-size: 22px;
    padding: 8px 0;
    letter-spacing: 2px;
}

.magazine-toc-body {
    display: flex;
    margin-top: 10px;
}

.toc-column {
    width: 50%;
    box-sizing: border-box;
}

.toc-left {
    padding-right: 15px;
}

.toc-right {
    padding-left: 15px;
    border-left: 1px solid #ccc;
}

.toc-section {
    background-color: #E8E8E8;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: bold;
    color: #111;
    margin: 20px 0 10px 0;
    letter-spacing: 1px;
}

.toc-column .toc-section:first-child {
    margin-top: 0;
}

.toc-section-plain {
    font-size: 13px;
    color: #111;
    margin: 20px 0 10px 0;
}

.toc-section-plain::before {
    content: "□ ";
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.toc-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 10px;
    color: #333;
}

.toc-list a {
    color: #2F5C9D;
    text-decoration: underline;
    font-size: 14px;
    text-underline-offset: 2px;
    display: block;
}

.toc-list a:hover {
    color: #002366;
}

.toc-list .toc-sub {
    font-size: 13px;
    font-weight: normal;
}

/* ===== バックナンバー等リンク ===== */
.toc-links {
    font-size: 14px;
    line-height: 2;
}

.toc-links a {
    color: #003598;
    text-decoration: underline;
}

.toc-links a:hover {
    text-decoration: none;
}

/* ===== 大見出し（カテゴリ + タイトル + 著者） ===== */
.article-main-heading {
    margin: 50px 0 40px;
    padding-top: 15px;
    background-color: #f7f9fc;
    border-top: 10px solid #004098;
}

.article-main-heading-category {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding: 0 30px 3px;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.article-main-heading-category .pdf-link {
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0;
}

.article-main-heading-category .pdf-link a {
    color: #2F5C9D;
    text-decoration: underline;
}

.article-main-heading-divider {
    border: none;
    border-top: 1px solid #999;
    margin: 0 30px 15px;
}

.article-main-heading-title {
    font-size: 24px;
    font-weight: bold;
    color: #111;
    line-height: 1.5;
    padding: 0 30px;
    margin: 0 0 15px;
}

.article-main-heading-author {
    font-size: 18px;
    font-weight: bold;
    color: #111;
    text-align: right;
    padding: 0 30px 0;
    margin: 0;
}

/* 大見出し直下の画像 */
.image {
    margin: 0 0 30px;
}

.nomargin {
    margin: 0 !important;
}

.image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 画像サイズバリエーション */
.image.img-200px {
    width: 200px;
}

.image.img-half {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.image.img-33 {
    width: 33%;
    margin-left: auto;
    margin-right: auto;
}

.image.img-70 {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

/* 囲みボックス */
.article-box {
    border: 2px solid #333;
    padding: 20px 25px;
    margin: 30px 0;
}

.article-box h4 {
    margin-top: 0;
}

.article-box p {
    margin-bottom: 0;
}

/* 黒背景ラベル */
.article-label {
    background-color: #111;
    color: #fff;
    font-weight: bold;
    font-size: 1em;
    padding: 4px 20px;
    display: inline-block;
    margin: 0 0 10px;
}

/* ロゴ付きバナー */
.logo-banner {
    display: flex;
    align-items: stretch;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    margin: 30px auto;
    gap: 0;
    width: fit-content;
}

.logo-banner-img {
    flex-shrink: 0;
    background-color: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    margin: 0;
}

.logo-banner-img img {
    height: auto;
    width: 250px;
    display: block;
}

.logo-banner-text {
    font-size: 0.8em;
    line-height: 1.6;
    color: #333;
    background-color: #e8e8e8;
    padding: 10px 20px;
    display: block;
    margin: 0;
}

.logo-banner-text a {
    color: #333;
    word-break: break-all;
}

/* 登壇者プロフィール */
.profile-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 20px;
    margin: 20px 0 30px;
}

.profile-card {
    width: calc(50% - 10px);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-sizing: border-box;
}

.profile-card-photo {
    width: 120px;
    margin-top: 0;
    flex-shrink: 0;
}

.profile-card-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.profile-card-info {
    flex: 1;
}

.profile-card-info .profile-name {
    font-weight: bold;
    font-size: 1em;
    margin: 0 0 2px;
}

.profile-card-info .profile-title {
    font-size: 0.85em;
    color: #555;
    margin: 0 0 8px;
}

.profile-card-info .profile-bio {
    font-size: 0.8em;
    line-height: 1.6;
    margin: 0;
}

/* 図のタイトル・キャプション */
.image-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 50px;
    border-top: 4px solid #004098;
    color: #222;
    background-color: #f7f9fc;
    padding: 0 20px;
    text-align: left;
}

.image-caption {
    font-size: 0.8em;
    color: #222;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.image-caption.margin-b1 {
    margin-bottom: 1em;
}

/* 画像+キャプション 2段組みグリッド */
.image-grid-2col {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 70%;
    margin: 20px auto 30px;
}

.image-grid-2col .image-grid-item {
    width: calc(50% - 8px);
    box-sizing: border-box;
}

.image-grid-2col .image-grid-item img {
    width: 100%;
    height: auto;
    display: block;
}

.image-grid-2col .image-grid-item .image-caption {
    margin-top: 5px;
}

/* Main text styles */
.article-container h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 7px solid #004098;
    color: #222;
    background-color: #f7f9fc;
    padding-top: 8px;
    padding-bottom: 8px;
}

.article-container h3 {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px dashed #004098;
    padding-bottom: 5px;
}

.article-container h4 {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.article-container h5,
.article-container h6 {
    font-size: 1em;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.article-paragraph {
    margin-top: 0;
    margin-bottom: 1.8em;
    text-align: justify;
    font-size: 1.1em;
    text-indent: 1em;
}

/* クラスなしpタグ（見出し的な短文など） */
.article-body p:not([class]) {
    font-size: 1.1em;
    margin: 0;
    text-indent: 0;
}

.article-list {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.article-list li {
    margin-bottom: 0.8em;
    font-size: 1.1em;
}

/* References */
.article-references {
    font-size: 0.8em;
    font-weight: normal;
    color: #222;
    text-align: left;
    margin: 0;
}

.article-reference-item {
    font-size: 0.8em;
    color: #222;
}

.article-reference-item p {
    margin: 0;
    text-indent: -2em;
    padding: 0 0 0 2em;
}

/* Footnotes */
.article-footnotes {
    border-top: 1px solid #111;
    font-size: 0.9em;
    color: #333;
    padding-top: 20px;
    margin: 20px 0;
}

.article-footnotes.noborder {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.article-body .article-footnotes p {
    text-indent: -1em;
    padding-left: 1em;
    margin: 0;
    font-size: 1em;
}

/* Figures and Images */
.article-figure {
    margin: 40px 0;
    text-align: center;
}

.article-figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.article-figure figcaption {
    font-size: 0.95em;
    color: #333;
    margin-top: 10px;
}

/* ページネーション */
.article-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 30px;
    margin: 40px 0;
}

.article-pagination a {
    background-color: #004098;
    color: #fff;
    text-decoration: none;
    font-size: 0.85em;
    padding: 4px 5px;
    border-radius: 2px;
    display: inline-block;
}

.article-pagination a:hover {
    background-color: #444;
}

.article-pagination .pagination-top {
    width: 100%;
    text-align: center;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .pdf-finance-banner {
        flex-direction: column;
    }

    .pfb-left {
        width: 100%;
        margin-bottom: 20px;
    }

    .pfb-cover-placeholder {
        height: 180px;
    }

    .pfb-right {
        width: 100%;
        padding-left: 0;
    }

    .pfb-logo-area {
        justify-content: flex-start;
        /* Prevent left overflow clipping */
        width: 100%;
    }

    .pfb-logo-text {
        margin-right: auto;
        /* Push issue info to the right */
        text-align: left;
    }

    .pfb-the-finance {
        font-size: clamp(20px, 6vw, 28px);
        margin-left: 0;
    }

    .pfb-finance-main {
        font-size: clamp(32px, 10vw, 48px);
        transform: scaleX(1.1);
        transform-origin: left center;
        letter-spacing: -1px;
    }

    .pfb-issue-info {
        margin-left: 10px;
    }

    .pfb-month {
        font-size: clamp(40px, 10vw, 58px);
    }

    .pfb-issue-number {
        padding: 10px 8px;
        font-size: clamp(12px, 3.5vw, 16px);
    }

    .magazine-toc-body {
        flex-direction: column;
    }

    .toc-column {
        width: 100%;
    }

    .toc-left {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .toc-right {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #ccc;
        padding-top: 20px;
    }

    .title-main {
        font-size: 20px;
    }

    .article-main-heading-author {
        text-align: left;
    }

    .profile-grid {
        gap: 25px 0;
    }

    .profile-card {
        width: 100%;
    }

    .logo-banner {
        flex-direction: column;
    }

    .logo-banner-img img {
        width: 100%;
    }

    .image-grid-2col {
        width: 100%;
    }

    .image.img-70,
    .image.img-half {
        width: 100%;
    }

    .image.img-33 {
        width: 50%;
    }
}