@charset "utf-8";

header {
    width: 100%;
    z-index: 999;
    top: 0;
    left: 0;
}



.custom-nav {
    width: 100%;
    position: relative; /* 初期状態では通常配置 */
    background-color: white;
    z-index: 800;
    padding: 10px;
    /* transition: all 0.3s ease-in-out; */
}

.custom-nav.fixed {
    position: fixed;
    top: 50px; /* `menu` の高さ - 10px で少し重ねる */
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 800; 
    padding: 10px 26px;
}

.selectbox-ttl {
    font-size: 2rem;
    margin: 1rem 0;
    text-align: center;
    font-weight: bold;
    color: #5F4C2D;
}

.cont-top-btn {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 38px;
    margin-bottom: -80px;
    z-index: 10;
    align-items: center;
}

.nav-container {
  position: sticky;
  top: 0;
  z-index: 100;
}

.select-ttl {
    font-size: 24px;
}



.num-pack {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    text-align: center;
    padding-bottom: 2rem;
}


.select-num select{
    appearance: none;
    width: 100px;
    height: 56px;
    padding: 10px 30px;
    border: 3px solid #C6BFBF;
    border-radius: 5px;
    background-color: #fff;
    color: #373737;
    font-size: 24px;
    cursor: pointer;
}

.select-box, .treasure {
    padding-top: 80px; /* nav-containerが重ならないように調整 */
}

#custom-checkbox.visible {
    display: inline-block;
}


/* チェックボックスをデフォルトで非表示 */
.check input[type="checkbox"],.lower_cont-wrap input[type="checkbox"] {
    display: none;
}

/* トグルON時にチェックボックスを表示 */

.toggle-button-1 input:checked ~ .container-pack .check input[type="checkbox"],
.toggle-button-1 input:checked ~ .container-pack .num-pack #purchaseButto{
    display: block;
}


.check label {
    position: absolute;
    right: 1rem;
    top:1rem;
    z-index: 50;
}

input[type="checkbox"] {
    -webkit-appearance: none; /* デフォルトの見た目をなくす */
    appearance: none;
    width: 37px;
    height: 37px;
    border: 3px solid #C6BFBF;
    border-radius: 1px;
    background-color: white;
    cursor: pointer;
    position: relative;
    margin-bottom: 1rem;
}

input[type="checkbox"]:checked {
    background-color: #312C1E;
     position: relative;
}

input[type="checkbox"]:checked::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('../img/check.png'); /* 画像のパスを確認 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}




#tabcontrol {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    height: 74px;
    max-width: 469px;
    width: 100%;
    align-items: center;
    white-space: nowrap;
}


.tab_item {
    width: 100%;
    display: flex;
    justify-content: center;
    transition: all 0.2s ease;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.tab_item div {
    display: flex;
    align-items: center;
}

.tab_item span {
    font-size: 24px;
}

.tab_item div img {
    height: 25px;
    width: auto;
    margin: 0;
    object-fit: contain
}


input[type="radio"] {
    display: none; /* ラジオボタンを非表示に */
  }
  
  /* 積み荷パックが選択されたとき */
  input#pack:checked + .tab_item  {
    color: #333;
    border-bottom: 6px solid;
    border-image: linear-gradient(to right, #520000, #E60012) 1;
  }
  
  /* 宝玉が選択されたとき */
  input#treasure:checked + .tab_item {
    color: #333;
    border-bottom: 6px solid;
    border-image: linear-gradient(to right, #520000, #E60012) 1;
  }
  
  /* 宝玉タブが選択されていないときのデザイン */
  input#treasure:not(:checked) + .tab_item {
    border-bottom: 6px solid  #EEEEEE;
  }

  input#treasure:not(:checked) + .tab_item span{
    color: #999; /* 文字の色 */
  }
  
  /* 積み荷パックタブが選択されていないときのデザイン */
  input#pack:not(:checked) + .tab_item {
    border-bottom: 6px solid  #EEEEEE;
 }

 input#pack:not(:checked) + .tab_item span{
    color: #999; /* 文字の色 */
 }




 

.toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-button-1 {
    display: inline-block;
    position: relative;
    width: 73px;
    height: 35px;
    border-radius: 35px;
    background-color: #d9d9d9;
    cursor: pointer;
    transition: background-color .4s;   
    box-sizing: content-box;
}

.toggle-button-1:has(:checked) {
    background-color: #940002;
}

