@charset "utf-8";

/* ======================================================
 * custom.css
====================================================== */

/* ----- device ----- */
@media print, screen and (min-width: 768px) {
  .custom-pc-hidden {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .custom-sp-hidden {
    display: none !important;
  }
}

/* ----- custom-footer-link ----- */
.custom-footer-link {
  color: #fff !important;
  @media print, screen and (min-width: 768px) {
    &:hover {
      text-decoration: underline;
    }
  }
  &.is-blank {
    &::after {
      content: "";
      position: relative;
      display: inline-block;
      margin-inline: .5em .6em;
      background: no-repeat center / contain;
      background-image: url(../img/cmn_ic01_02.svg);
      white-space: nowrap;
      text-indent: 100%;
      vertical-align: middle;
      overflow: hidden;
      @media print, screen and (min-width: 768px) {
        top: -2px;
        width: 14px;
        height: 14px;
      }
      @media (max-width: 767px) {
        top: -1px;
        width: 12px;
        height: 12px;
      }
    }
  }
}

/* ----- custom-util-color--base ----- */
.custom-util-color--base {
  color: #333 !important;
}

/* ----- custom-util-link ----- */
.custom-util-link {
  display: inline;
  text-decoration: none;
  @media print, screen and (min-width: 768px) {
    &:hover {
      text-decoration: underline;
    }
  }
  &.is-blank {
    &::after {
      content: "";
      position: relative;
      display: inline-block;
      margin-inline: .5em .6em;
      background: no-repeat center / contain;
      background-image: url(../img/cmn_ic01_01.svg);
      white-space: nowrap;
      text-indent: 100%;
      vertical-align: middle;
      overflow: hidden;
      @media print, screen and (min-width: 768px) {
        top: -2px;
        width: 14px;
        height: 14px;
      }
      @media (max-width: 767px) {
        top: -1px;
        width: 12px;
        height: 12px;
      }
    }
  }
}

/* ----- custom-heading1-wrap ----- */
.custom-heading1-wrap {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100%;
}
/* ----- custom-heading1 ----- */
.custom-heading1 {
  position: relative;
  @media print, screen and (min-width: 768px) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1920px, 100%);
    height: 410px;
    padding-inline: 30px;
    background: url(../img/index_bg01.webp) no-repeat center center;
    background-size: 1920px auto;
  }
  @media (max-width: 767px) {
    display: block;
    width: 100%;
    &::after {
      content: "";
      display: block;
      position: static;
      width: 100%;
      aspect-ratio: 750 / 360;
      background: url(../img/index_bg01_sp.webp) no-repeat center center / cover;
    }
  }
  .custom-heading1__inner {
    position: relative;
    @media print, screen and (min-width: 768px) {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      width: min(1200px, 100%);
    }
    @media (max-width: 767px) {
      display: block;
      width: 100%;
      padding-inline: 15px;
      background: #f5f5f5;
    }
  }
  .custom-heading1__container {
    @media print, screen and (min-width: 768px) {
    }
    @media (max-width: 767px) {
      position: relative;
      width: 100%;
      padding-block: 20px 15px;
      z-index: 2;
    }
  }
  .custom-heading1__title {
    position: relative;
    margin: 0;
    font-family: sans-serif;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    @media print, screen and (min-width: 768px) {
      padding: 0 10px 38px 0;
      font-size: 60px;
    }
    @media (max-width: 767px) {
      width: 100%;
      padding: 0 0 30px;
      font-size: 27px;
    }
    &::after {
      content: "";
      display: block;
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 100%;
      background: repeat-x center center / auto 100%;
      translate: -50% 0;
      @media print, screen and (min-width: 768px) {
        height: 29px;
        background-image: url(../img/cmn_ex01_01.webp);
      }
      @media (max-width: 767px) {
        height: calc(29px / 2);
        background-image: url(../img/cmn_ex01_01_sp.webp);
      }
    }
  }
  .custom-heading1__text {
    line-height: 1.6;
    text-align: center;
    @media print, screen and (min-width: 768px) {
      margin: 18px 0 0;
      font-size: 18px;
    }
    @media (max-width: 767px) {
      margin: 9px 0 0;
      font-size: 15px;
    }
  }
}

