/* ============================================================
   となりの英語 — CTA Buttons
   Primary (Teal) / Secondary (Salmon) / Tertiary (Text link)
   Sizes: Small / Default / Large
   Width: inline (default) / .te-cta--block
   Icons: 内部 → / 外部 ↗
   PR badge: .te-cta__pr  /  Caption: .te-cta-disclosure
   ============================================================ */

/* ---- base ---- */
.te-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--te-font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--te-radius-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .22s cubic-bezier(.2,.7,.2,1),
              box-shadow .22s ease,
              background-color .2s ease,
              color .2s ease,
              border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.te-cta:focus-visible {
  outline: 2px solid var(--te-primary-teal);
  outline-offset: 3px;
}

/* ---- sizes ---- */
.te-cta--sm  { font-size: 13px; padding: 7px 14px;  min-height: 32px; border-radius: 8px; }
.te-cta      { font-size: 15px; padding: 11px 22px; min-height: 44px; }   /* default */
.te-cta--lg  { font-size: 17px; padding: 16px 30px; min-height: 56px; border-radius: 12px; letter-spacing: 0.04em; }

/* ---- block (full-width) ---- */
.te-cta--block { display: flex; width: 100%; }

/* =============================================================
   Primary — Teal (主要行動: 物件を見る / 無料体験する)
   ============================================================= */
.te-cta--primary {
  background: var(--te-primary-teal);
  color: #fff;
  border: 1px solid var(--te-primary-teal);
  box-shadow:
    0 1px 0 rgba(31,90,76,.18),
    0 4px 14px -8px rgba(31,90,76,.45);
}
.te-cta--primary:hover {
  background: var(--te-deep-green);
  border-color: var(--te-deep-green);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(31,90,76,.22),
    0 10px 24px -10px rgba(31,90,76,.55);
}
.te-cta--primary:active { transform: translateY(0); }

/* =============================================================
   Secondary — Salmon outline + cream fill
   ============================================================= */
.te-cta--secondary {
  background: var(--te-cream);
  color: var(--te-deep-green);
  border: 1.5px solid var(--te-salmon);
  box-shadow: 0 1px 0 rgba(216,133,117,.10);
}
.te-cta--secondary:hover {
  background: #FFF8F2;
  border-color: var(--te-salmon-deep);
  color: var(--te-deep-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(216,133,117,.45);
}

/* =============================================================
   Tertiary — text link (本文中)
   ============================================================= */
.te-cta--tertiary {
  background: transparent;
  color: var(--te-primary-teal);
  border: 1px solid transparent;
  border-radius: 6px;
  padding-left: 4px; padding-right: 4px;
  text-decoration: none;
  /* 下線は擬似要素（hover時に伸びる） */
}
.te-cta--tertiary::before {
  content: "";
  position: absolute;
  left: 4px; right: 4px;
  bottom: 6px;
  height: 1.5px;
  background: currentColor;
  opacity: .55;
  transform: scaleX(.85);
  transform-origin: left center;
  transition: transform .25s ease, opacity .2s ease;
}
.te-cta--tertiary:hover {
  color: var(--te-deep-green);
}
.te-cta--tertiary:hover::before {
  transform: scaleX(1);
  opacity: 1;
}

/* =============================================================
   水彩ブラシストローク (hover で出現)
   Primary / Secondary 共通シグネチャ
   ============================================================= */
.te-cta--primary::before,
.te-cta--secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(ellipse 60% 70% at 18% 35%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(ellipse 70% 60% at 82% 70%, rgba(255,255,255,.12), transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
  mix-blend-mode: soft-light;
}
.te-cta--secondary::before {
  background-image:
    radial-gradient(ellipse 65% 80% at 20% 30%, rgba(232,165,152,.30), transparent 65%),
    radial-gradient(ellipse 70% 60% at 80% 75%, rgba(207,224,227,.35), transparent 70%);
  mix-blend-mode: multiply;
}
.te-cta--primary:hover::before,
.te-cta--secondary:hover::before { opacity: 1; }

/* =============================================================
   Arrow icons (text → / external ↗)
   ============================================================= */
.te-cta__arrow,
.te-cta__ext {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.te-cta:hover .te-cta__arrow { transform: translateX(4px); }
.te-cta:hover .te-cta__ext   { transform: translate(2px,-2px); }

.te-cta--tertiary .te-cta__arrow { font-size: 0.95em; }

/* =============================================================
   PR badge (CTA内インライン)
   ============================================================= */
.te-cta__pr {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 6px 2px 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.35);
  color: inherit;
  margin-right: 0.2em;
  line-height: 1;
}
.te-cta--secondary .te-cta__pr {
  background: var(--te-salmon-soft);
  border-color: var(--te-salmon);
  color: var(--te-salmon-deep);
}
.te-cta--tertiary .te-cta__pr {
  background: var(--te-cream-deep);
  border-color: var(--te-hairline);
  color: var(--te-ink-soft);
}

/* =============================================================
   Disclosure caption (CTA下、記事末尾用)
   ============================================================= */
.te-cta-disclosure {
  display: block;
  font-size: 11px;
  color: var(--te-ink-soft);
  letter-spacing: 0.05em;
  margin-top: 8px;
  text-align: center;
}
.te-cta-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin: 1.5rem 0;
}
.te-cta-group--center { align-items: center; }
.te-cta-group--center .te-cta-disclosure { text-align: center; }
