/*-----------------------
 body
-------------------------*/
body {
    padding-top: 0px;
}

.wrap {
    width: 1000px;
    margin: 0 auto;
}

.wrap.wide {
    width: 1400px;
    margin: 0 auto;
}

/*-----------------------
 header
-------------------------*/
header {
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    padding: 10px 0;
    background-color: #fff;
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    width: 50%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

header .logo img {
    height: 40px;
    width: auto;
    margin-right: 1em;
}

header .logo h1 {
    font-size: 1.2rem;
}

header .contact {
    width: 45%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header .contact .tel {
    margin-right: 2em;
    display: inline-block;
}

header .contact .tel a {
    font-size: 2rem;
    font-weight: bold;
}

header .contact .mail {
    background-color: #8CC128;
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 27px;
    position: relative;
}

header .contact.sp {
    display: none;
}

br.sp {
    display: none;
}

/*-----------------------
 title
-------------------------*/
h2.title {
    color: #8858FF;
    font-size: 2.4rem;
    text-align: center;
    font-weight: bold;
}

h2.titles {
    color: #8858FF;
    font-size: 1.8rem;
    text-align: left;
    font-weight: bold;
    background-color: #f2f2f2;
    padding: 0.25em 0 0.25em 1.5em;
    border-left: 5px solid #B698FF;
}

section section {
    padding: 1em 0;
}

h3.sub {
    font-weight: bold;
    font-size: 1.6rem;
    margin-bottom: 1em;
}

p.subtitle {
    font-size: 1.6rem;
    color: #87c137;
    padding: 0.5em 0;
    text-align: center;
}

/*-----------------------
 nav
-------------------------*/
nav {
    padding: 1em 0;
}

nav ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

nav ul li a {
    padding: 0 1em;
    text-decoration: underline !important;
    color: #1884C4 !important;
}

nav ul li a:hover {
    color: #F38F00 !important;
}

nav ul li a.active {
    text-decoration: none !important;
    color: #666 !important;
    cursor: default;
    pointer-events: none !important;
}


/*-----------------------
 pager
-------------------------*/
ul.search-reslult-pager {
    width: auto;
    min-width: 300px;
    clear: both;
    margin: 1em 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

ul.search-reslult-pager li {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    margin: 0 0.5em;
}

ul.search-reslult-pager li a {
    border: 1px solid #408CE0;
    background-color: #FFF;
    padding: 2px;
    display: block;
    color: #408CE0;
    text-align: center;
    max-width: 9em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

ul.search-reslult-pager li a.active {
    color: #666;
    border: 1px solid #999;
}

ul.search-reslult-pager li strong {
    font-weight: bold;
}

ul.search-reslult-pager li input[type="button"] {
    border: 1px solid #408CE0;
    background-color: #408CE0;
    padding: 1px 5px;
    border-radius: 8px;
    font-size: 1.2rem;
    display: block;
    color: #fff;
    text-align: center;
}

/*-----------------------
 footer
-------------------------*/
footer {
    width: 100%;
    min-height: 80px;
    background-color: #B698FF;
}

table.ta {
    border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
    line-height: 1.5;
    z-index: 100;
}

table.ta td,
table.ta th {
    padding: 0.25em 1px;
    border: #999 solid 1px;
    max-width: 19em;
    word-break: break-all;
    font-size: 1.3rem;
}

table.ta.act td:nth-of-type(5), table.ta.act th:nth-of-type(6) {
    max-width: 25em;
}

table.ta.act td:nth-of-type(6), table.ta.act th:nth-of-type(7) {
    max-width: 8em;
}

table.ta.small td,
table.ta.small th {
    padding: 0.25em 0px;
    font-size: 12px;
    max-width: 13em;
    word-break: break-all;
    z-index: 100;
}

table.ta.small td.small,
table.ta.small th.small {
    max-width: 3em;
}

table.ta.small td.mid,
table.ta.small th.mid {
    max-width: 4em;
}

table.ta.small th:nth-of-type(8),
table.ta.small td:nth-of-type(8) {
    min-width: 3em;
    max-width: 3em;
    z-index: 3;
    position: relative;
}

table.ta.small th:nth-of-type(4),
table.ta.small td:nth-of-type(4) {
    min-width: 6em;
    max-width: 6em;
    z-index: 3;
    position: relative;
    cursor: pointer;
}

table.ta.small td:nth-last-of-type(1) {
    min-width: 7em;
    z-index: 3;
    position: relative;
    cursor: pointer;
}

table.ta.small tr td:nth-last-of-type(1) .box {
    display: inline-block;
    width: 100%;
    min-width: 7em;
    z-index: 4;
}

table.ta.small tr td:nth-last-of-type(1) .txtarea {
    display: none;
    position: absolute;
    top: -0.5em;
    right: 8em;
    width: 550px;
    line-height: 1.5;
    background-color: antiquewhite;
    padding: 1em;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    z-index: 900;
}

table.ta.small tr td:nth-last-of-type(1):hover .txtarea {
    display: inline-block;
    position: absolute;
}

table.ta.small tr td:nth-last-of-type(1):hover .box {
    color: #FDA569;
}

table.ta th {
    background-color: #ccc;
}

table.ta.admin input[type="submit"] {
    font-size: 1rem;
}

table.ta td a {
    text-decoration: underline;
    color: #1884C4;
}

table.ta td a:hover {
    color: orange;
}

table.ta td i {
    padding-left: 0.5em;
    font-size: 1.2rem;
}

table.ta.admin {
    margin: 2em 0;
}

table.min th,
table.min td {
    padding: 1px;
    font-size: 12px;
}

table.min tr:nth-of-type(1) th {
    border-bottom: double;
    text-align: center;
}

table.min td {
    min-width: 3em;
    text-align: right;
}

table.min.minsev td {
    min-width: 6em;
    padding: 1px 0.5em;
}

table.min th.leftb,
table.min td.leftb {
    border-left: double;
}

table.min th.rightb,
table.min td.rightb {
    border-right: double;
}

table.min td.upb {
    border-top: double;
}

table.min td.botmb {
    border-bottom: double;
}

table.bgora tr:nth-of-type(1) th {
    background-color: #F8CBAC;
}

table.bgora.sma tr:nth-of-type(1) th {
    font-size: 10px;
}

table.bgblue tr:nth-of-type(1) th {
    background-color: #BCD6EE;
}

table.bgyellow tr:nth-of-type(1) th {
    background-color: #FFDA65;
}

form.admin {
    display: inline-block;
    padding: 2em 1em;
    margin: 0 1em 2em 0;
    border: 1px solid #999;
}

form.admin p {
    margin-bottom: 1em;
}

.admin.frex_stretch {
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

div.insc {
    padding: 1em 0;
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 80%;
    max-width: 100%;
    overflow-y: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

input[type=submit] {
    border: 1px solid #B698FF !important;
    padding: 0.25em 1em;
    border-radius: 0.5em !important;
    color: #fff;
    background-color: #B698FF;
}

input[type=submit]:hover {
    background-color: #fff;
    color: #1884C4;
}

/*-----------------------
 ul.monthly
-------------------------*/
ul.monthly {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

ul.monthly img {
    width: auto;
    height: 16px;
}

ul.monthly a {
    margin-right: 0.5em;
    color: #1884C4;
    text-decoration: underline;
}

ul.monthly li.active a {
    color: #666;
    text-decoration: none;
}

ul.monthly li {
    padding: 0 1em 0 0;
    margin: 0.5em 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

ul.monthly li:before {
    content: "・";
}

/*-----------------------
 .search_nav
-------------------------*/

.search_nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    justify-content: space-between;
}

.search_nav.right {
    width: 100%;
    justify-content: flex-end;
    justify-content: space-between;
    padding-top: 0.5em;
    border-top: 1px solid #F2F2F2;
}

.search_nav.right .select_it {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    max-width: 1110px;
}

.search_nav.right .select_it ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-right: 0.5em;
    padding-right: 0.5em;
    border-right: 1px solid #ccc;
}

.search_nav.right .select_it ul a {
    padding: 0.25em 0.25em;
    display: block;
    text-decoration: underline !important;
    color: #1884C4 !important;
}

.search_nav.right .select_it ul a.active {
    text-decoration: none !important;
    color: #666 !important;
    cursor: default;
    pointer-events: none !important;
}

.search_nav label {
    color: #408CE0;
    text-decoration: underline;
    padding: 0.25em 0.25em;
    cursor: pointer;
}

#seachck {
    display: none;
}

.search_box {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 500;
    position: fixed;
    left: 0;
    top: 0;
}

#seachck:checked+.search_box {
    display: flex;
}

.search_box .inner {
    display: block;
    padding: 1em 2em;
    width: auto;
    height: auto;
    min-width: 400px;
    min-height: 400px;
    background-color: #fff;
}

.search_box .inner label {
    font-size: 2rem;
    cursor: pointer;
}

.search_box .inner .form {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 1em 0;
}

.search_box .inner input[type=text] {
    width: 80%;
    height: 39px;
    padding: 0.5em 1em;
    font-size: 16px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 0.25em 0 0 0.25em;
    border: 1px solid #888888;
}

.search_box .inner button {
    background-color: #888888;
    width: 20%;
    height: 39px;
    font-size: 15px;
    color: #fff;
    border: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    cursor: pointer;
    border-radius: 0 0.25em 0.25em 0;
}

.search_box .inner button img {
    width: auto;
    height: 30px;
}

ul#searlist {
    width: 100%;
    height: auto;
    min-height: 280px;
    max-height: 280px;
    overflow-y: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    flex-direction: column;
}

ul#searlist li {
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0.5em 0;
}

ul#searlist li a {
    width: 100%;
    display: block;
    font-size: 1.6rem;
    color: #408CE0;
    text-decoration: underline;
}

ul#searlist li a:hover {
    color: orange;
}

