/**
 * トップLP固有スタイル — DESIGN.md v3 Phase7
 * 共通シェル: header-nav.css / layout.css
 */

.ticker--fv {
  margin: -16px calc(-1 * var(--section-pad-x)) 0;
}

.ticker--fv .ticker__viewport {
  mask-image: none;
  justify-content: center;
}

.ticker--fv .ticker__track {
  animation: none;
  width: 100%;
  justify-content: center;
}

.ticker--fv .ticker__item {
  padding-right: 0;
  gap: 0.35em;
}

.trust-ticker[hidden] {
  display: none !important;
}

body.chat-shell-minimized .trust-ticker {
  display: none !important;
}

.trust-ticker__track {
  animation-duration: 28s;
}

.hero-h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.2;
  margin: 0;
}

.hero-h1__top {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.hero-h1__lead {
  font-size: 14px;
  font-weight: 700;
  color: var(--bh-muted);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.hero-h1__zero-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
}

.hero-h1__num {
  font-size: clamp(56px, 15vw, 72px);
  font-weight: 900;
  color: var(--bh-gold);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-h1__yen {
  font-size: 15px;
  font-weight: 700;
  color: var(--bh-muted);
  align-self: flex-end;
  margin-bottom: 0.2em;
  letter-spacing: 0.02em;
}

.hero-h1__bridge {
  font-size: 11px;
  font-weight: 700;
  color: var(--bh-muted);
  letter-spacing: 0.14em;
  margin: 6px 0 4px;
}

.hero-h1__benefit {
  font-size: clamp(26px, 6.5vw, 30px);
  font-weight: 900;
  color: var(--bh-gold);
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.h3--accent {
  color: var(--bh-logo-blue-dark);
}
.step__title {
  color: var(--bh-charcoal);
  font-size: 16px;
}
.step__title-link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--bh-logo-blue-dark);
  text-decoration: underline;
  cursor: pointer;
}
.step__title-link:focus-visible {
  outline: 2px solid var(--bh-logo-blue-dark);
  outline-offset: 2px;
}

.hero-example {
  margin: 10px 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--bh-charcoal);
  line-height: 1.5;
}

.hero-example strong {
  font-size: 18px;
  font-weight: 900;
  color: var(--bh-gold);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* FV：カルーセル＋手数料確認（PCで下部重ね） */
.fv-stack {
  margin: 0 calc(-1 * var(--section-pad-x)) 16px;
}

.fv-stack .hero-carousel {
  margin: 0;
}

.fv-stack .lp-composer {
  margin-top: 12px;
}

/* SP：ヒーローのチャット入力は非表示（フッター3CTAと二重になるため） */
@media (max-width: 767px) {
  body.page-top .fv-stack .lp-composer--fv {
    display: none;
  }
}

.hero-carousel {
  position: relative;
}

.hero-carousel__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 0;
  border-bottom: 1px solid var(--bh-border);
  box-shadow: none;
  background: var(--bh-pale-blue-2);
}

.hero-carousel__track {
  display: flex;
  width: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.hero-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  margin: 0;
}

.hero-carousel__slide picture {
  display: block;
  width: 100%;
}

.hero-carousel__slide img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.hero-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(43, 45, 49, 0.22);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  opacity: 0.72;
  transition:
    opacity 0.2s ease,
    background 0.2s ease;
}

.hero-carousel__nav:hover {
  opacity: 1;
  background: rgba(43, 45, 49, 0.34);
}

.hero-carousel__nav:focus-visible {
  opacity: 1;
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.hero-carousel__nav--prev {
  left: 6px;
}
.hero-carousel__nav--next {
  right: 6px;
}

.hero-carousel__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(43, 45, 49, 0.2);
}

.hero-carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.hero-carousel__dot[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.1);
}

.hero-carousel__dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__track {
    transition: none;
  }
}

@media (min-width: 768px) {
  :root {
    --fv-composer-overlap: clamp(100px, 13vw, 148px);
    --fv-carousel-pc-max: min(52vh, 540px);
  }

  .hero-carousel__viewport {
    height: auto;
  }

  .hero-carousel__track {
    height: auto;
    align-items: flex-start;
  }

  .hero-carousel__slide {
    height: auto;
  }

  .hero-carousel__slide picture {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero-carousel__slide img {
    width: 100%;
    height: auto;
    max-height: var(--fv-carousel-pc-max);
    object-fit: contain;
    object-position: center bottom;
    background: var(--bh-pale-blue-2);
  }

  .fv-stack {
    position: relative;
    margin-bottom: 8px;
  }

  .fv-stack .hero-carousel {
    position: relative;
    z-index: 1;
  }

  .fv-stack .lp-composer--fv {
    position: relative;
    z-index: 3;
    margin-top: calc(-1 * var(--fv-composer-overlap));
    margin-left: var(--section-pad-x);
    margin-right: var(--section-pad-x);
    box-shadow:
      0 10px 36px rgba(43, 45, 49, 0.14),
      0 2px 10px rgba(43, 45, 49, 0.08);
  }

  .fv-stack .hero-carousel__dots {
    bottom: calc(var(--fv-composer-overlap) + 12px);
  }

  .fv-stack + .micro {
    margin-top: 12px;
  }

  #top .fv-pricing-link {
    margin-top: 10px;
  }
}

.strike {
  text-decoration: line-through;
  color: var(--bh-muted);
}

.hero-visual {
  position: relative;
  margin: 16px 0;
  overflow: visible;
}

