@charset "utf-8";

/* ============================================
 * about 共通スタイル（index / admission / organization / history）
 * ============================================ */

/* ローカル変数はサイト共通変数（variables.css）のエイリアス */
:root {
    --about-primary:      var(--color-primary);
    --about-primary-dark: var(--color-primary-darker);
    --about-accent:       #d4e8a5; /* このページ固有の淡色 */
    --about-light-bg:     #f7fbef; /* このページ固有の淡緑背景 */
    --about-border:       #dfe8c0; /* このページ固有のボーダー */
    --about-text:         var(--color-text);
    --about-muted:        var(--color-muted);
    --about-pdf:          var(--color-danger);
    --about-link:         var(--color-accent);
}

/* ---- ページ全体 ---- */
#about {
    padding: 40px 0;
    background: #f7f8fa;
}
#about .inner {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ---- 見出し ---- */
#about h2 {
    font-size: 20px;
    font-weight: bold;
    color: var(--about-text);
    margin: 36px 0 18px;
    padding: 10px 18px;
    background: var(--about-light-bg);
    border-left: 5px solid var(--about-primary);
    border-radius: 0 4px 4px 0;
}
#about h2::after {
    content: none;
}
#about h3 {
    font-size: 16px;
    font-weight: bold;
    color: var(--about-text);
    margin: 20px 0 10px;
    padding-left: 12px;
    border-left: 3px solid var(--about-accent);
}
#about p {
    line-height: 1.9;
    color: #333;
    margin: 10px 0;
    padding-top: 0;
}

/* ---- セクション挨拶系 ---- */
section.about p,
section.voice p,
section.about_hp p {
    padding-top: 12px;
    text-indent: 1em;
    line-height: 2.0;
}

/* ---- 会長挨拶 ---- */
section.voice h2 {
    margin-bottom: 24px;
}
section.voice .chairman {
    display: flex;
    gap: 24px;
    align-items: center;
    margin: 10px 0 24px;
    padding: 18px 22px;
    background: var(--about-light-bg);
    border-radius: 6px;
    border: 1px solid var(--about-border);
}
section.voice .chairman img {
    width: 180px;
    height: auto;
    border-radius: 6px;
    border: 3px double #ccc;
    flex-shrink: 0;
}
section.voice .chairman figcaption p {
    margin: 0;
    padding-top: 0;
    text-indent: 0;
    font-size: 14px;
    line-height: 1.7;
}
section.voice .chairman strong {
    font-size: 1.15rem;
    color: var(--about-primary-dark);
}

/* ============================================
 * organization.php — 役員一覧・構成図・委員会
 * ============================================ */
.director,
#committee {
    margin-bottom: 20px;
}
.director table,
#committee table,
#membership_fee table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border: 1px solid var(--about-border);
    border-radius: 4px;
    overflow: hidden;
}
.director table tr,
#committee table tr {
    border-bottom: 1px dotted var(--about-border);
}
.director table tr:last-child,
#committee table tr:last-child {
    border-bottom: 0;
}
.director table th,
#committee table th {
    background: var(--about-light-bg);
    color: var(--about-text);
    font-weight: bold;
    text-align: center;
    border-right: 1px solid var(--about-border);
}
.director table td,
#committee table td {
    color: #333;
    border-right: 1px solid var(--about-border);
}
.director table th:last-child,
.director table td:last-child,
#committee table th:last-child,
#committee table td:last-child {
    border-right: 0;
}

.director table tr:hover td,
#committee table tr:hover td {
    background: #fafbf5;
}

.director table th.position { width: 22%; }
.director table td.name { width: 28%; font-weight: bold; }
.director table td.organization { color: var(--about-muted); font-size: 13px; }

#committee table th.committee_name { width: 22%; }
#committee table td.item { width: 28%; text-align: center; font-weight: bold; color: var(--about-primary-dark); }
#committee table td.detail { font-size: 13px; line-height: 1.7; }

#diagram {
    margin: 30px 0;
    text-align: center;
}
#diagram img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    padding: 12px;
    background: #fff;
}

/* ============================================
 * admission.php — 会費表
 * ============================================ */
