/* ========================================
   ROOT VARIABLES
======================================== */
:root {
  --primary: #1A5FBF;
  --primary-light: #2D7DD2;
  --primary-dark: #134A99;
  --accent: #F97316;
  --accent-light: #FB923C;
  --accent-dark: #EA6A0A;
  --yellow: #FACC15;
  --yellow-light: #FDE68A;
  --navy: #0F2A5E;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  overflow-x: hidden;
}

/* ========================================
   SECTION LABELS & TITLES
======================================== */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 900;
  color: #1e293b;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.75rem;
}

/* ========================================
   BUTTONS
======================================== */
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(249, 115, 22, .4);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, .5);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(26, 95, 191, .3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 95, 191, .4);
}

/* ========================================
   HEADER
======================================== */
#site-header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.3s ease;
}

#hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
#hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-bg {
  background: linear-gradient(135deg, #0F2A5E 0%, #1A5FBF 50%, #2D7DD2 100%);
}

.hero-gradient {
  background: radial-gradient(ellipse at 30% 50%, rgba(26, 95, 191, .3) 0%, transparent 70%);
}

.hero-pattern {
  background-image: radial-gradient(circle, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Hero Person Image */
.hero-person-wrapper {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 82%;
  z-index: 15;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-person-wrapper.hero-person-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-person-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
}

/* Hero Badges */
.hero-badge {
  position: absolute;
  background: #fff;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: auto;
  z-index: 20;
  opacity: 0;
  transform: scale(0.5) translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-badge.hero-badge-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.hero-badge-apply {
  left: 5%;
  top: 15%;
}

.hero-badge-accept {
  right: 10%;
  bottom: 30%;
}

/* ========================================
   PROBLEM CARDS
======================================== */
.problem-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.problem-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* ========================================
   SERVICE OVERVIEW CARD
======================================== */
.service-overview-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  border: 1px solid #e2e8f0;
}

@media (min-width: 640px) {
  .service-overview-card {
    padding: 2.5rem;
  }
}

/* Coverage items */
.coverage-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  transition: transform 0.2s ease;
}

.coverage-item:hover {
  transform: translateY(-2px);
}

.coverage-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========================================
   STRENGTHS SECTION
======================================== */
.strengths-bg {
  background: linear-gradient(135deg, #0F2A5E 0%, #1A3A7A 50%, #1A5FBF 100%);
}

.strength-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}

.strength-card-featured {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 24px rgba(249, 115, 22, .15);
}

.featured-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-bottom-left-radius: 0.75rem;
}

.strength-number {
  font-size: 3rem;
  font-weight: 900;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.strength-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.strength-list {
  list-style: none;
  padding: 0;
  margin: 0;
  space-y: 0.5rem;
}

.strength-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #475569;
  padding: 0.25rem 0;
}

/* VS Banner */
.vs-banner {
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 1.5rem;
  padding: 2rem;
}

.vs-divider {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
}

/* ========================================
   PRICING CARD
======================================== */
.pricing-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  border: 1px solid #e2e8f0;
  position: relative;
}

.pricing-card-popular {
  border: 2px solid var(--primary);
  box-shadow: 0 8px 32px rgba(26, 95, 191, .15);
}

.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1.5rem;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  z-index: 5;
}

.pricing-card-header {
  padding: 2rem 1.5rem;
  text-align: center;
}

.pricing-card-body {
  padding: 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #334155;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ========================================
   FLOW SECTION
======================================== */
.flow-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.flow-step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  position: relative;
}

.flow-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.flow-connector {
  display: none;
}

@media (min-width: 768px) {
  .flow-connector {
    display: block;
    position: absolute;
    top: 32px;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: #cbd5e1;
  }

  .flow-connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #cbd5e1;
    border-right: 2px solid #cbd5e1;
    transform: rotate(45deg);
  }
}

.flow-step-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.flow-step-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.flow-step-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.flow-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: #eff6ff;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
}

/* ========================================
   CTA BANNER
======================================== */
.cta-banner-bg {
  background: linear-gradient(135deg, #0F2A5E 0%, #1A5FBF 40%, var(--accent) 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ========================================
   CONTACT FORM
======================================== */
.form-group {
  margin-bottom: 0.25rem;
}

input.field-error,
textarea.field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .1) !important;
}

.form-message {
  animation: fadeInUp 0.3s ease;
}

/* ========================================
   FOOTER
======================================== */
footer {
  background: var(--navy);
}

/* ========================================
   BACK TO TOP
======================================== */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
  transform: translateY(-3px);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .hero-person-wrapper {
    height: 60%;
    right: -20px;
  }

  .hero-badge-apply {
    left: -5%;
    top: 10%;
  }

  .hero-badge-accept {
    right: 5%;
    bottom: 25%;
  }
}

@media (max-width: 768px) {
  .hero-person-wrapper {
    position: relative;
    height: 320px;
    right: auto;
    bottom: auto;
    justify-content: center;
    margin-top: 2rem;
  }

  .hero-badge-apply {
    left: 0;
    top: 0;
  }

  .hero-badge-accept {
    right: 0;
    bottom: 10%;
  }

  .flow-container {
    flex-direction: column;
    align-items: center;
  }

  .flow-step {
    max-width: 100%;
  }

  .flow-connector {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }

  .hero-person-wrapper {
    height: 260px;
  }
}

/* ========================================
   PRINT
======================================== */
@media print {
  header, #back-to-top, .btn-accent, .btn-primary {
    display: none !important;
  }
}
