@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

:root {
    --color-text-highlight: rgb(255, 222, 222);
    --color-bg-dark: rgb(55, 22, 22);
    --color-bg-light: rgb(250, 231, 226);
    --color-bg-message: rgb(237, 255, 248);
    --color-text-dark: rgb(30, 16, 16);
    --color-text-light: rgb(255, 245, 245);
    --color-text-link: rgb(255, 32, 32);
    --color-border-dark: rgb(55, 22, 22);
    --color-border-light: rgb(200, 160, 160);
    --color-button-primary: rgb(200, 32, 32);
    --color-border-control: rgb(180, 180, 180);
    --color-border-message: rgb(2, 97, 60);
    --color-button-secondary: rgb(240, 240, 240);
}

@media screen and (min-width:901px) {
    .sp-only {
        display: none !important;
    }   
}

@media screen and (max-width:900px) {
    .pc-only {
        display: none !important;
    }
}

.nowrap {
    white-space: nowrap;
}

.d-none {
    display: none !important;
    visibility: hidden !important;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text-dark);
}

input, textarea, select, button, pre, table {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

a,
a[href] {
    color: var(--color-text-link);
    cursor: pointer;
    text-decoration: none;
}

.world {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    width: calc(100% - 16px);
    padding: 8px;
    margin: 0;
    z-index: 50;
    background-color: rgb(255, 255, 255);
}

.topbar-left,
.topbar-right {
    display: inline-flex;
}

.topbar-left > * {
    margin-right: 8px;
}

.topbar-right {
    margin-left: auto;
    margin-right: 24px;
}

.topbar-right > * {
    margin-left: 8px;
}

a.topbar-title {
    color: inherit;
    font-weight: bold;
    margin-right: 8px;
}

.topbar a.topbar-item {
    color: inherit;
    padding: 0 8px 0 8px;
}

.topbar a.topbar-item:hover {
    background-color: var(--color-text-highlight);
}

.bottombar {
    left: 0;
    bottom: 0;
    display: flex;
    width: calc(100% - 16px);
    padding: 8px;
    margin: 0;
    margin-top: auto;
    background-color: rgb(200, 200, 200);
}

.bottombar > *:first-child {
    margin-left: 8px;
}

.mainarea {
    display: flex;
    margin-top: 45px;
    padding: 0;
    width: 100%;
    min-height: calc(100vh - 96px);
}

.maincotainer {
    max-width: calc(90vw);
    min-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.modal-container {
    visibility: hidden;
    display: none;
    padding: 0;
}

.modal-container.show {
    z-index: 101;
    visibility: visible;
    display: flex;
    position: fixed;
    background-color: transparent;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
}

.modal-container.modal-msg-prime.show {
    z-index: 111;
}

.modal-container.show > * {
    margin: auto;
}

.modal-dialog {
    width: 900px;
    max-height: 100vh;
    background-color: rgb(255, 255, 255);
}

.modal-container.modal-msg-prime.show > .modal-dialog {
    width: 600px;
}

.modal-dialog-body {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
    overflow-y: scroll;
    margin: 0;
    padding: 16px;
}

.modal-dialog-head {
    margin: 0;
    padding: 8px;
    display: flex;
}

.modal-dialog-head > .modal-dialog-close {
    margin-left: auto;
    cursor: pointer;
}

.modal-dialog-body .buttons {
    display: flex;
    margin: 16px 0 8px 0;
}

.modal-dialog-body .buttons > * {
    margin-right: 8px;
}

.modal-dialog-body .buttons > :first-child {
    margin-left: auto;
}

.modal-dialog-body .buttons > :last-child {
    margin-right: auto;
}

.shadow-layer {
    visibility: hidden;
    display: none;
}

.shadow-layer.show {
    z-index: 100;
    visibility: visible;
    display: block;
    position: fixed;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(204, 204, 204);
    opacity: 0.7;
}

.shadow-layer.modal-msg-shadow.show {
    z-index: 110;
}

.form-item-container {
    display: flex;
}

.form-item {
    display: flex;
    flex-direction: column;
    margin: 0 8px 8px 0;
}

.form-item:last-child {
    margin-bottom: 0;
}

.form-item > * {
    margin-bottom: 4px;
}

.form-item > *:last-child {
    margin-bottom: 0px;
}

.form-item-label {
    font-size: 12px;
}

.form-item-input {

}

.form-item-note {
    font-size: 10px;
    color: rgb(80, 80, 80);
}

#adminmenu {
    visibility: hidden;
    display: none;
}

#adminmenu.show {
    visibility: visible;
    display: block;
    position: fixed;
    top: 40px;
    left: 20px;
    z-index: 80;
    margin: 0;
    padding: 8px;
    background-color: rgb(255, 255, 255);
    border: solid 1px rgb(128, 128, 128);
    box-shadow: 3px 3px 5px 5px rgb(80, 80, 80);
}

