/* ===== 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: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* ===== HEADER NAV BUTTON STYLE ===== */
.nav-btn {
    padding: 0.5rem 1.25rem;
    margin: 0 0.25rem;
    background: #e5e7eb;
    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: url(https://nk-lab.jp/risk_communication/wp-content/themes/nk-lab/common/images/title_bg.jpg) bottom 15% center/cover no-repeat;
    padding: 3rem 40px;
    height: 170px;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.key-visual::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 0;
}

.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.5rem;
    color: #000;
    margin-bottom: 1rem;
    font-weight: 700;
}

.key-visual p {
    font-size: 0.9375rem;
    color: #000;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

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

/* ===== 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;
}

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

.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: #4b5563;
    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-text p + p {
    margin-top: 0.25rem;
}

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

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

.breadcrumb {
    font-size: 0.8125rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #6b7280;
}

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

/* ===== PAGE HEADER ===== */
.page-header {
    background: #4b5563;
    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;
}

.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 #e5e7eb;
}

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

.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: #4b5563;
    border-color: #4b5563;
    color: #fff;
}

/* ===== CARD GRID (for card layouts) ===== */
.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 0;
    padding: 0;
    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 #e5e7eb;
    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(0,0,0,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: #4b5563;
}

.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: #4b5563;
    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: #4b5563;
    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: #4b5563;
    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 #e5e7eb;
    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: #e5e7eb;
    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: #4b5563;
}

.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: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 80px;
}

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 {
    background: #1a1a1a;
    padding: 3rem 1.25rem 2rem;
    margin-top: 3rem;
    text-align: center;
    position: relative;
}

.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: #aaa;
    border-top: 1px solid #333;
    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: #4b5563;
    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 #e5e7eb;
    width: 150px;
    vertical-align: top;
}

.bibliography-table td {
    padding: 0.75rem 1rem;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
}

.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 #e5e7eb;
}

.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: #4b5563;
    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: #4b5563;
    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 #e5e7eb;
    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 #4b5563;
}

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

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

.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: #4b5563;
    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: #4b5563;
}

/* ===== 論文評価サイドバー ===== */
.sidebar-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    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 #4b5563;
}

.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 #4b5563;
}