#membership_fee {
    margin-top: 20px;
}
#membership_fee table tr {
    border-bottom: 1px dotted #ccc;
}
#membership_fee table th,
#membership_fee table td {
    text-align: center;
    font-size: 14px;
}
#membership_fee table th {
    background: var(--about-light-bg);
    color: var(--about-text);
    font-weight: bold;
}
#membership_fee table td.admission_fee,
#membership_fee table td.annual_fee {
    font-weight: bold;
    color: var(--about-primary-dark);
}
#membership_fee table td.left {
    text-align: left;
    font-size: 13px;
    color: var(--about-muted);
}
#membership_fee table td p {
    padding: 0;
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}
#membership_fee .annotation {
    padding: 0;
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--about-muted);
}

/* ---- 入会手続書類ボックス ---- */
#application {
    background: var(--about-light-bg);
    border: 2px dashed var(--about-primary);
    padding: 20px 28px;
    border-radius: 10px;
    margin-top: 32px;
}
#application h3 {
    margin-top: 0;
    border-left: 0;
    padding-left: 0;
    font-size: 17px;
    color: var(--about-primary-dark);
}
#application ol {
    list-style-position: outside;
    margin: 12px 0 0 2em;
    padding-left: 0;
}
#application ol li {
    padding: 4px 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

/* ---- PDF / DOC / Link（背景色バッジ） ----
   ※ ファイル拡張子アイコンは common.css の a[href$=".pdf"] 等で自動付与 */
a.pdf,
a.doc,
a.link {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.15s;
}
a.pdf {
    color: var(--about-pdf);
    background: #fdf2f2;
}
a.pdf:hover { background: #fae5e5; }
a.doc {
    color: var(--about-link);
    background: #eef5fb;
}
a.doc:hover { background: #dbeaf5; }
a.link {
    color: var(--about-link);
}
a.link:hover { text-decoration: underline; }

/* PDFリンク（先頭ページの大きなリンク） */
#about > div.inner > a.pdf {
    display: inline-block;
    padding: 10px 20px;
    background: var(--about-pdf);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}
#about > div.inner > a.pdf:hover {
    background: #a33636;
}
/* 大きなボタンでは白文字になるので ::before のアイコン色を上書き */
#about > div.inner > a.pdf::before {
    color: #fff;
}

/* ============================================
 * admission.php — 定款
 * ============================================ */
#articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--about-border);
}
#articles > h1 {
    margin-top: 0;
    font-size: 24px;
    text-align: center;
    color: var(--about-text);
    padding: 16px 0;
    border-top: 3px solid var(--about-primary);
    border-bottom: 3px solid var(--about-primary);
    margin-bottom: 24px;
}
#articles > h3 {
    margin-top: 36px;
    font-size: 18px;
    color: #fff;
    background: var(--about-primary);
    padding: 8px 16px;
    border-radius: 4px;
    border-left: 0;
    text-decoration: none;
}

#articles_index {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 18px 24px;
    background: var(--about-light-bg);
    border-radius: 6px;
    border: 1px solid var(--about-border);
    margin-bottom: 24px;
}
#articles_index > div {
    flex: 1;
}
#articles_index ul {
    list-style: none;
    width: fit-content;
    margin: 0 auto;
    padding: 0;
}
#articles_index ul li {
    font-size: 15px;
    padding: 4px 0;
}
#articles_index ul li a {
    color: var(--about-primary-dark);
    text-decoration: none;
}
#articles_index ul li a:hover {
    text-decoration: underline;
}
#articles_index .num {
    display: inline-block;
    min-width: 22px;
    text-align: center;
    font-weight: bold;
    color: var(--about-primary-dark);
}

section.article {
    padding: 12px 0;
}
section.article.no_margin_top {
    margin-top: 0;
}
section.article h3 {
    font-size: 15px;
    border-left: 3px solid var(--about-accent);
    padding-left: 12px;
    color: var(--about-text);
    margin: 0 0 10px;
    background: transparent;
}
section.article dl {
    display: flex;
    gap: 10px;
    margin: 0 0 0.6em;
}
section.article dl dt {
    width: 5em;
    flex-shrink: 0;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.8;
    color: var(--about-primary-dark);
    text-align: center;
    background: var(--about-light-bg);
    border-radius: 3px;
    padding: 2px 6px;
    height: fit-content;
}
section.article dl dd {
    margin: 0;
    line-height: 1.9;
    flex: 1;
}
section.article p {
    padding: 0;
    margin: 0!important;
    font-size: 15px;
    line-height: 1.9;
}
section.article ol {
    list-style-position: outside;
    margin: 8px 0 8px 2em;
    padding-left: 0;
}
section.article ol li {
    padding: 2px 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}
