@charset "UTF-8";

/* ------------------------------
  製品紹介
------------------------------ */
.tab-container {
  position: relative;
  display: flex;
}

.tab-container::before,
.tab-container::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  width: calc(100% + 36px/2);
  height: 2px;
  background-color: #00327b;
  z-index: -1;
}

.tab-container::before {
  left: -18px;
}

.tab-container::after {
  left: 0;
}

.tab-container .tab {
  width: calc((100% - 30px) / 3);
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  border-bottom: none;
}

.tab-container .tab:not(.active) {
  background: #00327b;
  color: #fff;
  transition: opacity .3s ease-in-out;
}

.tab:not(.active):hover {
  opacity: .7;
}

.tab-container .tab.active {
  background: #fff;
  color: #00327b;
  border: 2px solid #00327b;
  border-bottom: none;
}

.productsBlock {
  display: none;
}

.productsBlock.show {
  display: block;
}

.productsBox {
  position: relative;
}

.productsBox a::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 30px;
  height: 30px;
  background: url(../img/icon_plus.svg) no-repeat center / 100%;
  border-radius: 4px;
}

.productsBox h2 {
  margin: 25px auto;
  color: #00327b;
  padding-bottom: 0;
}

.productsBox h2::before {
  display: none;
}

.productsBox table {
  width: 100%;
  border-left: none;
  border-right: none;
}

.productsBox table th {
  font-weight: bold;
  background: none;
  border-top: 1px solid #00327b;
  border-bottom: 1px solid #00327b;
  width: 23%;
  padding: 10px 0;

}

.productsBox table td {
  padding: 2px 0 2px 7px;
  width: 77%;
  border-top: 1px solid #ced5d9;
}

.productsBox img {
  border-radius: 10px;
}

/* ------------------------------
 PC用
------------------------------ */
@media print,screen and (min-width:768px) {
  .tab-container {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
  }

  .tab-container .tab:not(.active) {
    padding: 20px 30px;
  }

  .tab-container .tab.active {
    padding: 18px 30px;
  }

  .productsBlock {
    flex-wrap: wrap;
    gap: 65px 45px;
  }

  .productsBlock.show {
    display: flex !important;
  }

  .productsBlock .productsBox {
    width: 350px;
  }

  .productsBox {
    margin-bottom: 0;
  }

  .productsBox a::after {
    right: 20px;
    top: 152px;
    transition: opacity .3s ease-in-out;
  }

  .productsBox a:hover::after {
    opacity: .7;
  }

  .productsBox h2 {
    font-size: 2rem;
  }
}

/* ------------------------------
 スマホ用コード
------------------------------ */
@media screen and (max-width: 767px) {
  .tab-container {
    gap: 10px;
  }

  .tab-container::before,
  .tab-container::after {
    width: calc(100% + 16%);
  }

  .tab-container::before {
    left: -10%;
  }

  .tab-container .tab:not(.active) {
    padding: 12px 4%;
  }

  .tab-container .tab:not(.surface) {
    line-height: 1.4;
  }

  .tab-container .tab:not(.active).surface {
    padding: 20px 4%;
  }

  .tab-container .tab.active {
    padding: 10px 4%;
  }

  .tab-container .tab.active.surface {
    padding: 18px 4%;
  }

  .tab-container .tab {
    width: 48%;
    font-size: 1.5rem;
  }

  .productsBox {
    margin-bottom: 60px;
  }

  .productsBox a::after {
    right: 4%;
    top: 77%;
  }

  .productsBox h2 {
    margin: 20px auto;
    font-size: 1.8rem
  }

  .productsBox table td {
    padding: 6px 0 12px 7px;
  }
}

/* ------------------------------
 モーダル
------------------------------ */
body.modal-enable {
  position: fixed;
  overflow: scroll;
}

.modal-close,
.modal-next,
.modal-prev {
  display: block;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  z-index: 11000;
  width: 45px;
  height: 45px;
  line-height: 45px;
}

.modal-next,
.modal-prev {
  position: absolute;
  top: calc((404px - 45px) / 2);
}

.modal-close {
  position: fixed;
  top: 30px;
  right: 45px;
  background: url(../img/modal_close.svg) no-repeat 0 0 / 52px 47px;
}

.modal-next {
  right: calc(50% - 420px);
  background: url(../img/modal_next.svg) no-repeat 0 0 / 45px 45px;
}

.modal-prev {
  left: calc(50% - 430px);
  background: url(../img/modal_prev.svg) no-repeat 0 0 / 45px 45px;
}

.modal-close p,
.modal-next p,
.modal-prev p {
  visibility: hidden;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*for old Safari*/
  height: 100vh;
  background-color: rgba(26, 26, 26, 0.95);
  z-index: 11000;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.modal-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: fit-content;
  max-width: 700px;
  margin: auto;
  height: fit-content;
}

.modal-open:hover {
  cursor: pointer;
}

.modal-close:hover {
  cursor: pointer;
}

.modal-item_box {
  width: 100%;
}

.pop-content {
  position: relative !important;
  overflow: visible;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  color: #fff;
  text-align: center;
}

.photo-block {
  margin-bottom: 30px;
}

.txt-block {
  font-size: 2.4rem;
}
.txt-block p{
  padding: 0 5%;
}

.pop-box a {
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.pop-box a:hover {
  opacity: 1;
}

.pop-box a img {
  display: block;
  transition-duration: 0.3s;
  overflow: hidden;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.pop-box a:hover img {
  transform: scale(1.03);
  transition-duration: 0.3s;
}

/* ------------------------------
 PC用
------------------------------ */
@media print,
screen and (min-width:768px) {
  .photo-block img {
    border-radius: 20px;
  }
}

/* ----------------------
 スマホ用コード
---------------------- */

@media screen and (max-width: 900px) {
  .pop-content {
    width: 100% !important;
  }
}

@media screen and (max-width: 767px) {
  body.modal-enable {
    overflow: hidden;
  }

  .modal-overlay>.modal-container>.cms_block {
    margin-left: 0;
    margin-right: 0;
  }

  .modal-overlay .modal-container .cms_block.pop-content {
    margin-left: 0;
  }

  .modal-container {
    width: 100%;
    bottom: 60px;
  }

  .modal-content {
    width: 100% !important;
    padding: 20px;
    margin: 0 !important;
  }

  .modal-close {
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    line-height: 30px;
    background: rgba(0, 0, 0, 0.2) url(../img/modal_close.svg) no-repeat center center / 27px 30px;
  }

  .modal-next,
  .modal-prev {
    top: auto;
    width: 35px;
    height: 35px;
    bottom: -60px;
  }

  .modal-next {
    line-height: 30px;
    right: calc(50% - 45px);
    background: url(../img/modal_next.svg) no-repeat 0 0 / 35px 35px;
  }

  .modal-prev {
    line-height: 30px;
    left: calc(50% - 45px);
    background: url(../img/modal_prev.svg) no-repeat 0 0 / 35px 35px;
  }

  .photo-block {
    margin-bottom: 23px;
  }

  .txt-block {
    font-size: 1.8rem;
  }
}