/*=== h ===*/
h3 {
    margin-bottom: 1rem;
}

h3 i {
    color: #4CAF50;
}

/*=== //h ===*/
/*=== btn ===*/
a.btn,
a.btn_w100,
input.btn,
button.btn,
button.btn_w100 {
    background: #4CAF50;
    display: inline-block;
    color: #fff;
    text-align: center;
    padding: 10px 30px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

button.d_search {
    padding: 6px 20px;
    position: absolute;
    right: 3px;
    top: 4px;
}

a.btn.white,
button.btn.white {
    background: transparent;
    color: #636363;
    border: 1px #636363 solid;
}

a.btn.green,
button.btn.green {
    background: #66BB6A;
}

a.btn.orange,
button.btn.orange {
    background: #e7a600;
}

a.btn.red,
button.btn.red {
    background: #c73737;
}

a.btn.gray,
button.btn.gray {
    background: #808080;
}

a.btn_w100,
button.btn_w100 {
    width: 100%;
}

a.btn.edit,
button.btn.edit {
    padding: 2px 5px;
    display: inline-block;
    width: 60px;
    margin: 3px;
}

a.btn.edit i,
button.btn.edit i {
    margin-right: 0px;
}

a.btn.view,
button.btn.view {
    padding: 2px 5px;
    display: inline-block;
    width: 60px;
    margin: 3px;
}

a.btn.view i,
button.btn.view i {
    margin-right: 0px;
}
a.btn.rcheck,
button.btn.rcheck {
    padding: 5px 5px;
    display: inline-block;
    width: 100px;
    margin: 3px;
}

a.btn.rcheck i,
button.btn.rcheck i {
    margin-right: 3px;
}
a.btn.delete,
button.btn.delete {
    padding: 2px 5px;
    display: inline-block;
    width: 60px;
    margin: 3px;
}

a.btn.delete i,
button.btn.delete i {
    margin-right: 0px;
}
a.btn.d_view,
button.btn.d_view {
    padding: 2px 5px;
    display: inline-block;
    width: 60px;
    margin: 3px;
}

a.btn.d_view i,
button.btn.d_view i {
    margin-right: 3px;
}

a.btn.pdf,
button.btn.pdf {
    padding: 6px 12px;
    font-size: 12px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    display: inline-block;
    border-radius: 3px;
}
/*=== //btn ===*/
/*=== ログイン画面 ===*/
/* gpm_login用のスタイル */
body#gpm_login {
    background: #e8f5e9 !important;
}

body#gpm_login .wrapper {
    width: 1024px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}

body#gpm_login .left_logo {
    text-align: center;
}

body#gpm_login .left_logo,
body#gpm_login .login_form {
    display: inline-block;
    width: 47%;
    vertical-align: middle;
}

body#gpm_login .left_logo img {
    width: 100%;
    max-width: 300px;
}

body#gpm_login .login_form {
    background: #fff;
    padding: 30px 60px;
    border-radius: 10px;
    box-sizing: border-box;
}

body#gpm_login .login_form h3 {
    color: #4CAF50;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}

body#gpm_login .login_form dd {
    padding-bottom: 25px;
}

body#gpm_login .login_form dt {
    padding-bottom: 5px;
}

body#gpm_login .login_btn {
    margin: 10px 0;
    font-size: 14px;
}
body#gpm_login .login_btn.active {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

body#gpm_login .login_btn.active:hover {
    background: #45a049;
}

body#gpm_login .attention a {
    color: #4CAF50;
    text-decoration: none;
}

body#gpm_login .attention a:hover {
    text-decoration: underline;
}

body#gpm_login .checkbox:checked + .checkbox-p::before {
    background: #4CAF50;
    border-color: #4CAF50;
}

span#buttonEye {
    position: absolute;
    right: 15px;
    top: 15px;
    color: gray;
}

dd.pw_input {
    position: relative;
}

/*=== //ログイン画面 ===*/
/*=== ダッシュボード ===*/
.main_wrapper {
    display: flex;
    height: 100vh;
}

/*--- サイドバー ---*/
.sidebar {
    width: 230px;
    box-sizing: border-box;
    padding: 20px 15px;
    padding-right: 0;
}

.sidebar dt {
    color: lightslategray;
    padding: 20px;
}

.sidebar ul li a {
    padding: 10px 10px;
    display: block;
    color: #636363;
    font-weight: bold;
    display: flex;
    gap: 1.3rem;
    align-items: flex-start;
}

.sidebar ul li a img {
    width: 2rem;
}

.sidebar ul li a:hover {
    background: rgb(234 250 251 / 50%);
}

.sidebar ul li.active a {
    color: #4CAF50;
}

.sidebar ul li.active {
    background: #e8f5e9;
    border-right: 5px #4CAF50 solid;
}

.sidebar a.contact {
    padding: 20px;
    border-top: 1px #ccc solid;
    margin: 0 15px;
    margin-top: 30px;
}

.sidebar a.contact i {
    margin-right: 5px;
    font-size: 16px;
    position: relative;
    top: 1px;
}

.sidebar .profile {
    background: #ccc;
    height: 130px;
    width: 130px;
    border-radius: 50%;
    display: grid;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    overflow: hidden;
    /* margin-bottom: 0px; */
}

.sidebar .profile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar ul.side_footer {
    border-top: 1px #bcbdbf solid;
    padding-top: 10px;
    margin-top: 10px;
}

/*--- //サイドバー ---*/
/*--- コンテンツ ---*/
.content_wrapper {
    display: grid;
    grid-template-rows: min-content 1fr;
    height: calc(100vh - 100px);
}

.content_header {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px #ccc solid;
    padding: 10px 20px;
    border-radius: 10px 10px 0 0px;
}

.content_header img {
    width: 30px;
    height: 30px;
}

.content_header img.dashboard_icon{
    width: 20px;
    height: 20px;
}

.content_header h2 {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.6rem;
    font-weight: normal;
}

.content_header h2 i {
    /* ... existing styles ... */
    background: linear-gradient(135deg, #66BB6A 26%, #2E7D32 83%);
    background-clip: text;
    -webkit-background-clip: text; /* ベンダープレフィックスを保持 */
    -webkit-text-fill-color: transparent;
    color: transparent; /* 標準プロパティを追加 */
}

.search {
    position: relative;
}

.search input {
    margin: 0;
    padding: 5px;
    padding-left: 40px;
}

.content_header .search input {
    background: #fafafa;
}

.search:before {
    content: "\f002";
    font-family: 'Font Awesome 6 Free';
    font-weight: bold;
    position: absolute;
    top: 9px;
    font-size: 1.8rem;
    left: 10px;
    color: #333333;
}

.content_inner {
    width: 100%;
    padding: 2rem 8%;
    margin-bottom: 0;
    overflow-y: auto;
    background: #fcfcfc;
    box-sizing: border-box;
    border-radius: 0 0px 10px 10px;
}

#content {
    margin: 20px;
    width: calc(100% - 220px);
    border-radius: 10px;
    display: grid;
    align-content: space-between;
    grid-auto-rows: 1fr min-content;
    gap: 1rem;
}

/*フッター*/
#content_footer,
#mgmt_footer,
#mgmt_header,
#reg_header,
#reg_footer {
    background: #4CAF50;
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
}

#content_footer,
#mgmt_footer,
#reg_footer {
    padding: 5px;
}

#content_footer ul,
#mgmt_footer ul,
#mgmt_header ul,
#reg_header ul,
#reg_footer ul {
    display: flex;
    gap: 1rem;
}

#content_footer ul,
#mgmt_footer ul,
#reg_footer ul {
    gap: 0;
}

#content_footer ul a,
#mgmt_footer ul a,
#mgmt_header a,
#reg_header a,
#reg_footer a {
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 3px;
}
#mgmt_header a span.home_text,
#reg_header a span.home_text{
    font-size: 11px;
    font-weight: normal;
    color: #fff;
}

#content_footer ul a,
#mgmt_footer ul a,
#reg_footer a {
    padding: 7px;
    transition: 0.2s;
}

#content_footer ul a:hover,
#mgmt_footer ul a:hover,
#reg_footer a:hover {
    background: #45a049;
    border-radius: 5px;
}

#content_footer ul .active a,
#mgmt_footer ul .active a,
#reg_footer .active a {
    background: #2E7D32;
    border-radius: 5px;
}

#content_footer ul li,
#mgmt_footer ul li,
#reg_footer ul li {
    border-right: 1px #66BB6A solid;
    padding: 0 3px;
}

#content_footer ul li:last-child,
#mgmt_footer ul li:last-child,
#reg_footer ul li:last-child {
    border: none;
}

/* 管理画面フッター（シンプル） */
#mgmt_footer.mgmt-footer-simple {
    padding: 0;
    min-height: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* 管理画面ヘッダー（ブランド＋機能メニュー・1行） */
#mgmt_header.mgmt-header-app {
    display: block;
    justify-content: initial;
    padding: 8px 10px;
    background: #4caf50;
    border-radius: 5px;
    box-sizing: border-box;
}

#mgmt_header.mgmt-header-app .mgmt-header-app__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
    width: 100%;
}

#mgmt_header.mgmt-header-app .mgmt-header-app__brand {
    grid-column: 1;
    margin: 0;
    padding: 2px 12px 2px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
}

#mgmt_header.mgmt-header-app .mgmt-header-app__brand a {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
}

#mgmt_header.mgmt-header-app .mgmt-header-app__brand a:hover {
    opacity: 0.92;
}

#mgmt_header.mgmt-header-app .mgmt-header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
    min-width: 0;
    grid-column: 2;
}

#mgmt_header.mgmt-header-app .mgmt-header-app__actions {
    grid-column: 3;
    justify-self: end;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0 2px 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

#mgmt_header.mgmt-header-app .mgmt-header-app__action-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease;
}

#mgmt_header.mgmt-header-app .mgmt-header-app__action-link:hover {
    background: #45a049;
}

#mgmt_header.mgmt-header-app .mgmt-header-app__action-link.is-active {
    background: #2e7d32;
    font-weight: 700;
}

#mgmt_header.mgmt-header-app .mgmt-header-nav__segment {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 2px 14px 2px 0;
    margin-right: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
}

#mgmt_header.mgmt-header-app .mgmt-header-nav__segment:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

#mgmt_header.mgmt-header-app .mgmt-header-nav__segment--no-label {
    gap: 0;
}

#mgmt_header.mgmt-header-app .mgmt-header-nav__label {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 6px;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.06em;
    color: #1b5e20;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

#mgmt_header.mgmt-header-app .mgmt-header-nav__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#mgmt_header.mgmt-header-app .mgmt-header-nav__links li {
    border: none;
    padding: 0;
}