.hero-img {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bh-pale-blue);
  border: 1px solid var(--bh-border);
  min-height: 170px;
  box-shadow: var(--shadow-soft);
}

.hero-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.hero-medal {
  position: absolute;
  width: clamp(62px, 15.5vw, 74px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(47, 127, 163, 0.16));
}

.hero-medal--review {
  top: 8px;
  right: 8px;
}
.hero-medal--cases {
  top: auto;
  bottom: 8px;
  right: 8px;
}

.badges {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.badges span {
  flex: 1;
  border: 1px solid var(--bh-border);
  font-size: 10.5px;
  text-align: center;
  padding: 10px 6px;
  background: var(--bh-pale-blue-2);
  border-radius: var(--radius-sm);
  line-height: 1.5;
  color: var(--bh-charcoal);
}

.card {
  border: 1px solid var(--bh-border);
  padding: 18px;
  margin-bottom: 12px;
  background: var(--bh-white);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(43, 45, 49, 0.04);
}

.card--white {
  box-shadow: var(--shadow-soft);
}

.diagram {
  margin: 16px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bh-pale-blue-2);
  border: 1px solid var(--bh-border);
}

.diagram.fee-diagram {
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.fee-diagram__shell {
  --fee-diagram-radius: var(--radius-sm);
  --fee-diagram-inner-radius: calc(var(--fee-diagram-radius) - 2px);
  border: 2px solid var(--bh-logo-blue);
  border-radius: var(--fee-diagram-radius);
  overflow: visible;
  background: transparent;
}

.fee-diagram__clip {
  border-radius: var(--fee-diagram-inner-radius);
  overflow: hidden;
  background: var(--bh-white);
}

.fee-diagram__heads {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.fee-diagram__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
}

.fee-diagram__head--general {
  background: var(--bh-logo-blue-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: center;
  border-top-left-radius: var(--fee-diagram-inner-radius);
}

.fee-diagram__head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.fee-diagram__head-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.fee-diagram__head--bh {
  background: var(--bh-white);
  border-left: 1px solid var(--bh-border);
  border-bottom: 1px solid var(--bh-border);
  border-top-right-radius: var(--fee-diagram-inner-radius);
}

.fee-diagram__logo {
  height: 26px;
  width: auto;
  max-width: 92%;
  display: block;
}

.fee-diagram__body {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  border-bottom-left-radius: var(--fee-diagram-inner-radius);
  border-bottom-right-radius: var(--fee-diagram-inner-radius);
}

.diagram img {
  width: 100%;
  height: auto;
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 14px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--bh-border);
}

th,
td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--bh-border);
  text-align: center;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--bh-pale-blue-2);
  color: var(--bh-charcoal);
  font-weight: 800;
}

td strong {
  color: var(--bh-gold);
}

.pricing-summary {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.pricing-summary__card {
  flex: 1;
  padding: 14px 10px 12px;
  border: 1px solid var(--bh-border);
  border-radius: var(--radius-md);
  background: var(--bh-white);
  text-align: center;
  box-shadow: 0 8px 20px rgba(43, 45, 49, 0.04);
}

.pricing-summary__card--a {
  border-color: var(--bh-logo-blue);
  background: var(--bh-pale-blue);
}

.pricing-summary__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bh-logo-blue-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pricing-summary__card--b .pricing-summary__tag {
  background: var(--bh-charcoal);
}

.pricing-summary__price {
  font-size: clamp(14px, 3.8vw, 16px);
  font-weight: 800;
  color: var(--bh-charcoal);
  line-height: 1.35;
  margin-bottom: 4px;
}

.pricing-summary__card--a .pricing-summary__price {
  color: var(--bh-gold);
}

.pricing-summary__note {
  font-size: 10.5px;
  color: var(--bh-muted);
  line-height: 1.4;
}

.pricing-summary__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.pricing-summary__name {
  font-size: 11px;
  font-weight: 800;
  color: var(--bh-charcoal);
}

.pricing-summary__target {
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--bh-muted);
  line-height: 1.5;
  text-align: left;
}

.pricing-summary__hint {
  margin-top: 10px;
  text-align: center;
}

.step {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.step__no {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bh-logo-blue-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 16px rgba(47, 127, 163, 0.2);
}

.chat {
  border: 1px solid var(--bh-border);
  border-radius: var(--radius-lg);
  background: var(--bh-pale-blue);
  padding: 18px;
  margin: 18px 0;
  box-shadow: var(--shadow-soft);
}

.bub {
  max-width: 88%;
  font-size: 12.5px;
  padding: 11px 13px;
  margin-bottom: 8px;
  border-radius: 14px;
  line-height: 1.6;
}

.bub--bot {
  background: var(--bh-white);
  border: 1px solid var(--bh-border);
  border-bottom-left-radius: 4px;
}

.fee-preview {
  margin-top: 4px;
}

.fee-preview__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--bh-charcoal);
  margin-bottom: 6px;
}

.fee-preview__row {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--bh-gold);
  line-height: 1.35;
}

.fee-preview__note {
  margin: 0;
  font-size: 10.5px;
  color: var(--bh-muted);
  line-height: 1.55;
}

.fee-preview__savings {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--bh-charcoal);
  line-height: 1.5;
}

.fee-preview__savings strong {
  color: var(--bh-gold);
  font-weight: 800;
}

