@charset "UTF-8";

.hervest-detail {
  display: flex;
  flex-wrap: wrap; /* アイテムが収まらない場合に折り返す */
  gap: 10px;      /* アイテム間の隙間（お好みで） */
  margin-top: 30px;
}

.item {
  /* 6列にするための計算: 100% / 6 = 16.666% */
  /* gapを使う場合は、calc()で計算を調整します */
  /*flex: 0 0 calc(100% / 3 - 10px);  10pxはgapの余白分 */
  
  /* 以下の設定は見た目調整用 */
  box-sizing: border-box;
  /*padding: 5px;*/
  text-align: center;
  width: calc((100% - 20px) / 3); 
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* popup_list */
.container{
  margin: 50px auto;
}
.popup_list{
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  max-width: 650px;
}
.popup_list li{
  width: 30.7%;
  margin-bottom: 40px;
}
.popup_list li a{
  display: block;
  width: 100%;
  height: 100%;
}
.popup_list li img{
  width: 100%;
  border-radius: 3px;
}

/* popup_content */
.popup_bg{
  position:fixed;
  top:0;
  bottom:0;
  left:0;
  right:0;
  width: 100%;
  height: 100vh;
  background: rgba(64,73,82,0.8);
  transition: 0.4s;
  z-index:10;
}
.popup_content{
  position: relative;
}
.popup_box{
  display: none;
  position: fixed;
  top:50%;
  left:50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 110;
  background: #fff;
  padding: 20px;
  width: 500px;
}
.popup_box .tit{
  text-align: center;
  margin:0 auto 20px;
}

.popup_box hr {
  border: none;
  border-top: 1px dotted #aa9c83;
}
.popup_box .tit span{
  display: inline-block;
  width: 127px;
  height: 27px;
  color:#fff;
  font-size: 14px;
  line-height: 27px;
  background: #404952;
  border-radius: 3px;
}
.popup_box img{
  width: 100%;
  border-radius: 3px;
  margin-bottom: 20px;
}
.popup_box p{
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}
/* popup_nav */
.popup_nav .prev{
  position:absolute;
  top:38%;
  left:20px;
  transform: translateY(-50%);
  width: 30px;
  height: auto;
  z-index:130;
}
.popup_nav .next{
  position:absolute;
  top:38%;
  right:20px;
  transform: translateY(-50%);
  width: 30px;
  height: auto;
}
.popup_nav .prev.disabled,
.popup_nav .next.disabled{
  display: none;
}
/*--close btn--*/
.popup_close{
  width: 30px;
  height: 30px;
  cursor: pointer;
  position:absolute;
  top:6px;
  right:20px;
  z-index:120;
}  
.popup_close span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 100%;
  width: 20px;
  height: 2px;
  background: #434c55;
  position: absolute;
  left: 50%;
  top: 50%;
}	
.popup_close span:nth-child(1) {
  transform: translate(-50%, 50%) rotate(45deg);
}	
.popup_close span:nth-child(2) {
  transform: translate(-50%, 50%) rotate(-45deg);
}	
@media screen and (max-width : 768px) {		
  .popup_close{
    top:-10px;
    right:-10px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
  }
  .popup_close span {
    width: 20px;
    height: 2px;
    left: 50%;
    top: 45%;
  }	
  .popup_close span:nth-child(1) {
    transform: translate(-50%, 50%) rotate(45deg);
  }	
  .popup_close span:nth-child(2) {
    transform: translate(-50%, 50%) rotate(-45deg);
  }	
}
@media screen and (max-width : 600px) {
  .popup_box{
    display: none;
    width: 94%;
    height: auto;
    margin: 0 auto;
    background: #fff;
    flex-direction: column;
    align-items: center;
  }
  .popup_nav .prev{
    left:25px;
    width:20px;
  }
  .popup_nav .next{
    right:25px;
    width: 20px;
  }
}