#mgmt_header.mgmt-header-app .mgmt-header-nav__links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    color: #fff;
    transition: background 0.2s ease;
}

#mgmt_header.mgmt-header-app .mgmt-nav-badge {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #eb0507;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 0 0 1px #4caf50;
}

#mgmt_header.mgmt-header-app .mgmt-header-nav__links a:hover {
    background: #45a049;
}

#mgmt_header.mgmt-header-app .mgmt-header-nav__links li.active a {
    background: #2e7d32;
    font-weight: 700;
}

/*//フッター*/
/*お知らせリスト*/
span.unread_badge {
    width: 20px;
    display: block;
    height: 20px;
    background: #eb0507;
    display: grid;
    justify-content: center;
    align-content: center;
    font-size: 1.2rem;
    color: #fff;
    border-radius: 50%;
    transition: font-size 0.2s ease;
}

span.unread_badge.small {
    font-size: 1rem;
}

span.unread_badge.smaller {
    font-size: 0.8rem;
}

h3.d_news_title {
    position: relative;
}

a.all_read_btn {
    margin-left: 10px;
    color: #4CAF50;
    font-size: 1.3rem;
    font-weight: normal;
    position: absolute;
    right: 0;
    text-align: right;
}

.news_list,
.modal_news_list {
    border: 1px #e3e3e3 solid;
    border-radius: .5rem;
    background: #fff;
    height: 130px;
    overflow-y: auto;
    padding: 0 10px;
}

.news_list ul li,
.modal_news_list ul li {
    padding: 10px;
    border-bottom: 1px #e8e8e8 solid;
    display: flex;
    /* grid-template-columns: repeat(2, max-content) 1fr; */
}


.news_list ul li:last-child,
.modal_news_list ul li:last-child {
    margin-bottom: 10px;
}

.news_list ul li .date,
.modal_news_list ul li .date {
    padding-right: 5px;
    position: relative;
    min-width: 138px;
}


.news_list ul li.new .excerpt span.newmark:before,
.modal_news_list ul li.new .excerpt span.newmark:before {
    content: "NEW";
    background: #eb0606;
    padding: 0px 5px;
    display: inline-block;
    position: relative;
    font-size: 1.2rem;
    color: #fff;
    border-radius: 3px;
    margin-right: 5px;
}

.news_list ul li .date span,
.modal_news_list ul li .date span {
    color: #a0a0a0;
}

.news_list ul li .subject,
.modal_news_list ul li .subject {
    color: #212121;
    font-weight: bold;
}

.news_list ul li a:hover,
.modal_news_list ul li a:hover {
    text-decoration: underline;
}

.news_list ul li.new .subject,
.modal_news_list ul li.new .subject {
    font-weight: bold;
}

.news_list ul li.alread .subject,
.modal_news_list ul li.alread .subject {
    color: #a0a0a0;
    font-weight: normal;
}

.news_list ul li .excerpt,
.modal_news_list ul li .excerpt {
    color: #cecece;
}

.news_list ul li .excerpt,
.modal_news_list ul li .excerpt {
    color: #cecece;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 0px;
    line-height: 20px; /* 行の高さを指定 */
}

.news_list ul li .attachedfile,
.modal_news_list ul li .attachedfile {
    padding: 0px 2px 0px 3px;
    color: #000000;
}
.news_list ul li.alread .attachedfile,
.modal_news_list ul li.alread .attachedfile {
    color: #a0a0a0;
}

.modal_news_list {
    min-height: 425px;
    max-height: 425px;
    overflow-y: auto;
}

/*//お知らせリスト*/
.more a i {
    color: #747474;
}

.more a {
    display: block;
    text-align: center;
    color: #3f3f3f;
    font-weight: bold;
}

.column_2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.column_inner {
    background: #fff;
    border: 1px #e3e3e3 solid;
    border-radius: .5rem;
    padding: 2rem;
}

/*ファイル管理*/

.file_mgmt_link ul li {
    display: inline-block;
    margin-bottom: 8px;
}

.file_mgmt_link ul li a {
    background: #e8f5e9;
    display: block;
    color: #2E7D32;
    padding: 5px 10px;
    border-radius: 3px;
}

.file_mgmt_new {
    max-height: 266px;
    overflow-y: auto;
}

.file_mgmt_new ul li a {
    color: #2E7D32;
}

.file_mgmt_new ul li a:hover {
    text-decoration: underline;
}

.file_mgmt_new ul li {
    display: flex;
    gap: 1rem;
    border-bottom: 1px #ccc solid;
    padding: 8px 5px;
    align-items: center;
}

.file_mgmt_new ul li:before,
.mgmt_contents_content table.file_list td a:before {
    content: "\f15b";
    font: var(--fa-font-regular);
    font-size: 2rem;
    color: #6f6f6f;
}

.file_mgmt_new ul li.zip:before,
.mgmt_contents_content table.file_list td a.zip:before {
    content: "\e5ee";
    color: #3f3c34;
}

.file_mgmt_new ul li.pdf:before,
.mgmt_contents_content table.file_list td a.pdf:before {
    content: "\f1c1";
    color: #c30401;
}

.file_mgmt_new ul li.jpg:before,
.mgmt_contents_content table.file_list td a.jpg:before {
    content: "\e646";
    color: #34b700;
}
.file_mgmt_new ul li.jpeg:before,
.mgmt_contents_content table.file_list td a.jpeg:before {
    content: "\e646";
    color: #34b700;
}
.file_mgmt_new ul li.png:before,
.mgmt_contents_content table.file_list td a.png:before {
    content: "\e666";
    color: #34b700;
}
.file_mgmt_new ul li.bmp:before,
.mgmt_contents_content table.file_list td a.bmp:before {
    content: "\f1c5";
    color: #34b700;
}
.file_mgmt_new ul li.gif:before,
.mgmt_contents_content table.file_list td a.gif:before {
    content: "\f1c5";
    color: #34b700;
}

.file_mgmt_new ul li.mp3:before,
.mgmt_contents_content table.file_list td a.mp3:before {
    content: "\e648";
    color: #117fbe;
}

.file_mgmt_new ul li.mov:before,
.mgmt_contents_content table.file_list td a.mov:before {
    content: "\e647";
    color: #9e11be;
}
.file_mgmt_new ul li.mp4:before,
.mgmt_contents_content table.file_list td a.mp4:before {
    content: "\e649";
    color: #9e11be;
}
.file_mgmt_new ul li.avi:before,
.mgmt_contents_content table.file_list td a.avi:before {
    content: "\f1c8";
    color: #9e11be;
}
.file_mgmt_new ul li.mpeg:before,
.mgmt_contents_content table.file_list td a.mpeg:before {
    content: "\f1c8";
    color: #9e11be;
}
.file_mgmt_new ul li.mpg:before,
.mgmt_contents_content table.file_list td a.mpg:before {
    content: "\f1c8";
    color: #9e11be;
}

.file_mgmt_new ul li.new:after{
    content: "NEW";
    font-size: 1.1rem;
    background: #eb0606;
    display: inline-block;
    color: #fff;
    padding: 0 3px;
    /* line-height: 0; */
    border-radius: 3px;
}

.modal_file_list {
    min-height: 525px;
    max-height: 525px;
    overflow-y: auto;
}

.modal_file_list table tbody td.file_name {
    color: #2E7D32;
}

.modal_file_list table tbody td.file_size {
    font-size: 1.2rem;
}

.mng_file_list {
    display: block;
}

.mng_file_list .file_list_box {
    margin-bottom: 20px;
    min-height: 525px;
}

.mng_file_list .file_list {
    margin-bottom: 20px;
}

.mng_file_list table tbody td.file_name {
    color: #2E7D32;
}

.mng_file_list table tbody td.file_size {
    font-size: 1.2rem;
}

/*//ファイル管理*/
/*情報管理*/
.wiki_mgmt .column_2 {
    gap: 1rem;
}

.wiki_mgmt .column_2 div {
    border: 1px #e7e7e7 solid;
    border-radius: 5px;
}

.wiki_mgmt .column_2 div h4 {
    background: #f0f0f0;
    justify-content: space-between;
    padding: 5px 10px;
}

.wiki_mgmt .column_2 div h4 a {
    font-size: 1.2rem;
    background: #4CAF50;
    padding: 0 4px;
    border-radius: 3px;
    color: #fff;
}

.wiki_mgmt .column_2 div ul {
    padding: 5px 10px;
}

.wiki_mgmt .column_2 div ul li a {
    padding-left: 1.6rem;
    color: #2E7D32;
    position: relative;
    display: block;
}

.wiki_mgmt .column_2 div ul li a:hover {
    text-decoration: underline;
}

.wiki_mgmt .column_2 div ul li a:before {
    content: "・";
    position: absolute;
    left: 0;
}
.wiki_mgmt .column_2 div img {
    display: block;
    margin: 5px auto;
    max-width: 200px;
    max-height: 100px;
}

.wiki_category_item ul li a.new:after {
    content: "NEW";
    font-size: 1.1rem;
    background: #eb0606;
    display: inline-block;
    color: #fff;
    padding: 0 3px;
    margin-left: 5px;
    border-radius: 3px;
}

.mng_wiki_list {
    display: block;
}

.mng_wiki_list .wiki_list_box {
    margin-bottom: 20px;
    min-height: 525px;
}

.mng_wiki_list .wiki_list {
    margin-bottom: 20px;
}

.mng_wiki_list table tbody td.wiki_name a{
    color: #2E7D32;
}

.mng_wiki_list table tbody td.wiki_size {
    font-size: 1.2rem;
}

.modal_wiki_list {
    background: #fff;
    min-height: 525px;
    max-height: 525px;
    overflow-y: auto;
    padding: 0 10px;
}

.modal .mgmt_contents_content table.wiki_list td.subject {
    color: #0165AE;
}
/*//情報管理*/

/*総支部管理*/
#mng_branch #myForm textarea {
    height: 100px;
}