.bub--user {
  background: rgba(143, 184, 193, 0.22);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat__actions {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
}

.chat__actions button {
  flex: 1;
  border: 1px solid var(--bh-logo-blue);
  background: var(--bh-white);
  font-size: 11.5px;
  font-weight: 800;
  padding: 11px 8px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  color: var(--bh-logo-blue-dark);
}

.chat__actions button.is-active {
  background: var(--bh-pale-blue);
  border-color: var(--bh-logo-blue-dark);
}

.chat__actions--methods {
  flex-wrap: wrap;
}

.chat__actions--methods button {
  flex: 1 1 calc(33% - 6px);
  min-width: 90px;
  font-size: 10.5px;
  padding: 10px 6px;
}

.method-panel {
  display: none;
}

.method-panel.is-visible {
  display: block;
}

.branch {
  display: none;
  border-top: 1px dashed var(--bh-border);
  padding-top: 14px;
  margin-top: 10px;
}

.branch.is-visible {
  display: block;
}

.branch__label {
  font-size: 11px;
  font-weight: 800;
  color: var(--bh-logo-blue-dark);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

#chat-thread {
  margin: 8px 0;
  min-height: 48px;
}

.chat__quick-replies {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin: 6px 0 14px;
  padding-top: 2px;
}

.chat__quick-replies__hint {
  align-self: flex-end;
  font-size: 10px;
  font-weight: 700;
  color: var(--bh-logo-blue-dark);
  opacity: 0.72;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* 選択肢＝白地のピル型ボタン（吹き出しとは別物） */
.chat__quick-replies button {
  max-width: 88%;
  border: 2px solid var(--bh-logo-blue-dark);
  background: var(--bh-white);
  font-size: 12px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  color: var(--bh-logo-blue-dark);
  text-align: center;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(47, 127, 163, 0.12);
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.chat__quick-replies button::after {
  content: " ›";
  font-weight: 800;
  opacity: 0.65;
}

.chat__quick-replies button:hover:not(:disabled) {
  background: var(--bh-pale-blue);
  box-shadow: 0 3px 12px rgba(47, 127, 163, 0.18);
}

.chat__quick-replies button:active:not(:disabled) {
  transform: scale(0.98);
}

.chat__quick-replies button:focus-visible {
  outline: 2px solid var(--bh-logo-blue-dark);
  outline-offset: 2px;
}

.chat__method-cards {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin: 6px 0 14px;
  padding-top: 2px;
}

.chat__method-cards .chat__quick-replies__hint {
  margin-bottom: 2px;
}

.chat__method-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  width: fit-content;
  max-width: min(88%, 17.5rem);
  border: 2px solid var(--bh-logo-blue-dark);
  background: var(--bh-white);
  padding: 8px 14px;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  box-shadow: 0 2px 8px rgba(47, 127, 163, 0.12);
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.chat__method-card:hover:not(:disabled) {
  background: var(--bh-pale-blue);
  box-shadow: 0 3px 12px rgba(47, 127, 163, 0.18);
}

.chat__method-card:active:not(:disabled) {
  transform: scale(0.98);
}

.chat__method-card:focus-visible {
  outline: 2px solid var(--bh-logo-blue-dark);
  outline-offset: 2px;
}

.chat__method-card.is-active {
  background: var(--bh-pale-blue);
  border-color: var(--bh-logo-blue-dark);
}

.chat__method-card__label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--bh-logo-blue-dark);
  line-height: 1.4;
  white-space: nowrap;
}

.chat__method-card__num {
  font-size: 14px;
  line-height: 1;
  vertical-align: -0.05em;
}

.chat__method-card__label::after {
  content: " ›";
  font-weight: 800;
  opacity: 0.65;
}

.chat__method-card__desc {
  font-size: 10px;
  font-weight: 600;
  color: var(--bh-muted);
  line-height: 1.4;
}

/* 送信済みユーザー吹き出し＝右寄せ・しっぽ付き（ピル型の選択肢と区別） */
.bub--user {
  text-align: right;
}

.chat__user-turn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 100%;
  margin-bottom: 6px;
}

.chat__user-turn .bub--user {
  margin-bottom: 2px;
  margin-left: auto;
}

.chat__change-btn {
  font-size: 10px;
  font-weight: 700;
  color: var(--bh-logo-blue-dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.72;
  font-family: inherit;
}

.chat__change-btn:hover {
  opacity: 1;
}

.chat__change-btn:focus-visible {
  outline: 2px solid var(--bh-logo-blue-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.chat-composer {
  border-top: 1px dashed var(--bh-border);
  padding-top: 12px;
  margin-top: 4px;
}

.chat-composer[hidden] {
  display: none !important;
}

#chat-mode-actions[hidden],
#chat-method-actions[hidden] {
  display: none !important;
}

.chat__field-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--bh-logo-blue-dark);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.chat__input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 72px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--bh-border);
  border-radius: var(--radius-sm);
  background: var(--bh-white);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--bh-charcoal);
  resize: vertical;
}

.chat__input::placeholder {
  color: var(--bh-muted);
  opacity: 0.85;
}

.chat__input:focus {
  outline: 2px solid rgba(47, 127, 163, 0.35);
  outline-offset: 1px;
  border-color: var(--bh-logo-blue-dark);
}

.chat__submit {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 12px;
  min-height: 46px;
  font-size: 13.5px;
}

.chat__error {
  font-size: 12px;
  font-weight: 700;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin: 8px 0 10px;
  line-height: 1.5;
}

.chat__error:empty,
.chat__error[hidden] {
  display: none;
}

.chat__line-cta.is-hidden {
  display: none;
}

