/* ============================================
   FAS Recruit - Top Page
   ============================================ */

/* --- Hero + Message (3Section) --- */
.hero-wrapper {
  position: relative;
  z-index: 1;
  --hero-darken: 0.2;
}

.hero-wrapper::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, var(--hero-darken));
  z-index: 1;
  pointer-events: none;
}

.hero-wrapper + .page-body {
  margin-top: calc(-1 * var(--radius-section));
}

.hero-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide {
  height: 100%;
}

.hero-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FV Section */
.hero-fv {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 var(--container-padding);
}

.hero-fv__inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero-fv__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 64px;
  color: var(--color-white);
  line-height: 1.3;
  letter-spacing: 3.84px;
  text-shadow: var(--shadow-text);
}

/* Message Section */
.hero-message {
  position: relative;
  z-index: 2;
  padding: 320px var(--container-padding) 400px;
}

.hero-message__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero-message__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 48px;
  color: var(--color-white);
  line-height: 1.45;
  letter-spacing: 0.48px;
  text-shadow: var(--shadow-text);
}

.hero-message__body {
  padding-top: 88px;
  max-width: 432px;
}

.reveal-line {
  color: rgba(255, 255, 255, 0.25);
  transition: color 400ms 100ms ease-out;
}

.reveal-line.is-revealed {
  color: var(--color-white);
}

.hero-message__text {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-white);
  line-height: 1.85;
  text-shadow: var(--shadow-text);
}

/* About Section */
.about-intro {
  position: relative;
  background-color: var(--color-white);
  padding: 144px var(--container-padding) 64px;
}

.about-intro__inner {
  display: flex;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-intro__img {
  width: 655px;
  height: 460px;
  border-radius: var(--radius-image);
  background-color: var(--color-bg-placeholder);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-intro__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.about-intro__placeholder {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
  opacity: 0.2;
  letter-spacing: 1.2px;
}

.about-intro__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}

.about-intro__text {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
}

/* --- Photo Carousel --- */
.photo-carousel {
  background-color: var(--color-white);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.photo-carousel__track {
  display: flex;
  gap: 48px;
  animation: carousel-scroll 30s linear infinite;
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-280px * 7 - 48px * 7));
  }
}


.photo-carousel__item {
  width: 280px;
  height: 380px;
  border-radius: var(--radius-image-sm);
  background-color: var(--color-bg-placeholder);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-carousel__item--offset {
  margin-top: 24px;
}

.photo-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-carousel__decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 88px;
  height: 88px;
  z-index: 3;
}

/* --- Interview Section --- */
.interview-section {
  background-color: var(--color-primary);
  padding: 128px var(--container-padding);
  position: relative;
}

.interview-section .section-heading__en,
.interview-section .section-heading__ja {
  color: var(--color-white);
}

.interview-section .section-heading {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.interview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 32px;
  margin-top: 48px;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.interview-section .interview-card {
  flex: 0 0 calc(25% - 24px);
}

.interview-section__btn {
  display: flex;
  justify-content: center;
  margin-top: 64px;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.interview-section__corner-tr {
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 88px;
  transform: rotate(180deg);
  z-index: 1;
}

.interview-section__corner-bl {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 88px;
  height: 88px;
  z-index: 1;
}

/* --- Job Section --- */
.job-section {
  background-color: var(--color-bg-light);
  padding: 128px var(--container-padding) 48px;
  position: relative;
}

.job-section__inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: var(--content-width);
  margin: 0 auto;
}

.job-section__heading {
  width: 300px;
  flex-shrink: 0;
}

.job-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 40px;
}

.job-item {
  border-bottom: 1px solid var(--color-border);
}

.job-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  padding-right: 32px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.job-item__header:hover {
  opacity: 0.7;
}

.job-item__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-text);
  line-height: 1;
}

.job-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.job-item__header:hover .job-item__icon {
  transform: rotate(90deg);
}

.job-item.is-open .job-item__icon {
  transform: rotate(45deg);
}

.job-item.is-open .job-item__header:hover .job-item__icon {
  transform: rotate(135deg);
}

.job-item__body {
  display: none;
  padding: 0 32px 24px 16px;
}

.job-item.is-open .job-item__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.job-item__link {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text);
  line-height: 1;
  padding: 16px 0;
  border-bottom: 1px dashed var(--color-border);
  transition: color 0.3s ease;
}

.job-item__link:last-child {
  border-bottom: none;
}

.job-item__link:hover {
  color: var(--color-primary);
}

.job-section__corner-tr {
  position: absolute;
  top: -1px;
  right: 0;
  width: 88px;
  height: 88px;
  transform: rotate(180deg);
  z-index: 1;
}

/* ============================================
   RESPONSIVE - Tablet (max-width: 1080px)
   ============================================ */
@media (max-width: 1080px) {

  .hero-wrapper {
    background-attachment: scroll;
  }

  .about-intro__inner {
    flex-direction: column;
    gap: 40px;
  }

  .about-intro__img {
    width: 100%;
    height: 400px;
  }
}

/* ============================================
   RESPONSIVE (max-width: 792px)
   ============================================ */
@media (max-width: 792px) {

  /* --- Hero FV --- */
  .hero-fv {
    height: 100svh;
  }

  .hero-fv__title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  /* --- Hero Message --- */
  .hero-message {
    padding: 320px var(--container-padding) 400px;
  }

  .hero-message__inner {
    flex-direction: column;
    gap: 40px;
  }

  .hero-message__title {
    font-size: 24px;
  }

  .hero-message__body {
    padding-top: 0;
    max-width: 100%;
  }

  .hero-message__text {
    font-size: 14px;
  }

  /* --- About Intro --- */
  .about-intro {
    padding: 104px var(--container-padding) 64px;
  }

  .about-intro__img {
    height: 220px;
  }

  .about-intro__content {
    gap: 20px;
  }

  .about-intro__text {
    font-size: 14px;
  }

  /* --- Photo Carousel --- */
  .photo-carousel {
    padding: 24px 0;
  }

  .photo-carousel__track {
    gap: 12px;
  }

  .photo-carousel__item {
    width: 140px;
    height: 190px;
  }

  .photo-carousel__item--offset {
    margin-top: 12px;
  }

  .photo-carousel__decoration {
    width: 40px;
    height: 40px;
  }

  /* --- Interview Section --- */
  .interview-section {
    padding: 80px var(--container-padding);
  }

  .interview-grid {
    flex-wrap: wrap;
    row-gap: 32px;
    column-gap: 16px;
    margin-top: 32px;
  }

  .interview-section .interview-card {
    flex: 0 0 calc(50% - 8px);
  }

  .interview-section__btn {
    margin-top: 64px;
  }

  .interview-section__corner-tr,
  .interview-section__corner-bl {
    width: 40px;
    height: 40px;
  }

  /* --- Job Section --- */
  .job-section {
    padding: 80px var(--container-padding) 24px;
  }

  .job-section__inner {
    flex-direction: column;
    gap: 32px;
  }

  .job-section__heading {
    width: 100%;
  }

  .job-list {
    padding-top: 0;
    gap: 16px;
    width: 100%;
  }

  .job-item__header {
    padding-right: 0;
  }

  .job-item__title {
    font-size: 18px;
  }

  .job-item__body {
    padding: 0 0 16px 8px;
  }

  .job-item__link {
    font-size: 14px;
    padding: 14px 0;
  }

  .job-section__corner-tr {
    width: 40px;
    height: 40px;
  }

}