/*--- //コンテンツ ---*/
/*=== //ダッシュボード ===*/
/*=== モーダル ===*/
.modal {
    display: flex;
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    background: rgb(0 0 0 / 30%);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal .inner {
    background: #fff;
    text-align: center;
    position: relative;
    min-width: 500px;
    max-height: 90vh;
    border-radius: 8px;
    overflow: auto;
    padding: 15px;
    box-sizing: border-box;
    width: 80%;
    z-index: 1000;
}

.modal h3 {
    background: #f2f2f2;
    padding: 5px 10px;
}

.modal .inner.add_user table tr>* {
    border: none;
}

.modal .inner.add_user th {
    width: 30%;
    vertical-align: top;
}

.modal .inner.add_user .sbmit_btn .btn {
    margin: 0;
}

.modal .inner.add_user .sbmit_btn p {
    padding-bottom: 10px;
}

.modal .inner.add_user .sbmit_btn {
    border-top: 1px #ccc solid;
    margin-top: 30px;
    padding: 0 30px;
    padding-bottom: 30px;
}

.modal_search_menu {
    display: flex;
    background: #e4e8e9;
    padding: 10px;
    border-radius: 5px;
    gap: 10px;
    align-items: flex-end;
    text-align: left;
}

.modal_search_menu .search_date {
    display: flex;
    align-items: center;
    gap: 3px;
}

.modal_search_menu i {
    font-size: 1.6rem;
    color: #b1b1b1;
}

.modal_search_menu p {
    margin-bottom: 5px;
}

.modal input.search_keyword {
    width: 250px;
}

.modal .pager_top {
    display: flex;
    justify-content: space-between;
}

ul.pager_top_arrow {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal.csvDownloadModal a.select_all{
    margin-left: 10px;
    color: #4CAF50;
    text-decoration: underline;
}
.modal.csvDownloadModal a.unselect_all{
    color: #4CAF50;
    text-decoration: underline;
}

/*ファイル管理*/
.modal_mgmt_contents {
    display: grid;
    column-gap: 1.5rem;
    grid-template-columns: 1fr 3fr;
}

.modal_mgmt_contents .flex_between {
    align-items: flex-end;
}

.modal .mgmt_contents_side.file_set {
    text-align: left;
}

.modal .file_set .file_set_list {
    max-height: 550px;
    overflow-y: auto;
}

#mgmt_contents .file_set .file_set_list {
    max-height: 550px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.modal .mgmt_contents_content {
    row-gap: 10px;
}

.modal .mgmt_contents_content table.file_list td a.edit {
    border: none;
}

.modal .reg_contents_inner.member_reg {
    margin: 0 auto;
    width: 100%;
    border: none;
    padding: 0;
    text-align: left;
    height: 68vh;
    overflow-y: auto;
    overflow-x: hidden; /* 横スクロール抑止 */
    border-radius: 0;
}

.modal .reg_contents_inner.member_reg table tr>* {
    border-bottom: 1px #e4e4e4 solid;
}

/* 横幅を固定レイアウトにしてセル内で改行させる */
.modal .reg_contents_inner.member_reg table {
    table-layout: fixed;
    width: 100%;
}

/* 長いURL等で横幅が崩れないように折り返し */
.modal .reg_contents_inner.member_reg table th,
.modal .reg_contents_inner.member_reg table td {
    overflow-wrap: anywhere; /* 標準的な折り返し */
    word-wrap: break-word;   /* 旧ブラウザ互換 */
}
.modal .reg_contents_inner.member_reg table td a {
    overflow-wrap: anywhere;
    word-break: break-all;   /* 連続英数字・URLにも対応 */
    display: inline-block;
    max-width: 100%;
}

.modal .reg_contents_inner h4.midashi {
    margin-bottom: 10px;
}

.modal .reg_contents_inner.gmember_reg td.update_log {
    background: #ffdfd3;
    border-radius: 0;
}
.modal .reg_contents_inner.gmember_reg div.update_log, 
.modal .reg_contents_inner.gmember_reg ul.update_log {
    background: #ffdfd3;
    border-radius: 0;
}

.news_page_preview {
    text-align: -webkit-auto;
    min-height: 48vh;
    max-height: 68vh;
    overflow: auto;
    margin-bottom: 20px;
}

.news_page_subject h3 {
    background: transparent;
    font-size: 2.5rem;
    margin: 0;
}

.news_page_subject p.category {
    border: 1px #7f7f7f solid;
    padding: 3px 10px;
}

.news_page_subject {
    border-bottom: 1px #f2f2f2 solid;
    margin-bottom: 5px;
}

.news_page_info {
    padding: 10px;
    margin-bottom: 10px;
}

.news_page_info a {
    color: #2E7D32;
    text-decoration: underline;
}

.news_page_info span {
    margin-right: 10px;
}

.news_page_body {
    padding: 10px;
}

.news_page_body a {
    color: #2E7D32;
    text-decoration: underline;
}

.file_page_memo_midashi{
    margin: 15px 0 0px 6px;
    font-size: 0.9em;
    color: #666;
}
.file_page_preview {
    text-align: -webkit-auto;
    min-height: 8vh;
    max-height: 48vh;
    overflow: auto;
    margin-bottom: 20px;
}

.file_page_title {
    margin: 10px 0 10px 10px;
}

.file_page_title a{
    color: #2E7D32;
    margin-bottom: 5px;
    font-size: 1.5rem;
    font-weight: bold;
}

.file_page_title span {
    font-size: 1.2rem;
    color: #666;
}

.file_page_title h3 {
    background: transparent;
    margin: 0;
}

.file_download {
    text-align: center;
    margin: 10px 0 20px 0;
}
.file_download a.btn {
    margin: 0 auto;
    width: 300px;
}

.file_page_info {
    padding: 10px;
    margin-bottom: 10px;
}

.file_page_memo {
    padding: 10px;
}

.file_page_info span {
    margin-right: 10px;
}

.file_page_info a {
    color: #2E7D32;
    text-decoration: underline;
}

.fileDetailModal .inner{
    max-width: 500px;

}

.wiki_page_preview {
    text-align: -webkit-auto;
    height: 68vh;
    overflow: auto;
    margin-bottom: 20px;
}

.wiki_page_title h3 {
    background: transparent;
    font-size: 2.5rem;
    margin: 0;
}

.wiki_page_title p.category {
    border: 1px #7f7f7f solid;
    padding: 3px 10px;
}

.wiki_page_title {
    border-bottom: 1px #f2f2f2 solid;
    margin-bottom: 15px;
}
.wiki_page_content {
    padding: 10px;
}

.progress {
    display: flex;
}
.progress .inner{
    width: 400px;
}

/*=== //モーダル ===*/

/*=== 管理ページ ===*/
/************-共通レイアウト-************/
#mgmt_wrapper {
    display: grid;
    grid-template-columns: 4fr 1fr;
    grid-template-rows: min-content 1fr min-content;
    grid-column-gap: 2rem;
    grid-row-gap: 1.5rem;
    padding: 15px;
}

#mgmt_header {
    grid-area: 1 / 1 / 2 / 3;
    display: flex;
    justify-content: space-between;
}

#mgmt_contents {
    grid-area: 2 / 1 / 3 / 2;
}

#mgmt_sidebar {
    grid-area: 2 / 2 / 3 / 3;
}

#mgmt_footer {
    grid-area: 3 / 1 / 4 / 3;
}

#mgmt_contents,
#member_mgmt_contents,
#news_mgmt_contents,
#mgmt_sidebar {
    height: calc(100vh - 146px);
}

#mgmt_contents,
#member_mgmt_contents,
#news_mgmt_contents,
#mgmt_sidebar {
    background: #e8f5e9;
    padding: 1.5rem 2rem;
    border-radius: .5rem;
    box-sizing: border-box;
    overflow-y: auto;
}

/* 一般党員一覧：住所・備考のtextareaは90px（base.cssの200pxを上書き） */
#gpm_member #mgmt_contents table.member_list .inline-edit-textarea {
    height: 49px !important;
    min-height: 49px;
    margin-top: 6px;
    padding: 3px 5px;
    box-sizing: border-box;
    border: none;
    background: transparent;
    resize: vertical;
}

#mgmt_sidebar {
    display: grid;
    grid-auto-rows: min-content;
    gap: 1.5rem;
}

#mgmt_sidebar h3 {
    background: #66BB6A;
    justify-content: center;
    padding: 10px 0;
    font-size: 1.4rem;
    color: #fff;
    align-items: center;
}

#mgmt_sidebar>div i {
    color: #66BB6A;
    font-size: 1.6rem;
}

#mgmt_sidebar>div {
    display: grid;
    gap: .5rem;
}

#mgmt_sidebar .search_date {
    display: grid;
    justify-items: center;
    gap: .5rem;
}
#mgmt_sidebar input[type="date"] {
    width: 100%;
}
#mgmt_sidebar .search_date p {
    transform: rotate(90deg);
}

#mgmt_sidebar h3 i {
    color: #fff;
    font-size: 1.8rem;
    align-items: center;
}
#mgmt_sidebar select{
    width: 100%;
}
#mgmt_contents {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-template-rows: min-content 1fr;
    grid-column-gap: 2rem;
    grid-row-gap: 1.5rem;
    background: #fff;
    padding: 20px 20px;
}

.mgmt_contents_head {
    grid-area: 1 / 1 / 2 / 3;
    display: flex;
    background: #e8f5e9;
    padding: 10px 20px;
    border-radius: 50px;
    justify-content: center;
    gap: 20px;
}

.mgmt_contents_side {
    grid-area: 2 / 1 / 3 / 2;
}

.mgmt_contents_content {
    grid-area: 2 / 2 / 3 / 3;
}

.mgmt_contents_content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: min-content;
    grid-column-gap: 0px;
    grid-row-gap: 20px;
}

.mgmt_contents_side a {
    background: #e8f5e9;
    display: block;
    padding: 1rem;
    color: #2E7D32;
}

