.hosp-info-pub_content_body {
    margin: 20px;
}

.hosp-info-pub_content_body span {
    padding: 2em 1em;
    font-weight: bold;
    font-size: 1.1em;
}

.hosp-info-pub_content_body p {
    margin: 10px 0;
    line-height: 1.6em;
}

.hosp-info-pub_content_body h2 {
    /* padding: 0.5em 0.5em 0.5em 0.5em;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: -20px;
    line-height: 1.5;
    background: #e9faf9;
    vertical-align: middle;
    font-weight: bold;
    border-radius: 2px 2px 2px 2px;
    左側の角丸く */
    border: solid #239E67 1px;
    padding: 0.2em 1em;
    margin: 1em 0;
    border-width: 0 0 0 5px;
    border-color: #40AB6B;
    border-style: solid;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    -pie-border-radius: 5px;
    position: relative;
    behavior: url("../../js/PIE.htc.html");
    -webkit-box-shadow: 1px 1px 1px #CCC;
    /* Safari, Chrome用 */
    -moz-box-shadow: 1px 1px 1px #CCC;
    /* Firefox用 */
    box-shadow: 1px 1px 1px #CCC;
    /* CSS3 */
    -pie-box-shadow: 1px 1px 1px #CCC;
    position: relative;
    behavior: url("../../js/PIE.htc.html");
}


.hosp-info-pub_content_sub_body {
    margin: 0 20px 0 20px;
}

.hosp-info-pub_content_sub_body ol {
    padding: 0 40px;
}

.hosp-info-pub_content_sub_body ol li {
    list-style-type: number;
    padding: 0.2em;
}

.hosp-info-pub_content_sub_body ul li {
    list-style-type: disc;
    margin-left: 30px;
}

.hosp-info-pub_content_sub_body h3 {
    margin-bottom: -5px;
}

.hosp-info-pub_content_sub_body dl {
    margin-left: 30px;
    width: 100%;
}

.hosp-info-pub_content_sub_body dt {
    float: left;
    width: 15%;
}

.hosp-info-pub_content_sub_body dd {
    margin-left: 10px;
}

.hosp-info-pub_content_sub_body-2 ol {
    padding: 0 30px;
}

.hosp-info-pub_content_sub_body-2 ol li {
    list-style-type: number;
    padding: 0.2em;
}

.hosp-info-pub_content_sub_body-2 ul li {
    list-style-type: none;
    margin-left: 30px;
}

.hosp-info-pub_content_sub_body-2 h3 {
    margin-bottom: -5px;
}

.btn-box {
    display: flex;
    margin: auto;
    justify-content: center;
    align-items: center;
}

.btn-box button {
    margin: 0 0.5em;
    width: 11rem;
}

.btn-box a {
    color: inherit;
    /* 親要素の色を継承 */
    text-decoration: none;
    /* 下線を消す場合 */
}

.cate_body_box01 {
    margin: 1em;
}

.cate_body_box01 p {
    text-align: justify;
}

.cate_body_box02 {
    margin: 0.5em 0;
}

.font_underline {
    border-bottom: solid 1px black;
}

.font_weight_bold {
    font-weight: bold;
}

.article_indent {
    text-indent: 1em;
}

table.clinical-research-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

table.clinical-research-table thead {
    font-weight: bold;
}

table.clinical-research-table thead th {
    background: #e9faf9;
    text-align: center;
    vertical-align: middle;
    border: solid 1px #778ca3;
}

table.clinical-research-table tbody td {
    border: solid 1px #778ca3;
    padding: 0.5em;
}

#clinical-research-table-th1 {
    width: 31%;
}

#clinical-research-table-th2 {
    width: 19%;
}

#clinical-research-table-th3 {
    width: 35%;
}

#clinical-research-table-th4 {
    width: 15%;
}

.irb-doc-list {
    display: flex;
    flex-direction: column;
}

.irb-doc-list li {
    margin: 0.25em 0;
    display: flex;
    border-bottom: dotted 1px #778ca3;
}

.irb-doc-list-c1 {
    flex: 0 0 50%;
}

.irb-doc-list-c2 {
    flex: 0 0 50%;
}

.clinical-research-table-td1 {
    text-align: left;
    vertical-align: middle;
}

.clinical-research-table-td2 {
    text-align: center;
    vertical-align: middle;
}

.clinical-research-list {
    display: flex;
    flex-direction: column;
}

.clinical-research-list li {
    margin: 0.25em 0;
    display: flex;
    border-bottom: dotted 1px #778ca3;
}

.clinical-research-list-c1 {
    flex: 0 0 70%;
}

.clinical-research-list-c2 {
    flex: 0 0 30%;
}


/* あいさつ */
#name-position {
    text-align: right;
}

.greeting-box1 {
    margin-bottom: 2em;
}

