/* ==========================================================
   sub.css - サブページ専用スタイル
   - トップページ以外の各ページで使用するスタイル
   - ページヘッダー・パンくずリスト・コンテンツレイアウト等

   【共通テーマカラーはstyle.cssと同じ】
   メインカラー: #C9788A（ローズピンク）
   ボーダーカラー: #f0d8de（淡いピンク）
   背景ピンク:   #fdf0f3（極淡ピンク）
   ========================================================== */

/* --- ナビゲーション: 現在のページをハイライト --- */
.main-nav a.active {
    background: #E8A0B0; /* アクティブなメニューは明るいピンク背景 */
}

/* ==========================================================
   ページヘッダー（.page-header）
   - 各サブページ上部のタイトル表示エリア
   - ピンク系グラデーション背景に白文字のタイトル
   - パンくずリストを下部に配置
   ========================================================== */
.page-header {
    background: linear-gradient(135deg, #E8A0B0 0%, #F2BDC8 50%, #D4889A 100%);
    padding: 50px 40px 30px;
    text-align: center;
}
/* ページタイトル: 大きな白文字、ワイドな字間 */
.page-title {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 8px;
    margin: 0 0 15px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.1); /* 軽い影で読みやすく */
}

/* --- パンくずリスト: ホーム > カテゴリ > 現在のページ --- */
.breadcrumb-nav {
    font-size: 13px;
    color: rgba(255,255,255,0.8); /* 半透明の白文字 */
}
.breadcrumb-nav a {
    color: rgba(255,255,255,0.8);
}
.breadcrumb-nav a:hover {
    color: #fff;
}
/* パンくず区切り文字（>） */
.breadcrumb-separator {
    margin: 0 8px;
    font-size: 10px;
}

/* ==========================================================
   メインコンテンツエリア（.sub-content）
   - サブページの本文コンテンツを包むラッパー
   - 最大幅960pxで中央寄せ
   ========================================================== */
.sub-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 40px 60px;
}
/* 各コンテンツセクション: 下マージンで区切り */
.content-section {
    margin-bottom: 50px;
}
.content-section:last-child {
    margin-bottom: 0;
}
/* セクションタイトル: テーマカラーの下線3px付き */
.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 3px solid #C9788A;
    position: relative;
}
/* セクション本文: 読みやすい行間1.9、両端揃え */
.section-body {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
}
.section-body p {
    margin: 0 0 16px;
    text-align: justify;
}
/* サブセクションタイトル: テーマカラー文字、左にテーマカラーの縦線 */
.subsection-title {
    font-size: 17px;
    font-weight: bold;
    color: #C9788A;
    margin: 30px 0 15px;
    padding-left: 12px;
    border-left: 4px solid #C9788A;
}

/* ==========================================================
   テーブル（.history-table / .officer-table）
   - 沿革テーブル・役員一覧テーブルの共通スタイル
   - 左列（th）は淡いピンク背景の固定幅
   - 行ごとに淡いピンクの下線で区切り
   ========================================================== */
.history-table,
.officer-table {
    width: 100%;
    border-collapse: collapse;
}
.history-table th,
.history-table td,
.officer-table th,
.officer-table td {
    padding: 12px 16px;
    border-top: 1px solid #f0d8de;
    border-bottom: 1px solid #f0d8de;
    font-size: 15px;
    vertical-align: top;
}
/* 見出しセル（th）: 淡いピンク背景、固定幅200px */
.history-table th,
.officer-table th {
    width: 200px;
    font-weight: bold;
    color: #333;
    background: #fdf0f3;
    white-space: nowrap;
}
/* データセル（td） */
.history-table td,
.officer-table td {
    color: #444;
}

/* ==========================================================
   支部グリッド（.branch-grid）
   - 各支部を3列グリッドでカード状に表示
   - 淡いピンク背景にテーマカラー文字
   ========================================================== */
.branch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
}
/* 各支部カード */
.branch-item {
    text-align: center;
    padding: 14px 10px;
    background: #fdf0f3;
    border: 1px solid #f0d8de;
    font-size: 15px;
    font-weight: bold;
    color: #C9788A;
}

/* ==========================================================
   会則ボックス（.rules-box）
   - 学会の会則・規約を表示するボックス
   - 淡いピンク背景にボーダー付き
   - 定義リスト（dt/dd）で条文を表示
   ========================================================== */
