@charset "UTF-8";

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

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

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

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

  /* =====================
    u-second
  ===================== */
  .u-second {
    .main {
      padding-block-start: 100.86px;

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

  /* =====================
    u-tabs
  ===================== */
  .u-tabs {
    margin-block-start: 111px;

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

      .u-inner {
        padding-inline: calc((100 / 390) * 15 * 1vw);
      }
    }

    .tab {
      display: block flex;
      gap: 80px;
      align-items: center;
      justify-content: center;

      @media only screen and (width <= 768px) {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        padding: 1px;
      }

      & button {
        display: block grid;
        place-items: center;
        inline-size: 280px;
        padding-block: 22px;
        font-weight: 500;
        color: var(--primary);
        background: white;
        border: 1px solid var(--primary);
        transition: all 250ms ease 0s;

        @media only screen and (width <= 768px) {
          inline-size: unset;
          padding-block: calc((100 / 390) * 13.1 * 1vw);
          border: none;
          box-shadow: 0 0 0 1px var(--primary);
        }

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

      & button[aria-selected='true'] {
        color: white;
        pointer-events: none;
        background: var(--primary);
      }
    }
  }

  /* =====================
    u-hgroup
  ===================== */
  .u-hgroup {
    display: block grid;
    grid-template-rows: repeat(auto-fit, minmax(0, min-content));
    gap: 14px;
    inline-size: fit-content;

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

    & [lang='en'] {
      font-family: var(--outfit);
      font-size: 48px;
      font-weight: 400;
      line-height: 1;

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

    .title {
      display: block flex;
      gap: 4px;
      align-items: center;
      margin-block: calc((1em - 1lh) / 2);
      font-family: var(--yumin);
      font-weight: 600;
      color: var(--primary);
      letter-spacing: 0.8px;

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

      &::before {
        display: block flow;
        flex-shrink: 0;
        inline-size: 6px;
        aspect-ratio: 1 / 1;
        content: '';
        background: currentcolor;
        border-radius: calc(infinity * 1px);
        translate: 0 -1px;
      }

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

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

  /* =====================
    u-mv
  ===================== */
  .u-mv {
    position: relative;
    overflow: clip;

    /* ==== head ==== */
    .head {
      position: relative;
      block-size: 322px;

      @media only screen and (width <= 768px) {
        block-size: 100%;
      }
    }

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

      @media only screen and (width <= 768px) {
        position: relative;
        inset: unset;
        inline-size: calc((100 / 390) * 372 * 1vw);
        block-size: calc((100 / 390) * 141 * 1vw);
        padding-inline-start: calc((100 / 390) * 18 * 1vw);
        margin-block-start: calc((100 / 390) * 35 * 1vw);
        margin-inline: auto 0;
        overflow: hidden;
      }

      & img {
        position: absolute;
        inset-block-start: 50%;
        inset-inline-start: 50%;
        display: block flow;
        inline-size: 100%;
        block-size: inherit;
        pointer-events: none;
        object-fit: cover;
        border-radius: 16px 0 0;
        translate: -50% -50%;

        @media only screen and (width <= 768px) {
          border-radius: calc((100 / 390) * 16 * 1vw) 0 0;
        }
      }
    }

    /* ==== inner ==== */
    .inner {
      position: relative;
      z-index: 3;
      max-inline-size: 1200px;
      block-size: inherit;
      margin-inline: auto;
    }

    /* ==== hgroup ==== */
    & hgroup {
      position: absolute;
      inset-block-end: 0;
      z-index: 3;
      display: block grid;
      gap: 15px;
      inline-size: fit-content;
      padding-block: 34px 27px;
      padding-inline: 0 80px;
      background: var(--bg);
      border-radius: 0 16px 0 0;

      @media only screen and (width <= 768px) {
        position: unset;
        gap: 2vw;
        padding-block: 13.1vw 0;
        padding-inline: calc((100 / 390) * 20 * 1vw);
        background: transparent;
      }

      &::before {
        position: absolute;
        inset-inline: -100vw 100%;
        inline-size: 100vw;
        block-size: 100%;
        content: '';
        background: var(--bg);
      }

      @media only screen and (width <= 768px) {
        &::before {
          display: none;
        }
      }

      .title {
        z-index: 2;
        margin-block: calc((1em - 1lh) / 2);
        font-family: var(--yumin);
        font-size: 20px;
        font-weight: 600;
        line-height: 1;
        color: var(--primary);

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

      & [lang='en'] {
        z-index: 2;
        font-family: var(--outfit);
        font-size: 72px;
        font-weight: 400;
        line-height: 1;
        color: var(--color-text-primary);

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

  /* =====================
    u-breadcrumb
  ===================== */
  .u-breadcrumb {
    display: block flex;
    gap: 9px;
    justify-content: flex-end;
    max-inline-size: 1200px;
    margin-block-start: 22px;
    margin-inline: auto;
    font-size: 15px;

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

    & li + li::before {
      display: inline-flex;
      margin-inline-end: 9px;
      content: '-';

      @media only screen and (width <= 768px) {
        margin-inline-end: calc((100 / 390) * 9 * 1vw);
      }
    }
  }

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

    position: relative;
    display: block grid;
    grid-template-columns: 200px 1fr;
    max-inline-size: 1040px;
    margin-inline: auto;

    @media only screen and (width <= 768px) {
      grid-template-columns: 23vw 1fr;
      padding-inline: calc((100 / 390) * 4 * 1vw);
    }

    /* ==== tr ==== */
    .tr {
      position: relative;
      display: block grid;
      grid-template-columns: subgrid;
      grid-column: 1 / -1;

      @media only screen and (width <= 768px) {
        grid-template-columns: unset;
        padding-block: calc((100 / 390) * 22.1 * 1vw) calc((100 / 390) * 23.4 * 1vw);
      }

      @media only screen and (width <= 768px) {
        &::before {
          position: absolute;
          inset-block-start: 0;
          inset-inline-start: 0;
          z-index: 2;
          inline-size: calc((100 / 390) * 120 * 1vw);
          block-size: calc((100 / 390) * 2 * 1vw);
          content: '';
          background: var(--primary);
        }

        &::after {
          position: absolute;
          inset-block-start: 0;
          inset-inline-start: 0;
          z-index: 1;
          inline-size: 100%;
          block-size: calc((100 / 390) * 2 * 1vw);
          content: '';
          background: var(--_border-color);
        }
      }

      & :where(dt, dd) {
        block-size: 100%;

        @media (width > 768px) {
          padding-block: 31px 30.3px;
        }

        & a:not([href^='tel:']) {
          color: var(--primary);
          text-decoration: underline;

          @media (any-hover: hover) {
            &:hover {
              text-decoration: none;
            }
          }
        }

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

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

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

    @media only screen and (width <= 768px) {
      @media only screen and (width <= 768px) {
        &::before {
          position: absolute;
          inset-block-end: -0.2vw;
          inset-inline-start: 0;
          z-index: 2;
          inline-size: calc((100 / 390) * 120 * 1vw);
          block-size: calc((100 / 390) * 2 * 1vw);
          content: '';
          background: var(--primary);
        }

        &::after {
          position: absolute;
          inset-block-end: -0.2vw;
          inset-inline-start: 0;
          z-index: 1;
          inline-size: 100%;
          block-size: calc((100 / 390) * 2 * 1vw);
          content: '';
          background: var(--_border-color);
        }
      }
    }

    /* ==== dt ==== */
    & dt {
      place-content: center start;
      font-weight: 500;

      @media (width > 768px) {
        border-block-start: 1px solid var(--primary);
        border-block-end: 1px solid transparent;
      }
    }

    /* ==== dd ==== */
    & dd {
      padding-inline: 0;

      @media (width > 768px) {
        border-block-start: 1px solid var(--_border-color);
        border-block-end: 1px solid transparent;
      }

      @media only screen and (width <= 768px) {
        border-block-start: 1px solid transparent;
      }
    }
  }

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

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

  /* =====================
    u-head
  ===================== */
  .u-head {
    display: block grid;
    gap: 6px;
    inline-size: fit-content;

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

    /* ==== head ==== */
    .head {
      font-family: var(--yumin);
      font-size: 20px;
      font-weight: 600;
      color: var(--primary);

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

    /* ==== [lang='en'] ==== */
    & [lang='en'] {
      margin-block: calc((1em - 1lh) / 2);
      font-family: var(--outfit);
      font-size: 72px;
      font-weight: 400;
      line-height: 1;

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

  .u-head[data-size='large'] {
    @media only screen and (width <= 768px) {
      .head {
        font-size: calc((100 / 390) * 20 * 1vw);
      }

      & [lang='en'] {
        font-size: calc((100 / 390) * 72 * 1vw);
      }
    }
  }

  .u-head[data-align='center'] {
    justify-items: center;
    margin-inline: auto;
    text-align: center;
  }

  /* =====================
    u-anchor
  ==================== */
  .u-anchor {
    position: relative;
    display: block grid;
    grid-auto-flow: column;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
    inline-size: fit-content;
    min-inline-size: 282px;
    padding-block: 28px;
    padding-inline: 28px;
    font-family: var(--yumin);
    font-weight: 600;
    line-height: 1;
    color: var(--color-text-primary);
    background: white;
    border: 1px solid var(--primary);
    border-radius: calc(infinity * 1px);
    transition: all 250ms ease 0s;

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

    @media only screen and (width <= 768px) {
      gap: 8.9vw;
      padding-block: 7.2vw;
      padding-inline: 7.2vw 7.7vw;
      font-size: calc((100 / 390) * 16 * 1vw);
    }

    &::after {
      inline-size: 30px;
      aspect-ratio: 30 / 6;
      content: '';
      background-color: currentcolor;
      mask-image: var(--icon-arrow);
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
      transform: translateY(-4px);
    }

    @media only screen and (width <= 768px) {
      &::after {
        inline-size: 28px;
        transform: translateY(-0.7vw);
      }
    }

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

  .u-anchor[data-color='transparent'] {
    padding-block: 27px;
    color: white;
    background: transparent;
    border: 2px solid currentcolor;

    @media only screen and (width <= 768px) {
      padding-block: calc((100 / 390) * 27 * 1vw);
      padding-inline: 7.2vw 7.1vw;
      border: calc((100 / 390) * 2 * 1vw) solid currentcolor;
    }

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

  .u-anchor[data-color='blue'] {
    color: white;
    background: var(--primary);
    border: 2px solid var(--primary);

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

  .u-anchor[data-color='lightblue'] {
    color: white;
    background: #003aab;
    border: 2px solid #003aab;

    @media (any-hover: hover) {
      &:hover {
        color: #003aab;
        background: white;
      }
    }
  }

  .u-anchor[target='_blank'] {
    min-inline-size: unset;
    font-family: var(--sans-serif);
    font-weight: 400;

    &::after {
      inline-size: 20px;
      aspect-ratio: 1 / 1;
      mask-image: var(--icon-download);
      transform: unset;
    }

    @media only screen and (width <= 768px) {
      &::after {
        position: absolute;
        inset-block-start: 53%;
        inset-inline-end: calc((100 / 390) * 22 * 1vw);
        inline-size: calc((100 / 390) * 20 * 1vw);
        translate: 0 -50%;
      }
    }
  }

  .u-anchor[data-type='map'] {
    gap: 10px;
    min-inline-size: unset;
    padding-block: 13px;
    padding-inline: 25px 26px;
    font-family: var(--outfit);
    font-weight: 400;
    border: 2px solid var(--primary);

    @media only screen and (width <= 768px) {
      display: block;
      gap: 8.1vw;
      padding-block: 4vw;
      padding-inline: 6.5vw 15.3vw;
      border: calc((100 / 390) * 2 * 1vw) solid var(--primary);
    }

    &::after {
      position: relative;
      display: block;
      inline-size: 24px;
      aspect-ratio: 1 / 1;
      content: '';
      background: var(--primary);
      mask-image: var(--icon-blank);
      transform: unset;
    }

    @media only screen and (width <= 768px) {
      &::after {
        position: absolute;
      }
    }

    @media (any-hover: hover) {
      &:hover {
        &::after {
          background: white;
        }
      }
    }

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

  .u-anchor[data-align='center'] {
    display: block grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;

    &::after {
      display: none;
    }
  }

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

    &[data-bullet='circle'] {
      & li {
        position: relative;
        padding-inline-start: 24px;

        @media only screen and (width <= 768px) {
          padding-inline-start: calc((100 / 390) * 24 * 1vw);
          word-break: normal;
        }

        &::before {
          position: absolute;
          inset-block-start: 52%;
          inset-inline-start: 10px;
          inline-size: 4px;
          aspect-ratio: 1 / 1;
          content: '';
          background: currentcolor;
          border-radius: calc(infinity * 1px);
          translate: 0 -50%;
        }

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