/* ===================================
   CTA Section
   =================================== */
.cta {
  position: relative;
  padding: clamp(40px, 5vw, 56px) 0;
  background-color: var(--structure-tab-muted-bg);
  text-align: center;
}

.cta > .container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 960px);
  padding: clamp(48px, 5vw, 58px) clamp(20px, 5vw, 64px) clamp(28px, 3.5vw, 40px);
  background-color: var(--color-white);
  border: 1px solid rgba(0, 146, 165, 0.24);
  border-radius: var(--radius-lg);
}

.cta__label {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 9px clamp(18px, 3vw, 28px);
  transform: translate(-50%, -50%);
  background-color: var(--color-white);
  border: var(--structure-border-width) solid var(--color-structure);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  font-weight: 500;
  line-height: 1.36;
  text-wrap: balance;
}

.cta__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-text-strong);
  margin: 0 0 14px;
}

.cta__text {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: var(--type-body);
  font-weight: 500;
  color: var(--color-text-sub);
  line-height: 1.85;
  max-width: 40rem;
  margin: 0 auto 28px;
}

.cta__actions {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cta__actions .hero__button--primary,
.cta__actions .hero__button--secondary {
  min-height: 64px;
  font-size: var(--type-body);
  font-weight: 500;
}

.cta__actions .hero__button--primary {
  background: var(--ink);
}

.cta__phone {
  flex-direction: column;
  gap: 0;
  min-height: 64px;
  padding-block: 8px;
}

.cta__phone-label {
  font-size: 0.75rem;
  line-height: 1.3;
}

.cta__phone-number {
  font-family: var(--font-inter);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.cta__person {
  position: absolute;
  z-index: 0;
  bottom: 0;
  display: block;
  width: clamp(140px, 16vw, 180px);
  height: clamp(176px, 20vw, 220px);
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
}

.cta__person--staff {
  left: clamp(10px, 2.5vw, 30px);
}

.cta__person--family {
  right: clamp(8px, 2vw, 26px);
}

.cta__actions .hero__button--secondary {
  background-color: var(--color-white);
  border-color: var(--ink);
  color: var(--ink-dark);
}

@media (hover: hover) {
  .cta__actions .hero__button--primary:hover {
    background: var(--ink-dark);
  }

  .cta__actions .hero__button--secondary:hover {
    background-color: var(--structure-tab-muted-bg);
    border-color: var(--ink-dark);
  }
}

@media (max-width: 767px) {
  .cta__person {
    display: none;
  }
}

/* フォーム送信などで使うCTAボタン */
.cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--type-body);
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  background: var(--color-action);
  transition: background-color var(--transition), opacity var(--transition);
}

.cta__button:hover {
  background: var(--color-action-dark);
}