.rules-box {
    background: #fdf8f9;
    border: 1px solid #f0d8de;
    padding: 30px;
}
/* 章タイトル（例: 「第1章 総則」） */
.rules-chapter {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px;
}
/* 条文リスト */
.rules-list {
    margin: 0;
}
/* 条文の見出し（例: 「第1条」） */
.rules-list dt {
    font-weight: bold;
    color: #333;
    margin-top: 16px;
    font-size: 15px;
}
.rules-list dt:first-child {
    margin-top: 0;
}
/* 条文の本文 */
.rules-list dd {
    margin: 6px 0 0 0;
    font-size: 15px;
    line-height: 1.9;
    color: #444;
}
/* 条文内の番号付きリスト（号・項） */
.rules-list ol {
    margin: 8px 0 0 20px;
    padding: 0;
}
.rules-list ol li {
    margin-bottom: 4px;
}

/* ==========================================================
   事務局情報（.office-info）
   - 学会事務局の連絡先情報を表示するボックス
   - 淡いピンク背景にボーダー付き
   ========================================================== */
.office-info {
    background: #fdf0f3;
    border: 1px solid #f0d8de;
    padding: 25px 30px;
    font-size: 15px;
    line-height: 1.9;
    color: #444;
}
/* 事務局情報内のリンク: テーマカラー */
.office-info a {
    color: #C9788A;
}
.office-info a:hover {
    text-decoration: underline;
}

/* ==========================================================
   代表理事挨拶 署名エリア（.signature-container）
   - 代表理事の写真と署名を横並びに表示
   - 左側に写真、右側に肩書き・名前・所属を表示
   ========================================================== */
.signature-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}
/* 写真エリア: 幅50%、右寄せ */
.signature-image {
    width: 50%;
    text-align: right;
}
/* 署名テキストエリア: 幅50%、左寄せ */
.signature {
    width: 50%;
    text-align: left;
}
/* 肩書き（例: 「代表理事」）: テーマカラー下線付き */
.signature-title {
    font-weight: bold;
    border-bottom: 1px solid #C9788A;
}
/* 名前: 大きく太字で表示 */
.signature-name {
    font-size: 22px;
    font-weight: bold;
}
/* 所属 */
.signature-affiliation {
    font-size: 16px;
    font-weight: normal;
}

/* ==========================================================
   刊行物ページ（.publication-* / .series-intro）
   - 書籍／学会機関誌の導線、購入案内、書籍カード一覧を表示
   - 既存の配色に合わせた淡いピンクのカードで構成
   ========================================================== */
.publication-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.publication-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 12px 18px;
    border: 1px solid #f0d8de;
    background: #fff;
    color: #444;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.publication-tab:hover,
.publication-tab.is-active {
    background: #fdf0f3;
    border-color: #C9788A;
    color: #C9788A;
}
.publication-note {
    background: #fdf8f9;
    border: 1px solid #f0d8de;
    padding: 24px 28px;
}
.publication-note-lead {
    font-size: 17px;
    font-weight: bold;
    color: #333;
}
.publication-note a {
    color: #C9788A;
}
.publication-note a:hover {
    text-decoration: underline;
}
.publication-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.publication-card {
    border: 1px solid #f0d8de;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.publication-media {
    min-height: 260px;
    padding: 24px 24px 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.9), rgba(255,255,255,0) 58%),
        linear-gradient(180deg, #fdf8f9 0%, #fff 100%);
}
.publication-media img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
    box-shadow: 0 8px 18px rgba(80, 45, 55, 0.12);
}
.publication-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.publication-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
    color: #333;
}
.publication-meta,
.publication-price,
.publication-note-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}
.publication-price {
    color: #C9788A;
    font-weight: bold;
}
.publication-link {
    margin: auto 0 0;
}
.publication-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #C9788A;
    color: #C9788A;
    font-weight: bold;
    text-decoration: none;
}
.publication-link a:hover {
    background: #fdf0f3;
}
.series-intro {
    background: #fdf0f3;
    border: 1px solid #f0d8de;
    padding: 18px 22px;
    margin-bottom: 20px;
}
.series-intro p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   レスポンシブ対応（991.98px以下 = タブレット・スマートフォン）
   - ページヘッダーの余白・フォントサイズを縮小
   - コンテンツエリアの余白を縮小
   - テーブルの列幅・フォントサイズを調整
   ========================================================== */
