*{
    margin: 0 auto;
    padding: 0;
    max-width: 800px;
    font-family: sans-serif;
}

table{
    background: white;
}

table#tHeader {
    table-layout: fixed;
    border-collapse: collapse;
    width: 100%;
}

table#tHeader th {
    margin: 0px 5px 5px 5px;
}

thead tr{
    background: white;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 0;
}

#header{
    display: flex;
    justify-content: space-between;
    user-select: none;
}
.box-top {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
#header_Date{
    margin: 0;
    margin-top: 5px;
    font-size: 20px;
    display: flex;
    text-align: left;
    align-items: center;
    margin-right: auto;
}

#header_Date_form{
    display: flex;
}
.header_Date_label{
    height: 44px;
    display: flex;
    position: relative;
    align-items: center;
}
.YMDropDown{
    height: 44px;
    font-size: 20px;
    text-align: center;
    border: solid 1px #ababab;
}
#YMSubmitButton{
    border: none;
    width: 70px;
    height: 45px;
    background: #eee;
    color: #313131;
    position: relative;
    align-items: center;
}
#btn_Controller{
    margin: 0;
    margin-top: 5px;
    display: flex;
    user-select: none;
    text-align: right;
    margin-left: auto;
}
.btn_Calendar{
    /* border: 2px solid #2285b1; */
    border: none;
    width: 70px;
    height: 45px;
    background: #eee;
    /* border-radius: 3px; */
    color: #313131;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-left: 8px;
    /* font-size: medium; */
}
.form_invisible{
    margin: 0;
}
.form_visible{
    margin: 0;
    width: calc(100% / 3);
}
#prev, #next{
    font-size: 20px;
}
#today{
    font-size: 16px;
}

table#contents {
    font-size: 18px;
    table-layout: fixed;
    border-collapse: collapse;
    border: 2px solid black;
    width: 100%;
}

table#contents th, table#contents td{
    border: 1px solid black;
    padding: 4px;
    height: 36px;
}

/* table#contents td {
    border: 1px solid black;
    padding: 4px;
} */

table#contents td .free {
    color: blue;
}
table#contents td .max {
    color: red;
}

table#contents th.date {
    width: 5em;
}
table#contents th.week {
    width: 3em;
}
table#contents th.time {
    width: 3em;
}

table#contents td.date {
    text-align: center;
}
table#contents td.week {
    text-align: center;
}
table#contents td.time {
    text-align: center;
}
table#contents td.room {
    text-align: center;
}

tbody tr:last-child, table#contents td.date, table#contents td.week {
    border-bottom: 2px solid black;
}

@media screen and (max-width: 480px){
    #header_Date{
        width: 100%;
        font-size: 18px;
    }
    .YMDropDown{
        height: 38px;
        font-size: 18px;
    }
    .header_Date_label{
        height: 38px;
    }
    #YMSubmitButton{
        height: 38px;
    }
    #btn_Controller{
        width: 100%;
    }
    .btn_Calendar{
        margin: 0;
        width: 98%;
        height: 38px;
    }
    table#contents th.date {
        width: 4.3em;
    }
    table#contents th.week {
        width: 2.5em;
    }
    table#contents th.time {
        width: 2.5em;
    }
    table#contents {
        font-size: 16px;
    }
}