/* タブレット用 */
@media screen and (max-width: 1024px) {
    /* 共通CSS */
    .wrapper {
        width: 80%;
        padding: 30px 0 0;
    }
}

/* スマホ用 */
@media screen and (max-width: 660px) {
    /* 共通CSS */
    h2 {
        font-size: 35px;
    }

    h3 {
        font-size: 30px;
    }

    h4 {
        font-size: 14px;
    }

    h5 {
        font-size: 18px;
    }

    a, p, th, td {
        font-size: 15px;
    }

    .wrapper {
        width: 100%;
        padding: 30px 0 0;
    }

    /* header */
    /* PC用メニューを非表示 */
    .pc-menu {
        display: none;
    }

    /* スマホ用メニュー表示 */
    .sp-menu {
        /* display: block; */
        margin: 0 auto;
        width: 90%;
        position: absolute;
        top: 60px;
        width: 100%;
        background: rgba(255, 255, 255, 0.8);
        left: 0;
    }

    .sp-menu ul li{
        margin: 0 auto;
        text-align: center;
    }

    /* ハンバーガーメニュー */
    .hamburger-menu{
        display: block;
    }

    #menu-btn-check {
        display: none;
    }

    .menu-btn {
        position: absolute;
        top: 0px;
        right: 0px;
        display: flex;
        height: 60px;
        width: 80px;
        justify-content: center;
        align-items: center;  
    }

    .menu-btn span,
    .menu-btn span:before,
    .menu-btn span:after {
        content: '';
        display: block;
        height: 3px;
        width: 40px;
        border-radius: 3px;
        background-color: #ffffff;
        position: absolute;
    }
    
    .menu-btn span:before {
        bottom: 10px;
    }
    .menu-btn span:after {
        top: 10px;
    }

    #menu-btn-check:checked ~ .menu-btn span {
        background-color: rgba(255, 255, 255, 0);
        content: "close";
    }
    #menu-btn-check:checked ~ .menu-btn span::before {
        bottom: 0;
        transform: rotate(45deg);
    }
    #menu-btn-check:checked ~ .menu-btn span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .hamburger-menu-contents{
        z-index: 1;
        width: 100%;
        right: 0px;
        height: 404px;
        position: absolute;
        background-color: rgba(0, 0, 0, .7);
        bottom: 100%;
        transition: all 0.7s;
    }   

    #menu-btn-check:checked ~ .hamburger-menu-contents {
        bottom: -403px;
        right: 0vw;
    }   

    .hamburger-menu-contents ul {
        padding: 60px 10px 0;
        text-align: center;
    }
    
    .hamburger-menu-contents ul li a {
        display: block;
        list-style: none;
        width: 100%;
        font-size: 20px;
        color:#ffffff;
        padding: 9px 15px 10px 0;
        font-weight: bold;
    }

    /* .toggle,
    .cart {
        display: block;
        width: 35px;
        height: 30px;
        position: relative;
        top: 18px;
        z-index: 2;
        float: right;
    } */
     /* ハンバーガーメニュー */

    .cart {
        display: block;
        width: 35px;
        height: 30px;
        position: relative;
        right: 45px;
        top: 15px;
        float: right;
    }

    .toggle:hover {
        cursor: pointer;
    }

    .cart a{
        font-size: 20px;
        color: #fff;
    }

    .toggle span{
        display: block;
        height: 3px;
        background: #fff;
        position:absolute;
        width: 100%;
        left: 0;
        -webkit-transition: 0.5s ease-in-out;
        -moz-transition: 0.5s ease-in-out;
        transition: 0.5s ease-in-out;   
    }
    .toggle span:nth-child(1){
        top:0px;
    }
    .toggle span:nth-child(2){
        top:12px;
    }
    .toggle span:nth-child(3){
        top:24px;
    }

    .menu a{
        font-size: 18px;
        color: #3e3e3b;
    }

    /* top-img */
    .top-img {
        background-image: url("img/bg-sp.png");
        height: 420px;
        position: relative;
        top: 95px;
    }

    .container-box {
        width: 30%;
        text-align: center;
    }
    
    .box {
        position: relative;
        top: 35vw;
        left: 12vw;
        width: 70%;
        padding-top: 20%;

      }

      .box:after {
        position: relative;
        bottom: 10px;
      }

    .top-text {
        transform: translate(-50%, -40%);
    }

    /* news */
    .news-list{
        width: 100%;
    }

    .messages{
        height: 40px;
    }

    .messages p {
        width: 665px;
        font-size: 18px;
        line-height: 41px;
    }

    /* about */   
    .about-table th, td {
        width: 100%;
        display: block;
    }

    /* confirm.php */
    form {
        width: auto;
    }

    .conf-form {
        text-align: center;
    }

    .boxs {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    /* .box {
        width: 100%;
    } */

    /* .container {
        height: 520px;
    } */

    .footer-sp{
        display: block;
        margin-top: 15vh
        /* background-size: cover;
        background-position: center;
        position: relative; */
        /* margin-bottom: 75px; */
    }

    /* .footer_cart {
        position: relative;
        top: 102vw;
    } */

    .footer-sp img{
        width: 100%;
    }

    .footer-pc{
        display: none;
    }

    /* login.html */
    .login,
    .register {
        width: 100%;
    }

        .login-form,
        .regi-form {
            width: 90%;
            margin: 0 auto;
        }

    /* login.html */
    .login,
    .register {
        width: 100%;
    }

        .login-form,
        .regi-form {
            width: 90%;
            margin: 0 auto;
        }

    .button-icon {
        color: #fff;
        background: #e98419;
    }    
    /* shop */
    .itemlist ul li {
        width: 100%;
        /* margin: 10px 5%; */
    }

    .itemlist ul li:nth-child(3n-1) {
        margin: 10px 0%;
    }
    
    .item-form {
        position: relative;
        bottom: 13vw;
        float: right;
        text-align: right;
        width: 100%;
    }
    
    .item-form input {
        margin: 2px 10px 5px 0;
        height: 8vw;
        position: relative;
        left: 2px;
        bottom: 2px;
    }

    .Pagination ul{
        font-size: 22px;
    }
    
    .btn-red {
        position: relative;
        top: -2vw;
        /* bottom: 72px; */
        width: 50%;
        line-height: 10vw;

        }

    .sakujo {
    position: relative;
    bottom: 58px;
    width: 120px;
    }
    
    /* cart.html */
    .cart-table {
        width: 95%;
        margin: 0 auto;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table th,
    .cart-table td {
        border: none;
        padding: 0 10px;
        text-align: left;
        font-size: 18px;
    }
    
    .cart-table td form {
        text-align: right;
        width: 90%;
    }
    .cart-table tbody th {
        display: block;
        text-align: center;
    }
    
    .cart-table tbody td::before {
        content: attr(label);
        float: left;
        clear:both;
        font-weight:bold;
    }
    
    .cart-table tr {
        border: 1px solid #ebeced;
    }
    
    .cart-btn .btn{
        margin-top: 20px;
    }
    
    .total td{
        font-weight: bold;
        text-align: center;
        padding: 5px 0;
    }
    
    /* .btn-blue {
        line-height: 8vw;
    } */

    .searchform {
        width: 100%;
        height: 45px;
    }

    .search {
        margin-top: 10px;
    }

    #searchBtn {
        width: 50%;
        margin-top: 10px;
        line-height: 40px;
        font-size: 15px;
    }

    .pull-down {
        position: relative;
        right: 69vw;
        top: 7vw;
        font-size: 20px;
    }

    #count {
        font-size: 20px; 
    }

    /* pay */
    .sm-form {
        width: 20%;
    }
    
    .pay-form {
        padding: 0;
    }

    .border_area {
        padding: 5vw;

    }

    #payjp_checkout_box > input[type=button]:nth-child(1){
        width: 100%!important;
    }

    .btn {
        margin: 20px 0 5px 0;
    }
}