/* ヒーローセクション */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  background: url("../images/hero.png") center/cover no-repeat;
}

.hero h1 {
  font-size: 48px;
  font-weight: lighter;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

@media (width <= 768px) {
  .hero h1 {
    font-size: 32px;
    line-height: 2;
    letter-spacing: 1.2rem;
    writing-mode: vertical-rl;
  }
}

/* ミッションセクション */
.mission {
  max-width: 1280px;
  padding: 10% 5%;
  margin: 0 auto;
}

.mission__inner {
  width: 100%;
  padding: 8% 12%;
  background-color: #bacad3;
  box-shadow: 0 4px 4px 0 #00000040;
}

.mission__contents {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  padding: 8%;
  background-color: #fff3;
  border-radius: 15px;
}

.mission__title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.mission__title h2 {
  color: #fff;
}

.mission__title p {
  font-family: "Shippori Mincho", serif;
  font-size: 20px;
  font-weight: normal;
  line-height: 1;
}

.mission__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

@media (width <= 768px) {
  .mission {
    padding: 0;
    background-color: #bacad3;
  }

  .mission__inner {
    padding: 10% 0;
    background-color: transparent;
    box-shadow: none;
  }

  .mission__contents {
    background-color: transparent;
  }

  .mission__title p {
    font-size: 1rem;
  }

  .mission__text p {
    text-align: left;
  }
}

/* アバウトセクション */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  /* max-width: 1280px; */
  padding: 5%;
  margin: 0 auto;
}

.about img {
  width: 50%;
}

.about__contents {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  width: 45%;
  padding: 48px 0;
}

.about__contents .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;

  p {
    text-align: center;
  }
}

.about__contents .about__title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;

  p {
    font-family: "Shippori Mincho", serif;
    font-size: 20px;
    font-weight: normal;
    line-height: 1;
  }
}

.about__view-more {
  width: 60%;
  min-width: 15rem;
  padding: 32px;
  text-align: center;
  border: 1px solid #1a1819;
  transition: all 0.3s ease-in-out;
}

.about__view-more:hover {
  color: #fff;
  letter-spacing: 2px;
  background-color: #1a1819;
}

@media (width <= 768px) {
  .about {
    padding: 5% 0;
  }

  .about__contents {
    gap: 160px;
    align-items: flex-start;
    width: 100%;
  }

  .about__contents .container {
    position: relative;
    gap: 2rem;
    align-items: flex-end;
    width: 66.6666%;
    padding: 15% 5%;
    background-color: #bacad3e6;
  }

  .about__contents .container::after {
    position: absolute;
    top: -25%;
    left: 50%;
    z-index: -1;
    display: block;
    flex-shrink: 0;
    width: 100%;
    max-height: 480px;
    aspect-ratio: 3/4;
    content: "";
    background: url("../../assets/images/main/ishitomo-office.jpg") center/cover no-repeat;
    background-color: #ffe0f9;
  }

  .about__contents .container p {
    text-align: left;
  }

  .about__title {
    padding-left: 8%;
  }

  .about__view-more {
    min-width: 12rem;
    padding: 16px;
    font-size: 0.8rem;
    background-color: #fff;
  }
}

/* Personセクション */
.person {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 5%;
  margin: 0 auto;
}

.person img {
  width: 50%;
}

.person__contents {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  width: 45%;
  padding: 48px 0;
}

.person .person__contents p {
  text-align: center;
}

@media (width <= 768px) {
  .person {
    padding: 5% 0;
    overflow:hidden;
  }

  .person__contents {
    gap: 160px;
    align-items: flex-start;
    width: 100%;
  }

  .person__contents .container {
    position: relative;
    gap: 2rem;
    align-items: flex-end;
    width: 66.6666%;
    padding: 15% 5%;
    background-color: #bacad3e6;
  }

  .person__contents .container::after {
    position: absolute;
    top: -25%;
    left: 75%;
    z-index: -1;
    display: block;
    flex-shrink: 0;
    width: 100%;
    max-height: 360px;
    aspect-ratio: 3/4;
    content: "";
    background: url("../../assets/images/main/person.jpeg") center/cover no-repeat;
  }

  .person__contents p {
    text-align: left;
  }

  .person__title {
    padding-left: 8%;
  }
}

/* データセクション */
.data {
  padding: 96px 0;
  background-color: #bacad3;
}

.data__contents {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  width: 60%;
  padding: 48px;
  margin: 0 auto;
  background-color: #fff;
}

.data .data__contents p {
  text-align: center;
}

