*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.8;
  color: #1e293b;
  background: #f8fafc;
  padding: 0;
}

a {
  color: #3b82f6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================
   Back navigation bar (terms/privacy)
   ============================================ */
.back-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 24px;
}

.back-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #3b82f6;
}

.back-nav a::before {
  content: "\2190";
  font-size: 18px;
}

/* ============================================
   Legal page layout (terms & privacy)
   ============================================ */
.legal-layout {
  background: #f8fafc;
  min-height: 100vh;
}

.legal-header {
  padding: 124px 138px 0;
}

.legal-header h1 {
  font-size: 36px;
  font-weight: 500;
  line-height: 40px;
  color: #1e293b;
  margin-bottom: 8px;
}

.legal-header .last-updated {
  font-size: 14px;
  line-height: 20px;
  color: #64748b;
  margin-bottom: 0;
}

.legal-content {
  margin: 32px 138px 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 48px;
}

.legal-content section {
  margin-bottom: 32px;
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  color: #1e293b;
  margin-bottom: 16px;
  border: none;
  padding: 0;
  margin-top: 0;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: #1e293b;
  margin-top: 16px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 16px;
  line-height: 26px;
  color: #64748b;
  margin-bottom: 16px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  font-size: 16px;
  line-height: 26px;
  color: #64748b;
  margin-bottom: 8px;
}

.legal-content .contact-email {
  color: #3b82f6;
}

.legal-content .legal-footer-divider {
  border-top: 1px solid #e2e8f0;
  padding-top: 32px;
  margin-top: 32px;
  text-align: center;
}

.legal-content .legal-footer-divider p {
  font-size: 14px;
  line-height: 20px;
  color: #64748b;
  margin-bottom: 0;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}

.legal-content thead tr {
  border-bottom: 2px solid #e2e8f0;
}

.legal-content tbody tr {
  border-bottom: 1px solid #e2e8f0;
}

.legal-content th,
.legal-content td {
  text-align: left;
  padding: 8px;
  color: #64748b;
}

.legal-content th {
  color: #1e293b;
  font-weight: 500;
}

/* ============================================
   Footer (shared)
   ============================================ */
.site-footer {
  background: #1e293b;
  padding: 48px 24px 0;
}

