/*===========================
Hero
============================*/
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}

/* テキストレイヤー */
.hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  padding: 0 5%;
}

.hero__content {
  pointer-events: auto;
  padding-bottom: 20px;
}

/* 見出し */
.hero__title {
  font-size: var(--font_117);
  line-height: 1.2;
  font-weight: 700;
  color: var(--yellow);
}

.hero__text {
  margin: 0;
  font-size: var(--font_28);
  color: var(--yellow);
  font-family: "Bodoni Moda", "Times New Roman", Times, Georgia, serif;
}

/* 背景動画（PCメイン） */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 背景スライダー（SPメイン） */
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none; /* PCでは非表示 */
}

.hero__slider .splide__track,
.hero__slider .splide__list,
.hero__slider .splide__slide {
  height: 100%;
}

.hero__slider .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero {
    min-height: 520px; /* SPで少しだけ低くしてもOK（好みで調整） */
  }

  .hero__content {
    padding-bottom: 40px;
  }

  /* SPでは動画を消してスライダーを表示 */
  .hero__video {
    display: none;
  }

  .hero__slider {
    display: block;
  }

  .hero__text {
    margin: 0;
    font-size: var(--font_25);
  }
}

/*===========================
About Section
============================*/
.about {
  padding-block: 120px;
  padding-inline: 5%;
  background-color: var(--ivory);
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 56px;
  row-gap: 20px;
}

/* 各カラム */
.about__col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* 画像コラム */
.about__col--images {
  align-items: flex-end;
}

.about__col--images-left {
  row-gap: 120px;
}

.about__col--images-right {
  align-items: flex-start;
  row-gap: 80px;
  padding-left: 60px;
}

/* 写真カード */
.about__photo {
  width: 100%;
  max-width: 260px;
  overflow: hidden;
}

.about__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.about__col--images-left .about__photo--top img,
.about__col--images-right .about__photo--bottom img {
  width: 90%;
}
.about__col--images-left .about__photo--top {
  transform: translateY(100px);
}
.about__col--images-left .about__photo--bottom {
  transform: translateX(-60px) translateY(180px);
}
.about__col--images-right .about__photo--top {
  transform: translateX(20px) translateY(-30px);
}
.about__col--images-right .about__photo--bottom {
  transform: translateY(-30px);
}

/* 中央テキスト */
.about__col--text {
  text-align: center;
  gap: 30px;
  min-width: 430px;
}

/* 見出し */
.about__title {
  margin: 0;
  font-size: var(--font_54);
  line-height: 1.8;
  font-weight: 300;
  position: relative;
}

/* 本文 */
.about__body {
  font-size: var(--font_18);
  line-height: 2.2;
}

.about__dot {
  position: relative;
  display: inline-block;
}

.about__dot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
}

.about__body p {
  margin: 0 0 30px;
}

.about__body p:last-child {
  margin-bottom: 0;
}
/*-------------------
  画像のフェードイン
---------------------*/

/* 初期状態（非表示） */
.about-img {
  opacity: 0;
  transform: translateY(30px);
}

/* フェードアップ共通アニメーション */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スクロールで表示されたときにアニメーション開始 */
.about-img.is-show {
  animation: fadeUp 0.9s ease-out forwards;
}

/* 順番指定（03 → 01 → 04 → 02） */
.about-03.is-show {
  animation-delay: 0s;
}

.about-01.is-show {
  animation-delay: 0.25s;
}

.about-04.is-show {
  animation-delay: 0.5s;
}

.about-02.is-show {
  animation-delay: 0.75s;
}

@media (max-width: 1200px) {
  .about {
    padding-block: 50px;
  }
  .about__inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .about__col--images-left {
    padding-top: 0;
  }

  .about__col--images,
  .about__col--images-right {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }

  .about__col--text {
    min-width: auto;
    gap: 20px;
  }

  .about__photo {
    max-width: 200px;
  }

  .about__photo--top,
  .about__photo--bottom {
    margin: 0;
  }
  .about__col--images-right {
    padding-left: 0;
  }
  .about__col--images-left .about__photo--top img,
  .about__col--images-right .about__photo--bottom img {
    width: auto !important; /* または100%など */
    height: auto !important;
  }
  .about__col--images-left .about__photo--top,
  .about__col--images-left .about__photo--bottom,
  .about__col--images-right .about__photo--top,
  .about__col--images-right .about__photo--bottom {
    transform: none !important;
    width: 100% !important;
  }
  .about__col--images-left .about__photo--top {
    position: relative;
    top: 20px;
  }
  .about__col--images-right .about__photo--bottom {
    position: relative;
    top: 20px;
  }
}
@media (max-width: 420px) {
  .about__body {
    text-align: left;
    line-height: 1.8;
  }
  .about__body p {
    margin: 0 0 10px;
  }
}