#adminmenu .adminmenu-list {
    margin-left: 0;
    padding-left: 0;
    list-style: none;
    min-width: 200px;
}

#adminmenu .adminmenu-list li {
    margin-left: 0;
    padding-left: 0;
}

#adminmenu a {
    color: inherit;
    text-decoration: none;
    padding: 0 24px 0 16px;
}

#adminmenu a:hover {
    text-decoration: none;
    background-color: var(--color-text-highlight);
}

.circlelink {
    display: flex;
    flex-direction: column;
    height: 64px;
    width: 64px;
    background-color: rgb(200, 82, 82);
    color: rgb(255, 255, 255);
    position: fixed;
    right: 100px;
    text-align: center;
    align-items: center;
    border-radius: 32px;
    cursor: pointer;
}

.circlelink > :first-child {
    margin-top: auto;
}

.circlelink > :last-child {
    margin-bottom: auto;
}

.circle-add {
    top: calc(100vh - 180px);
}

.circle-find {
    top: 200vh;
}

ul.paging {
    display: inline-flex;
    margin-left: 0;
    padding-left: 0;
}

ul.paging > li {
    display: inline;
    min-width: 48px;
    text-align: center;
    border: 1px solid rgb(200, 200, 200);
    margin-left: 0;
    padding-left: 0;
}

.filter-panel {
    border: 1px solid var(--color-border-dark);
    width: 100%;
    margin-bottom: 16px;
}

.filter-panel-head {
    display: flex;
    padding: 4px;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    cursor: pointer;
}

.filter-panel-open-close {
    margin-left: auto;
    margin-right: 8px;
    font-size: 120%;
    font-weight: bold;
    width: 24px;
    height: 24px;
    text-align: center;
}

.filter-panel-body {
    display: none;
    visibility: hidden;
}

.filter-panel.show .filter-panel-body {
    display: block;
    visibility: visible;
    padding: 8px;
}

.filter-panel .filter-panel-open-close::after {
    content: "+";
}

.filter-panel.show .filter-panel-open-close::after {
    content: "-";
}

.filter-item {
    margin-bottom: 8px;
}

.filter-item-label {
    font-size: 12px;
}

.filter-item-input {
    margin-left: 8px;    
}

input.fm1-textbox,
textarea.fm1-textbox {
    padding: 4px;
    border: 1px solid var(--color-border-control);
    border-radius: 4px;
}

.w400 {
    width: 400px;
}

.w620 {
    width: 620px;
}

.w100p {
    width: 100%;
}

.fm1-checkbox-sets {
    display: flex;
}

.fm1-checkbox-set {
    display: inline-flex;
    flex-wrap: nowrap;
}

input.fm1-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input.fm1-checkbox {
    position: relative;
    width: 14px;
    height: 14px;
    border: 1px solid #000;
    border-radius: 2px;
    vertical-align: -2px;
}

input.fm1-checkbox:focus {
    outline: 2px solid var(--color-border-light);
}

input.fm1-checkbox:checked::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #000;
    content: "";
}

input.fm1-checkbox[type="radio"] {
    position: relative;
    width: 16px;
    height: 16px;
    border: 1px solid #000;
    border-radius: 50%;
    vertical-align: -2px;
}

input.fm1-checkbox[type="radio"]:checked::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #000;
    content: "";
}

input.fm1-checkbox + label[for] {
    cursor: pointer;
}

input.fm1-textbox:focus,
textarea.fm1-textbox:focus,
select.fm1-select:focus {
    outline: 2px solid var(--color-border-light);
}

.fm1-button {
    background-color: var(--color-button-primary);
    border: none;
    color: var(--color-text-light) !important;
    padding: 4px 16px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
}

.fm1-button:focus {
    outline: 2px solid var(--color-border-dark);
}

.fm1-select {
    appearance: none;
    padding: 2px 12px 2px 8px;
    border: 1px solid var(--color-border-control);
    border-radius: 8px;
    font-size: inherit;
}

