/* 共通 */
*{
    margin: 0;
    padding: 0;
}
html,
body{
    height: 100%;
    width: 100%;
}
body{
    display: grid;
    grid-template-rows: 140px 1fr;
    row-gap: 5px;
}
a,
button:not(button:disabled){
    cursor: pointer;
}
a:not(header a, .pagination a, #calendar a),
button:not(#side_bar_btn,#side_bar_close){
    border-radius: 10px;
    font-size: large;
}
a{
    text-decoration: none;
}
button{
    border: none;
}
main a:not(.pagination a, #calendar a),
button[type="submit"]:not(.date),
.submit_button{
    color: white;
    display: inline-block;
    padding: 0.5em 0;
    width: 200px;
    text-align: center;
}
main a:not(.pagination a, #calendar a,#div_logout a),
button[type="submit"]:not(.date),
.submit_button{
    background-color: royalblue;
}
main{
    display: grid;
    height: fit-content;
    min-height: calc(100% - 170px);
    overflow: hidden;
    padding-bottom: 1em;
    place-content: center;
}
#message{
    display: inline-block;
    color: red;
    min-height: 1.5em;
}

/* .bg-*  背景色 */
.bg-black{
    background-color: black !important;
}
.bg-royalblue{
    background-color: royalblue;
}
.bg-firebrick{
    background-color: firebrick;
}
.bg-navy{
    background-color: navy;
}
.bg-gray{
    background-color: gray;
}

/* .c-*  文字色 */
.c-white{
    color: white;
}
.c-red{
    color: red;
}
.c-firebrick{
    color: firebrick;
}
.c-royalblue{
    color: royalblue;
}

/* ヘッダ辺りの共通部分 */
header{
    width: 100%;
    height: 100%;
    font-weight: bold;
    display: grid;
    grid-template-rows: 70px 50px;
}
#header-bar{
    background-color: royalblue;
    display: grid;
    font-size: larger;
    grid-template-columns: 200px 1fr;
}
#side_bar_btn{
    background-color: navy;
    color: white;
    font-size: x-large;
    font-weight: bold;
}
#side_bar_bg{
    background-color: rgba(0,0,0,0.5);
    display: none;
    grid-template-columns: auto 1fr;
    height: calc(100% - 70px);
    left: 0;
    position: absolute;
    top: 70px;
    width: 100vw;
    z-index: 4;
}
#side_bar{
    -ms-overflow-style: none;
    background-color: royalblue;
    border-top: solid thin black;
    color: white;
    display: flex;
    flex-direction: column;
    height: calc(100% - 2em - 1px);
    overflow-y: scroll;
    padding: 1em;
    row-gap: 0.5em;
    scrollbar-width: none;
    text-align: left;
}
#side_bar::-webkit-scrollbar{
    display: none;
}
#side_bar a,
#side_bar button{
    padding: 0.5em 1em;
    font-size: 18px;
}
.logout_button{
    background-color: firebrick;
    color: white;
    text-decoration-line: none;
}
.top_button{
    background-color: navy;
    color: white;
    text-decoration-line: none;
}
#side_bar a:not(.logout_button,.top_button){
    display: inline-block;
    color: white;
    white-space: nowrap;
    width: calc(100% - 2em);
}
#side_bar .active_page:not(.top_button ){
    background-color: lightskyblue;
    color: darkblue !important;
}
#side_bar button{
    background-color: gray;
    border-radius: 0;
    color: white;
    font-weight: bold;
    text-align: left;
}
#side_bar .side_menu_title{
    column-gap: 0.5em;
    display: grid;
    grid-template-columns: auto 1fr;
}
#side_bar .after-line{
    background-color: white;
    display: block;
    height: 2px;
    margin: auto 0;
    width: 100%;
}
.side_menu_disabled_button{
    color: white;
    padding: 0.5em 1em;
}
#side_bar_close{
    border-top: solid thin black;
    background-color: rgba(0,0,0,0);
}
#header-bar div:not(#side_bar_bg,#side_bar,.side_menu_title,.after-line){
    margin: auto auto auto 0;
    padding-left: 10px;
}
#header-bar a{
    display: grid;
    place-content: center;
}
#title{
    display: grid;
    place-items: center;
    font-size: xx-large;
    white-space: nowrap;
    margin-top: 1em;
}

/* 必須項目のマーク */
.required::after{
    content: '*';
    color: red;
}

/* カレンダーの選択中日付の色を消す */
td:not(.ui-datepicker-today,.ui-state-highlight) .ui-state-active{
    border: 1px solid #c5c5c5 !important;
    background: #f6f6f6 !important;
    color: #454545 !important;
}

/* 一覧ボタン */
main button[type='button']:not(#list button, .submit_button, .disabled_button){
    color: white;
    background-color: dodgerblue;
    padding: 0.5em 1em;
    margin: 0 0.5em;
}

/* input */
main input,
main select,
main textarea{
    padding: 0.5em;
    font-size: medium;
}
