@charset "UTF-8";

@layer utility {
  /* =====================
    u-hover
  ===================== */
  .u-hover {
    transition: opacity 250ms ease 0s;
    @media (any-hover: hover) {
      &:hover {
        opacity: 0.5;
      }
    }
  }

  /* =====================
    u-inner
  ===================== */
  .u-inner {
    position: relative;
    inline-size: 1440px;
    margin-inline: auto;
    padding-inline: 80px;
    z-index: 3;
    @media (width <= 768px) {
      inline-size: 100%;
      padding-inline: calc((100 / 390) * 16 * 1vw);
    }
  }

  /* =====================
    u-anchor
  ===================== */
  .u-anchor {
    position: relative;
    display: block flow;
    inline-size: 320px;
    padding-block: 16px;
    padding-inline: 50px;
    background-color: #e40541;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.2);
    transition: all 250ms ease 0s;

    @media (width <= 768px) {
      inline-size: calc((100 / 390) * 320 * 1vw);
      padding-block: calc((100 / 390) * 16 * 1vw);
      min-block-size: calc((100 / 390) * 72 * 1vw);
      padding-inline: calc((100 / 390) * 50 * 1vw);
      box-shadow: 0 calc((100 / 390) * 8 * 1vw) calc((100 / 390) * 8 * 1vw) 0 rgba(0, 0, 0, 0.2);
    }

    &::after {
      content: '';
      position: absolute;
      top: 50%;
      right: 10px;
      transform: translateY(-50%);
      inline-size: 20px;
      block-size: 40px;
      mask-repeat: no-repeat;
      mask-size: contain;
      mask-position: center;
      mask-image: var(--arrow);
      background-color: var(--white);
    }

    @media (width <= 768px) {
      &::after {
        right: calc((100 / 390) * 10 * 1vw);
        inline-size: calc((100 / 390) * 20 * 1vw);
        block-size: calc((100 / 390) * 40 * 1vw);
      }
    }

    .btn-txt {
      position: relative;
      font-size: 22px;
      font-weight: bold;
      line-height: 1.4;
      color: #fff;
      display: block flex;
      align-items: center;
      gap: 8px;

      @media (width <= 768px) {
        font-size: calc((100 / 390) * 22 * 1vw);
        gap: calc((100 / 390) * 8 * 1vw);
      }
    }
    &[data-id='quotation'] {
      .btn-txt {
        &::before {
          content: '';
          display: block;
          background-repeat: no-repeat;
          background-size: contain;
          background-position: center;
          background-image: url('../img/icon_quotation.svg');
          inline-size: 40px;
          block-size: 40px;
        }

        @media (width <= 768px) {
          &::before {
            inline-size: calc((100 / 390) * 40 * 1vw);
            block-size: calc((100 / 390) * 40 * 1vw);
          }
        }
      }
    }
    &[data-id='contact'] {
      .btn-txt {
        &::before {
          content: '';
          display: block;
          background-repeat: no-repeat;
          background-size: contain;
          background-position: center;
          background-image: url('../img/icon_mail.svg');
          inline-size: 40px;
          block-size: 40px;
        }

        @media (width <= 768px) {
          &::before {
            inline-size: calc((100 / 390) * 40 * 1vw);
            block-size: calc((100 / 390) * 40 * 1vw);
          }
        }
      }
    }
    &[data-color='red2'] {
      background-color: #e6002c;
    }
    @media (any-hover: hover) {
      &:hover {
        background-color: #f77699;
      }
    }
    &[data-color='blue'] {
      inline-size: 360px;
      padding-block: 24px;
      background-color: #032f6d;

      @media (width <= 768px) {
        inline-size: calc((100 / 390) * 360 * 1vw);
        padding-block: calc((100 / 390) * 24 * 1vw);
      }
      .btn-txt {
        font-size: 24px;
        justify-content: center;

        @media (width <= 768px) {
          font-size: calc((100 / 390) * 24 * 1vw);
        }
      }
      @media (any-hover: hover) {
        &:hover {
          background-color: #5783bf;
        }
      }
    }
  }

  /* =====================
    セクションタイトル
  ===================== */
  .u-title {
    position: relative;
    font-size: 40px;
    font-weight: bold;
    line-height: 1.6;
    text-align: center;
    color: #1e1e1e;

    @media (width <= 768px) {
      font-size: calc((100 / 390) * 32 * 1vw);
    }
    &::after {
      content: '';
      display: block flow;
      background-repeat: no-repeat;
      background-size: contain;
      background-position: center;
      background-image: url('../img/title-cube.svg');
      inline-size: 52px;
      block-size: 22px;
      margin-inline: auto;
      margin-block-start: 24px;
    }

    @media (width <= 768px) {
      &::after {
        margin-block-start: calc((100 / 390) * 24 * 1vw);
        inline-size: calc((100 / 390) * 52 * 1vw);
        block-size: calc((100 / 390) * 22 * 1vw);
      }
    }
    &[data-color='white'] {
      color: var(--white);
    }
  }
}