.footer-inner {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand {
  flex: 1;
  min-width: 0;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand-header img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.footer-brand-header span {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
}

.footer-brand p {
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.footer-brand .footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand .footer-email svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-col {
  min-width: 140px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col li a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-col li a:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 0 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Landing page - Hero
   ============================================ */
.hero {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 256px;
  height: 256px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.05);
  filter: blur(64px);
  top: -128px;
  right: -64px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 256px;
  height: 256px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.05);
  filter: blur(64px);
  bottom: -128px;
  left: -128px;
}

.hero-inner {
  max-width: 1264px;
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.hero-badge .badge-label {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  font-size: 14px;
  line-height: 20px;
  padding: 8px 16px;
  border-radius: 9999px;
}

.hero-heading {
  font-size: 60px;
  font-weight: 500;
  line-height: 60px;
}

.hero-heading .text-dark {
  color: #1e293b;
}

.hero-heading .text-blue {
  color: #3b82f6;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 28px;
  color: #64748b;
}

.hero-download-label {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 0 !important;
}

.hero-stores {
  display: flex;
  gap: 16px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff;
  padding: 8px 24px;
  border-radius: 10px;
  text-decoration: none;
  min-height: 48px;
}

.store-btn:hover {
  text-decoration: none;
  opacity: 0.9;
}

.store-btn .store-icon {
  width: 24px;
  height: 24px;
}

.store-btn .store-text {
  display: flex;
  flex-direction: column;
}

.store-btn .store-text small {
  font-size: 8px;
  opacity: 0.8;
  line-height: 10px;
}

.store-btn .store-text span {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.hero-features {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
}

.hero-feature-item::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-phone {
  flex-shrink: 0;
  position: relative;
}

.hero-phone-frame {
  width: 320px;
  height: 664px;
  background: #1e293b;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  position: relative;
}

.hero-phone-frame .notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 24px;
  background: #1e293b;
  border-radius: 9999px;
  z-index: 2;
}

.hero-phone-frame .screen {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #fff;
}

.hero-phone-frame .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-badge {
  position: absolute;
  top: 48px;
  right: -30px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1), 0 8px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-float-badge .emoji {
  font-size: 24px;
}

.hero-float-badge .float-text small {
  font-size: 12px;
  color: #64748b;
  display: block;
  line-height: 16px;
}

.hero-float-badge .float-text span {
  font-size: 14px;
  color: #1e293b;
  display: block;
  line-height: 20px;
}

/* ============================================
   Features section
   ============================================ */
.features {
  padding: 96px 24px;
  max-width: 1312px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 500;
  line-height: 40px;
  color: #1e293b;
  margin-bottom: 16px;
  border: none;
  padding: 0;
  margin-top: 0;
}

.section-header p {
  font-size: 18px;
  line-height: 28px;
  color: #64748b;
  max-width: 672px;
  margin: 0 auto;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.feature-item {
  display: flex;
  gap: 32px;
  align-items: center;
}

.feature-item:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  color: #fff;
  font-size: 28px;
}

.feature-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.feature-icon.green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.feature-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.feature-icon.orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-text h3 {
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
  color: #1e293b;
  margin-bottom: 16px;
  margin-top: 0;
}

.feature-text p {
  font-size: 18px;
  line-height: 29px;
  color: #64748b;
}

.feature-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  aspect-ratio: 616 / 384;
  background: #e2e8f0;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Pricing section
   ============================================ */
.pricing {
  background: #fff;
  padding: 96px 24px;
}

.pricing .section-header {
  margin-bottom: 64px;
}

.pricing-cards {
  display: flex;
  gap: 22px;
  max-width: 1264px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
}

.pricing-card {
  flex: 1;
  max-width: 400px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.pricing-card.popular {
  border-color: #3b82f6;
  transform: scale(1.05);
}

.pricing-card.coming-soon {
  border-color: #22c55e;
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 16px;
  font-size: 14px;
  color: #fff;
}

.pricing-badge.blue {
  background: #3b82f6;
}

.pricing-badge.gray {
  background: #64748b;
}

.plan-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.plan-icon.free { background: #f9fafb; }
.plan-icon.light { background: linear-gradient(135deg, #3b82f6, #60a5fa); color: #fff; }
.plan-icon.pro { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }

.pricing-card h3 {
  font-size: 24px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 8px;
  margin-top: 0;
}

.price {
  margin-bottom: 24px;
}

.price .amount {
  font-size: 36px;
  line-height: 40px;
  color: #1e293b;
}

.price .period {
  font-size: 16px;
  color: #64748b;
}

.plan-note {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  color: #1e293b;
}

.plan-features li.disabled {
  color: #94a3b8;
}

.plan-features li::before {
  content: "\2713";
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-features li.disabled::before {
  content: "\2715";
  color: #94a3b8;
}

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  margin-top: 48px;
  max-width: 1264px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FAQ section
   ============================================ */
.faq {
  padding: 96px 24px;
  max-width: 768px;
  margin: 0 auto;
}

.faq .section-header {
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: #1e293b;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  line-height: 28px;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: #64748b;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-contact {
  text-align: center;
  font-size: 16px;
  color: #64748b;
  line-height: 24px;
}

.faq-contact a {
  color: #3b82f6;
}

/* ============================================
   CTA section
   ============================================ */
.cta {
  background: linear-gradient(153deg, #3b82f6, #60a5fa);
  padding: 96px 24px;
  text-align: center;
  color: #fff;
}

.cta-inner {
  max-width: 896px;
  margin: 0 auto;
}

.cta-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 32px;
}

.cta h2 {
  font-size: 48px;
  font-weight: 500;
  line-height: 48px;
  margin-bottom: 24px;
  border: none;
  padding: 0;
  margin-top: 0;
  color: #fff;
}

.cta p {
  font-size: 20px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #3b82f6;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-btn-primary:hover {
  text-decoration: none;
  opacity: 0.95;
}

.cta-btn-primary::after {
  content: "\2192";
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.cta-btn-secondary:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
}

.cta-stores {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.cta-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 16px 48px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
}

.cta-store-btn:hover {
  text-decoration: none;
  background: rgba(0, 0, 0, 0.3);
}

.cta-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0 !important;
}

/* ============================================
   LP index page (old - hidden)
   ============================================ */
.index-hero {
  text-align: center;
  padding: 80px 24px 40px;
}

.index-hero h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.index-hero p {
  color: #666;
  margin-bottom: 32px;
}

.index-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.index-links a {
  display: block;
  padding: 20px 32px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-weight: 600;
  transition: box-shadow 0.15s;
}

.index-links a:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

/* ============================================
   SP (Mobile) responsive  <= 768px
   ============================================ */
@media (max-width: 768px) {
  /* Legal pages */
  .back-nav {
    padding: 16px 24px;
  }

  .legal-header {
    padding: 64px 24px 0;
  }

  .legal-header h1 {
    font-size: 30px;
    line-height: 36px;
  }

  .legal-content {
    margin: 32px 24px 0;
    padding: 32px;
  }

  .legal-content h2 {
    font-size: 24px;
    line-height: 32px;
  }

  /* Hero */
  .hero-inner {
    flex-direction: column;
    padding: 64px 24px;
    text-align: center;
  }

  .hero-badge {
    justify-content: center;
  }

  .hero-heading {
    font-size: 36px;
    line-height: 40px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-download-label {
    text-align: center;
  }

  .hero-stores {
    flex-direction: column;
    align-items: center;
  }

  .hero-features {
    justify-content: center;
  }

  .hero-phone {
    order: 2;
  }

  .hero-phone-frame {
    width: 280px;
    height: 584px;
  }

  .hero-float-badge {
    right: -10px;
    top: 48px;
  }

  /* Features */
  .features {
    padding: 64px 24px;
  }

  .section-header h2 {
    font-size: 30px;
    line-height: 36px;
  }

  .section-header p {
    font-size: 18px;
  }

  .feature-list {
    gap: 48px;
  }

  .feature-item,
  .feature-item:nth-child(even) {
    flex-direction: column;
  }

  .feature-text h3 {
    font-size: 24px;
    line-height: 32px;
  }

  .feature-image {
    width: 100%;
    aspect-ratio: 328 / 320;
  }

  /* Pricing */
  .pricing {
    padding: 64px 24px;
  }

  .pricing-cards {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-card {
    max-width: 100%;
  }

  .pricing-card.popular {
    transform: none;
  }

  /* FAQ */
  .faq {
    padding: 64px 24px;
  }

  .faq .section-header h2 {
    font-size: 30px;
  }

  .faq-question {
    font-size: 18px;
    padding: 24px;
  }

  /* CTA */
  .cta {
    padding: 64px 24px;
  }

  .cta h2 {
    font-size: 30px;
    line-height: 36px;
  }

  .cta p {
    font-size: 18px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn-primary,
  .cta-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .cta-stores {
    flex-direction: column;
    align-items: center;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-col {
    min-width: 0;
  }
}