.f-ul {
    margin-right: 50em !important;
}

.year-group {
    margin-left: 1.5em !important;
}

/*-----------------------
 footer
-------------------------*/
form.input {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}




.inputbox input[type=button].btn {
    background-color: #B698FF;
    color: #fff;
    font-size: 1.8rem;
    padding: 0.5em 4em;
    border: 1px solid #B698FF;
    border-radius: 0.5em;
    cursor: pointer;
}

.inputbox input[type=button].btn:hover {
    color: #1884C4;
    background-color: #fff;
}

.inputbox .small {
    margin-top: 1em;
    font-size: 1.2rem;
}

/*-----------------------
 page-top
-------------------------*/
#page-top {
    width: 40px;
    height: 40px;
    display: block;
    position: fixed;
    right: 5%;
    bottom: 5%;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 998;
}

#page-top img {
    width: 40px;
    height: 40px;
}

#page-top:hover {
    opacity: 0.8;
}

/*-----------------------
 page_down
-------------------------*/
#page_down {
    width: 40px;
    height: 40px;
    display: block;
    position: fixed;
    right: 10%;
    bottom: 5%;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 998;
}

#page_down img {
    width: 40px;
    height: 40px;
    transform: rotate(180deg);
}

#page_down:hover {
    opacity: 0.8;
}


