/* ==========================================================================
   brand.css — BRAND（2社共同プロジェクト）ページ固有のセクション
   1920px設計。js/common.js が .js-stage / #mainVisual に zoom を掛けて画面幅に合わせる
   ========================================================================== */

/* ---- ヒーロー ---- */
/* レイアウト方式: 通常のレスポンシブ（.currentPage.js-fluid）。zoom は使わない */
.p-brand-hero {
  position: relative;
  width: 100%;
  height: clamp(520px, 48.49vw, 931px);
  overflow: hidden;
  background: rgb(49,46,41);
}

.p-brand-hero__img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* fig の乗算グラデーション。写真の上に敷いて文字の視認性を確保する */
.p-brand-hero__veil {
  position: absolute;
  inset: 0;
  opacity: 0.8;
  mix-blend-mode: multiply;
  background: linear-gradient(114.325deg, rgb(132,127,120) 10.77%, rgb(49,46,41) 96.87%);
}

.p-brand-hero__body {
  position: absolute;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
  width: min(900px, 100% - 48px);
  margin-left: calc(min(900px, 100% - 48px) / -2);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
  color: rgb(255,255,255);
}

.p-brand-hero__en {
  margin: 0;
  font-family: 'Cormorant Infant', ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: clamp(56px, 5.21vw, 100px);
  line-height: 0.75;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  /* 他ページのヒーロー見出しと同じ金のグラデーション文字 */
  background: linear-gradient(90deg, rgb(154,153,131) 0%, rgb(218,215,203) 50%, rgb(154,153,131) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.p-brand-hero__lead {
  margin: 0;
  font-family: 'YakuHanMP', 'Shippori Mincho B1', serif;
  font-weight: 600;
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.3;
  padding-bottom: 4px;
  background: linear-gradient(90deg, rgb(154,153,131) 0%, rgb(218,215,203) 50%, rgb(154,153,131) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- PROJECT ---- */
.p-brand-project {
  position: relative;
  width: 100%;
  padding: clamp(72px, 7.81vw, 150px) clamp(24px, 3vw, 60px) clamp(64px, 6.25vw, 120px);
  background: linear-gradient(181.107deg, rgb(222,221,219) 9.68%, rgb(204,198,188) 88.79%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 3.13vw, 60px);
  box-sizing: border-box;
}

.p-brand-project__en {
  margin: 0;
  font-family: 'Cormorant Infant', ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 0.75;
  letter-spacing: 0.14em;
  color: rgb(48,47,34);
}

.p-brand-project__ttl {
  margin: clamp(32px, 3.54vw, 68px) 0 0;
  font-family: 'YakuHanMP', 'Shippori Mincho B1', serif;
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 50px);
  line-height: 1.34;
  text-align: center;
  color: rgb(44,43,31);
}

.p-brand-project__txt {
  margin: 0;
  font-family: 'YakuHanMP', 'Shippori Mincho B1', serif;
  font-weight: 500;
  font-size: clamp(14px, 0.94vw, 18px);
  line-height: 2.05;
  letter-spacing: 0.03em;
  text-align: center;
  color: rgb(48,47,34);
}

/* 事業主ロゴの並び。ロゴは支給データをそのまま使う（改変・圧縮不可） */
.p-brand-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(18px, 3.65vw, 70px);
  margin-top: 10px;
}

/* ロゴから各社サイトへのリンク（外部リンク・別タブ）。ロールオーバー効果を付ける */
.p-brand-logos__link {
  display: block;
  line-height: 0;
  transition: opacity 240ms ease;
}

.p-brand-logos__link:hover,
.p-brand-logos__link:focus-visible {
  opacity: 0.7;
}

.p-brand-logos__img {
  display: block;
  width: auto;
  max-width: none;
}

.p-brand-logos__img--mitsubishi {
  height: clamp(26px, 3.13vw, 60px);
}

.p-brand-logos__img--marimo {
  height: clamp(25px, 3.02vw, 58px);
}

/* ---- JOINT VENTURE TRACK RECORD ---- */
.p-brand-jv {
  position: relative;
  width: 100%;
  max-width: 1858px;
  margin: 0 auto;
  padding: clamp(72px, 7.81vw, 150px) clamp(24px, 6.2vw, 119px);
  background: rgba(255,255,255,0.7);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(56px, 6.25vw, 120px);
}

.p-brand-jv__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.08vw, 40px);
}

.p-brand-jv__ttl {
  margin: 0;
  font-family: 'YakuHanMP', 'Shippori Mincho B1', serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 50px);
  line-height: 1.34;
  text-align: center;
  color: rgb(44,43,31);
}

.p-brand-jv__sub {
  margin: 0;
  font-family: 'YakuHanMP', 'Shippori Mincho B1', serif;
  font-weight: 500;
  font-size: clamp(14px, 1.25vw, 24px);
  line-height: 1.85;
  letter-spacing: 0.03em;
  text-align: center;
  color: rgb(48,47,34);
}

.p-brand-jv__rows {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(40px, 5.21vw, 100px);
}

/* 実績カードは1行3枚。狭い画面では折り返す */
.p-brand-jv__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 3.13vw, 60px);
}

.p-brand-jv__card {
  position: relative;
  flex: 1 1 280px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.08vw, 40px);
}

.p-brand-jv__figure {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  margin: 0;
  overflow: hidden;
  background: rgb(217,217,217);
}

.p-brand-jv__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* グッドデザイン賞のロゴ。支給データをそのまま使う */
.p-brand-jv__award {
  position: absolute;
  left: 4%;
  top: 3.33%;
  width: 26%;
  height: auto;
  aspect-ratio: 1;
}