.fm1-select option {
    padding: 2px 4px;
}

.fm1-select::-ms-expand {
    appearance: none;
}

.btn-in-row {
    color: var(--color-text-dark);
    background-color: var(--color-button-secondary);
    border: 1px solid var(--color-border-light);
    padding: 2px 4px;
    cursor: pointer;
}
.btn-in-row:focus {
    outline: 1px solid var(--color-border-dark);
}

table thead tr th,
table thead tr td {
    white-space: nowrap;
}

table.tbl-main {
    border-collapse: collapse;
    margin-bottom: 16px;
}

table.tbl-main th,
table.tbl-main td {
    padding: 4px 8px;
    font-size: 14px;
}

table.tbl-main td.buttons {
    white-space: nowrap;
}

table.tbl-main thead {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

table.tbl-main thead th {
    white-space: nowrap;
    text-align: center;
}

table.tbl-main tbody tr:nth-child(2n) {
    background-color: var(--color-bg-light);
}

.login-container {
    display: flex;
    min-height: calc(100% - 32px);
}

.login-container .login-form-area {
    margin: auto;
    padding: 0 0 64px 0;
    max-width: 660px;
}

.login-container .login-form {
    padding: 24px;
}

.form-contract-area {
    padding: 8px;
    margin: 8px 0 8px 0;
    border: 1px solid var(--color-border-light);
}

.contract .article {
    margin-bottom: 8px;
}

.contract .article p,
.contract .footnote p {
    margin-top: 2px;
    margin-bottom: 2px;
}

.contract .footnote {
    text-align: right;
}

.form-contract-head {
    font-weight: bold;
    text-align: center;
}

.form-contract-body {
    font-size: 12px;
}

.form-contract-agree {
    margin-top: 8px;
    text-align: center;
}

span.required-badge {
    font-size: 10px;
    background-color: rgb(200, 82, 82);
    color: rgb(255, 255, 255);
    white-space: nowrap;
    padding: 1px 4px;
    border-radius: 4px;
    margin-left: 8px;
}

.messagebox {
    margin: 16px 0 16px 0;
    padding: 8px 16px;
    background-color: var(--color-bg-message);
    border: 1px solid var(--color-border-message);
    border-radius: 8px;
}

.pr {
    margin: 8px;
    padding: 16px;
    background-color: #f8f8f8;
    border-radius: 8px;
}
.pr .pr-title {
    text-align: center;
    font-weight: 700;
}
.pr .pr-body {
    font-size: 12px;
}

img.logo400 {
    width: 400px;
    height: 400px;;
}

img.logo-h {
    width: 100px;
    height: 30px;
}

img.logo-h-400 {
    width: 400px;
    height: 124px;
}

@media screen and (max-width:900px) {

    /**
     * レスポンシブ
     */

    .world {
        width: unset;
        min-width: 100vw;
        padding: 0;
        margin: 0;
    }

    .topbar-right {
        margin-right: 16px;
    }

    .mainarea {
        margin-top: 64px;
        margin-bottom: 64px;
    }

    .bottombar {
        position: fixed;
        left: 0;
        bottom: 0;
    }

    .maincotainer {
        max-width: 96vw;
        min-width: unset;
        padding: 0;
        padding-left: 2vw;
        margin: 0;
    }

    .modal-dialog {
        width: 100vw;
        top: 0;
        left: 0;
    }
    
    .modal-container.modal-msg-prime.show > .modal-dialog {
        width: 90vw;
        left: 5vw;
    }

    .modal-dialog-head > .modal-dialog-close {
        margin-right: 16px;
    }

    .modal-dialog-body {
        max-height: calc(100vh - 150px);
        overflow-y: scroll;
    }

    .filter-panel-open-close {
        margin-right: 16px;
    }
    
    .btn-in-row {
        background-color: transparent;
        border: none;
    }

    .circlelink {
        right: 32px;
    }

    .circle-add {
        top: calc(100vh - 120px);
    }

    .w400 {
        width: 100% !important;
        min-width: 300px;
        max-width: 400px;
    }

    .w620 {
        width: 100% !important;
        min-width: 300px;
        max-width: 620px;
    }

    .tbl-main-wrapper {
        max-width: 100vw;
        overflow-x: scroll;
    }

    .tbl-main td.name,
    .tbl-main td.title {
        min-width: 160px;
    }

}