@charset "UTF-8";
@import url(reset.css);

/* ==========================================
   1. 基本設定・ベース
   ========================================== */
html, body {
    font-size: 10px; /* 1rem = 10px */
    width: 100%;
}
body {
    position: relative;
    margin: 0;
    padding: 0;
    color: #323232;
    font-size: 1.6rem;
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: .1em;
    font-feature-settings: "palt";
    background: #dfdfdf url(../img/bg_body.png) 0 0 repeat;
    background-size: 140px;
}
a {
    color: #323232;
    text-decoration: none;
    transition: all 0.4s;
}
a:hover {
    opacity: 0.7;
}
img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   2. 認証 UI（ログイン・ログアウト）
   ========================================== */
.logout_link {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    margin: 0 auto;
}
.logout_link a.home {
    position: relative;
    display: inline-block;
    background: url(../img/icon_home.svg) center left no-repeat;
    background-size: 18px;
    margin-right: 20px;
    padding: 5px 20px 5px 25px;
    font-size: 1.4rem;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}
.logout_link a.home:before {
    position: absolute;
    display: block;
    content: "";
    right: 0;
    height: 14px;
    margin-top: 1px;
    border-right: 1px solid #000;
}
.logout_link a.logout {
    display: inline-block;
    background: url(../img/logout_icon.svg) center left no-repeat;
    background-size: 18px;
    margin-right: 20px;
    padding: 5px 5px 5px 25px;
    font-size: 1.4rem;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}
.logout_link a:hover {
    opacity: 0.5;
}
section.login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.login-card {
    background: #fff;
    padding: 60px 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-sizing: border-box;
}
.login-logo {
    margin-bottom: 40px;
}
.login-logo img {
    width: 320px;
}
.login-card h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 40px;
}
#loginform p {
    text-align: left;
    margin-bottom: 25px;
}
#loginform label {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 10px;
}
#loginform input[type="text"], #loginform input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.6rem;
    box-sizing: border-box;
}
.login-remember {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}
#wp-submit {
    background-color: #2a3a75 !important;
    color: #fff !important;
    width: 100%;
    padding: 15px !important;
    border: none !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    cursor: pointer;
    transition: 0.2s;
}
.login-footer {
    margin-top: 30px;
    font-size: 1.4rem;
    color: #666;
    line-height: 1.6;
}
.login-top {
    margin-top: 40px;
}

/* ==========================================
   3. ダッシュボード (TOP画面)
   ========================================== */
