@charset "UTF-8";

@keyframes r_arrow {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  49% {
    transform: translateX(16px);
    opacity: 0;
  }

  50% {
    transform: translateX(-16px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes carousel_left {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes carousel_right {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#r_i_wrap {

  h2 {
    position: relative;
    margin-top: 64px;
    font-size: 64px;
    font-weight: 700;

    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: -64px;
      display: block;
      width: 128px;
      aspect-ratio: 1 / 1;
      border-radius: 50%;
      background-color: var(--sub-orange);
      z-index: -1;
    }
  }

  .r_button {
    position: relative;
    display: block;
    width: 256px;
    padding: 24px;
    border: 1px solid var(--heading-black);
    background-color: #fff;
    white-space: nowrap;
    transition: 0.3s;

    &::after {
      content: "";
      position: absolute;
      right: 24px;
      display: inline-block;
      width: 16px;
      height: 16px;
      background: url(../image/r_arrow.svg) center/contain no-repeat;
      vertical-align: text-bottom;
    }

    &:hover {
      color: #888;

      &::after {
        animation: 0.5s r_arrow;
      }
    }
  }


  @media (max-width: 767px) {
    h2 {
      margin-top: clamp(28px, calc(8.6331vw - 2.21585px), 64px);
      font-size: clamp(28px, calc(8.6331vw - 2.21585px), 64px);

      &::after {
        width: clamp(56px, calc(17.2662vw - 4.4317px), 128px);
        left: calc(clamp(28px, calc(8.6331vw - 2.21585px), 64px) * -1);
      }
    }

    .r_button {
      width: min(95%, 220px);
      padding: 16px;

      &::after {
        right: min(calc(9.259259vw - 13.44444362px), 16px);
        width: 14px;
        height: 14px;
        vertical-align: text-bottom;
      }
    }
  }
}

#r_about {
  position: relative;
  margin: min(10.41666vw, 200px) auto min(10.41666vw, 200px);

  .r_about_wrap {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(26px, calc(5vw - 24px), 72px);
    width: min(95%, 1600px);
    margin: auto;

    img {
      aspect-ratio: 10 / 7;
      object-fit: cover;
      object-position: center;
    }

    .small {
      width: 18.229167vw;

      img {
        border-radius: 22px;
      }
    }

    .medium {
      width: 27.34375vw;

      img {
        border-radius: 22px;
      }
    }

    .large_ex {
      width: 36.4583vw;
      min-height: 440px;
      aspect-ratio: 10 / 7;
      position: relative;
      align-self: end;
      transform: translateY(50%);

      &::after {
        content: "";
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 44px;
        background-color: #fffa;
        z-index: -1;
      }

      img {
        position: absolute;
        inset: 0;
        min-height: 440px;
        border-radius: 44px;
        z-index: -2;
      }

      .r_about_content {
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 100%;

        h2 {
          width: fit-content;
          margin-top: clamp(60px, calc(0.64516vw + 51.61292px), 64px);
          font-size: clamp(60px, calc(0.64516vw + 51.61292px), 64px);
          text-align: center;
          z-index: 2;

          &::after {
            width: clamp(120px, calc(1.290326vw + 103.22584px), 128px);
            left: calc(clamp(60px, calc(0.64516vw + 51.61292px), 64px) * -1);
          }
        }

        p {
          display: flex;
          justify-content: center;
          align-items: center;
          padding-inline: 8px;
          max-width: 564px;
          text-shadow: 1px 1px 3px #ddd;
        }

        .r_button {
          margin: 0;
          margin-bottom: clamp(32px, calc(3.47826vw - 2.7826px), 64px);
        }
      }
    }
  }

  .r_bg {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: fit-content;
    margin: auto;
    font-size: min(16.66666vw, 320px);
    font-weight: 900;
    color: rgba(var(--main-orange-rgb), 0.533);
    text-align: center;
    white-space: nowrap;
    z-index: -5;
    -webkit-user-select: none;
    user-select: none;
  }

}

@media(max-width: 1299px) {
  #r_about {
    .r_about_wrap {
      flex-direction: column;
      gap: 14vw;
      width: 100%;
      padding-inline: 16px;

      .small {
        width: min(50%, 350px);
        border-radius: 22px;
        align-self: end;
      }

      .medium {
        width: min(72.5%, 525px);
        align-self: start;
        border-radius: 22px;
      }

      .large_ex {
        align-self: center;
        width: min(95%, 700px);
        border-radius: 33px;
        transform: unset;

        .r_about_content {
          h2 {
            margin-top: 64px;
            font-size: 64px;

            &::after {
              width: 128px;
              left: -64px;
            }
          }
        }
      }
    }
  }
}

@media (max-width: 767px) {
  #r_about {
    .r_about_wrap {
      gap: clamp(15px, calc(3.08008vw + 80.75976px), 105px);

      .large_ex {
        min-height: 460px;

        img {
          min-height: 460px;
        }

        .r_about_content {
          h2 {
            margin-top: clamp(28px, calc(8.6331vw - 2.21585px), 64px);
            font-size: clamp(28px, calc(8.6331vw - 2.21585px), 64px);
            z-index: 2;

            &::after {
              width: clamp(56px, calc(17.2662vw - 4.4317px), 128px);
              left: calc(clamp(28px, calc(8.6331vw - 2.21585px), 64px) * -1);
            }
          }
        }
      }
    }
  }
}


