.block-result-num{
  margin-bottom: 35px;
}

.teiren .header-next{
  background: url("/buy/img/hero-teiren.jpg") center no-repeat;
  background-size: cover;
  color: #fff;
}

.teiren-explain{
  position: relative;
}

.teiren-explain .explain-img{
  width: 180px;
  margin-top: auto;
  position: absolute;
  left: 0;
  bottom: 0;
}
.teiren-explain .explain-content{
  max-width: 910px;
  width: 100%;
  padding: 25px 45px;
  border-radius: 24px;
  background-color: #F0F0E1;
  margin-left: auto;
}
.teiren-explain .explain-head{
  display: block;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}
.teiren-explain .explain-main{
  display: block;
  font-size: 16px;
  line-height: 1.7;
}
.teiren-result{
  font-weight: bold;
  display: inline-block;
  font-size: 34px;
  margin-right: 1em;
  width: fit-content;
}

.teiren_tab-nav{
  border-bottom: 8px solid #CECE9D;
  margin-top: 30px;
  margin-bottom: 40px;
}
.teiren_tab-container{
  display: flex;
  gap: 10px;
}
.teiren-tab{
  cursor: pointer;
  width: 350px;
  height: 70px;
  background: linear-gradient(0deg,rgba(222, 222, 202, 1) 0%, rgba(233, 233, 212, 1) 20%, rgba(234, 234, 213, 1) 100%);
  border-radius: 2px 2px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}
.teiren-tab.is-active{
  background:#CECE9D;
}
.teiren-list{
  display: none;
}
.teiren-list.is-active{
  display: block;
}


@media only screen and (max-width: 740px) {
  .teiren-result{
    font-size: 24px;
  }
  .teiren_tab-nav{  
    width: 100vw;
    margin-left: -10px;
    padding: 0 10px;
    
  }
  .teiren-tab{
    font-size: 18px;
    width: 120px;
    height: 50px;

  }
  .teiren_tab-nav{
  margin-top: 20px;
  margin-bottom: 25px;
}
.block-result-num{
  margin-bottom: 15px;
}
  .teiren-explain{
    margin-top: 50px;
  }
.teiren-explain .explain-img{
  width: 113px;
  margin-top: auto;
  position: absolute;
  left: -10px;
  bottom: unset;
  top: -40px;
}
.teiren-explain .explain-content{
  max-width: 100%;
  width: 100%;
  padding: 25px;
  border-radius: 24px;
  background-color: #F0F0E1;
  margin-left: auto;
}
.teiren-explain .explain-head{
  display: block;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  }
.teiren-explain .explain-main{
  display: block;
  font-size: 14px;
  line-height: 1.5;
}
/* スマホ時のみ制限をかける場合（必要に応じてメディアクエリで囲ってください） */
.explain-main-container {
  position: relative;
  overflow: hidden;
  line-height: 1.6; /* 行間 */
  max-height: 7.3em;
  transition: max-height 0.5s ease-in;
}

/* 閉じている時のボヤけ演出 */
.explain-main-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2em; /* ボヤける範囲 */
  background: linear-gradient(to bottom, rgba(240,240,225,0), rgba(240,240,225,1));
  transition: opacity 0.5s ease;
    
}

/* 開いている時（is-open）のスタイル */
.explain-main-container.is-open {
  max-height: 1000px; /* 十分な高さ */
  transition: 0.5s ease-in;
}

.explain-main-container.is-open::after {
  opacity: 0; /* ボヤけを消す */
  pointer-events: none;
  transition:  0.3s ease-in;
}

/* ボタンのクラス切り替え用 */
.explain-toggle-btn {
  cursor: pointer;
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
  color: 000; /* 任意の色 */
}

  .btn-text{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }  
  
/* 閉じている時（is-openが付いていない時）のアイコンなど */
.explain-toggle-btn .btn-text::after { 
  content: ""; 
  width: 11px;
  height: 11px;
  background:url("/buy/img/toggle-plus.png") no-repeat center/contain;
  transition: 0.3s ease-in;
  transform: rotate(0deg);
  display: block;
  margin-bottom: 4px;
  }

/* 開いている時（is-openが付いた時）のアイコンとテキスト変更 */
.explain-toggle-btn.is-open .btn-text::after { content: ""; 
    transform: rotate(45deg);
  }
}