section.article .signature {
    margin-top: 24px;
    text-align: right;
    font-size: 14px;
    color: var(--about-muted);
}

/* 理事・監事 mini-table */
table#chairman, table#board_member, table#shareholder {
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 14px;
    background: #fff;
    border: 1px solid var(--about-border);
}
table#chairman th, table#board_member th, table#shareholder th {
    width: 250px;
    padding: 8px 12px;
    background: var(--about-light-bg);
    text-align: left;
    border-bottom: 1px dotted var(--about-border);
}
table#chairman td, table#board_member td, table#shareholder td {
    width: 150px;
    padding: 8px 12px;
    border-bottom: 1px dotted var(--about-border);
}

/* ============================================
 * レスポンシブ
 * ============================================ */
@media (max-width: 768px) {
    #about {
        padding: 20px 0;
    }
    #about h2 {
        font-size: 17px;
        padding: 8px 14px;
    }
    #articles > h1 {
        font-size: 20px;
    }
    #articles_index {
        flex-direction: column;
        gap: 0;
        padding: 12px 16px;
    }
    #articles_index ul {
        margin: 0;
    }
    section.voice .chairman {
        flex-direction: column;
        align-items: flex-start;
    }
    section.voice .chairman img {
        width: 140px;
    }
    .director table,
    #committee table,
    #membership_fee table {
        font-size: 13px;
    }
    #membership_fee table th:last-child {
        width: 20%;
    }
    table#chairman th,
    table#chairman td  {
        padding: 6px 10px;
    }
    table#board_member th, table#shareholder th,
    table#board_member td, table#shareholder td {
        width: auto;
        padding: 6px 10px;
    }
    section.article dl {
        flex-direction: column;
        gap: 4px;
    }
}

/* ============================================
 * about/recent.php・about/history.php — 活動タブ/テーブル
 * ============================================ */

/* ---- 対ページへのリンク ---- */
.history-counterpart {
    margin: 8px 0 0;
    font-size: 14px;
}
.history-counterpart a {
    color: #1f6c1f;
    text-decoration: none;
}
.history-counterpart a:hover {
    text-decoration: underline;
}
.history-counterpart i {
    margin-right: 4px;
}

/* ---- タブ ---- */
.history-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    border-bottom: 2px solid #86b534;
}
.history-tabs a {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px 4px 0 0;
    background: #f0f0f0;
    color: #333;
}
.history-tabs a.is-active {
    background: #86b534;
    color: #fff;
    font-weight: bold;
}

/* ---- 年度セレクト ---- */
.history-year-select {
    margin: 18px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.history-year-select label {
    font-weight: bold;
    font-size: 14px;
}
.history-year-select select {
    padding: 6px 10px;
    border: 1px solid #c0c4c8;
    border-radius: 3px;
    font-size: 14px;
}

/* ---- 該当なしメッセージ ---- */
.history-empty {
    padding: 30px;
    text-align: center;
    color: #777;
    background: #f7f8fa;
    border: 1px solid #e0e3e6;
    border-radius: 4px;
}

/* ---- テーブル本体 ---- */
.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}
.history-table th {
    padding: 10px;
    border-bottom: 2px solid #86b534;
    background: #f7f8fa;
    text-align: left;
}
.history-table th.col-date     { width: 110px; }
.history-table th.col-speaker  { width: 200px; }
.history-table th.col-host     { width: 180px; }
.history-table th.col-status   { width: 130px; }

.history-table td {
    padding: 10px;
    border-bottom: 1px solid #e8ebee;
    vertical-align: middle;
}
.history-table td.col-date {
    white-space: nowrap;
}
.history-table td.col-host {
}
/* 同一日付内の中間行：下ボーダーを控えめに */
.history-table td.is-dashed {
    border-bottom: 1px dashed #eef1f4;
}
.history-table td.col-status {
    font-weight: bold;
    font-size: 13px;
}

