@charset "utf-8";

/*=======================================================================

クオリティページ用

========================================================================*/
.page-quality {
}

/*
-------------------------------------------------------
タブナビゲーション
-------------------------------------------------------*/
.quality-tab {
  margin-top: 50px;
}

.quality-tab__list {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 5px 1fr 5px 1fr 5px 1fr 5px 1fr;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid #739b7d;
}

.quality-tab__item {
  margin: 0;
  padding: 0;
}

.quality-tab__item:last-child .tab-btn {
  border-right: none;
}

.tab-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 6px 8px;
  border: none;
  background-color: #d5e1d8;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
  cursor: pointer;
  -webkit-transition:
    background-color 0.3s,
    color 0.3s;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.tab-btn.--soon {
  background-color: #e6e6e6;
  color: #999;
  pointer-events: none;
  cursor: default;
}
.tab-btn.--active,
.tab-btn:not(.--soon):hover {
  background-color: #739b7d;
  color: #fff;
}

.tab-btn__label {
  display: block;
}
.tab-btn__soon {
  display: block;
  margin-top: 2px;
  color: #999;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
}
@media screen and (min-width: 768px) and (max-width: 1000px) {
}
@media screen and (max-width: 767px) {
  .quality-tab__list {
    border-bottom: 0px solid #739b7d;
  }
  .tab-btn {
    min-height: 46px;
    font-size: 16px;
  }
  .tab-btn__soon {
    margin-top: 2px;
    font-size: 12px;
  }
}

/*
-------------------------------------------------------
タブコンテンツ
-------------------------------------------------------*/
.quality-tab__panels {
  position: relative;
}

.tab-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transition: none;
  transition: none;
}

.tab-content.--active {
  position: relative;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  -webkit-transition: opacity 0.4s ease;
  transition: opacity 0.4s ease;
}

@media screen and (max-width: 767px) {
  .quality-tab {
    margin-top: 30px;
  }

  .quality-tab__list {
    -ms-grid-columns: 1fr 5px 1fr;
    grid-template-columns: repeat(2, 1fr);
  }

  .quality-tab__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .quality-tab__item:nth-child(2n) .tab-btn {
    border-right: none;
  }

  .quality-tab__item:last-child:nth-child(odd) .tab-btn {
    border-right: none;
  }
}
