@charset "UTF-8";

@layer utility {
  /* =====================
    Attribute
  ===================== */
  [data-transform='uppercase'] {
    text-transform: uppercase;
  }

  [lang='en'] {
    font-family: var(--title);
  }

  [data-visibility='hidden'] {
    visibility: hidden;
  }

  /* =====================
    u-inner
  ===================== */
  .u-inner {
    max-inline-size: 1280px;
    margin-inline: auto;

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

  /* =====================
    u-hgroup
  ===================== */
  .u-hgroup {
    position: relative;
    display: block grid;
    gap: 3px;
    inline-size: fit-content;

    @media (width <= 768px) {
      gap: calc((100 / 390) * 0 * 1vw);
      margin-inline-start: 4.1vw;
    }

    &::before {
      position: absolute;
      inset-block-start: 0;
      inset-inline-start: 0;
      inline-size: 39px;
      aspect-ratio: 1 / 1;
      content: '';
      background: var(--sub);
      border-radius: calc(infinity * 1px);
    }

    @media only screen and (width <= 768px) {
      &::before {
        inset-block-start: -0.2vw;
        inset-inline-start: -4.3vw;
        inline-size: calc((100 / 390) * 27 * 1vw);
      }
    }

    & span[lang='en'] {
      position: relative;
      padding-block-start: 1px;
      padding-inline-start: 25px;
      font-family: var(--title);
      font-size: 20px;
      font-weight: 500;
      color: var(--main);

      @media only screen and (width <= 768px) {
        padding-block-start: 0;
        padding-inline-start: 0;
        font-size: calc((100 / 390) * 14 * 1vw);
      }
    }

    .title {
      padding-inline-start: 24px;
      font-size: 32px;
      font-weight: 500;
      line-height: 1.4;
      color: var(--blue);

      @media only screen and (width <= 768px) {
        padding-inline-start: 0;
        font-size: calc((100 / 390) * 20 * 1vw);
      }
    }
  }

  .u-hgroup[data-color='white'] {
    .title {
      color: var(--white);
    }
  }

  .u-hgroup[data-align='center'] {
    justify-content: center;
    margin-inline: auto;
    text-align: center;

    & span[lang='en'] {
      padding-inline-start: 0;
    }

    .title {
      padding-inline-start: 0;
    }

    &::before {
      inset-inline-start: 5px;

      @media only screen and (width <= 768px) {
        inset-inline-start: -1vw;
      }
    }
  }

  /* =====================
    u-anchor
  ===================== */
  .u-anchor {
    display: block grid;
    grid-auto-flow: column;
    gap: 21px;
    align-items: center;
    align-self: flex-start;
    justify-content: flex-start;
    inline-size: fit-content;
    padding-block: 15px 15.5px;
    padding-inline: 39px 25px;
    font-size: 18px;
    line-height: 1.8;
    color: #1d1d1d;
    border: 1px solid var(--main);
    border-radius: 10px;
    transition: background 250ms ease 0s;
    will-change: background;

    @media only screen and (width <= 768px) {
      grid-template-columns: auto 1fr auto;
      gap: calc((100 / 390) * 19 * 1vw);
      padding-block: calc((100 / 390) * 10.3 * 1vw);
      padding-inline: calc((100 / 390) * 33 * 1vw) calc((100 / 390) * 0 * 1vw);
      font-size: calc((100 / 390) * 15 * 1vw);
      border: 1px solid var(--main);
      border-radius: calc((100 / 390) * 10 * 1vw);
    }

    @media (any-hover: hover) {
      &:hover {
        background: rgb(68 186 222 / 50%);
      }
    }

    &::after {
      inline-size: 32px;
      aspect-ratio: 1 / 1;
      content: '';
      background-image: url('../img/_common/icon/arrow-circle-blue.svg');
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
    }

    @media only screen and (width <= 768px) {
      &::after {
        inline-size: calc((100 / 390) * 26 * 1vw);
        translate: calc((100 / 390) * 3 * 1vw) 0;
      }
    }
  }

  /* ==== color ==== */
  .u-anchor[data-color='white'] {
    color: var(--white);
    border-color: var(--white);

    @media (any-hover: hover) {
      &:hover {
        background: rgb(255 255 255 / 30%);
      }
    }

    &::after {
      background-image: url('../img/_common/icon/arrow-circle-white.svg');
    }
  }

  /* ==== type ==== */
  .u-anchor[data-type='mail'] {
    gap: 14px;

    @media only screen and (width <= 768px) {
      gap: calc((100 / 390) * 16.1 * 1vw);
    }

    &::before {
      inline-size: 28.004px;
      aspect-ratio: 28.004 / 20;
      margin-inline-end: 0;
      content: '';
      background-color: currentcolor;
      mask-image: var(--icon-mail-small);
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
    }

    @media only screen and (width <= 768px) {
      &::before {
        inline-size: calc((100 / 390) * 28 * 1vw);
      }
    }
  }

  .u-anchor[data-type='download'] {
    &::after {
      inline-size: 32px;
      aspect-ratio: 1 / 1;
      content: '';
      background-image: url('../img/_common/icon/download-blue.svg');
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
    }

    @media only screen and (width <= 768px) {
      &::after {
        inline-size: calc((100 / 390) * 26 * 1vw);
      }
    }
  }

  .u-anchor[data-type='blank'] {
    &::after {
      inline-size: 32px;
      aspect-ratio: 1 / 1;
      content: '';
      background-image: url('../img/_common/icon/blank-blue.svg');
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
    }

    @media only screen and (width <= 768px) {
      &::after {
        inline-size: calc((100 / 390) * 26 * 1vw);
      }
    }
  }

  /* =====================
    u-hover
  ===================== */
  .u-hover {
    transition: opacity 0.3s ease-in-out;
    will-change: opacity;

    @media (any-hover: hover) {
      &:hover {
        opacity: 0.7;
      }
    }
  }

  /* =====================
    u-mv
  ===================== */
  .u-mv {
    position: relative;
    block-size: 440px;
    overflow: clip;

    @media only screen and (width <= 768px) {
      block-size: calc((100 / 390) * 270 * 1vw);
    }

    &::before,
    &::after {
      position: absolute;
      z-index: 1;
      display: block flow;
      inline-size: 370px;
      block-size: 200px;
      content: '';
      background: rgb(68 186 222 / 80%);
    }

    &::before {
      inset-block-start: 0;
      inset-inline-start: 0;
      inline-size: 370px;
      block-size: 200px;
      clip-path: polygon(100% 0, 0 0, 0 100%);
    }

    &::after {
      inset-block-end: 0;
      inset-inline-end: 0;
      clip-path: polygon(100% 100%, 100% 0, 0 100%);
    }

    @media only screen and (width <= 768px) {
      &::before {
        inline-size: calc((100 / 390) * 240 * 1vw);
        block-size: calc((100 / 390) * 80 * 1vw);
      }

      &::after {
        inline-size: calc((100 / 390) * 240 * 1vw);
        block-size: calc((100 / 390) * 80 * 1vw);
      }
    }

    /* ==== picture ==== */
    .picture {
      position: absolute;
      inset-block-start: 0;
      inset-inline-end: 0;
      display: block flow;
      inline-size: 100%;
      block-size: inherit;
      pointer-events: none;

      & img {
        position: absolute;
        inset-block-start: 50%;
        inset-inline-start: 50%;
        display: block flow;
        inline-size: 100%;
        block-size: inherit;
        object-fit: cover;
        translate: -50% -50%;
      }
    }

    /* ==== inner ==== */
    .inner {
      position: relative;
      z-index: 2;
      block-size: inherit;
      padding-block-start: 201px;
      padding-inline-start: 120px;

      @media only screen and (width <= 768px) {
        padding-block-start: 30.1vw;
        padding-inline-start: calc((100 / 390) * 35.6 * 1vw);
      }

      .head {
        display: block grid;
        gap: 13px;
        inline-size: fit-content;
        color: white;

        @media only screen and (width <= 768px) {
          gap: 1.8vw;
        }

        & [lang='en'] {
          margin-block: calc((1em - 1lh) / 2);
          font-family: var(--title);
          font-size: 64px;
          font-weight: 500;
          line-height: 1;
          text-shadow: 0 0 7px rgb(44 49 59 / 25%);

          @media only screen and (width <= 768px) {
            font-size: calc((100 / 390) * 36 * 1vw);
            text-shadow: 0 0 calc((100 / 390) * 7 * 1vw) rgb(44 49 59 / 25%);
          }
        }

        .title {
          margin-block: calc((1em - 1lh) / 2);
          font-size: 24px;
          font-weight: 600;
          line-height: 1;
          text-shadow: 0 0 7px rgb(44 49 59 / 25%);

          @media only screen and (width <= 768px) {
            font-size: calc((100 / 390) * 15 * 1vw);
            text-shadow: 0 0 calc((100 / 390) * 7 * 1vw) rgb(44 49 59 / 25%);
          }
        }
      }
    }

    /* ==== .u-breadcrumb ==== */
    .u-breadcrumb {
      position: absolute;
      inset-block-end: 25px;
      inset-inline-end: 40px;
      color: var(--white);
      translate: 0 1px;

      @media only screen and (width <= 768px) {
        inset-block-end: calc((100 / 390) * 15 * 1vw);
        inset-inline-end: calc((100 / 390) * 16 * 1vw);
        translate: 0 0;
      }
    }
  }

  /* =====================
    u-breadcrumb
  ===================== */
  .u-breadcrumb {
    display: block flex;
    gap: 15px;
    align-items: center;
    inline-size: fit-content;

    @media only screen and (width <= 768px) {
      flex-wrap: wrap;
      gap: calc((100 / 390) * 22 * 1vw) calc((100 / 390) * 13 * 1vw);
      justify-content: flex-end;
      padding-inline-start: calc((100 / 390) * 2 * 1vw);
    }

    & li {
      display: block flex;
      gap: 17px;
      margin-block: calc((1em - 1lh) / 2);

      @media (width <= 768px) {
        gap: calc((100 / 390) * 13.6 * 1vw);
      }
    }

    & li:not(:last-child)::after {
      flex-shrink: 0;
      inline-size: 6px;
      aspect-ratio: 5 / 13;
      content: '';
      background-color: var(--white);
      mask-image: var(--icon-breadcrumb);
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
      translate: -1px 2px;
    }

    @media (width <= 768px) {
      & li:not(:last-child)::after {
        inline-size: calc((100 / 390) * 5 * 1vw);
      }
    }

    .item {
      display: block flex;
      gap: 7px;
      margin-block: calc((1em - 1lh) / 2);
      font-size: 14px;
      line-height: 1;

      @media (width <= 768px) {
        gap: calc((100 / 390) * 7 * 1vw);
        font-size: calc((100 / 390) * 13 * 1vw);
        word-break: break-all;
      }

      &[lang='en'] {
        font-family: var(--sans-serif);
      }

      &:is(a) {
        transition: all 250ms ease 0s;

        @media (any-hover: hover) {
          &:hover {
            opacity: 0.7;
          }
        }
      }
    }
  }

  /* =====================
    u-table
  ===================== */
  .u-table {
    --_border-color: #e3e3e3;

    display: block grid;
    grid-template-columns: 318px 1fr;
    margin-inline: auto;

    @media (width <= 768px) {
      grid-template-columns: 28.2vw 1fr;
      inline-size: 100%;
    }

    /* ==== tr ==== */
    .tr {
      display: block grid;
      grid-template-columns: subgrid;
      grid-column: 1 / -1;
      align-items: self-start;

      & :where(dt, dd) {
        block-size: 100%;
        padding-block: 31px 30.2px;
        font-size: 18px;
        color: var(--black);

        @media (width <= 768px) {
          padding-block: calc((100 / 390) * 15 * 1vw) calc((100 / 390) * 15.1 * 1vw);
          font-size: calc((100 / 390) * 15 * 1vw);
          word-break: break-all;
        }

        @media (width <= 768px) {
          & a {
            color: var(--blue);
            text-decoration: underline;
          }
        }
      }

      &:last-child {
        & dt {
          border-block-end-color: var(--_border-color);
        }

        & dd {
          word-break: break-all;
          border-block-end-color: var(--_border-color);
        }
      }
    }

    /* ==== dt ==== */
    & dt {
      place-content: center;
      padding-inline-start: 88px;
      font-size: 18px;
      font-weight: 500;
      border-block-start: 1px solid var(--_border-color);
      border-block-end: 1px solid transparent;

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

    /* ==== dd ==== */
    & dd {
      padding-inline: 10px;
      font-weight: 400;
      line-height: 1.8;
      border-block-start: 1px solid var(--_border-color);
      border-block-end: 1px solid transparent;

      /* unit */
      .unit[data-flow='row'] {
        display: block grid;
      }

      .unit[data-flow='column'] {
        display: block flex;
        gap: 18px;

        @media only screen and (width <= 768px) {
          display: block flex;
          flex-direction: column;
          gap: 0;
        }
      }

      & li {
        position: relative;
        padding-inline-start: 1em;

        &::before {
          position: absolute;
          inset-block-start: 0;
          inset-inline-start: 0;
          content: '・';
        }
      }

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