/* ========================================
トップページ
======================================== */

.top {
  overflow: hidden;
}

.top img {
  display: block;
  height: auto;
  max-width: 100%;
}

/* FV
---------------------------------------- */

@keyframes top-fv-rotate-staff01 {
  0%,
  10% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(5deg);
  }

  30% {
    transform: rotate(10deg);
  }

  40% {
    transform: rotate(15deg);
  }

  50% {
    transform: rotate(20deg);
  }

  60% {
    transform: rotate(14deg);
  }

  70% {
    transform: rotate(7deg);
  }

  80%,
  100% {
    transform: rotate(0deg);
  }
}

@keyframes top-fv-rotate-staff02 {
  0%,
  14% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(-6deg);
  }

  26% {
    transform: rotate(-12deg);
  }

  32%,
  48% {
    transform: rotate(-18deg);
  }

  56% {
    transform: rotate(-10deg);
  }

  64% {
    transform: rotate(-15deg);
  }

  72% {
    transform: rotate(-7deg);
  }

  84%,
  100% {
    transform: rotate(0deg);
  }
}

@keyframes top-fv-rotate-staff03 {
  0%,
  12% {
    transform: rotate(0deg);
  }

  18% {
    transform: rotate(6deg);
  }

  24% {
    transform: rotate(12deg);
  }

  30%,
  44% {
    transform: rotate(18deg);
  }

  52% {
    transform: rotate(9deg);
  }

  60% {
    transform: rotate(15deg);
  }

  68% {
    transform: rotate(6deg);
  }

  76% {
    transform: rotate(-4deg);
  }

  86%,
  100% {
    transform: rotate(0deg);
  }
}

@keyframes top-fv-rotate-product01 {
  0%,
  16% {
    transform: rotate(0deg);
  }

  22% {
    transform: rotate(-4deg);
  }

  28% {
    transform: rotate(-8deg);
  }

  34% {
    transform: rotate(-12deg);
  }

  40%,
  52% {
    transform: rotate(-16deg);
  }

  60% {
    transform: rotate(-8deg);
  }

  68% {
    transform: rotate(4deg);
  }

  76% {
    transform: rotate(-4deg);
  }

  86%,
  100% {
    transform: rotate(0deg);
  }
}

@keyframes top-fv-rotate-product02 {
  0%,
  12% {
    transform: rotate(0deg);
  }

  18% {
    transform: rotate(7deg);
  }

  24% {
    transform: rotate(3deg);
  }

  30% {
    transform: rotate(10deg);
  }

  36% {
    transform: rotate(6deg);
  }

  42%,
  56% {
    transform: rotate(14deg);
  }

  66% {
    transform: rotate(7deg);
  }

  76% {
    transform: rotate(3deg);
  }

  86%,
  100% {
    transform: rotate(0deg);
  }
}

@keyframes top-fv-rotate-product03 {
  0%,
  10% {
    transform: rotate(0deg);
  }

  16% {
    transform: rotate(-4deg);
  }

  22% {
    transform: rotate(-8deg);
  }

  28% {
    transform: rotate(-12deg);
  }

  34% {
    transform: rotate(-16deg);
  }

  40%,
  54% {
    transform: rotate(-20deg);
  }

  62% {
    transform: rotate(-12deg);
  }

  70% {
    transform: rotate(-5deg);
  }

  78%,
  100% {
    transform: rotate(0deg);
  }
}

@keyframes top-fv-rotate-product04 {
  0%,
  14% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(8deg);
  }

  26% {
    transform: rotate(14deg);
  }

  32%,
  46% {
    transform: rotate(6deg);
  }

  54% {
    transform: rotate(-6deg);
  }

  62% {
    transform: rotate(-14deg);
  }

  70% {
    transform: rotate(-7deg);
  }

  78% {
    transform: rotate(4deg);
  }

  88%,
  100% {
    transform: rotate(0deg);
  }
}

