/* =========================================================
   EntryCta
========================================================= */

.entry-cta {
  padding-block: 40px 140px;
  background: var(--color-white);
}

/* ネイビーの大きな角丸パネル */
.entry-cta__panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 520px;
  border-radius: 48px;
  background: var(--color-primary);
  color: var(--color-white);
}

/* ---------- Photo（右側） ---------- */
.entry-cta__photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  margin: 0;
}

.entry-cta__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
}

/* 左はネイビーへ溶け込ませ、全体にも薄く暗さをかけて文字を読みやすく */
.entry-cta__photo::after {
  content: "";
  position: absolute;
  inset: -1px; /* 写真の端が1px明るく残らないよう、少しはみ出して覆う */
  background:
    linear-gradient(90deg, var(--color-primary) 0%, rgba(12, 67, 136, 0.72) 30%, rgba(8, 47, 99, 0.18) 70%, rgba(8, 47, 99, 0.1) 100%);
}

/* ---------- Body（左側） ---------- */
.entry-cta__body {
  position: relative;
  z-index: 1;
  width: 56%;
  padding: 88px 0 88px clamp(48px, 7vw, 104px);
}

.entry-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--color-accent);
}

.entry-cta__label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.entry-cta__title {
  margin-top: 28px;
  font-family: var(--font-heading);
  font-size: clamp(36px, 3.7vw, 52px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.entry-cta__title-line {
  display: block;
  white-space: nowrap;
}

.entry-cta__lead {
  margin-top: 28px;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
}

.entry-cta__btn {
  margin-top: 44px;
  min-width: 280px;
  height: 64px;
  font-size: 17px;
}

/* ボタンを2つ並べる場合 */
.entry-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.entry-cta__actions .entry-cta__btn {
  min-width: 240px;
  margin-top: 0;
}

/* ---------- Tablet / SP：写真を上、文字を下に ---------- */
@media (max-width: 960px) {
  .entry-cta {
    padding-bottom: 100px;
  }

  .entry-cta__panel {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    border-radius: 40px;
  }

  .entry-cta__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .entry-cta__photo::after {
    background: linear-gradient(180deg, rgba(8, 47, 99, 0.1) 0%, rgba(8, 47, 99, 0.2) 45%, var(--color-primary) 86%);
  }

  .entry-cta__body {
    width: auto;
    margin-top: -32px;
    padding: 0 48px 64px;
  }
}

@media (max-width: 767px) {
  .entry-cta {
    padding-block: 24px 80px;
  }

  .entry-cta__panel {
    border-radius: 32px;
  }

  .entry-cta__photo {
    aspect-ratio: 4 / 3;
  }

  .entry-cta__body {
    margin-top: -24px;
    padding: 0 24px 48px;
  }

  .entry-cta__title {
    margin-top: 20px;
    font-size: clamp(24px, 6.4vw, 34px);
  }

  .entry-cta__title-line {
    white-space: normal;
    word-break: auto-phrase;
  }

  .entry-cta__lead {
    margin-top: 20px;
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .entry-cta__btn {
    width: 100%;
    min-width: 0;
    height: 60px;
    margin-top: 32px;
  }

  .entry-cta__actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }

  .entry-cta__actions .entry-cta__btn {
    min-width: 0;
  }
}