#r_interview {
  position: relative;
  margin-top: calc(200px + max(calc(3.64583vw * 3.5), 220px));

  h2 {
    margin-left: 100px;
  }

  .swiper {
    width: 100%;
    height: fit-content;

    .swiper-wrapper {
      display: flex;
      gap: min(6.25vw, 100px);
      flex-wrap: nowrap;
      justify-content: center;
      align-items: start;
      width: min(calc(87.981vw - 7.696px), 1600px);
      margin: min(7.91667vw, 152px) auto 0;
      counter-reset: count 0;

      .swiper-slide {
        width: fit-content;

        .r_interview_panel {
          position: relative;
          display: flex;
          gap: 16px;
          width: fit-content;
          height: 100%;
          padding-block: 50px;

          div {
            img {
              width: min(18.75vw, 360px);
              aspect-ratio: 1 / 1;
              object-fit: cover;
              border-radius: 11px;
              box-shadow: 3px 3px 3px 0 var(--shadow-black);
              transition: 0.2s;

              &:hover {
                opacity: 0.75;
              }
            }

            .info {
              line-height: 1.5;
              margin-top: 8px;
            }
          }

          .phrase {
            font-family: "Noto Sans JP", sans-serif;
            font-size: min(2vw, 32px);
            font-weight: 700;
            writing-mode: vertical-rl;
            line-height: 1.5;
            width: min(6vw, 96.5px);
          }

          &::before {
            counter-increment: count 1;
            content: counter(count);
            position: absolute;
            top: calc(min(9.375vw, 150px) * -1);
            left: calc(min(6.25vw, 100px) * -1);
            display: block;
            font-size: min(18.75vw, 300px);
            font-weight: 900;
            -webkit-text-stroke: 2px var(--main-orange);
            text-stroke: 2px var(--main-orange);
            color: transparent;
            z-index: 2;
          }

          span {
            padding: 4px;
            border-radius: 8px;
            background-color: #fffa;
          }
        }
      }

      &.solo {
        justify-content: center;
      }
    }
  }

  .swiper-controller,
  .swiper-button-prev,
  .swiper-button-next,
  .swiper-pagination {
    display: none;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    display: none;
  }

  .swiper-controller {
    position: relative;
    gap: 52px;
    justify-content: center;
    align-items: center;
    height: 60px;

    .swiper-button-prev,
    .swiper-button-next,
    .swiper-pagination {
      position: static;
      width: fit-content;
    }

    .swiper-button-prev,
    .swiper-button-next {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 60px;
      height: 60px;
      margin: 0;
      border-radius: 50%;
      border: none;
      background-color: rgba(var(--main-orange-rgb), 0.094);
      color: var(--main-orange);
      font-size: 20px;
      cursor: pointer;
      box-shadow:
        2px 2px 4px rgba(61, 47, 18, 0.5),
        -2px -2px 4px rgba(255, 253, 248, 0.9),
        inset 2px 2px 4px transparent,
        inset -2px -2px 4px transparent;
      transition: box-shadow 0.1s;


      &:active {
        background-color: #f1c0a766;

        box-shadow:
          2px 2px 4px transparent,
          -2px -2px 4px transparent,
          inset 2px 2px 4px rgba(61, 47, 18, 0.5),
          inset -2px -2px 4px rgba(255, 253, 248, 0.9);
      }
    }

    .swiper-pagination {
      .swiper-pagination-bullet {
        background-color: var(--main-orange);
        opacity: 0.3;
      }

      .swiper-pagination-bullet-active {
        background-color: var(--main-orange);
        opacity: 1;
      }
    }

    &.hide {
      display: none;
    }
  }


  .r_button {
    margin: 60px calc((100% - min(calc(87.981vw - 7.696px), 1600px)) / 2) 0 auto;
  }
}