/* ----- custom-heading2 ----- */
.custom-heading2 {
  .e-con:has(> .e-con-inner > &) {
    @media print, screen and (min-width: 768px) {
      padding-inline: 30px;
    }
    @media (max-width: 767px) {
      padding-inline: 10px;
    }
  }
  display: block;
  padding: 0;
  text-align: center;
  .elementor-heading-title {
    position: relative;
    margin: 0;
    font-family: sans-serif;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    @media print, screen and (min-width: 768px) {
      padding: 10px 0 33px;
      font-size: 46px;
    }
    @media (max-width: 767px) {
      width: 100%;
      padding: 0 0 30px;
      font-size: 22px;
    }
    &::after {
      content: "";
      display: block;
      position: absolute;
      left: 50%;
      background: repeat-x top left / 1px 100%;
      translate: -50% 0;
      @media print, screen and (min-width: 768px) {
        bottom: 6px;
        width: 230px;
        height: 5px;
        background-image: url(../img/cmn_ex01_02.webp);
      }
      @media (max-width: 767px) {
        bottom: 10px;
        width: 115px;
        height: 4px;
        background-image: url(../img/cmn_ex01_02_sp.webp);
      }
    }
  }
}


/* ----- custom-toc ----- */
.custom-toc {
  .rtoc-mokuji-content {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    margin-inline: auto;
    @media (max-width: 767px) {
      margin-block: 25px 0;
    }
    #rtoc-mokuji-title {
      justify-content: center !important;
      flex-direction: row !important;
      @media print, screen and (min-width: 768px) {
        padding-block: 34px 8px;
        font-size: 18px;
      }
      @media (max-width: 767px) {
        padding-block: 34px 8px;
        font-size: 18px;
      }
    }
    .rtoc-mokuji {
      padding-block: 0 40px;
      &.level-1 {
        margin-block: 0 !important;
        margin-inline: 0 !important;
        @media print, screen and (min-width: 768px) {
          padding-inline: calc(64px + 1.3em) 64px !important;
        }
        @media (max-width: 767px) {
          padding-inline: calc(28px + 1.3em) 28px !important;
        }
        > li {
          br {
            @media print, screen and (min-width: 768px) {
              display: none !important;
            }
            @media (max-width: 767px) {
            }
          }
        }
      }
    }
  }
}

/* ----- custom-table-wrap ----- */
.custom-table-wrap {
  margin: 10px auto 0;
  @media print, screen and (min-width: 768px) {
    width: min(760px, calc(100% * (2 / 3)));
    &:has(> .modified-table) {
      width: min(693px, calc(100% * (2 / 3)));
    }
  }
  @media (max-width: 767px) {
    width: 100%;
  }
}

/* ----- custom-table-title ----- */
.custom-table-title {
  margin: 0 0 20px;
  font-weight: bold;
  line-height: 1.2em;
  @media print, screen and (min-width: 768px) {
    font-size: 20px !important;
    text-align: center;
  }
  @media (max-width: 767px) {
    font-size: 15px !important;
    text-left: center;
  }
}

