@charset "UTF-8";

/* --------------- 共通 --------------- */

.general_block,
.recruit_block,
.default_block,
.r_default_block {
  width: min(90%, 1600px);
  margin-inline: auto;

  h2 {
    position: relative;
    font-size: 56px;
    margin-block: 88px 32px;
    margin-left: 0;
  }

  h3 {
    font-size: 40px;
    margin-block: 56px 32px;
  }

  h4 {
    font-size: 26px;
    margin-block: 42px 32px;
  }

  p {
    margin-block: 16px;
    line-height: 1.5;
  }

  a:not(.wp-block-button__link) {
    text-decoration-style: solid;
    text-decoration-line: underline;
    transition: 0.2s;

    &:hover {
      opacity: 0.75;
    }
  }

  a[target="_blank"]:not(.wp-block-button__link)::after {
    content: "";
    display: inline-block;
    width: 1em;
    aspect-ratio: 1 / 1;
    margin: 0 4px 2px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
  }

  ul {
    list-style-type: disc;

    ul {
      list-style-type: circle;

      ul {
        list-style-type: square;
      }
    }
  }

  ol {
    list-style-type: decimal;

    ol {
      list-style-type: lower-alpha;

      ol {
        list-style-type: lower-roman;
      }
    }
  }

  ul,
  ol {
    margin-top: 16px;
    padding-left: 32px;
    list-style-position: outside;

    li {
      padding-block: 0.25em;
      line-height: 1.5;
      font-family: "M PLUS Rounded 1c", sans-serif;
      font-weight: 500;
      color: var(--text-black);
    }
  }

  blockquote {
    position: relative;
    width: calc(100% - 80px);
    margin: 32px auto;
    padding: 32px;
    background-color: #f4f4f4;
    line-height: 2;
    z-index: 2;
  }

  .wp-block-button.is-style-fill .wp-block-button__link{
    color: #fff;
  }

  hr {
    margin-block: 16px;
  }

  @media(max-width: 1299px) {
    h2 {
      font-size: clamp(42px, calc(2.63158vw + 21.78947px), 56px);
    }

    h3 {
      font-size: clamp(34px, calc(1.12782vw + 25.33834px), 40px);
    }
  }

  @media(max-width: 767px) {
    h2 {
      font-size: clamp(28px, calc(3.125vw + 18px), 42px);
    }

    h3 {
      font-size: clamp(24px, calc(2.23214vw + 16.85715px), 34px);
    }

    h4 {
      font-size: clamp(20px, calc(1.33929vw + 15.71427px), 26px);
    }

    blockquote {
      width: 100%;
    }
  }
}

/* --------------- 汎用ブロックエディタ用（装飾なし） --------------- */
.default_block {
  a:not(.wp-block-button__link) {
    color: var(--text-green);
    text-decoration-color: var(--text-green);
  }

  a[target="_blank"]:not(.wp-block-button__link)::after {
    background-image: url("../image/external_green.svg");
  }
}

/* --------------- 採用情報関連ページ用(装飾なし) --------------- */
.r_default_block {
  a:not(.wp-block-button__link) {
    color: var(--text-orange);
    text-decoration-color: var(--text-orange);
  }

  a[target="_blank"]:not(.wp-block-button__link)::after {
    background-image: url("../image/external_orange.svg");
  }
}

/* --------------- 装飾の共通部分--------------- */
.general_block,
.recruit_block {

  h2::after {
    content: "";
    position: absolute;
    left: -56px;
    top: -56px;
    display: block;
    width: 112px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    z-index: -1
  }

  @media(max-width: 1299px) {
    h2 {
      margin-left: 28px;
    }

    h2::after {
      width: clamp(84px, calc(5.26316vw + 43.57894px), 112px);
      left: calc(clamp(42px, calc(2.63158vw + 21.78947px), 56px) * -1);
      top: calc(clamp(42px, calc(2.63158vw + 21.78947px), 56px) * -1);
    }
  }

  @media (max-width: 767px) {
    h2::after {
      width: clamp(56px, calc(6.25vw + 36px), 84px);
      left: calc(clamp(28px, calc(3.125vw + 18px), 42px) * -1);
      top: calc(clamp(28px, calc(3.125vw + 18px), 42px) * -1);
    }
  }


  blockquote {
    margin-block: 64px;

    &::before,
    &::after {
      content: "";
      position: absolute;
      display: block;
      width: 64px;
      aspect-ratio: 1 / 1;
      background: url(../image/double-quotation.svg) center/ contain no-repeat;
    }

    &::before {
      top: -32px;
      left: -32px;
      transform: rotate(180deg);
    }

    &::after {
      right: -32px;
      bottom: -32px;
    }
  }

  @media (max-width: 767px) {
    blockquote {
      margin-block: 32px;

      &::before,
      &::after {
        width: 56px;
      }

      &::before {
        top: 0;
        left: 8px;
      }

      &::after {
        right: 8px;
        bottom: 0;
      }
    }
  }
}

/* --------------- 一般ページの装飾 --------------- */
.general_block {
  h2::after {
    background-color: var(--sub-green);
  }

  a:not(.wp-block-button__link) {
    color: var(--text-green);
    text-decoration-color: var(--text-green);
  }

  a[target="_blank"]:not(.wp-block-button__link)::after {
    background-image: url("../image/external_green.svg");
  }

}


/* --------------- 採用情報関連ページの装飾 --------------- */
.recruit_block {
  h2::after {
    background-color: var(--sub-orange);
  }

  a:not(.wp-block-button__link) {
    color: var(--text-orange);
    text-decoration-color: var(--text-orange);
  }

  a[target="_blank"]:not(.wp-block-button__link)::after {
    background-image: url("../image/external_orange.svg");
  }
}