@charset "utf-8";

body{
  font-family: 'Noto Sans JP' !important;
}

.product__detail p , .float-cart__heading__title {
    margin: 0;
}
  
.line-gray {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.1);
}
  
.line-gray.h13-sp {
    height: 13px;
}

.text-link-wrapper {
  display: flex;
  width: max-content;
  margin-left: auto;
}

.text-link-green {
  color: #00754a;
  font-size: 1.3rem;
  line-height: 2.4rem;
  align-items: center;
}

.text-link-green:hover {
  opacity: 0.85;
}

.ex-link:hover {
  opacity: 0.85;
}

.gray-background {
    display: none;
}

.gray-background.show {
    display: block;
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #000;
    opacity: 0.7;
    top: 0;
    left: 0;
    z-index: 998;
}

.float-cart {
    position: fixed;
    width: 100%;
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
    min-height: 507px;
    background: #fff;
    transition: transform .3s;
    transform: translateY(100%);
    bottom: 0;
    right: 0;
    z-index: 999;
    max-height: 507px;
    min-height: 507px;
    display: flex;
    flex-direction: column;
}
.float-cart.show {
    transform: translateY(0);
}
.float-cart .close-button {
    position: absolute;
    top: 16px;
    right: 16px;
}
.float-cart__heading {
    position: sticky;
    background: #F9F9F9;
    padding: 24px 16px;
    top: 0;
    z-index: 1;
}
.float-cart__heading__title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000;
    opacity: 0.3;
    margin-bottom: 30px;
    opacity: 1;
}
.float-cart .product__image {
    width: 64px;
    border-radius: 12px;
    overflow: hidden;
}
.float-cart .product__image img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
}

.float-cart .product-name {
    font-size: 1.3rem;
    color: rgba(0, 0, 0, 0.87);
}
.float-cart .product__detail {
    flex: 1;
    margin-left: 16px;
    line-height: 1.8;
}
.product__name{
    font-size: 1.3rem;
    color: rgba(0, 0, 0, 0.87);
}
.float-cart .product-type, .float-cart .product-quantity {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.87);
}
.float-cart .product-quantity .num {
    margin-left: 2em;
}
.float-cart .float-cart__list {
    padding: 0 16px;
    overflow-y: auto;
}
.float-cart .float-cart__list .float-cart__list__item {
    align-items: center;
    padding: 10px 0;
}
.float-cart .float-cart__list .float-cart__list__item:first-of-type {
    padding-top: 24px;
}
.float-cart + .button.button--primary-S-floating {
    position: fixed;
    right: 16px;
    bottom: 16px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s;
    z-index: 999;
}
.float-cart.show + .button.button--primary-S-floating {
    pointer-events: all;
    opacity: 1;
}
.cart-hidden {
    opacity: 0;
    transition: all 0.3s;
}
@media screen and (min-width:1024px) {
    .float-cart {
        width: 752px;
        height: 100vh;
        max-height: 100vh;
        top: 0;
        bottom: auto;
        transform: translateX(100%);
        scrollbar-width: none;
    }
    .float-cart::-webkit-scrollbar {
        display: none;
    }
    .float-cart.show {
        transform: translateX(0);
    }
    .float-cart .close-button {
        top: 24px;
        right: 24px;
    }
    .float-cart__heading {
        padding: 84px max(64px, calc(100% - (64px + 560px))) 40px 64px;
    }
     .float-cart .product__image {
        width: 96px;
    }
     .float-cart .float-cart__heading__product .product__image {
        width: 152px;
    }
     .float-cart .product-name {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
     .float-cart .product-type {
        margin-bottom: 20px;
    }
     .float-cart .float-cart__list {
        height: calc(100% - (330px + 84px + 40px));
        padding: 0 max(64px, calc(100% - (64px + 560px))) 0 64px;
        overflow-y: scroll;
        margin-top: 40px;
        scrollbar-width: none;
    }
     .float-cart .float-cart__list .float-cart__list__item {
        align-items: flex-start;
        padding: 12px 0;
    }
     .float-cart .float-cart__list .float-cart__list__item:first-of-type {
        padding-top: 0;
    }
     .float-cart .float-cart__list::-webkit-scrollbar {
        display: none;
    }
     .float-cart + .button.button--primary-S-floating {
        right: max(64px, calc(752px - (64px + 560px)));
        bottom: 84px;
    }
    .product__name{
        font-size: 1.5rem;
    }
}

/* モーダル内ボタン表示する */
.close-button::before {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 50%;
  opacity: 0;
  top: 0;
  left: 0;
  transform: scale(0.4);
  transition: all ease-out 0.2s;
}

.close-button{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
}

/* ボタンのデザイン */
.button--primary-S-floating{
  background: #00A862;
  box-shadow: 0 0 6px rgb(0 0 0 / 24%), 0 8px 12px rgb(0 0 0 / 14%);
  position: absolute;
  right: max(64px, calc(752px - (64px + 560px)));
  bottom: 84px;
}

.cart-button{
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    border-radius: 50px;
    padding: 16px 24px;
    transition: all 0.2s ease;
}

@media screen and (max-width: 1023px){
.button--primary-S-floating {
    right: 16px;
    bottom: 16px;
}
}

/* button */
[class*='button--primary'] {
  color: #fff;
}

[class*='button--primary']:disabled {
  background: #ccc;
  pointer-events: none;
}

[class*='button--secondary']:disabled {
  color: #ccc;
  border: solid 1px #ccc;
  pointer-events: none;
}

/* flex */
.flex {
  display: flex !important;
}

  