.chat__line-cta:not(.is-hidden) {
  margin-top: 12px;
}

.chat__file-input {
  width: 100%;
  font-size: 12px;
  margin-bottom: 8px;
}

.chat__image-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px;
  background: var(--bh-surface-muted, #f5f6f7);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.chat__image-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--bh-border);
}

.chat__image-preview[hidden] {
  display: none !important;
}

.contact-panel {
  display: none;
  padding-top: 4px;
}

.contact-panel.is-visible {
  display: block;
}

.chat__input--text {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--bh-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.chat__input--compact {
  min-height: 52px;
  margin-bottom: 10px;
}

.chat__price-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 4px;
}

.chat__price-input {
  flex: 1;
  margin-bottom: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.chat__price-suffix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bh-charcoal);
  background: var(--bh-pale-blue);
  border: 1px solid var(--bh-border);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  white-space: nowrap;
}

.chat__field-hint {
  font-size: 10.5px;
  color: var(--bh-muted);
  margin: 0 0 10px;
  line-height: 1.45;
}

.chat__privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  margin: 10px 0 12px;
  color: var(--bh-text-muted, #5c6068);
}

.chat__privacy input {
  margin-top: 3px;
  flex-shrink: 0;
}

.chat__turnstile {
  margin: 8px 0 12px;
  min-height: 65px;
}

.chat__submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.success-panel {
  display: none;
  padding-top: 8px;
}

.success-panel.is-visible {
  display: block;
}

.chat__line-steps {
  margin: 8px 0 6px;
  padding-left: 1.25em;
  line-height: 1.5;
}

.chat__line-steps li + li {
  margin-top: 4px;
}

.bub--error {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}

.reason-card {
  display: flow-root;
  overflow: hidden;
}

.reason-card__icon {
  float: right;
  width: 56px;
  height: 56px;
  margin-left: 12px;
  margin-bottom: 4px;
  padding: 11px;
  background: var(--bh-pale-blue);
  border: 2px solid var(--bh-logo-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(47, 127, 163, 0.12);
}

.reason-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--bh-logo-blue-dark);
}

.card h3:not(.step__title) {
  color: var(--bh-logo-blue-dark);
}

.voice-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voice-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.voice-card__title {
  margin: 0;
  line-height: 1.45;
  flex: 1;
  min-width: 0;
}

.voice-card__meta {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--bh-muted);
  line-height: 1.4;
}

.voice-card__body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.voice-card__avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bh-pale-blue);
  border: 1px solid var(--bh-border);
  object-fit: cover;
}

.voice-card__body .small {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.voice-card__attrib {
  font-size: 10px;
  font-weight: 500;
  color: var(--bh-muted);
}

.voice-section__note {
  margin: -4px 0 12px;
  font-size: 11px;
  color: var(--bh-muted);
  text-align: center;
  line-height: 1.5;
}

.google-card {
  text-align: center;
}

.google-card__score {
  font-size: 28px;
  font-weight: 900;
  color: var(--bh-gold);
}

.google-card a {
  font-size: 12px;
  font-weight: 700;
}

details {
  border: 1px solid var(--bh-border);
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--bh-white);
  overflow: hidden;
}

summary {
  padding: 14px 16px;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  list-style-position: outside;
  color: var(--bh-charcoal);
}

details[open] summary {
  border-bottom: 1px solid var(--bh-border);
  background: var(--bh-pale-blue-2);
}

details p {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--bh-muted);
}

.faq-bridge {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--bh-border);
  border-radius: var(--radius-sm);
  background: var(--bh-white);
  font-size: 13px;
  line-height: 1.7;
}

.flow-bridge {
  text-align: center;
  font-size: 12px;
  color: var(--bh-muted);
  margin: -6px 0 16px;
  line-height: 1.6;
}

.fv-pricing-link {
  text-align: center;
  font-size: 12px;
  margin-top: 8px;
  color: var(--bh-muted);
}

.pricing-notice {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 11px;
  color: var(--bh-muted);
  background: var(--bh-pale-blue-2);
  border: 1px solid var(--bh-border);
  border-radius: var(--radius-sm);
  line-height: 1.75;
}

.pricing-notice strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--bh-charcoal);
}

.pricing-step {
  margin-top: 20px;
}

.pricing-step:first-of-type {
  margin-top: 12px;
}

.pricing-step__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--bh-logo-blue-dark);
  margin-bottom: 6px;
}

.pricing-step__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--bh-charcoal);
  margin-bottom: 8px;
  line-height: 1.4;
}

.pricing-table-wrap {
  margin: 10px 0;
}

.pricing-table-wrap table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bh-white);
  table-layout: fixed;
}

.pricing-pat-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 10px 0 0;
  border: 1px solid var(--bh-border);
  border-radius: var(--radius-sm);
  background: var(--tab-track);
}

.pricing-pat-tabs button {
  flex: 1;
  font-family: inherit;
  border: none;
  border-radius: 7px;
  padding: 11px 8px;
  cursor: pointer;
  text-align: center;
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s,
    opacity 0.15s;
}

.pricing-pat-tabs button[aria-selected="false"] {
  background: var(--tab-off-bg);
  color: var(--tab-off-text);
  font-weight: 600;
}

.pricing-pat-tabs button[aria-selected="false"] .pricing-pat-tabs__tag {
  color: var(--tab-off-text);
  font-weight: 700;
}

.pricing-pat-tabs button[aria-selected="false"] .pricing-pat-tabs__sub {
  color: var(--tab-off-sub);
  font-weight: 500;
}

