@charset "UTF-8";

@keyframes scroll_line {
  0% {
    top: 0;
    bottom: unset;
    height: 0;
  }

  40% {
    top: 0;
    bottom: unset;
    height: 100px;
  }

  50% {
    top: unset;
    bottom: 0;
    height: 100px;
  }

  90% {
    top: unset;
    bottom: 0;
    height: 0;
  }

  100% {
    top: 0;
    bottom: unset;
    height: 0;
  }
}

@keyframes erase {
  0% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: collapse;
  }
}

/* ---------- ヘッダー ---------- */

#loading {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-color: #fff;
  z-index: 50;

  img {
    max-height: 40px;
  }

  h1 {
    font-size: 36px;
    font-weight: 700;
  }

  &.complete {
    animation: 0.5s linear forwards erase;
  }
}

#i_header,
#r_header,
#g_header {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  height: 100vh;
}

#g_header {
  height: fit-content;
}

/* ---------- ロゴ＋グローバルメニュー ---------- */

.h_bar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  position: fixed;
  top: 0;
  right: 0;
  width: calc(100% - clamp(50px, 10vw, 100px));
  height: 100px;
  z-index: 20;

  #screen {
    position: fixed;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    width: 100%;
    height: 100%;
    background-color: #0002;
    z-index: 2;
    transition: visibility 0.3s, opacity 0.3s;

    &.open {
      visibility: visible;
      opacity: 1;
    }
  }

  .h_logo {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    align-items: center;
    height: 40px;
    margin: 30px 0 30px 20px;
    color: #000;

    img {
      max-height: 40px;
    }

    h1 {
      font-size: 36px;
      font-weight: 700;
    }
  }

  nav {
    position: relative;
    z-index: 5;

    ul {
      display: flex;
      flex-wrap: nowrap;
      height: 100%;
      align-items: center;

      li {
        position: relative;
        margin-right: 36px;
        margin-bottom: 2px;
      }
    }

    .sub-menu {
      display: none;
    }
  }

  nav.g_nav {
    ul {

      li:is(:not(:nth-last-child(1)):not(:nth-last-child(2))) {
        a::after {
          content: "";
          position: absolute;
          left: 0;
          right: 0;
          bottom: -4px;
          display: block;
          width: 0;
          height: 100%;
          margin: auto;
          border-bottom: 1px solid var(--text-black);
          transition: 0.2s;
          z-index: -1;
        }

        &:hover a::after {
          width: 100%;
        }
      }

      li:nth-last-child(1),
      li:nth-last-child(2) {
        height: 100%;
        margin-right: 0;
        margin-bottom: 0;

        &:hover {
          filter: brightness(1.25);
        }

        a {
          display: flex;
          align-items: center;
          height: 100%;
          padding-inline: 36px;
          font-weight: 500;
          color: #fff;
          transition: 0.2s;

          &:hover {
            color: var(--heading-black);
          }
        }
      }

      li:nth-last-child(1) {
        background-color: var(--main-green);
        transition: 0.2s;
      }

      li:nth-last-child(2) {
        gap: 0;
        background-color: var(--main-orange);
        transition: 0.2s;
      }

    }
  }

  nav.r_nav {
    ul {

      li:not(:nth-last-child(1)) {
        margin-right: clamp(16px, calc(20vw - 244px), 36px);

        a::after {
          content: "";
          position: absolute;
          left: 0;
          right: 0;
          bottom: -4px;
          display: block;
          width: 0;
          height: 100%;
          margin: auto;
          border-bottom: 1px solid var(--text-black);
          transition: 0.2s;
          z-index: -1;
        }

        &:hover a::after {
          width: 100%;
        }
      }

      li:nth-last-child(1) {
        height: 100%;
        margin-right: 0;
        margin-bottom: 0;
        background-color: var(--main-orange);
        transition: 0.2s;


        &:hover {
          filter: brightness(1.25);
        }

        a {
          display: flex;
          align-items: center;
          height: 100%;
          padding-inline: 36px;
          font-weight: 500;
          color: #fff;
          transition: 0.2s;

          &:hover {
            color: var(--heading-black);
          }
        }
      }
    }
  }



  #drawer_wrap {
    display: none;
    position: fixed;
    top: 50px;
    right: 44px;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;

    .drawer {
      position: absolute;
      top: 50%;
      width: 100%;
      height: 3px;
      background-color: var(--heading-black);
      transition: .2s;

      &::before,
      &::after {
        content: "";
        position: absolute;
        left: 0;
        display: block;
        width: 100%;
        height: 100%;
        background-color: var(--heading-black);
        transition: transform .2s, bottom .2s .2s, top .2s .2s;
      }

      &::before {
        top: -12px;
      }

      &::after {
        bottom: -12px;
      }

      &.open {
        transform: rotate(45deg);
        transition: .2s .15s;

        &::before {
          top: 0;
          transition: top .15s, bottom .15s, transform .2s .15s;
        }

        &::after {
          bottom: 0;
          transform: rotate(-90deg);
          transition: top .15s, bottom .15s, transform .2s .15s;
        }
      }
    }
  }
}

