/* v67: restore original header, fix X icon size, normalize contact CTA */

/* Header: back to v65 light-glass layout */
.site-header {
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--primary-dark) !important;
  border-bottom: 1px solid rgba(31, 77, 147, 0.10) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  box-shadow: 0 10px 28px rgba(19, 42, 83, 0.08) !important;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(45,99,183,0) 0%, rgba(98,123,211,0.75) 22%, rgba(130,98,211,0.78) 50%, rgba(98,123,211,0.75) 78%, rgba(45,99,183,0) 100%);
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 12px 30px rgba(19, 42, 83, 0.10) !important;
}

.header-inner {
  min-height: 74px !important;
  gap: 20px !important;
}

.brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: var(--primary-dark) !important;
  font-size: 1.04rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 6px 18px rgba(31,77,147,0.08);
  overflow: hidden;
  flex: 0 0 34px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: inline-block;
}

.header-links {
  display: none !important;
}

.global-nav {
  gap: 6px !important;
}

.global-nav a {
  min-height: 42px !important;
  padding: 0 13px !important;
  color: #213554 !important;
  font-size: 0.93rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
}

.global-nav a:hover,
.global-nav a:focus-visible,
.global-nav a:active {
  background: rgba(45, 99, 183, 0.08) !important;
  color: var(--primary-dark) !important;
}

.menu-toggle {
  border: 1px solid rgba(31, 77, 147, 0.18) !important;
  color: var(--primary-dark) !important;
  background: rgba(255,255,255,0.86) !important;
}

/* Free Spir buttons: same purple everywhere */
.button.reserve.reserve-free,
.mobile-cta .mobile-cta-spir {
  background: linear-gradient(135deg, #7b63df 0%, #644bcf 100%) !important;
  color: #fff !important;
  border: 0 !important;
}

.button.reserve.reserve-free:hover,
.button.reserve.reserve-free:focus-visible,
.mobile-cta .mobile-cta-spir:hover,
.mobile-cta .mobile-cta-spir:focus-visible {
  background: linear-gradient(135deg, #7158d8 0%, #5a41c2 100%) !important;
}

.button.reserve.reserve-free .btn-multiline {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.12 !important;
}

.button.reserve.reserve-free .btn-main {
  font-size: 0.96rem !important;
  font-weight: 800 !important;
}

.button.reserve.reserve-free .btn-note {
  margin-top: 4px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  opacity: 0.96 !important;
}

/* CONTACT buttons: prevent oversized layout */
.contact-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.contact-buttons .button {
  flex: 0 0 220px !important;
  width: 220px !important;
  min-width: 220px !important;
  min-height: 54px !important;
  padding: 0 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 0.95rem !important;
  line-height: 1.15 !important;
}

.contact-buttons .button > span,
.contact-buttons .button .btn-multiline {
  max-width: 100% !important;
}

/* Social icon buttons */
.profile-links,
.footer-social {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}

.profile-links a.social-logo-btn,
.footer-social a.social-logo-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2rem !important;
  height: 2rem !important;
  min-width: 2rem !important;
  min-height: 2rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transform: none !important;
  text-decoration: none !important;
  border-radius: 0.5rem !important;
}

.profile-links a.social-logo-btn::before,
.profile-links a.social-logo-btn::after,
.footer-social a.social-logo-btn::before,
.footer-social a.social-logo-btn::after {
  content: none !important;
  display: none !important;
}

.profile-links a.social-logo-btn img,
.footer-social a.social-logo-btn img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: inherit !important;
}

.profile-links a.social-logo-btn-line,
.footer-social a.social-logo-btn-line { order: 1; }
.profile-links a.social-logo-btn-youtube,
.footer-social a.social-logo-btn-youtube { order: 2; }
.profile-links a.social-logo-btn-note,
.footer-social a.social-logo-btn-note { order: 3; }
.profile-links a.social-logo-btn-x,
.footer-social a.social-logo-btn-x { order: 4; }

/* note / X: slightly rounded, not too strong */
.profile-links a.social-logo-btn-note,
.footer-social a.social-logo-btn-note,
.profile-links a.social-logo-btn-x,
.footer-social a.social-logo-btn-x,
.profile-links a.social-logo-btn-note img,
.footer-social a.social-logo-btn-note img,
.profile-links a.social-logo-btn-x img,
.footer-social a.social-logo-btn-x img {
  border-radius: 0.34rem !important;
}

/* X icon: use larger letter within the same visual size */
.profile-links a.social-logo-btn-x img,
.footer-social a.social-logo-btn-x img {
  object-fit: cover !important;
  background: #000 !important;
}

.profile-links a.social-logo-btn:hover,
.profile-links a.social-logo-btn:focus-visible,
.footer-social a.social-logo-btn:hover,
.footer-social a.social-logo-btn:focus-visible {
  opacity: 0.92 !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Fixed bottom CTA */
.mobile-cta {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 8px !important;
}

.mobile-cta a {
  min-height: 44px !important;
  border-radius: 14px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 12px 28px rgba(20, 43, 81, 0.16) !important;
}

.mobile-cta a span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: 1.15 !important;
}

