/**
 * CTAボタン体系 — DESIGN.md v3 §2.3 / §6
 * .btn--buy（購入）/ .btn--sell（売却）/ .btn--line（LINE）
 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.15s,
    box-shadow 0.2s,
    opacity 0.2s;
}

.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: scale(0.99);
}

/* ── 購入CTA（Orange） ── */
.btn--buy,
.btn--primary {
  color: #fff;
  background: var(--bh-orange);
  box-shadow: var(--shadow-cta);
}

.btn--buy:hover,
.btn--primary:hover {
  background: var(--bh-orange-dark);
}

/* ── 売却CTA（Wine） ── */
.btn--sell {
  color: #fff;
  background: var(--bh-wine);
  box-shadow: var(--shadow-cta-wine);
}

.btn--sell:hover {
  background: var(--bh-wine-dark);
}

/* ── LINE CTA（Green） ── */
.btn--line,
.btn-line {
  color: #fff;
  background: var(--bh-line-green);
  box-shadow: 0 12px 24px rgba(6, 199, 85, 0.2);
}

.btn--line:hover,
.btn-line:hover {
  filter: brightness(1.03);
}

/* ── 副CTA（枠線・資料DL系） ── */
.btn--sub,
.btn-sub,
.btn-outline {
  color: var(--bh-logo-blue-dark);
  background: var(--bh-white);
  border: 1.5px solid var(--bh-logo-blue);
  box-shadow: none;
}

.btn--sub:hover,
.btn-sub:hover,
.btn-outline:hover {
  background: var(--bh-pale-blue);
}

/* ── 資料DL（Logo Blue Dark 塗り） ── */
.btn--download {
  color: #fff;
  background: var(--bh-logo-blue-dark);
  box-shadow: var(--shadow-soft);
}

.btn--download:hover {
  filter: brightness(1.05);
}

.btn--mini {
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  min-height: 44px;
  font-size: 14px;
}

.site-header .btn {
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
}

/* レガシー単体クラス（.btn なしで使われている箇所） */
.btn-line:not(.btn),
.btn-sub:not(.btn),
.btn-outline:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
}

/* レガシー：btn-main / btn-submit（クラス併用で色を決定） */
.btn-main,
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-main:not(.btn--sell):not(.btn--line):not(.btn--download),
.btn-submit:not(.btn--sell):not(.btn--line):not(.btn--download) {
  background: var(--bh-orange);
  box-shadow: var(--shadow-cta);
}

.btn-main:not(.btn--sell):not(.btn--line):not(.btn--download):hover,
.btn-submit:not(.btn--sell):not(.btn--line):not(.btn--download):hover {
  background: var(--bh-orange-dark);
}

.btn-main.btn--sell,
.btn-submit.btn--sell {
  background: var(--bh-wine);
  box-shadow: var(--shadow-cta-wine);
}

.btn-main.btn--sell:hover,
.btn-submit.btn--sell:hover {
  background: var(--bh-wine-dark);
}

.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--bh-text);
  background: var(--bh-white);
  border: 1.5px solid var(--bh-border);
  text-decoration: none;
}

/* ── 下部スティッキーCTA ── */
.sub-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  z-index: 200;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--bh-orange);
  box-shadow: 0 -6px 20px rgba(232, 135, 26, 0.25);
}

.sub-sticky-cta--sell {
  background: var(--bh-wine);
  box-shadow: 0 -6px 20px rgba(158, 43, 56, 0.25);
}

.sub-sticky-cta .btn {
  min-height: 44px;
  font-size: 14px;
  background: transparent;
  box-shadow: none;
}

.sub-sticky-cta .btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sub-sticky-cta .btn--buy,
.sub-sticky-cta .btn--primary,
.sub-sticky-cta .btn--sell {
  background: transparent;
  box-shadow: none;
}
