body{
    background-color: #EAF1F2;
}

@media screen and (min-width: 1622px) {
    body{
        padding-top: 70px;
    }

    #logo{
        width: 35em;
        display: block;
        margin: auto;
    }

    #menu-content{
        background-color: rgb(183, 226, 255);
        width: 100%;
        height: 60px;
        position: fixed;
        padding-top: 0px;
        top: 0;
        left: 0;
        z-index: 998;
        box-sizing: border-box;
    }

    #menu-content ul{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #menu-content li{
        list-style: none;
        font-weight: bold;
    }

    #menu-content a{
        display: block;
        text-decoration: none;
        color: black;
        margin-right: 30px;
    }

    #menu-content a:hover{
        color: #ff7a00;
    }

    #header-menu-check input[type="checkbox"]{
        display: none;
    }

    #company-name{
        position: fixed;
        left: 0;
        top: 0;
        z-index: 999;
        font-size: 30px;
        font-weight: bold;
        margin-top: 6px;
        margin-left: 20px;
    }

    li.del{
        display: none;
    }

    p.del{
        display: none;
    }

    h1{
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        font-size: 36px;
        border-bottom: 3px solid #333;   
        padding-bottom: 0.3em;
        margin-bottom: 1em;
        text-decoration: none; /* 下線は border-bottom に任せる */
        width: 600px;
    }

    table{
        margin: 20px auto;
        border-collapse: collapse;
        width: 650px;
    }

    table#bike{
        margin-bottom: 170px;
    }

    table th,table td{
        border: solid 3px;
        padding: 10px;
        text-align: center;
        background-color: #f1f6f7;
        font-size: 20px;
        font-weight: 500;
    }

    table caption{
        margin: 10px;
    }

    table caption{
        font-size: 30px;
        font-weight: bold;
    }

    table tr.heading th{
        background-color: #d8f6ff;
    }

    table th.item{
        width: 200px;
    }

    table th.amount{
        width: 150px;
    }

    table th.remarks{
        width: 90px;
    }

    table .menu{
        background-color: rgb(255, 251, 246);
    }

    table td span{
        color: red;
    }

    footer{
        background-color: rgb(185, 232, 250);
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
    }

    footer address{
        font-style: normal;
        font-weight: bold;
        margin-left: 25px;
        line-height: 25px;
        padding: 10px;
        width: 500px;
        left: 0;
        position: absolute;
    }

    footer div.right{
        position: absolute;
        right: 0;
        top: 20;
        padding: 10px;
        margin-right: 25px;
        line-height: 25px;
    }
}