.pricing-pat-tabs button[aria-selected="true"] {
  background: var(--bh-white);
  color: var(--bh-charcoal);
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(43, 45, 49, 0.1);
}

.pricing-pat-tabs button[aria-selected="true"] .pricing-pat-tabs__tag {
  color: var(--bh-charcoal);
  font-weight: 800;
}

.pricing-pat-tabs button[aria-selected="true"] .pricing-pat-tabs__sub {
  color: var(--bh-muted);
  font-weight: 600;
}

.pricing-pat-tabs button[data-pat="a"][aria-selected="true"] {
  box-shadow:
    0 1px 4px rgba(43, 45, 49, 0.1),
    inset 0 -2px 0 var(--bh-gold);
}

.pricing-pat-tabs
  button[data-pat="a"][aria-selected="true"]
  .pricing-pat-tabs__tag {
  color: #9a7420;
}

.pricing-pat-tabs button[data-pat="b"][aria-selected="true"] {
  box-shadow:
    0 1px 4px rgba(43, 45, 49, 0.1),
    inset 0 -2px 0 var(--bh-logo-blue-dark);
}

.pricing-pat-tabs
  button[data-pat="b"][aria-selected="true"]
  .pricing-pat-tabs__tag {
  color: var(--bh-logo-blue-dark);
}

.pricing-pat-tabs__tag {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
}

.pricing-pat-tabs__sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.pricing-pat-context {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--bh-muted);
  line-height: 1.5;
  background: var(--bh-pale-blue-2);
  border: 1px solid var(--bh-border);
}

.pricing-pat-context strong {
  color: var(--bh-charcoal);
}

.pricing-pat-panel-stack {
  display: grid;
}

.pricing-pat-panel-stack > .pricing-pat-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
  pointer-events: none;
}

.pricing-pat-panel-stack > .pricing-pat-panel.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .pricing-pat-panel-stack > .pricing-pat-panel {
    transition: none;
  }
}

.pricing-pat-panel .pricing-table-wrap {
  margin-top: 8px;
}

.pricing-table-wrap th {
  font-size: 11px;
  line-height: 1.35;
}

.pricing-table-wrap thead th {
  background: var(--bh-pale-blue);
  color: var(--bh-charcoal);
  font-weight: 800;
}

.pricing-table-wrap tbody td {
  background: var(--bh-white);
}

.pricing-table-wrap tbody tr:nth-child(even) td {
  background: var(--bh-pale-blue-2);
}

.pricing-table-wrap thead tr:first-child th[colspan] {
  border-bottom: 1px solid var(--bh-border);
}

.pricing-table__amount {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  vertical-align: middle;
}

.pricing-table__num-line {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
}

.pricing-table__approx {
  font-size: 9px;
  font-weight: 700;
  color: var(--bh-muted);
  align-self: flex-start;
  margin-top: 2px;
}

.pricing-table__num {
  font-size: 15px;
  font-weight: 800;
  color: var(--bh-charcoal);
  letter-spacing: -0.02em;
}

.pricing-table__unit {
  font-size: 9px;
  font-weight: 700;
  color: var(--bh-muted);
  margin-top: 2px;
}

.pricing-table__amount--gold .pricing-table__num {
  color: var(--bh-gold);
}

.pricing-table-wrap thead tr:nth-child(2) th:first-child {
  color: var(--tab-off-text);
  font-weight: 700;
}

.pricing-table-wrap tbody td:nth-child(3) .pricing-table__num {
  color: var(--tab-off-text);
  font-weight: 700;
}

.pricing-table-wrap tbody td:nth-child(3) .pricing-table__unit {
  color: #bcc0c6;
}

.pricing-table__savings {
  font-size: 11px;
  line-height: 1.45;
}

.pricing-table__savings-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pricing-table__savings-row + .pricing-table__savings-row {
  margin-top: 6px;
}

.pricing-table__pat {
  font-size: 10px;
  font-weight: 800;
  color: var(--bh-logo-blue-dark);
  flex-shrink: 0;
}

.pricing-table__unit--suffix {
  margin-top: 0;
  align-self: baseline;
}

.pricing-table__cb-note {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--bh-muted);
  line-height: 1.3;
}

.pricing-cost-layers {
  margin: 10px 0 14px;
  padding: 12px 14px;
  background: var(--bh-pale-blue-2);
  border: 1px solid var(--bh-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.65;
}

.pricing-cost-layers ol {
  margin: 0;
  padding-left: 1.2em;
}

.pricing-cost-layers li + li {
  margin-top: 6px;
}

.pricing-scenario {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.pricing-scenario__card {
  padding: 12px 14px;
  border: 1px solid var(--bh-border);
  border-radius: var(--radius-sm);
  background: var(--bh-white);
  font-size: 12px;
  line-height: 1.55;
}

.pricing-scenario__card h4 {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--bh-charcoal);
  margin-bottom: 8px;
}

.pricing-scenario__card table {
  width: 100%;
  font-size: 11px;
  margin: 0;
  border-radius: 8px;
}

.pricing-scenario__card th,
.pricing-scenario__card td {
  padding: 6px 8px;
  text-align: left;
}

.pricing-scenario__card th {
  width: 42%;
  background: var(--bh-pale-blue-2);
}

.pricing-scenario__note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--bh-muted);
}

.pricing-why-brief {
  margin-top: 16px;
  font-size: 12px;
  color: var(--bh-muted);
  line-height: 1.65;
}