.toggle-button-1::after {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgb(0 0 0 / 20%);
    background-color: #fff;
    content: '';
    transition: left .4s;
    top: 50%;
    left: 3.5px;
    transform: translateY(-50%);
}

.toggle-button-1:has(:checked)::after {
    left: 40px;
}

.toggle-button-1 input {
    display: none;
}



.select-box {
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: sticky;
 }


.selectbox-3 {
    display: inline-flex;
    align-items: center;
    position: relative;
}


.selectbox-3 select {
     appearance: none;
    min-width: 230px;
    height: 42px;
    padding: 2px 23px;
    border: 3px solid #C6BFBF;
    border-radius: 5px;
    background-color: #fff;
    color: #373737;
    font-size: 24px;
    cursor: pointer;
}

.dropdown-icon {
    position: absolute;
    right: 10px;  /* ボタン内の右端にアイコンを配置 */
    top: 50%;
    transform: translateY(-50%);  /* アイコンを縦中央に配置 */
    pointer-events: none;  /* アイコンがクリックされないように */
  }


#pack-best,#pack-special,#pack-lg,#pack-new-user,#pack-alliance {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4% 4%;
    row-gap: 4%;
}

.pack_container img ,.pack_container img a{
    width: 100%;
    height: auto;
}

  
.contpack-list {
    display: grid;
    gap: 4rem;
    width: 100%;
    margin-bottom: 4rem;
}
  
.contpack-list li {
    width: 100%;
    border-radius: 2px;
    box-shadow: 1px 4px 6px 0px rgba(0, 0, 0, 0.40);
    background: #fff;
    transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}
  
.contpack-list li a {
    /* padding: 1rem; */
    position: relative;
}





#purchaseButton {
    cursor: pointer;
    display: none;
    margin: 0 auto;
}

.btn-bulkbuy button{
    color: #fff;
    background: #000;
    width: 100%;
    height: 48px;
    max-width: 600px;
    font-size: 1.0rem;
    font-weight: bold;
    border-radius: 3px;
}

.btn-bulkbuy ::before {
    content: "";
    position: absolute;
    background: url(../img/img_login.png);
    background-size: cover;
    width: 16px;
    height: 38px;
    left: 4px;
    top: 5px;
}

.btn-bulkbuy ::after {
    content: "";
    position: absolute;
    background: url(../img/img_login.png);
    background-size: cover;
    width: 16px;
    height: 38px;
    right: 4px;
    top: 5px;
    transform: scale(-1.0);
}

.btn-bulkbuy {
    overflow: visible;
    text-align: center;
}



.cont-banner {
    margin-top: 8rem;
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #F2F0EC;
    background-image: url(../img/banner-tx.png);
    background-repeat:repeat;
    margin-left: calc(((100vw - 100%) / 2) * -1);
    margin-right: calc(((100vw - 100%) / 2) * -1);  
    display: flex;
    justify-content: center; /* .banner-listを中央に配置 */
}


.pickup {
    position: absolute;
    top: -35px;
    left: -35px;
    z-index: 99;
}

.new {
    position: absolute;
    top:-35px;
    right: 0px;
    z-index: 3;
}

.cont-pack {
    margin-top: 40px;
}



.pack_container_wrap {
    height: 100%;
    width: 100%;
    background: #F2F0EC;
    padding: 1rem 0;
    display: flex;
    align-items: center;
}
  
.pack_container {
    max-width: 146px;
    height: auto;
    margin: 0 auto;
}



.pack-img {
    /*background-color: #DDD5C3;*/
    border-radius: 3px;
 }

 .pack-line {
    position: absolute;
    bottom: 0;

    width: 100%;
 }

 .pack-line img {
    width: 130%;
    left: 50%;
    transform: translateX(-50%);
 }

.item {
    display: flex;
    justify-content: center;
    column-gap: 4%;
    margin-top: 4px;
    align-items: end;
}

.item div {
    text-align: center;
}

.item div img {
    max-height: 70px;
    width: auto;
    object-fit: cover;
}

.item-num{
    background-color: #fff;
    padding: 2px 8px;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 2px;
}

.txt-bold {
    font-weight: bold;
    text-shadow:1px 1px 0 #FFF, -1px -1px 0 #FFF,
              -1px 1px 0 #FFF, 1px -1px 0 #FFF,
              0px 1px 0 #FFF,  0-1px 0 #FFF,
              -1px 0 0 #FFF, 1px 0 0 #FFF;
}

