/*
Theme Name: ja-toyamashi Child
Theme URI: 
Template: ja-toyamashi
Description: 
Author: 
Tags: 
Version: 0.6.0
*/

.tab-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  padding-bottom: 1em;
}

.tab-2 > label {
  flex: 1 1;
  order: -1;
  opacity: 0.5;
  min-width: 70px;
  padding: 0.6em 1em;
  border-radius: 5px 5px 0 0;
  background-color: #00a75b;
  color: #fff;
  text-align: center;
  cursor: pointer;
}

.tab-2 > label:hover {
  opacity: 0.8;
}

.tab-2 input {
  display: none;
}

.tab-2 > div {
  padding: 1em;
  background-color: #fff;

  /* 初期状態: 非表示 */
  max-height: 0;
  opacity: 0;
  padding: 0 1em;

  overflow: hidden;
  width: 100%;
  background-color: #fff;

  transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.25s ease-in, padding 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  margin-top: 0;
  margin-bottom: 0;
}

.tab-2 label:has(:checked) {
  opacity: 1;
}

.tab-2 label:has(:checked) + div {
  /* コンテンツ表示時のスタイル */
  min-height: 160px; /* 💡 修正点: 実際の内容よりも十分大きな高さを設定 */
  opacity: 1;
  padding: 1em 0;
}

@media screen and (max-width: 767px) {
  .tab-2 label:has(:checked) + div {
    min-height: 350px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .tab-2 label:has(:checked) + div {
    min-height: 200px;
  }
}

.ebn-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font-size: 16px;
  text-align: center;
}

.ebn-list li {
  margin: 0.5em 1em;
}

@media screen and (max-width: 767px) {
  .ebn-list li {
    margin: 0.25em;
  }
}

.ebn-list li a {
  border-bottom: 1px dotted #000;
}

@media screen and (max-width: 767px) {
  .ebn-list li a {
    display: block;
  }
}

/*product-discription*/

/**/

/*ボタンアニメーション*/
.btn-flow {
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #fff; /* 非ホバー時のテキスト色 */
  background-color: #fff;
  position: relative; /* ::before の基準 */
  transition: color 0.5s ease; /* テキスト色のトランジション */
  margin: 0;
  padding: 0;
  border-radius: 16px;
}

.btn-flow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 0;
  height: 100%;
  border-radius: 16px;
  background: #00a75b;
  transition: width 0.5s ease;
  transition-property: width;
  z-index: 1;
  clip-path: inset(0 round 16px);
}

.btn-flow .text {
  position: relative;
  z-index: 2;
  display: block;
}

/**/
/*営農情報CSS*/
.pil ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.pil ul li {
  margin-right: 1em;
  padding: 0.5em 1em;
  border-bottom: 1px solid #00a75b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-content .wrap .inner > div {
  padding-top: 30px;
}

.eia .a > li {
  margin: 0;
}

.eia .a .b.spk > li {
  display: grid;
  grid-template-columns: 2fr 4fr;
  gap: 3em;
  margin: 0;
  margin-bottom: 1em;
}

.eia .a .b > li P {
  font-size: 14px;
}

/* .eia .a.ebn > li > ul.b, */
.eia .a.tpb > li > ul.b {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-size: 14px;
  padding-left: 1em;
}

.tokusan-prods .pds-lbl > figure {
  /* width: 50%;

  overflow: hidden; */
}

.tokusan-prods .pds-lbl > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .tokusan-prods .pds-lbl > figure img {
    object-fit: contain;
  }
}