/* タブレット（481px〜1024px） */
@media screen and (min-width: 481px) and (max-width: 1621px) {
      body{
        margin: 0px;
        padding-top: 80px;
        overflow-x: hidden;
        font-family: "UD新ゴ";
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 180px;

        /* header 下固定用
        padding-bottom: 65px;
        */
    }

    header{
        margin: 0px;
        background-color: rgb(185, 232, 250);
        width: 100%;
        height: 60px;
        box-sizing: border-box;
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
    }

    #menu-btn{
        position: fixed;
        top: 0px;
        right: 2px;
        display: flex;
        height: 55px;
        width: 70px;
        justify-content: center;
        align-items: center;
        z-index: 90;
        background-color:  rgb(185, 232, 250);
    }

    #menu-btn span,
    #menu-btn span:before,
    #menu-btn span:after{
        content: '';
        display: block;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        background-color: blue;
        position: absolute;
    }

    #menu-btn span:before{
        bottom: 8px;
    }

    #menu-btn span:after{
        top: 8px;
    }

    #menu-check:checked ~ #menu-btn span {
        background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
    }
    #menu-check:checked ~ #menu-btn span::before {
        bottom: 0;
        transform: rotate(45deg);
    }
    #menu-check:checked ~ #menu-btn span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    #menu-check {
        display: none;
    }
     
    #menu-content {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 100%;/*leftの値を変更してメニューを画面外へ*/
        z-index: 70;
        background-color: rgb(185, 232, 250);
        transition: all 0.5s;/*アニメーション設定*/
    }

    #menu-content ul {
        padding: 70px 10px 0;
    }

    #menu-content ul li {
        border-bottom: solid 2px black;
        list-style: none;
        text-align: center;
    }

    #menu-content ul li a {
        display: block;
        width: 100%;
        font-size: 20px;
        box-sizing: border-box;
        color: black;
        text-decoration: none;
        padding: 10px 50px 20px 0;
        position: relative;
        font-weight: bold;
    }

    #menu-check:checked ~ #menu-content {
        left: 0;/*メニューを画面内へ*/
    }
    
    header p{
        position: fixed;
        left: 0;
        top: 0;
        z-index: 999;
        margin-top: 10px;
        padding-left: 25px;
        font-size: 2em;
        font-weight: bold;
    }

    li.del{
        display: none;
    }

    p.del{
        display: none;
    }

    h1{
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        font-size: 36px;
        border-bottom: 3px solid #333;   
        padding-bottom: 0.3em;
        margin-bottom: 1em;
        text-decoration: none; /* 下線は border-bottom に任せる */
        width: 600px;
    }

    table{
        margin: 20px auto;
        border-collapse: collapse;
        width: 650px;
        
    }

    table th,table td{
        border: solid 3px;
        padding: 10px;
        text-align: center;
        background-color: #f1f6f7;
        font-size: 20px;
        font-weight: 500;
    }

    table caption{
        margin: 10px;
    }

    table caption{
        font-size: 30px;
        font-weight: bold;
    }

    table tr.heading th{
        background-color: #d8f6ff;
    }

    table th.item{
        width: 200px;
    }

    table th.amount{
        width: 150px;
    }

    table th.remarks{
        width: 90px;
    }

    table .menu{
        background-color: rgb(255, 251, 246);
    }

    table td span{
        color: red;
    }

    footer{
        background-color: rgb(185, 232, 250);
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 90px;
    }

    footer address{
        font-style: normal;
        font-weight: bold;
        margin-left: 3px;
        padding: 10px;
        left: 0;
        font-size: 16px;
        position: absolute;
    }

    footer div.right{
        position: absolute;
        right: 0;
        top: 15;
        padding: 10px;
        margin-right: 1px;
        line-height: 25px;
        font-size: 20px;
        font-weight: bold;
    }
}

 @media screen and (max-width: 470px) {
    body{
        margin: 0px;
        padding-top: 80px;
        overflow-x: hidden;
        font-family: "UD新ゴ";
        margin-left: auto;
        margin-right: auto;

        /* header 下固定用
        padding-bottom: 65px;
        */
    }

    header{
        margin: 0px;
        background-color: rgb(185, 232, 250);
        width: 100%;
        height: 60px;
        box-sizing: border-box;
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
    }

    #menu-btn{
        position: fixed;
        top: 0px;
        right: 2px;
        display: flex;
        height: 55px;
        width: 70px;
        justify-content: center;
        align-items: center;
        z-index: 90;
        background-color:  rgb(185, 232, 250);
    }

    #menu-btn span,
    #menu-btn span:before,
    #menu-btn span:after{
        content: '';
        display: block;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        background-color: blue;
        position: absolute;
    }

    #menu-btn span:before{
        bottom: 8px;
    }

    #menu-btn span:after{
        top: 8px;
    }

    #menu-check:checked ~ #menu-btn span {
        background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
    }
    #menu-check:checked ~ #menu-btn span::before {
        bottom: 0;
        transform: rotate(45deg);
    }
    #menu-check:checked ~ #menu-btn span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    #menu-check {
        display: none;
    }
     
    #menu-content {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 100%;/*leftの値を変更してメニューを画面外へ*/
        z-index: 70;
        background-color: rgb(185, 232, 250);
        transition: all 0.5s;/*アニメーション設定*/
        overflow-y: auto; /* ←縦スクロールを許可 */
    }

    #menu-content ul {
        padding: 70px 10px 0;
    }

    #menu-content ul li {
        border-bottom: solid 2px black;
        list-style: none;
    }

    #menu-content ul li a {
        display: block;
        width: 100%;
        font-size: 20px;
        box-sizing: border-box;
        color: black;
        text-decoration: none;
        padding: 10px 50px 20px 0;
        position: relative;
        font-weight: bold;
    }

    #menu-check:checked ~ #menu-content {
        left: 0;/*メニューを画面内へ*/
    }

    h1{
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.3rem;
        border-bottom: 3px solid #333;   
        padding-bottom: 0.3em;
        margin-bottom: 1em;
        text-decoration: none; 
        width: 75%;
    }

    header p{
        position: fixed;
        left: 0;
        top: 0;
        z-index: 999;
        margin-top: 0.8rem;
        padding-left: 0.8rem;
        font-size: 1.3rem;
        font-weight: bold;
    }
    
    li.del{
        display: none;
    }

    p.del{
        display: none;
    }

    #logo{
        display: block;
        width: 80%;
        margin: auto;
    }

    #company-name{
        position: fixed;
        left: 0;
        top: 0;
        z-index: 999;
        font-size: 1.3rem;
        font-weight: bold;
        margin-top: 13px;
        margin-left: 20px;
    }

    h1{
        text-align: center;
        font-size: 1.7rem;
    }


    table{
        margin: 1.4rem auto;
        border-collapse: collapse;
        width: 92%;
    }

    table#bike{
        margin-bottom: 30px;
        scroll-margin-top: 60px; 
    }

    table th,table td{
        border: solid 2px;
        padding: 0.2rem;
        text-align: center;
        background-color: #f1f6f7;
        font-size: 0.73rem;
        font-weight: 600;
    }

    table caption{
        margin: 0.3rem;
        font-size: 1.3rem;
        font-weight: bold;
    }

    table tr.heading th{
        background-color: #d8f6ff;
    }

    table th.item{
        width: 5rem;
    }

    table th.amount{
        width: 5rem;
    }

    table th.remarks{
        width: 5rem;
    }

    table .menu{
        background-color: rgb(255, 251, 246);
    }

    table td span{
        color: red;
    }

    footer{
        background-color: rgb(185, 232, 250);
        width: 100%;
        height: 60px;
    }

    footer address{
        font-style: normal;
        font-weight: bold;
        margin-left: 1px;
        padding: 10px;
        left: 0;
        font-size: 8px;
        position: absolute;
    }

    footer div.right{
        position: absolute;
        right: 0;
        top: 15;
        padding: 10px;
        margin-right: 1px;
        line-height: 25px;
        font-size: 8px;
    }
}