.mgmt_contents_side ul li {
    margin-bottom: 10px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

thead:after {
    content: "";
    display: block;
    height: 10px;
}

thead th {
    background: #e4e8e9;
    color: #20291d;
    font-size: 12px;
    padding: 10px;
}

thead th:first-child {
    border-radius: 8px 0 0 8px;
}

thead th:last-child {
    border-radius: 0 8px 8px 0;
}

tbody {
    border: 1px #e3e3e3 solid;
}

tbody tr:first-child td:last-child {
    border-radius: 0 8px 0 0;
}

tbody tr:first-child td:first-child {
    border-radius: 8px 0 0 0;
}

tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

tbody td {
    text-align: center;
}

tbody tr td:first-child {
    text-align: left;
}

tbody tr>* {
    border-bottom: 1px #ddd solid;
    padding: 10px;
}

tbody tr:last-child>* {
    border: none;
}

/*---- ページャー ----*/
.pager {
    text-align: center;
    position: relative;
}
.pager_left {
    text-align: left;
}

.pager ul li a,
ul.pager_top_arrow li a {
    background: #fff;
    border: 1px #ddd solid;
    border-radius: 5px;
    padding: 4px 9px;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    color: gray;
    margin-right: 5px;
}

.pager ul li {
    display: inline-block;
}

.pager p,
.pager ul {
    display: inline-block;
}

.pager p {
    margin-right: 10px;
}

.pager.number.top {
    text-align: left;
    margin: 0;
    margin-bottom: 20px;
}

.pager ul li a.now {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

/*---- //ページャー ----*/
/************-//共通レイアウト-************/
/*--- ファイル管理 ---*/
.mgmt_contents_side.file_set ul li {
    position: relative;
}

.mgmt_contents_side.file_set a.file_set:before {
    content: "";
    background: url(../img/folder.png) center / 100% no-repeat;
    display: block;
    height: 20px;
    width: 20px;
    position: relative;
    top: -2px;
}

.mgmt_contents_side.file_set a.file_set.open:before {
    background: url(../img/folder_open.png) center / 100% no-repeat;
    top: 0;
}

.mgmt_contents_side.file_set a {
    display: flex;
    gap: 8px;
}

.mgmt_contents_side ul li.open a,
.mgmt_contents_side a.open {
    background: #fef1d2;
}

.mgmt_contents_side ul li.open a:before {
    background: url(../img/folder_open.png) center / 100% no-repeat;
    top: 0;
}
.mgmt_contents_side.file_set a.dl_all{
    position: absolute;
    right: 0;
    top: 5px;
}

.mgmt_contents_side.file_set a.edit_file {
    background: transparent;
    font-weight: bold;
    color: #2b2a2a;
    border: 1px #ccc solid;
    border-radius: 5px;
    display: block;
    text-align: center;
    width: 95%;
    margin: 0 auto;
}

.mgmt_contents_side.file_set a.edit_file:before {
    display: none;
}

.mgmt_contents_side.file_set a.edit_wiki {
    background: transparent;
    font-weight: bold;
    color: #2b2a2a;
    border: 1px #ccc solid;
    border-radius: 5px;
    display: block;
    text-align: center;
    width: 95%;
    margin: 0 auto;
}

.mgmt_contents_side.file_set a.edit_wiki:before {
    display: none;
}

.flex_between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sort,
.modal_sort_menu {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.sort_01 {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* 並び替えセレクトボックスの横幅を調整 */
.sort_01 select[name="display_count"] {
    margin-right: 10px;
}
.sort_01 select[name="sort_order"] {
    width: calc(1.6 * 100%);
    max-width: 200px; /* 必要に応じて最大幅を設定 */
}

.mgmt_contents_content table.file_list td {
    color: #636363;
}

.mgmt_contents_content table.file_list td a {
    color: #2E7D32;
    font-size: 1.4rem;
    display: flex;
    gap: 5px;
}

.mgmt_contents_content table td a.edit {
    color: #fff;
    border: 1px #4CAF50 solid;
    background: #4CAF50;
    display: inline-block;
    border-radius: 5px;
    padding: 2px 0;
    width: 60px;
    text-align: center;
}

.mgmt_contents_content table td a.edit:before {
    display: none;
}
.mgmt_contents_content table td a.view {
    color: #fff;
    border: 1px #4CAF50 solid;
    background: #4CAF50;
    display: inline-block;
    border-radius: 5px;
    padding: 2px 0;
    width: 60px;
    margin-right: 0px;
}

.mgmt_contents_content table td a.view:before {
    display: none;
}
.mgmt_contents_content table td a.delete-btn {
    color: #fff;
    border: 1px solid #dc3545;
    background: #dc3545;
    display: inline-block;
    border-radius: 5px;
    padding: 4px 6px;
    margin-left: 5px;
    position: static;
    width: 34px;
    text-align: center;
}
.mgmt_contents_content table td a.delete-btn:hover {
    background: #c82333;
    border-color: #bd2130;
}
.mgmt_contents_content table td a.delete-btn:before {
    display: none;
}
.mgmt_contents_content table td a.delete {
    color: #666;
    border: 1px #e0e0e0 solid;
    background: #f0f0f0;
    display: inline-block;
    border-radius: 5px;
    padding: 2px 0;
    width: 40px;
    text-align: center;
}

.mgmt_contents_content table td a.d_view {
    color: #fff;
    border: 1px #45a049 solid;
    background: #45a049;
    display: inline-block;
    border-radius: 5px;
    padding: 2px 0;
    margin-right: 12px;
}
.mgmt_contents_content table td a.d_view:before {
    display: none;
}

.mgmt_contents_content table td a.delete:before {
    display: none;
}

.mgmt_contents_content table.file_list td span.fw_b {
    color: #212121;
}

.mgmt_contents_content table.file_list td.progress {
    padding-right: 22px;
}

.mgmt_contents_content table.file_list td a.green {
    color: #ffffff;
}

/*---- プログレスバー ----*/
.progress-circle {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: conic-gradient(#0e9ebb 0% calc(var(--progress)* 1%), #e0e0e0 calc(var(--progress)* 1%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle::before {
    content: attr(data-progress) '%';
    font-size: 1.2rem;
    color: #333;
    position: absolute;
    right: -35px;
    font-weight: bold;
}

.progress-background {
    position: absolute;
    width: 55%;
    height: 55%;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translateX(-50%)translateY(-50%);
}

/*---- //プログレスバー ----*/
/*--- //ファイル管理 ---*/
/*--- 議員管理 ---*/
div#member_mgmt_contents,
div#news_mgmt_contents {
    background: #fcfcfc;
    padding: 2rem;
    border-radius: 8px;
}

.mng_tag_list .tag_list_box .photo_container,
.mgmt_contents_content table.member_list .photo_container,
table.tag_add_member_list .photo_container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.mng_tag_list .tag_list_box img,
.mgmt_contents_content table.member_list img,
table.tag_add_member_list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.tag_add_member_list tr {
    background-color: white;
}

.mgmt_contents_content table.branch_list .photo_container {
    width: 80px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mgmt_contents_content table.branch_list img {
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mgmt_contents_content table.member_list td {
    text-align: center;
}

.mgmt_contents_content table.branch_list td:first-child {
    text-align: center;
}

.mgmt_contents_content table.member_list .checkbox-p {
    padding: 0;
    margin: 0;
}

.mgmt_contents_content table.member_list .checkbox-p::before {
    position: static;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    margin-left: 8px;
}

.mgmt_contents_content table.member_list .checkbox:checked+.checkbox-p::after {
    top: 2px;
    left: 0px;
    width: 4px;
    height: 8px;
}

.mgmt_contents_content table.member_list tbody tr>* {
    border-bottom: 1px #ddd solid;
    padding: 5px;
}

.mgmt_contents_content table.member_list td.member_name {
    width: 10%;
}

.mgmt_contents_content table.member_list .member_name p,
.mgmt_contents_content table.member_list p.class_purple {
    white-space: nowrap;
}

.mgmt_contents_content table.member_list .member_name p {
    font-weight: bold;
}

.mgmt_contents_content table.member_list p.legislator_color_0,
.mgmt_contents_content table.member_list p.legislator_color_1,
.mgmt_contents_content table.member_list p.legislator_color_2,
.mgmt_contents_content table.member_list p.legislator_color_3,
.mgmt_contents_content table.member_list p.legislator_color_4,
.mgmt_contents_content table.member_list p.legislator_color_5,
.mgmt_contents_content table.member_list p.legislator_color_6,
.mgmt_contents_content table.member_list p.legislator_color_7,
.mgmt_contents_content table.member_list p.legislator_color_8,
.mgmt_contents_content table.member_list p.legislator_color_9,
.mgmt_contents_content table.member_list p.legislator_color_10,
.mgmt_contents_content table.member_list p.legislator_color_11,
.mgmt_contents_content table.member_list p.legislator_color_12,
.mgmt_contents_content table.member_list p.legislator_color_13,
.mgmt_contents_content table.member_list p.legislator_color_14,
.mgmt_contents_content table.member_list p.legislator_color_15,
.mgmt_contents_content table.member_list p.legislator_color_16,
.mgmt_contents_content table.member_list p.legislator_color_17,
.mgmt_contents_content table.member_list p.legislator_color_18,
.mgmt_contents_content table.member_list p.legislator_color_19,
.mgmt_contents_content table.member_list p.legislator_color_20,
.mgmt_contents_content table.member_list p.legislator_color_21,
.mgmt_contents_content table.member_list p.legislator_color_22,
.mng_tag_list .tag_list_box p.legislator_color_0,
.mng_tag_list .tag_list_box p.legislator_color_1,
.mng_tag_list .tag_list_box p.legislator_color_2,
.mng_tag_list .tag_list_box p.legislator_color_3,
.mng_tag_list .tag_list_box p.legislator_color_4,
.mng_tag_list .tag_list_box p.legislator_color_5,
.mng_tag_list .tag_list_box p.legislator_color_6,
.mng_tag_list .tag_list_box p.legislator_color_7,
.mng_tag_list .tag_list_box p.legislator_color_8,
.mng_tag_list .tag_list_box p.legislator_color_9,
.mng_tag_list .tag_list_box p.legislator_color_10,
.mng_tag_list .tag_list_box p.legislator_color_11,
.mng_tag_list .tag_list_box p.legislator_color_12,
.mng_tag_list .tag_list_box p.legislator_color_13,
.mng_tag_list .tag_list_box p.legislator_color_14,
.mng_tag_list .tag_list_box p.legislator_color_15,
.mng_tag_list .tag_list_box p.legislator_color_16,
.mng_tag_list .tag_list_box p.legislator_color_17,
.mng_tag_list .tag_list_box p.legislator_color_18,
.mng_tag_list .tag_list_box p.legislator_color_19,
.mng_tag_list .tag_list_box p.legislator_color_20,
.mng_tag_list .tag_list_box p.legislator_color_21,
.mng_tag_list .tag_list_box p.legislator_color_22 {
    font-size: 12px;
    background: #aaa8a8;
    color: #fff;
    padding: 2px 1rem;
    border-radius: 5px;
}

.mgmt_contents_content table.member_list p.legislator_color_1,
.mng_tag_list .tag_list_box p.legislator_color_1 {
    background: #5FD4C1;
}
.mgmt_contents_content table.member_list p.legislator_color_2,
.mng_tag_list .tag_list_box p.legislator_color_2 {
    background: #F28D8D;
}
.mgmt_contents_content table.member_list p.legislator_color_3,
.mng_tag_list .tag_list_box p.legislator_color_3 {
    background: #FFBD85;
}

.mgmt_contents_content table.member_list p.legislator_color_4,
.mgmt_contents_content table.member_list p.legislator_color_5,
.mgmt_contents_content table.member_list p.legislator_color_6,
.mgmt_contents_content table.member_list p.legislator_color_7,
.mgmt_contents_content table.member_list p.legislator_color_8,
.mng_tag_list .tag_list_box p.legislator_color_4,
.mng_tag_list .tag_list_box p.legislator_color_5,
.mng_tag_list .tag_list_box p.legislator_color_6,
.mng_tag_list .tag_list_box p.legislator_color_7,
.mng_tag_list .tag_list_box p.legislator_color_8 {
    background: #85BDED;
}

.mgmt_contents_content table.member_list p.legislator_color_9,
.mng_tag_list .tag_list_box p.legislator_color_9 {
    background: #aaa8a8;
}

.mgmt_contents_content table.member_list p.legislator_color_10,
.mng_tag_list .tag_list_box p.legislator_color_10 {
    background: #DB7474;
}
.mgmt_contents_content table.member_list p.legislator_color_11,
.mng_tag_list .tag_list_box p.legislator_color_11 {
    background: #F2A868;
}

.mgmt_contents_content table.member_list p.legislator_color_12,
.mng_tag_list .tag_list_box p.legislator_color_12 {
    background: #C5A8E6;
}
.mgmt_contents_content table.member_list p.legislator_color_13,
.mng_tag_list .tag_list_box p.legislator_color_13 {
    background: #B8C97A;
}
.mgmt_contents_content table.member_list p.legislator_color_15,
.mng_tag_list .tag_list_box p.legislator_color_15 {
    background: #c8a7a7;
}

.mgmt_contents_content table.member_list td.td_font_small,
.mgmt_contents_content table.branch_list td.td_font_small{
    font-size: 13px;
}

#mng_member textarea.mini,
#mypage textarea.mini {
    height: 100px;
}

p.zip {
    display: flex;
    gap: 5px;
    align-items: center;
}

p.zip input:last-child {
    width: 80px;
}

p.zip input:first-child {
    width: 70px;
}

.mngm_side_checkbox_area {
    background: #f8f9fc;
    padding: 10px;
    border-radius: 5px;
}

.mngm_side_checkbox_area ul li {
    display: inline-block;
    margin-right: 5px;
}

.mngm_side_checkbox_area ul,
.mngm_side_checkbox_area p {
    margin-bottom: 5px;
}

.mngm_side_checkbox_area .checkbox-p {
    margin-right: 0;
    background: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    padding-left: 22px;
    display: inline-block;
    border: 1px #ececec solid;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.mngm_side_checkbox_area .checkbox-p::before {
    top: 6px;
    left: 5px;
}

.mngm_side_checkbox_area .checkbox:checked+.checkbox-p::after {
    top: 5px;
    left: 8px;
}

.mngm_side_checkbox_area .checkbox:checked+.checkbox-p {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.mngm_side_checkbox_area .checkbox:checked+.checkbox-p::before {
    background: #4CAF50;
    border-color: #4CAF50;
}

#mgmt_sidebar .flex_between a {
    color: #4CAF50;
}

.mgmt_contents_content .pager .bulk_action {
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 14px;
    height: 32px;
    display: flex;
    align-items: center;
}

.mgmt_contents_content .pager .bulk_action select {
    padding: 5px 10px;
    height: 30px;
    display: inline-block;
    vertical-align: middle;
}

.mgmt_contents_content .pager .bulk_action button {
    padding: 5px 10px;
    height: 30px;
    color: #666;
    border: 1px #d0d0d0 solid;
    background: #f5f5f5;
    font-weight: bold;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
}

#mng_member .swal2-select{
    font-size: 14px;
}

/* SweetAlert2をモーダル(z-index:10000)より前面に表示 */
.swal2-container {
    z-index: 10500 !important;
}

.mgmt_contents_content .change_mno_text{
    font-size: 12px;
    color: red;
}
#mng_member .bulk_comp_message{
    text-align: center;
}

#mng_member .bulk_error{
    font-size: 12px;
    color: red;
    text-align: left;
}

.special_member .branch_all_label{
    margin-left: 7px;
}
.special_member .checkbox-p{
    padding-left: 15px;
}

.pmem_stop_date_area {
    background-color: #ffffcc;
    display: flex;
    align-items: center;
    padding: 8px 12px 6px 12px;
}
.pmem_stop_date_area::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('../img/attention.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
}
.pmem_stop_date_area span.count {
    color: #ff0000;
    font-weight: bold;
}
.pmem_stop_date_area_text {
    white-space: nowrap;
}
/*--- 処分情報 ---*/
table.reg_contents_form.disposal_table{
    margin-top: 10px;
}
table.reg_contents_form.disposal_table tr {
    border-bottom: 4px #fff solid;
}
table.reg_contents_form.disposal_table th {
    width: 20%;
    padding-left: 18px;
    line-height: 140%;
    font-weight: normal;
}
table.reg_contents_form.disposal_table th.top {
    background: #e1e7e9;
    width: 4%;
    padding: 0px;
    text-align: center;
    vertical-align: middle;
    border-radius: 12px;
}
table.reg_contents_form.disposal_table th {
    width: 15%;
    font-weight: bold;
    border-left: 4px #fff solid;
    border-right: 4px #fff solid;
}
table.reg_contents_form.disposal_table td {
    width: 80%;
}
#reg_contents .plus-button {
    width: auto;
    min-width: 250px;
    font-size: 16px;
    background: #4CAF50;
    display: block;
    margin: 20px auto;
    margin-bottom: 40px;
    color: #fff;
    padding: 8px 30px;
    border-radius: 8px;
    border: none;
}
#reg_contents .plus-button:before {
    content: "+";
    background: #fff;
    border-radius: 50px;
    padding: 0 5px;
    color: #4CAF50;
    font-size: 18px;
    margin-right: 9px;
}
/*--- //議員管理 ---*/
/*--- お知らせ管理 ---*/
div#news_mgmt_contents tbody tr td:first-child {
    text-align: center;
}

