@import url("./assets/styles/reset.css");

@font-face {
  font-family: "Capellina Caps";
  src: url("./assets/fonts/Capellina-Caps-Regular.woff2") format("woff2"),
    url("./assets/fonts/Capellina-Caps-Regular.woff") format("woff"),
    url("./assets/fonts/Capellina-Caps-Regular.otf") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Capellina Caps";
  src: url("./assets/fonts/Capellina-Caps-Bold.woff2") format("woff2"),
    url("./assets/fonts/Capellina-Caps-Bold.woff") format("woff"),
    url("./assets/fonts/Capellina-Caps-Bold.otf") format("woff");
  font-weight: bold;
  font-style: normal;
}

html {
  font-size: 62.5%;
  font-family: "Noto Sans JP", sans-serif;
  color: #000;
}

main {
  margin-top: 51px;
}

h1,
h2,
h3,
h4 {
  font-family: "Noto Serif JP", serif;
}

/* フォント */
:root {
  ---sans-font: "Noto Sans JP", sans-serif;
}

.pc {
  display: none;
}

.body-copy {
  font-size: 1.4rem;
  line-height: 2;
}

/* ヘーダ */
.header {
  width: 100%;
  height: 51px;
  position: fixed;
  top: 0;
  z-index: 100;
  filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.16));
  background-color: #fff;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo img {
  display: block;
  width: 140px;
  height: auto;
}

.header__hamburger {
  display: block;
  background-color: transparent;
  padding-left: 30px;
}

.header__hamburger img {
  width: 17px;
  height: auto;
  image-rendering: pixelated;
}

.popup {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  z-index: 1002;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: auto;
}

.popup__menu {
  margin-top: auto;
  margin-bottom: auto;
}

.popup__close img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.popup--open {
  right: 0;
  opacity: 1;
}

.popup__close {
  position: absolute;
  top: 32px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.popup--open .popup__close {
  position: fixed;
}

.menu__list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6vh;
}

.menu__link {
  font-size: 1.6rem;
  line-height: 1.5;
}

.menu__item--recruit {
  position: relative;
  display: block;
  margin-top: 8.25rem;
  display: block;
  background-color: #cb0000;
  color: #fff;
  width: 200px;
  height: 90px;
  display: flex;
  align-items: center;
  padding-left: 92px;
}

.menu__item--recruit::before {
  content: "";
  display: block;
  height: 1px;
  width: 73px;
  background-color: #fff;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  position: absolute;
}

.link {
  width: 220px;
  height: 50px;
  border-radius: 25px;
  color: #fff;
  text-align: center;
  font-weight: 500;
  font-size: 1.6rem;
  font-family: "Oswald", sans-serif;
  background-color: #cb0000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4rem auto 0;
}

.section-title {
  font-size: 2.4rem;
  line-height: 3.5rem;
}

.contact {
  padding: 4rem 1.35rem 8rem;
  background-color: #2b2b2b;
}

.contact .section-title {
  text-align: center;
}

.contact__wrapper {
  background-image: url(./assets/images/common/textile.webp);
  background-size: 400px 400px;
  background-repeat: repeat;
  padding: 5rem 0 5.8rem;
  position: relative;
}

.contact__text {
  margin: 1.7rem auto 0;
  font-size: 1.6rem;
  line-height: 2rem;
  text-align: center;
}

.contact-link {
  font-size: 1.8rem;
  line-height: 2.6rem;
  color: #fff;
  font-family: "Oswald", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  padding: 2.7rem 0 2.3rem;
  background-color: #cb0000;
  width: calc(100% - 28px);
  max-width: 320px;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  position: absolute;
}

footer {
  padding: 5rem 0 4rem;
  background-color: #4d4d4d;
  color: #fff;
}

.footer__logo {
  font-family: "Capellina Caps", serif;
  font-size: 3.2rem;
  font-weight: normal;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  left: -0.3em;
}

.footer__content {
  width: 240px;
  margin: 0 auto;
  font-size: 1.4rem;
  line-height: 2rem;
}

.to-top {
  display: block;
  position: fixed;
  width: 32px;
  height: 32px;
  right: 14px;
  bottom: 30px;
  transition: all 0.5s;
  z-index: 1001;
  border-radius: 50%;
  background-image: url(./assets/images/common/to-top.svg);
  box-shadow: rgba(255, 255, 255, 0.2) 0px 7px 29px 0px;
  opacity: 0;
}

