/* ==========================================================================
   土木鉄筋協同組合 北星会 共通スタイルシート
   ========================================================================== */

:root {
    --key-color: #337ab7;
    --key-color-dark: #2e6da4;
    --text-color: #464646;
    --border-color: rgba(0, 0, 0, 0.12);
    --bg-light: #f9f9f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-size: 16px;
    font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Hiragino Sans, "Noto Sans JP", sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.8;
    overflow-x: hidden;
    word-wrap: break-word;
}

a {
    color: var(--key-color);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
    color: var(--key-color-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   ヘッダー・グローバルナビゲーション
   ========================================================================== */
.siteHeader {
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.siteHeadContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.navbar-header {
    display: flex;
    align-items: center;
}

.siteHeader_logo {
    margin: 0;
    padding: 4px 0;
    font-size: 1.8rem;
    line-height: 1.2;
}

.siteHeader_logo a {
    display: inline-block;
    text-decoration: none;
}

.siteHeader_logo img {
    max-height: 110px;
    width: auto;
    display: block;
}

/* グローバルメニュー（PC） */
.gMenu_outer {
    display: flex;
    align-items: center;
}

.gMenu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gMenu > li {
    position: relative;
    margin: 0;
    text-align: center;
}

.gMenu > li > a {
    display: block;
    padding: 14px 1.8em;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.gMenu > li .gMenu_name {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

/* メニュー下線アニメーション */
.gMenu > li::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    border-bottom: 2px solid var(--key-color-dark);
    transition: width 0.35s ease-out;
}

.gMenu > li:hover::before,
.gMenu > li.current-menu-item::before {
    width: 100%;
}

/* モバイルメニューボタン */
.mobile-menu-btn {
    display: none;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #333333;
    cursor: pointer;
}

/* ==========================================================================
   トップページ カルーセル（スライダー）
   ========================================================================== */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #f5f5f5;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    display: none;
    width: 100%;
    transition: opacity 0.6s ease-in-out;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* カルーセル インジケーター */
.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.carousel-indicators li {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 30px;
    height: 4px;
    margin-right: 4px;
    margin-left: 4px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.55);
    border-radius: 2px;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.carousel-indicators li.active {
    background-color: #ffffff;
}

/* カルーセル 左右矢印 */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8%;
    color: #ffffff;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: none;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    text-decoration: none;
}

.carousel-control-prev {
    left: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.001) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.carousel-control-next {
    right: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.001) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.carousel-control-icon {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    user-select: none;
}

/* ==========================================================================
   メインコンテンツ領域
   ========================================================================== */
.siteContent {
    padding: 3rem 0 4rem;
}

.mainSection {
    width: 100%;
}

.entry-body p {
    margin-bottom: 1.2em;
    line-height: 1.9;
}

.entry-body .spacer {
    height: 1.5rem;
}

/* ==========================================================================
   見出しデザイン（画像を使用せずCSSで再現）
   ========================================================================== */
.section-heading {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 84px;
    padding: 18px 24px 18px 46px;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(90deg, #4b79bf 0%, #8eb0de 48%, #e6eef9 86%, #ffffff 100%);
    color: #ffffff;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.42);
    border: none;
}

.section-heading::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 16px;
    background-color: #1e57ac;
}

/* ==========================================================================
   お知らせ・活動報告（What's New）
   ========================================================================== */
.whatsnew {
    margin: 10px 0 24px;
    font-size: 100%;
    word-break: break-all;
    overflow: hidden;
}

.whatsnew hr {
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.whatsnew dl {
    margin: 0;
    padding: 10px 4px;
    border: 0;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.whatsnew dl:hover {
    background-color: #f5f5f5;
}

.whatsnew dt {
    margin: 0 0 0 0.3em;
    padding: 0 0 0 10px;
    border-left: 2px solid var(--key-color);
    color: #808080;
    font-weight: normal;
    white-space: nowrap;
    float: left;
    width: 9em;
}

.whatsnew dd {
    margin: 0;
    padding: 0 2px 0 10px;
    border-left: 2px solid #e5e5e5;
    overflow: hidden;
    color: var(--key-color);
}

.whatsnew .newmark {
    font-size: 74%;
    padding: 1px 5px;
    margin-right: 4px;
    vertical-align: middle;
    color: #ffffff;
    background-color: #ff4500;
    border-radius: 3px;
    display: inline-block;
}

/* ==========================================================================
   トップページ テキスト・アクセス・Googleマップ
   ========================================================================== */
.lead-text {
    font-size: 20px;
    line-height: 1.9;
}

.highlight-blue {
    color: #3366ff;
}

.highlight-red {
    color: #ff0000;
}

.link-text {
    font-size: 18px;
}

.office-photo {
    margin: 1.5rem 0;
}

.office-info-title {
    font-size: 20px;
    margin-bottom: 0.6em;
}

.office-info-item {
    font-size: 18px;
    margin-bottom: 0.5em;
}

.map-wrapper {
    width: 100%;
    margin-top: 1.5rem;
}

.map-wrapper iframe {
    max-width: 100%;
    border: 0;
    display: block;
}

/* ==========================================================================
   組合概要ページ（overview.html）
   ========================================================================== */
.overview-text p {
    font-size: 14pt;
    line-height: 1.9;
    margin-bottom: 1.2em;
}

.katsudou-box-img {
    margin: 1.5rem 0 2.5rem;
}

.overview-details p {
    font-size: 14pt;
    line-height: 1.8;
    margin-bottom: 0.4em;
}

.overview-details .detail-block {
    margin-bottom: 1.4em;
}

.history-list p {
    font-size: 18px;
    line-height: 1.85;
    margin-bottom: 0.7em;
}

/* ==========================================================================
   テーブルスタイル（会員一覧・会員履歴共通 / TablePress互換）
   ========================================================================== */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
    gap: 10px;
    font-size: 15px;
}

.table-search label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.table-search input {
    padding: 5px 10px;
    font-size: 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.tablepress {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 1.5em;
    border: none;
}

.tablepress th,
.tablepress td {
    padding: 10px 12px;
    border: none;
    text-align: left;
    font-size: 20px;
    line-height: 1.6;
}

.tablepress thead th {
    background-color: #d9edf7;
    font-weight: 700;
    vertical-align: middle;
    border-bottom: 1px solid #dddddd;
}

.tablepress tbody td {
    vertical-align: top;
    border-top: 1px solid #dddddd;
}

.tablepress tbody tr:first-child td {
    border-top: none;
}

.tablepress tbody tr:nth-child(odd) td {
    background-color: #f9f9f9;
}

.tablepress tbody tr:nth-child(even) td {
    background-color: #ffffff;
}

.tablepress.row-hover tbody tr:hover td,
.tablepress tbody.row-hover tr:hover td {
    background-color: #f3f3f3;
}

.member-history-title {
    font-size: 24px;
    font-weight: 700;
    margin: 1.8rem 0 0.8rem;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.siteFooter {
    border-top: 3px solid var(--key-color);
    background-color: var(--bg-light);
    margin-top: 2rem;
}

.footerMenu {
    padding: 12px 0 10px;
}

.footerMenu .nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footerMenu .nav li {
    margin: 0;
    font-size: 14px;
}

.footerMenu .nav li a {
    display: block;
    padding: 0 1em;
    color: var(--text-color);
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.footerMenu .nav li:last-child a {
    border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.footerMenu .nav li a:hover {
    text-decoration: underline;
}

.copySection {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    padding: 2em 15px;
    text-align: center;
}

.copySection p {
    font-size: 12px;
    margin: 0 0 5px;
    color: var(--text-color);
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */
@media (max-width: 991.98px) {
    .siteHeadContainer {
        justify-content: center;
        position: relative;
    }

    .siteHeader_logo img {
        max-height: 75px;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .gMenu_outer {
        display: none;
        width: 100%;
        margin-top: 12px;
        border-top: 1px solid #eeeeee;
    }

    .gMenu_outer.active {
        display: block;
    }

    .gMenu {
        flex-direction: column;
        width: 100%;
    }

    .gMenu > li {
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
    }

    .gMenu > li > a {
        padding: 12px 16px;
    }
}

@media (max-width: 767.98px) {
    .section-heading {
        min-height: 64px;
        padding: 14px 16px 14px 36px;
        font-size: 22px;
    }

    .section-heading::before {
        width: 12px;
        left: 8px;
        top: 6px;
        bottom: 6px;
    }

    .whatsnew dt {
        float: none;
        width: auto;
        margin-bottom: 4px;
    }

    .whatsnew dd {
        margin-left: 0.3em;
    }

    .tablepress th,
    .tablepress td {
        font-size: 15px;
        padding: 8px;
    }

    .lead-text,
    .overview-text p,
    .overview-details p {
        font-size: 16px;
    }

    .history-list p {
        font-size: 15px;
    }

    .map-wrapper iframe {
        height: 340px;
    }

    .footerMenu .nav {
        flex-direction: column;
    }

    .footerMenu .nav li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    }

    .footerMenu .nav li a {
        border: none;
        padding: 8px 0;
    }
}