.p-brand-jv__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.p-brand-jv__name {
  margin: 0;
  font-family: 'YakuHanMP', 'Shippori Mincho B1', serif;
  font-weight: 500;
  font-size: clamp(16px, 1.67vw, 32px);
  line-height: 1.28;
  letter-spacing: 0.03em;
  text-align: center;
  color: rgb(48,47,34);
}

.p-brand-jv__spec {
  margin: 0;
  font-family: 'YakuHanMP', 'Shippori Mincho B1', serif;
  font-weight: 500;
  font-size: clamp(11px, 0.94vw, 18px);
  line-height: 1.9;
  letter-spacing: 0.03em;
  text-align: center;
  color: rgb(48,47,34);
}

/* ---- INTERVIEW ---- */
.p-brand-interview {
  position: relative;
  width: 100%;
  height: clamp(380px, 36.46vw, 700px);
  overflow: hidden;
  background: rgb(98,82,82);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.p-brand-interview__img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.p-brand-interview__veil {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  background: linear-gradient(108.772deg, rgba(132,127,120,0.8) 10.75%, rgba(49,46,41,0.8) 97.26%);
}

.p-brand-interview__body {
  position: relative;
  width: min(484px, 100% - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 3.13vw, 60px);
  text-align: center;
  color: rgb(255,255,255);
}

.p-brand-interview__en {
  margin: 0;
  font-family: 'Cormorant Infant', ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 3.65vw, 70px);
  line-height: 0.75;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  background: linear-gradient(90deg, rgb(154,153,131) 0%, rgb(218,215,203) 50%, rgb(154,153,131) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.p-brand-interview__txt {
  margin: 0;
  font-family: 'YakuHanMP', 'Shippori Mincho B1', serif;
  font-weight: 400;
  font-size: clamp(13px, 0.94vw, 18px);
  line-height: 1.6;
}

/* 画面右下の注釈。ヒーロー・INTERVIEW で共通 */
.p-brand-cap {
  position: absolute;
  right: 25px;
  bottom: 8px;
  margin: 0;
  font-family: 'YakuHanMP', 'Shippori Mincho B1', serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: rgb(255,255,255);
}

/* ==========================================================================
   SP（〜767px）— 規定ブレークポイント。zoom は掛からず実寸で組む
   ========================================================================== */

@media screen and (max-width: 767px) {
  .p-brand-hero {
    width: 100%;
    height: min(78svh, 560px);
    min-height: 420px;
  }

  .p-brand-hero__img {
    width: 100%;
    height: 100%;
  }

  .p-brand-hero__img {
    width: 100%;
    height: 100%;
    object-position: 60% 50%;
  }

  .p-brand-hero__body {
    left: 24px;
    width: calc(100% - 48px);
    margin-left: 0;
    gap: 10px;
  }

  .p-brand-hero__en {
    font-size: clamp(40px, 13vw, 54px);
  }

  .p-brand-hero__lead {
    font-size: clamp(13px, 3.9vw, 15px);
    line-height: 1.75;
  }

  .p-brand-project {
    width: 100%;
    padding: 70px 24px 60px;
    gap: 32px;
  }

  .p-brand-project__ttl {
    margin-top: 30px;
    font-size: clamp(20px, 6.2vw, 24px);
    line-height: 1.7;
  }

  .p-brand-project__txt {
    font-size: clamp(12px, 3.5vw, 13px);
    line-height: 2.15;
  }

  /* ロゴは画面幅に合わせて縮む（375px でも横にはみ出さない）*/
  .p-brand-logos {
    gap: 3.2vw;
    margin-top: 0;
  }

  .p-brand-logos__img--mitsubishi {
    height: min(5.4vw, 26px);
  }

  .p-brand-logos__img--marimo {
    height: min(5.2vw, 25px);
  }

  .p-brand-jv {
    width: 100%;
    padding: 60px 24px;
    gap: 48px;
  }

  .p-brand-jv__head {
    gap: 18px;
  }

  .p-brand-jv__ttl {
    font-size: clamp(18px, 5.6vw, 22px);
    line-height: 1.5;
    /* 長い英文見出しが画面幅を超えないよう折り返す */
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .p-brand-jv__sub {
    font-size: clamp(12px, 3.7vw, 14px);
    line-height: 1.9;
  }

  .p-brand-jv__rows {
    gap: 40px;
    width: 100%;
    align-items: stretch;
  }

  .p-brand-jv__row {
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }

  .p-brand-jv__card {
    width: 100%;
    gap: 16px;
  }

  .p-brand-jv__figure {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 6;
  }

  .p-brand-jv__img {
    width: 100%;
    height: 100%;
  }

  .p-brand-jv__award {
    left: 12px;
    top: 12px;
    width: 72px;
    height: 72px;
  }

  .p-brand-jv__name {
    font-size: clamp(15px, 4.6vw, 18px);
    line-height: 1.5;
  }

  .p-brand-jv__spec {
    font-size: clamp(11px, 3.2vw, 12px);
    line-height: 1.8;
  }

  .p-brand-interview {
    width: 100%;
    height: min(56svh, 420px);
    min-height: 320px;
  }

  .p-brand-interview__img {
    width: 100%;
    height: 100%;
  }

  .p-brand-interview__body {
    width: calc(100% - 48px);
    gap: 28px;
  }

  .p-brand-interview__en {
    font-size: clamp(32px, 10vw, 42px);
  }

  .p-brand-interview__txt {
    font-size: clamp(12px, 3.5vw, 13px);
    line-height: 1.9;
  }

  .p-brand-cap {
    right: 12px;
    bottom: 6px;
    font-size: 10px;
  }
}
