/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { 
  color: #111; 
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; 
  line-height: 1.6; 
  background-color: #ffffff;
  overflow-x: hidden;
  margin: 0;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Variables based on provided styles */
:root {
  --teal: #115e59;
  --cta: #00806e;
  --red: #ef4136;
  --wave-height: 100px;
}

/* Utilities */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.pb-0 { padding-bottom: 0; }
.bg-light-blue { background-color: #f0f9ff; }
.bg-light-pink { background-color: #FBEFFD; } /* Updated color per request */
.mt-0 { margin-top: 0 !important; }
.mt-10 { margin-top: 10px; }
.mt-40 { margin-top: 40px; }
.mt-80 { margin-top: 80px; }
.mb-80 { margin-bottom: 80px; }
.relative-z { position: relative; z-index: 2; }
.cursor-zoom-in { cursor: zoom-in; }
.text-center { text-align: center; }
.text-left { text-align: left !important; }
.border-none { border: none !important; }

/* Typography */
.section-title { 
  font-size: clamp(24px, 4vw, 36px); 
  text-align: center; 
  color: #153d8c; 
  margin-bottom: 12px; 
  font-weight: 800;
}
.section-title span { color: #ef473c; }

/* Section Dividers (Lines) */
.section-divider {
  display: block;
  margin: 0 auto 24px;
  width: 100%;
  max-width: 270px;
  height: auto;
}

.section-divider-content {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
  width: 100%;
}
.section-divider-content .content-icon {
  width: 100%;
  max-width: 270px;
  height: auto;
  display: block;
}

.section-lead { 
  font-size: clamp(16px, 2vw, 18px); 
  text-align: center; 
  font-weight: 700; 
  margin-bottom: 20px;
  color: #333;
}
.benefits-section { background-color: #ffffff; }

/* Wave Dividers & Groups */
.pdca-improvement-group {
  position: relative;
}
.pdca-section {
  position: relative;
  z-index: 2; /* keep text above waves */
}
.improvement-wrapper {
  position: relative;
  /* Push it down slightly if needed to avoid pdca section overlap */
  margin-top: 10px; 
}
.easy-pricing-wrapper {
  position: relative;
  margin-top: calc(var(--wave-height) / 2);
  margin-bottom: 0; 
}

.wave-divider {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--wave-height);
  display: block;
  z-index: 1;
}
.wave-top {
  top: calc(-1 * var(--wave-height) + 2px); 
}
.wave-bottom {
  bottom: calc(-1 * var(--wave-height) + 2px); 
  transform: rotate(180deg);
}

.improvement-wrapper .wave-divider path { fill: #FBEFFD; }
.easy-pricing-wrapper .wave-divider path { fill: #f0f9ff; }


/* Layout Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2-asym { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; } 
.stack { display: flex; flex-direction: column; gap: 24px; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 99px;
  font-weight: 800;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 0.02em;
  overflow: hidden;
  white-space: nowrap; 
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  pointer-events: none;
}
.btn:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.btn:hover::before {
  transform: translateX(0);
}
.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-text {
  position: relative;
  z-index: 2;
}

.cta-arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.btn:hover .cta-arrow {
  transform: translateX(4px);
}

.btn-primary { background: #007c68; border: none; } 
.btn-orange { 
  background: linear-gradient(135deg, #ff6414, #ff420b); 
  border: none; 
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
}

.btn-secondary {
  background: #ecf2f0; 
  color: #153d8c; 
  border: 1px solid #c9d8d3; 
}
.btn-secondary:hover {
  background: #dfece7;
  color: #153d8c;
}

.btn-sm { padding: 8px 24px; font-size: 14px; }
.btn-lg { font-size: 20px; padding: 18px 48px; }
.btn-shadow { box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn-shadow:hover { box-shadow: 0 12px 24px rgba(0,0,0,0.2); }
.center-btn { display: flex; justify-content: center; margin-top: 40px; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.brand { display: flex; align-items: center; }
.header-logo { height: 32px; width: auto; }
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  width: 100%;
  overflow-x: clip; 
  background: #92d3f3 url("./assets/replacement/hero-background.png") center bottom/100% auto no-repeat;
  margin-top: 70px; 
}

.wrap {
  container-type: inline-size;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.stage {
  --u: calc(100cqw / 1440);
  position: relative;
  width: 100%;
  height: calc(var(--u) * 941);
}

.stage > * {
  position: absolute;
  margin: 0;
}

.hero__title {
  left: calc(var(--u) * 222);
  top: calc(var(--u) * 112);
  width: calc(var(--u) * 1010);
  font-size: calc(var(--u) * 72);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -.02em;
  color: #111;
}
.hero__title .red {
  color: var(--red);
  text-shadow: 
    calc(var(--u) * 3) calc(var(--u) * 3) 0 rgba(255,255,255,.85),
    calc(var(--u) * 4) calc(var(--u) * 5) calc(var(--u) * 6) rgba(0,0,0,.25);
}
.hero__title .aio {
  font-size: 1.45em;
  line-height: 1;
  letter-spacing: -.04em;
}
.hero__title .excl {
  font-size: .8em;
}

.hero__lead {
  left: calc(var(--u) * 246);
  top: calc(var(--u) * 226);
}
.hero__catch {
  margin: 0;
  font-size: calc(var(--u) * 27);
  font-weight: 700;
  line-height: 1.5;
  color: #111;
}
.hero__catch strong {
  font-size: calc(var(--u) * 35);
  font-weight: 900;
}
.hero__text {
  margin: calc(var(--u) * 10) 0 0;
  font-size: calc(var(--u) * 16);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .04em;
  color: #111;
}

.hero__band {
  left: 0;
  top: calc(var(--u) * 413);
  width: calc(var(--u) * 830);
  height: calc(var(--u) * 188);
  background: #fff;
}
.hero__band::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
}
.hero__service {
  position: absolute;
  left: calc(var(--u) * 253);
  top: calc(var(--u) * 22);
  margin: 0;
  font-size: calc(var(--u) * 37);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .12em;
}
.hero__logo {
  position: absolute;
  left: calc(var(--u) * 246);
  top: calc(var(--u) * 75);
  width: calc(var(--u) * 536);
  height: auto;
}

.hero__price {
  left: calc(var(--u) * 245);
  top: calc(var(--u) * 619);
  display: flex;
  gap: calc(var(--u) * 35);
  list-style: none;
  padding: 0;
}
.hero__price li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 140);
  height: calc(var(--u) * 68);
  border-radius: calc(var(--u) * 34);
  background: var(--teal);
  color: #ffe97a;
  font-weight: 700;
  font-size: calc(var(--u) * 19);
  line-height: 1.35;
}
.hero__price span {
  font-size: calc(var(--u) * 14);
  color: #fff;
}
.hero__price b {
  font-weight: 700;
}

/* CTA */
.hero__cta {
  left: calc(var(--u) * 246);
  top: calc(var(--u) * 708);
  width: max-content; 
  padding-left: calc(var(--u) * 40);
  padding-right: calc(var(--u) * 40);
  height: calc(var(--u) * 64);
  position: absolute;
  font-size: calc(var(--u) * 20);
  box-shadow: 0 0 0 calc(var(--u) * 3) rgba(255,255,255,.9), 0 calc(var(--u) * 6) calc(var(--u) * 14) rgba(0,0,0,.18);
}
.hero__cta:hover {
  box-shadow: 0 0 0 calc(var(--u) * 3) rgba(255,255,255,.9), 0 calc(var(--u) * 8) calc(var(--u) * 20) rgba(0,0,0,.25);
}

.ring {
  left: calc(var(--u) * 785);
  top: calc(var(--u) * 212);
  width: calc(var(--u) * 512);
  height: auto;
}


/* Rest of sections */
.note-box {
  position: relative;
  background: #fff;
  border: 2px solid #b4d4e9;
  border-radius: 12px;
  padding: 24px 32px 24px 60px;
  margin-bottom: 60px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.note-box p { color: #153d8c; font-weight: 600; font-size: 15px; }
.note-icon {
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
}
.note-bottom { margin-top: 40px; margin-bottom: 0; }

.arrow-down { display: flex; justify-content: center; margin: 30px 0; }
.arrow-down img { width: 120px; }
.statement-wrap { max-width: 900px; margin: 0 auto; }
.center-image { display: flex; justify-content: center; align-items: center; }
.center-image img { max-width: 100%; border-radius: 12px; }

.dark-panel {
  background: #153d8c;
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  margin-top: 60px;
  box-shadow: 0 10px 30px rgba(21, 61, 140, 0.2);
}
.dark-panel h3 { text-align: center; font-size: clamp(18px, 2.5vw, 24px); margin-bottom: 30px; line-height: 1.5; }
.status-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.status-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255,255,255,0.1);
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
}
.status-item img { width: 32px; height: 32px; flex-shrink: 0; }
.status-item span { color: #65e8ee; font-weight: 700; margin-right: 8px; }
.status-item em { color: #ff8fa3; font-style: normal; font-weight: 700; margin-right: 8px; }

.benefits-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1040px; 
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 20px;
}
.benefit-head {
  background: #1e3a8a;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  padding: 18px 80px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(21, 61, 140, 0.2);
  margin-bottom: 0;
  position: relative;
  z-index: 10;
}
.tree-lines {
  position: relative;
  width: 100%;
  height: 45px;
  z-index: 1;
}
.tree-lines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 15px;
  background-color: #cbd5e1;
  transform: translateX(-50%);
}
.line-horizontal {
  position: absolute;
  top: 15px;
  left: calc(16.66% + 15px);
  right: calc(16.66% + 15px);
  height: 2px;
  background-color: #cbd5e1;
}
.line-vertical {
  position: absolute;
  top: 15px;
  width: 2px;
  height: 30px;
  background-color: #cbd5e1;
}
.line-vertical.left { left: calc(16.66% + 15px); transform: translateX(-50%); }
.line-vertical.center { left: 50%; transform: translateX(-50%); }
.line-vertical.right { right: calc(16.66% + 15px); transform: translateX(50%); }

.benefits-cards {
  position: relative;
  z-index: 5;
  width: 100%;
  margin-top: 0; 
}
.benefit-card-wrapper {
  position: relative;
}
.benefit-card-wrapper > img:not(.bird-decoration) {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
  z-index: 2; 
}
.bird-decoration {
  position: absolute;
  width: 36px;
  height: auto;
  z-index: 10;
}
.bird-pink { top: -22px; left: 24px; }
.bird-blue { top: -22px; left: 20px; }
.bird-yellow { top: -22px; left: 20px; }


/* PDCA Custom Sections */
.pdca-split-container {
    display: flex;
    flex-direction: column;
}
.pdca-main-img {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  height: auto;
}
.pdca-screen-block {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.pdca-screen-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}
.pdca-screen-img:hover {
  opacity: 0.85;
}
.pdca-screen-text {
  margin-top: 16px; 
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}


/* Pricing Section Additions */
.pricing-note {
  font-size: 13px;
  color: #555;
  margin-top: 8px;
  line-height: 1.5;
}

/* Chat & Support Grids */
.chat-grid { grid-template-columns: 1fr 1.1fr; }
.pricing-grid { grid-template-columns: 1fr 1.5fr; }
.pricing-img-wrap { display: flex; justify-content: center; }
.pricing-img-wrap img { max-width: 360px; }
.easy-list { max-width: 900px; margin: 0 auto; }

/* Final CTA Section Modifications */
.final-cta {
  background: linear-gradient(135deg, #8F71FF, #82ACFF 25%, #87B3FF 50%, #95C8FF 75%, #ACEBFF, #B7FBFF);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}
.final-cta h2 { 
  font-size: clamp(24px, 4vw, 36px); 
  margin-bottom: 24px; 
  line-height: 1.5; 
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.final-cta h2 span.highlight-text-final { 
  color: #ef473c; 
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0,0,0,0.1);
}
.final-cta .section-divider-final {
  margin: 20px auto 40px;
  max-width: 270px;
  display: block;
}
.final-cta p { font-size: 18px; font-weight: 700; margin-bottom: 40px; }
.cta-note { font-size: 14px; font-weight: 400 !important; color: #101828; margin: 16px 0 32px; }

/* Re-styling the secondary service link as a button */
.service-link {
  display: inline-flex; 
  background: #ecf2f0; 
  border: none;
  padding: 18px 48px; 
  border-radius: 99px; 
  color: #153d8c;
  font-size: 20px;
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  overflow: hidden;
  position: relative;
}
.service-link::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.5);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  pointer-events: none;
}
.service-link:hover { 
  background: #dfece7; 
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.service-link:hover::before {
  transform: translateX(0);
}
.service-link .cta-arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}
.service-link:hover .cta-arrow {
  transform: translateX(4px);
}

/* Footer */
.site-footer { text-align: center; padding: 24px; background: #0a1e45; color: #8899b6; font-size: 14px; }

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

/* Responsive (General) */
@media (max-width: 900px) {
  .chat-grid, .pricing-grid { grid-template-columns: 1fr; }
  .pricing-img-wrap img { max-width: 100%; }
}

@media (max-width: 760px) {
  .hero {
    background-size: auto 100%;
    background-position: left top;
  }
}

@container (max-width: 760px) {
  .stage {
    --u: calc(100cqw / 400);
    height: auto;
    padding: calc(var(--u) * 28) calc(var(--u) * 20) calc(var(--u) * 90);
    display: flex;
    flex-direction: column;
    gap: calc(var(--u) * 18);
  }
  .stage > * { position: static; }
  .stage > .hero__band { position: relative; }
  
  .hero__title {
    width: auto;
    font-size: calc(var(--u) * 30);
    white-space: normal;
    line-height: 1.3;
  }
  .hero__catch { font-size: calc(var(--u) * 17); }
  .hero__catch strong { font-size: calc(var(--u) * 21); }
  .hero__text { font-size: calc(var(--u) * 13); }
  
  .hero__band {
    width: calc(100% + var(--u) * 20);
    margin-left: calc(var(--u) * -20);
    height: auto;
    padding: calc(var(--u) * 16) calc(var(--u) * 20);
  }
  .hero__service {
    position: static;
    font-size: calc(var(--u) * 20);
  }
  .hero__logo {
    position: static;
    width: calc(var(--u) * 300);
    margin-top: calc(var(--u) * 8);
  }
  
  .hero__price {
    gap: calc(var(--u) * 16);
  }
  .hero__price li {
    font-size: calc(var(--u) * 17);
  }
  
  .hero__cta {
    width: 100%;
    font-size: calc(var(--u) * 18);
    padding-left: 20px;
    padding-right: 20px;
  }
  .ring {
    width: min(100%, calc(var(--u) * 360));
    height: auto;
    margin: calc(var(--u) * 10) auto 0;
  }
}

@media (min-width: 769px) {
  .pdca-screens {
    margin-top: -8px !important;
  }
}

@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 30px; }
  
  .section-divider {
    max-width: 90%;
  }
  .section-divider-content {
    max-width: 90%;
  }

  .note-box { padding: 20px 20px 20px 40px; margin-left: 10px; margin-right: 10px; }
  .note-icon { left: -16px; width: 40px; }
  .dark-panel { padding: 24px; }
  .status-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  
  .tree-lines { display: none; }
  .benefit-head { margin-bottom: 20px; padding: 14px 40px; }
  .benefit-card-wrapper { margin-top: 15px; } 
  .bird-decoration { top: -20px; left: 10%; }
}
