/* hero-proterra — 参考サイト(proterra.jp)準拠の全面写真＋左寄せテキストレイアウト
 * 写真を全面に敷き、左側にテキストブロックを配置する構成。
 * グラデーションオーバーレイで左側を暗くし、テキストの可読性を確保する。
 */

.hero-proterra {
  position: relative;
  width: 100%;
  min-height: min(90vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── メディア（背景写真） ── */
.hero-proterra__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-proterra__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  max-height: none;
}

/* 左から右へのグラデーションオーバーレイ（左側を暗く、右側は写真を見せる） */
.hero-proterra__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(7, 9, 11, 0.88) 0%,
    rgba(7, 9, 11, 0.72) 38%,
    rgba(7, 9, 11, 0.30) 62%,
    rgba(7, 9, 11, 0.08) 100%
  );
}

/* ── テキストコンテンツ ── */
.hero-proterra__content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  /* テキストブロックは左半分に収める */
  max-width: min(640px, 52%);
  margin-left: clamp(1.25rem, 6vw, 6rem);
  animation: hero-proterra-fadein 900ms ease-out backwards;
}

@keyframes hero-proterra-fadein {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-proterra__content { animation: none; }
}

/* アイブロウ（英字キャッチ） */
.hero-proterra__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-heading-ink, #B49A67);
  /* アクセントラインを左に添える */
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-proterra__eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--color-heading-ink, #B49A67);
  flex-shrink: 0;
}

/* メイン見出し */
.hero-proterra__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: #ffffff;
  margin: 0;
  text-wrap: balance;
}

/* リード文 */
.hero-proterra__lead {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.9;
  color: rgba(242, 240, 235, 0.85);
  margin: 0;
  text-wrap: pretty;
}

/* CTAボタン群 */
.hero-proterra__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 0.25rem;
}

.hero-proterra__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius-btn, 2px);
  transition: all 0.25s ease;
  white-space: nowrap;
  min-height: 44px;
}

/* プライマリボタン（塗り） */
.hero-proterra__btn--primary {
  background: var(--color-heading-ink, #B49A67);
  color: #111;
  border: 2px solid var(--color-heading-ink, #B49A67);
}

.hero-proterra__btn--primary:hover {
  background: color-mix(in srgb, var(--color-heading-ink, #B49A67) 85%, #fff);
  border-color: color-mix(in srgb, var(--color-heading-ink, #B49A67) 85%, #fff);
  color: #111;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180, 154, 103, 0.35);
}

/* アウトラインボタン */
.hero-proterra__btn--outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}

.hero-proterra__btn--outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  opacity: 1;
  transform: translateY(-2px);
}

/* ── wrapper: PC では relative の器にして anshin を右に absolute 配置 ── */
.hero-proterra-wrap {
  position: relative;
}

/* ── 3つの安心パネル（PC：ヒーロー右側に縦並び） ── */
.hero-proterra__anshin {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: clamp(300px, 27vw, 400px);
  height: auto;
  background: #0a0a0a;
  border: 1px solid rgba(180, 154, 103, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 0 clamp(1.5rem, 2.5vw, 2rem);
  overflow: hidden;
  z-index: 4;
}

/* 黄色い斜めバナー見出し（旗リボン風） */
.hero-proterra__anshin-heading {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #111;
  text-align: left;
  margin: 0 0 1.75rem;
  padding: 1.1rem 2.5rem 1.1rem 1.5rem;
  background: linear-gradient(100deg, #f4d341 0%, #e0b923 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.6rem) 50%, 100% 100%, 0 100%);
}

.hero-proterra__anshin-heading span {
  color: #111;
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  display: inline;
  margin-left: 0.4rem;
  margin-top: 0;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-proterra__anshin-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0 1.5rem;
}

.hero-proterra__anshin-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(180, 154, 103, 0.28);
  position: relative;
}

.hero-proterra__anshin-item:last-child {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

/* 斜体・黄色の大きい連番（画像準拠） */
.hero-proterra__anshin-num {
  flex-shrink: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #f4d341;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  font-style: italic;
  line-height: 0.85;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 0;
  letter-spacing: -0.02em;
}

.hero-proterra__anshin-body {
  flex: 1;
  padding-top: 0.35rem;
}

.hero-proterra__anshin-main {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.55;
  margin: 0 0 0.35rem;
}

.hero-proterra__anshin-sub {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin: 0;
}

.hero-proterra__anshin-badge {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f4d341;
  background: transparent;
  border: 1px solid #f4d341;
  border-radius: 2px;
  padding: 0.65rem 1rem;
  margin: 1.5rem 1.5rem 0;
  display: block;
  width: auto;
}

/* ── レスポンシブ ── */
@media (max-width: 900px) {
  .hero-proterra {
    min-height: min(75vh, 600px);
    align-items: flex-end;
  }

  /* モバイルでは下からのグラデに切り替え（テキストを下部に配置） */
  .hero-proterra__overlay {
    background: linear-gradient(
      0deg,
      rgba(7, 9, 11, 0.92) 0%,
      rgba(7, 9, 11, 0.65) 45%,
      rgba(7, 9, 11, 0.15) 100%
    );
  }

  /* スマホ: absolute を解除してヒーロー下に自然に流す */
  .hero-proterra-wrap {
    position: static;
  }

  .hero-proterra__anshin {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    flex-direction: column;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: none;
    border-top: 3px solid var(--color-heading-ink, #B49A67);
    background: var(--color-primary, #111418);
    padding: 1.75rem clamp(1.25rem, 4vw, 2rem);
    align-items: flex-start;
  }

  .hero-proterra__anshin-list {
    flex-direction: column;
    width: 100%;
  }

  .hero-proterra__anshin-item {
    border-bottom: 1px solid rgba(180, 154, 103, 0.2);
    padding: 0.85rem 0;
    align-items: flex-start;
  }

  .hero-proterra__anshin-item:last-child {
    border-bottom: none;
  }

  .hero-proterra__content {
    max-width: 100%;
    margin-left: 0;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 1.5rem);
    padding-bottom: clamp(2rem, 5vw, 3rem);
    align-items: flex-start;
  }

  .hero-proterra__heading {
    font-size: clamp(1.7rem, 6.5vw, 2.4rem);
  }

  .hero-proterra__lead br {
    display: none;
  }

  .hero-proterra__actions {
    width: 100%;
  }

  .hero-proterra__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-proterra {
    min-height: min(80vh, 520px);
  }

  .hero-proterra__heading {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero-proterra__actions {
    flex-direction: column;
  }

  .hero-proterra__btn {
    width: 100%;
  }
}
