/* CSS Document */

.item-detail{
	display: none;
}

.modaal-close:after, .modaal-close:before {
	border-radius: 0!important;
	background: #fff;
}

.modaal-container{
    max-width: 1000px;
	border-radius: 2px;
}

.modaal-inner-wrapper {
	background: rgba(0, 0, 0, 0.05);
}

.modaal-close:after, 
.modaal-close:before{
	background:#fff;	
}

.modaal-close:focus:after,
.modaal-close:focus:before,
.modaal-close:hover:after,
.modaal-close:hover:before{
	background: #333;
}

.modal-box{
	display: grid;
	grid-template-columns: repeat(3, 1fr); 
	max-width: 1200px;
	width: 100%;
	margin: 20px auto; 
	gap: 20px;
}

.modal-box li{
	display:block;
	width:100%;
}

.modal-box li:hover .item-title p,
.modal-box li:hover .item-title span{
	text-decoration: underline;
}

.item-img{
	display: block;
	overflow: hidden;
	width: 100%;
}



.modal-box-title a:hover .item-img img{
	transform: scale(1.05,1.05);
}


.item-title{
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 10px 0;
}

.item-name span,
.title-box h4 span{
	display: inline-block;
}



.item-name{
	font-size: 1rem;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.5;
    letter-spacing: 0;
	color: #776f46;
}

.item-title .price{
	margin-top: 5px;
	font-size: 0.85rem;
	line-height: 1.5;	
}

.modal-box-title a{
	text-decoration: none;
}


/* 商品detail */


.product-detail-wrap{
	display: flex;
	flex-direction: row;
	gap:30px;
	margin-bottom: 30px;
}

.shop-message{
	width: 100%;
	padding-top: 10px;
}


.product-detail{
	width: 100%;
}

.product-detail {
    margin: 0 auto;
    padding: 10px 20px;
    background: #f1f1f1;
    flex-direction: column;
    display: flex;
    gap: 5px;
}

.product-detail-wrap h5 {
    font-size: 1.25rem;
    color: #666666;
	border-bottom: 1px solid #b9b9b9;
    line-height: 1.8;
}

.product-detail h5{
	font-size: 0.85rem;
}

.product-detail ul {
    flex-direction: column;
    display: flex;
    gap: 10px;
	margin-bottom: 10px;
}

.product-detail ul li{
	font-size: 0.85rem;
}

.main-area-text p span {
    display: inline-block;
}

.modaal-content-container{
	position: relative;
	padding: 0 30px;
}

.modaal-content-container .title-box{
	padding: 8px 0;
	color: #333;
}

.modaal-content-container h4{
	font-size: 2rem;
	font-family: "Noto Sans JP", sans-serif;
}

.modaal-content-container ul dl{
	display: flex;
	flex-direction: row;	
}


.product-detail ul dl{
	display: flex;
	flex-direction: column;
}


.purchase-button{
    position: sticky;
    bottom: 0;
    left: 0;
    width: calc(100% + 60px);
    transform: translateX(-29px);
    text-align: center;
}

.purchase-button a{
    width: 100%;
    display: block;
    height: 100%;
    padding: 10px 0;
    font-size: 1.25rem;
    box-shadow: 0 -2px 5px #ababab;
	background: #b8963c;
    color: #fff;
	transition: 0.3s ease-in-out;
}

.purchase-button a span{
	position: relative;
}

.purchase-button a span::before{
	position: absolute;
	content: '';
    display: block;
    width: 8px;
    aspect-ratio: 1 / 1;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
	opacity: 0;
	right: -13px;
	top:11px;
}

.purchase-button a:hover{
	background: #b2773a;
}

.purchase-button a:hover span::before{
	opacity: 1;
	animation: arrow 1s ease infinite;
 }
  
@keyframes arrow {
	50% {
	  right: -20px;
	}
	100% {
	  right: -13px;
	}
}

/* 商品detail ///*/


/* 画像width/height調整*/

.mainImg, .item-img, .subImg li {
	width: 100%;
	position: relative;
	overflow: hidden;
/*	aspect-ratio: 387/259;*/
	border: 1px solid #b9b9b9;
	aspect-ratio: 1477/1108;
}

.mainImg img, .item-img img, .subImg li img {
	width: 100%;
	height: 100%!important;
	object-fit: contain;
	position: absolute;
	top: 0;
	left: 0;
	
}

/* サムネイルリスト特有のスタイル */
.subImg {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.subImg li {
/*  width: calc(33.33% - 0px); */
  cursor: pointer;
}

.subImg li.current {
  border: 2px solid #eee; /* 現在選択されている画像の表示 */
}
/* 画像width/height調整///*/


.modaal-wrapper .modaal-close {
	background: #000;
}



@media(max-width: 1300px){
	
	.item-name {
		font-size: 1rem;
	}
	
}


@media(max-width:800px){
	.modal-box {
    	grid-template-columns: repeat(2, 1fr);
	}
}


@media(max-width:600px){
	
	.modaal-close {
    	right: 5px;
		top: 5px;
	}
	
	.modaal-inner-wrapper {
		padding: 90px 10px;
	}
	
    .item-name {
        font-size: 0.9rem;
		line-height: 1.35;
	}

	.item-title .price {
    	font-size: 0.75rem;
	}
	
	.product-detail {
    	padding: 10px;
	}

	.purchase-button {
	    width: calc(100% + 40px);
	    transform: translateX(-20px);
	}
	
	.item-title {
		padding: 5px 0;
	}
	
}