@keyframes top-fv-rotate-factory {
  0%,
  18% {
    transform: rotate(0deg);
  }

  24% {
    transform: rotate(-6deg);
  }

  30%,
  42% {
    transform: rotate(-12deg);
  }

  48% {
    transform: rotate(-4deg);
  }

  54% {
    transform: rotate(6deg);
  }

  60%,
  72% {
    transform: rotate(12deg);
  }

  80% {
    transform: rotate(6deg);
  }

  88%,
  100% {
    transform: rotate(0deg);
  }
}

.top-fv {
  background-image: url("../img/common/bg.webp");
  background-position: center;
  background-repeat: repeat;
  background-size: 250px auto;
  overflow: visible;
  position: relative;
}

.top-fv::after {
  background-image: url("../img/common/nami.webp");
  background-position: left center;
  background-repeat: repeat-x;
  background-size: auto 14px;
  bottom: -7px;
  content: "";
  height: 14px;
  left: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 3;
}

.top-fv__inner {
  min-height: 768px;
  position: relative;
}

.top-fv__logo {
  left: 50%;
  position: absolute;
  top: 208px;
  transform: translateX(-50%);
  width: 355px;
}

.top-fv__image {
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  transform-origin: center;
  will-change: transform;
}

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

.top-fv__image--staff01 {
  animation: top-fv-rotate-staff01 7.5s steps(1, end) 0.3s infinite;
  height: 248px;
  left: 53px;
  top: 144px;
  width: 248px;
}

.top-fv__image--staff02 {
  animation: top-fv-rotate-staff02 8.2s steps(1, end) 1.1s infinite;
  height: 250px;
  right: -16px;
  top: 124px;
  width: 250px;
}

.top-fv__image--staff03 {
  animation: top-fv-rotate-staff03 7.8s steps(1, end) 2.1s infinite;
  bottom: 72px;
  height: 266px;
  right: 67px;
  width: 266px;
}

.top-fv__image--product01 {
  animation: top-fv-rotate-product01 6.8s steps(1, end) 0.8s infinite;
  height: 170px;
  left: 316px;
  top: 78px;
  width: 170px;
}

.top-fv__image--product02 {
  animation: top-fv-rotate-product02 7.6s steps(1, end) 1.7s infinite;
  height: 209px;
  right: 289px;
  top: 34px;
  width: 209px;
}

.top-fv__image--product03 {
  animation: top-fv-rotate-product03 8.6s steps(1, end) 2.7s infinite;
  bottom: 79px;
  height: 240px;
  left: 9px;
  width: 240px;
}

.top-fv__image--product04 {
  animation: top-fv-rotate-product04 7.1s steps(1, end) 1.4s infinite;
  bottom: 165px;
  height: 168px;
  left: 332px;
  width: 168px;
}

.top-fv__image--factory {
  animation: top-fv-rotate-factory 6.9s steps(1, end) 2.3s infinite;
  bottom: 95px;
  height: 155px;
  right: 318px;
  width: 155px;
}

.top-fv__circle {
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
}

.top-fv__circle--01 {
  height: 48px;
  left: -59px;
  top: 183px;
  width: 48px;
}

.top-fv__circle--02 {
  height: 70px;
  left: 336px;
  top: 310px;
  width: 70px;
}

.top-fv__circle--03 {
  bottom: 86px;
  height: 43px;
  left: 530px;
  width: 43px;
}

.top-fv__circle--04 {
  height: 42px;
  right: 356px;
  top: 359px;
  width: 42px;
}

.top-fv__circle--05 {
  height: 85px;
  right: 239px;
  top: 295px;
  width: 85px;
}

.top-fv__circle--06 {
  bottom: 103px;
  height: 69px;
  right: -16px;
  width: 69px;
}

/* 私たちについて
---------------------------------------- */

.top-about {
  border-bottom: 8px solid transparent;
  border-image: url("../img/top/wave-line.webp") 8 repeat;
  padding: 68px 0;
}

.top-about__inner {
  min-height: 520px;
  position: relative;
}

