/* ===== COMMON STYLES ===== */
/* CSS読み込み確認用 - このスタイルが適用されていればCSSは正しく読み込まれています */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
html body {
    background-color: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
}

body,
body.home,
body.archive,
body.category,
body.single {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #000;
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* ===== HEADER NAV BUTTON STYLE ===== */
.nav-btn {
    padding: 0.5rem 1.25rem;
    margin: 0 0.25rem;
    background: #dbeafe;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
    color: #333;
    transition: background 0.2s;
    list-style: none;
}

.nav-btn:hover {
    background: #d1d5db;
}

/* ===== KEY VISUAL（カテゴリ・検索など通常ページ用） ===== */
.key-visual {
    background: #1e40af;
    padding: 3rem 40px;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.key-visual-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.key-visual h2 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.key-visual p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.8);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

@media (min-width: 768px) {
    .key-visual {
        padding: 3.5rem 40px;
    }
    .key-visual h2 {
        font-size: 2rem;
    }
    .key-visual p {
        font-size: 1rem;
    }
}

/* ===== KEY VISUAL HERO（TOPページ専用） ===== */
.key-visual-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    padding: 64px 20px 52px;
    display: block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 装飾円 */
.key-visual-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.key-visual-hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.key-visual-hero-inner {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* バッジ */
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    padding: 0.28rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.28);
    margin-bottom: 1.1rem;
}

/* タイトル */
.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin-bottom: 0.65rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* サブタイトル */
.hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.78);
    margin-bottom: 1.8rem;
}

/* 検索フォーム */
.hero-search-form {
    margin-bottom: 2rem;
}
.hero-search {
    display: flex;
    max-width: 540px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.hero-search input {
    flex: 1;
    border: none;
    padding: 0.85rem 1.4rem;
    font-size: 0.88rem;
    outline: none;
    font-family: inherit;
    color: #1e293b;
    background: transparent;
}
.hero-search button {
    padding: 0.85rem 1.6rem;
    background: #0f172a;
    color: #fff;
    border: none;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.2s;
}
.hero-search button:hover {
    background: #1e40af;
}

/* 統計バー */
.hero-stats {
    display: flex;
    justify-content: center;
    max-width: 420px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    overflow: hidden;
}
.stat-item {
    flex: 1;
    padding: 0.85rem 0.5rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child {
    border-right: none;
}
.stat-num {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.stat-label {
    display: block;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.68);
    margin-top: 0.2rem;
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .key-visual-hero {
        padding: 44px 20px 36px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-stats {
        max-width: 100%;
    }
}

/* ===== MAIN CONTENT ===== */
/* すべてのページで統一されたmain-contentスタイル */
main.main-content,
body main.main-content,
body.home main.main-content,
body.archive main.main-content,
body.category main.main-content,
body.single main.main-content {
    max-width: none;
    margin: 0;
    padding: 2rem 40px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    float: none;
    background-color: #fff;
}

/* コンテンツの最大幅を内部で制限 */
main.main-content > .card-grid,
main.main-content > .delight-section,
main.main-content > .content-wrapper,
main.main-content > .pagination,
body.category main.main-content > .delight-section,
body.archive main.main-content > .delight-section {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* TOPページ: キービジュアル下の余白を狭く */
body.home main.main-content {
    padding-top: 1rem;
}

/* Section Styles */
.delight-section {
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible; /* overflow: hidden はカードhover時のtransformで上枠線がクリップされるため変更 */
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1e40af;
}

.section-title-en {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
    margin-left: 0.5rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.5rem;
    }
}

.view-all {
    margin-top: 1.5rem;
    text-align: right;
}

.view-all a {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #1e40af;
    color: #fff;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.view-all a:hover {
    background: #6b7280;
    text-decoration: none;
}

/* Overview Text */
.overview-text {
    font-size: 0.9375rem;
    line-height: 1.9;
    color: #333;
}

.overview-lead {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f6f5c;
    margin-bottom: 0;
}

.overview-text p + p {
    margin-top: 1rem;
    color: #555;
}

/* ===== BREADCRUMB NAV ===== */
.breadcrumb-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 40px;
}

.breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.breadcrumb {
    font-size: 0.8125rem;
    color: #64748b;
}

/* ===== SEARCH BAR ===== */
.search-bar-section {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem 40px;
}

.search-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.search-bar-wrap {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
}

.search-bar-input {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    outline: none;
}

.search-bar-input:focus {
    border-color: #9ca3af;
}

.search-bar-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    background: #4b5563;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 0.875rem;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-bar-btn:hover {
    background: #374151;
}

.search-result-count {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.search-no-results {
    padding: 2rem 0;
}

.search-tips {
    margin-top: 1rem;
    padding-left: 1.5rem;
    list-style: disc;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 2;
}

.card-category {
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-left: 0.5rem;
}

.breadcrumb a {
    color: #64748b;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #333;
    text-decoration: none;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: #1e40af;
    padding: 2rem 40px;
    width: 100%;
}

.page-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-count {
    font-size: 0.875rem;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    letter-spacing: 0;
}

.page-title-en {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    line-height: 1.5;
    font-style: italic;
}

.page-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    line-height: 1.5;
    font-style: italic;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }
    .page-title-en,
    .page-subtitle {
        font-size: 1.125rem;
    }
}