@media(max-width: 1299px) {
  #r_interview {
    margin-top: calc(84px + min(10.41666vw, 200px));

    h2 {
      margin-left: clamp(50px, 10vw, 100px);
    }

    .swiper {

      .swiper-wrapper {
        gap: unset;
        justify-content: space-between;
        width: 100%;
        margin-top: 152px;

        .swiper-slide {

          .r_interview_panel {
            gap: 16px;
            margin-left: 88px;
            width: fit-content !important;

            div {
              img {
                width: 360px;
                max-width: unset;
              }
            }

            .phrase {
              width: 96.5px;
              font-size: 32px;
            }


            &::before {
              top: -150px;
              left: -100px;
              font-size: 300px;
            }
          }
        }
      }
    }

    .swiper-controller {
      display: flex;
    }

    .swiper-button-prev,
    .swiper-button-next,
    .swiper-pagination {
      display: block;
    }

    .r_button {
      margin-top: 60px;
    }
  }
}

@media(max-width: 767px) {
  #r_interview {
    .swiper {

      .swiper-wrapper {
        margin: min(19.81747vw, 152px) 0 0;

        .swiper-slide {
          .r_interview_panel {
            gap: min(2.810123vw, 16px);
            margin-left: 14.524826vw;

            div {
              img {
                width: min(62.291656vw, 360px);
              }

              .info {
                font-size: clamp(12px, calc(0.44743vw + 10.56822px), 14px);
              }
            }

            .phrase {
              width: min(calc(9.74304vw + 21.77088px), 96.5px);
              font-size: min(5.6202469vw, 32px);
            }

            &::before {
              top: calc(min(24vw, 150px) * -1);
              left: calc(min(15vw, 100px) * -1);
              font-size: min(50vw, 300px);
            }


          }
        }
      }
    }
  }
}

#r_faq {
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin-top: 200px;

  .left_side {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
    width: 50%;
    padding-bottom: 64px;
    border-radius: 22px;
    background-color: var(--pale-orange);

    h2 {
      position: relative;
      width: fit-content;
      z-index: 2;
    }

    p {
      position: relative;
      width: fit-content;
      z-index: 2;
    }

    .r_button {
      z-index: 2;
    }

    .r_bg {
      position: absolute;
      bottom: -0.625vw;
      right: calc(min(2.916667vw, 56px) * -1);
      font-family: "Zen Kaku Gothic New", sans-serif;
      font-size: min(13.64583vw, 262px);
      font-weight: 900;
      color: transparent;
      -webkit-text-stroke: 1.5px var(--main-orange);
      text-stroke: 1.5px var(--main-orange);
      line-height: unset;
      filter: blur(10px);
      -webkit-user-select: none;
      user-select: none;
    }
  }

  .right_side {
    position: relative;
    width: 50%;
    z-index: 2;

    img {
      border-radius: 22px;
    }
  }
}

@media (max-width: 1299px) {
  #r_faq {
    flex-direction: column;

    .left_side {
      width: min(80%, 715px);
      min-height: 442px;

      .r_bg {
        right: 0;
        font-size: clamp(200px, calc(10.52631vw + 119.2632331px), 256px);
      }
    }

    .right_side {
      position: relative;
      bottom: 3.84615vw;
      align-self: end;
      width: min(80%, 715px);
    }
  }
}

@media (max-width: 767px) {
  #r_faq {
    flex-direction: column;
    margin-top: 60px;

    .left_side {
      width: min(90%, 615px);
      padding-bottom: clamp(28px, calc(8.6331vw - 2.21585px), 64px);
      padding-inline: 16px;
      border-radius: 11px;
      min-height: unset;

      .r_bg {
        right: 0;
        font-size: min(40vw, 200px);
      }
    }

    .right_side {
      position: relative;
      bottom: 3.84615vw;
      align-self: end;
      width: min(90%, 615px);

      img {
        border-radius: 11px;
      }
    }
  }
}