.greeting-box2 {
    margin: 1em;
    text-indent: 1em;
    font-size: 110%;
}

.greeting-box3 {
    margin: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#greeting-img1 {
    width: auto;
    height: 170px;
}

#greeting-img2 {
    width: auto;
    height: 223px;
}

/* 院内がん登録実績 */
/* ファイルリストテーブル */
table.hbcr-report-list-table {
    width: 60%;
}

table.hbcr-report-list-table th {
    vertical-align: middle;
    width: 60%;
    padding-left: 0.5em;
    border-bottom: #0c4a6e 1px dotted;
}

table.hbcr-report-list-table td {
    padding: 0.5em;
    text-align: right;
    border-bottom: #0c4a6e 1px dotted;
}

/* リスト表示 */
.year-selector-container {
    background: #40AB6B;
    ;
    padding: 10px;
    border-radius: 4px;
    margin: 30px 0;
}

.selector-label {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.year-dropdown {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.year-dropdown summary {
    background: white;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    list-style: none;
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.year-dropdown summary::-webkit-details-marker {
    display: none;
}

.year-dropdown summary::after {
    content: "▼";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    color: #6b7280;
}

.year-dropdown[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.year-dropdown summary:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.year-dropdown summary:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3);
}

.year-list {
    background: white;
    border-top: 1px solid #e5e7eb;
    max-height: 240px;
    overflow-y: auto;
}

.year-link {
    display: block;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 500;
}

.year-link:last-child {
    border-bottom: none;
}

.year-link:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    transform: translateX(4px);
}

.year-link:focus {
    outline: none;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.current-year {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.current-year-label {
    color: #0ea5e9;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-year-text {
    color: #0c4a6e;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 4px;
}

/* カスタムスクロールバー */
.year-list::-webkit-scrollbar {
    width: 6px;
}

.year-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.year-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.year-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 640px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .year-selector-container {
        padding: 20px;
    }

    .year-dropdown summary {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .year-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* アクセシビリティ向上 */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        transform: none !important;
    }
}

/* Styles for the year headings (e.g., 【令和6年度】) */
/*
 * 注意: HTMLコードにおいて、各年度の見出しが<p>タグまたは<div>タグと<h3>タグで重複している箇所があります。
 * HTML5のセマンティクスに沿うためには、これらの重複を解消し、<h3>タグのみを使用することを推奨します。
 * このCSSは、<h3>.year-heading が単独で年度の見出しとして機能することを想定して記述されています。
 */
.year-heading {
    /* font-size: 1.2em; 本文より少し大きくして見出しとして目立たせる */
    font-weight: bold;
    color: #333;
    /* 視認性の良い濃い色 */
    margin-top: 2em;
    /* 見出しの上部に十分な余白 */
    margin-bottom: 0.8em;
    /* 見出しとリストの間に適切な余白 */
    padding: 0.2em 0.5em;
    /* 見出し内部のパディング */
    border-left: 5px solid #40AB6B;
    /* 他の見出しと一貫性のある左ボーダー */
}

/* Styles for the list of meeting records */
.meeting-records-list {
    list-style: none;
    /* デフォルトの箇条書きマークを削除 */
    padding-left: 0;
    /* デフォルトのulの左パディングを削除 */
    margin-top: 0;
    /* 見出しに近づけて配置 */
    margin-bottom: 2em;
    /* リストの後に十分な余白を取り、次の年度の見出しと区別 */
}

.meeting-records-list li {
    margin-bottom: 0.5em;
    /* 各リストアイテム間の余白 */
    line-height: 1.6;
    /* 可読性の向上 */
    padding-left: 0.5em;
    /* 見出しのテキストと視覚的に揃えるためのわずかなインデント */
}

/* あいさつ */
#name-position {
    text-align: right;
}

.greeting-box1 {
    margin-bottom: 2em;
}

.greeting-box2 {
    margin: 1em;
    text-indent: 1em;
    font-size: 110%;
}

.greeting-box3 {
    margin: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#greeting-img1 {
    width: auto;
    height: 170px;
}

#greeting-img2 {
    width: auto;
    height: 223px;
}

/* 沿革 */
table.history-table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
}

table.history-table thead th {
    border: solid 1px #778ca3;
    background: #e9faf9;
    padding: 10px;
}

table.history-table tbody td {
    border: solid 1px #778ca3;
    text-align: left;
    vertical-align: middle;
    padding: 10px;
}

th.th1 {
    width: 25%;
}

th.th2 {
    width: 35%;
}

th.th3 {
    width: 35%;
}

.history_pic_flex {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
}

.overview-list {
    counter-reset: list-counter;
    padding-left: 1em;
}

.overview-list li {
    list-style: decimal;
    counter-increment: list-counter;
    position: relative;
    font-weight: bold;
    padding-left: 0.5em;
}