/* ===== FOOTER ===== */
footer {
    margin-top: 3rem;
}

footer .p-3 {
    border-top: 1px solid #dbeafe;
}

/* ===== CATEGORY FILTER ===== */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dbeafe;
}

.filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    background: #fff;
    border: 1px solid #d1d5db;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #f3f4f6;
}

.filter-btn.active {
    background: #1e40af;
    border-color: #1e40af;
    color: #fff;
}

/* ===== CARD GRID (for card layouts) ===== */
.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 0;
    padding: 4px 0 0; /* 最上段カードのhover時transform(-2px)で枠線がクリップされないよう上に余白 */
    list-style: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media screen and (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Content Grid (別のグリッド用) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media screen and (min-width: 640px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== ARTICLE CARD (書誌情報版) ===== */
.article-card {
    background: #fff;
    border: 1px solid #dbeafe;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.category,
.card-category {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    color: #fff;
    background: #1e40af;
}

.date,
.card-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title-en {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
    font-style: italic;
    margin-top: 0.25rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 著者情報（2行まで、フェードアウト効果） */
.card-authors {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1e40af;
    margin-bottom: 1rem;
    max-height: 2.5em;
    overflow: hidden;
    position: relative;
}

.card-authors .label {
    font-weight: 600;
    color: #374151;
}

.card-authors::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 1.5em;
    background: linear-gradient(to right, transparent, white);
}

/* 書誌情報エリア - テーブル形式 */
.bibliography-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 観察研究：STROBE声明セクション専用 - マージンをリセット */
.strobe-section .card-title-en {
    margin-top: 0.5rem;
}

.strobe-section .bibliography-title {
    margin-top: 0.75rem;
}

.card-bibliography {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #1e40af;
    display: table;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    border: 1px solid #d1d5db;
    table-layout: fixed;
    box-sizing: border-box;
}

.bib-item {
    display: table-row;
}

.bib-label {
    display: table-cell;
    font-weight: 600;
    color: #374151;
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    white-space: nowrap;
    width: 110px;
    border: 1px solid #d1d5db;
    background-color: #f3f4f6;
    text-align: center;
}

.bib-value {
    display: table-cell;
    color: #1e40af;
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    border: 1px solid #d1d5db;
    text-align: left;
}

.bib-link {
    color: #2563eb;
    text-decoration: none;
}

.bib-link:hover {
    text-decoration: underline;
    color: #1e40af;
}

/* 著者名は2行まで表示し、超える場合は...で省略 */
.bib-value.bib-authors {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3.2em;
    line-height: 1.6;
}

/* ===== ARTICLE LIST ===== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dbeafe;
    text-decoration: none;
    color: #333;
    transition: opacity 0.2s;
}

.article-item:hover {
    opacity: 0.8;
    text-decoration: none;
}

.article-image {
    flex-shrink: 0;
    width: 200px;
    aspect-ratio: 16 / 9;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.75rem;
}

.article-content {
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.article-date {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.85);
}

.article-category {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    font-size: 0.6875rem;
    color: #fff;
    background: #1e40af;
}

.article-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.article-title-en {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.article-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* モバイル時の左右余白を統一 */
    main.main-content,
    body main.main-content,
    body.home main.main-content,
    body.archive main.main-content,
    body.category main.main-content,
    body.single main.main-content {
        padding: 1.5rem 20px;
    }

    .key-visual {
        padding: 2rem 20px;
    }

    .breadcrumb-nav {
        padding: 0.75rem 20px;
    }

    .page-header {
        padding: 1.5rem 20px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .article-item {
        flex-direction: column;
        gap: 1rem;
    }

    .article-image {
        width: 100%;
    }

    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-title-en {
        font-size: 0.75rem;
    }

    .card-authors {
        font-size: 0.75rem;
    }

    .card-bibliography {
        font-size: 0.75rem;
        padding: 0.75rem;
    }

    .bib-label {
        min-width: 60px;
        font-size: 0.75rem;
    }
}

/* ===== HEADER ===== */
body header.header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 80px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body header.header .area_head {
    width: 100%;
    max-width: none;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

body header.header .head_logo {
    display: flex;
    align-items: center;
    margin-top: 7px;
}

body header.header .head_logo img {
    max-width: 130px;
    width: 100%;
}

nav {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}

.nav-menu,
.menu {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li,
.menu li,
.menu-item {
    margin: 0;
    list-style: none;
}

.nav-menu a,
.menu a,
.menu-item a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.nav-menu a:hover,
.menu a:hover,
.menu-item a:hover {
    background-color: #f5f5f5;
}

/* 現在のページのハイライト */
.current-menu-item a,
.current_page_item a {
    background-color: #f5f5f5;
    font-weight: 500;
}

/* ハンバーガーメニューボタン（モバイル用） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* モバイル対応 */
@media (max-width: 1025px) {
    body header.header {
        height: 60px;
    }

    body header.header .area_head {
        padding: 0 20px;
    }

    body header.header .head_logo img {
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    body header.header .area_head {
        padding: 0 10px;
    }

    .menu-toggle {
        display: block;
    }

    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding-top: 60px;
    }

    #nav-menu.active {
        right: 0;
    }

    .nav-menu,
    .menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu a,
    .menu a,
    .menu-item a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #e0e0e0;
    }

    /* メニュー開閉時のアイコン変化 */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* メニュー開いている時の背景オーバーレイ */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .menu-overlay.active {
        display: block;
    }
}

/* ===== FOOTER ===== */
.footer-nav {
    margin-bottom: 1.5rem;
}

.footer-category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-category-list li a {
    color: #94a3b8;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-category-list li a:hover {
    color: #fff;
    text-decoration: none;
}

/* ===== PERIOD TABS（新着論文ページ） ===== */
.period-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.period-tab {
    padding: 0.45rem 1.1rem;
    border: 1px solid #cbd5e1;
    border-radius: 100px;
    font-size: 0.85rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
}

.period-tab:hover {
    border-color: #1e40af;
    color: #1e40af;
}

.period-tab.active {
    background: #1e40af;
    border-color: #1e40af;
    color: #fff;
    font-weight: 600;
}

/* 関連論文セクション */
.related-articles {
    margin-top: 2rem;
    border-top: 2px solid #e2e8f0;
    padding-top: 2rem;
}

/* ===== SEARCH FILTER ===== */
.search-filter-wrap {
    max-width: 1100px;
    margin: 0 auto 1.5rem;
    padding: 0 1.25rem;
}

.search-filter-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.search-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.search-filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 140px;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.05em;
}

.filter-select,
.filter-input {
    padding: 0.45rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff;
    height: 38px;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.search-filter-btns {
    flex-direction: row;
    align-items: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
    min-width: auto;
}

.filter-btn-apply {
    padding: 0.45rem 1.25rem;
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    height: 38px;
    white-space: nowrap;
    transition: background 0.2s;
}

.filter-btn-apply:hover {
    background: #2563eb;
}

.filter-btn-clear {
    padding: 0.45rem 1rem;
    background: #fff;
    color: #64748b;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.875rem;
    text-decoration: none;
    height: 38px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background 0.2s;
}

.filter-btn-clear:hover {
    background: #f1f5f9;
}

.filter-active-note {
    font-size: 0.8rem;
    color: #2563eb;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* 著者名表示 */
.card-authors {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0.2rem 0 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .search-filter-row {
        flex-direction: column;
    }
    .search-filter-item {
        min-width: 100%;
    }
    .search-filter-btns {
        flex-direction: row;
    }
}

/* ===== SITEMAP ===== */
.sitemap-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.sitemap-category {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 2rem;
}

.sitemap-category:last-child {
    border-bottom: none;
}

.sitemap-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.75rem;
}

.sitemap-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.35rem 1.5rem;
}

.sitemap-post-item {
    font-size: 0.875rem;
    padding: 0.2rem 0;
}

.sitemap-post-item a {
    color: #2563eb;
    text-decoration: none;
}

.sitemap-post-item a:hover {
    text-decoration: underline;
}

.sitemap-year {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* サイトマップリンク（ヘッダー内） */
.nav-sitemap-link {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.nav-sitemap-link:hover {
    background-color: #f5f5f5;
}

/* ===== FOOTER ===== */
.footer {
    background: #0f172a;
    padding: 2.5rem 1.25rem 2rem;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    border-top: 1px solid #1e293b;
}

.footer .name {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: #fff;
    line-height: 1.8;
}

.footer .address {
    font-size: 0.875rem;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer .copyright {
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    margin-top: 1rem;
}

#pagetop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pagetop a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pagetop img {
    width: 30px;
    height: 30px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #1e40af;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.pagination .current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    font-weight: 600;
}

.pagination .prev,
.pagination .next {
    font-weight: 500;
}

.portraitonly {
    display: none;
}

@media (max-width: 768px) {
    .portraitonly {
        display: inline;
    }
}

/* ===== BIBLIOGRAPHY TABLE (詳細ページ用) ===== */
.bibliography-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.bibliography-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #dbeafe;
    width: 150px;
    vertical-align: top;
}

.bibliography-table td {
    padding: 0.75rem 1rem;
    color: #1e40af;
    border-bottom: 1px solid #dbeafe;
}

.bibliography-table tr:last-child th,
.bibliography-table tr:last-child td {
    border-bottom: none;
}

.bibliography-table a.external-link {
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
}

.bibliography-table a.external-link:hover {
    text-decoration: underline;
}

/* ===== ARTICLE CONTENT ===== */
.article-body {
    max-width: 100%;
}

.article-preview {
    background: #fff;
}

.article-content {
    padding: 0 0 2rem 0;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dbeafe;
}

.article-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* 日本語タイトル（記事詳細ページ） */
.article-content h4.title-ja {
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.article-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #1e40af;
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

/* ===== 2カラムレイアウト（記事詳細ページ） ===== */
.content-wrapper {
    display: flex;
    gap: 2rem;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .content-wrapper {
        flex-direction: row;
    }
}

/* Article Body */
.article-body {
    flex: 1;
    min-width: 0;
}

/* 推奨テーブル（書誌情報） */
.recommendation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.recommendation-table th,
.recommendation-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    text-align: left;
    font-size: 0.875rem;
}

.recommendation-table th {
    background: #f3f4f6;
    font-weight: 500;
    width: 150px;
}

.recommendation-table a {
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
}

.recommendation-table a:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    width: 100%;
}

@media (min-width: 1024px) {
    .sidebar {
        width: 350px;
        flex-shrink: 0;
    }
}

.sidebar-widget {
    background: #f9fafb;
    border: 1px solid #dbeafe;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1e40af;
}

/* Related Posts */
.related-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dbeafe;
}

.related-posts li:last-child {
    border-bottom: none;
}

.related-posts a {
    text-decoration: none;
    color: #333;
    display: block;
}

.related-posts a:hover {
    color: #2563eb;
}

.related-date {
    font-size: 0.75rem;
    color: #6b7280;
    display: block;
    margin-bottom: 0.25rem;
}

.related-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    display: block;
}