.mgmt_contents_content table.news_list_table td.progress {
    padding-right: 43px;
}
.mgmt_contents_content a.link {
    color: #4CAF50;
    font-size: 1.2rem;
}

div#news_mgmt_contents tbody tr .news_maintext,
div#news_mgmt_contents tbody tr td.news_category {
    text-align: left;
}

div#news_mgmt_contents tbody tr td.news_category {
    display: flex;
    gap: 10px;
}

div#news_mgmt_contents tbody tr td.news_category i {
    color: #818181;
}

div#news_mgmt_contents tbody tr td.news_category span.classification {
    color: #683939;
}

div#news_mgmt_contents tbody tr td.news_category span.branch {
    color: #718a3a;
}

div#news_mgmt_contents tbody tr td.news_category span.block {
    color: #1f2488;
}

div#news_mgmt_contents p.excerpt {
    color: #cecece;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: calc(100%); /* 余白を考慮して幅を調整 */
}

div#news_mgmt_contents p.excerpt span.subject {
    font-weight: bold;
    color: #000000;
}

div#news_mgmt_contents .news_maintext {
    margin: 7px 0 3px 0;
    display: grid;
    gap: 3px; /* コンテンツ間の余白を追加 */
}

div#news_mgmt_contents span.new {
    background: #eb0606;
    padding: 0px 5px;
    display: inline-block;
    font-size: 1.2rem;
    color: #fff;
    border-radius: 3px;
}

.security_level_area {
    margin-bottom: 10px;
}



/*--- //お知らせ管理 ---*/
/*--- 情報管理（党内wiki） ---*/

.wiki_mgmt_contents .mgmt_contents_side.file_set li a {
    display: flex;
    align-items: center;
}

.wiki_mgmt_contents .mgmt_contents_side.file_set a:before {
    display: none;
}

.wiki_mgmt_contents .mgmt_contents_side.file_set span img {
    width: 100%;
}

.wiki_mgmt_contents .mgmt_contents_side.file_set span {
    width: 40px;
    height: 40px;
    background: #e7ebf3;
    display: flex;
    align-items: center;
}

.wiki_mgmt_contents .category_display {
    text-align: left;
    margin-left: 10px;
}

.wiki_mgmt_contents .sort {
    margin-right: 10px;
}

/*--- //情報管理（党内wiki） ---*/
/*--- ロック管理 ---*/
.mgmt_contents_content table.member_list.lock_list td {
    text-align: center;
}

.mgmt_contents_content table.member_list.lock_list p.class_purple,
.mgmt_contents_content table.member_list.lock_list p.class_green,
.mgmt_contents_content table.member_list.lock_list p.class_tsubosumire,
.mgmt_contents_content table.member_list.lock_list .member_name {
    text-align-last: left;
}

/*--- //ロック管理 ---*/
/*--- タグ管理 ---*/
table span.active:before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50px;
    background: #259D63;
    margin-right: 8px;
    position: relative;
    top: -1px;
}

/*--- //タグ管理 ---*/
/*=== //管理ページ  ===*/

/*========= 登録ページ =========*/
/************-共通レイアウト-************/
#reg_wrapper {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: min-content 1fr min-content;
    grid-column-gap: 2rem;
    grid-row-gap: 1.5rem;
    padding: 15px;
}

#reg_header {
    display: flex;
    justify-content: space-between;
}

#reg_contents {
    height: calc(100vh - 143px);
    background: #fcfcfc;
    border-radius: 5px;
    overflow: auto;
}
table.reg_contents_form{
    margin-bottom: 10px;
}
table.reg_contents_form tr>*,
table.reg_contents_form tbody {
    border: none;
    text-align: left;
}

table.reg_contents_form tr th {
    text-align: left;
    vertical-align: top;
    width: 280px;
}

table.reg_contents_form tr th .req {
    background: #ee2a59;
    color: #fff;
    padding: 0 5px;
    display: inline-block;
    border-radius: 5px;
    font-size: 1.2rem;
    margin-left: 15px;
}

table.reg_contents_form tr th .opt {
    background: #888;
    color: #fff;
    padding: 0 5px;
    display: inline-block;
    border-radius: 5px;
    font-size: 1.2rem;
    margin-left: 15px;
}

table.reg_contents_form tr td #preview_image {
    width: 298px;
    height: 378px;
}
table.reg_contents_form tr td #preview_image_edit {
    max-width: 400px;
    max-height: 400px;
    min-width: 100px;
    min-height: 100px;
}
table.reg_contents_form tr td.soshibu_area_text{
    font-size: 14px;
    background-color: rgba(255, 215, 0, 0.3);
    color: red;
    text-align: center;
    padding: 10px 10px;
    border-radius: 3px;
}


/*チェックボックス*/
.reg_checkbox_area {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 5px;
}

