@charset "UTF-8";
/* 移設ページ用CSS。詳細は運用マニュアル参照。 */


/* ============================================================
   【共通】ページ全体
   ============================================================ */

/* body */
body {
    text-align: left;
    background: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-base);
    line-height: 1.7;
}

/* ヘッダー・メニュー・フッターのリンク */
.l-header a:link, .l-header a:visited, .l-header a:hover, .l-header a:active,
.l-drawer a:link, .l-drawer a:visited, .l-drawer a:hover, .l-drawer a:active,
.l-footer a:link, .l-footer a:visited, .l-footer a:hover, .l-footer a:active,
a.skip-link:link, a.skip-link:visited {
    text-decoration: none;
    color: inherit;
}
.l-drawer a:hover, .l-footer a:hover { text-decoration: underline; }

/* ヘッダー・メニュー・フッターの行間 */
.l-header h1, .l-header p, .l-header ul, .l-header ol, .l-header li,
.l-drawer h1, .l-drawer p, .l-drawer ul, .l-drawer ol, .l-drawer li,
.l-footer h1, .l-footer h2, .l-footer p, .l-footer ul, .l-footer ol, .l-footer li {
    line-height: 1.7;
}
.l-footer h2, .l-drawer h1 { font-size: inherit; }


/* ============================================================
   【共通】現行ページの外枠
   目印：#LocalContents・#LocalRight・#ContentsBox・#BreadCrimbs
   ============================================================ */

/* 2カラム用の固定幅・回り込み・背景：解除 */
.legacy-page #LocalContents,
.legacy-page #LocalRight,
.legacy-page #ContentsBox {
    width: auto;
    float: none;
    margin-left: 0;
    background: none;
}

/* 現行の左メニュー：新デザインのメニュー使用のため非表示 */
.legacy-page #LocalLeft,
.legacy-page #LocalLeftMenuOnly { display: none; }

/* パンくず */
.legacy-page #BreadCrimbs {
    padding: 0;
    margin: 0 0 24px;
    font-size: var(--fz-xs);
    color: var(--clr-text-sub);
}
.legacy-page #BreadCrimbs ol { margin: 0; padding: 0; }
.legacy-page #BreadCrimbs a { color: var(--clr-link); }


/* ============================================================
   【共通】本文
   ============================================================ */

