.tab-c .tabs-c > .tab-panel {
  padding: 40px 0;
}
h2.bg-surface-ttl {
  background-color: #e8ebf3;
  padding: 24px;
  margin-top: 64px;
  line-height: 1em;
  &:first-child {
    margin-top: 24px;
  }
}
@media only screen and (max-width: 767px) {
  h2.bg-surface-ttl {
    font-size: 19px;
  }
}
.tab_contents_list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.tab_contents_list_item {
  width: calc(25% - 12px);
  max-width: 304px;
  text-decoration: none;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 0 16px;

  &:nth-of-type(4n-3) {
    @media screen and (max-width: 768px) {
      width: auto;
      max-width: 500px;
      margin: 0 auto;
    }
  }

  @media screen and (max-width: 768px) {
    width: auto;
    max-width: 500px;
    margin: 0 auto;
  }
  .item_img {
    flex-shrink: 0;
    text-align: center;
    margin: 0;

    &.dummy_height {
      height: 40px;
    }

    img {
      max-width: 224px;
      height: auto;
      width: 100%;
    }
  }
  button {
    &:hover {
      opacity: 0.8;
    }
  }
}

/* モーダル表示 */
.main-contents .modal {
  .modal-content {
    font-size: 19px;
  }
  .modal_h1 {
    font-size: 40px;
    font-weight: 700;
  }
  .modal_h2 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 40px !important;
    padding: 0 14px;
    border-left: 4px solid #cf122e;
  }
  .modal_h3 {
    font-weight: 700;
    margin-top: 32px;

    &:first-child {
      margin-top: 40px;
    }
  }
  .modal_h2 + .text_area,
  .modal_h3 + .text_area {
    margin-top: 16px !important;
    margin-left: 24px;
    .text_area_list {
      margin-top: 8px !important;
    }
  }
}
/* モーダルの背景 */
.modal {
  display: none;
  /* 初期状態は非表示 */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  line-height: 1.5em;
}
/* モーダルコンテンツ */
.modal {
  .modal-content {
    background-color: #fff;
    margin: 80px auto;
    padding: 40px 40px 64px;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 85%;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.5);
    overflow: auto;
    color: #333;
  }
  .modal-inner {
    margin-top: 0 !important;
  }
}
/* 閉じるボタン */
.modal {
  .modal-close-btn {
    text-align: right;
  }

  .close {
    margin: 64px auto 0;
    text-align: center;
  }

  .modal-close {
    color: #000000;
    text-decoration: none !important;
    font-size: 30px;
    cursor: pointer;
    &:hover {
      opacity: 0.8;
    }
    &.btn-bk {
      text-align: center;
      border: 1px solid #c7c1c1;
      border-radius: 28px;
      padding: 8px 32px;
      &:hover {
        background: #707070;
        color: #fff;
      }
    }
  }
}