.reg_checkbox_area>div {
    margin-bottom: 25px;
    display: grid;
    gap: 5px;
    border-bottom: 1px #e4e4e4 solid;
    padding-bottom: 15px;
}

.reg_checkbox_area>div:last-child {
    margin: 0;
    border: none;
    padding-bottom: 0;
}

.reg_checkbox_area>div ul {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.reg_checkbox_area>div .prefecture ul {
    display: block;
    margin: 0;
}

.reg_checkbox_area>div .prefecture ul li {
    display: inline-block;
}

.reg_checkbox_area .authority_title {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 10px;
}

.reg_checkbox_area .authority_title a {
    font-weight: normal;
    color: #4CAF50;
    margin-left: 20px;
}

.reg_checkbox_area p {
    color: #292a2c;
}

/*//チェックボックス*/
.public_settings_reservation {
    background: #f7f7f7;
    padding: 10px 20px;
}

.public_settings_reservation p.input_date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.public_settings_reservation input.month,
.public_settings_reservation input.day {
    width: 50px;
}

.public_settings_reservation input.year,
.public_settings_reservation input.time {
    width: 100px;
}

.public_settings_reservation a {
    background: #e7a600;
    color: #fff;
    font-weight: bold;
    padding: 5px 15px;
    display: block;
    border-radius: 8px;
    margin-left: 15px;
}

.reg_btn_area {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.reg_btn_area .btn.white {
    width: auto;
}

.reg_btn_area .btn.btn_save_only {
    background: #fff;
    color: #66BB6A;
    border: 1px solid #66BB6A;
}

.reg_btn_area .btn.btn_save_only:hover {
    background: #f1f8f2;
}

.reg_btn_area .btn.btn_reject_outline {
    background: #fff;
    color: #c73737;
    border: 1px solid #c73737;
}

.reg_btn_area .btn.btn_reject_outline:hover {
    background: #fff5f5;
}

/* 申し送りメモ：行全体の控えめな開閉（任意） */
.handoff-memo-row td.handoff-memo-cell {
    padding: 0.4rem 0 0.5rem;
    border-top: 1px dashed #ebebeb;
    vertical-align: top;
}

.handoff-memo-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    margin: 0;
    padding: 0.2rem 0;
    border: none;
    background: transparent;
    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    text-align: left;
}

.handoff-memo-toggle:hover,
.handoff-memo-toggle:focus {
    color: #666;
    outline: none;
}

.handoff-memo-toggle:hover .handoff-memo-toggle__icon,
.handoff-memo-toggle:focus .handoff-memo-toggle__icon {
    color: #777;
}

.handoff-memo-toggle__icon {
    flex-shrink: 0;
    color: #b5b5b5;
    font-size: 13px;
}

.handoff-memo-toggle__text {
    font-weight: normal;
}

.handoff-memo-toggle__opt {
    font-size: 11px;
    color: #c4c4c4;
}

.handoff-memo-toggle__filled {
    font-size: 8px;
    color: #90caf9;
    line-height: 1;
    margin-left: 0.1rem;
}

.handoff-memo-toggle__chevron {
    margin-left: auto;
    font-size: 9px;
    color: #d0d0d0;
    transition: transform 0.15s ease;
}

.handoff-memo-row.is-open .handoff-memo-toggle__chevron {
    transform: rotate(180deg);
}

.handoff-memo-row.is-open .handoff-memo-toggle {
    color: #888;
}

.handoff-memo-editor {
    display: none;
    margin-top: 0.45rem;
    padding-left: 1.15rem;
}

.handoff-memo-row.is-open .handoff-memo-editor {
    display: block;
}

.handoff-memo-readonly-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 12px;
    color: #888;
}

.handoff-memo-readonly-wrap .handoff-memo-toggle__icon {
    margin-top: 0.15rem;
}

/* 一括更新 取込詳細編集のみ：base.css textarea{height:200px} を解除（他画面のtextareaには影響しない） */
#myCheckForm textarea.detail-edit-handoff-memo {
    width: 100%;
    max-width: 560px;
    height: auto;
    min-height: 40px;
    max-height: 160px;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.4;
    resize: none;
    overflow-y: hidden;
}

.handoff-memo-readonly {
    margin: 0;
    flex: 1;
    font-size: 12px;
    color: #666;
    white-space: pre-wrap;
}

.gm-number-input-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.gm-number-exists-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    white-space: nowrap;
}

.gm-number-exists-badge.is-found {
    color: #1565c0;
    background: #e3f2fd;
    border: 1px solid #64b5f6;
}

.gm-number-exists-badge.is-missing {
    color: #c62828;
    background: #ffebee;
    border: 1px solid #ef9a9a;
}

.gm-number-exists-badge.is-neutral {
    color: #757575;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.gmember-search-link {
    display: inline-block;
    margin-top: 0.45rem;
    font-size: 12px;
    color: #6b6b6b;
    text-decoration: underline;
}

.gmember-search-link:hover {
    color: #2f2f2f;
}

.gmember-search-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
}

.gmember-search-modal.is-open {
    display: block;
}

.gmember-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.gmember-search-modal__dialog {
    position: relative;
    margin: 6vh auto 0;
    width: min(920px, 92vw);
    max-height: 88vh;
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.gmember-search-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #ececec;
}

.gmember-search-modal__header h3 {
    margin: 0;
    font-size: 16px;
}

.gmember-search-modal__close {
    border: none;
    background: transparent;
    font-size: 18px;
    color: #666;
    cursor: pointer;
}

.gmember-search-modal__body {
    padding: 14px 16px 16px;
}

.gmember-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.gmember-search-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #555;
}

.gmember-search-grid input {
    height: 36px;
    padding: 7px 9px;
}

.gmember-search-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.gmember-search-result-meta {
    margin: 10px 0 8px;
    font-size: 12px;
    color: #666;
}

.gmember-search-results {
    display: grid;
    gap: 8px;
}

.gmember-search-item {
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fff;
    text-align: left;
    padding: 10px 12px;
    cursor: pointer;
}

.gmember-search-item:hover {
    border-color: #b8d8ff;
    background: #f6fbff;
}

.gmember-search-item__name {
    display: block;
    font-weight: 700;
    color: #333;
}

.gmember-search-item__kana {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 1px;
}

.gmember-search-item__meta {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.gmember-search-empty {
    margin: 0;
    padding: 14px 6px;
    font-size: 13px;
    color: #666;
}

.reg_btn_area .btn {
    width: auto;
    min-width: 0;
    font-weight: bold;
}

.list_back_center {
    text-align: center;
    margin-top: 0.75rem;
}

.import_detail_adjacent_nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ebebeb;
    width: 100%;
}

.import_detail_adjacent_nav__position {
    font-size: 13px;
    color: #777;
    min-width: 4.5rem;
    text-align: center;
}

.import_detail_adjacent_nav__btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    border: 1px solid #cfd4dc;
    background: #fff;
    color: #5f6368;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.import_detail_adjacent_nav__btn:hover {
    border-color: #9ea5b0;
    color: #30343a;
    background: #f9fafb;
}

.import_detail_adjacent_nav__btn.is-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/*=== radio04 ===*/
.radio04-input {
    display: none;
}

.radio04-input+label {
    position: relative;
    margin-right: 15px;
    display: inline-block;
    padding: 8px 20px;
    border: 1px #ccc solid;
    border-radius: 8px;
    padding-left: 40px;
    background: #fff;
}

.radio04-input+label::before {
    content: "";
    display: block;
    position: absolute;
    top: 18px;
    left: 13px;
    width: 15px;
    height: 15px;
    border: 2px solid #707070;
    border-radius: 50%;
    transform: translateY(-50%);
}

.radio04-input:checked+label {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.radio04-input+label:hover {
    cursor: pointer;
}

.radio04-input:checked+label::before {
    border-color: #4CAF50;
}

.radio04-input:checked+label::after {
    content: "";
    display: block;
    position: absolute;
    top: 18px;
    left: 17px;
    transform: translateY(-50%);
    width: 11px;
    height: 11px;
    background: #4CAF50;
    border-radius: 50%;
}

/************-//共通レイアウト-************/
/*--- ファイル登録 ---*/
/*ファイル追加*/
.upload-area-type2 {
    margin: auto;
    height: 100px;
    position: relative;
    border: 2px dotted #ccc;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: #484444;
    background: #f8f8f8;
    margin-bottom: 20px;
}

.upload-area-type2 p {
    width: 100%;
    position: absolute;
    top: 50%;
    opacity: .8;
    transform: translateY(-50%);
}

.upload-area-type2 i {
    font-size: 50px;
    display: block;
    margin-bottom: 10px;
}
span.file_share_desc{
    font-size: 12px;
    color: #902828;
}
#input-files-type2 {
    top: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
}

/*//ファイル追加*/
.reg_contents_inner {
    width: 100%;
    margin: 0px auto;
    background: #fff;
    border: 1px #f0f0f0 solid;
    border-radius: 10px;
    padding: 2rem;
    box-sizing: border-box;
}