.mobile-cta .mobile-cta-line {
  background: linear-gradient(135deg, #25c562 0%, #119a47 100%) !important;
  color: #fff !important;
}

.mobile-cta .mobile-cta-mail {
  background: linear-gradient(135deg, #2d63b7 0%, #1f4d93 100%) !important;
  color: #fff !important;
  border: 0 !important;
}

.site-footer {
  padding-bottom: 20px !important;
}

@media (max-width: 960px) {
  .site-header {
    background: rgba(255, 255, 255, 0.90) !important;
  }

  .global-nav {
    background: rgba(255,255,255,0.98) !important;
    border: 1px solid rgba(31,77,147,0.10) !important;
    box-shadow: 0 18px 34px rgba(19,42,83,0.12) !important;
  }

  .global-nav a {
    color: var(--primary-dark) !important;
  }

  .global-nav a + a {
    border-top: 1px solid rgba(31,77,147,0.08) !important;
  }
}

@media (max-width: 767px) {
  .contact-buttons .button,
  .contact-buttons .button.line,
  .contact-buttons .button.reserve,
  .contact-buttons .button.mail {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
  }

  .profile-links,
  .footer-social {
    gap: 10px !important;
  }

  .profile-links a.social-logo-btn,
  .footer-social a.social-logo-btn {
    width: 1.95rem !important;
    height: 1.95rem !important;
    min-width: 1.95rem !important;
    min-height: 1.95rem !important;
  }

  .mobile-cta a {
    font-size: 0.8rem !important;
  }
}


/* v68: mobile menu should stay closed until tapped */
@media (max-width: 960px) {
  .global-nav {
    display: none !important;
  }

  .global-nav.is-open {
    display: flex !important;
  }

  .header-inner {
    position: relative !important;
  }
}

/* v71: remove reason number boxes while keeping the card text */
.reason-number {
  display: none !important;
}

/* v71: make the worries section more readable as question cards */
.needs-grid {
  align-items: stretch !important;
}

.need-item {
  align-items: flex-start !important;
  min-height: 92px !important;
  padding: 16px 18px !important;
}

.need-item .need-check {
  margin-top: 2px !important;
}

.need-item span:last-child {
  line-height: 1.45 !important;
  font-size: 0.99rem !important;
}

/* v71: footer SNS logos exactly match the profile SNS logo sizing */
:root {
  --social-logo-size-desktop: 2rem;
  --social-logo-size-mobile: 1.95rem;
}

.profile-links,
.footer-social {
  gap: 12px !important;
}

.profile-links a.social-logo-btn,
.footer-social a.social-logo-btn {
  width: var(--social-logo-size-desktop) !important;
  height: var(--social-logo-size-desktop) !important;
  min-width: var(--social-logo-size-desktop) !important;
  min-height: var(--social-logo-size-desktop) !important;
  border-radius: 0.5rem !important;
}

.profile-links a.social-logo-btn img,
.footer-social a.social-logo-btn img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

@media (max-width: 767px) {
  .profile-links,
  .footer-social {
    gap: 10px !important;
  }

  .profile-links a.social-logo-btn,
  .footer-social a.social-logo-btn {
    width: var(--social-logo-size-mobile) !important;
    height: var(--social-logo-size-mobile) !important;
    min-width: var(--social-logo-size-mobile) !important;
    min-height: var(--social-logo-size-mobile) !important;
  }

  .need-item {
    min-height: auto !important;
  }
}


/* v72: reasons cards trimmed to 4 items */
.reason-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* Footer social icons: apply the exact same visual size as profile icons */
.profile-links,
.footer-social {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}

.profile-links a.social-logo-btn,
.footer-social a.social-logo-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2rem !important;
  height: 2rem !important;
  min-width: 2rem !important;
  min-height: 2rem !important;
  max-width: 2rem !important;
  max-height: 2rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transform: none !important;
  text-decoration: none !important;
}

.profile-links a.social-logo-btn img,
.footer-social a.social-logo-btn img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: inherit !important;
}

@media (max-width: 1080px) {
  .reason-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .reason-cards {
    grid-template-columns: 1fr !important;
  }
}


/* v73: pricing refresh and hero badges */
.hero-badges span {
  font-weight: 700 !important;
}

.pricing-card-free {
  background: linear-gradient(180deg, #fffdfa 0%, #fff4e8 100%) !important;
  border: 2px solid rgba(241, 164, 74, 0.30) !important;
  box-shadow: 0 18px 42px rgba(234, 154, 55, 0.14) !important;
}

.plan-badge-free {
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.18) 0%, rgba(255, 141, 77, 0.18) 100%) !important;
  color: #9b4b15 !important;
}

.pricing-card-free .plan-price {
  color: #b85a16 !important;
}

.pricing-card-free .plan-note {
  color: #7a583d !important;
  font-weight: 700 !important;
}

.pricing-card-free .button.reserve.reserve-free {
  min-width: 100% !important;
  box-shadow: 0 16px 34px rgba(101, 79, 203, 0.28) !important;
}

.pricing-card-premium {
  background: linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%) !important;
  border: 1px solid rgba(45, 99, 183, 0.18) !important;
}

.pricing-card-premium .plan-badge-soft {
  background: rgba(45, 99, 183, 0.12) !important;
  color: var(--primary-dark) !important;
}

.pricing-card-premium .plan-price {
  color: #244f9d !important;
}

/* Keep footer SNS logos identical to profile SNS logos */
.profile-links a.social-logo-btn,
.footer-social a.social-logo-btn {
  width: var(--social-logo-size-desktop) !important;
  height: var(--social-logo-size-desktop) !important;
  min-width: var(--social-logo-size-desktop) !important;
  min-height: var(--social-logo-size-desktop) !important;
  max-width: var(--social-logo-size-desktop) !important;
  max-height: var(--social-logo-size-desktop) !important;
}

.profile-links a.social-logo-btn img,
.footer-social a.social-logo-btn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