/* ---------- キャッチコピー ---------- */

#g_header .catch {
  padding-bottom: 100px;
}

.catch {
  position: relative;
  width: clamp(50px, 10vw, 100px);
  z-index: 2;
  margin-inline: 100px 0;
  writing-mode: vertical-rl;


  .phrase {
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
    margin: auto;
    font-size: clamp(20px, 3.2vw, 32px);
    color: var(--heading-black);
    white-space: nowrap;
  }

  .scroll {
    position: absolute;
    width: fit-content;
    height: 100px;
    margin: auto;
    bottom: clamp(10px, calc(100vh - 570px), 112px);
    left: 0;
    right: 0;
    font-size: 14px;
    text-align: right;
    writing-mode: sideways-lr;
    transform: translateX(-2px);

    @media(min-width: 768px) and (max-height: 579px) {
      display: none;
    }

    &::after {
      content: "";
      position: absolute;
      top: 0;
      right: -4px;
      display: block;
      width: 1px;
      background-color: var(--heading-black);
      animation: 3s linear infinite running scroll_line;
    }
  }
}

::-webkit-full-page-media,
:future,
:root .catch .phrase span {
  width: 0px;
}

/* ---------- メインビジュアル(トップページ) ---------- */

.i_mv {
  position: relative;
  width: calc(100% - clamp(50px, 10vw, 100px));
  height: 100%;

  &:has(video)::after {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  video,
  img {
    position: relative;
    width: 100%;
    max-width: unset;
    height: 100%;
    object-fit: cover;
  }
}

/* ---------- メインビジュアル(採用情報トップページ) ---------- */
.r_mv {
  position: relative;
  width: calc(100% - clamp(50px, 10vw, 100px));
  margin-top: 100px;

  &:has(video)::after {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  video,
  img {
    position: relative;
    width: 100%;
    max-width: unset;
    height: 100%;
    object-fit: cover;
  }

  .recruit_text {
    position: absolute;
    right: 0;
    top: clamp(36px, calc(75.4717vh - 243.24529px), 436px);
    width: 100%;
    height: fit-content;

    p {
      margin-top: 36px;
      margin-left: auto;
      margin-right: 0;
      padding: 16px;
      padding-right: 8.33333vw;
      background-color: var(--main-orange);
      color: #fff;
      text-align: left;
    }

    p:nth-of-type(1) {
      margin-top: 0;
    }

    .long {
      width: 41.66667vw;
      min-width: fit-content;
    }

    .middle {
      width: 33.85417vw;
      min-width: fit-content;
    }

    .short {
      width: 26.04167vw;
      min-width: fit-content;
    }
  }
}

/* ---------- メインビジュアル(コンテンツページ) ---------- */

.g_mv {
  position: relative;
  width: calc(100% - clamp(50px, 10vw, 100px));
  margin-top: 100px;

  img {
    max-width: unset;
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: center;

  }

  .g_ttl {
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: fit-content;
    height: fit-content;
    padding: clamp(18px, calc(3.71429vw + 6.85713px), 44px) clamp(20px, calc(14.57143vw - 23.71429px), 122px);
    border-radius: clamp(14px, calc(3.42857vw + 9.71429px), 44px) clamp(14px, calc(3.42857vw + 9.71429px), 44px) 0 0;
    background-color: #fff;
    transform: translateX(calc(-50% - (clamp(50px, 10vw, 100px) / 2)));

    h1 {
      position: relative;
      width: fit-content;
      margin: auto;
      font-size: clamp(14px, calc(3.42857vw + 9.71429px), 44px);
      white-space: nowrap;

      &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: calc(clamp(14px, calc(3.42857vw + 9.71429px), 44px) * -1);
        display: block;
        width: clamp(28px, calc(6.85714vw + 19.42858px), 88px);
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        background-color: var(--sub-green);
        z-index: -1;
      }

      &.recruit_ttl::after {
        background-color: var(--sub-orange);
      }
    }
  }
}



@media(min-width: 1300px) {

  /* ---------- ロゴ＋グローバルメニュー(width1300px以上) ---------- */

  .h_bar {
    transition: 0.5s;

    .h_logo {
      transition: 0.5s;
    }

    &.flow {
      left: 0;
      width: 90vw;
      height: 60px;
      margin: 12px auto 0;
      border: 1px solid var(--heading-black);
      border-radius: 22px;
      background-color: #fff;
      overflow: hidden;

      .h_logo {
        margin: 6px 0 14px 18px;

        img {
          max-height: 32px;
          margin-top: 4px;
        }

        h1 {
          font-size: 28px;
        }
      }
    }

    nav {
      ul {
        li {
          &:first-of-type {
            display: none;
          }
        }
      }
    }
  }
}



@media (max-width: 1299px) {

  /* ---------- ロゴ＋グローバルメニュー(width1299px以下) ---------- */

  .h_bar {
    position: absolute;

    nav {
      position: fixed;
      top: 0;
      right: -300px;
      width: 300px;
      height: 100vh;
      background-color: #fffa;
      backdrop-filter: blur(6px);
      transition: 0.5s;

      &.open {
        right: 0;
      }

      ul {
        flex-direction: column;
        align-items: start;
        margin-top: 80px;

        li {
          margin-block: 1.5em;
          padding-left: 44px;

          a {
            transition: 0.2s;

            &:hover {
              color: var(--pale-black);
            }
          }
        }
      }
    }

    nav.g_nav {
      ul {
        li:is(:not(:nth-last-child(1)):not(:nth-last-child(2))) a::after {
          border-bottom: none;
        }

        li:is(:nth-last-child(1), :nth-last-child(2)) {
          width: 100%;
          height: 4em;
          margin-block: 0;
          padding: unset;

          a {
            display: block;
            padding: 1.5em 0 1.5em 44px;
            font-weight: 400;
            color: var(--heading-black);
            transition: 0.2s;
          }
        }

        li:nth-last-child(1) {
          gap: 0;
          background-color: rgba(var(--main-green-rgb), 0.8);

          &:hover {
            background-color: rgba(var(--main-green-rgb), 0.933);
          }
        }

        li:nth-last-child(2) {
          background-color: rgba(var(--main-orange-rgb), 0.8);

          &:hover {
            background-color: rgba(var(--main-orange-rgb), 0.933);
          }
        }
      }
    }


    nav.r_nav {
      ul {
        li:not(:nth-last-child(1)) a::after {
          border-bottom: none;
        }

        li:nth-last-child(1) {
          width: 100%;
          height: 4em;
          margin-block: 0;
          padding: unset;
          background-color: rgba(var(--main-orange-rgb), 0.8);

          &:hover {
            background-color: rgba(var(--main-orange-rgb), 0.933);
          }

          a {
            display: block;
            padding: 1.5em 0 1.5em 44px;
            font-weight: 400;
            color: var(--heading-black);
            transition: 0.2s;
          }
        }
      }
    }

    #drawer_wrap {
      display: block;
    }
  }


  /* ---------- メインビジュアル(コンテンツページ、width1299px以下) ---------- */

  .g_mv {
    .g_ttl {
      transform: translateX(-50%);
    }
  }
}