/*--- //ファイル登録 ---*/
/*--- 議員情報の登録 ---*/
.reg_attention {
    background: #f3f3f3;
    text-align: center;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.reg_attention div {
    background: #fff;
    padding: 10px 30px;
    border-radius: 8px;
    width: max-content;
    margin: 0 auto;
    margin-top: 10px;
    text-align: left;
}

span.public,
span.public_web {
    background: #4CAF50;
    padding: 0 5px;
    display: inline-block;
    border-radius: 5px;
    color: #fff;
    font-weight: normal;
    font-size: 1rem;
    margin-left: 5px;
}

span.public_web {
    background: #4CAF50;
}

table th .comment {
    font-size: 13px;
    font-weight: normal;
    color: #333333;
    margin-top: 1px;
}
table td .comment {
    font-size: 11px;
    font-weight: normal;
    color: #666666;
    margin-top: 2px;
}
table td .comment_confirm {
    font-size: 11px;
    font-weight: normal;
    color: #666666;
    margin-top: 2px;
}
table td p.comment_confirm {
    font-size: 11px;
    font-weight: normal;
    color: #333333;
    margin-top: 2px;
}
/*
table td p.comment {
    background: #b3db37;
    min-width: 350px;
    display: inline-block;
    border-radius: 8px;
    padding: 8px 15px;
    position: relative;
    margin-top: 10px;
    font-size: 12px;
}

table td p.comment:before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 5px 10px 5px;
    border-color: transparent transparent #b3db37 transparent;
    position: absolute;
    top: -7px;
    left: 10px;
}
*/

.reg_contents_inner h4.midashi ,
.content_inner h4.midashi {
    background: #eaeeef;
    padding: 5px 10px;
    margin-bottom: 10px;
    margin-top: 0px;
}

.member_reg table.reg_contents_form {
    margin-bottom: 20px;
}

.member_reg th {
    width: 30%;
}

.member_reg table.reg_contents_form tr th .req {
    font-size: 1rem;
    margin-left: 5px;
    background: transparent;
    color: #ee2a59;
}

.member_reg .img_box {
    width: 150px;
}

.modal .reg_contents_inner.branch_reg {
    margin: 0 auto;
    width: 100%;
    border: none;
    padding: 0;
    text-align: left;
    height: 68vh;
    overflow-y: auto;
    overflow-x: hidden; /* 横スクロール抑止 */
    border-radius: 0;
}

.branch_reg .img_box {
    width: 400px;
}

.member_reg .img_box img,
.branch_reg .img_box img {
    width: 100%;
}

.member_reg a.add_tag {
    display: inline-block;
    background: #4CAF50;
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
}

.tag_list {
    background: #f6f7f9;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.tag_list a {
    background: #f8f8f8;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px #c7c7c7 solid;
    min-width: 100px;
    display: flex;
    justify-content: space-between;
    max-width: max-content;
    gap: 5px;
    align-items: center;
}

.tag_list a span {
    color: #dd0e0e;
    font-size: 1.6rem;
}

.tag_list ul {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal .reg_contents_inner.csvdownload_reg {
    margin: 0 auto;
    width: 100%;
    border: none;
    padding: 0;
    text-align: left;
    height: 58vh;
    overflow: auto;
    border-radius: 0;
}

/*--- //議員情報の登録 ---*/
/*--- メールの作成 ---*/
p.mailadd_setting {
    display: flex;
    align-items: center;
}

p.mailadd_setting a.btn.orange {
    padding: 5px 10px;
}

p.mailadd_setting {
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: center;
    gap: 20px;
}

td.mailadd_from {
    display: flex;
    gap: 10px;
}

td.mailadd_from a {
    text-decoration: underline;
}

td.mailadd_from a:hover {
    text-decoration: none;
}

.mail_list_table tr.send_complete{
    background: #f0f0f0;
}
.delivery_results, .failure_results {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.delivery_results h4 {
    color: #28a745;
    margin-bottom: 15px;
}
.failure_results h4 {
    color: #dc3545;
    margin-bottom: 15px;
}
.result_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.result_table th,
.result_table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
}
.result_table th {
    background-color: #f8f9fa;
    font-weight: bold;
}
.result_table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
.result_table tbody tr:hover {
    background-color: #e9ecef;
}
.result_table tbody tr:last-child td {
    border: 1px solid #ddd !important;
}
/*--- //メールの作成 ---*/
/*====== //登録ページ ======*/

.more a:hover {
    text-decoration: underline;
}

/* ファイル添付のリンクの色を設定 */
.reg_contents_form a {
    color: #2E7D32;
}

/* アイコンの上部paddingを設定 */
.mgmt_contents_content .fa-paperclip {
    padding-top: 5px;
}

.swal2-html-container {
    font-size: 1.6rem;
}

.mgmt_contents_content span.publish,
.mgmt_contents_content span.confidential,
.mgmt_contents_content span.reserved,
.mgmt_contents_content span.draft,
.mgmt_contents_content span.sending,
.mgmt_contents_content span.unsent {
    padding: 0px 5px;
    display: inline-block;
    font-size: 14px;
    color: #fff;
    border-radius: 3px;
    margin-top: 2px;
}

.mgmt_contents_content span.publish {
    background: #0690eb;
}

.mgmt_contents_content span.confidential {
    background: #818181;
}

.mgmt_contents_content span.reserved {
    background: #a167d1;
}

.mgmt_contents_content span.unsent {
    background: #B8C97A 
}

.mgmt_contents_content span.draft {
    background: #DB7474;
}

.date_disp {
    font-size: 13px;
}

.dropzone {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background-color 0.2s;
}

.dropzone:hover {
    background-color: #f9f9f9;
}

.dropzone-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    color: #888;
}

.dropzone-text {
    font-size: 14px;
    color: #666;
}

.dropzone-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.attachment-message {
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.message-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.error-message {
    background-color: #FEE2E2;
    color: #B91C1C;
}

.success-message {
    background-color: #ECFDF5;
    color: #064E3B;
}

.attachment-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 999px;
    margin-bottom: 16px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background-color: #3B82F6;
    transition: width 0.3s ease;
}

.progress-bar-fill.danger {
    background-color: #EF4444;
}

.attachment-list {
    margin-bottom: 16px;
}

.attachment-list h3 {
    font-size: 0.875rem;
    margin-bottom: 8px;
    color: #333;
}

.attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 8px;
}

.attachment-info {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.attachment-name {
    font-size: 12px;
    color: #333;
}

.attachment-size {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
}

.attachment-tag {
    margin-left: 8px;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
}

.tag-existing {
    background-color: #E5E7EB;
}

.tag-new {
    background-color: #DBEAFE;
}

.remove-button {
    background: none;
    border: none;
    color: #EF4444;
    cursor: pointer;
    padding: 4px;
}

.remove-button:hover {
    color: #B91C1C;
}

.hidden {
    display: none;
}

/*--- マイページ ---*/
#cropperModal .inner{
    width: 100%;
    max-width: 820px;
}

.cropper_modal_content {
    position: relative;
}
.cropper_modal_content button{
    background-color: #aaa;
}
.cropper_modal_content .container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.cropper_modal_content h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}
.cropper_modal_content .img-container {
    width: 100%;
    max-width: 800px;
    max-height: 600px;
    margin: 0 auto;
    margin-bottom: 20px;
    display: none;
}
.cropper_modal_content #preview-image {
    display: block;
    width: 100%;
    max-width: 800px;
    max-height: 600px;
    margin: 0 auto;
}
.cropper_modal_content .controls {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 6px;
    display: none;
}
.cropper_modal_content #cropped-image{
    width: 100%;
    max-width: 800px;
    max-height: 600px;
    margin: 0 auto;
}
.cropper_modal_content .control-group {
    margin-bottom: 15px;
}
.cropper_modal_content label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.cropper_modal_content .row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.cropper_modal_content .col {
    flex: 1;
    min-width: 200px;
}
.cropper_modal_content button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    font-size: 14px;
}
.cropper_modal_content button.primary {
    background-color: #2196F3;
    color: white;
}
.cropper_modal_content button.primary:hover {
    background-color: #0b7dda;
}
.cropper_modal_content button.secondary {
    background-color: #ddd;
    color: #333;
}
.cropper_modal_content button.secondary:hover {
    background-color: #ccc;
}
.cropper_modal_content .button-group {
    margin-top: 0px;
    text-align: center;
}
.cropper_modal_content .result-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: none;
    margin-top: 30px;
    text-align: center;
}
.cropper_modal_content .status-message{
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
}

.photo_file_area #photo_image{
    width: 298px;
    height: 378px;
    border: 1px solid #ddd;
}
.photo_file_area #photo_image_edit{
    max-width: 400px;
    border: 1px solid #ddd;
}
.photo_file_area #gaisen_front_file{
    max-width: 200px;
    border: 1px solid #ddd;
}
.photo_file_area #gaisen_rear_file{
    max-width: 200px;
    border: 1px solid #ddd;
}
.photo_file_area #gaisen_side_file{
    max-width: 200px;
    border: 1px solid #ddd;
}

.img_container {
    position: relative;
    display: inline-block;
}

.delete-btn {
    position: absolute;
    top: 5px;
    left: 210px;
    width: 66px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background-color: #ff4444;
    color: white;
    border-color: #ff4444;
}

.delete-btn i {
    margin-right: 0px;
}

.photo_file_area .upload-container,
.photo_file_area .upload-container-gaisen-front,
.photo_file_area .upload-container-gaisen-rear,
.photo_file_area .upload-container-gaisen-side {
    width: 100%;
    max-width: 398px;
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
}
.photo_file_area .upload-container.dragover,
.photo_file_area .upload-container-gaisen-front.dragover,
.photo_file_area .upload-container-gaisen-rear.dragover,
.photo_file_area .upload-container-gaisen-side.dragover {
    background-color: #e9f5ff;
    border-color: #2196F3;
}
.photo_file_area #upload-btn,
.photo_file_area #upload-btn-edit,
.photo_file_area #upload-btn-gaisen-front,
.photo_file_area #upload-btn-gaisen-rear,
.photo_file_area #upload-btn-gaisen-side {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}
.photo_file_area #upload-btn:hover,
.photo_file_area #upload-btn-edit:hover,
.photo_file_area #upload-btn-gaisen-front:hover,
.photo_file_area #upload-btn-gaisen-rear:hover,
.photo_file_area #upload-btn-gaisen-side:hover {
    background-color: #45a049;
}
.swal2-input {
    width: 70% !important;
}
.swal2-validation-message{
    font-size: 14px;
}
div:where(.swal2-container) .swal2-input{
    width: 87%;
}

/* Swalのボタンのフォントサイズを14pxに設定 */
.swal2-confirm.swal2-styled,
.swal2-cancel.swal2-styled,
.swal2-deny.swal2-styled {
    font-size: 14px;
}

#content_footer li,
#mgmt_footer li,
#reg_footer li {
    position: relative;
}

#content_footer .badge,
#mgmt_footer .badge,
#reg_footer .badge {
    position: absolute;
    top: -10px;
    right: 3px;
    padding: 4px 0px;
    border-radius: 50%;
    background-color: red;
    color: white;
    font-size: 10px;
    font-weight: bold;
    display: inline-block;
    width: 19px;
    height: 19px;
    text-align: center;
    line-height: 1;
}
.my_rcheck_count_area{
    position: relative;
    margin-top: 0px;
    padding-top: 0px;
    height: 19px;
}
.my_rcheck_count{
    position: absolute;
    top: -5px;
    left: 50px;
    display: inline-block;
    font-size: 12px;
    color: red;
}

/* 処分管理用スタイル */
.disposal_type {
    font-weight: bold;
    color: #d32f2f;
}

.disposal_authority {
    font-weight: bold;
    color: #1976d2;
}

.disposalDetailModal .reg_contents_form th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.my_rcheck_display_area{
    margin: 10px 0px 20px 0px;
    color: red;
}

/* 選挙事務所 */
.modal_search_menu input.search_keyword {
    width: 250px;
}
.modal.electionOfficeDetailModal h4.midashi{
    margin-top: 20px;
}
.modal.electionOfficeDetailModal h4.midashi.mt30{
    margin-top: 0px;
}
.mgmt_contents_content table tr.election_office .photo_container{
    margin: 0px auto;
}
.mgmt_contents_content table tr.election_office td a.view{
    margin-right: 0px;
}