.data__title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.data .data__title p {
  font-family: "Shippori Mincho", serif;
  font-size: 20px;
  font-weight: normal;
  line-height: 1;
}

.data__view-more {
  width: 60%;
  min-width: 15rem;
  padding: 32px;
  text-align: center;
  border: 1px solid #1a1819;
  transition: all 0.3s ease-in-out;
}

.data__view-more:hover {
  color: #fff;
  letter-spacing: 2px;
  background-color: #1a1819;
}

@media (width <= 768px) {
  .data {
    padding: 96px 32px;
  }

  .data__contents {
    width: 100%;
  }

  .data__view-more {
    min-width: 12rem;
    padding: 16px;
  }
}

/* 社員の声セクション */
.interview {
  padding: 10% 0;
}

.interview__title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.interview .interview__title p {
  font-family: "Shippori Mincho", serif;
  font-size: 20px;
  font-weight: normal;
  line-height: 1;
}

.interview__contents {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@keyframes slider {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translate(-135%);
  }
}

.interview__slider {
  width: 100%;
  overflow: hidden;
}

.interview__slider-inner {
  display: flex;
  gap: 5%;
  align-items: center;
  padding-top: 10px;
  animation: slider 120s linear infinite;
}

.interview__item {
  position: relative;
  display: flex;
  flex-shrink: 0;
  width: 40%;
  aspect-ratio: 1;
  box-shadow: 0 4px 4px 0 #0000;
  transition: all 0.3s;
}

.interview__item:hover {
  box-shadow: 0 4px 4px 0 #00000040;
  transform: translateY(-10px);
}

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

.interview .interview__detail {
  position: absolute;
  right: 32px;
  bottom: 16px;
  left: 32px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 32px 16px;
  background-color: #ffffffb3;
  border-radius: 10px;

  h3 {
    font-size: 1.5rem;
  }

  p {
    font-size: min(1.5vw, 1rem);
    line-height: 1.2;
  }
}

@media (width <= 768px) {
  .interview__slider {
    overflow-x: scroll;
    scrollbar-width: none;
  }

  .interview__slider-inner {
    gap: 0;
    justify-content: space-between;
    padding: 10px 5% 0;
    animation: none;
  }

  .interview__item {
    box-sizing: content-box;
    width: 70%;
    margin: 0 5%;
  }

  .interview__detail {
    right: 0;
    bottom: 0;
    left: 0;
    gap: 0.5rem;
    padding: 5% 10%;
    border-radius: 0;

    h3 {
      font-size: min(6vw, 1.4rem);
    }

    p {
      font-size: min(4vw, 0.8rem);
    }
  }
}

/* 採用情報セクション */
.recruit {
  max-width: 1280px;
  padding: 10% 5%;
  margin: 0 auto;
}

.recruit__contents {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.recruit__title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.recruit .recruit__title p {
  font-family: "Shippori Mincho", serif;
  font-size: 20px;
  line-height: 1;
}

.recruit__info {
  display: flex;
  gap: 48px;
  width: 100%;
  padding: 4% 8%;
  background-color: #bacad3;
}

.recruit .recruit__link {
  position: relative;
  flex: 1;
  aspect-ratio: 16/9;
  background-color: #fff;
  box-shadow: 0 1px 4px 0 #00000040;
  transition: all 0.3s ease-in-out;

  &:hover {
    box-shadow: 0 4px 4px 0 #00000040;
    transform: translateY(-6px);
  }

  h3 {
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 80%;
    font-size: 1.5rem;
  }
}

.recruit__link--new {
  background: url("../images/recruit-new.png") center/cover no-repeat;
}

.recruit__link--mid {
  background: url("../images/recruit-mid.png") center/cover no-repeat;
}

.recruit__link h3::after {
  display: block;
  width: 100%;
  height: 1rem;
  margin-top: -0.5rem;
  content: "";
  background-color: #ffe0f9;
}

.recruit__view-more {
  width: 60%;
  min-width: 15rem;
  padding: 32px;
  text-align: center;
  border: 1px solid #1a1819;
  transition: all 0.3s ease-in-out;

  &:hover {
    color: #fff;
    letter-spacing: 2px;
    background-color: #1a1819;
  }
}

@media (width <= 768px) {
  .recruit {
    padding: 10% 0;
  }

  .recruit__info {
    flex-direction: column;
    padding: 8%;
  }

  .recruit__view-more {
    min-width: 16rem;
    color: #fff;
    background-color: #bacad3;
    border: none;
  }

  .recruit__view-more:hover {
    background-color: #6998b3;
  }
}