.top-about__image {
  border-radius: 20px;
  overflow: hidden;
  position: absolute;
  width: 228px;
}

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

.top-about__image--left {
  bottom: 95px;
  left: 0;
}

.top-about__content {
  margin: 0 auto;
  max-width: 700px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.top-about__text {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 2.2;
  margin: 0 0 68px;
}

.top-button {
  align-items: center;
  background: url("../img/common/bg.webp") repeat left top / 250px auto;
  border-radius: 22px;
  color: #fff;
  display: flex;
  font-size: 2.4rem;
  font-weight: 700;
  justify-content: center;
  min-height: 70px;
  text-decoration: none;
  transition: opacity 0.3s;
  width: 230px;
}

.top-button:hover {
  opacity: 0.7;
}

.top-about__button {
  margin: 38px auto 0;
}

.top-about__image--right {
  right: 0;
  top: 55px;
}

/* 私たちの仕事
---------------------------------------- */

.top-job {
  border-bottom: 8px solid transparent;
  border-image: url("../img/top/wave-line.webp") 8 repeat;
  padding: 64px 0 62px;
  position: relative;
}

.top-job::before {
  background-image: url("../img/common/nami.webp");
  background-position: left center;
  background-repeat: repeat-x;
  background-size: auto 14px;
  content: "";
  height: 14px;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: -7px;
  width: 100%;
  z-index: 3;
}

.top-job__inner {
  align-items: flex-end;
  display: grid;
  gap: 40px;
  grid-template-columns: 357px 1fr;
}

.top-job__heading {
  padding-left: 15px;
}

.top-section-title {
  margin: 0;
  width: 100%;
}

.top-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-job__links {
  margin-top: 45px;
  max-width: 330px;
}

.top-link-list__item + .top-link-list__item {
  margin-top: 14px;
}

.top-link-list__link {
  align-items: center;
  background-color: #B0F2EA;
  border-radius: 20px;
  display: flex;
  font-size: 2.1rem;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 24px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.top-link-list__link:hover {
  opacity: 0.7;
}

.top-link-list__arrow {
  flex: 0 0 auto;
  width: 16px;
}

.top-job__gallery {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.top-job__image {
  height: 400px;
  overflow: hidden;
}

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

/* 人を知る・環境を知る
---------------------------------------- */

.top-information {
  padding: 65px 0 75px;
  position: relative;
}

.top-information::before {
  background-image: url("../img/common/nami.webp");
  background-position: left center;
  background-repeat: repeat-x;
  background-size: auto 14px;
  content: "";
  height: 14px;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: -7px;
  width: 100%;
  z-index: 3;
}

.top-information__inner {
  display: grid;
  gap: 35px;
  grid-template-columns: 50% calc(50% - 35px);
}

.top-interview__images {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.top-interview__image {
  height: 175px;
  overflow: hidden;
}

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

.top-interview__content {
  align-items: flex-start;
  display: grid;
  gap: 40px;
  grid-template-columns: 324px 1fr;
  margin-top: 45px;
}

.top-interview__links {
  margin-top: 5px;
}

.top-environment {
  border-left: 2px solid #18B1BF;
  padding-left: 35px;
}

.top-environment__content {
  align-items: flex-end;
  display: grid;
  gap: 35px;
  grid-template-columns: 289px 1fr;
}

.top-environment__links {
  margin-top: 40px;
}

.top-environment__image {
  height: 280px;
  margin: 35px auto 0;
  max-width: 410px;
  overflow: hidden;
}

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

@media screen and (max-width: 767px) {

  /* FV
  ---------------------------------------- */

  .top-fv {
    min-height: 0;
  }

  .top-fv__inner {
    height: calc(100svh - 30px);
    min-height: 0;
  }

  .top-fv__logo {
    top: 195px;
    width: 205px;
  }

  .top-fv__image--staff01 {
    height: 118px;
    left: -25px;
    top: 100px;
    width: 118px;
  }

  .top-fv__image--staff02 {
    bottom: 130px;
    height: 130px;
    right: -25px;
    top: auto;
    width: 130px;
  }

  .top-fv__image--staff03 {
    bottom: 15px;
    height: 100px;
    right: 30px;
    width: 100px;
  }

  .top-fv__image--product01 {
    height: 90px;
    left: 105px;
    top: 60px;
    width: 90px;
  }

  .top-fv__image--product02 {
    height: 105px;
    right: -25px;
    top: 75px;
    width: 105px;
  }

  .top-fv__image--product03 {
    bottom: 50px;
    height: 125px;
    left: -20px;
    width: 125px;
  }

  .top-fv__image--product04 {
    bottom: 200px;
    height: 100px;
    left: 18px;
    width: 100px;
  }

  .top-fv__image--factory {
    bottom: 25px;
    height: 75px;
    right: 115px;
    width: 75px;
  }

  .top-fv__circle--01 {
    height: 24px;
    left: 15px;
    top: 245px;
    width: 24px;
  }

  .top-fv__circle--02 {
    height: 20px;
    left: 120px;
    top: 420px;
    width: 20px;
  }

  .top-fv__circle--03 {
    height: 50px;
    left: 150px;
    top: 430px;
    width: 50px;
  }

  .top-fv__circle--04 {
    display: none;
  }

  .top-fv__circle--05 {
    display: none;
  }

  .top-fv__circle--06 {
    display: none;
  }

  /* 私たちについて
  ---------------------------------------- */

  .top-about {
    border-bottom-width: 6px;
    padding: 50px 0 45px;
  }

  .top-about__inner {
    min-height: 0;
  }

  .top-about__content {
    max-width: none;
  }

  .top-about__text {
    font-size: 1.4rem;
    line-height: 2.35;
    margin-bottom: 27px;
  }

  .top-button {
    border-radius: 10px;
    font-size: 1.8rem;
    min-height: 45px;
    width: 160px;
  }

  .top-about__button {
    margin-top: 30px;
  }

  /* 私たちの仕事
  ---------------------------------------- */

  .top-job {
    border-bottom-width: 6px;
    padding: 45px 0;
  }

  .top-job__inner {
    display: block;
  }

  .top-job__heading {
    padding: 0 20px;
  }

  .top-section-title--job {
    padding: 0 5px;
  }

  .top-job__links {
    margin-top: 35px;
  }

  .top-link-list__item + .top-link-list__item {
    margin-top: 10px;
  }

  .top-link-list__link {
    border-radius: 12px;
    font-size: 2.1rem;
    min-height: 44px;
    padding: 7px 18px;
  }

  .top-link-list__arrow {
    width: 11px;
  }

  .top-job__gallery {
    gap: 2px;
    margin-top: 38px;
  }

  .top-job__image {
    height: 235px;
  }

  /* 人を知る・環境を知る
  ---------------------------------------- */

  .top-information {
    padding: 45px 20px 0;
  }

  .top-information__inner {
    display: block;
  }

  .top-interview {
    border-bottom: 2px solid #23b5c3;
    border-right: 0;
    padding: 0 0 45px;
  }

  .top-interview__images {
    gap: 4px;
  }

  .top-interview__image {
    height: 160px;
  }

  .top-interview__content {
    display: block;
    margin-top: 38px;
  }

  .top-section-title--interview {
    padding: 0 5px;
  }

  .top-interview__links {
    margin: 70px auto 0;
    max-width: 215px;
  }

  .top-environment {
    border-left: none;
    padding: 45px 0 60px;
  }

  .top-environment__content {
    display: block;
  }

  .top-section-title--environment {
    padding: 0 5px;
  }

  .top-environment__links {
    margin: 45px auto 0;
    max-width: 215px;
  }

  .top-environment__image {
    height: 260px;
    margin-top: 38px;
    max-width: none;
  }

}

@media (prefers-reduced-motion: reduce) {

  .top-fv__image {
    animation: none;
  }

}