@media (max-width: 767px) {
  .profile-links a.social-logo-btn,
  .footer-social a.social-logo-btn {
    width: var(--social-logo-size-mobile) !important;
    height: var(--social-logo-size-mobile) !important;
    min-width: var(--social-logo-size-mobile) !important;
    min-height: var(--social-logo-size-mobile) !important;
    max-width: var(--social-logo-size-mobile) !important;
    max-height: var(--social-logo-size-mobile) !important;
  }
}

/* v74: footer social icons must exactly match profile icons, especially note size and no extra frame */
:root {
  --profile-social-size-desktop: 2rem;
  --profile-social-size-mobile: 1.95rem;
}

.profile-links,
.footer-social {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}

.profile-links a.social-logo-btn,
.footer-social a.social-logo-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: var(--profile-social-size-desktop) !important;
  height: var(--profile-social-size-desktop) !important;
  min-width: var(--profile-social-size-desktop) !important;
  min-height: var(--profile-social-size-desktop) !important;
  max-width: var(--profile-social-size-desktop) !important;
  max-height: var(--profile-social-size-desktop) !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  overflow: hidden !important;
}

.profile-links a.social-logo-btn::before,
.profile-links a.social-logo-btn::after,
.footer-social a.social-logo-btn::before,
.footer-social a.social-logo-btn::after {
  content: none !important;
  display: none !important;
}

.profile-links a.social-logo-btn img,
.footer-social a.social-logo-btn img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  object-fit: contain !important;
}