/* ===== もっと見るボタン ===== */
.article-preview {
    position: relative;
    overflow: hidden;
}

.article-preview.collapsed {
    max-height: 600px;
}

.article-preview.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.article-preview.expanded {
    max-height: none;
}

.article-preview.expanded::after {
    display: none;
}

.read-more-btn {
    display: block;
    width: 100%;
    margin: 1rem 0 0;
    padding: 1rem;
    background: #1e40af;
    color: #fff;
    border: none;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.read-more-btn:hover {
    background: #6b7280;
}

.read-more-btn.expanded {
    background: #6b7280;
}

.read-more-btn.expanded:hover {
    background: #1e40af;
}

/* ===== 論文評価サイドバー ===== */
.sidebar-section {
    background: #f9fafb;
    border: 1px solid #dbeafe;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1e40af;
}

.evaluation-section {
    padding: 1.5rem;
}

.radar-chart-area {
    display: flex;
    justify-content: center;
}

.radar-chart-container {
    background: #fff;
    padding: 1.5rem;
    width: 100%;
}

.radar-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: #333;
}

.radar-legend .legend-color {
    display: inline-block;
    width: 24px;
    height: 14px;
    background: #5baee6;
}

/* プラグインのデフォルトスタイルを上書き */
.erc-chart-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.erc-chart-container canvas {
    width: 100%;
    height: auto;
    min-height: 350px;
}

/* スマホ用: チャートを大きく表示 */
@media (max-width: 768px) {
    .evaluation-section {
        padding: 1rem;
    }

    .radar-chart-container {
        padding: 1rem;
    }

    .erc-chart-container canvas {
        min-height: 300px;
    }

    .sidebar .sidebar-section {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Sidebar幅の調整 */
@media (min-width: 1024px) {
    .sidebar {
        width: 450px;
        flex-shrink: 0;
    }

    .sidebar.sticky {
        position: sticky;
        top: 2rem;
        align-self: flex-start;
    }
}

/* ===== 準備中メッセージ ===== */
.preparing-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
}

.preparing-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.preparing-description {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

/* ===== ステークホルダー評価セクション ===== */
.stakeholder-rating-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid #1e40af;
}