#r_requirement {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: min(65vw, 712px);
  margin-top: 200px;
  background-color: var(--main-orange);
  overflow: hidden;

  .left_side,
  .right_side {
    position: absolute;
    top: 0;
    white-space: nowrap;

    span {
      display: inline-block;
      padding-inline: 0.5em;
      font-size: clamp(26px, 2.70833vw, 52px);
      font-weight: 900;
      color: #fff;
      line-height: 1;
    }
  }

  .left_side {
    left: 0;
    writing-mode: sideways-lr;

    span {
      animation: 7.5s linear infinite carousel_left;
    }
  }

  .right_side {
    right: 0;
    writing-mode: sideways-rl;

    span {
      animation: 7.5s linear infinite carousel_right;
    }
  }

  .main_side {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(75.52083vw, 1450px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: #fff;

    .content {
      display: flex;
      flex-direction: column;
      gap: min(6.25vw, 120px);
      justify-content: center;
      align-items: center;
      max-width: 95%;
      height: min(65vw, 712px);
      padding-bottom: 32px;
      rotate: 0.03deg;

      >* {
        z-index: 2;
      }

      h2,
      .r_button {
        rotate: -0.03deg;
      }


    }
  }
}

@media (max-width: 767px) {
  #r_requirement {
    min-height: 320px;
    margin-top: 60px;

    .left_side,
    .right_side {
      font-size: clamp(16px, calc(2.14133vw + 9.57601px), 26px);
    }

    .main_side {
      width: max(88vw, 320px);
      min-height: 320px;

      .content {
        justify-content: space-around;
        width: 95%;
        max-width: 95vw;
        min-height: 320px;

        .r_button {
          width: min(95%, 190px);
        }
      }
    }
  }
}

#r_entry-form {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  min-height: 432px;
  background-color: var(--main-orange);
  overflow: hidden;

  @media (max-width: 767px) or (any-hover: none) {
    height: 500px;
  }

  img {
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    object-fit: cover;
    border-radius: 22px;
  }

  .r_entry-form_wrap {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border-radius: 22px;
    z-index: 2;


    &:before {
      content: "";
      position: absolute;
      display: block;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, var(--main-green), var(--main-orange));
      border-radius: 22px;
      filter: brightness(0.7);
      opacity: .7;
      z-index: -1;
    }

    h2 {
      margin-top: clamp(32px, 5.92593vh, 64px);
      color: #fff;
      text-align: center;

      &::after {
        display: none;
      }
    }

    .text {
      margin-top: clamp(68px, 16.66667vh, 180px);
      padding-inline: 32px;
      max-width: calc(48em + 32px);

      @media (max-width: 767px) or (any-hover: none) {
        margin-top: clamp(32px, 5.92593vh, 64px);
      }

      p {
        color: #fff;

        &:not(:first-of-type) {
          margin-top: 1em;
        }
      }
    }

    .r_button {
      display: none;
      margin-top: clamp(32px, 5.92593vh, 64px);
      margin-bottom: clamp(32px, 5.92593vh, 64px);

      @media (max-width: 767px) or (any-hover: none) {
        display: block;
      }
    }
  }
}

#r_entry-form {
  #mouse_stalker {
    position: fixed;
    top: 0;
    left: 0;
    width: 160px;
    aspect-ratio: 1 /1;
    border-radius: 50%;
    background-color: var(--main-orange);
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    transition: 0.3s ease-out;
    z-index: 10;

    &:hover {
      background: linear-gradient(135deg, #d97162, var(--main-orange)) var(--main-orange);
    }

    @media (max-width: 767px) or (any-hover: none) {
      display: none;
    }

    &.seal {
      width: 200px;
      opacity: 0;
      visibility: hidden;
    }

    a {
      display: flex;
      gap: 8px;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 100%;
      padding-bottom: 8px;
      border-radius: 50%;
      color: #fff;
      font-size: 32px;
      font-weight: 700;
      text-align: center;
      letter-spacing: 2px;

      span {
        font-size: 16px;
        color: #fff;
      }
    }
  }
}

#r_header:has(nav.open)+#r_i_wrap #r_entry-form #mouse_stalker {
  filter: brightness(0.5);
  opacity: 0.5;
}