.overview-list p {
    font-weight: normal;
}

/* 病院情報の公表 */
.hospital-info-list {
    counter-reset: list-counter;
    padding-left: 2em;
    margin-top: 1em;
}

.hospital-info-list li {
    list-style: decimal;
    counter-increment: list-counter;
    position: relative;
    padding-left: 0.5em;
}

.hosp-info-row {
    margin: 1em;
    line-height: 1.8;
}

.hosp-info-row h3 {
    margin-bottom: 0;
}

.hosp-info-row ol li {
    list-style-type: number;
    margin-left: 1em;
}

.hosp-info-row ol li p {
    margin: 0.5em 0;
}

/* 緩和ケア */
.palliative-care-list {
    counter-reset: list-counter;
    padding-left: 1em;
}

.palliative-care-list li {
    list-style: decimal;
    counter-increment: list-counter;
    position: relative;
    padding-left: 0.5em;
}

.palliative-care-dots {
    padding-left: 1.5em;
}

.palliative-care-dots li {
    list-style: disc;
    position: relative;
}

p.font_center_text {
    text-align: center;
}

.font_size_large {
    font-size: 1.5em;
}

.font_size_smalllarge {
    font-size: 1.1em;
}

.h4_margin_top {
    margin-top: 2em;
}


/* ★追加：計算しやすくするため */
* {
    box-sizing: border-box;
}

/* フロー図全体のコンテナ */
.flowchart {
    --flow-border-color: #D99A6C;
    --flow-bg-color: #FEFBF6;
    width: 95%;
    max-width: 650px;
    margin: 2em 0 2em 2em;
}

/* 各ステップ（ボックスと矢印のセット） */
.flow-step {
    text-align: center;
}

/* テキストが入るボックス 【修正】 */
.flow-box {
    display: block;
    width: 100%;
    border: 1px solid var(--flow-border-color);
    background-color: var(--flow-bg-color);
    padding: 1em;
    /* 上下左右のpaddingを調整 */
    border-radius: 8px;
    text-align: left;
    /* line-height: 1.6; */
}

/* 矢印 */
.flow-arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid var(--flow-border-color);
    margin: 15px auto;
}

/* 最後のステップの矢印だけを非表示にする */
.flow-step:last-child .flow-arrow {
    display: none;
}

/* テーブル自体のスタイル */
table.flow-table {
    width: 100%;
    background-color: transparent;
    /* 背景を透過 */
    border: none;
    /* 枠線をなくす */
    border-collapse: collapse;
    /* セルの境界線を結合 */
    border-spacing: 0;
    margin: 0;
}

/* 全てのセルの共通スタイル */
table.flow-table td {
    background-color: transparent;
    /* 背景を透過 */
    border: none;
    /* 枠線をなくす */
    padding: 0;
    /* 上下にわずかな余白、左右は0 */
    vertical-align: middle;
    /* 垂直方向を中央揃え */
}

/* 1列目のセルのスタイル */
table.flow-table td:first-child {
    padding-right: 1.5em;
    /* 右側のセルとの間に余白を確保 */
    white-space: nowrap;
    /* 改行させない */
    font-weight: bold;
    /* 文字を太くする */
    vertical-align: top;
    /* 垂直方向を上寄せ */
    width: 10%;
}

/* 研修部会 */
.article-list {
    display: flex;
    flex-direction: column;
}

.article-list li {
    margin: 0.25em 0;
    display: flex;
    border-bottom: dotted 1px #778ca3;
}

.article-list-c1 {
    flex: 0 0 85%;
}

.article-list-c2 {
    flex: 0 0 15%;
}

/* 写真配列 */
/* 汎用的な2列グリッドコンテナのクラス */
.grid-2col {
    /* グリッドレイアウトを適用 */
    display: grid;

    /* 2つの列を作成し、それぞれ均等な幅に設定 */
    grid-template-columns: repeat(2, 1fr);

    /* グリッド間の余白を設定 */
    gap: 20px;
}

/* グリッド内の画像のスタイル */
.grid-2col figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* グリッド内のキャプションのスタイル */
.grid-2col figure figcaption {
    text-align: center;
    margin-top: 8px;
}
/* 汎用的な3列グリッドコンテナのクラス */
.grid-3col {
    /* グリッドレイアウトを適用 */
    display: grid;

    /* 2つの列を作成し、それぞれ均等な幅に設定 */
    grid-template-columns: repeat(3, 1fr);

    /* グリッド間の余白を設定 */
    gap: 10px;
}

/* グリッド内の画像のスタイル */
.grid-3col figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* グリッド内のキャプションのスタイル */
.grid-3col figure figcaption {
    text-align: center;
    margin-top: 8px;
}