.to-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.breadcrumb {
  width: 100%;
  display: block;
  bottom: 8px;
  margin: auto;
  max-width: 1088px;
  padding: 10px 0 8px 10px;
}

.breadcrumb__list {
  display: flex;
  gap: 10px;
  margin: 0 auto;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb__list::before {
  content: "";
  display: block;
  background-image: url(./assets/images/common/icon-home.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 15px;
  height: 12px;
  object-fit: contain;
  position: relative;
  top: 2px;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
}

.breadcrumb__item,
.breadcrumb__item a {
  position: relative;
  color: var(--black);
  font-size: 1.2rem;
  line-height: 1.42;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb__item:not(:first-child)::before {
  content: "";
  display: block;
  width: 7px;
  height: 8px;
  background-image: url(./assets/images/common/breadcrumb-arrow.svg);
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 5px;
  position: relative;
  top: 1px;
}

.page-cover {
  padding: 3rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cover__image {
  display: block;
  margin: 0 auto;
  width: 80px;
  height: auto;
  object-fit: contain;
}

.page-cover__title {
  font-family: "Capellina Caps", serif;
  font-size: 3.2rem;
  line-height: 1;
  font-weight: bold;
  color: #8fc320;
  text-align: center;
}

.page-intro {
  padding: 0 1.35rem 4rem;
}

.page-intro__title {
  font-size: 2rem;
  line-height: 1.6;
  text-align: center;
}

.page-intro__image {
  display: block;
  margin: 2rem auto 4rem;
  width: fit-content;
}

.page-intro__image img {
  width: 100%;
  max-width: 450px;
  height: auto;
}

.page-intro__text {
  font-size: 1.6rem;
  line-height: 2;
}

.company {
  position: relative;
}

.company__bg {
  display: none;
}

.company__wrapper {
  padding: 4rem 0 1.5rem;
  position: relative;
  background-image: url(./assets/images/top/company-bg-1366.webp);
  background-size: cover;
  background-position: center;
}

.company__swiper {
  margin-top: 186px;
}

.company .section-title {
  margin-left: 1.35rem;
  position: relative;
}

.company .swier-wrapper {
  align-items: stretch;
}

.company__slide {
  padding: 20px 16px;
  background: #fff;
  border: 1px solid #7aa51f;
  opacity: 0.85;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 5.34vw, 2.8rem);
  line-height: 1.2;
  color: #7aa51f;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(235px, 62.67vw, 350px);
  height: auto;
  text-align: center;
}

.swiper-buttons {
  width: calc(100% - 27px);
  max-width: 350px;
  display: flex;
  justify-content: space-between;
  margin: 10px auto 0;
}

.swiper-button {
  display: block;
  width: 34px;
  height: 34px;
  background-image: url(./assets/images/common/icon-slider-arrow.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
  transition: all 0.3s;
}

.swiper-button--prev {
  transform: scaleX(-1);
}

.swiper-button-disabled {
  opacity: 0.6;
}

.page-content {
  padding: 4rem 1.35rem;
}

.page-content__title {
  font-size: 2.4rem;
  line-height: 3.5rem;
  width: fit-content;
  position: relative;
}

.page-content__title span {
  position: relative;
  z-index: 1;
}

.page-content__title::before {
  content: "";
  display: block;
  position: absolute;
  width: 203px;
  height: 3.5px;
  background-color: #999;
  bottom: 3.5px;
  left: 0;
  z-index: 0;
}

.page-content__title::after {
  content: "";
  display: block;
  position: absolute;
  width: calc(100vw - 27px);
  max-width: 830px;
  height: 1px;
  background-color: #999;
  bottom: 5px;
  left: 0;
  z-index: 0;
  font-size: 1.8rem;
  line-height: 2.6rem;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 2.5;
  font-weight: 400;
}

.wp-pagenavi {
  display: flex;
  align-items: center;
  margin: 4rem auto 0;
  justify-content: center;
}

.wp-pagenavi .pages {
  display: none;
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  display: inline-block;
  background-image: url(./assets/images/common/pager-arrow.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 1.5rem;
  min-width: 1.5rem;
  height: 1.5rem;
  background-color: transparent;
  border: none;
  margin-right: 1rem;
}

.wp-pagenavi .nextpostslink {
  transform: scaleX(-1);
  margin-right: 0;
  margin-left: 1rem;
}

.wp-pagenavi .page,
.wp-pagenavi .current {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Noto Serif JP", serif;
  color: #707070;
  font-size: 1.6rem;
  padding-bottom: 0.2rem;
  transition: all 0.2s ease;
  font-weight: 500;
  width: 30px;
  height: 30px;
  background-color: #fff;
  border-radius: 2px;
  border: 1px solid #707070;
}

.wp-pagenavi span.current {
  color: #fff;
  background-color: #707070;
  border: 1px solid #707070 !important;
}

@media (min-width: 768px) {
  main {
    margin-top: 90px;
  }

  .sp {
    display: none;
  }

  .pc {
    display: block;
  }

  .body-copy {
    font-size: 1.6rem;
  }

  .header {
    width: 100%;
    height: 90px;
    position: fixed;
    top: 0;
    z-index: 100;
    filter: none;
    background-color: transparent;
    padding: 0;
    align-items: center;
    padding-left: clamp(15px, calc(83px + 50vw - 600px), 83px);
    isolation: isolate;
    gap: 2rem;
  }

  .header__wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: clamp(20px, calc(60px + 50vw - 600px), 60px);
  }

  .header__logo img {
    width: 271px;
  }

  .header__nav-list {
    display: flex;
    flex-direction: row;
    gap: clamp(20px, calc(40px + 12.5vw - 150px), 40px);
  }

  .header__nav-link {
    font-size: 1.6rem;
    line-height: 1.5;
    color: #000;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    background: linear-gradient(to right, #cb0000, #cb0000 50%, #000 50%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    background-position: 100%;
  }

  .header__nav-link:hover {
    background-position: 0 100%;
  }

  .header__nav-link::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background-color: #cb0000;
    left: 50%;
    bottom: -5px;
    transition: all 0.3s ease;
  }

  .header__nav-link:hover::after {
    width: 100%;
  }

  .header__recruit {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: clamp(40px, calc(92px + 50vw - 510px), 92px);
    background-color: #cb0000;
    color: #fff;
    width: clamp(140px, calc(200px + 50vw - 510px), 200px);
    height: 90px;
    font-size: 1.8rem;
    font-weight: 500;
    transition: all 0.3s;
  }

  .header__recruit:hover {
    filter: brightness(1.3);
  }

  .header__recruit::before {
    content: "";
    display: block;
    position: absolute;
    height: 1px;
    width: clamp(25px, calc(73px + 50vw - 510px), 73px);
    background-color: #fff;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
  }

  .section-title {
    font-size: 3.6rem;
    line-height: 5.1rem;
  }

  .link {
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    transition: all 0.3s;
  }

  .link:hover {
    background-color: #cb0000;
    border: 1px solid transparent;
    color: #fff;
  }

  .contact {
    padding: 12rem 2rem 9.6rem;
    background-color: #fff;
  }

  .contact__wrapper {
    padding: 3.8rem 0 8.4rem;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
  }

  .contact .section-title {
    font-size: 3.5rem;
    line-height: 5rem;
  }

  .contact__text {
    margin: 1.5rem auto 0;
  }

  .contact-link {
    max-width: 417px;
    bottom: -36px;
    transition: all 0.3s;
  }

  .contact-link:hover {
    opacity: 0.8;
  }

  .footer {
    width: 100%;
    overflow: hidden;
    padding: 5.5rem 2rem 6rem;
  }

  .footer__container {
    width: 100%;
    max-width: 943px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
  }

  body .fv--top-margin {
    margin-top: 60px;
  }

  @media (min-width: 1028px) {
    .footer__container {
      box-sizing: content-box;
    }
  }

  @media (max-width: 890px) {
    .footer__container {
      flex-direction: column;
      gap: 40px;
      width: fit-content;
      margin: 0 auto;
    }

    .footer__logo {
      text-align: left;
      left: 0rem;
    }

    .footer__content {
      margin: 0;
    }
  }

  .footer__navigation {
    display: flex;
    gap: 37px;
    margin-top: 7px;
  }

  .company-info__title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
  }

  .company-info__details {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
  }

  .company-info__detail {
    margin-bottom: 4px;
  }

  .nav-column {}

  .nav-column__list {
    list-style: none;
  }

  .nav-column__item:first-child {
    margin-bottom: 7.5px;
  }

  .nav-column__item:not(:first-child) {
    margin-bottom: 9.5px;
  }

  .nav-column:last-child .nav-column__item {
    margin-bottom: 15px;
  }

  .nav-column__item:last-child {
    margin-bottom: 0 !important;
  }

  .nav-column__link {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1.7rem;
    transition: opacity 0.3s ease;
  }

  .nav-column__link:not(.nav-column__link--primary) {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .nav-column__link:not(.nav-column__link--primary)::before {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    background-color: #fff;
  }

  .nav-column__link:hover {
    opacity: 0.7;
  }

  .nav-column__link--primary {
    color: #fff;
    font-size: 1.4rem;
    line-height: 2rem;
  }

  .to-top {
    cursor: pointer;
    right: clamp(20px, calc(122px + 50vw - 683px), 122px);
  }

  .page-cover {
    padding: 13rem 2rem 18.5rem;
  }

  .page-cover__image {
    width: 160px;
  }

  .page-cover__title {
    font-size: 6.4rem;
    position: relative;
    top: -2rem;
  }

  .page-intro__title {
    font-size: clamp(3.2rem, 4vw, 4.8rem);
    line-height: 1.44;
  }

  .company__wrapper {
    padding-bottom: 4rem;
  }

  .company__wrapper .swiper-wrapper {
    display: grid;
    grid-template-columns: 350px 350px;
    justify-content: center;
    gap: 20px;
  }

  .swiper-buttons {
    display: none;
  }

  .company__slide {
    transition: all 0.3s;
  }

  .company__slide:hover {
    opacity: 1;
  }

  @media (min-width: 1000px) {
    .company {
      overflow: hidden;
    }

    .company__bg {
      display: block;
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
    }

    .company__bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .company__wrapper {
      padding: clamp(100px, calc(257px + 50vw - 683px), 257px) 2rem 6.4rem;
      position: relative;
      width: fit-content;
      margin: 0 auto;
      background-image: none;
    }

    .swiper-buttons {
      display: none;
    }

    .company__swiper {
      margin-top: 42px;
    }

    .company__swiper .swiper-wrapper {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }

    .company__slide {
      padding: 20px 16px;
      font-size: min(1.9vw, 2rem);
      line-height: 1.5;
      width: min(235px, 22.4vw);
      height: min(235px, 22.4vw);
    }

    .company__bg {
      height: 649px;
    }
  }

  .page-content {
    margin: 0 auto;
    max-width: 830px;
    padding: 12rem 2rem 6rem;
  }

  @media (max-width: 868px) {
    .page-content {
      margin: 0 20px;
    }
  }

  .page-content__title {
    font-size: 4rem;
    line-height: 5.7rem;
    position: relative;
    left: -20px;
  }

  .page-content__title::before {
    bottom: 7.5px;
    width: 420px;
  }

  .page-content__title::after {
    bottom: 8.5px;
    width: calc(100vw - 40px);
    font-size: 1.8rem;
    line-height: 3;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
  }

  .wp-pagenavi {
    margin: 6rem auto 0;
  }
}

.fv {
  height: calc(100vh - 51px);
  width: 100%;
  position: relative;
  z-index: 1;
}

.fv video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.fv__hero {
  font-size: clamp(18px, 4.8vw, 28px);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: fit-content;
  color: #8fc320;
  text-shadow: 0px 0px 6px #000;
  white-space: nowrap;
}

.fv__scroll {
  display: none;
}


.history__banner {
  padding: 16rem 0;
  position: relative;
}

.history__banner-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.history__title {
  position: relative;
  text-align: left;
  color: #8fc320;
  text-shadow: 0px 3px 6px #fff;
  padding: 25.5px 10px;
  background: rgba(255, 255, 255, 0.8);
  font-size: clamp(2rem, 5.34vw, 2.8rem);
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 768px) {
  main .history__banner {
    padding: 26rem 0;
  }

  main .history__title {
    padding: 72px 10px;
    font-size: 4rem;
    line-height: 1.43;
  }
}