/* --------------- 採用情報代替ページ --------------- */
#recruit_alternate {
  h2 {
    position: relative;
    margin-top: 64px;
    margin-left: clamp(50px, 10vw, 100px);
    font-size: 64px;
    font-weight: 700;

    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: -64px;
      display: block;
      width: 128px;
      aspect-ratio: 1 / 1;
      border-radius: 50%;
      background-color: var(--sub-orange);
      z-index: -1;
    }
  }

  .notice {
    position: relative;
    margin: 64px auto 0;
    font-size: 36px;
    text-align: center;
    line-height: 2.5;
    z-index: 2;

    .pen {
      position: relative;
      margin-inline: -0.25em 0;
      white-space: nowrap;

      .pen_svg {
        position: absolute;
        left: 0;
        bottom: -32px;
        width: 100%;
        aspect-ratio: 50 / 9;
        stroke-dasharray: 276 278;
        stroke-dashoffset: 277;
        transition: 0.3s 0.2s;

        path {
          stroke: var(--main-green);
        }
      }
    }

    &.animated .pen .pen_svg {
      stroke-dashoffset: 0;
    }

    .marker {
      position: relative;
      white-space: nowrap;

      &::after {
        content: "";
        position: absolute;
        top: -0.25em;
        left: -0.25em;
        display: block;
        width: calc(100% + 0.5em);
        height: calc(100% + 0.5em);
        background: url(../image/marker.png) top 3px center / contain no-repeat;
        z-index: -5;
      }

      &::before {
        content: "";
        position: absolute;
        top: -0.25em;
        left: -0.25em;
        display: block;
        width: calc(100% + 0.5em);
        height: calc(100% + 0.5em);
        background-color: #fff;
        z-index: -3;
        transform: translateX(0) translateY(0);
        transition: 0.2s 0.75s;
      }
    }

    &.animated .marker::before {
      transform: translateX(100%) translateY(-5px);
    }
  }


  .description {
    margin: 140px auto 0;
    text-align: center;
    line-height: 1.5;
  }

  .sun_wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    aspect-ratio: 1 / 1;
    margin: 164px auto 364px;

    a {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 350px;
      aspect-ratio: 1 / 1;
      padding-bottom: 0.5em;
      border-radius: 50%;
      background-color: var(--main-orange);
      color: #fff;
      font-size: 44px;
      font-weight: 900;
      text-align: center;
      line-height: 1.5;
      text-decoration-line: none;

      &::after {
        display: none;
      }

      &:hover {
        opacity: 1;
      }

      &:hover+.sun {
        opacity: 1;
      }
    }

    .sun {
      position: absolute;
      top: 0;
      left: 0;
      width: 400px;
      aspect-ratio: 1 / 1;
      opacity: 0;
      transition: .3s;
      z-index: -1;
      perspective: 10px;

      svg {
        overflow: visible;
        width: 100%;
        height: 100%;
        -webkit-transform-origin: center center;
        transform-origin: center center;
        animation: 20s infinite linear rotation;

        text {
          textPath {
            font-size: 9.35px;
            font-weight: 900;
            fill: var(--main-orange);
          }
        }
      }

      @media(any-hover:none) {
        opacity: 1;
      }
    }
  }
}

@media (max-width: 767px) {
  #recruit_alternate {
    h2 {
      margin-top: clamp(28px, calc(8.6331vw - 2.21585px), 64px);
      font-size: clamp(28px, calc(8.6331vw - 2.21585px), 64px);

      &::after {
        width: clamp(56px, calc(17.2662vw - 4.4317px), 128px);
        left: calc(clamp(28px, calc(8.6331vw - 2.21585px), 64px) * -1);
      }
    }

    .notice {
      font-size: 4.6875vw;

      .pen {
        .pen_svg {
          bottom: calc(4.6875vw * -0.888889);
        }
      }
    }

    .description {
      width: 90%;
      margin-top: min(20vw, 140px);
    }

    .sun_wrap {
      width: min(57.142857vw, 400px);
      margin: min(23.42857vw, 164px) auto min(52vw, 364px);

      a {
        width: min(50vw, 350px);
        font-size: min(6.28571vw, 44px);
      }

      .sun {
        width: min(57.142857vw, 400px);
      }
    }
  }
}