/*===========================
Message
============================*/
.message {
  background: url("../images/top/message_bg.png") no-repeat center top / cover;
  padding-top: 60px;
  padding-bottom: 120px;
  text-align: left;
  border-radius: 40px;
  overflow: hidden;
}
.message__head {
  margin: 0 0 var(--space_30);
}

.message__title {
  font-family: "Bodoni Moda", "Times New Roman", serif;
}

.message__subtitle {
  font-size: var(--font_18);
}

/* 上段：メイン画像＋テキスト重ね */
.message__visual {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 50px;
}

.message__visual-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 40px;
}

/* 画像上テキスト */
.message__visual-text {
  position: absolute;
  top: 38%;
  left: 13%;
  transform: translateY(-50%);
  max-width: 730px;
}

/* 1つ目の段落（リードコピー） */
.message__visual-text p:first-child {
  font-size: var(--font_37);
  font-weight: 300;
  line-height: 1.8;
  margin: 0 0 var(--space_20);
}

/* 署名部分 */
.message__author {
  font-size: var(--font_14);
  line-height: 1.8;
  margin: 0;
}

/* 下段：サブ写真＋本文 */
.message__bottom {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: flex-start;
  gap: 60px;
  max-width: 960px;
  margin-top: 60px;
}

.message__bottom-photo img {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  display: block;
}

.message__text {
  font-size: var(--font_16);
  line-height: 2.2;
  white-space: normal;
}

@media (max-width: 1040px) {
  .message__visual-text {
    top: 45%;
    left: 8%;
  }
}
@media (max-width: 768px) {
  .message {
    padding-top: 40px;
    padding-bottom: 60px;
  }
  .message__visual {
    margin-bottom: 20px;
  }
  .message__visual-text {
    top: 26%;
    left: 5%;
  }

  .message__bottom-photo {
    display: none;
  }
  .message__bottom {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
}

/*===========================
Job Category
============================*/
.job {
  background-color: #fff;
  background-image: url("../images/top/job_bg.png");
  background-repeat: repeat;
  background-position: center top;
  background-size: cover;
  background-color: var(--ivory);
  padding-top: 80px;
  padding-bottom: 120px;
}

/* カードリスト */
.job__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  justify-content: center;
}

/* 各カード */
.job__card {
  text-align: center;
}

.job__card-image {
  border-radius: 32px;
  overflow: hidden;
  margin-bottom: 24px;
}

.job__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.job__card-body {
  margin-inline: auto;
}

.job__card-title {
  margin: 0 0 6px;
  font-size: var(--font_28);
  color: var(--right-green);
  font-weight: 400;
}

.job__card-sub {
  margin: 0 0 20px;
  font-size: var(--font_18);
}

.job__card-factory .job__card-title {
  color: var(--green);
}
.job__card-factory .job__card-btn {
  background-color: var(--green);
}

.job__card-btn {
  background-color: var(--right-green);
  color: #fff;
  font-size: var(--font_18);
  font-weight: 600;
  padding-inline: 40px;
  position: relative;
  padding-right: 48px;
}

.job__card-btn::after {
  content: "＞";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--font_20);
  font-weight: 700;
  color: #fff;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .job {
    padding-top: 40px;
  }
  .job__cards {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .job__card-image {
    margin-bottom: 10px;
  }
  .job__card-sub {
    margin: 0 0 10px;
  }
}