/* note only: no visible outer frame and same visual scale in footer as profile */
.profile-links a.social-logo-btn-note,
.footer-social a.social-logo-btn-note,
.profile-links a.social-logo-btn-note img,
.footer-social a.social-logo-btn-note img {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

@media (max-width: 767px) {
  .profile-links,
  .footer-social {
    gap: 10px !important;
  }

  .profile-links a.social-logo-btn,
  .footer-social a.social-logo-btn {
    width: var(--profile-social-size-mobile) !important;
    height: var(--profile-social-size-mobile) !important;
    min-width: var(--profile-social-size-mobile) !important;
    min-height: var(--profile-social-size-mobile) !important;
    max-width: var(--profile-social-size-mobile) !important;
    max-height: var(--profile-social-size-mobile) !important;
  }
}

/* v79: remove extra "おすすめ" ribbon above 人気No.1 */
.pricing-card.featured::before {
  content: none !important;
  display: none !important;
}


/* v80: improve LINE CTA conversion */
.hero-line-note {
  margin: 12px 0 0 !important;
  color: rgba(255,255,255,0.92) !important;
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
  max-width: 720px !important;
}

.contact-line-note {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  margin: 14px 0 0 !important;
  border-radius: 999px !important;
  background: rgba(39, 183, 40, 0.10) !important;
  color: #177718 !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
}

.hero-buttons .button.line,
.contact-buttons .button.line,
.needs-cta .button.line {
  min-width: 232px !important;
}

@media (max-width: 767px) {
  .hero-line-note {
    font-size: 0.86rem !important;
  }

  .contact-line-note {
    width: fit-content !important;
    max-width: 100% !important;
  }
}


/* v81: pricing colors + sample boxes + remove hero line note */
.hero-line-note {
  display: none !important;
}

.pricing-card-free {
  background: linear-gradient(180deg, #fcfaff 0%, #f1ebff 100%) !important;
  border: 2px solid rgba(123, 99, 223, 0.24) !important;
  box-shadow: 0 18px 42px rgba(101, 79, 203, 0.14) !important;
}

.plan-badge-free {
  background: linear-gradient(135deg, rgba(123, 99, 223, 0.14) 0%, rgba(94, 72, 197, 0.14) 100%) !important;
  color: #5b45be !important;
}

.pricing-card-free .plan-price {
  color: #5b45be !important;
}

.pricing-card-free .plan-note {
  color: #5d4f8d !important;
  font-weight: 700 !important;
}

.pricing-card-free .plan-copy,
.pricing-card-free .plan-block ul,
.pricing-card-free .plan-sample-list {
  color: #51456f !important;
}

.pricing-card.featured {
  background: linear-gradient(180deg, #fffdf7 0%, #fff4e4 100%) !important;
  border: 2px solid rgba(212, 140, 39, 0.26) !important;
  box-shadow: 0 18px 42px rgba(203, 131, 36, 0.14) !important;
}

.pricing-card.featured .plan-badge {
  background: linear-gradient(135deg, rgba(212, 140, 39, 0.14) 0%, rgba(180, 110, 20, 0.14) 100%) !important;
  color: #8b4c10 !important;
}

.pricing-card.featured .plan-price {
  color: #9b5717 !important;
}

.pricing-card.featured .plan-note {
  color: #7c5838 !important;
  font-weight: 700 !important;
}

.pricing-card.featured .button.reserve {
  background: linear-gradient(135deg, #d48c2a 0%, #b96f16 100%) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 16px 34px rgba(185, 111, 22, 0.24) !important;
}

.pricing-card.featured .button.reserve:hover,
.pricing-card.featured .button.reserve:focus-visible {
  background: linear-gradient(135deg, #c98124 0%, #a96411 100%) !important;
}

.pricing-card-premium {
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%) !important;
  border: 2px solid rgba(31, 77, 147, 0.20) !important;
  box-shadow: 0 18px 42px rgba(31, 77, 147, 0.10) !important;
}

.pricing-card-premium .plan-badge-soft {
  background: linear-gradient(135deg, rgba(31, 77, 147, 0.12) 0%, rgba(21, 56, 109, 0.12) 100%) !important;
  color: #1f4d93 !important;
}

.pricing-card-premium .plan-price {
  color: #1f4d93 !important;
}

.pricing-card-premium .plan-note {
  color: #415a85 !important;
  font-weight: 700 !important;
}

.pricing-card-premium .button.mail {
  background: linear-gradient(135deg, #1f4d93 0%, #15386d 100%) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 16px 34px rgba(21, 56, 109, 0.22) !important;
}

.pricing-card-premium .button.mail:hover,
.pricing-card-premium .button.mail:focus-visible {
  background: linear-gradient(135deg, #1b4483 0%, #112f5a 100%) !important;
}

.plan-sample {
  margin-top: 18px !important;
}

.plan-sample h4 {
  margin: 0 0 10px !important;
  font-size: 0.98rem !important;
  color: var(--primary-dark) !important;
}

.plan-sample-box {
  padding: 14px 15px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(45, 99, 183, 0.10) !important;
}

.pricing-card-free .plan-sample-box {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(123, 99, 223, 0.16) !important;
}

.pricing-card.featured .plan-sample-box {
  background: rgba(255, 255, 255, 0.76) !important;
  border-color: rgba(212, 140, 39, 0.18) !important;
}

.pricing-card-premium .plan-sample-box {
  background: rgba(255, 255, 255, 0.76) !important;
  border-color: rgba(31, 77, 147, 0.16) !important;
}

.plan-sample-title {
  margin: 0 0 8px !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  line-height: 1.45 !important;
}

.plan-sample-list {
  margin: 0 !important;
  padding-left: 18px !important;
  color: var(--muted) !important;
}

.plan-sample-list li + li {
  margin-top: 8px !important;
}

/* v83: cleaner, more trustworthy first view */
.hero {
  min-height: 620px !important;
}

.hero-overlay {
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.90) 0%,
    rgba(247, 250, 255, 0.84) 48%,
    rgba(226, 236, 250, 0.54) 100%
  ) !important;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  padding: 100px 0 56px !important;
}

.hero-copy {
  max-width: 760px !important;
  padding: 34px 36px !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 24px 56px rgba(20, 43, 81, 0.14) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  color: var(--text) !important;
}

.hero-copy::before {
  content: "" !important;
  display: block !important;
  width: 88px !important;
  height: 4px !important;
  border-radius: 999px !important;
  margin-bottom: 18px !important;
  background: linear-gradient(90deg, #2d63b7 0%, #7b63df 100%) !important;
}

.hero h1 {
  color: var(--primary-dark) !important;
  font-size: clamp(2.65rem, 5.4vw, 4.5rem) !important;
  letter-spacing: 0.005em !important;
}

.hero h1 span {
  color: #335f9e !important;
}

.hero-text {
  margin-top: 18px !important;
  max-width: none !important;
  color: #43516a !important;
  font-size: 1.03rem !important;
}

.hero-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0 !important;
  margin-top: 24px !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 8px 10px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(45, 99, 183, 0.12) !important;
  box-shadow: 0 12px 28px rgba(20, 43, 81, 0.08) !important;
}

.hero-badges span {
  min-height: auto !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #26436f !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.hero-badges span + span {
  border-left: 1px solid rgba(45, 99, 183, 0.12) !important;
}

.hero-buttons {
  margin-top: 24px !important;
}

.hero-buttons .button.ghost {
  background: rgba(255, 255, 255, 0.86) !important;
  color: var(--primary-dark) !important;
  border: 1px solid rgba(31, 77, 147, 0.16) !important;
  box-shadow: 0 14px 32px rgba(20, 43, 81, 0.10) !important;
}

.hero-buttons .button.ghost:hover,
.hero-buttons .button.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.96) !important;
}

@media (max-width: 960px) {
  .hero-grid {
    padding: 88px 0 46px !important;
  }

  .hero-copy {
    padding: 28px 24px !important;
    border-radius: 24px !important;
  }

  .hero-badges {
    gap: 8px !important;
    padding: 12px !important;
  }

  .hero-badges span {
    padding: 0 !important;
    border-left: 0 !important;
    width: auto !important;
  }

  .hero-badges span + span {
    border-left: 0 !important;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 560px !important;
  }

  .hero-grid {
    padding: 76px 0 34px !important;
  }

  .hero-copy {
    padding: 24px 18px !important;
    border-radius: 22px !important;
  }

  .hero-copy::before {
    width: 74px !important;
    margin-bottom: 14px !important;
  }

  .hero-text {
    font-size: 0.96rem !important;
    line-height: 1.72 !important;
  }

  .hero-badges {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 8px 12px !important;
  }

  .hero-badges span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding: 0 !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    text-align: center !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .hero-badges span:nth-child(2) {
    grid-column: 1 / -1 !important;
    font-size: 0.8rem !important;
  }
}


/* v85: shorter pricing layout and merged output/sample blocks */
.plan-note,
.plan-copy {
  line-height: 1.55 !important;
}

.plan-note {
  margin-bottom: 8px !important;
}

.plan-copy {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

.plan-block-merged {
  margin-top: 14px !important;
  padding-top: 14px !important;
}

.plan-block-merged h4 {
  margin: 0 0 10px !important;
  font-size: 0.98rem !important;
}

.plan-block-merged ul {
  padding-left: 18px !important;
}

.plan-block-merged li + li {
  margin-top: 8px !important;
}

.plan-actions .button.reserve.reserve-free .btn-note {
  display: none !important;
}

/* v85: tighter header and hero spacing */
.header-inner {
  min-height: 66px !important;
}

.hero {
  min-height: 520px !important;
}

.hero-grid {
  padding: 78px 0 34px !important;
}

.hero-copy {
  padding: 26px 28px !important;
  border-radius: 24px !important;
}

.hero-copy::before {
  margin-bottom: 14px !important;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem) !important;
  line-height: 1.12 !important;
}

.hero-text {
  margin-top: 14px !important;
}

.hero-badges {
  margin-top: 18px !important;
}

.hero-buttons {
  margin-top: 18px !important;
}

@media (max-width: 960px) {
  .header-inner {
    min-height: 62px !important;
  }

  .hero {
    min-height: 500px !important;
  }

  .hero-grid {
    padding: 72px 0 30px !important;
  }

  .hero-copy {
    padding: 22px 20px !important;
  }
}

@media (max-width: 767px) {
  .header-inner {
    min-height: 58px !important;
  }

  .hero {
    min-height: 460px !important;
  }

  .hero-grid {
    padding: 64px 0 24px !important;
  }

  .hero-copy {
    padding: 20px 16px !important;
    border-radius: 20px !important;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.7rem) !important;
  }

  .hero-badges {
    margin-top: 16px !important;
  }

  .hero-buttons {
    margin-top: 16px !important;
  }
}

/* v86: restore v82-like hero badges, tighten header/hero more, upgrade service illustrations */
.header-inner {
  min-height: 60px !important;
  gap: 14px !important;
}

.global-nav a {
  min-height: 40px !important;
  padding: 0 10px !important;
  font-size: 0.92rem !important;
}

.hero {
  min-height: 480px !important;
}

.hero-grid {
  padding: 64px 0 24px !important;
}

.hero-copy {
  max-width: 720px !important;
  padding: 20px 22px !important;
  border-radius: 22px !important;
}

.hero-copy::before {
  width: 70px !important;
  height: 4px !important;
  margin-bottom: 12px !important;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.9rem) !important;
  line-height: 1.1 !important;
}

