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

:root {
  --color-primary: #667eea;
  --color-primary-dark: #5a6fd6;
  --color-primary-light: #8b9cf0;
  --color-primary-bg: #f0f2ff;
  --color-accent: #764ba2;
  --color-success: #48bb78;
  --color-warning: #ed8936;
  --color-text: #1a202c;
  --color-text-secondary: #4a5568;
  --color-text-muted: #718096;
  --color-border: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-light: #f7fafc;
  --color-bg-dark: #1a202c;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #f0f2ff 0%, #e8ecff 50%, #f5f0ff 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========================================
   Utilities
   ======================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 56px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

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

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--white {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  font-weight: 700;
}

.btn--white:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.header__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 800;
}

.header__logo-text {
  color: var(--color-text);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.header__nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.header__nav-link:hover {
  color: var(--color-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(102, 126, 234, 0.1);
  color: var(--color-primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__title-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.hero__note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.hero__visual {
  position: relative;
}

.hero__image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* ========================================
   Problems
   ======================================== */
.problems {
  padding: 100px 0 60px;
  background: var(--color-bg);
}

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

.problems__card {
  padding: 32px 24px;
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.problems__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problems__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 137, 54, 0.1);
  color: var(--color-warning);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.problems__icon svg {
  width: 24px;
  height: 24px;
}

.problems__card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.problems__card-text {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ========================================
   Solution (bridge)
   ======================================== */
.solution {
  padding: 48px 0;
  background: var(--color-bg);
}

.solution__inner {
  text-align: center;
}

.solution__arrow {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  animation: bounceDown 2s infinite;
}

.solution__arrow svg {
  width: 32px;
  height: 32px;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.solution__title {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.solution__title-sub {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  -webkit-text-fill-color: var(--color-text-secondary);
  margin-bottom: 4px;
}

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

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

.features__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.features__card--reverse {
  direction: rtl;
}

.features__card--reverse > * {
  direction: ltr;
}

.features__card-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.features__card-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 8px;
}

.features__card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.features__card-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
}

.features__card-badge {
  display: inline-block;
  padding: 3px 12px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.features__card--pro .features__card-image img {
  border: 2px solid rgba(102, 126, 234, 0.2);
}

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

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing__card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px 36px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing__card--featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.pricing__card--featured:hover {
  box-shadow: var(--shadow-xl);
}

.pricing__card-ribbon {
  position: absolute;
  top: -1px;
  right: 32px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 16px 8px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.pricing__card-header {
  margin-bottom: 24px;
}

.pricing__card-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pricing__card-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.pricing__card-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.pricing__card-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}

.pricing__card-amount {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-text);
}

.pricing__card--featured .pricing__card-amount {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing__card-period {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-left: 4px;
}

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

.pricing__card-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

.pricing__card-feature svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-success);
}

.pricing__card-feature--disabled {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.pricing__card-feature--disabled svg {
  color: var(--color-text-muted);
}

.pricing__card-feature--highlight {
  color: var(--color-primary);
  font-weight: 600;
}

.pricing__card-feature--highlight svg {
  color: var(--color-primary);
}

.pricing__note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 32px;
}

/* ========================================
   Flow
   ======================================== */
.flow {
  padding: 100px 0;
  background: var(--color-bg-light);
}

.flow__steps {
  max-width: 640px;
  margin: 0 auto;
}

.flow__step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.flow__step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
}

.flow__step-body {
  padding-top: 4px;
}

.flow__step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.flow__step-text {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.flow__step-connector {
  width: 2px;
  height: 36px;
  background: var(--color-border);
  margin-left: 23px;
}

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

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

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.3s;
}

details[open] .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 0 20px;
}

.faq__answer p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ========================================
   CTA
   ======================================== */
.cta {
  padding: 100px 0;
  background: var(--gradient-primary);
}

.cta__inner {
  text-align: center;
}

.cta__title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.cta__description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 36px;
}

.cta__actions {
  margin-bottom: 16px;
}

.cta__note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 60px 0 32px;
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__brand .header__logo-text {
  color: #fff;
}

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__links {
  display: flex;
  gap: 64px;
}

.footer__links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer__links-group a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer__links-group a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ========================================
   Legal Pages
   ======================================== */
.header--static {
  position: relative;
}

.legal-page {
  padding: 80px 0 100px;
  min-height: calc(100vh - var(--header-height) - 200px);
}

.legal-page__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-page__updated {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 48px;
}

.legal-page__content {
  max-width: 800px;
  line-height: 1.9;
}

.legal-page__content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-bg);
}

.legal-page__content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-page__content p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
}

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

.legal-page__content li {
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.legal-page__content li ul,
.legal-page__content li ol {
  margin-top: 8px;
  margin-bottom: 0;
}

.legal-page__content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__content a:hover {
  color: var(--color-primary-dark);
}

.legal-page__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.legal-page__table th,
.legal-page__table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  color: var(--color-text-secondary);
}

.legal-page__table th {
  width: 220px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-light);
  white-space: nowrap;
}

.legal-page__table td a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__table td a:hover {
  color: var(--color-primary-dark);
}

.legal-page__contact {
  background: var(--color-bg-light);
  padding: 24px;
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.legal-page__contact p {
  margin-bottom: 4px;
}

.legal-page__footer-note {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.legal-page__footer-note p {
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .hero__content {
    text-align: center;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__note {
    text-align: center;
  }

  .problems__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features__card,
  .features__card--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    direction: ltr;
  }

  .features__card-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .features__card-body {
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .header__nav,
  .header__actions {
    display: none;
  }

  .header__hamburger {
    display: flex;
    margin-left: auto;
  }

  /* Mobile nav open */
  .header.nav-open .header__nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--color-border);
  }

  .header.nav-open .header__actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(var(--header-height) + 180px);
    left: 0;
    right: 0;
    background: #fff;
    padding: 0 24px 24px;
    gap: 10px;
    box-shadow: var(--shadow-md);
  }

  .header.nav-open .header__hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header.nav-open .header__hamburger span:nth-child(2) {
    opacity: 0;
  }

  .header.nav-open .header__hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 48px;
  }

  .hero__title {
    font-size: 2rem;
  }

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

  .section-title {
    font-size: 1.6rem;
  }

  .problems {
    padding: 64px 0 40px;
  }

  .problems__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .flow__step {
    gap: 16px;
  }

  .footer__links {
    flex-direction: column;
    gap: 32px;
  }

  .cta__title {
    font-size: 1.5rem;
  }

  .cta__description br {
    display: none;
  }

  .legal-page {
    padding: 48px 0 64px;
  }

  .legal-page__title {
    font-size: 1.5rem;
  }

  .legal-page__table th {
    width: 140px;
    font-size: 0.85rem;
  }

  .legal-page__table th,
  .legal-page__table td {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 1.65rem;
  }

  .hero__description {
    font-size: 0.95rem;
  }

  .pricing__card {
    padding: 32px 24px 28px;
  }

  .pricing__card-amount {
    font-size: 2.2rem;
  }

  .features__card-title {
    font-size: 1.2rem;
  }
}

/* ========================================
   Scroll Animations
   ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