.dashboard-wrapper {
    padding: 80px 0 100px;
    min-height: calc(100vh - 400px);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dashboard-header {
    margin-bottom: 80px;
    text-align: center;
}
.dashboard-header img {
    width: 420px;
    max-width: 90%;
}
.dashboard-header h2 {
    margin-top: 40px;
    font-size: 24px;
    font-weight: bold;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 50px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.dashboard-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #103C89;
    color: #fff !important;
    font-weight: 700;
    font-size: 2.0rem;
    height: 120px;
    border-radius: 3px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}
.dashboard-btn:hover {
    background-color: #364a8a;
    transform: translateY(-5px);
}
@media screen and (max-width: 768px) {
    .dashboard-wrapper {
        padding: 60px 0 60px;
        min-height: 100px;
    }
    .dashboard-header {
        margin-bottom: 60px;
    }
    .dashboard-btn {
        font-size: 1.6rem;
        height: 80px;
    }
}

/* ==========================================
   4. 資料一覧・レイアウト
   ========================================== */
.category-header {
    text-align: center;
    padding: 40px 0 70px;
}
.category-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-top: 30px;
}
.member-page-wrapper {
    padding: 50px 0 80px;
    background-color: #FFF;
}
.member-page-container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    padding: 0 20px;
    box-sizing: border-box;
}
.member-sidebar {
    width: 240px;
    flex-shrink: 0;
}
.member-main-content {
    flex-grow: 1;
}
.filter-title {
    font-size: 1.4rem;
    color: #888;
    margin: 30px 0 20px;
    font-weight: normal;
}
.custom-filter-list li label {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.5rem;
}
.custom-filter-list li label:hover {
    background: #f0f4ff;
}
.custom-filter-list input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}
.horizontal-filter {
    background: #e9e9e9;
    border-radius: 5px;
    margin-bottom: 40px;
    overflow: hidden;
}
.filter-tabs {
    display: flex;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.filter-tabs li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.filter-tabs li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%; 
    height: 60%; 
    width: 1px;
    background-color: #B6B6B6;
}
.filter-tabs li a {
    display: block;
    width: 100%;
    padding: 18px 10px;
    text-align: center;
    color: #777;
    font-weight: 700;
    font-size: 1.5rem;
}
.filter-tabs li a:hover {
    background-color: #103C89;
    color: #fff;
}
.filter-tabs li.active a {
    background-color: #103C89;
    color: #fff;
}
.document-list-container {
    width: 100%;
    overflow: hidden;
}
.col-title {
    flex: 0 0 60%;
}
.col-date {
    flex: 0 0 12%;
    text-align: left;
    color: #666;
}
.col-icon {
    flex: 0 0 13%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.col-cat {
    flex: 0 0 15%;
    text-align: left;
}
.col-icon img {
    width: 20px;
}
.doc-list-header {
    display: flex;
    border-bottom: 1px solid #C0C0C0;
    padding: 20px;
    font-size: 1.4rem;
}
.doc-item-group {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid #C0C0C0;
    cursor: pointer;
    transition: 0.2s;
}
.doc-item-group:nth-of-type(even) {
    background-color: #f9f9f9;
}
.doc-item-group:hover {
    background-color: #f0f7ff !important;
}
.doc-main-row {
    display: flex;
    align-items: center;
    width: 100%;
}
.main-title {
    font-weight: 700;
    font-size: 1.6rem;
    color: #103C89;
}
.doc-excerpt-row {
    width: 100%;
    margin-top: 10px;
}
.doc-excerpt {
    font-size: 1.35rem;
    color: #888;
    line-height: 1.7;
    word-break: break-all;
    text-align: left;
}
.no-results {
    color: #999;
    padding: 20px 0;
    font-size: 1.3rem;
}
@media screen and (max-width: 1171px) {
    .doc-list-header {
        display: none;
    }
    .member-main-content {
        width: 100%;
    }
    .filter-tabs li a {
        padding: 15px 5px;
        font-size: 1.2rem;
        line-height: 1.4;
    }
    .doc-main-row {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }
    .col-title {
        flex: 0 0 100%;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    .col-date, .col-icon, .col-cat {
        flex: 0 0 auto;
        margin-right: 15px;
        text-align: left;
    }
}
@media screen and (max-width: 768px) {
    .category-header {
        padding: 40px 0;
    }
    .category-header h1 {
        font-size: 2.2rem;
        margin-top: 20px;
    }
    .member-page-wrapper {
        padding: 40px 0 0;
    }
    .member-page-container {
        gap: 20px;
    }
    .custom-filter-list {
        display: flex;
    }
    .custom-filter-list li label {
        padding: 0 20px 0 0;
        font-size: 1.3rem;
    }
    .custom-filter-list input[type="checkbox"] {
        margin-right: 5px;
        width: 12px;
        height: 12px;
    }
}

/* ==========================================
   7. パーツ・検索・装飾
   ========================================== */
.search-input-inner {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}
.search-field {
    width: 100%;
    padding: 10px 10px 10px 40px !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.4rem;
    box-sizing: border-box;
    outline: none;
    background: #fff url(../img/search_icon.svg) no-repeat 12px center;
    background-size: 18px;
}
.search-form input[type="submit"] {
    display: none;
}
.search-field:focus {
    border-color: #103C89;
}
.custom-doc-icon {
    width: 26px;
    height: auto;
    vertical-align: middle;
}
.no-file {
    color: #ccc;
    font-size: 1.4rem;
}
.tag-label {
    display: inline-block;
    padding: 4px 15px;
    border-radius: 5px;
    font-size: 1.3rem;
    border: 1px solid #939393;
}
.tag-nagano {
    border-color: #103C89;
    color: #103C89;
    background: #DAE2EF;
}
.tag-japan {
    border-color: #C63535;
    color: #C63535;
    background: #FFD4D4;
}
.tag-default {
    border-color: #939393;
    color: #6F6F6F;
    background: #E0E0E0;
}
.search-result-category-block {
    margin-bottom: 60px;
}
.result-cat-title {
    background-color: #103C89;
    color: #fff;
    padding: 15px 25px;
    font-size: 2.2rem;
    font-weight: 700;
    border-radius: 5px;
    margin-bottom: 10px;
}

.back-to-top-wrap {
    text-align: center;
    padding: 40px 0 60px;
    clear: both;
}
.btn-back {
    display: inline-flex;
    align-items: center;
    color: #103C89;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s;
    padding: 4px 0 4px 30px;
    background: url(../img/arrow_icon.svg) no-repeat left 4px;
}
.btn-back:hover {
    opacity: 0.7;
    text-decoration: none;
}
@media screen and (max-width: 768px) {
    .back-to-top-wrap {
        padding: 40px 0 20px;
    }
    .btn-back {
        font-size: 1.5rem;
        padding: 4px 0 4px 25px;
        background-size: 16px;
    }
}

/* 支部別：ログアウト帯の色 */

.branch-logout-bar {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    margin: 0 auto;
}
.branch-logout-bar a.home {
    position: relative;
    display: inline-block;
    background: url(../img/icon_home_w.svg) center left no-repeat;
    background-size: 18px;
    margin-right: 20px;
    padding: 5px 20px 5px 25px;
    color: #fff;
    font-size: 1.4rem;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}
.branch-logout-bar a.home:before {
    position: absolute;
    display: block;
    content: "";
    right: 0;
    height: 14px;
    margin-top: 1px;
    border-right: 1px solid #FFF;
}
.branch-logout-bar a.logout {
    display: inline-block;
    background: url(../img/logout_icon_w.svg) center left no-repeat;
    background-size: 18px;
    margin-right: 20px;
    padding: 5px 5px 5px 25px;
    color: #fff;
    font-size: 1.4rem;
    text-decoration: none;
    transition: 0.3s;
}
.branch-logout-bar a:hover {
    opacity: 0.5;
}

/* 投稿タイプに応じた背景色の切り替え */
.post-type-archive-hokushin .branch-logout-bar, .single-hokushin .branch-logout-bar {
    background-color: #64A9CB;
} /* 北信 */
.post-type-archive-toshin .branch-logout-bar, .single-toshin .branch-logout-bar {
    background-color: #5EB55D;
} /* 東信 */
.post-type-archive-chushin .branch-logout-bar, .single-chushin .branch-logout-bar {
    background-color: #E4D945;
} /* 中信 */
.post-type-archive-nanshin .branch-logout-bar, .single-nanshin .branch-logout-bar {
    background-color: #E69660;
} /* 南信 */
.post-type-archive-nanshiki .branch-logout-bar, .single-nanshiki .branch-logout-bar {
    background-color: #4CBDA3;
} /* 軟式 */
.branch-list .col-date {
    flex: 0 0 120px;
}
.branch-list .col-title {
    flex: 1;
    text-align: left;
}
.yearly-archive-list {
    list-style: none;
    padding: 0;
}
.yearly-archive-list li {
    margin-bottom: 20px;
    font-size: 1.6rem;
}
/*
.yearly-archive-list li a::before {
    content: "・";
    margin-right: 8px;
}
*/
/* デフォルトではスマホ用を隠す */
.pc-only { display: block; }
.sp-only { display: none; }

@media screen and (max-width: 768px) {
    .pc-only { display: none; }
    .sp-only { display: block; }
    .yearly-archive-dropdown select {
        width: 100%;
        padding: 10px;
        border: 1px solid #d1d1d1;
        border-radius: 4px;
        font-size: 1.6rem;
        background-color: #fff;
        cursor: pointer;
    }
    .branch-list .col-date {
        flex: 0 0 0;
    }
}
.branch-list .doc-item-group:hover .main-title {
    text-decoration: underline;
    color: #103C89;
}
/* --- 詳細ページ本文エリア --- */
.branch-entry-content {
    padding-bottom: 40px;
}
.entry-header {
    margin-bottom: 50px;
}
.entry-title {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.entry-date {
    font-size: 1.5rem;
}
.entry-file-icons {
    margin: 50px 0;
    display: flex;
    gap: 40px;
}
.single-doc-icon {
    width: 40px;
    height: auto;
    transition: opacity 0.2s;
}
.single-doc-icon:hover {
    opacity: 0.7;
}
.entry-body {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 50px;
}
.entry-body img {
    max-width: 100%;
    height: auto;
    margin: 50px 0;
}
.back-to-list-wrap {
    text-align: center;
}
@media screen and (max-width: 768px) {
.entry-title {
    font-size: 2rem;
    line-height: 1.4;
}
.entry-header {
    margin-bottom: 20px;
}
.entry-date {
    font-size: 1.4rem;
}
.entry-file-icons {
    margin: 30px 0;
    gap: 30px;
}
.single-doc-icon {
    width: 30px;
}
.entry-body {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.entry-body img {
    margin: 30px 0;
}
}

/* ==========================================
   8. フッター (共通・暗い背景スタイル)
   ========================================== */
.member-footer {
    padding: 40px 0 80px;
    margin-top: 50px;
    background: transparent;
}
.member-footer_start {
    padding: 90px 0 80px;
    color: #FFF;
    background: #323232;
    background-size: 140px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.footer-logo img {
    height: 40px;
}
.footer-info {
    color: #666;
    font-size: 1.3rem;
}
.member-footer_start .footer-info {
    color: #FFF;
}

/* ==========================================
   9. レスポンシブ (一括管理)
   ========================================== */
@media (max-width: 900px) {
    /* 資料一覧レイアウト */
    .member-page-container {
        flex-direction: column;
        padding: 0 20px;
    }
    .member-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 90%;
    }
    /* フッター */
    footer .inner {
        flex-direction: column;
        padding: 40px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    footer .about_box {
        margin: 0 auto 30px;
        width: 80%;
    }
    footer .about_box img {
        margin: 0 auto 20px;
        width: 60%;
    }
    footer .footer_link_box {
        display: none;
    }
}
@media screen and (max-width: 768px) {
    .member-footer {
        padding: 40px 0;
        margin-top: 0px;
    }
    .footer-inner {
        flex-direction: column;
    }
    .footer-logo img {
        height: 30px;
        margin-bottom: 20px;
    }
    .footer-info {
        font-size: 1rem;
    }
    .member-sidebar {
        margin-bottom: 20px;
    }
}

/* ハンバーガーさん
------------------------------------------------------------ */
.h_nav_btn {
	position: relative;
	pointer-events: auto;
	cursor: pointer;
	z-index: +20 !important;
}
.h_nav_bar, .h_nav_bar span {
	transition: all .4s;
	box-sizing: border-box;
}
.h_nav_bar {
	position: relative;
	width: 40px;
	height: 24px;
}
.h_nav_bar span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	font-weight: bold;
	background: #6F6F6F;
}
body.post-type-archive .h_nav_bar span {
	background: #FFF;
}
.h_nav_bar span:nth-child(1) {
	top: 0;
	width: 100%;
}
.h_nav_bar span:nth-child(2) {
	bottom: 11px;
	width: 100%;
}
.h_nav_bar span:nth-child(3) {
	bottom: 0;
	width: 100%;
}
.active .h_nav_bar span:nth-child(1) {
    left: -10px;
    width: 150%;
	transform: translateY(12px) rotate(-315deg);
}
.active .h_nav_btn {
    position: fixed;
}
.active .h_nav_bar span:nth-child(2) {
    opacity: 0
}
.active .h_nav_bar span:nth-child(3) {
	left: -10px;
	width: 150%;
	transform: translateY(-12px) rotate(315deg);
}
body.post-type-archive .active .h_nav_bar span {
	background: #6F6F6F;
}
#h_nav {
	display: block;
	position: fixed;
	visibility: hidden;
	overflow: auto;
	opacity: 0;
	top: 0;
	right: 0;
	width: 30%;
	height: 100%;
	list-style: none;
	pointer-events: auto;
	background-color: rgba(255, 255, 255, 0.8);
	-webkit-backdrop-filter: blur(15px);
	backdrop-filter: blur(15px);
	transition: .8s;
	z-index: +19 !important;
}
.active #h_nav {
	visibility: visible;
	opacity: 1;
	transition: .8s;
}
#h_nav .inner {
    display: block;
	position: relative;
	z-index: +18 !important;
	overflow: hidden;
    padding: 25% 0 0 10%;
	width: 100%;
	box-sizing: border-box;
}
#h_nav .inner .main_nav a {
	display: block;
    margin-bottom: 10px;
    padding: 15px 30px;
	width: 100%;
	color: #323232;
	font-size: 24px;
	font-weight: 500;
	text-decoration: none;
    box-sizing: border-box;
}
#h_nav .inner .main_nav a:hover {
    color: #FFF;
    background-color: #103C89;
    opacity: 1;
}
#h_nav .inner .glonavi_box {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 80px 0 0 30px;
}
#h_nav .inner .glonavi_box a.home {
    position: relative;
    display: block;
    background: url(../img/icon_home.svg) center left no-repeat;
    background-size: 18px;
    padding: 5px 20px 5px 25px;
    font-size: 1.4rem;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}
#h_nav .inner .glonavi_box a.logout {
    display: block;
    background: url(../img/logout_icon.svg) center left no-repeat;
    background-size: 18px;
    padding: 5px 5px 5px 25px;
    font-size: 1.4rem;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}
#h_nav .inner .glonavi_box a:hover {
    opacity: 0.5;
}

.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.pagination-wrapper ul {
    display: inline-flex;
    list-style: none;
    gap: 10px;
}

.pagination-wrapper li a, 
.pagination-wrapper li span {
    display: block;
    padding: 8px 16px;
    border: 1px solid #d1d1d1;
    text-decoration: none;
    color: #103c89; /* テーマカラーに合わせて調整 */
    border-radius: 4px;
}

.pagination-wrapper li span.current {
    background: #103c89;
    color: #fff;
    border-color: #103c89;
}

.pagination-wrapper li a:hover {
    background: #f0f4f9;
}