@charset "UTF-8";

@layer utility {
  /* =====================
    u-hover
  ===================== */
  .u-hover {
    transition: opacity 250ms ease 0s;
    @media (any-hover: hover) {
      &:hover {
        opacity: 0.7;
      }
    }
  }

  /* =====================
    u-inner
  ===================== */
  .u-inner {
    inline-size: 1440px;
    margin-inline: auto;
    padding-inline: 80px;

    @media (width <= 768px) {
      inline-size: 100%;
      padding-inline: calc((100 / 390) * 16 * 1vw);
    }
  }

  /* =====================
    u-anchor
  ===================== */
  .u-anchor {
    display: block flex;
    inline-size: fit-content;
    padding: 14px 24px;
    border-radius: 8px;
    background-color: #3f3f3f;

    @media (width <= 768px) {
      padding: calc((100 / 390) * 16 * 1vw) calc((100 / 390) * 24 * 1vw);
      border-radius: calc((100 / 390) * 8 * 1vw);
    }

    .btn-txt {
      position: relative;
      font-family: var(--yumin);
      font-weight: 600;
      color: #fff;
      display: block flex;
      align-items: center;
      gap: 40px;

      @media (width <= 768px) {
        gap: calc((100 / 390) * 40 * 1vw);
      }
    }

    &[data-color='white'] {
      background-color: #fff;
      .btn-txt {
        color: #3f3f3f;
      }
    }
    &[data-color='red'] {
      background-color: var(--primary);
    }

    &[data-color='transparent'] {
      background-color: transparent;
      .btn-txt {
        color: #222;
      }
    }
    &[data-color='line'] {
      background-color: transparent;
      border: 1px solid #fff;
    }
  }

  /* =====================
    u-arrow
  ===================== */
  .u-arrow {
    position: relative;

    &::before {
      content: '';
      display: block flow;
      inline-size: 13px;
      aspect-ratio: 13 / 8;
      mask-repeat: no-repeat;
      mask-size: contain;
      mask-position: center;
      mask-image: var(--arrow);
      background-color: #3f3f3f;
      position: absolute;
      top: 50%;
      right: 5px;
      transform: translateY(-50%);
    }

    &::after {
      content: '';
      display: block flow;
      inline-size: 22px;
      aspect-ratio: 1/1;
      border-radius: 4px;
      background-color: #fff;
    }

    &[data-color='white'] {
      &::before {
        background-color: #fff;
      }
      &::after {
        background-color: #3f3f3f;
      }
    }
    &[data-color='red'] {
      &::before {
        background-color: var(--primary);
      }
      &::after {
        background-color: #fff;
      }
    }
    &[data-color='re-red'] {
      &::before {
        background-color: #fff;
      }
      &::after {
        background-color: var(--primary);
      }
    }

    @media only screen and (width <= 768px) {
      &::before {
        inline-size: calc((100 / 390) * 12 * 1vw);
        aspect-ratio: 12 / 8;
        right: calc((100 / 390) * 5 * 1vw);
      }

      &::after {
        inline-size: calc((100 / 390) * 22 * 1vw);
        border-radius: calc((100 / 390) * 4 * 1vw);
      }
    }
  }

  /* =====================
  u-h2-title
===================== */
  .u-h2-title {
    display: block grid;
    grid-template-columns: repeat(2, max-content);
    gap: 24px;
    align-items: center;

    @media (width <= 768px) {
      gap: calc((100 / 390) * 16 * 1vw);
    }

    & > span[lang='en'] {
      font-family: var(--title);
      font-size: 48px;
      color: #d91a1a;

      @media (width <= 768px) {
        font-size: calc((100 / 390) * 38 * 1vw);
      }
    }

    & > h2.title {
      position: relative;
      font-family: var(--yumin);
      font-weight: 600;

      @media (width <= 768px) {
        font-size: calc((100 / 390) * 14 * 1vw);
      }
    }

    &[data-position='center'] {
      justify-content: center;
    }

    &[data-color='white'] {
      & > span[lang='en'] {
        color: #fff;
      }
      & > h2.title {
        color: #fff;
      }
    }
  }

  /* =====================
    content-catch
  ===================== */
  .content-catch {
    display: block flex;
    align-items: center;
    gap: 24px;
    font-family: var(--yumin);
    font-size: 24px;
    font-weight: 600;

    &::before {
      content: '';
      display: block flow;
      inline-size: 130px;
      block-size: 1px;
      background-color: var(--primary);
    }

    @media (width <= 768px) {
      font-size: calc((100 / 390) * 22 * 1vw);
      line-height: 1.8;
      align-items: start;
      gap: calc((100 / 390) * 16 * 1vw);

      &::before {
        inline-size: calc((100 / 390) * 56 * 1vw);
        margin-block-start: calc((100 / 390) * 18 * 1vw);
      }
    }

    &[data-color='white'] {
      color: #fff;
      &::before {
        background-color: #fff;
      }
    }
  }

  /* =====================
    流れるテキスト
  ===================== */
  .u-marquee {
    font-family: var(--title);
    font-size: 80px;
    color: var(--primary);
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;

    &::before {
      content: attr(data-text);
      display: block;
      animation: marquee 100s linear infinite;
    }

    @media (width <= 768px) {
      font-size: calc((100 / 390) * 40 * 1vw);

      &::before {
        animation: marquee 50s linear infinite;
      }
    }
  }
  @keyframes marquee {
    100% {
      translate: -100%;
    }
  }

  /* =====================
    u-table
  ===================== */
  .u-table {
    display: block grid;
    grid-template-columns: 176px 1fr;
    max-inline-size: 992px;
    margin-inline: auto;

    @media (width <= 768px) {
      grid-template-columns: calc((100 / 390) * 88 * 1vw) 1fr;
      max-inline-size: calc((100 / 390) * 358 * 1vw);
    }

    /* ==== tr ==== */
    .tr {
      color: #fff;
      padding-inline: 16px;
      display: block grid;
      grid-template-columns: subgrid;
      grid-column: 1 / -1;
      border-block-start: 1px solid #fff;

      & :where(dt, dd) {
        block-size: 100%;
        padding-block: 21.5px;

        @media (width <= 768px) {
          padding-block: calc((100 / 390) * 22.8 * 1vw);
        }
      }
      @media (width <= 768px) {
        padding-inline: calc((100 / 390) * 8 * 1vw);
      }

      /* ==== dt ==== */
      & dt {
        font-weight: 500;
        line-height: 1.8;
        word-break: auto-phrase;
      }

      /* ==== dd ==== */
      & dd {
        line-height: 2;
        padding-inline-start: 24px;

        @media (width <= 768px) {
          padding-inline-start: calc((100 / 390) * 16 * 1vw);
        }
      }

      &:last-child {
        border-block-end: 1px solid #fff;
      }
    }
  }

  /* =====================
  u-mv
===================== */
  .u-mv {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    inline-size: 100%;
    block-size: 450px;
    padding-block-start: 211px;
    padding-inline: 80px;

    @media (width <= 768px) {
      block-size: calc((100 / 390) * 263 * 1vw);
      padding-block-start: calc((100 / 390) * 112 * 1vw);
      padding-inline: calc((100 / 390) * 16 * 1vw);
    }

    & > hgroup {
      position: relative;
      z-index: 5;

      & span[lang='en'] {
        font-family: var(--title);
        font-size: 48px;
        color: #fff;

        @media (width <= 768px) {
          font-size: calc((100 / 390) * 38 * 1vw);
        }
      }
      .title {
        position: relative;
        font-family: var(--yumin);
        font-weight: 600;
        color: #fff;
        display: block flex;
        align-items: center;
        gap: 16px;
        margin-block-start: 16px;

        &::before {
          content: '';
          display: block flow;
          inline-size: 80px;
          block-size: 1px;
          background-color: #fff;
        }

        @media (width <= 768px) {
          font-size: calc((100 / 390) * 14 * 1vw);
          gap: calc((100 / 390) * 16 * 1vw);
          margin-block-start: calc((100 / 390) * 8 * 1vw);

          &::before {
            inline-size: calc((100 / 390) * 64 * 1vw);
          }
        }
      }
    }

    .breadcrumb {
      margin-block-start: 75px;

      @media (width <= 768px) {
        margin-block-start: calc((100 / 390) * 32 * 1vw);
      }
    }
  }

  /* =====================
  bread
===================== */
  .breadcrumb {
    display: block flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    font-family: var(--yumin);
    font-size: 15px;
    font-weight: 600;
    color: #fff;

    @media (width <= 768px) {
      font-size: calc((100 / 390) * 14 * 1vw);
      gap: calc((100 / 390) * 8 * 1vw);
    }

    & > li {
      display: block flex;
      gap: 8px;

      @media (width <= 768px) {
        gap: calc((100 / 390) * 8 * 1vw);
      }
    }

    & li + li {
      &::before {
        content: '－';
        display: inline-block;
        flex-shrink: 0;
      }
    }
  }

  /* =====================
    u-list
  ===================== */
  .u-list {
    display: block grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 4px;
    padding-block: 28px 30px;
    padding-inline: 40px;
    border: solid 1px #b8b8b8;

    @media (width <= 768px) {
      grid-template-columns: 1fr;
      row-gap: calc((100 / 390) * 6 * 1vw);
      padding-block: calc((100 / 390) * 12 * 1vw) calc((100 / 390) * 16 * 1vw);
      padding-inline: calc((100 / 390) * 24 * 1vw);
    }

    & > li {
      position: relative;
      line-height: 2;
      display: block flex;
      align-items: start;
      gap: 8px;

      &::before {
        content: '';
        display: block flow;
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        background-image: url('../img/_common/icon_circle.svg');
        inline-size: 8px;
        aspect-ratio: 1/1;
        margin-block-start: 13px;
      }

      @media (width <= 768px) {
        gap: calc((100 / 390) * 8 * 1vw);

        &::before {
          inline-size: calc((100 / 390) * 8 * 1vw);
          margin-block-start: calc((100 / 390) * 10 * 1vw);
        }
      }
    }
  }

  /* =====================
    interview-list
  ===================== */
  .interview-list {
    display: block grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;

    @media (width <= 768px) {
      grid-template-columns: 1fr;
      gap: calc((100 / 390) * 33 * 1vw);
    }
    .picture {
      display: block flow;
      @media (width <= 768px) {
        & img {
          inline-size: calc((100 / 390) * 358 * 1vw);
        }
      }
    }

    .staff-info {
      display: block grid;
      grid-template-columns: max-content auto max-content;
      align-items: center;
      gap: 24px;
      margin-block-start: 5px;

      @media (width <= 768px) {
        gap: calc((100 / 390) * 20 * 1vw);
        margin-block-start: calc((100 / 390) * 10 * 1vw);
      }

      .staff-name {
        font-family: var(--title);
        font-size: 48px;
        color: var(--primary);
        margin-block-start: 11px;

        @media (width <= 768px) {
          font-size: calc((100 / 390) * 40 * 1vw);
          margin-block-start: calc((100 / 390) * 11 * 1vw);
        }
      }
      .wrap {
        .staff-department {
          color: #656565;
          font-size: 15px;
          line-height: 1.8;

          @media (width <= 768px) {
            font-size: calc((100 / 390) * 13 * 1vw);
          }
        }
        .staff-position {
          line-height: 1.8;
        }
      }
    }

    .u-arrow {
      @media only screen and (width <= 768px) {
        &::before {
          inline-size: calc((100 / 390) * 12 * 1vw);
          right: calc((100 / 390) * 8 * 1vw);
        }
        &::after {
          inline-size: calc((100 / 390) * 28 * 1vw);
        }
      }
    }
  }
}
