/* ========================================
   Business Page Styles
   ======================================== */

/* Google Fonts - Baskerville風フォント */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

.business-page {
  padding: 220px 0 100px;
}

.business-divider {
  width: 100%;
  height: 1px;
  background-color: #28425c;
  margin: 94px 0;
}

/* イントロセクション */
.business-intro {
  margin: 70px 0 100px;
  display: flex;
  justify-content: space-between;
}

.intro-title {
  font-family: "YuMincho", serif;
  font-size: 30px;
  color: #244668;
  line-height: 1.8;
  margin-bottom: 60px;
  font-weight: normal;
}

.intro-description {
  font-family: "YuGothic", sans-serif;
  font-size: 14px;
  color: #244668;
  line-height: 2;
}

.intro-image {
  width: 440px;
}

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

/* 3つの特徴 */
.business-features {
  margin: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 14px;
  color: #244668;
  margin-bottom: 10px;
}

.section-title {
  font-family: "Helvetica", sans-serif;
  font-size: 40px;
  color: #244668;
  font-weight: normal;
  margin-bottom: 30px;
}

.features-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.feature-item {
  width: 330px;
  background-color: #244668;
  padding: 30px;
  border-radius: 10px;
}

.feature-title {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: normal;
}

.feature-description {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 14px;
  color: #ffffff;
  line-height: 2.14;
  letter-spacing: 0.02em;
}

/* プロジェクトの流れ */
.business-flow {
  margin: 100px 0 100px;
}

.flow-description {
  font-size: 14px;
  color: #244668;
  margin-bottom: 60px;
}

.flow-list {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  /* 右側を画面端まで伸ばす */
  /* margin-right: calc(-50vw + 50%);
  padding-right: calc(50vw - 50%); */
}

/* スクロールバーのスタイル */
.flow-list::-webkit-scrollbar {
  display: none;
}

.flow-item {
  flex: 0 0 357px;
  max-width: 357px;
  background-color: #244668;
  padding: 30px 30px 80px;
  position: relative;
}

.flow-item-narrow {
  padding-right: 22px;
}

.flow-number {
  font-size: 14px;
  color: #ffffff;
}

.flow-title {
  margin-top: 56px;
  font-size: 20px;
  color: #ffffff;
  font-weight: normal;
}

.flow-description-text {
  margin-top: 33px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 14px;
  color: #ffffff;
  line-height: 2.14;
  letter-spacing: 0.02em;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-arrow img {
  width: 15px;
  height: 120px;
}

.flow-scroll {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #244668;
  line-height: 1;
  margin: 50px 0;
  padding-top: 16px;
  border-top: 1px solid #244668;
}

/* ===== ギャラリーセクション ===== */
.business-gallery {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
}

.gallery-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Libre Baskerville", Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Times New Roman", serif;
  font-size: 7vw;
  color: #fff;
  mix-blend-mode: difference;
  z-index: 10;
  pointer-events: none;
}

.gallery-item {
  width: 100%;
  height: 284px;
  overflow: hidden;
  position: relative;
  background-color: transparent;
}

/* 背景ベール（画像の上に被さるカバー） */
.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #5eb6e2;
  z-index: 2;
  transform: translateX(-100%);
}

/* 画像は最初から下に隠れている */
.gallery-item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/* Step1: 背景ベールが左から入る → Step2: 右へ抜ける */
.business-gallery.is-inview .gallery-item::before {
  animation:
    galleryBgIn 0.4s ease-out forwards,
    galleryBgOut 0.4s ease-out 0.4s forwards;
}

/* 画像は背景が完全に覆った後に表示 */
.business-gallery.is-inview .gallery-item img {
  animation: galleryImgShow 0.01s forwards 0.4s;
}

/* 背景ベールが左から入る */
@keyframes galleryBgIn {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

/* 背景ベールが右へ抜ける */
@keyframes galleryBgOut {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 画像を表示 */
@keyframes galleryImgShow {
  to {
    opacity: 1;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .business-page {
    padding: 40px 0 60px;
  }

  /* イントロセクション */
  .business-intro {
    margin: 0 0 60px;
    flex-direction: column;
    gap: 60px;
  }

  .intro-title {
    margin-bottom: 30px;
    font-size: 18px;
  }

  .intro-description {
    font-size: 14px;
  }

  .intro-image {
    width: 100%;
    max-width: 335px;
    margin: 0 auto;
  }

  .business-divider {
    margin: 60px 0;
  }

  /* 特徴セクション */
  .business-features {
    margin: 0 0 60px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .features-grid {
    flex-direction: column;
    gap: 20px;
  }

  .feature-item {
    width: 100%;
    max-width: 100%;
    padding: 25px 20px;
    box-sizing: border-box;
  }

  .feature-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .feature-description {
    font-size: 14px;
    line-height: 1.7;
  }

  /* ギャラリー */
  .business-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .gallery-item {
    height: 200px;
  }

  .gallery-title {
    width: 100%;
    font-size: 10vw;
    text-align: center;
  }

  /* フローセクション */
  .business-flow {
    margin: 60px 0;
  }

  .flow-description {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .flow-list {
    margin-right: calc(-50vw + 50%);
    padding-right: calc(50vw - 50%);
    gap: 15px;
  }

  .flow-item {
    flex: 0 0 260px;
    min-width: 260px;
    padding: 25px 20px;
  }

  .flow-number {
    font-size: 13px;
  }

  .flow-title {
    font-size: 18px;
    margin-top: 30px;
  }

  .flow-description-text {
    font-size: 13px;
    margin-top: 15px;
  }

  .brand-section {
    padding-top: 0;
  }
}