.hero-text {
  margin-top: 12px !important;
  font-size: 1rem !important;
  line-height: 1.72 !important;
}

.hero-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 16px !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hero-badges span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(45, 99, 183, 0.14) !important;
  box-shadow: 0 8px 18px rgba(20, 43, 81, 0.08) !important;
  color: #26436f !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.hero-buttons {
  margin-top: 16px !important;
}

.service-image-wrap {
  min-height: 270px !important;
  overflow: hidden !important;
}

.service-visual {
  gap: 16px !important;
}

.service-scene {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  align-items: center;
}

.service-scene-budget,
.service-scene-cover,
.service-scene-future {
  min-height: 132px;
}

.budget-window,
.cover-panel,
.future-board {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(45, 99, 183, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,251,255,0.92) 100%);
  box-shadow: 0 18px 34px rgba(28, 63, 122, 0.10);
}

.budget-window {
  padding: 14px 14px 12px;
}

.budget-window-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.budget-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(120, 165, 241, 0.65);
}

.budget-grid {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
}

.budget-ring {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(#2d63b7 0 38%, #7ca7ef 38% 70%, #dbe8ff 70% 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.budget-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
}

.budget-ring span {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.budget-stats {
  display: grid;
  gap: 8px;
}

.budget-stat {
  padding: 9px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(45, 99, 183, 0.10);
}

.budget-stat strong,
.cover-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.84rem;
  color: var(--primary-dark);
}

.budget-stat span,
.cover-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.budget-rows {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.budget-rows span {
  display: block;
  width: var(--w);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(45,99,183,0.94) 0%, rgba(120,165,241,0.52) 100%);
}

.cover-panel {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.cover-card {
  padding: 11px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(47, 111, 143, 0.12);
  box-shadow: 0 10px 20px rgba(47, 111, 143, 0.08);
}

.cover-shield-wrap {
  display: grid;
  place-items: center;
}

.cover-shield-main {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 94px;
  height: 102px;
  background: linear-gradient(180deg, rgba(47,111,143,0.96) 0%, rgba(117,184,214,0.96) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.05em;
  clip-path: polygon(50% 0%, 92% 16%, 92% 52%, 50% 100%, 8% 52%, 8% 16%);
  box-shadow: 0 16px 30px rgba(47, 111, 143, 0.18);
}

.cover-shield-main::after {
  content: "✓";
  position: absolute;
  top: 12px;
  font-size: 1rem;
  font-weight: 900;
}

.cover-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cover-checks span,
.future-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(47,111,143,0.12);
  color: #2b627e;
  font-size: 0.8rem;
  font-weight: 700;
}

.future-board {
  min-height: 130px;
  padding: 16px 16px 18px 20px;
}

.future-chart-line {
  position: absolute;
  left: 24px;
  right: 18px;
  top: 24px;
  bottom: 28px;
  background: linear-gradient(90deg, rgba(77,107,179,0.9) 0%, rgba(157,181,246,0.8) 100%);
  clip-path: polygon(0 84%, 18% 72%, 38% 76%, 58% 48%, 78% 34%, 100% 8%, 100% 20%, 78% 44%, 58% 58%, 38% 84%, 18% 80%, 0 92%);
  border-radius: 16px;
  opacity: 0.92;
}

.future-axis {
  position: absolute;
  background: rgba(77,107,179,0.24);
}

.future-axis-x {
  left: 18px;
  right: 14px;
  bottom: 16px;
  height: 2px;
}

.future-axis-y {
  left: 18px;
  top: 16px;
  bottom: 16px;
  width: 2px;
}

.future-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4d6bb3 0%, #9db5f6 100%);
  box-shadow: 0 10px 22px rgba(77, 107, 179, 0.22);
}

.future-dot-1 { left: 28%; top: 62px; }
.future-dot-2 { left: 56%; top: 40px; }
.future-dot-3 { right: 16%; top: 18px; }

.future-summary-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.future-pill {
  color: #3a548f;
  border-color: rgba(77,107,179,0.12);
}

.future-pill-strong {
  background: linear-gradient(135deg, rgba(77,107,179,0.12) 0%, rgba(157,181,246,0.14) 100%);
}

@media (max-width: 960px) {
  .header-inner {
    min-height: 56px !important;
  }

  .hero {
    min-height: 450px !important;
  }

  .hero-grid {
    padding: 60px 0 20px !important;
  }

  .hero-copy {
    padding: 18px 18px !important;
  }

  .service-image-wrap {
    min-height: 256px !important;
  }
}

@media (max-width: 767px) {
  .header-inner {
    min-height: 54px !important;
  }

  .hero {
    min-height: 420px !important;
  }

  .hero-grid {
    padding: 56px 0 18px !important;
  }

  .hero-copy {
    padding: 16px 14px !important;
    border-radius: 18px !important;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 7.4vw, 2.55rem) !important;
  }

  .hero-badges {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .hero-badges span {
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 6px 10px !important;
    font-size: 0.79rem !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .hero-badges span:nth-child(2) {
    grid-column: 1 / -1 !important;
  }

  .service-image-wrap {
    min-height: 244px !important;
  }

  .budget-grid {
    grid-template-columns: 76px 1fr;
    gap: 10px;
  }

  .budget-ring {
    width: 76px;
    height: 76px;
  }

  .cover-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cover-shield-main {
    width: 82px;
    height: 90px;
  }

  .future-board {
    min-height: 118px;
  }
}


/* v87: tighten header and hero spacing further, restore v85 service illustration markup */
.header-inner {
  min-height: 56px !important;
  gap: 12px !important;
}

.global-nav a {
  min-height: 38px !important;
  padding: 0 9px !important;
  font-size: 0.9rem !important;
}

.hero {
  min-height: 448px !important;
}

.hero-grid {
  padding: 56px 0 18px !important;
}

.hero-copy {
  max-width: 700px !important;
  padding: 18px 20px !important;
  border-radius: 20px !important;
}

.hero-copy::before {
  margin-bottom: 10px !important;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.75rem) !important;
  line-height: 1.08 !important;
}

.hero-text {
  margin-top: 10px !important;
  line-height: 1.66 !important;
}

.hero-badges {
  margin-top: 14px !important;
}

.hero-buttons {
  margin-top: 14px !important;
}

@media (max-width: 960px) {
  .header-inner {
    min-height: 54px !important;
  }

  .global-nav a {
    min-height: 36px !important;
    padding: 0 8px !important;
    font-size: 0.88rem !important;
  }

  .hero {
    min-height: 418px !important;
  }

  .hero-grid {
    padding: 52px 0 16px !important;
  }

  .hero-copy {
    padding: 16px 16px !important;
    max-width: 680px !important;
  }
}

@media (max-width: 767px) {
  .header-inner {
    min-height: 52px !important;
  }

  .hero {
    min-height: 392px !important;
  }

  .hero-grid {
    padding: 48px 0 12px !important;
  }

  .hero-copy {
    padding: 14px 12px !important;
    border-radius: 16px !important;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
  }

  .hero-text {
    margin-top: 8px !important;
    font-size: 0.96rem !important;
  }

  .hero-badges {
    margin-top: 12px !important;
  }

  .hero-buttons {
    margin-top: 12px !important;
  }
}

/* v88: tighten header and hero spacing further */
.header-inner {
  min-height: 52px !important;
  gap: 10px !important;
}

.global-nav a {
  min-height: 36px !important;
  padding: 0 8px !important;
  font-size: 0.88rem !important;
}

.hero {
  min-height: 424px !important;
}

.hero-grid {
  padding: 50px 0 14px !important;
}

.hero-copy {
  max-width: 680px !important;
  padding: 16px 18px !important;
  border-radius: 18px !important;
}

.hero-copy::before {
  margin-bottom: 8px !important;
}

.hero h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.55rem) !important;
}

