@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;
      }
    }
  }
  &.is-gray {
    &.is-blank {
      &::after {
        background-image: url(../img/cmn_ic01_03.svg);
      }
    }
  }
}

/* ----- custom-elementor-button ----- */
.custom-elementor-button {
  &.is-blank {
    a.elementor-button {
      .elementor-button-text {
        &::after {
          content: "";
          position: relative;
          display: inline-block;
          margin-inline: .5em 0;
          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-heading1 ----- */
.custom-heading1 {
  &.e-con {
    > .e-con-inner {
      @media print, screen and (min-width: 768px) {
        padding-block: 65px 78px;
      }
      @media (max-width: 767px) {
        padding-block: 21px 43px;
        padding-inline: 15px;
      }
    }
  }
  .elementor-heading-title {
    position: relative;
    @media print, screen and (min-width: 768px) {
      font-size: 38px;
      line-height: 1.4;
    }
    @media (max-width: 767px) {
      font-size: 30px;
      line-height: 1.18em !important;
    }
    .custom-heading1__small {
      @media print, screen and (min-width: 768px) {
        font-size: 0.74em;
      }
      @media (max-width: 767px) {
        font-size: 0.67em;
      }
    }
    &::after {
      content: "";
      display: block;
      position: absolute;
      left: 50%;
      height: 2px;
      background: #be8d5f;
      translate: -50% 0;
      @media print, screen and (min-width: 768px) {
        bottom: -21px;
        width: 140px;
      }
      @media (max-width: 767px) {
        bottom: -23px;
        width: 70px;
      }
    }
  }
}

/* ----- custom-heading2 ----- */
.custom-heading2 {
  .e-con:has(.e-con-inner &) {
    @media (max-width: 767px) {
      padding-inline: 15px;
    }
  }
  .e-con .e-con-inner:has(&) {
    @media print, screen and (min-width: 768px) {
      max-width: 100%;
      padding-inline: 30px;
    }
  }
  .custom-heading2__title {
    display: block;
    padding: 0;
    text-align: center;
    .elementor-heading-title {
      word-break: keep-all;
      overflow-wrap: break-word;
      @media print, screen and (min-width: 768px) {
        font-size: 32px;
        line-height: 1.6;
      }
      @media (max-width: 768px) {
        font-size: 18px;
      }
      b {
        line-height: 1.4;
        @media print, screen and (min-width: 768px) {
          font-size: 1.25em;
        }
        @media (max-width: 768px) {
          font-size: 1.5em;
        }
      }
    }
  }
}

/* ----- custom-heading4 ----- */
.custom-heading4 {
  @media print, screen and (min-width: 768px) {
    margin: 39px 0 0;
  }
  @media (max-width: 767px) {
    margin: 30px 0 0;
  }
  .elementor-heading-title {
    @media print, screen and (min-width: 768px) {
      font-size: 20px !important;
    }
    @media (max-width: 767px) {
      font-size: 16px !important;
      line-height: 1.4;
    }
  }
  + * {
    margin-top: 20px;
  }
}

/* ----- custom-toc ----- */
.custom-toc {
  .rtoc-mokuji-content {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    max-width: 800px;
    margin-inline: auto;
    #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-gallery-toggle-button-wrap ----- */
.custom-gallery-toggle-button-wrap {
  display: flex;
  justify-content: center;
  @media print, screen and (min-width: 768px) {
    margin: 2.67em 0 0;
  }
  @media (max-width: 767px) {
    margin: 1.8em 0 0;
  }
}

/* ----- custom-gallery-toggle-button ----- */
.custom-gallery-toggle-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: .5em;
  border: 1px solid #ccc !important;
  outline: 0px solid #ccc !important;
  outline-offset: -2px;
  background: #fff !important;
  color: #212d45;
  @media print, screen and (min-width: 768px) {
    min-width: 320px;
    min-height: 60px;
    padding-inline: 1.5em 2.5em;
    font-size: 20px;
    &:hover,
    &:focus {
      outline-width: 2px !important;
    }
  }
  @media (max-width: 767px) {
    min-width: 200px;
    min-height: 45px;
    padding-inline: 1.75em 2.5em;
    font-size: 14px;
  }
  &::before,
  &::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    height: 1px;
    background: #212d45;
    translate: 0 -50%;
    transition: rotate 0.2s ease-in-out 0s;
    @media print, screen and (min-width: 768px) {
      right: 20px;
      width: 21px;
    }
    @media (max-width: 767px) {
      right: 14px;
      width: 16px;
    }
  }
  &::after {
    rotate: 90deg;
  }
  &.is-open {
    &::after {
      rotate: 0deg;
    }
  }
}

/* ----- custom-order-section ----- */
.custom-order-section {
  @media print, screen and (min-width: 768px) {
    margin: 39px 0 0;
    + .custom-order-section {
      margin-top: 61px;
    }
  }
  @media (max-width: 767px) {
    margin: 22px 0 0;
    + .custom-order-section {
      margin-top: 36px;
    }
  }
  > .e-con-inner {
    gap: 0;
  }
  .custom-order-section__title {
    .elementor-heading-title {
      position: relative;
      @media print, screen and (min-width: 768px) {
        padding-left: 58px;
        font-size: 28px;
      }
      @media (max-width: 767px) {
        padding-left: 31px;
        font-size: 20px;
      }
      &::before {
        content: "";
        display: block;
        position: absolute;
        top: 5px;
        width: 1px;
        background: #ccc;
        @media print, screen and (min-width: 768px) {
          left: 1.33em;
          height: 29px;
        }
        @media (max-width: 767px) {
          left: 1.15em;
          height: 18px;
        }
      }
      .custom-order-section__title__number {
        position: absolute;
        top: 0;
        left: 0;
        font-family: sans-serif;
        @media print, screen and (min-width: 768px) {
          font-size: 20px;
        }
        @media (max-width: 767px) {
          font-size: 15px;
        }
      }
    }
  }
  .custom-order-section__detail {
    gap: 0;
    @media print, screen and (min-width: 768px) {
      margin: 27px 0 0;
      padding-left: 58px;
    }
    @media (max-width: 767px) {
      margin: 17px 0 0;
      padding-left: 31px;
    }
    .elementor-widget-container {
      @media print, screen and (min-width: 768px) {
        line-height: 2em;
      }
      @media (max-width: 767px) {
        line-height: 1.6em;
      }
      em {
        font-style: normal;
        background-color: #efe5d1;
      }
    }
  }
}

/* ----- custom-company-card-wrap ----- */
.custom-company-card-wrap {
  @media print, screen and (min-width: 768px) {
    margin: 38px 0 0;
  }
  @media (max-width: 767px) {
    margin: 25px 0 0;
  }
}

/* ----- custom-company-card ----- */
.custom-company-card {
  border: 1px solid #ccc;
  background: #fff;
  outline: 0px solid #ccc !important;
  outline-offset: -2px;
  color: var(--ast-global-color-3) !important;
  @media print, screen and (min-width: 768px) {
    padding: 27px 29px 29px;
  }
  @media (max-width: 767px) {
    padding: 18px 15px;
  }
  .elementor-heading-title {
    color: #212d45;
    font-weight: bold !important;
    line-height: 1.4;
    @media print, screen and (min-width: 768px) {
      font-size: 22px;
      &:hover,
      &:focus {
        text-decoration: underline;
      }
    }
    @media (max-width: 767px) {
      font-size: 16px;
    }
  }
  &.is-blank {
    .elementor-heading-title {
      &::after {
        content: "";
        position: relative;
        display: inline-block;
        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: -1px;
          width: 17px;
          height: 17px;
          margin-inline: 10px 12px;
        }
        @media (max-width: 767px) {
          top: -2px;
          width: 14px;
          height: 14px;
          margin-inline: 8px 10px;
        }
      }
    }
  }
  .custom-company-card__text {
    line-height: 2em;
    @media print, screen and (min-width: 768px) {
      margin: 1.13em 0 0;
    }
    @media (max-width: 767px) {
      margin: .86em 0 0;
    }
  }
  .custom-company-card__description {
    padding: 0;
    list-style: none;
    @media print, screen and (min-width: 768px) {
      margin: 1.27em 0 0;
    }
    @media (max-width: 767px) {
      margin: .92em 0 0;
    }
    .custom-company-card__description__title {
      margin: 0;
    }
    .custom-company-card__description__detail {
      @media print, screen and (min-width: 768px) {
        margin: .6em 0 0;
      }
      @media (max-width: 767px) {
        margin: .43em 0 0;
      }
      > :first-child {
        margin-top: 0 !important;
      }
    }
  }
  .custom-company-card__unorder-list {
    margin: 1em 0 0;
    padding: 0;
    list-style: none;
    > li {
      position: relative;
      padding-left: 1em;
      &::before {
        content: "・";
        position: absolute;
        top: 0;
        left: 0;
      }
      &:not(:first-child) {
        margin-top: 5px;
      }
    }
  }
}