/* タブレット用 */
@media screen and (max-width: 1024px) {
    /* 共通CSS */
    .wrapper {
        width: 100%;
    }
}

@media screen and (max-width: 1026px) {
	.itemlist ul li {
	    display: block;
	    width: 47%;
	    margin: 10px 10px;
	}

}

/*2025-03-24*/
@media screen and (max-width: 860px) {
    #logo {
      /*width: 120px;*/
        width: 40px;
    }
    .header-logo a{
        float:left;
      /*line-height: 60px;*/
        line-height: 62px;
        padding-right: 15px;
        font-size: 20px;
    }
}

/* 2025-03-24 iPad */
@media screen and (max-width: 770px) {
    #logo {
      /*width: 120px;*/
        width: 40px;
    }
    .header-logo a{
        float:left;
      /*line-height: 60px;*/
        line-height: 62px;
        padding-right: 15px;
        font-size: 16px;
    }

    .menu_boxs {
        display: flex;
        flex-wrap:wrap;
    }

    .menu_box {
        display: inline-block;
        width: calc(100%/2 - 20px);
        height: 140px;
        margin: 5px 5px;
    }

	.itemlist ul li {
	    display: block;
	    width: 44%;
	    margin: 10px 10px;
	}

	/*2025-04-04*/
	/* index.php */
	.mem-item-a {
	   float: none;
	   padding: 0px 14px;
	   text-align: left;
	   width:calc((100% - 12px));
	   margin:10px auto;
	}
	.mem-item-b {
	   float: none;
	   padding: 0px 14px;
	   text-align: center;
	   width:calc((100% - 12px));
	   margin:10px auto;
	}


}


/* スマホ用 */
@media screen and (max-width: 660px) {
    /* 共通CSS */
    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 25px;
    }

    h4 {
        font-size: 14px;
    }

    a, p, th, td {
        font-size: 13px;
    }

    .wrapper {
        /*2025-03-24*/
        /*width: 90%;*/
    }

    /* header */
    /* PC用メニューを非表示 */
    .pc-menu {
        display: none;
    }

    /* スマホ用メニュー表示 */
    .sp-menu {
        margin: 0 auto;
        width: 90%;
        position: absolute;
        top: 60px;
        width: 100%;
        background: rgba(76, 88, 111, .8);
        left: 0;
    }

    .sp-menu ul li{
        margin: 0 auto;
        text-align: center;
    }

    /* メニューボタン */
    .toggle,
    .cart {
        display: block;
        width: 35px;
        height: 30px;
        position: relative;
        top: 18px;
        z-index: 2;
        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;
    }

    /* top-img */
    .top-img {
        height: 350px;
    }

    .top-text {
        transform: translate(-50%, -40%);
    }

    /* news */
    .news-list{
        width: 100%;
    }

    /* about */   
    .about-table th, td {
        /*2025-03-24*/
        /*width: 100%;*/
        display: block;
    }

    /* confirm.php */
    form {
        width: auto;
    }

    /* breadcrumb */
    .breadcrumbs li,
    .breadcrumbs li a {
        font-size: 10px;
    }
    .breadcrumbs ul li::before {
        padding: 0 5px 0 0;
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f105";
        font-size: 10px;
        color: #3e3e3b;
    }

     /* sns */
    .sns {
        width: 80%;
    }

    /* login.html */
    .login,
    .register {
        width: 100%;
    }

        .login-form,
        .regi-form {
            width: 90%;
            margin: 0 auto;
        }

    /* shop */
	.itemlist ul {
	    display: block;
	}
    .itemlist ul li {
        width: 80%;
        margin: 10px auto;
    }

    .item-form {
        float: inherit;
        text-align: right;
    }

    .item-form input {
        margin-bottom: 5px;
    }
    /* cart.html */
    .cart-table {
        width: 100%;
        margin: 0 auto;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table th,
    .cart-table td {
        border: none;
        padding: 5px 10px;
        text-align: left;
        /*2025-03-24*/
        white-space:normal;
    }

    .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;
    }
    /* pay */
    .sm-form {
        width: 20%;
    }

    /* calendar.php */
    .calendar-table th,
    .calendar-table td{
        display: table-cell;
        padding: 5px;
    }

    .day {
        height: 50px;
    }

    /*2025-03-24*/
    .mem-item-a,
    .mem-item-b {
        float:none;
        width:auto;
    }
    .mem-items-a {
        margin:0px;
        padding:0px;
    }
    .mem-items-a .page-title {
        padding:0 10px;
    }
    .pay-form {
        width:auto;
        padding:20px 10px;
    }

}

@media screen and (max-width: 660px) {
  span.quantity_badge {
    top: -38px;
    left: -8px;
  }
}

@media screen and (max-width: 480px) {
  span.cart-icon {
    font-size: 20px;
    top: 16px;
	left: 10px;
    position: relative;
  }
  span.quantity_badge {
    position: relative;
    top: -38px;
    left: 12px;
    padding: 2px 6px;
    border-radius: 11px;
    color: #fff;
    text-decoration: none !important;
    font-size: 10px !important;
  }

}

@media screen and (max-width: 320px){
  span.cart-icon {
    left: 4px;
  }
  span.quantity_badge {
    left: 14px;
    padding: 2px 6px;
  }
}


/* print */
@media print {
	header {
	   position: static;
	}
	.breadcrumbs{
	   padding-top: 0px;
	}
	.wrapper{
	   padding: 0px;
	}
	.wrapper-title{
	   margin-top: 20px !important;
	   margin-bottom: 0px !important;
	}
	.wrapper-title:last-of-type{
	   margin-top: 0px !important;
	}
	.thanks {
	   margin-top: 0px !important;
	}
	.last-wrapper {
	   margin-bottom: 0px !important;
	}
	.mem-item-a {
	   float: none;
	   padding: 0px 14px;
	   text-align: left;
	   width:calc((100% - 12px));
	   margin:10px auto;
	}
	.mem-item-b {
	   display:none;
	}
	textarea {
	   height:60px !important;
	}

}