/* ----- custom-data-table ----- */
.custom-data-table {
  width: 100%;
  margin-inline: auto;
  border: 1px solid #e0e0e0;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.6;
  @media (max-width: 767px) {
    width: 100%;
    font-size: 13px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  tbody {
    tr {
      @media (max-width: 767px) {
        border: none;
        background-color: transparent;
        box-sizing: content-box;
      }
      &:last-child {
        td {
          border-bottom: none;
        }
      }
    }
  }
  th,
  td {
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-left: none;
    text-align: left;
    vertical-align: middle;
    @media (max-width: 767px) {
      padding: 8px 5px;
      vertical-align: middle;
      white-space: nowrap;
    }
    &:first-child {
      @media (max-width: 767px) {
        width: 35%;
        border-left: 1px solid #e0e0e0;
      }
    }
    &:not(:first-child):not(:last-child) {
      @media (max-width: 767px) {
        width: 20%;
      }
    }
    &:last-child {
      border-right: none;
      @media (max-width: 767px) {
        width: 25%;
      }
    }
  }
  th {
    background-color: #f8f8f8;
    font-weight: bold;
    @media (max-width: 767px) {
      white-space: normal;
    }
  }
  td {
    a {
      color: #3B86E6;
      text-decoration: none;
      @media print, screen and (min-width: 768px) {
        &:hover {
          text-decoration: underline;
        }
      }
      @media (max-width: 767px) {
        display: inline;
        word-break: break-all;
      }
      &.is-blank {
        &::after {
          content: "";
          position: relative;
          display: inline-block;
          margin-inline: .5em .6em;
          background: no-repeat center / contain;
          background-image: url(../img/cmn_ic01_01.svg);
          white-space: nowrap;
          text-indent: 100%;
          vertical-align: middle;
          overflow: hidden;
          @media print, screen and (min-width: 768px) {
            top: -2px;
            width: 14px;
            height: 14px;
          }
          @media (max-width: 767px) {
            top: -1px;
            width: 12px;
            height: 12px;
          }
        }
      }
    }
  }
  &.modified-table {
    th,
    td {
      &:first-child {
        width: 56%;
        border-left: 1px solid #e0e0e0;
      }
      &:last-child {
        width: 44%;
        border-right: 1px solid #e0e0e0;
      }
    }
  }
  &.operation-company-table {
    th,
    td {
      &:first-child {
        width: 30%;
        white-space: nowrap;
      }
      &:last-child {
        width: 70%;
        white-space: nowrap;
      }
    }
  }
  &.school-founding-year-table {
    th,
    td {
      &:last-child {
        white-space: nowrap;
      }
    }
  }
  &.certification-table {
    th,
    td {
      &:first-child {
        width: 45%;
        white-space: nowrap;
        @media (max-width: 767px) {
          width: 38%;
        }
      }
      &:last-child {
        width: 55%;
        white-space: normal;
        @media (max-width: 767px) {
          width: 62%;
          word-break: break-all;
        }
      }
    }
  }
}

/* ----- custom-table-caption ----- */
.custom-table-caption-container {
  width: 100%;
  margin: 10px auto 0;
  text-align: left;
}
.custom-table-caption {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
  &:last-child {
    margin-bottom: 0;
  }
}


/* ----- custom-recommend-heading ----- */
.custom-recommend-heading {
  .elementor-element:has(> &) {
    + * {
      @media print, screen and (min-width: 768px) {
        margin-top: 40px;
      }
      @media (max-width: 767px) {
        margin-top: 30px;
      }
    }
  }
  .elementor-heading-title {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    @media print, screen and (min-width: 768px) {
      gap: 5px;
      padding-block: 0 19px;
    }
    @media (max-width: 767px) {
      gap: 4px;
      padding-block: 0 18px;
    }
    .custom-recommend-heading__subtitle {
      display: block;
      font-weight: 350;
      line-height: 1.2;
      @media print, screen and (min-width: 768px) {
        font-size: 18px;
      }
      @media (max-width: 767px) {
        font-size: 13px;
      }
    }
    .custom-recommend-heading__title {
      display: block;
      font-weight: 700;
      line-height: 1.4;
      @media print, screen and (min-width: 768px) {
        font-size: 38px;
      }
      @media (max-width: 767px) {
        font-size: 20px;
      }
    }
    &::after {
      content: "";
      display: block;
      position: absolute;
      bottom: 0;
      left: 0;
      background: repeat-x top left / 1px 100%;
      @media print, screen and (min-width: 768px) {
        width: 150px;
        height: 5px;
        background-image: url(../img/cmn_ex01_02.webp);
      }
      @media (max-width: 767px) {
        width: 75px;
        height: 4px;
        background-image: url(../img/cmn_ex01_02_sp.webp);
      }
    }
  }
}

/* ----- custom-point-heading ----- */
.custom-point-heading {
  display: block;
  padding: 0;
  text-align: center;
  @media print, screen and (min-width: 768px) {
    padding-block: 20px 8px;
  }
  @media (max-width: 767px) {
    padding-block: 8px 0;
  }
  .e-con:has(> .e-con-inner > &) {
    @media print, screen and (min-width: 768px) {
      padding-inline: 30px;
    }
    @media (max-width: 767px) {
      padding-inline: 10px;
    }
  }
  .elementor-widget-container {
    display: flex;
    @media print, screen and (min-width: 768px) {
      justify-content: center;
    }
    @media (max-width: 767px) {
      justify-content: flex-start;
    }
  }
  .elementor-heading-title {
    position: relative;
    margin: 0;
    font-family: sans-serif;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    @media print, screen and (min-width: 768px) {
      padding-left: 53px;
      font-size: 38px;
    }
    @media (max-width: 767px) {
      padding-left: 26px;
      font-size: 18px;
    }
    .custom-point-heading__mark {
      position: absolute;
      left: 0;
      display: inline-block;
      border: 1px solid #191919;
      color: #191919;
      font-size: 24px;
      font-weight: 300;
      line-height: 1;
      @media print, screen and (min-width: 768px) {
        top: 12px;
        width: 33px;
        height: 33px;
        padding: 2px 0 0;
        font-size: 24px;
      }
      @media (max-width: 767px) {
        top: 4px;
        width: 17px;
        height: 17px;
        padding: 1px 0 0;
        font-size: 12px;
      }
    }
  }
}
