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

:root {
  --primary: #2E578F;
  --primary-light: #3A6DB3;
  --primary-bg: #EBF0F7;
  --amber: #EDAE3D;
  --coral: #ED6B5C;
  --success: #4CAF50;
  --warning: #F57C00;
  --text: #1A1A2E;
  --text-secondary: #64748B;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08), 0 12px 40px rgba(0,0,0,0.06);
  --max-width: 1120px;
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
strong { font-weight: 600; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(46,87,143,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-bg);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
  border-radius: var(--radius);
}

.btn-block {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.logo-icon { display: inline-flex; align-items: center; line-height: 1; }
.logo-text { font-size: 20px; font-weight: 700; }

.header-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.header-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.header-nav a:hover { color: var(--primary); }

/* ===== Section Titles ===== */
.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--primary-bg) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-headline {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-cta { margin-bottom: 24px; }

.hero-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.trust-badge {
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(46,87,143,0.06);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Phone Mockup */
.phone-mockup {
  background: #1A1A2E;
  border-radius: 36px;
  padding: 12px;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  background: var(--bg-alt);
  border-radius: 28px;
  padding: 24px 16px;
  min-height: 420px;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
}
.mock-icon { display: inline-flex; align-items: center; line-height: 1; }
.mock-title { font-size: 18px; font-weight: 700; }

/* Phone Mockup Enhancements */
.phone-notch {
  width: 120px;
  height: 32px;
  background: #1A1A2E;
  border-radius: 20px;
  margin: 0 auto 4px;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mock-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-right: 12px;
}
.mock-icon-safe { background: #E8F5E9; }
.mock-icon-warning { background: #FFF3E0; }
.mock-icon-critical { background: #FFEBEE; }

.phone-home-indicator {
  width: 120px;
  height: 4px;
  background: #C0C0C0;
  border-radius: 2px;
  margin: 20px auto 0;
}

.mock-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border-left: 4px solid;
}
.mock-card-left { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mock-card-title { font-size: 15px; font-weight: 600; }
.mock-card-date { font-size: 12px; color: var(--text-secondary); }

.mock-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.mock-safe { border-color: var(--success); }
.mock-badge-safe { background: #E8F5E9; color: var(--success); }
.mock-warning { border-color: var(--warning); }
.mock-badge-warning { background: #FFF3E0; color: var(--warning); }
.mock-critical { border-color: var(--coral); }
.mock-badge-critical { background: #FFEBEE; color: var(--coral); }

/* ===== Problem ===== */
.problem {
  padding: 100px 0;
  background: var(--bg);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.problem-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.problem-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
}

.problem-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.problem-conclusion {
  text-align: center;
  margin-top: 48px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon { font-size: 28px; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Feature Detail: Notification Timeline */
.notification-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notif-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.notif-label {
  font-weight: 600;
  width: 52px;
  text-align: right;
  flex-shrink: 0;
}
.notif-text {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
}

.notif-90 .notif-label { color: #2196F3; }
.notif-90 .notif-text { background: #E3F2FD; color: #1565C0; }
.notif-30 .notif-label { color: var(--warning); }
.notif-30 .notif-text { background: #FFF3E0; color: #E65100; }
.notif-7 .notif-label { color: #F44336; }
.notif-7 .notif-text { background: #FFEBEE; color: #C62828; }
.notif-today .notif-label { color: var(--coral); }
.notif-today .notif-text { background: #FFEBEE; color: #B71C1C; font-weight: 600; }

/* Feature Detail: Sharing Demo */
.sharing-demo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.share-avatar { font-size: 24px; }
.share-name { font-weight: 600; width: 80px; }
.share-deadline { color: var(--text-secondary); font-size: 12px; }

/* Feature Detail: Location Demo */
.location-demo {
  padding: 16px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  text-align: center;
}
.location-map-placeholder {
  position: relative;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.location-pin { font-size: 28px; }
.location-radius {
  width: 60px;
  height: 60px;
  border: 2px dashed var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.location-label { font-size: 12px; color: var(--primary); font-weight: 500; }

/* ===== How It Works ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  flex: 1;
  max-width: 320px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin-top: 56px;
  flex-shrink: 0;
}

/* ===== Pricing ===== */
.pricing {
  padding: 100px 0;
  background: var(--bg-alt);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pricing-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}
.pricing-featured:hover {
  box-shadow: 0 8px 32px rgba(46,87,143,0.15);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.price-amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
}

.price-period {
  font-size: 15px;
  color: var(--text-secondary);
}

.pricing-alt {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-top: 8px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  padding-left: 28px;
  position: relative;
}

.pricing-features li.included::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.pricing-features li.excluded {
  color: var(--text-secondary);
  opacity: 0.5;
}
.pricing-features li.excluded::before {
  content: "\2014";
  position: absolute;
  left: 0;
}

.pricing-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* ===== Use Cases ===== */
.use-cases {
  padding: 80px 0;
  background: var(--bg);
}

.use-cases-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.use-case-tag {
  padding: 10px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}
.use-case-tag:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: var(--bg-alt);
}

.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
  transition: box-shadow var(--transition);
}
.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-item[open] {
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== Final CTA ===== */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #1D3A5E 100%);
  color: #fff;
  text-align: center;
}

.final-cta h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 32px;
  line-height: 1.8;
}

.final-cta .btn-primary {
  background: #fff;
  color: var(--primary);
}
.final-cta .btn-primary:hover {
  background: #F0F4F8;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.cta-sub {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 16px;
}

/* ===== Footer ===== */
.site-footer {
  padding: 48px 0;
  background: #0F172A;
  color: #94A3B8;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-brand .logo-text { color: #fff; }

.footer-tagline {
  font-size: 13px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}
.footer-links a {
  color: #94A3B8;
  font-size: 13px;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 12px;
  opacity: 0.6;
}

/* ===== Legal Pages (shared styles) ===== */
.legal-page {
  padding: 48px 0 100px;
}
.legal-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.legal-page .legal-updated {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-page h3 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-page p, .legal-page li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-page ul, .legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content {
  max-width: 720px;
}

/* ===== Support Page ===== */
.support-page {
  padding: 48px 0 100px;
}
.support-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.support-page .support-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}
.support-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 24px;
}
.support-card h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}
.support-card p, .support-card li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.support-card ul, .support-card ol {
  padding-left: 24px;
  margin-top: 8px;
}
.support-content {
  max-width: 720px;
}
.support-contact {
  background: var(--primary-bg);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  margin-top: 40px;
}
.support-contact h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.support-contact p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.support-contact a {
  color: var(--primary);
  font-weight: 600;
}

/* ===== Sticky Mobile CTA ===== */
.sticky-cta-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.sticky-cta-mobile .btn {
  padding: 16px 24px;
  font-size: 16px;
  border-radius: var(--radius);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-headline { font-size: 26px; }
  .hero-sub br { display: none; }
  .trust-badges { justify-content: center; }

  .sticky-cta-mobile { display: block; }

  /* Add bottom padding to body so sticky CTA doesn't cover footer */
  body { padding-bottom: 72px; }

  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }
  .step-connector {
    width: 2px;
    height: 32px;
    margin: 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .section-title { font-size: 22px; }
  .final-cta h2 { font-size: 24px; }

  .header-nav { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-headline { font-size: 22px; }
  .btn-lg {
    padding: 16px 28px;
    font-size: 15px;
  }
}
