@charset "UTF-8";

/* =====================
  header active
===================== */
@layer style {
  .header .nav ul {
    --active-anchor: --item;

    &::before {
      opacity: 1;
    }
  }
}

/* =====================
  article
===================== */
article {
  padding-block: 0 160px;

  @media (width <=768px) {
    padding-block: var(--nudge-3) var(--nudge-10);
  }

  /* ==== u-inner ==== */
  .u-inner {
    display: block grid;

    @media (width > 768px) {
      padding-inline: 80px;
    }

    h2 {
      font-size: 40px;

      @media (width <=768px) {
        font-size: calc((100 / 390) * 26 * 1vw);
      }
    }

    .body {
      margin-block-start: 31px;

      @media (width <=768px) {
        margin-block-start: var(--nudge-2);
      }
    }

    .link {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.6px 40px;
      margin-block-start: 70px;

      @media (width <=768px) {
        display: block flex;
        flex-direction: column;
        gap: var(--nudge-2);
        margin-block-start: var(--nudge-3);
      }

      a {
        position: relative;
        display: block flex;
        gap: 0 30px;
        align-items: center;
        padding-block: 19px;
        border-block-end: 1px solid #d5d5d5;

        @media (width <=768px) {
          gap: var(--nudge-1);
          padding-block: var(--nudge-1);
        }

        img {
          flex-shrink: 0;

          @media (width <=768px) {
            inline-size: calc((100 / 390) * 80 * 1vw);
          }
        }

        .title {
          font-family: var(--zen);
          font-size: 22px;
          font-weight: 500;

          @media (width <=768px) {
            font-size: calc((100 / 390) * 18 * 1vw);
          }
        }

        .icon {
          position: absolute;
          inset-block-end: 19px;
          inset-inline-end: 0;
          display: block grid;
          place-content: center;
          inline-size: 40px;
          aspect-ratio: 1 / 1;
          content: '';
          background: var(--primary);
          border: 2px solid var(--primary);
          border-radius: 5px;
          transition: all 250ms ease 0s;

          @media (width <=768px) {
            position: absolute;
            inset-block-start: 50%;
            inline-size: calc((100 / 390) * 36 * 1vw);
            border-radius: calc((100 / 390) * 5 * 1vw);
            translate: 0 -50%;
          }

          &::before {
            z-index: 2;
            inline-size: 15px;
            aspect-ratio: 15 / 11;
            content: '';
            background-color: white;
            mask-image: var(--icon-arrow);
            mask-repeat: no-repeat;
            mask-position: center;
            mask-size: contain;
            transition: all 250ms ease 0s;

            @media (width <=768px) {
              inset-inline-end: calc((100 / 390) * 13 * 1vw);
              inline-size: calc((100 / 390) * 15 * 1vw);
            }
          }
        }

        @media (any-hover: hover) {
          &:hover {
            .icon {
              background: white;
              border-color: var(--primary);

              &::before {
                background-color: var(--primary);
                transform: translateX(0.1em);
              }
            }
          }
        }
      }
    }
  }
}