/* ---- セル内要素 ---- */
.history-table .history-title-link {
    color: #2d6aa6;
    text-decoration: none;
}
.history-table .affil {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}
.history-table .is-empty {
    color: #999;
}
.history-table .status-done    { color: #2d7a44; }
.history-table .status-undone  { color: #c94545; }

/* 複数演者：2人目以降は上部にセパレータ */
.history-table .speaker-row--next {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dotted #eef1f4;
}

/* 複数司会：2人目以降は上部にセパレータ */
.history-table .host-row--next {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dotted #eef1f4;
}

/* ============================================
 * 講演会カード（history-card） — 講演会タブ専用
 * ============================================ */
.history-card-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 16px;
}

.history-card {
    background: #fff;
    border: 1px solid var(--about-border);
    border-radius: 6px;
    padding: 18px 22px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* ---- カード見出し（日付 + 開催形式 + 状態） ---- */
.history-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--about-primary);
}
.history-card__date {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--about-primary-dark);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.history-card__title {
    font-size: 0.95rem;
    color: #333;
    flex: 1 1 auto;
    min-width: 0;
}
.history-card__title--link {
    color: var(--about-link);
    text-decoration: none;
}
.history-card__title--link:hover {
    text-decoration: underline;
}
.history-card__badge {
    padding: 2px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 12px;
    white-space: nowrap;
}
.history-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: var(--about-link);
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.history-card__btn:hover {
    background: var(--color-accent-dark, #24527f);
}
.history-card__btn i {
    font-size: 0.9em;
}
.history-card__badge.is-done {
    background: var(--about-light-bg);
    color: var(--about-primary-dark);
    border: 1px solid var(--about-border);
}
.history-card__badge.is-undone {
    background: #fdf2f2;
    color: var(--about-pdf);
    border: 1px solid #f2d6d6;
}

/* ---- カード本体（dl） ---- */
.history-card__body {
    margin: 0;
}
.history-card__row {
    display: grid;
    grid-template-columns: 7em 1fr;
    column-gap: 18px;
    padding: 14px 0;
    border-top: 1px dashed #e0e6ea;
}
.history-card__row:first-child {
    border-top: 0;
    padding-top: 0;
}
.history-card__row dt {
    margin: 0;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--about-primary-dark);
    background: var(--about-light-bg);
    border-radius: 3px;
    padding: 3px 10px;
    text-align: center;
    justify-self: start;
    align-self: start;
    min-width: 5.5em;
}
.history-card__row dd {
    margin: 0;
    line-height: 1.75;
}

/* ---- 中身のパーツ ---- */
.history-card__row .title {
    margin: 0 0 0.5em;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.6;
    color: #222;
    margin-top: 4px !important;
}
.history-card__row .affil {
    margin: 0;
    font-size: 13px;
    color: var(--about-muted);
    margin-top: 4px !important;
}
.history-card__row .person {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: #222;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}
.history-card__row .person small {
    margin-left: 0.3em;
    font-size: 0.8em;
    font-weight: normal;
    color: var(--about-muted);
}

/* 複数演者／複数司会：2人目以降は上部にセパレータ */
.history-card__person.is-next {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dotted #eef1f4;
}

/* ---- 入れ子（特別講演セッション配下の 講演N） ---- */
.history-card__sublist {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.history-card__sublist > .history-card__row {
    padding: 10px 0 0;
    border-top: 1px dotted #eef1f4;
    grid-template-columns: 6em 1fr;
    column-gap: 14px;
}
.history-card__sublist > .history-card__row:first-child {
    padding-top: 0;
    border-top: 0;
}
.history-card__sublist > .history-card__row > dt {
    font-size: 0.82rem;
    background: transparent;
    color: var(--about-primary);
    border: 1px solid var(--about-primary);
    padding: 2px 8px;
}
/* 子要素（講演N 単独行の次の無ラベル行）: dt なしで親 dd 直下に縦積み */
.history-card__children {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.history-card__child {
    border-top: 1px dotted #eef1f4;
    padding-top: 8px;
}
.history-card__child:first-child {
    border-top: 0;
    padding-top: 4px;
}

/* ---- レスポンシブ ---- */
@media (max-width: 640px) {
    .history-card {
        padding: 7px;
    }
    .history-card__head {
        gap: 6px 10px;
    }
    .history-card__title {
        flex: 1 1 100%;
        order: 3;
    }
    .history-card__btn {
        margin-left: 0;
    }
    .history-card__row {
        grid-template-columns: 1fr;
        row-gap: 6px;
        padding: 12px 0;
    }
    .history-card__row dt {
        font-size: 0.82rem;
        min-width: 0;
        padding: 2px 8px;
    }
    .history-card__row .title {
        font-size: 0.95rem;
    }
    .history-card__sublist > .history-card__row {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
}

