/* Top page CSS */
@import url(/top/css/containers/banner.css);
@import url(/top/css/containers/brew-products.css);
@import url(/top/css/containers/online-store.css);
@import url(/top/css/containers/notification.css);
@import url(/top/css/containers/stories.css);
@import url(/top/css/containers/cart.css);
@import url(/top/css/containers/super-notice.css);
@import url(/top/css/modal-popup.css);

html {
  --max-width-PC: 1184px;
  --padding-inline: 5.25rem;
  --padding-inline-SP: 16px;
}

.top-wrapper {
  width: 100%;
  margin-inline: auto;
  overflow-x: hidden;

  /* max-width: 1440px; */
}

.top-wrapper .carousel-wrap .arrow-button {
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.239), 0 8px 12px rgba(0, 0, 0, 0.141);
}

.container {
  width: 100%;
  max-width: calc(var(--max-width-PC) + 2 * var(--padding-inline));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--padding-inline-SP);
  padding-right: var(--padding-inline-SP);
}

.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;
}

@media (min-width: 640px) {
  .line-gray.h13-sp {
    height: 8px;
  }
  .container {
    padding-left: var(--padding-inline);
    padding-right: var(--padding-inline);
  }
}

.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;
	overflow-y: scroll;
	z-index: 999;
	max-height: 507px;
	min-height: 507px;
}
.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;
}
.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 .float-cart__heading__title {
	opacity: 1;
}
.float-cart .product-name {
	font-size: 1.3rem;
}
.float-cart .product__detail {
	flex: 1;
	margin-left: 16px;
	line-height: 1.8;
}
.float-cart .product-type, .float-cart .product-quantity {
	font-size: 1.1rem;
}
.float-cart .product-quantity .num {
	margin-left: 2em;
}
.float-cart .float-cart__list {
	padding: 0 16px;
}
.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;
	}
}

/* モーダル内ボタン表示する */
.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;
}

@media screen and (max-width: 1023.9px){
.button--primary-S-floating {
    right: 16px;
    bottom: 16px;
}
}

.product__name{
	font-size: 1.3rem;
}