@media (max-width: 767px) {

  /* ---------- ロゴ＋グローバルメニュー(width767px以下) ---------- */

  .h_bar {
    height: 60px;
    width: 100%;

    .h_logo {
      gap: 4px;
      height: 24px;
      margin: 16px 0 0 16px;

      img {
        max-height: 24px;
      }

      h1 {
        font-size: 24px;
      }
    }

    nav {
      right: -100%;
      width: 100%;
    }

    #drawer_wrap {
      top: 28px;
      right: 20px;
      /* width: 20px; */
      height: 24px;

      .drawer {

        &::before {
          top: -8px;
        }

        &::after {
          bottom: -8px;
        }
      }
    }
  }

  /* ---------- キャッチコピー(width767px以下) ---------- */

  .catch {
    margin-top: 60px;

    .scroll {
      @media(max-height: 439px) {
        display: none;
      }
    }
  }

  /* ---------- メインビジュアル(トップページ、width767px以下) ---------- */

  .i_mv {
    position: absolute;
    width: 100%;
  }

  /* ---------- メインビジュアル(採用情報トップページ、コンテンツページ、width767px以下) ---------- */

  .r_mv,
  .g_mv {
    margin-top: 60px;
  }

  .r_mv {
    .recruit_text {
      display: flex;
      flex-direction: column;
      gap: clamp(24px, calc(5.33333vw + 8.00001px), 40px);
      top: 0;
      right: clamp(24px, calc(5.33333vw + 8.00001px), 40px);
      height: 100vh;
      writing-mode: vertical-rl;


      p {
        box-sizing: content-box;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 14px;
        letter-spacing: 1px;
        white-space: nowrap;
      }

      p:nth-of-type(1) {
        margin-top: unset;
      }

      .long {
        width: 14px;
        height: fit-content;
        margin-top: clamp(0px, calc(50vh - 250px), 100px);
      }

      .middle {
        width: 14px;
        height: fit-content;
        margin-top: clamp(16px, calc(67vh - 319px), 150px);
      }

      .short {
        width: 14px;
        height: fit-content;
        margin-top: clamp(32px, calc(84vh - 388px), 200px);
      }
    }
  }

  ::-webkit-full-page-media,
  :future,
  :root .r_mv .recruit_text p span {
    width: 0px;
  }
}