/*===========================
Workplace Section
============================*/
.workplace {
  background-color: #fff;
  background-image: url("../images/top/workplace_bg.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  padding-top: 120px;
  padding-bottom: 120px;
  text-align: left;
  border-radius: 40px;
}

/* inner を絶対配置の基準にする */
.workplace .inner {
  position: relative;
  min-height: 420px;
}

/* 中央テキスト */
.workplace__center {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  color: #fff;
}

.workplace__title {
  margin: 0 0 24px;
  font-size: var(--font_54);
  font-weight: 300;
  line-height: 1.8;
}

.workplace__body {
  margin: 0;
  font-size: var(--font_16);
  line-height: 2.2;
}

/* 角丸フォト */
.workplace__photo {
  position: absolute;
  width: 260px;
  max-width: 42%;
  border-radius: 32px;
  overflow: hidden;
  z-index: 1;
}

.workplace__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 位置調整 */
.workplace__photo--left {
  left: 4%;
  bottom: -210px;
}

.workplace__photo--top-right {
  right: 0%;
  top: -160px;
}

.workplace__photo--bottom-right {
  right: 4%;
  bottom: -180px;
}
/*-------------------
  WORKPLACE 画像のフェードイン
---------------------*/

/* 初期状態（非表示） */
.workplace-img {
  opacity: 0;
  transform: translateY(30px);
}

/* スクロールで表示されたときにアニメーション開始 */
.workplace-img.is-show {
  animation: fadeUp 0.9s ease-out forwards;
}

/* 順番指定（02 → 01 → 03） */
.workplace-02.is-show {
  animation-delay: 0s;
}

.workplace-01.is-show {
  animation-delay: 0.25s;
}

.workplace-03.is-show {
  animation-delay: 0.5s;
}

@media (max-width: 768px) {
  .workplace {
    background: url("../images/top/workplace_bg_sp.jpg") no-repeat center top /
      cover;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .workplace__photo--left {
    left: 4%;
    bottom: -120px;
  }

  .workplace__photo--top-right {
    right: 4%;
    top: -200px;
  }

  .workplace__photo--bottom-right {
    right: 0;
    bottom: -100px;
  }
}

/*===========================
Interview
============================*/
.interview {
  background-color: #fff;
  background-image: url("../images/top/interview_bg.png");
  background-repeat: repeat;
  background-position: center top;
  background-size: cover;
  background-color: var(--ivory);
  padding-top: 140px;
  padding-bottom: 120px;
}

/* カードリスト */
.interview__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

/* 各カード */
.interview__item {
  text-align: left;
  line-height: 1.6;
}

/* 写真（上が丸いカード風） */
.interview__thumb {
  width: 100%;
  margin-inline: auto;
  margin-bottom: 16px;
  overflow: visible;
}

.interview__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ARTICLE全体をホバー対象にする */
.interview__item:hover .interview__thumb img {
  transform: scale(1.05);
}

.interview__copy {
  margin: 0 0 8px;
  font-size: var(--font_20);
  font-weight: 500;
  color: var(--deep-blue);
}

.interview__text {
  font-size: var(--font_15);
}

@media (max-width: 768px) {
  .interview {
    padding-top: 80px;
    padding-bottom: 60px;
  }
  .interview__thumb {
    margin-bottom: 10px;
  }
  .interview__copy {
    font-size: var(--font_25);
  }
}
@media (max-width: 480px) {
  .interview__list {
    grid-template-columns: 1fr 1fr;
  }
}

/*===========================
Movie Section
============================*/
.movie {
  background: url("../images/top/movie_bg.png") no-repeat center top / cover;
  padding-top: var(--space_120);
  padding-bottom: var(--space_120);
}

/* 中身の横幅は .inner で制御 */
.movie__inner {
  text-align: center;
}

/* タイトル */
.movie__title {
  margin-bottom: 60px;
  font-size: var(--font_46);
  font-weight: 300;
  line-height: 1.8;
  color: #fff;
}

/* グレーの枠（動画を入れるパネル） */
.movie__frame {
  max-width: 960px;
  margin-inline: auto;
  border-radius: 32px;
}

/* レスポンシブな16:9動画 */
.movie__video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.movie__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
@media (max-width: 768px) {
  .movie {
    padding-top: var(--space_80);
    padding-bottom: var(--space_80);
    border-radius: 0; /* スマホではフル幅にしてもOKなら */
  }

  .movie__frame {
    padding: 24px 16px;
    border-radius: 24px;
  }

  .movie__title {
    margin-bottom: 0;
    text-align: left;
  }
}

/*===========================
Location (Map) 
============================*/

.location {
  background-color: #fff;
  background-image: url("../images/top/location_bg.png");
  background-repeat: repeat;
  background-position: center top;
  background-size: cover;
  background-color: var(--ivory);
  padding-top: var(--space_120);
  padding-bottom: var(--space_120);
}

/* ヘッダーは共通クラス利用 */

/* カード */
.location__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  justify-content: center;
}

.location__card {
  text-align: center;
}

.location__card-image {
  border-radius: 32px;
  overflow: hidden;
  margin-bottom: 24px;
}

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

.location__card-body {
  max-width: 370px;
  margin-inline: auto;
}

.location__card-title {
  font-size: var(--font_28);
  color: var(--pink);
  font-weight: 500;
}

.location__card-address {
  margin: 0 0 10px;
  font-size: var(--font_16);
  min-height: 57px;
}
.location__card-sub {
  margin: 10px 0 0;
  font-size: var(--font_16);
  line-height: 1.8;
}

/* ボタンカラー */
.btn--location {
  background-color: var(--pink);
  color: #fff;
  padding-inline: 40px;
  position: relative;
  padding-right: 48px;
}

@media (max-width: 768px) {
  .location__cards {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .location {
    padding-top: 40px;
  }
  .location__head {
    margin-bottom: 20px;
  }
  .location__card-image {
    margin-bottom: 10px;
  }
  .location__card-sub {
    text-align: left;
  }
}
