@charset "UTF-8";

@layer utility {
  /* =====================
    Attributes
  ===================== */
  [lang='en'] {
    font-family: var(--title);
  }

  [data-text='uppercase'] {
    text-transform: uppercase;
  }

  /* =====================
    u-second
  ===================== */
  .u-second {
    background: #f6f7fa;
  }

  /* =====================
    u-inner
  ===================== */
  .u-inner {
    position: relative;
    z-index: 2;
    max-inline-size: 1200px;
    margin-inline: auto;

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

  /* =====================
    u-hover
  ===================== */
  .u-hover {
    @media (any-hover: hover) {
      transition: opacity 300ms ease 0ms;

      &:hover {
        opacity: 0.7;
      }
    }
  }

  /* =====================
    u-head
  ===================== */
  .u-head {
    display: block grid;
    gap: 7px;

    @media (width <= 768px) {
      gap: 2.2vw;
    }

    /* ==== title ==== */
    .title {
      font-size: 16px;
      color: var(--primary);
      letter-spacing: 1.28px;

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

    /* en */
    & span[lang='en'] {
      margin-block: calc((1em - 1lh) / 2);
      font-size: 64px;
      font-weight: 500;
      color: var(--text-primary);

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

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

  /* =====================
    u-anchor
  ===================== */
  .u-anchor {
    --_color: var(--primary);
    --_arrow-color: white;

    position: relative;
    display: block grid;
    grid-template-columns: auto 34px;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    inline-size: fit-content;
    padding-block: 11px;
    padding-inline: 24px 10px;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.48px;
    border-color: var(--primary);
    border-width: 2px;
    border-radius: 8px;
    transition: all 250ms ease 0s;

    @media (width <= 768px) {
      grid-template-columns: auto calc((100 / 390) * 34 * 1vw);
      gap: calc((100 / 390) * 16 * 1vw);
      padding-block: calc((100 / 390) * 11 * 1vw);
      padding-inline: calc((100 / 390) * 24 * 1vw) calc((100 / 390) * 10 * 1vw);
      font-size: calc((100 / 390) * 16 * 1vw);
      letter-spacing: calc((100 / 390) * 0.48 * 1vw);
      border-width: calc((100 / 390) * 2 * 1vw);
      border-radius: calc((100 / 390) * 8 * 1vw);
    }

    &::after {
      display: block flow;
      inline-size: 34px;
      aspect-ratio: 1 / 1;
      content: '';
      background: var(--_color);
      border-radius: 4px;
      transition: inherit;
    }

    @media (width <= 768px) {
      &::after {
        inline-size: calc((100 / 390) * 34 * 1vw);
        border-radius: calc((100 / 390) * 4 * 1vw);
      }
    }

    &::before {
      position: absolute;
      inset-block: auto;
      inset-inline-end: 23px;
      z-index: 2;
      inline-size: 9px;
      aspect-ratio: 1 / 1;
      content: '';
      background-color: var(--_arrow-color);
      mask-image: var(--icon-arrow);
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
      transition: inherit;
    }

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

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

        &::before {
          background-color: var(--_color);
          translate: 20% 0;
        }

        &::after {
          background: white;
        }
      }
    }
  }

  .u-anchor[data-color='white'] {
    --_color: white;
    --_arrow-color: var(--primary);

    color: white;
    border-color: white;

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

        --_arrow-color: white;

        &::after {
          background: var(--primary);
        }
      }
    }
  }

  .u-anchor[target='_blank'] {
    &::before {
      inset-inline-end: 27px;
      inline-size: 13px;
      mask-image: var(--icon-blank);
    }
  }

  /* =====================
    u-mv
  ===================== */
  .u-mv {
    position: relative;
    z-index: 3;
    padding-inline-start: 80px;

    &::after {
      position: absolute;
      inset-block-start: 50%;
      inset-inline-start: 35px;
      z-index: 2;
      display: block flow;
      inline-size: 13px;
      block-size: 219px;
      content: '';
      background-image: url('../img/_common/company.svg');
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      translate: 0 -22%;
    }

    @media (width <= 768px) {
      padding-inline-start: 0;

      &::after {
        display: none;
      }
    }

    /* ==== .head ==== */
    .head {
      position: relative;
      z-index: 2;
      min-block-size: 550px;
      padding-block-start: 272px;

      @media (width <= 768px) {
        min-block-size: calc((100 / 390) * 300 * 1vw);
        padding-block-start: 35.3vw;
        padding-inline-start: 0;
      }

      /* ==== hgroup ==== */
      & hgroup {
        position: relative;
        z-index: 2;
        display: block grid;
        inline-size: fit-content;

        & span[lang='en'] {
          padding-block: 20px 9px;
          padding-inline: 82px 24px;
          margin-block: calc((1em - 1lh) / 2);
          font-size: 70px;
          font-weight: 500;
          line-height: 1;
          color: var(--text-primary);
          background: #f6f7fa;
          border-radius: 0 8px 8px 0;

          @media (width <= 768px) {
            padding-block: calc((100 / 390) * 12 * 1vw) calc((100 / 390) * 16 * 1vw);
            padding-inline: calc((100 / 390) * 16 * 1vw) 4.3vw;
            font-size: calc((100 / 390) * 44 * 1vw);
            border-radius: 0 calc((100 / 390) * 8 * 1vw) calc((100 / 390) * 8 * 1vw) 0;
          }
        }

        & h1 {
          padding-block: 23px 0;
          padding-inline-start: 80px;
          margin-block: calc((1em - 1lh) / 2);
          font-size: 22px;
          font-weight: 400;
          color: white;
          letter-spacing: 2.2px;

          @media (width <= 768px) {
            padding-block-start: 4.4vw;
            padding-inline: 4.2vw;
            font-size: calc((100 / 390) * 20 * 1vw);
            letter-spacing: calc((100 / 390) * 2 * 1vw);
          }
        }
      }

      /* ==== picture ==== */
      .picture {
        display: block flow;

        & img {
          position: absolute;
          top: 50%;
          left: 50%;
          display: block flow;
          inline-size: 100%;
          block-size: 100%;
          pointer-events: none;
          object-fit: cover;
          object-position: left bottom;
          translate: -50% -50%;
        }
      }
    }
  }

  /* =====================
    breadcrumb
  ===================== */
  .breadcrumb {
    display: block flex;
    flex-wrap: wrap;
    gap: 15.9px;
    align-items: center;
    align-self: flex-end;
    inline-size: fit-content;
    padding-inline-end: 40px;
    margin-block-start: 21px;
    margin-inline: auto 0;
    font-family: var(--yugo);
    font-size: 12px;
    font-weight: 500;

    @media (width <= 768px) {
      gap: calc((100 / 390) * 18 * 1vw);
      padding-inline-end: calc((100 / 390) * 16 * 1vw);
      margin-block-end: calc((100 / 390) * 19 * 1vw);
      font-size: calc((100 / 390) * 12 * 1vw);
    }

    /* lang */
    [lang='en'] {
      font-family: var(--yugo);
      font-weight: 500;
      text-transform: uppercase;
    }

    & li {
      display: block flex;
      gap: 15.9px;
      align-items: center;
      margin-block: calc((1em - 1lh) / 2);
    }

    & li + li::before {
      flex-shrink: 0;
      inline-size: 9px;
      aspect-ratio: 1 / 1;
      content: '';
      background-color: currentcolor;
      mask-image: var(--icon-breadcrumb);
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
    }

    @media (width <= 768px) {
      & li + li::before {
        inline-size: calc((100 / 390) * 5.76 * 1vw);
      }
    }

    .item {
      display: block flex;
      gap: 6px;
      align-items: center;

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

      &[href='/'] {
        transition: all 250ms ease 0s;

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

        &::before {
          inline-size: 13px;
          aspect-ratio: 13 / 12;
          content: '';
          background-color: #98afe8;
          mask-image: var(--icon-home);
          mask-repeat: no-repeat;
          mask-position: center;
          mask-size: contain;
          translate: 1px -1px;
        }

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

  /* =====================
    .u-simple-mv
  ===================== */
  .u-simple-mv {
    position: relative;
    display: block flex;
    padding-block: 114px 0;

    @media (width > 768px) {
      flex-direction: column-reverse;
    }

    @media (width <= 768px) {
      flex-direction: column;
      padding-block: 0;
    }

    &::before {
      position: absolute;
      inset-block-start: 0;
      inset-inline-end: 0;
      display: block flow;
      inline-size: 743px;
      block-size: 597px;
      pointer-events: none;
      content: '';
      background-image: url('../img/_common/illust.webp');
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
    }

    @media (width <= 768px) {
      &::before {
        inset-block-start: -44.7vw;
        inline-size: calc((100 / 390) * 310 * 1vw);
        aspect-ratio: 743 / 597;
      }
    }

    /* ==== hgroup ==== */
    & hgroup {
      display: block grid;
      gap: 14px;
      padding-block: 116px 0;
      margin-inline: auto;
      text-align: center;

      @media (width <= 768px) {
        gap: calc((100 / 390) * 8 * 1vw);
        padding-block: 116px 0;
      }

      .title {
        margin-block: calc((1em - 1lh) / 2);
        color: var(--primary);
        letter-spacing: 1.28px;

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

      & [lang='en'] {
        margin-block: calc((1em - 1lh) / 2);
        font-size: 64px;
        font-weight: 500;
        line-height: 1;
        color: var(--text-primary);

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

    /* ==== breadcrumb ==== */
    .breadcrumb {
      @media (width <= 768px) {
        margin-block-start: calc((100 / 390) * 60 * 1vw);
      }
    }
  }

  /* =====================
    .u-local-nav
  ===================== */
  .u-local-nav {
    display: block flex;
    flex-wrap: wrap;
    gap: 10.5px;
    justify-content: center;
    padding-block: 119px 0;

    @media (width <= 768px) {
      display: block grid;
      grid-template-columns: repeat(2, 1fr);
      gap: calc((100 / 390) * 13 * 1vw);
      justify-content: center;
      padding-block: 8vw 0;
      padding-inline: calc((100 / 390) * 20 * 1vw);
    }

    & button {
      position: relative;
      z-index: 2;
      display: block grid;
      align-items: center;
      padding-block: 16.5px;
      padding-inline: 39px;
      font-size: 15px;
      font-weight: 500;
      line-height: 1;
      background: white;
      border: 1px solid var(--primary);
      border-radius: calc(infinity * 1px);
      transition: all 250ms ease 0s;

      @media (width <= 768px) {
        padding-block: calc((100 / 390) * 12 * 1vw);
        padding-inline: calc((100 / 390) * 20 * 1vw);
        font-size: calc((100 / 390) * 13 * 1vw);
      }

      @media (width <= 768px) {
        &::after {
          position: absolute;
          inset-block-start: 50%;
          inset-inline-end: calc((100 / 390) * 10 * 1vw);
          inline-size: calc((100 / 390) * 12 * 1vw);
          aspect-ratio: 1 / 1;
          content: '';
          background-color: var(--primary);
          mask-image: var(--icon-arrow);
          mask-repeat: no-repeat;
          mask-position: center;
          mask-size: contain;
          rotate: 0 0 1 90deg;
          translate: 0 -50%;
        }
      }

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

  /* =====================
    .u-bg
  ===================== */
  .u-bg {
    position: relative;

    &::before {
      position: absolute;
      inset-block-start: -130px;
      inset-inline-end: 0;
      z-index: 1;
      inline-size: 743px;
      block-size: 597px;
      pointer-events: none;
      content: '';
      background-image: url('../img/_common/illust.webp');
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
    }

    @media (width <= 768px) {
      &::before {
        inset-block-start: -44.7vw;
        inline-size: calc((100 / 390) * 310 * 1vw);
        aspect-ratio: 743 / 597;
      }
    }
  }

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

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

    @media (width <= 768px) {
      grid-template-columns: 23vw 1fr;
      font-size: calc((100 / 390) * 14 * 1vw);
    }

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

      & :where(dt, dd) {
        block-size: 100%;
        padding-block: 23.2px;
        font-weight: 400;

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

          /* word-break: auto-phrase; */
        }

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

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

        @media (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);
        }
      }
    }

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

      /* word-break: keep-all; */
      border-block-start: 1px solid var(--primary);
      border-block-end: 1px solid transparent;
    }

    /* ==== dd ==== */
    & dd {
      padding-inline: 0;
      word-break: break-all;
      border-block-start: 1px solid var(--_border-color);
      border-block-end: 1px solid transparent;
    }
  }
}