.hero-text {
  margin-top: 8px !important;
  line-height: 1.62 !important;
}

.hero-badges {
  margin-top: 12px !important;
}

.hero-buttons {
  margin-top: 12px !important;
}

@media (max-width: 960px) {
  .header-inner {
    min-height: 50px !important;
  }

  .global-nav a {
    min-height: 34px !important;
    padding: 0 7px !important;
    font-size: 0.86rem !important;
  }

  .hero {
    min-height: 398px !important;
  }

  .hero-grid {
    padding: 46px 0 12px !important;
  }

  .hero-copy {
    max-width: 660px !important;
    padding: 14px 14px !important;
  }
}

@media (max-width: 767px) {
  .header-inner {
    min-height: 48px !important;
  }

  .hero {
    min-height: 368px !important;
  }

  .hero-grid {
    padding: 42px 0 10px !important;
  }

  .hero-copy {
    padding: 12px 10px !important;
    border-radius: 14px !important;
  }

  .hero h1 {
    font-size: clamp(1.72rem, 6.8vw, 2.25rem) !important;
  }

  .hero-text {
    margin-top: 7px !important;
    font-size: 0.94rem !important;
  }

  .hero-badges {
    margin-top: 10px !important;
  }

  .hero-buttons {
    margin-top: 10px !important;
  }
}


/* v89: hero badges less button-like, tighter header/hero spacing */
.site-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 56px !important;
  gap: 14px;
}

.global-nav {
  gap: 4px;
}

.global-nav a {
  min-height: 38px;
  padding: 0 10px;
}

.hero {
  min-height: 500px !important;
}

.hero-grid {
  gap: 18px !important;
  padding: 46px 0 22px !important;
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  margin-bottom: 0;
}

