@charset "UTF-8";

@media (max-width: 1080px) {
  .global-nav ul { gap: 16px; }
  .global-nav { gap: 18px; }
  .hero-grid { gap: 34px; }
  .hero-visual { min-height: 430px; transform: scale(.88); }
  .flow-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-height: 70px; }
  .container { width: min(calc(100% - 40px), var(--container)); }
  .menu-button { display: block; z-index: 1002; }
  .global-nav {
    position: fixed; inset: var(--header-height) 0 auto 0; max-height: calc(100dvh - var(--header-height));
    padding: 32px 24px 40px; display: block; overflow-y: auto; background: #fff;
    border-top: 1px solid var(--border); transform: translateY(-120%); opacity: 0;
    pointer-events: none; transition: .3s;
  }
  .global-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .global-nav ul { display: block; }
  .global-nav li { border-bottom: 1px solid var(--border); }
  .global-nav ul a { display: block; padding: 17px 4px; }
  .global-nav .btn { width: 100%; margin-top: 24px; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero { padding-top: 78px; }
  .hero-grid, .family-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-description br { display: none; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-points { grid-template-columns: 1fr 1fr; }
  .hero-points li:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .hero-points li:nth-child(4) { border-top: 1px solid var(--border); }

  .problem-grid, .three-cards, .reason-grid { grid-template-columns: 1fr 1fr; }
  .how-diagram { grid-template-columns: 1fr; }
  .how-arrow { transform: rotate(90deg); }
  .outcome-flow { flex-wrap: wrap; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 28px; }
  .timeline::before { display: none; }
  .family-visual { max-width: 540px; width: 100%; margin: 0 auto; }
  .cost-panel { grid-template-columns: 1fr 1fr; }
  .cost-panel > div:first-child { grid-column: 1 / -1; }
  .area-panel { grid-template-columns: 1fr; }
  .area-note { grid-column: auto; }
  .flow-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .brand-name { font-size: 19px; }
  .section { padding: 88px 0; }
  .hero { padding: 62px 0 50px; }
  .hero h1 { font-size: 39px; }
  .hero-lead { font-size: 18px; }
  .hero-description { font-size: 15px; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; min-width: 0; }
  .hero-visual { min-height: 360px; transform: none; margin-top: 18px; }
  .hero-core { width: 150px; height: 150px; }
  .hero-core strong { font-size: 25px; }
  .orbit { width: 90px; height: 90px; font-size: 12px; }
  .orbit::after { width: 52px; }
  .orbit-company::after { top: 105px; }
  .orbit-home::after { right: 88px; }
  .orbit-worker::after { bottom: 105px; }
  .orbit-family::after { left: 88px; }
  .hero-points { margin-top: 34px; }
  .hero-points li { padding: 18px 8px; }
  .hero-points strong { font-size: 17px; }
  .hero-points span { font-size: 10px; }

  .section-heading { margin-bottom: 42px; }
  .section-heading h2, .cost-panel h2, .area-panel h2, .final-cta h2 { font-size: 32px; }
  .section-heading > p:last-child { font-size: 15px; }
  .problem-grid, .three-cards, .reason-grid, .timeline, .flow-list { grid-template-columns: 1fr; }
  .problem-card, .feature-card, .reason-card { padding: 28px; }
  .feature-card { min-height: auto; }

  .comparison-head { display: none; }
  .comparison-row { grid-template-columns: 1fr; padding: 20px; }
  .comparison-row p { padding: 8px 4px; }
  .comparison-row p:first-child::before { content: "導入前"; display: block; color: var(--muted); font-size: 10px; font-weight: 800; }
  .comparison-row p:last-child::before { content: "BENES導入後"; display: block; color: var(--gold); font-size: 10px; font-weight: 800; }
  .comparison-row i { transform: rotate(90deg); font-size: 18px; }

  .family-visual { min-height: 380px; }
  .family-center { width: 110px; height: 110px; font-size: 17px; }
  .family-member { width: 76px; height: 76px; font-size: 10px; }

  .cost-panel { padding: 36px 24px; grid-template-columns: 1fr; }
  .cost-panel > div:first-child { grid-column: auto; }
  .cost-zero strong { font-size: 96px; }
  .area-panel { padding: 34px 24px; }
  .area-tags { gap: 8px; }
  .area-tags span { padding: 13px 8px; font-size: 12px; }

  .faq-item summary { padding-right: 42px; }
  .faq-item div { padding-right: 0; }
  .final-cta { padding: 88px 0; }
  .contact-grid { gap: 20px; }
  .contact-form { padding: 26px 20px; border-radius: var(--radius); }

  .sticky-cta {
    right: 0; bottom: 0; width: 100%; height: 58px; border-radius: 0;
    box-shadow: 0 -8px 25px rgba(12,79,74,.15);
  }
  .footer { padding-bottom: 94px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .pc-only { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
