:root {
  --bs-primary: #0b5ed7;
  --bs-primary-rgb: 11, 94, 215;
  --brand-dark: #08357a;
  --cta: #d62839;
  --cta-dark: #b01e2e;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { color: #1f2937; background: #fff; }
a { color: var(--bs-primary); }
h1, h2, h3 { letter-spacing: -.01em; }

.btn-primary { --bs-btn-bg: var(--bs-primary); --bs-btn-border-color: var(--bs-primary); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); }
.text-primary { color: var(--bs-primary) !important; }

/* Red CTA buttons */
.btn-cta {
  --bs-btn-color: #fff; --bs-btn-bg: var(--cta); --bs-btn-border-color: var(--cta);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--cta-dark); --bs-btn-hover-border-color: var(--cta-dark);
  --bs-btn-active-bg: var(--cta-dark); --bs-btn-active-border-color: var(--cta-dark);
  font-weight: 600;
}

.topbar { background: var(--brand-dark); color: #fff; }
.navbar .nav-link.active { color: var(--bs-primary); font-weight: 600; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--bs-primary) 100%);
  color: #fff; padding: 3.5rem 0 4rem; position: relative; overflow: hidden;
}
.hero::after {
  content: "翻訳"; position: absolute; right: -1rem; bottom: -3rem; font-size: 14rem; line-height: 1;
  font-weight: 700; color: rgba(255,255,255,.06); pointer-events: none;
}
.hero h1 { font-weight: 800; }
.hero-highlights { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(2, 1fr); }
.hero-highlights li i { color: #7fe3a3; margin-right: .4rem; }
@media (min-width: 768px) { .hero { padding: 5rem 0 6rem; } .hero-highlights { grid-template-columns: repeat(4, auto); justify-content: start; } }
.page-hero { background: linear-gradient(135deg, var(--brand-dark), var(--bs-primary)); color: #fff; padding: 2.5rem 0; }
.page-hero .breadcrumb a { color: #cfe0ff; }
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: #cfe0ff; }

/* Cards */
.service-card { border: 1px solid #e5e9f2; transition: transform .15s, box-shadow .15s; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.25rem rgba(11,94,215,.12); }
.icon-circle { width: 52px; height: 52px; border-radius: 50%; background: rgba(11,94,215,.1); color: var(--bs-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--bs-primary); color: #fff; font-weight: 700; font-size: 1.25rem; display: inline-flex; align-items: center; justify-content: center; }

.location-highlight { background: #eef4ff; border-left: 5px solid var(--bs-primary); border-radius: .5rem; }
.cta-banner { background: linear-gradient(135deg, var(--brand-dark), var(--bs-primary)); }

.accordion-button:not(.collapsed) { color: var(--bs-primary); background: #eef4ff; }
.pricing-table th { background: var(--bs-primary); color: #fff; }

/* Footer */
.site-footer { background: #0a1f44; }
.site-footer a { color: #cfd9ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .btn-cta { color: #fff; text-decoration: none; }
.footer-cols { columns: 2; }

/* Floating buttons */
.fab-group { position: fixed; right: 16px; bottom: 16px; z-index: 1030; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 56px; height: 56px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 4px 12px rgba(0,0,0,.3); text-decoration: none; }
.fab:hover { color: #fff; filter: brightness(.92); }
.fab-messenger { background: #0084ff; }
.fab-call { background: var(--cta); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(214,40,57,.5); } 70% { box-shadow: 0 0 0 14px rgba(214,40,57,0); } 100% { box-shadow: 0 0 0 0 rgba(214,40,57,0); } }
@media (prefers-reduced-motion: reduce) { .fab-call { animation: none; } html { scroll-behavior: auto; } }

/* Leave room so the fixed buttons never hide the footer text on mobile */
@media (max-width: 575.98px) { .site-footer { padding-bottom: 5rem !important; } }