.estimate-preview {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--bh-logo-blue);
  border-radius: var(--radius-sm);
  background: var(--bh-pale-blue-2);
  font-size: 11px;
  color: var(--bh-muted);
  line-height: 1.65;
}

.estimate-preview__row {
  margin-top: 4px;
  font-weight: 700;
  color: var(--bh-logo-blue-dark);
}

.voice-card__angle {
  flex-shrink: 0;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  color: var(--bh-logo-blue-dark);
  background: var(--bh-pale-blue);
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
  white-space: nowrap;
}

.home-column-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.home-agent-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.home-agent-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: var(--bh-white);
  border: 1px solid var(--bh-border);
  border-radius: var(--radius-md);
}

.home-agent-card__photo {
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bh-pale-blue);
}

.home-agent-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.home-agent-card__name {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 2px;
  color: var(--bh-charcoal);
}

.home-agent-card__role {
  font-size: 12px;
  font-weight: 700;
  color: var(--bh-logo-blue-dark);
  margin: 0 0 8px;
}

.home-agent-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.home-agent-card__tag {
  background: var(--bh-pale-blue);
  color: var(--bh-logo-blue-dark);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.home-agent-card__tag--qual {
  background: #f0f4f8;
  color: #445;
}

.home-agent-card__bio {
  margin: 0;
  line-height: 1.65;
}

.home-agent-more {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--bh-logo-blue-dark);
}

.home-column-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: var(--bh-white);
  border: 1px solid var(--bh-border);
  border-radius: var(--radius-md);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.home-column-card:hover {
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.home-column-card__thumb {
  width: 112px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bh-pale-blue);
  flex-shrink: 0;
}

.home-column-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-column-card__cat {
  font-size: 10px;
  font-weight: 800;
  color: var(--bh-logo-blue-dark);
  margin-bottom: 4px;
}

.home-column-card__title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--bh-charcoal);
  margin: 0;
}

.home-column-more {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--bh-logo-blue-dark);
}

.rep-card {
  display: flow-root;
  overflow: hidden;
}

.rep-card__photo {
  float: left;
  width: 84px;
  height: 84px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--bh-pale-blue);
  border: 1px solid var(--bh-border);
  object-fit: cover;
  object-position: 50% 12%;
}

.rep-message {
  margin-top: 20px;
  padding: 22px 20px;
  background: var(--bh-white);
}

.rep-message__head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.rep-message__photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 12%;
  flex-shrink: 0;
  border: 2px solid var(--bh-pale-blue);
}

.rep-message__role {
  font-size: 11px;
  font-weight: 700;
  color: var(--bh-muted);
  margin-bottom: 4px;
}

.rep-message__name {
  font-size: 18px;
  font-weight: 800;
  color: var(--bh-charcoal);
}

.rep-message__body p {
  font-size: 14px;
  color: var(--bh-charcoal);
  line-height: 1.9;
  margin-bottom: 14px;
}

.rep-message__body p:last-child {
  margin-bottom: 0;
}

.rep-message__sign {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--bh-border);
  font-size: 13px;
  font-weight: 700;
  color: var(--bh-charcoal);
  text-align: right;
}

.rep-message--summary .rep-message__head {
  margin-bottom: 14px;
}

.rep-message__excerpt {
  font-size: 14px;
  color: var(--bh-charcoal);
  line-height: 1.9;
}

.rep-message__more {
  margin-top: 14px;
  text-align: right;
}

.rep-message__more .link--subtle {
  font-size: 13px;
}

@media (min-width: 768px) {
  .rep-message {
    padding: 28px 32px;
  }

  .rep-message__photo {
    width: 96px;
    height: 96px;
  }
}

.sticky-cta[hidden] {
  display: none !important;
}

.sticky-cta__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--sticky-cta-h);
  padding: 8px 12px;
  border-radius: 0;
  background: var(--bh-orange);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  body.page-top .sticky-cta__bar {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  }
}

.sticky-cta__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 4px 0 0;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.sticky-cta__fake-input {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px 0 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--bh-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: text;
}

.sticky-cta__fake-input:hover {
  filter: brightness(1.02);
}

.sticky-cta__fake-input:focus-visible {
  outline: none;
}

.sticky-cta__field:focus-within {
  outline: 3px solid var(--bh-logo-blue);
  outline-offset: -2px;
}

.sticky-cta__attach {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bh-pale-blue-2);
  color: var(--bh-logo-blue-dark);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.sticky-cta__attach:focus-within {
  outline: 2px solid var(--bh-logo-blue);
  outline-offset: 1px;
}

.sticky-cta__send {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.sticky-cta__send:focus-visible,
.sticky-cta__attach:focus-visible {
  outline: 3px solid var(--bh-logo-blue);
  outline-offset: 2px;
}

/* legacy pill sticky (unused) */
.sticky-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: var(--sticky-cta-h);
  padding: 8px 16px;
  border: none;
  background: var(--bh-orange);
  color: #fff;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 -6px 20px rgba(232, 135, 26, 0.25);
  transition:
    filter 0.2s,
    transform 0.15s;
}

.sticky-cta__btn:hover {
  filter: brightness(1.05);
}
.sticky-cta__btn:active {
  transform: scale(0.99);
}

.sticky-cta__btn:focus-visible {
  outline: 3px solid var(--bh-logo-blue);
  outline-offset: -3px;
}

.sticky-cta__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sticky-cta__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.sticky-cta__text {
  text-align: left;
  line-height: 1.3;
}