@media (max-width: 991.98px) {
    /* ページヘッダー: 余白縮小 */
    .page-header {
        padding: 35px 20px 20px;
    }
    /* ページタイトル: フォントサイズ・字間を縮小 */
    .page-title {
        font-size: 24px;
        letter-spacing: 5px;
    }
    /* コンテンツエリア: 余白縮小 */
    .sub-content {
        padding: 25px 15px 40px;
    }
    /* セクションタイトル: フォントサイズ縮小 */
    .section-title {
        font-size: 20px;
    }
    /* テーブル: 見出し列の幅・フォントサイズを縮小 */
    .history-table th,
    .officer-table th {
        width: 130px;
        font-size: 14px;
    }
    .history-table td,
    .officer-table td {
        font-size: 14px;
    }
    /* 支部グリッド: 間隔を縮小 */
    .branch-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .branch-item {
        padding: 10px 5px;
        font-size: 13px;
    }
    /* 会則ボックス: 余白縮小 */
    .rules-box {
        padding: 20px 15px;
    }
    /* 事務局情報: 余白縮小 */
    .office-info {
        padding: 20px 15px;
    }
    .publication-tabs {
        gap: 10px;
    }
    .publication-tab {
        min-width: 0;
        width: 100%;
    }
    .publication-note {
        padding: 20px 15px;
    }
    .publication-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .publication-media {
        min-height: 220px;
        padding: 20px 20px 0;
    }
    .publication-body {
        padding: 18px 18px 20px;
    }
    .publication-title {
        font-size: 16px;
    }
    .series-intro {
        padding: 16px 15px;
    }
}


/* ==========================================================
   論文投稿ページ（.doc-*）
   - 投稿要領、規程、査読要領などの文書ページに共通利用
   ========================================================== */