/* 本文リンク Graylink のホバー */
.legacy-page a.Graylink:hover { text-decoration: underline; color: #D90000; }

/* 表の見出し */
.legacy-page th {
    background-color: var(--clr-bg-head) !important;
    color: var(--clr-text);
    border-bottom: 2px solid var(--rd-bronze) !important;
}

/* 画像 */
.legacy-page img { max-width: 100%; height: auto; }

/* 長文の枠（経歴・整形テキスト） */
.legacy-page pre,
.legacy-page p.profile2 {
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    padding: 12px 14px;
    margin: 0 0 12px;
    line-height: 1.8;
}

/* タイルボタン：数に応じて自動で折り返し（画面が狭いほど列が減る） */
.legacy-page .rd-tile-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* タイルボタン：現行CSSの青リンク色の打ち消し（トップと同じ見た目） */
.legacy-page .rd-tile-item:link,
.legacy-page .rd-tile-item:visited { color: var(--rd-text); text-decoration: none; }
.legacy-page .rd-tile-item:hover,
.legacy-page .rd-tile-item:active { color: var(--rd-bronze); text-decoration: none; }

/* プルダウン：左のラベルとの間に余白 */
.legacy-page select { margin-left: 10px; }

/* 説明文 exp の区切り線 */
.legacy-page p.exp {
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 6px;
    margin: 0 0 10px;
}

/* 見出しの帯（現行は紺色ベタ）：新デザインの色に */
.legacy-page .bana {
    background-color: var(--clr-bg-head) !important;
    color: var(--clr-text) !important;
    border-left: 4px solid var(--rd-bronze);
    border-radius: 4px;
}


/* ============================================================
   【共通】900px以下
   ============================================================ */
@media (max-width: 900px) {

    /* 表：枠内で横スクロール */
    .legacy-page table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
    }
    /* 表の中身 */
    .legacy-page table > tbody { display: table; min-width: 100%; }

    /* セルの折り返し（HTMLのnowrap無効化） */
    .legacy-page th, .legacy-page td { white-space: normal !important; }

    /* セル幅（HTMLのwidth属性無効化＋最小幅） */
    .legacy-page th[width], .legacy-page td[width] { width: auto !important; }
    .legacy-page th, .legacy-page td { min-width: 4.5em; }

    /* 長文セルの折り返し */
    .legacy-page td { overflow-wrap: anywhere; }

    /* 整形テキスト pre：長い行は折り返す（改行・字下げはそのまま） */
    .legacy-page pre {
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    /* プルダウン（幅いっぱいのため余白なし。min-widthは選択中の文字が矢印に隠れない幅） */
    .legacy-page select { width: 100%; max-width: 100%; min-width: 7em; font-size: 0.9em; margin-left: 0; }

    /* レイアウト用の表（罫線なし）：縦積み */
    .legacy-page table:not(.list_c):not(.list):not(.kou_list),
    .legacy-page table:not(.list_c):not(.list):not(.kou_list) > tbody,
    .legacy-page table:not(.list_c):not(.list):not(.kou_list) > tbody > tr,
    .legacy-page table:not(.list_c):not(.list):not(.kou_list) > tbody > tr > td {
        display: block;
        width: 100% !important;
        text-align: left !important;
    }
}


/* ============================================================
   【個別】議員プロフィール（議員ごとのページ全て）
   目印：#profile-photo・#profile-data
   ============================================================ */

/* 顔写真：左配置。右に所属会派・選挙区が回り込み */
.legacy-page #profile-photo { float: left; margin: 0 24px 12px 0; padding: 0 !important; }
.legacy-page #profile-clear { clear: both; }

/* 説明側：現行CSS（profile_2010.css）の固定幅 408px・395px を解除して画面幅いっぱいに */
.legacy-page #profile-data { float: none !important; width: auto !important; }
.legacy-page dl.profile-detail { width: auto !important; }

/* 役職等一覧（最後のdl）：写真の下に全幅で表示 */
.legacy-page #profile-data dl:last-child { clear: left; }

/* 説明ブロック dl（写真の横は詰め、写真より下は全幅） */
.legacy-page dl {
    overflow: hidden;
    background: var(--clr-bg-head);
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    padding: 12px 16px;
    margin: 0 0 12px;
}
/* 見出し dt */
.legacy-page dt {
    font-weight: 700;
    border-left: 3px solid var(--rd-bronze);
    padding-left: 10px;
    margin-bottom: 6px;
}
/* 中身 dd */
.legacy-page dd {
    margin: 0;
    padding: 10px 12px;
    background: #fff;
    border-radius: 3px;
    line-height: 1.8;
}

/* 600px以下：回り込みなし（写真の下に全て縦並び） */
@media (max-width: 600px) {
    .legacy-page #profile-photo { float: none; margin: 0 0 12px; }
}


/* ============================================================
   【個別】議員一覧50音順
   ファイル：parts/1000090_00030_00050_giin_main.html → 00030_00050_giin.html
   目印：main の giin-page
   場所：表の左端「あ・か・さ…」の列
   ============================================================ */
@media (max-width: 900px) {

    /* 1文字だけの列（あ・か・さ…）：幅を詰める。見出し行の左端も同じ列 */
    .giin-page table.list th[scope="row"],
    .giin-page table.list tr:first-child th:first-child {
        min-width: 1.8em !important;
        max-width: 1.8em !important;
        width: 1.8em !important;
        padding-left: 2px;
        padding-right: 2px;
    }

    /* 議員氏名の列：詰めた分を回して広くする */
    .giin-page table.list td:first-of-type { min-width: 7em !important; }
}

/* ============================================================
   【共通】600px以下：一覧表（罫線あり）を1件ずつの縦積みに
   目印：table.list_c
   ============================================================ */
@media (max-width: 600px) {

    /* 表・行・セル：縦積み */
    .legacy-page table.list_c,
    .legacy-page table.list_c > tbody,
    .legacy-page table.list_c > tbody > tr,
    .legacy-page table.list_c > tbody > tr > th,
    .legacy-page table.list_c > tbody > tr > td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: visible;
        text-align: left !important;
    }

    /* 1件＝1カード */
    .legacy-page table.list_c { border: none; }
    .legacy-page table.list_c > tbody > tr {
        border: 1px solid var(--clr-border);
        border-radius: 4px;
        background: #fff;
        padding: 8px 10px;
        margin-bottom: 8px;
    }
    .legacy-page table.list_c > tbody > tr > th,
    .legacy-page table.list_c > tbody > tr > td {
        border: none !important;
        padding: 2px 0 !important;
    }
    /* 項目名は小さく */
    .legacy-page table.list_c > tbody > tr > th {
        background: none !important;
        font-size: 0.85em;
        color: var(--clr-text-sub);
    }
}
