/* =========================================================
 * cta.css : 共通CTA ブロック
 * 都市夜景の背景 + 中央にベージュカード（角丸15px）
 * ========================================================= */

.cta {
  position: relative;
  width: 100%;
  padding-block: 40px; /* SP: 上下40px。PCは下の@mediaで35に戻す */
  padding-inline: var(--container-pad-sp);
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/cta-bg.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

@media (min-width: 1025px) {
  .cta {
    padding-block: 35px; /* PC: 上下35px */
    padding-inline: 180px;
  }
}

.cta__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1024px;
  margin-inline: auto;
  background: var(--color-bg-beige);
  border-radius: 15px;
  padding: 32px 0; /* SP: 上下32px（横paddingは0） */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px; /* SP: 見出し→ボタン行 gap 24 */
}

@media (min-width: 1025px) {
  .cta__inner {
    padding: 56px 200px;
    gap: 40px;
  }
}

.cta__title {
  font-family: var(--font-jp);
  font-weight: 700;
  /* SP: 16px Bold lh24 ls0（本文の改行で2行） */
  font-size: 16px;
  line-height: 24px;
  letter-spacing: normal;
  color: var(--color-text-black); /* #121212 */
  text-align: center;
}

@media (min-width: 1025px) {
  .cta__title {
    font-size: 28px; /* PC: 28px */
    /* lineHeight を明示しないと normal が Noto Sans JP で ≒40.6 になり
       箱が7px高くなってCTA全体が +7px ずれる。34px を明示する。 */
    line-height: 34px;
    letter-spacing: 1.4px;
    white-space: nowrap;
  }
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 24px; /* SP: gap 24 */
  width: 100%;
  align-items: stretch;
}

@media (min-width: 1025px) {
  .cta__actions {
    flex-direction: row;
    gap: 24px;
    justify-content: center;
  }
}

.cta__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; /* SP: gap 8 */
}

@media (min-width: 1025px) {
  .cta__group { gap: 13px; } /* PC: gap 13 */
}

.cta__group-label {
  font-family: var(--font-jp);
  font-weight: 400;
  /* SP: 16px Regular lh24 ls0 */
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--color-text-sub);
  text-align: center;
}

@media (min-width: 1025px) {
  .cta__group-label {
    font-size: 16px;
    line-height: 28px; /* PC: lh28 */
  }
}

.cta__btn {
  position: relative;
  width: 100%;
  min-height: 68px; /* SP: button 68px */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 80px;
  border-radius: 15px; /* radius 15 */
  font-family: var(--font-jp);
  font-weight: 700;
  /* SP: 18px Bold lh28 ls0 */
  font-size: 18px;
  line-height: 28px;
  letter-spacing: normal;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

@media (min-width: 1025px) {
  .cta__btn {
    min-height: 64px; /* PC: button 64px */
    font-size: 20px;
    line-height: 24px; /* PC: 箱 h=24 */
    letter-spacing: 1px; /* 5% of 20px */
    white-space: nowrap;
  }
}

.cta__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.cta__btn--primary {
  background: var(--color-accent);
  color: var(--color-bg-beige);
  width: 306px;
  max-width: 100%;
}

/* 枠線は内側に描く（高さを増やさない。ボタンは枠線込みで 64/68）。枠線色は SP #85827d・PC #3f3b3a。
   CSSの border は外側に足されてボタンが 68/72 になり、CTA全体が +4px ずれていた。
   inset box-shadow なら「内側の線」を寸法に影響させずに再現できる。 */
.cta__btn--outline {
  background: var(--color-bg-beige);
  /* 文字色 SP=#3f3b3a / PC=#121212。枠線 SP=#85827d / PC=#3f3b3a。いずれもPC/SPで違う。 */
  color: var(--color-text-sub); /* SP: #3f3b3a */
  box-shadow: inset 0 0 0 2px var(--color-text-sub-light); /* SP: #85827d */
  width: 327px;
  max-width: 100%;
}

@media (min-width: 1025px) {
  .cta__btn--outline {
    color: var(--color-text-black); /* PC: #121212 */
    box-shadow: inset 0 0 0 2px var(--color-bg-dark); /* PC: #3f3b3a */
  }
}

.cta__btn-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: block;
}

.cta__btn--outline .cta__btn-arrow {
  right: 8px;
}

.cta__btn--primary .cta__btn-arrow {
  filter: brightness(0) invert(1);
}