.doc-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.doc-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #f0d8de;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}
.doc-nav-link:hover,
.doc-nav-link.is-active {
    background: #fdf0f3;
    border-color: #C9788A;
    color: #C9788A;
}
.doc-note {
    background: #fdf8f9;
    border: 1px solid #f0d8de;
    padding: 24px 28px;
}
.doc-note-inline {
    margin-bottom: 20px;
}
.doc-center-note {
    text-align: center;
}
.doc-lead {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.doc-sign {
    margin-top: 20px;
    font-weight: bold;
}
.doc-download {
    margin-top: 18px;
}
.doc-download a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #C9788A;
    color: #C9788A;
    font-weight: bold;
    text-decoration: none;
}
.doc-download a:hover {
    background: #fdf0f3;
}
.doc-highlight {
    font-weight: bold;
    background: linear-gradient(transparent 58%, #fde5eb 58%);
}
.doc-number-list {
    margin: 0;
    padding-left: 1.5em;
}
.doc-number-list li {
    margin-bottom: 14px;
    line-height: 1.9;
}
.doc-number-list li:last-child {
    margin-bottom: 0;
}
.doc-sublist {
    margin: 10px 0 0 0;
    padding-left: 1.2em;
}
.doc-sublist li {
    margin-bottom: 6px;
    list-style: disc;
}
.doc-address {
    margin-top: 14px;
    padding: 16px 18px;
    background: #fdf0f3;
    border: 1px solid #f0d8de;
}
.doc-article-list {
    margin: 0;
}
.doc-article-list dt {
    margin-top: 22px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.doc-article-list dt:first-child {
    margin-top: 0;
}
.doc-article-list dd {
    margin: 10px 0 0 0;
}
.doc-article-list dd p {
    margin: 0 0 10px;
    line-height: 1.9;
}
.doc-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.doc-meta-item {
    padding: 16px 18px;
    background: #fdf8f9;
    border: 1px solid #f0d8de;
}
.doc-meta-label {
    display: block;
    font-size: 13px;
    color: #C9788A;
    font-weight: bold;
    margin-bottom: 6px;
}
.doc-meta-value {
    display: block;
    line-height: 1.7;
    color: #444;
}
@media (max-width: 991.98px) {
    .doc-nav-link {
        width: 100%;
    }
    .doc-note {
        padding: 20px 15px;
    }
    .doc-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
シンポジウム用タブ切替機能
   ========================================================== */
   
   .symposium-intro {
    background: #fdf8f9;
    border: 1px solid #f0d8de;
    padding: 28px 30px;
}

.symposium-intro p:last-child {
    margin-bottom: 0;
}

.symposium-theme {
    font-size: 1.2rem;
    font-weight: bold;
    color: #C9788A;
    line-height: 1.8;
    margin: 0 0 20px;
}

.symposium-theme span {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    color: #777;
    margin-bottom: 8px;
}

.symposium-meta {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.symposium-meta th,
.symposium-meta td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0d8de;
    vertical-align: top;
    font-size: 15px;
}

.symposium-meta th {
    width: 150px;
    background: #fdf0f3;
    white-space: nowrap;
    color: #333;
}

.program-box {
    background: #fff;
    border: 1px solid #f0d8de;
    padding: 24px 26px;
}

.program-list {
    margin: 0;
    padding-left: 1.4em;
}

.program-list > li {
    margin-bottom: 18px;
    line-height: 1.9;
}

.program-list > li:last-child {
    margin-bottom: 0;
}

.program-sublist {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 0;
}

.program-sublist li {
    margin-bottom: 8px;
}

.program-label {
    display: inline-block;
    min-width: 7.5em;
    color: #C9788A;
    font-weight: bold;
}

.theme-box {
    background: #fdf8f9;
    border: 1px solid #f0d8de;
    padding: 26px 28px;
}

.theme-box p:last-child {
    margin-bottom: 0;
}

.symposium-accordion {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.symposium-item {
    border: 1px solid #f0d8de;
    background: #fff;
}

.symposium-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 24px;
    border: none;
    background: #fdf8f9;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.symposium-toggle:hover,
.symposium-toggle:focus-visible {
    background: #fdf0f3;
    color: #b25c70;
    outline: none;
}

.symposium-toggle-text {
    display: block;
}

.symposium-toggle-title {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.5;
}

.symposium-toggle-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid #e4c6cf;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9788A;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.symposium-toggle[aria-expanded="true"] .symposium-toggle-icon {
    transform: rotate(45deg);
    background: #fff;
}

.symposium-panel {
    padding: 14px 24px 20px;
    border-top: 1px solid #f0d8de;
}

.symposium-panel[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .symposium-theme {
        font-size: 1.2rem;
    }

    .symposium-meta th,
    .symposium-meta td {
        display: block;
        width: 100%;
    }

    .symposium-meta th {
        border-bottom: none;
        padding-bottom: 6px;
    }

    .symposium-meta td {
        padding-top: 0;
        margin-bottom: 10px;
    }

    .program-box,
    .theme-box,
    .symposium-intro {
        padding: 22px 18px;
    }

    .symposium-toggle {
        padding: 10px 14px;
        align-items: flex-start;
    }

    .symposium-toggle-title {
        font-size: 1.2rem;
    }

    .symposium-panel {
        padding: 12px 14px 16px;
    }
}


/* ==========================================================
支部例会情報のスタイル
   ========================================================== */

   .area-intro {
    background: #fdf8f9;
    border: 1px solid #f0d8de;
    padding: 28px 30px;
}

.area-intro p:last-child {
    margin-bottom: 0;
}

.area-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #ead5db;
    font-size: 14px;
    color: #666;
}

.branch-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.branch-links a {
    display: block;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #f0d8de;
    color: #C9788A;
    font-weight: bold;
    line-height: 1.6;
    transition: background 0.2s ease, color 0.2s ease;
}

.branch-links a:hover {
    background: #fdf0f3;
    color: #b25c70;
}

.branch-accordion {
    display: grid;
    gap: 32px;
}

.branch-panel {
    border: none;
    background: transparent;
}

.branch-summary {
    display: block;
    padding: 0 0 12px;
    background: transparent;
}

.branch-summary-text {
    display: block;
}

.branch-summary-title {
    display: block;
    font-size: 1.35rem;
    font-weight: bold;
    line-height: 1.5;
    color: #C9788A;
}

.branch-summary-note {
    display: block;
    margin-top: 2px;
    font-size: 0.85rem;
    color: #777;
}

.branch-body {
    padding: 0;
    border-top: none;
}

.branch-table-wrap {
    overflow-x: auto;
}

.branch-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #ead5db;
}

.branch-table th,
.branch-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #ead5db;
    vertical-align: top;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    background: #fff;
}

.branch-table th {
    background: #fdf8f9;
    color: #333;
    font-weight: bold;
    white-space: nowrap;
}

.branch-table th:nth-child(1),
.branch-table td:nth-child(1) {
    width: 72px;
    text-align: center;
}

.branch-table th:nth-child(2),
.branch-table td:nth-child(2) {
    width: 240px;
}

.branch-meta-date {
    font-weight: bold;
    color: #333;
}

.branch-meta-place {
    display: block;
    margin-top: 6px;
}

@media (max-width: 767px) {
    .branch-links {
        grid-template-columns: 1fr;
    }

    .area-intro {
        padding: 22px 18px;
    }

    .branch-summary {
        padding: 0 0 10px;
    }

    .branch-summary-title {
        font-size: 1.15rem;
    }

    .branch-body {
        padding: 0;
    }

    .branch-table th,
    .branch-table td {
        padding: 12px 12px;
        font-size: 14px;
    }
}

p.text-right {
    text-align: right;
}