.sticky-cta__main {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.sticky-cta__sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.85;
}

.diagnosis-preview {
  margin-top: 16px;
  padding: 18px 16px;
  text-align: left;
}

.diagnosis-preview .btn {
  margin-top: 12px;
}

/* ── LP composer (P1 / P5 / P6) ── */
.lp-composer {
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--bh-border);
  border-radius: var(--radius-md);
  background: var(--bh-white);
  box-shadow: var(--shadow-soft);
  box-sizing: border-box;
}

.lp-composer__label {
  font-size: 11px;
  font-weight: 800;
  color: var(--bh-logo-blue-dark);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.lp-composer__hint-line {
  font-size: 12px;
  line-height: 1.55;
  color: var(--bh-text);
  margin: 0 0 10px;
}

.lp-composer__hint-line strong {
  font-weight: 800;
}

.lp-composer__option {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bh-pale-blue-2);
  color: var(--bh-logo-blue-dark);
  white-space: nowrap;
}

.lp-composer--fv .lp-composer__body {
  opacity: 1;
  transform: none;
}

@keyframes lp-composer-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lp-composer--fv.lp-composer--fv-enter {
  animation: lp-composer-enter 0.45s ease-out both;
}

@keyframes lp-input-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(143, 184, 193, 0);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(143, 184, 193, 0.35);
  }
}

.lp-composer--fv.lp-composer--pulse-input .lp-composer__input-wrap {
  animation: lp-input-pulse 1.2s ease-in-out 0.5s 2;
}

@media (prefers-reduced-motion: reduce) {
  .lp-composer--fv.lp-composer--fv-enter,
  .lp-composer--fv.lp-composer--pulse-input .lp-composer__input-wrap {
    animation: none;
  }
}

.lp-method-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.lp-method-chips button {
  flex: 1;
  min-width: 62px;
  border: 1px solid var(--bh-logo-blue);
  background: var(--bh-white);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 6px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  color: var(--bh-logo-blue-dark);
}

.lp-method-chips button.is-active {
  background: var(--bh-pale-blue);
  border-color: var(--bh-logo-blue-dark);
}

.lp-method-chips button:focus-visible {
  outline: 2px solid var(--bh-logo-blue-dark);
  outline-offset: 2px;
}

.lp-composer__input-wrap {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--bh-border);
  border-radius: var(--radius-sm);
  background: var(--bh-white);
  padding: 4px 4px 4px 8px;
  box-sizing: border-box;
}

.lp-composer__input-wrap .lp-composer__auto-input {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 56px;
  margin-bottom: 0;
  padding: 8px 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  resize: none;
}

.lp-composer__input-wrap .lp-composer__auto-input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.lp-composer__input-wrap:focus-within {
  outline: 2px solid rgba(47, 127, 163, 0.35);
  outline-offset: 1px;
  border-color: var(--bh-logo-blue-dark);
}

.lp-composer__attach {
  position: static;
  transform: none;
  flex-shrink: 0;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bh-pale-blue-2);
  color: var(--bh-logo-blue-dark);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.lp-composer__attach:focus-within {
  outline: 2px solid var(--bh-logo-blue);
  outline-offset: 2px;
}

.lp-composer__attach input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lp-composer__submit {
  margin-top: 10px;
}

.lp-composer__hint {
  margin-top: 8px;
  font-size: 10px;
  color: var(--bh-muted);
  line-height: 1.5;
}

.lp-composer--sec4 .chat__method-cards {
  margin: 10px 0 12px;
}

.lp-composer--sec4 .estimate-preview {
  margin-top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-shell {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  visibility: hidden;
}

.chat-shell[data-state="open"] {
  pointer-events: auto;
  visibility: visible;
}

.chat-shell__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 45, 49, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.chat-shell[data-state="open"] .chat-shell__backdrop {
  opacity: 1;
}

.chat-shell__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: var(--max-width);
  height: min(78vh, 640px);
  background: var(--bh-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 40px rgba(47, 127, 163, 0.18);
  transform: translateX(-50%) translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.chat-shell__handle {
  flex-shrink: 0;
  padding: 10px 14px 6px;
  text-align: center;
  background: var(--bh-pale-blue-2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  touch-action: none;
  cursor: grab;
}

.chat-shell__handle:active {
  cursor: grabbing;
}

.chat-shell__handle-bar {
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto;
  background: var(--bh-border);
  border-radius: 99px;
}

.chat-shell__header-btn {
  font-size: 10px;
  font-weight: 700;
  color: var(--bh-logo-blue-dark);
  background: none;
  border: 1px solid var(--bh-logo-blue);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.chat-shell__header-btn--reset {
  justify-self: start;
  grid-column: 1;
}

.chat-shell__header-btn--minimize {
  justify-self: end;
  grid-column: 3;
}

.chat-shell[data-cv-phase="convert"] .chat-shell__header-btn--minimize {
  visibility: hidden;
  pointer-events: none;
}

.chat-shell[data-cv-phase="convert"] .chat-shell__backdrop {
  cursor: default;
}

.chat-shell[data-state="open"] .chat-shell__panel {
  transform: translateX(-50%) translateY(0);
}

.chat-shell__header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 14px 12px;
  border-bottom: 1px solid var(--bh-border);
  background: var(--bh-pale-blue-2);
}

.chat-shell__header-btn:focus-visible {
  outline: 2px solid var(--bh-logo-blue-dark);
  outline-offset: 2px;
}

.chat-shell__header-center {
  min-width: 0;
  justify-self: center;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-shell__avatar-wrap,
.chat-shell .chat__operator-avatar-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--bh-white);
  box-shadow: 0 1px 6px rgba(47, 127, 163, 0.18);
}

.chat-shell__avatar,
.chat-shell .chat__operator-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transform: scale(1.45);
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.chat-shell__header-text {
  min-width: 0;
  text-align: left;
}

.chat-shell__title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--bh-logo-blue-dark);
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.chat-shell__subtitle {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--bh-muted);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-top: 1px;
}

