/* Partners & Affiliates Sections CSS
 * HPP HP — Figma file hTk2UtIZPusbWScukKNgMV
 * Node: 102:472 (取引企業 / Partners) — white bg, pt-120 pb-160
 * Node: 102:484 (関連企業 / Affiliates) — blue bg with image overlay
 */

/* ===========================================================================
 * PARTNERS SECTION (取引企業)
 * Background: white
 * Section title "Business Partner" / "取引企業"
 * Two rows of full-color logo images
 * =========================================================================== */

.partners {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  padding: 120px 24px 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

/* =====================
 * Section title block
 * Pattern: large EN watermark + JP label overlapping
 * Container: 649×103px
 * ===================== */

.partners__title {
  position: relative;
  text-align: center;
  width: 649px;
  height: 103px;
  white-space: nowrap;
}

.partners__title-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: normal;
  font-size: 96px;
  line-height: 1;
  letter-spacing: 1.92px;
  color: #dfedff;
  opacity: 0.6;
  margin: 0;
  pointer-events: none;
}

.partners__title-ja {
  position: absolute;
  top: 41.75%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 8px;
  color: #1e4d8b;
  white-space: nowrap;
  font-feature-settings: 'palt' 1;
  margin: 0;
}

/* =====================
 * Logo grid
 * White bg container, rounded-24px, width 1080px
 * Two rows: row-1 gap 46px, row-2 gap 50px
 * Vertical gap between rows: 56px
 * ===================== */

.partners__logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  width: 100%;
  max-width: var(--layout-content-width); /* 1024px */
  background-color: #ffffff;
  border-radius: 24px;
}

.partners__logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  flex-wrap: wrap;
}

/* Row 2 has wider gap (50px) */
.partners__logo-row:nth-child(2) {
  gap: 50px;
}

/* Individual logo item */
.partners__logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.partners__logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.partners__logo-img:hover {
  opacity: 0.8;
}

/* Placeholder for logo when image is not yet available */
.partners__logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 80px;
  border: 1px solid rgba(30, 77, 139, 0.15);
  border-radius: 4px;
  background: rgba(30, 77, 139, 0.04);
}

.partners__logo-placeholder span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(30, 77, 139, 0.3);
  text-transform: uppercase;
}

/* ===========================================================================
 * AFFILIATES SECTION (関連企業 / Group Companies)
 * Background: #1E4D8B top area (511px), then bg images with overlay
 * Total height ~824px
 * =========================================================================== */

.affiliates {
  position: relative;
  width: 100%;
  min-height: 824px;
  overflow: hidden;
  background-color: #1e4d8b;
}

/* =====================
 * Background image layers
 * Primary image with color burn overlay
 * ===================== */

.affiliates__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.affiliates__bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 107%;
  height: 125%;
  object-fit: cover;
  object-position: center center;
}

.affiliates__bg-img--overlay {
  mix-blend-mode: color-burn;
  opacity: 0.6;
}

/* =====================
 * Inner content frame
 * Centered, padded vertically
 * ===================== */

.affiliates__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--layout-content-width); /* 1024px */
  margin: 0 auto;
  padding: 96px 24px 100px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =====================
 * Section title block
 * EN watermark + JP label
 * Width 649px, height 103px
 * ===================== */

.affiliates__title {
  position: relative;
  text-align: center;
  width: 820px;
  height: 103px;
  white-space: nowrap;
  margin-bottom: 56px;
}

.affiliates__title-en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: normal;
  font-size: 96px;
  line-height: 1;
  letter-spacing: 1.92px;
  color: #ffffff;
  opacity: 0.3;
  margin: 0;
  pointer-events: none;
  white-space: nowrap;
}

.affiliates__title-ja {
  position: absolute;
  top: 41.75%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 8px;
  color: #ffffff;
  white-space: nowrap;
  font-feature-settings: 'palt' 1;
  margin: 0;
}

/* =====================
 * Description text
 * Noto Sans JP Regular, 18px, white, letter-spacing 0.9px
 * ===================== */

.affiliates__desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: 0.9px;
  color: #ffffff;
  text-align: center;
  margin: 0 0 80px;
}

/* =====================
 * 3-card grid
 * Gap 80px between cards
 * ===================== */

.affiliates__cards {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* .affiliates__inner の中身領域 = 1024 - padding 24×2 = 976px。
   * 3カード (300×3=900) を 976 に収めるため gap = (976-900)/2 = 38px */
  gap: 38px;
  width: 100%;
}

/* =====================
 * Individual affiliate card
 * Width 300px, gap 16px between elements
 * ===================== */

.affiliates__card {
  flex: 0 0 300px;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Card image area: 300x169px, border-radius 8px */
.affiliates__card-image {
  width: 300px;
  height: 169px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.affiliates__card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.affiliates__card-vector {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  z-index: 2;
}

/* Dark overlay on card image: #1A2332 at 70% opacity, mix-blend-multiply */
.affiliates__card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #1a2332;
  opacity: 0.7;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Card logo/icon centered on image */
.affiliates__card-image-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  z-index: 1;
}

/* Image placeholder */
.affiliates__card-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.affiliates__card-image-placeholder span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

/* Card body: company name + description */
.affiliates__card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Card name: Shippori Mincho Bold, 24px, white */
.affiliates__card-name {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 1.2px;
  color: #ffffff;
  margin: 0;
  text-align: center;
  width: 100%;
}

/* Card description: Noto Sans JP Regular, 16px, white */
.affiliates__card-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: normal;
  color: #ffffff;
  margin: 0;
  width: 100%;
}