@media screen and (max-width:1440px) {
    .wrap.wide {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        padding: 2em 0;
    }

    div.insc {
        max-width: 100%;
        min-width: 1400px;
    }


}


@media screen and (max-width:1000px) {
    body {
        padding-top: 55px;
    }

    .wrap {
        width: 90%;
        margin: 0 auto;
    }

    header {
        padding: 5px 0;
    }

    header .logo {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        width: 65%;
    }

    header .logo h1 {
        padding-top: 0.5em;
        font-size: 1rem;
    }

    header .logo img {
        height: 30px;
        width: auto;
        margin-right: 1em;
    }

    header .contact {
        display: none;
    }

    header .contact.sp {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    header .contact.sp img {
        height: 30px;
        width: auto;
        margin-left: 1em;
    }

    br.sp {
        display: block;
    }

    h2.title {
        color: #8858FF;
        font-size: 5.5vw;
    }

}

/* メール送信ボタンのスタイル */
.rejection-mail-button {
    font-size: 10px !important;
}

.rejection-mail-button:hover {}

/* 送信済み日付のスタイル */
.rejection-mail-sent-date {}

/* ボタンと日付を中央揃えにする */
.rejection-mail-cell {
    font-size: 10px !important;
    text-align: center !important;
}

/* メール送信ボタンのスタイル */
.guidance-mail-button {
    font-size: 10px !important;
    background-color: #FF8757 !important;
}

.guidance-mail-button:hover {
    background-color: #FFF !important;
}

/* 送信済み日付のスタイル */
.guidance-mail-sent-date {}

/* ボタンと日付を中央揃えにする */
.guidance-mail-cell {
    font-size: 10px !important;
    text-align: center !important;
}

/* .modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
    text-align: center;
} */

/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button-group {
    text-align: right;
    margin-top: 20px;
}

.button-group button {
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.submit-button {
    background-color: #007bff;
    color: white;
    border: none;
}

.cancel-button {
    background-color: #6c757d;
    color: white;
    border: none;
}

/* メールテンプレートモーダルのスタイル調整 */
#mailTemplateDialog .modal-content {
    margin: 30px auto;
    width: 90%;
    max-width: 800px;
}

#mailTemplateDialog .form-control {
    width: 100%;
    box-sizing: border-box;
}

#mailTemplateDialog textarea.form-control {
    min-height: 300px;
    font-size: 14px;
    line-height: 1.5;
    font-family: monospace;
}

#mailTemplateDialog .button-group {
    margin-top: 20px;
}

#mailTemplateDialog .button-group button {
    min-width: 100px;
    padding: 8px 16px;
}

#mailTemplateDialog .modal-header h3 {
    margin: 0;
    font-size: 18px;
}

/* 読み取り専用フィールドのスタイル */
#mailTemplateDialog input[readonly],
#mailTemplateDialog textarea[readonly] {
    background-color: #f8f9fa;
    cursor: default;
    color: #212529;
}

/* メールアドレスフィールドのスタイル */
#mailTemplateDialog #template-email {
    font-family: monospace;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px;
}

/* 全体的なスペーシングの調整 */
#mailTemplateDialog .form-group {
    margin-bottom: 20px;
}

#mailTemplateDialog label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #495057;
}

/* 法人/個人選択モーダルのスタイル */
#confirmDialog .modal-content {
    padding: 20px;
    text-align: center;
    max-width: 400px;
}

#confirmDialog p {
    margin-bottom: 20px;
    font-size: 16px;
}

#confirmDialog button {
    margin: 5px 10px;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

#confirmDialog .type-button {
    background-color: #007bff;
    color: white;
}

#confirmDialog .type-button:hover {
    background-color: #0056b3;
}

#confirmDialog .cancel-button {
    background-color: #6c757d;
    color: white;
}

#confirmDialog .cancel-button:hover {
    background-color: #5a6268;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}