.hero-text {
  margin-top: 16px !important;
  max-width: 700px;
  font-size: 1.02rem;
  line-height: 1.72;
}

.hero-badges {
  margin-top: 16px !important;
  gap: 8px 9px !important;
  align-items: flex-start;
}

.hero-badges span {
  min-height: 28px !important;
  padding: 4px 10px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  box-shadow: none !important;
  font-size: 0.81rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  line-height: 1.35 !important;
  color: rgba(255,255,255,0.96) !important;
}

.hero-badges span::before,
.hero-badges span::after {
  content: none !important;
}

.hero-buttons {
  margin-top: 16px !important;
  gap: 10px !important;
}

.hero-buttons .button {
  min-height: 48px;
}

@media (max-width: 960px) {
  .header-inner {
    min-height: 54px !important;
  }

  .hero {
    min-height: 460px !important;
  }

  .hero-grid {
    padding: 40px 0 18px !important;
    gap: 16px !important;
  }

  .hero-text {
    font-size: 0.98rem;
    line-height: 1.68;
  }
}

@media (max-width: 767px) {
  .header-inner {
    min-height: 50px !important;
  }

  .menu-toggle {
    padding: 8px 12px;
  }

  .hero {
    min-height: 420px !important;
  }

  .hero-grid {
    padding: 34px 0 14px !important;
    gap: 14px !important;
  }

  .hero-text {
    margin-top: 12px !important;
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .hero-badges {
    margin-top: 12px !important;
    gap: 7px !important;
  }

  .hero-badges span {
    min-height: 0 !important;
    padding: 5px 9px !important;
    font-size: 0.74rem !important;
    border-radius: 9px !important;
    white-space: normal !important;
  }

  .hero-buttons {
    margin-top: 14px !important;
  }
}


/* v90: hero badges visibility improvement */
.hero-badges span {
  background: rgba(255,255,255,0.20) !important;
  border: 1px solid rgba(255,255,255,0.34) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.14);
}

@media (max-width: 767px) {
  .hero-badges span {
    background: rgba(255,255,255,0.22) !important;
    border: 1px solid rgba(255,255,255,0.36) !important;
    color: #ffffff !important;
  }
}

/* v91: stronger hero labels and tighter header/hero spacing */
.site-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 52px !important;
  gap: 12px !important;
}

.global-nav {
  gap: 2px !important;
}

.global-nav a {
  min-height: 34px !important;
  padding: 0 9px !important;
}

.hero {
  min-height: 460px !important;
}

.hero-grid {
  gap: 16px !important;
  padding: 36px 0 16px !important;
}

.hero-text {
  margin-top: 12px !important;
}

.hero-badges {
  margin-top: 12px !important;
  gap: 7px 8px !important;
}

.hero-badges span {
  min-height: 0 !important;
  padding: 4px 9px !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,0.88) !important;
  border: 1px solid rgba(255,255,255,0.94) !important;
  color: #1f3f74 !important;
  text-shadow: none !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.hero-buttons {
  margin-top: 14px !important;
}

.hero-buttons .button {
  min-height: 46px !important;
}

@media (max-width: 960px) {
  .header-inner {
    min-height: 48px !important;
  }

  .hero {
    min-height: 420px !important;
  }

  .hero-grid {
    padding: 30px 0 14px !important;
    gap: 14px !important;
  }

  .hero-badges span {
    padding: 4px 8px !important;
  }
}

@media (max-width: 767px) {
  .header-inner {
    min-height: 46px !important;
  }

  .global-nav a {
    min-height: 40px !important;
  }

  .hero {
    min-height: 380px !important;
  }

  .hero-grid {
    padding: 24px 0 10px !important;
    gap: 12px !important;
  }

  .hero-text {
    margin-top: 10px !important;
  }

  .hero-badges {
    margin-top: 10px !important;
    gap: 6px !important;
  }

  .hero-badges span {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    border-radius: 8px !important;
  }

  .hero-buttons {
    margin-top: 12px !important;
  }

  .hero-buttons .button {
    min-height: 44px !important;
  }
}

/* v93: ヒーローの安心ラベルを整列して見やすくする */
.hero-badges {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px !important;
  max-width: 760px;
  align-items: stretch;
}

.hero-badges span {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 0 16px !important;
  text-align: left;
  line-height: 1.35;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}

.hero-badges span + span {
  margin-left: 0 !important;
}

@media (max-width: 767px) {
  .hero-badges {
    grid-template-columns: 1fr;
    gap: 8px !important;
  }

  .hero-badges span {
    min-height: 38px;
    padding: 0 14px !important;
  }
}


/* v94: スマホでもヒーローの安心ラベルが整って見えるよう固定幅・固定余白・文字サイズを調整 */
@media (max-width: 767px) {
  .hero-badges {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-items: stretch !important;
    align-items: stretch !important;
    gap: 9px !important;
  }

  .hero-badges span {
    display: flex !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 8px 14px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    text-align: left !important;
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }
}


/* v96: ヒーロー見出しの強制改行をなくし、安心ラベルの縦幅をさらに圧縮 */
.hero h1 {
  white-space: normal !important;
  max-width: 14.5em;
}

.hero h1 br {
  display: none !important;
}

.hero-badges {
  margin-top: 8px !important;
  gap: 6px 10px !important;
}

.hero-badges span {
  min-height: 34px !important;
  padding: 5px 12px !important;
  border-radius: 10px !important;
  line-height: 1.2 !important;
}

@media (max-width: 767px) {
  .hero-badges {
    gap: 6px !important;
    margin-top: 8px !important;
  }

  .hero-badges span {
    min-height: 32px !important;
    padding: 5px 12px !important;
    font-size: 0.84rem !important;
    line-height: 1.2 !important;
    border-radius: 10px !important;
  }
}