/* Quillエディタの最小高さを設定 */
#editor .ql-editor {
    min-height: 200px;
    font-size: 15px;  /* 標準サイズ（14px）より2px大きく */
}

/* ============================================
   一括登録管理（mng_regist）用スタイル
   ============================================ */

/* 共通レイアウト */
#gpm_regist #reg_wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
}

#gpm_regist #reg_header {
    flex-shrink: 0;
}

#gpm_regist #reg_contents {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    margin-top: 1.5rem;
}

#gpm_regist #mgmt_wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
}

#gpm_regist #mgmt_header {
    flex-shrink: 0;
}

#gpm_regist #mgmt_contents {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    margin-top: 1.5rem;
    display: block !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-column-gap: 0 !important;
    grid-row-gap: 0 !important;
}

#gpm_regist #mgmt_footer {
    flex-shrink: 0;
    margin-top: 1.5rem;
}

/* 取込詳細：取込ファイルステータス */
#gpm_regist .import-file-status-bar {
    margin-bottom: 1.25rem;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

#gpm_regist .import-file-status-bar--1 {
    background: #fffde7;
    border-color: #ffe082;
}

#gpm_regist .import-file-status-bar--3 {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

#gpm_regist .import-file-status-bar__text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

#gpm_regist .import-file-status-select {
    min-width: 11rem;
    max-width: 100%;
    margin: 0 2px;
    padding: 5px 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1b5e20;
    border: 1px solid #81c784;
    border-radius: 4px;
    background: #fff;
    vertical-align: middle;
}

/* ステータスダッシュボード */
#gpm_regist #status_dashboard {
    background: #fff;
    border-radius: .5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.status_dashboard_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.status_dashboard_item {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid #e0e0e0;
    background: #fff;
    transition: background 0.2s;
    cursor: pointer;
}

.status_dashboard_item:last-child {
    border-right: none;
}

.status_dashboard_item:hover {
    background: #f5f5f5;
}

.status_dashboard_item.active {
    background: #c8e6c9;
}

.status_dashboard_item .status_name {
    font-size: 12px;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* ステータス別の色設定 */
.status_dashboard_item.status-all .status_name {
    color: #333;
}

.status_dashboard_item.status-pending .status_name {
    color: #17a2b8;
}

.status_dashboard_item.status-complete .status_name {
    color: #28a745;
}

.status_dashboard_item.status-waiting .status_name {
    color: #ff9800;
}

.status_dashboard_item.status-approved .status_name {
    color: #28a745;
}

.status_dashboard_item.status-rejected .status_name {
    color: #dc3545;
}

.status_dashboard_item.status-deleted .status_name {
    color: #6c757d;
}

.status_dashboard_item .status_count {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.status_dashboard_item.active .status_count {
    color: #2E7D32;
}

.status_dashboard_item .status_count_link {
    color: #4CAF50;
    text-decoration: underline;
    cursor: pointer;
}

.status_dashboard_item.active .status_count_link {
    color: #2E7D32;
}

/* テーブル内のステータスラベル */
#gpm_regist .status-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 3px;
}

#gpm_regist .status-label:last-child {
    margin-right: 0;
}

#gpm_regist .status-label.status-pending {
    color: #17a2b8;
    background: #d1ecf1;
}

#gpm_regist .status-label.status-waiting {
    color: #ff9800;
    background: #fff3cd;
}

#gpm_regist .status-label.status-rejected {
    color: #dc3545;
    background: #f8d7da;
}

#gpm_regist .status-label.status-complete {
    color: #fff;
    background: #2E7D32;
    border: none;
}

#gpm_regist .status-label.status-deleted {
    color: #6c757d;
    background: #e2e3e5;
}

/* detail.php用のステータスラベル（白背景） */
#gpm_regist .status-label.status-pending {
    color: #fff;
    background: #17a2b8;
    border: none;
}

#gpm_regist .status-label.status-waiting {
    color: #fff;
    background: #ff9800;
    border: none;
}

#gpm_regist .status-label.status-approved {
    color: #fff;
    background: #28a745;
    border: none;
}

#gpm_regist .status-label.status-rejected {
    color: #fff;
    background: #dc3545;
    border: none;
}

#gpm_regist .status-label.status-deleted {
    color: #fff;
    background: #6c757d;
    border: none;
}

/* テーブルを横一列に表示 */
#gpm_regist .mgmt_contents_content {
    overflow-x: auto;
}

#gpm_regist table.member_list {
    width: 100%;
    table-layout: fixed;
}

#gpm_regist table.member_list th,
#gpm_regist table.member_list td {
    padding: 8px 5px;
    text-align: left;
    vertical-align: middle;
}

#gpm_regist table.member_list th {
    background: #f5f5f5;
    font-weight: bold;
    text-align: center;
}

#gpm_regist table.member_list td {
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* メンバー情報表示スタイル（#gpm_regist内でも適用） */
#gpm_regist .member_name_kana {
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 2px;
}

#gpm_regist .phone_numbers {
    font-size: 12px;
}

#gpm_regist .phone_numbers .phone {
    display: flex;
    align-items: center;
    gap: 5px;
}

#gpm_regist .phone_numbers .mobile {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: #666;
}

#gpm_regist .phone_numbers i {
    font-size: 14px;
    color: #666;
}

#gpm_regist .datetime_info {
    font-size: 12px;
    line-height: 1.6;
}

#gpm_regist .datetime_info .update {
    color: #666;
}


/* 取込件数のスタイル */
.import_count {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.remarks-textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    height: 60px;
    max-height: 60px;
    line-height: 1.4;
    box-sizing: border-box;
}

/* 取込件数の強調表示 */
.detail_count_wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail_count_total {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.detail_count_items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.detail_count_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    min-width: 30px;
}

.detail_count_badge.status-complete {
    background: #17a2b8;
    color: #fff;
    border: none;
}

.detail_count_badge.status-waiting {
    background: #ff9800;
    color: #fff;
    border: none;
}

.detail_count_badge.status-approved {
    background: #28a745;
    color: #fff;
    border: none;
}

.detail_count_badge.status-rejected {
    background: #dc3545;
    color: #fff;
    border: none;
}

.detail_count_badge.status-deleted {
    background: #6c757d;
    color: #fff;
    border: none;
}

/* 件数0のときは背景を50%透過して薄く表示 */
#gpm_regist .detail_count_badge.zero-count.status-complete {
    background: rgba(23, 162, 184, 0.5);
    color: #fff;
}

#gpm_regist .detail_count_badge.zero-count.status-waiting {
    background: rgba(255, 152, 0, 0.5);
    color: #fff;
}

#gpm_regist .detail_count_badge.zero-count.status-approved {
    background: rgba(40, 167, 69, 0.5);
    color: #fff;
}

#gpm_regist .detail_count_badge.zero-count.status-rejected {
    background: rgba(220, 53, 69, 0.5);
    color: #fff;
}

#gpm_regist .detail_count_badge.zero-count.status-deleted {
    background: rgba(108, 117, 125, 0.5);
    color: #fff;
}

/* 詳細サムネイル */
.detail_thumbnail {
    width: 75px;
    height: 53px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail_thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail_thumbnail .no_image {
    color: #999;
    font-size: 0.9rem;
}

/* PDF編集画面 */
.pdf_edit_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.pdf_image_container {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.pdf_image_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pdf_image_header h5 {
    margin: 0;
}

.pdf_image_controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pdf_image_viewer {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem;
    box-sizing: border-box;
}

.pdf_image_wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.pdf_image_hint {
    text-align: center;
    margin-top: 1rem;
    font-size: 11px;
    color: #666;
    width: 100%;
    flex-shrink: 0;
}

.pdf_image_container .pdf_preview_image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    user-select: none;
}

.pdf_image_container .pdf_preview_image:hover {
    opacity: 0.9;
}

.pdf_edit_form {
    background: #fff;
}

.pdf_edit_form h4 {
    margin-top: 0;
}

.pdf_edit_form_single {
    background: #fff;
    margin-top: 2rem;
}

.pdf_edit_form_single h4 {
    margin-top: 0;
}

.status_info {
    background: #f1f8f4;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.status_info .status_label {
    font-weight: bold;
    color: #2e7d32;
}

.pdf_edit_form .pdf_edit_form_status {
    margin-top: 0;
    margin-bottom: 1.25rem;
}


/* PDFアップロード画面 */
#pdf_upload_area {
    border: 2px dashed #4caf50;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    background: #f1f8f4;
    margin: 2rem 0;
    transition: all 0.3s;
    cursor: pointer;
}

#pdf_upload_area:hover {
    background: #e8f5e9;
    border-color: #2e7d32;
}

#pdf_upload_area.dragover {
    background: #c8e6c9;
    border-color: #2e7d32;
}

#pdf_file_input {
    display: none;
}

.upload_icon {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.upload_text {
    font-size: 1.2rem;
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.upload_hint {
    color: #666;
    font-size: 0.9rem;
}

.selected_file_info {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
    display: none;
}

.selected_file_info.active {
    display: block;
}

.file_name {
    font-weight: bold;
    color: #2e7d32;
}

.file_size {
    color: #666;
    font-size: 0.9rem;
}

.upload_progress {
    margin-top: 1rem;
    display: none;
}

.upload_progress.active {
    display: block;
}

/* PDF取込完了画面 */
.complete_wrapper {
    text-align: center;
    padding: 4rem 2rem;
}

.complete_icon {
    font-size: 5rem;
    color: #4caf50;
    margin-bottom: 2rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.complete_title {
    font-size: 2rem;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 1rem;
}

.complete_message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.complete_stats {
    background: #f1f8f4;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
}

.complete_stats_item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.complete_stats_item:last-child {
    border-bottom: none;
}

.complete_stats_label {
    font-weight: bold;
    color: #333;
}

.complete_stats_value {
    color: #2e7d32;
    font-weight: bold;
    font-size: 1.1rem;
}

.complete_actions {
    margin-top: 3rem;
}

/* 赤色ボタン */
.btn.red {
    background: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
}

.btn.red:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* ============================================
   メンバー情報表示（一般党員管理用）
   ============================================ */
.member_name_kana {
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 2px;
}

.phone_numbers {
    font-size: 12px;
}

.phone_numbers .phone {
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone_numbers .mobile {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: #666;
}

.phone_numbers i {
    font-size: 14px;
    color: #666;
}

.datetime_info {
    font-size: 12px;
}

.datetime_info .update {
    display: block;
    margin-top: 2px;
    color: #666;
}