.deadline {
    max-width: 9rem;
    text-align: center;
    color: #fff;
    font-weight: bold;
    background-color: #F57A09;
    padding: 0 20px;
    border-radius: 30px;
}

.remainin {
    display: flex;
    margin: 8px 0;
}

.numttl {
    color: #666;
    border-left: 6px solid #333;
    padding: 0 12px;
}

.num-purchases {
    font-weight: bold;
    color: #666;
    margin-left: 1rem;
}

.banner-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 左揃え */
    justify-content: center;
    max-width: 1280px;
    padding: 0 5rem;
    margin: 0 auto;
    width: min(100%, 1280px); /* 画面が小さくなったら縮小 */
}

.banner-top, .banner-bottom {
    display: flex;
    gap: 3rem;
    justify-content: flex-start; /* 左揃えを維持 */
    width: 100%;
    flex-wrap: nowrap;
}

.banner {
    flex: 1;
    max-width: 368px;
    height: auto;
    min-width: 0;
}

.banner-top {
    align-items: flex-end;
    margin-bottom: 3rem;
}

/* 画面幅が狭くなった時にバナーも縮小 */
@media (max-width: 1280px) {

    .banner-list {
        width: 100%; /* 画面幅に合わせる */
        padding: 0 2rem; /* 余白を調整 */
    }

    .banner {
        max-width: calc(100vw / 3.2 - 2rem); /* バナーを縮小 */
    }


}



@media (max-width: 850px) {
    .toggle {
        display: inline-block;
        text-align: center;
    }

}

@media (max-width: 768px) {

    .num-pack {
        text-align: end;
    }

    #pack-best, #pack-special, #pack-lg, #pack-new-user, #pack-alliance {
        display: block;
    }

    .container-pack {
        width: 100%;
        margin-bottom: 42px;
     }

    .contpack-list {
        grid-template-columns: auto;
        gap: 0;
    }
    
    .contpack-list li a {
        position: relative;
        display: grid;
        grid-template-columns: 0.94fr 2fr;
    }

    .pickup {
        top: -16px;
        left: -8px;
    }

    .pickup img {
        width: 50%;
    }

    .pack-line img{
        width: 120%;
     }

    .new img {
        width: 80%;
    }
    
    .new {
        top:-32px;
        right: -16px;
    }

    .deadline {
        max-width: 18rem;
    }

    .item {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); /* 最低2列を維持 */
        gap: 1rem; /* アイテム間の余白 */
        justify-items: center; /* アイテムを中央揃え */
    }

    .item div img {
        width: 50%;
    }


    .selectbox-3 select {
        max-width: 100%;
        font-size: 2rem;
    }

    .tab_item {
        height: 48px;
        gap: 4px;
    }

    #tabcontrol::before {
        padding: 3px;
        top: 3px;
        bottom: 3px;
    }

    .tab_item span {
        font-size: 2rem;
    }

    .toggle p {
        font-size: 2rem;
        text-wrap: nowrap;
        margin-bottom: 4px;
    }

    .cont-top-btn {
        gap: 20px;
    }

    .pack-cont {
        margin-bottom: 2rem;
    }

    .btn-bulkbuy button {
        font-size: 2rem;
     }

    .banner-list {
        width: 100%;
        padding: 0 2rem;
    }

    .banner {
        max-width: 100%;
    }

    .banner-top {
        align-items: center;
    }

    .banner-top, .banner-bottom {
        gap: 2rem;
        flex-flow: column;
    }

    /* トグルON時にチェックボックスを表示 */
    .toggle-button-1 input:checked ~ .container-pack .lower_cont-wrap input[type="checkbox"]{
    display: block;
    }

    .SPcheck{
        text-align: right;
        z-index: 1;
        position: relative;
    }

    .selectbox-ttl{
        font-size: 3rem;
    }

}

  @media (max-width: 640px) {

    .pack-line img{
        width: 100%;
     }

    .select-num select {
        font-size: 2rem;
        height: 5rem;
        padding: 5px 30px;
    }

    .select-ttl {
        font-size: 2rem;
    }

    input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }

    .pack-list li {
        padding: 10px 10px 20px;
    }

    .contpack-list {
        margin-bottom: 6rem;
    }
    
  }

  @media (max-width: 500px) {
    .item div {
        font-size: 2rem;
    }
    
    .select-box {
        display: block;
        text-align: center;
        margin-bottom: 2rem;
    }

    .selectbox-ttl {
        margin: 0.5rem 0;
    }
  }

  @media (max-width: 400px) {
    
  }