/* v97: ヒーロー安心ラベルをプロフィール情報ボックス風に変更 */
.hero-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 10px !important;
  max-width: 680px !important;
  margin-top: 8px !important;
}

.hero-badges span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 9px 14px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%) !important;
  border: 1px solid var(--line) !important;
  color: var(--primary-dark) !important;
  box-shadow: none !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.01em !important;
  white-space: normal !important;
  text-align: left !important;
}

.hero-badges span + span {
  margin-left: 0 !important;
}

@media (max-width: 767px) {
  .hero-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    width: auto !important;
    max-width: 100% !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }

  .hero-badges span {
    width: auto !important;
    min-height: 0 !important;
    padding: 8px 12px !important;
    border-radius: 16px !important;
    font-size: 0.9rem !important;
    line-height: 1.28 !important;
  }
}


/* v101: inline diagnosis tool */
.precheck-section .container {
  display: grid;
  gap: 18px;
}

.diagnostic-shell {
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(45, 99, 183, 0.10);
  box-shadow: 0 22px 48px rgba(28, 63, 122, 0.10);
}

.diagnostic-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.diagnostic-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.diagnostic-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(45, 99, 183, 0.08);
  border: 1px solid rgba(45, 99, 183, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.diagnostic-progress-wrap {
  min-width: min(100%, 280px);
  display: grid;
  gap: 8px;
}

.diagnostic-progress-text {
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-size: 0.92rem;
}

.diagnostic-progress {
  height: 10px;
  border-radius: 999px;
  background: #e9eef8;
  overflow: hidden;
}

.diagnostic-progress span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary) 0%, #79a2ea 100%);
  transition: width 0.24s ease;
}

.diagnostic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.inline-diagnosis-form,
.diagnostic-side {
  display: grid;
  gap: 16px;
}

.diag-step {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(45, 99, 183, 0.10);
}

.diag-step-label {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.diag-step h3 {
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  line-height: 1.45;
}

.diag-options {
  display: grid;
  gap: 12px;
}

.diag-option {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(45, 99, 183, 0.14);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.diag-option strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-size: 1rem;
}

.diag-option span {
  display: block;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.diag-option:hover,
.diag-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(45, 99, 183, 0.28);
  box-shadow: 0 14px 28px rgba(28, 63, 122, 0.08);
}

.diag-option.is-selected {
  background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
  border-color: rgba(45, 99, 183, 0.36);
  box-shadow: 0 16px 30px rgba(45, 99, 183, 0.12);
}

.diag-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.diag-nav .button {
  min-width: 0;
  min-height: 46px;
  padding: 0 18px;
  box-shadow: none;
}

.diag-nav .button.ghost {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid rgba(45, 99, 183, 0.16);
}

.diag-nav .button:disabled {
  opacity: 0.45;
  cursor: default;
}

.diagnostic-side-card {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(45, 99, 183, 0.10);
}

.diagnostic-side-title,
.diag-result-title {
  margin: 0 0 12px;
  color: var(--primary-dark);
}

.diagnostic-side-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.diagnostic-side-list li + li {
  margin-top: 9px;
}

.diag-result {
  gap: 0;
}

.diag-result-copy {
  margin: 0;
  color: var(--muted);
}

.diag-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.diag-summary-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid var(--line);
}

.diag-summary-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.diag-summary-item strong {
  display: block;
  color: var(--primary-dark);
  line-height: 1.55;
}

.diag-message-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
  border: 1px solid rgba(45, 99, 183, 0.14);
}

.diag-message-label {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-weight: 800;
}

#diag-line-message {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(45, 99, 183, 0.14);
  padding: 14px;
  font: inherit;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

.diag-result-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.diag-result-actions .button {
  width: 100%;
  min-width: 0;
}

.diag-result-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .diagnostic-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .diagnostic-shell {
    padding: 18px;
    border-radius: 20px;
  }

  .diagnostic-head {
    align-items: start;
  }

  .diagnostic-progress-wrap {
    min-width: 100%;
  }

  .diagnostic-progress-text {
    text-align: left;
  }

  .diag-step {
    padding: 18px;
    border-radius: 18px;
  }

  .diag-step h3 {
    font-size: 1.04rem;
  }

  .diag-option {
    padding: 15px 14px;
  }

  .diag-summary-grid {
    grid-template-columns: 1fr;
  }

  .diag-nav {
    flex-direction: column;
  }

  .diag-nav .button {
    width: 100%;
  }
}


/* v104: stronger inline diagnosis copy button contrast and richer card text */
.diag-result-actions .button.ghost,
.diag-result-actions .button.ghost:visited {
  background: #ffffff !important;
  color: var(--primary-dark) !important;
  border: 1px solid rgba(31, 77, 147, 0.22) !important;
  box-shadow: none !important;
  font-weight: 800;
}

.diag-result-actions .button.ghost:hover,
.diag-result-actions .button.ghost:focus-visible {
  background: #f4f8ff !important;
  color: var(--primary-dark) !important;
  border-color: rgba(31, 77, 147, 0.34) !important;
}

.diag-option strong {
  font-size: 1.02rem;
  line-height: 1.45;
}

.diag-option span {
  color: #4d5f7e;
  font-size: 0.95rem;
  line-height: 1.7;
}

.diag-step h3 {
  line-height: 1.55;
}

#diag-copy {
  color: var(--primary-dark) !important;
}

@media (max-width: 767px) {
  .diag-result-actions .button.ghost {
    font-size: 0.98rem;
  }
}
