/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2744;
  --navy-mid: #2a3f6a;
  --blue: #2b6cb0;
  --blue-light: #ebf4ff;
  --blue-pale: #f5f9ff;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --accent-dark: #b45309;
  --green: #16a34a;
  --green-light: #ecfdf5;
  --text: #1e293b;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-warm: #fafaf8;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --radius: 8px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); }

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER BAR ===== */
.topbar {
  background: var(--navy);
  padding: 14px 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-text {
  color: #cbd5e1;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.topbar-text strong {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.topbar-phone {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.topbar-phone strong {
  font-size: 17px;
  font-weight: 900;
}
.topbar-email {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.topbar-email strong {
  font-size: 14px;
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 56px 0 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.hero h1 {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.55;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(transparent 65%, rgba(217,119,6,0.25) 65%);
}
.hero-sub {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-badge-item {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 0.04em;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-cta-btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero-cta-btn:hover {
  transform: translateY(-2px);
}
.hero-cta-btn:active {
  transform: translateY(0);
}
.hero-cta-phone {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(22,163,74,0.35);
}
.hero-cta-phone:hover {
  box-shadow: 0 6px 24px rgba(22,163,74,0.45);
}
.hero-cta-email {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(43,108,176,0.35);
}
.hero-cta-email:hover {
  box-shadow: 0 6px 24px rgba(43,108,176,0.45);
}
.hero-cta-survey {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(217,119,6,0.35);
}
.hero-cta-survey:hover {
  box-shadow: 0 6px 24px rgba(217,119,6,0.45);
}

/* ===== SECTION COMMON ===== */
section {
  padding: 56px 0;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.section-num {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
}
.section-title {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 20px;
}
.section-title em {
  font-style: normal;
  color: var(--accent-dark);
}

/* ===== PAIN SECTION ===== */
.pain {
  background: var(--bg-warm);
  border-top: 3px solid var(--border);
  border-bottom: 3px solid var(--border);
}
.pain-lead {
  font-size: 16.5px;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 16px;
}
.pain-list {
  list-style: none;
  margin-top: 8px;
}
.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16.5px;
  line-height: 1.75;
}
.pain-item:last-child { border-bottom: none; }
.pain-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 3px;
  background: var(--accent-light);
  border: 2px solid var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
}
.pain-text strong {
  color: var(--navy);
}
.pain-note {
  margin-top: 24px;
  background: #fff;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15.5px;
  color: var(--text-mid);
  line-height: 1.8;
}
.pain-note strong {
  color: var(--navy);
}

/* ===== SOLUTION ===== */
.solution-intro {
  font-size: 17px;
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.85;
}

/* Main Feature Card (large, prominent) */
.feature-main-card {
  background: var(--blue-pale);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.feature-main-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.feature-main-card h3 {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 16px;
}
.feature-main-card > p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}
.feature-main-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Sub Feature Cards (3-column, smaller) */
.feature-sub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.feature-sub-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.feature-sub-card:hover { box-shadow: var(--shadow-md); }
.feature-sub-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.feature-sub-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.feature-sub-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===== BEFORE / AFTER ===== */
.compare {
  background: var(--blue-pale);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
}
.compare-col {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.compare-col.before {
  border-top: 4px solid #94a3b8;
}
.compare-col.after {
  border-top: 4px solid var(--green);
}
.compare-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-col.before .compare-label { color: #64748b; }
.compare-col.after .compare-label { color: var(--green); }
.compare-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-mid);
}
.compare-step .step-icon {
  flex-shrink: 0;
  font-size: 16px;
  margin-top: 2px;
}
.compare-col.before .step-icon { color: #94a3b8; }
.compare-col.after .step-icon { color: var(--green); }
.compare-highlight {
  margin-top: 16px;
  background: var(--green-light);
  border-radius: 6px;
  padding: 14px 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing-intro {
  font-size: 17px;
  color: var(--text-mid);
  margin-bottom: 28px;
}
.price-card {
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 50px;
  white-space: nowrap;
}
.price-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 8px;
  margin-top: 8px;
}
.price-amount {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
}
.price-amount span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-mid);
}
.price-sub {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 6px;
  margin-bottom: 20px;
}
.price-features {
  list-style: none;
  text-align: left;
}
.price-features li {
  padding: 9px 0;
  font-size: 15px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.price-features li:last-child { border-bottom: none; }
.price-features .check {
  color: var(--green);
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}
.price-features li strong {
  color: var(--navy);
}
.price-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.price-badge {
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
}

/* ===== FAQ ===== */
.faq {
  background: var(--bg-warm);
  border-top: 3px solid var(--border);
}
.faq-list {
  margin-top: 8px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.6;
}
.faq-q-mark {
  flex-shrink: 0;
  color: var(--blue);
  font-weight: 900;
  font-size: 18px;
}
.faq-a {
  margin-top: 10px;
  margin-left: 30px;
  font-size: 15.5px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--navy);
  padding: 56px 0;
  text-align: center;
}
.cta-section h2 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.55;
  margin-bottom: 14px;
}
.cta-section .cta-sub {
  color: #94a3b8;
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(217,119,6,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.02em;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(217,119,6,0.45);
}
.cta-btn:active { transform: translateY(0); }
.cta-note {
  color: #64748b;
  font-size: 13px;
  margin-top: 16px;
  line-height: 1.7;
}
.cta-gift {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 24px;
  text-align: center;
}
.cta-gift p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.65;
}
.cta-gift strong {
  color: var(--accent);
  font-size: 15px;
}

/* ===== CTA TWO COLUMN ===== */
.cta-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.cta-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.cta-card-label {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.cta-card-desc {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 16px;
  line-height: 1.6;
}
.cta-card .cta-btn {
  font-size: 16px;
  padding: 16px 24px;
  width: 100%;
  display: block;
}
.cta-card .cta-gift {
  margin-top: 0;
  margin-bottom: 16px;
  background: none;
  border: none;
  padding: 0;
}
.cta-card .cta-gift p {
  font-size: 13px;
}
.cta-card-note {
  font-size: 12px;
  color: #64748b;
  margin-top: 14px;
  line-height: 1.6;
}
.cta-phone-number {
  display: block;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.cta-phone-number:hover {
  color: var(--accent);
}
.cta-phone-hours {
  font-size: 14px;
  color: #94a3b8;
}
.cta-phone-note {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 12px;
  line-height: 1.5;
}
.cta-card-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cta-email-address {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.cta-email-address:hover {
  color: var(--accent);
}
.cta-email-note {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 8px;
  line-height: 1.6;
}
.cta-card-email {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===== FOOTER ===== */
footer {
  background: #0f172a;
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: #475569;
}
footer a { color: #64748b; }
.footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
}
footer p {
  line-height: 1.8;
}

/* ===== FLOATING CTA (mobile) ===== */
.float-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26,39,68,0.97);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  z-index: 100;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.15);
}
.float-cta-inner {
  display: flex;
  gap: 8px;
}
.float-cta-phone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  padding: 14px 8px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.float-cta-email {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 8px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.float-cta-survey {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 8px;
  border-radius: 8px;
  text-decoration: none;
}

/* ===== COMPARE TABLE (pricing) ===== */
.compare-table {
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.compare-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.compare-table-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}
.compare-table-cell {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.compare-table-label {
  background: #f8fafc;
  font-weight: 700;
  color: var(--navy);
  justify-content: flex-start;
  text-align: left;
}
.compare-table-label-bold {
  font-weight: 900;
  font-size: 15px;
}
.compare-table-header .compare-table-label {
  background: transparent;
}
.compare-table-header .compare-table-old {
  background: #f1f5f9;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-mid);
}
.compare-table-header .compare-table-new {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.compare-table-old {
  color: var(--text-mid);
  background: #fff;
}
.compare-table-new {
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 700;
}
.compare-table-new.highlight {
  color: var(--blue);
  font-weight: 900;
  font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  .feature-sub-grid { grid-template-columns: 1fr 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .price-amount { font-size: 48px; }
  .feature-main-card h3 { font-size: 26px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 44px; }
  .hero h1 { font-size: 24px; }
  section { padding: 44px 0; }
  .section-title { font-size: 21px; }
  .container { padding: 0 18px; }
  .cta-btn { font-size: 16px; padding: 16px 32px; }
  .hero-cta-btn { font-size: 15px; padding: 14px 20px; }
  .feature-main-card { padding: 28px 20px; }
  .feature-main-card h3 { font-size: 20px; }
}

@media (max-width: 768px) {
  .float-cta { display: block; }
  .cta-section { padding-bottom: 90px; }
  footer { padding-bottom: 90px; }
}

@media (max-width: 640px) {
  .cta-two-col {
    grid-template-columns: 1fr;
  }
  .topbar-inner {
    flex-direction: column;
    text-align: center;
  }
  .topbar-phone {
    font-size: 16px;
  }
  .topbar-phone strong {
    font-size: 19px;
  }
}

/* スマホ比較テーブル対応 */
@media (max-width: 480px) {
  .compare-table-row {
    grid-template-columns: 1fr 1fr;
    position: relative;
  }
  .compare-table-header {
    display: none;
  }
  .compare-table-row:not(.compare-table-header) {
    display: grid;
    grid-template-columns: 1fr;
  }
  .compare-table-label {
    grid-column: 1 / -1;
    padding: 10px 16px;
    font-size: 13px;
    background: #f1f5f9;
  }
  .compare-table-row:not(.compare-table-header) .compare-table-old,
  .compare-table-row:not(.compare-table-header) .compare-table-new {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
  }
  .compare-table-old::before {
    content: '従来：';
    font-size: 11px;
    color: var(--text-light);
    margin-right: 4px;
  }
  .compare-table-new::before {
    content: '浄化槽クラウド：';
    font-size: 11px;
    color: var(--blue);
    margin-right: 4px;
  }
}