/* ---------- パンくずリスト ---------- */

.bread_crumb {
  margin: 8px 0 clamp(50px, calc(6.08vw + 41.2px), 100px) clamp(50px, 10vw, 100px);
  font-size: 14px;
  line-height: 1.5;

  a {
    text-decoration-style: solid;
    text-decoration-line: underline;
    text-decoration-color: var(--heading-black);
    transition: 0.2s;

    &:hover {
      opacity: 0.5;
    }
  }
}



/* ---------- フッター ---------- */

footer {
  margin-top: 200px;

  .induction_wrap {
    margin-bottom: 52px;
    padding-block: 100px;
    background-color: var(--main-green);

    .induction {
      display: flex;
      gap: min(3vw, 100px);
      justify-content: center;
      align-items: center;
      max-width: 95vw;
      margin: auto;

      div {
        position: relative;
        width: 640px;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;

        img {
          transition: 0.3s;
        }

        a {
          position: absolute;
          inset: 0;
          display: flex;
          justify-content: center;
          align-items: center;
          background-color: #0008;
          transition: 0.3s;

          span {
            display: block;
            padding: 20px 30px;
            border: 2px solid #fff;
            font-size: 32px;
            color: #fff;
            text-align: center;
            transition: 0.3s;
          }
        }

        &:hover {
          img {
            transform: scale(1.1);
          }

          a {
            background-color: #0000;
          }

          span {
            padding: 40px 60px;
            border-color: #fff0;
            color: #222;
            text-shadow: 1px 1px 2px #ddd;
          }
        }
      }
    }
  }

  .f_sec {
    width: 100%;
  }

  .f_info {
    padding-block: 60px;
    background-color: #eee;
    text-align: center;

    .f_logo {
      display: flex;
      gap: 20px;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
      height: 40px;
      color: #000;
      font-size: 36px;
      font-weight: 700;

      img {
        max-height: 40px;
      }
    }

    address {
      margin-top: 28px;
      font-size: 14px;
      font-style: unset;
    }

    .sns ul {
      display: flex;
      gap: 44px;
      justify-content: center;
      align-items: center;
      margin: 28px auto 0;

      li {
        height: 30px;
        min-width: 30px;
        transition: 0.2s;
      }

      li:hover {
        opacity: 0.5;
      }
    }

    .f_custom_nav,
    .f_fixed_nav {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0;

      li {
        padding-inline: 1em;

        &:not(:last-of-type) {
          border-right: 1px solid var(--heading-black);
        }

        a {
          transition: 0.2s;

          &:hover {
            color: #888;
          }
        }
      }

      .sub-menu {
        display: none;
      }
    }

    .f_custom_nav {
      margin-top: 28px;
    }

    .f_fixed_nav {
      margin-top: 28px;
    }
  }

  .copyright {
    margin-block: 14px;
    text-align: center;
    color: var(--heading-black);
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  footer {
    margin-top: 100px;

    .induction_wrap {
      padding-block: min(5vw, 100px);

      .induction {
        flex-direction: column;
        gap: min(5vw, 100px);
        max-width: 90vw;

        div {
          a {
            span {
              padding: clamp(10px, calc(2.17391vw + 3.47827px), 20px) clamp(15px, calc(3.26087vw + 5.21739px), 30px);
              font-size: clamp(24px, calc(1.73913vw + 18.78261px), 32px);
            }
          }
        }
      }
    }

    .f_info {
      padding-block: 60px;
      background-color: #eee;
      text-align: center;

      .f_logo {
        display: flex;
        gap: clamp(8px, calc(1.73913vw + 6.78261px), 20px);
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        height: 40px;
        color: #000;
        font-size: clamp(12px, calc(2.6087vw + 16.1739px), 36px);
        font-weight: 700;

        img {
          max-height: clamp(16px, calc(3.47826vw + 13.56522px), 40px);
        }
      }

      address {
        margin-top: 28px;
        font-size: 14px;
        font-style: unset;
      }

      .sns ul {
        gap: 28px;
        flex-wrap: wrap;
      }

      nav {
        display: flex;
        gap: clamp(16px, calc(10.43478vw - 15.30434px), 64px);
        width: fit-content;
        margin: 44px auto 0;
        padding-inline: 14px;

        .f_custom_nav,
        .f_fixed_nav {
          justify-content: start;
          align-items: start;
          gap: 16px;
          flex-direction: column;

          li {
            padding-inline: 4px 0;
            border-left: 4px solid var(--main-green);

            &:not(:last-of-type) {
              border-right: unset;
            }

            a {
              transition: 0.2s;


              &:hover {
                color: #888;
              }
            }
          }
        }

        .f_custom_nav {
          margin-top: unset;
        }

        .f_fixed_nav {
          margin-top: unset;
        }
      }
    }

    .copyright {
      margin-block: 12px;
      font-size: 12px;
    }
  }
}