body{
    background-color: #EAF1F2;

    animation: fadeIn 0.7s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

@keyframes fadeIn{
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@media screen and (min-width: 1080px) {
    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;
    }

    .hachi {
        position: absolute;
        left: -9999px;
    }

    P{
        text-align: center;
    }

    #form{
        width: 50rem;
        margin: 120px auto;
    }

    #form input{
        font-size: 20px;
    }

    #form label{
        display: block;
        padding-top: 8px;
        font-size: 20px;
    }

    #form input.text,#form textarea{
        display: block;
        box-sizing: border-box;
        width: 100%;
        border: solid 1.5px;
        border-radius: 7px;
        padding: 12px;
        font-size: 1.4rem;
    }

    #form span.required{
        background-color: rgb(252, 241, 243);
        color: red;
    }

    textarea{
        padding: 9px;
        font-size: 20px;
        height: 250px;
    }

    input:required,
    textarea:required,
    select:required{
        background-color: #fde9f2;
    }

    /*入力済み */
    input:required:valid,
    textarea:required:valid,
    select:required:valid { 
        background-color: #fff;
    }

    select{
        display: block;
        box-sizing: border-box;
        width: 100%;
        border: solid 1.5px;
        border-radius: 7px;
        padding: 12px;
        font-size: 1.4rem;
    }

    #form p{
        background-color: #EAF1F2;
    }

    .form-button-block{
        margin: 10px auto;
        background-color: #ff7a00;
    }

    .agree-label input[type="checkbox"] {
        transform: scale(1.3);
        margin-right: 10px;
    }

    #ssl{
        text-align: center;
        margin: 10px 0;
    }
    
    dl{
        width: 40rem;
        font-size: 20px;
        margin: 0 auto;
    }

    dt{
        padding: 5px;
        background-color: rgb(235, 253, 247);
    }

    .list dd {
        margin-bottom: 30px;
    }

    button[type="button"]{
        display: block;
        margin: 10px auto;
        padding: 10px 20px;
        background: #f79a61;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 25px;
        cursor: pointer;
        width: 320px;
        box-sizing: border-box;
    }

    input[type="submit"] {
        display: block;
        margin: 10px auto;
        padding: 10px 20px;
        background: #0078d4;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 25px;
        cursor: pointer;
        width: 320px;
    }

    .buttons {
        margin-top: 30px;
        text-align: center;
        padding: 5px;
        border: solid 2px black;
        font-size: 100%;
        font-weight: bold;
        display: block;
        margin: 0 auto;
        width: 300px;
    }

    footer{
        background-color: rgb(185, 232, 250);
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
    }

    footer address{
        font-style: normal;
        font-weight: bold;
        margin-left: 5px;
        font-size: 13px;
        line-height: 17px;
        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: 1080px) {
      body{
        margin: 0px;
        padding-top: 80px;
        overflow-x: hidden;
        font-family: "UD新ゴ";
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 80px;

        /* 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;/*メニューを画面内へ*/
    }
    
    li.del{
        display: none;
    }

    p.del{
        display: none;
    }

    h1{
        text-align: center;
    }

    .hachi {
        position: absolute;
        left: -9999px;
    }

    P{
        text-align: center;
    }

    #form{
        width: 50rem;
        margin: 120px auto;
    }

    #form input{
        font-size: 20px;
    }

    #form label{
        display: block;
        padding-top: 8px;
        font-size: 20px;
    }

    #form input.text,#form textarea{
        display: block;
        box-sizing: border-box;
        width: 100%;
        border: solid 1.5px;
        border-radius: 7px;
        padding: 12px;
        font-size: 1.4rem;
    }

    #form span.required{
        background-color: rgb(252, 241, 243);
        color: red;
    }

    textarea{
        padding: 9px;
        font-size: 20px;
        height: 250px;
    }

    input:required,
    textarea:required,
    select:required{
        background-color: #fde9f2;
    }

    /*入力済み */
    input:required:valid,
    textarea:required:valid,
    select:required:valid { 
        background-color: #fff;
    }


    select{
        display: block;
        box-sizing: border-box;
        width: 100%;
        border: solid 1.5px;
        border-radius: 7px;
        padding: 12px;
        font-size: 1.4rem;
    }

    #form p{
        background-color: #EAF1F2;
    }

    .form-button-block{
        margin: 10px auto;
        background-color: #ff7a00;
    }

    .agree-label input[type="checkbox"] {
        transform: scale(1.3);
        margin-right: 10px;
    }

    #ssl{
        text-align: center;
        margin: 10px 0;
    }
    
    dl{
        width: 40rem;
        font-size: 20px;
        margin: 0 auto;
    }

    .list dd {
        margin-bottom: 30px;
    }

    button[type="button"]{
        display: block;
        margin: 10px auto;
        padding: 10px 20px;
        background: #f79a61;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 25px;
        cursor: pointer;
        width: 320px;
        box-sizing: border-box;
    }

    input[type="submit"] {
        display: block;
        margin: 10px auto;
        padding: 10px 20px;
        background: #0078d4;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 25px;
        cursor: pointer;
        width: 320px;
    }

    .buttons {
        margin-top: 30px;
        text-align: center;
        padding: 5px;
        border: solid 2px black;
        font-size: 100%;
        font-weight: bold;
        display: block;
        margin: 0 auto;
        width: 300px;
    }

    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;/*メニューを画面内へ*/
    }
    
    li.del{
        display: none;
    }

    p.del{
        display: none;
    }

    h1{
        text-align: center;
        font-size: 1.4rem;
    }

    .hachi {
        position: absolute;
        left: -9999px;
    }

    P{
        text-align: center;
    }

    #form{
        width: 90%;
        margin: 2rem auto;
    }

    #form input{
        font-size: 1rem;
    }

    #form label{
        display: block;
        padding-top: 8px;
        font-size: 1rem;
    }

    #form input.text,#form textarea{
        display: block;
        box-sizing: border-box;
        width: 100%;
        border: solid 1px;
        border-radius: 7px;
        padding: 12px;
        font-size: 1rem;
    }

    #form span.required{
        background-color: rgb(252, 241, 243);
        color: red;
    }

    textarea{
        padding: 9px;
        font-size: 1rem;
        height: 200px;
    }

    input:required,
    textarea:required,
    select:required{
        background-color: #fde9f2;
    }

    /*入力済み */
    input:required:valid,
    textarea:required:valid,
    select:required:valid { 
        background-color: #fff;
    }

    select{
        display: block;
        box-sizing: border-box;
        width: 100%;
        border: solid 1px;
        border-radius: 7px;
        padding: 12px;
        font-size: 1rem;
    }

    #form p{
        background-color: #EAF1F2;
    }

    .form-button-block{
        margin: 10px auto;
        background-color: #ff7a00;
    }

    .agree-label input[type="checkbox"] {
        transform: scale(1.3);
        margin-right: 10px;
    }

    #ssl{
        text-align: center;
        margin: 10px 0;
    }

    dl{
        width: 95%;
        font-size: 1rem;
        margin: 0 auto;
    }

    dt{
        background-color: rgb(235, 253, 247);
    }

    .list dd {
        margin-bottom: 30px;
    }

    button[type="button"]{
        display: block;
        margin: 10px auto;
        padding: 5px 10px;
        background: #f79a61;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 1.3rem;
        cursor: pointer;
        width: 100%;
        box-sizing: border-box;
    }

    input[type="submit"] {
        display: block;
        margin: 10px auto;
        padding: 5px 10px;
        background: #0078d4;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 1.3rem;
        cursor: pointer;
        width: 100%;
    }

    .buttons {
        margin-top: 30px;
        text-align: center;
        padding: 5px;
        border: solid 2px black;
        font-size: 100%;
        font-weight: bold;
        display: block;
        margin: 0 auto;
        width: 100%;
    }
    
    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;
    }
    

    /*下固定footer 
    footer{
        background-color: rgb(185, 232, 250);
        position: fixed;
        bottom: 0;
        left: 0;
        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;
    }
        */
}