.chat-shell__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 16px;
}

.chat-shell__body .chat {
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  background: var(--bh-white);
  padding: 16px 14px;
}

/* ポップアップ内チャット：白背景・グレー（bot）/ BHブルー（user）・文字1.5倍 */
.chat-shell .chat__bot-turn {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
  max-width: 100%;
}

.chat-shell .chat__bot-turn .bub--bot {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 50px);
  margin-bottom: 0;
}

.chat-shell .chat__operator-avatar-wrap {
  align-self: flex-end;
}

.chat-shell .chat__operator-avatar--spacer {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  visibility: hidden;
}

.chat-shell .bub {
  max-width: 88%;
  font-size: 19px;
  padding: 13px 17px;
  margin-bottom: 10px;
  border-radius: 16px;
  line-height: 1.55;
}

.chat-shell .bub--bot {
  background: var(--tab-off-bg);
  border: none;
  color: var(--bh-text);
  border-bottom-left-radius: 4px;
}

.chat-shell .bub--user {
  background: var(--bh-logo-blue-dark);
  color: var(--bh-white);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-shell .bub--enter {
  animation: chat-bub-enter 0.32s ease forwards;
}

.chat-shell .chat__bot-turn.bub--enter {
  animation: chat-bub-enter 0.32s ease forwards;
}

@keyframes chat-bub-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-shell .bub--typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 48px;
  padding: 13px 17px;
}

.chat-shell .bub--typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bh-muted);
  opacity: 0.45;
  animation: chat-typing-dot 1.1s ease-in-out infinite;
}

.chat-shell .bub--typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-shell .bub--typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-typing-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chat-shell .fee-preview__title {
  font-size: 17px;
}

.chat-shell .fee-preview__row {
  font-size: 23px;
}

.chat-shell .fee-preview__note {
  font-size: 16px;
}

.chat-shell .fee-preview__savings {
  font-size: 17px;
}

.chat-shell .chat__quick-replies__hint,
.chat-shell .chat__method-cards .chat__quick-replies__hint {
  font-size: 17px;
}

.chat-shell .chat__quick-replies button {
  font-size: 19px;
  padding: 13px 17px;
}

.chat-shell .chat__method-card {
  padding: 13px 17px;
}

.chat-shell .chat__method-card__label {
  font-size: 19px;
}

.chat-shell .chat__method-card__num {
  font-size: 19px;
}

.chat-shell .chat__method-card__desc {
  font-size: 17px;
}

.chat-shell .chat__user-turn .bub--user {
  font-size: 19px;
}

.chat-shell .chat__change-btn {
  font-size: 17px;
}

.chat-shell .chat__field-label {
  font-size: 17px;
}

.chat-shell .chat__input,
.chat-shell .chat__input--text,
.chat-shell .chat__input--compact,
.chat-shell .chat__price-input {
  font-size: 19px;
}

.chat-shell .chat__price-suffix {
  font-size: 17px;
}

.chat-shell .chat__field-hint {
  font-size: 17px;
}

.chat-shell .chat__privacy {
  font-size: 17px;
}

.chat-shell .chat__submit {
  font-size: 19px;
}

.chat-shell .chat__file-input {
  font-size: 17px;
}

.chat-shell .chat__error {
  font-size: 17px;
}

.chat-shell .bub .small {
  font-size: 0.72em;
}

.chat-shell [data-quick-replies="active"] {
  animation: chat-bub-enter 0.32s ease forwards;
}

.chat-diagnosis-ribbon {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  z-index: 205;
  min-height: var(--ribbon-h);
  padding: 8px 14px calc(8px + env(safe-area-inset-top, 0px));
  border: none;
  background: var(--bh-orange);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 16px rgba(232, 135, 26, 0.28);
}

.chat-diagnosis-ribbon:focus-visible {
  outline: 3px solid var(--bh-logo-blue);
  outline-offset: -3px;
}

.chat-diagnosis-ribbon[hidden] {
  display: none !important;
}

.chat-shell__minibar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  width: 100%;
  min-height: var(--minibar-h);
  padding: 12px var(--section-pad-x)
    calc(12px + env(safe-area-inset-bottom, 0px));
  border: none;
  border-radius: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bh-orange);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: none;
  text-align: center;
}

.chat-shell__minibar:focus-visible {
  outline: 3px solid var(--bh-logo-blue);
  outline-offset: -3px;
}

.chat-shell__minibar[hidden] {
  display: none !important;
}

body.chat-shell-open {
  overflow: hidden;
}

body.chat-shell-minimized {
  padding-top: var(--ribbon-h);
}

@media (prefers-reduced-motion: reduce) {
  .chat-shell__panel,
  .chat-shell__backdrop {
    transition: none;
  }

  .chat-shell .bub--enter,
  .chat-shell .chat__bot-turn.bub--enter,
  .chat-shell .bub--typing span {
    animation: none;
  }
}
