/* ============================================================
   tradeanderror.com — shared stylesheet for content pages
   Design tokens mirrored from the LP (index.html) so every sub-page
   stays visually consistent.
   ============================================================ */

:root {
  --green: #00b368;
  --green-700: #009857;
  --green-050: #e6f7ef;
  --ink: #0f1419;
  --ink-70: #2a3138;
  --mute: #64748b;
  --mute-2: #94a3b8;
  --line: #e6e8ea;
  --line-2: #eef0ed;
  --cream: #f8f8f6;
  --white: #ffffff;
  --red: #e5484d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--cream); color: var(--ink);
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--green-700); }

/* Accessible focus ring (replaces ad-hoc outline:none) */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
.nav-cta:focus-visible, .btn-primary:focus-visible { outline-color: #fff; outline-offset: 3px; }

/* ========== TOP NAV (full LP-matching mega-menu) ========== */
.nav {
  position: sticky; top: 0; z-index: 90;
  max-width: 1320px; margin: 0 auto; padding: 16px 40px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 48px;
  font-size: 14px;
}
.nav::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0 calc(50% - 50vw);
  background: color-mix(in oklab, var(--cream) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav.is-stuck::before {
  background: color-mix(in oklab, var(--cream) 94%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 14px -12px rgba(15,20,25,.18);
}

.nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -.01em; font-size: 17px; color: var(--ink);
  text-decoration: none;
}
.nav .brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(180deg, #141a22, #0a0e13);
  border: 1px solid rgba(107, 230, 168, 0.30);
  box-shadow:
    0 0 0 1px rgba(0, 179, 104, 0.10),
    0 0 16px rgba(0, 179, 104, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.nav .brand-mark::before {
  content: "T";
  font-family: 'Syne', 'Noto Sans JP', sans-serif;
  font-weight: 700; font-size: 17px; line-height: 1;
  color: #6be6a8; letter-spacing: -.02em;
}
.nav .brand-name em { font-style: normal; color: var(--mute); font-weight: 500; }

.nav-links {
  display: flex; gap: 4px; color: var(--ink-70); font-weight: 500;
  justify-self: start; margin-left: 8px;
}
.nav-links > .nl-item { position: relative; }
.nav-links a.nl {
  color: inherit; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  transition: background .12s ease, color .12s ease;
}
.nav-links a.nl:hover { background: rgba(15,20,25,.05); color: var(--ink); }
.nav-links a.nl svg { opacity: .5; transition: transform .15s ease; }
.nl-item:hover a.nl svg { transform: rotate(180deg); opacity: .8; }
.nl-item:hover a.nl { background: rgba(15,20,25,.05); color: var(--ink); }

.nl-menu {
  position: absolute; top: calc(100% + 8px); left: -8px;
  min-width: 320px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 48px -18px rgba(15,20,25,.2), 0 2px 6px rgba(15,20,25,.04);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s;
  z-index: 50;
}
.nl-menu.wide {
  min-width: 540px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.nl-item:hover .nl-menu,
.nl-item:focus-within .nl-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nl-menu a {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--ink);
  transition: background .1s ease;
}
.nl-menu a:hover { background: var(--cream); }
.nl-menu .mi-ic {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  background: var(--green-050); color: var(--green-700);
  display: grid; place-items: center;
}
.nl-menu .mi-t { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.nl-menu .mi-d { font-size: 11.5px; color: var(--mute); margin-top: 2px; line-height: 1.45; }

.nav-right {
  display: flex; align-items: center; gap: 8px; justify-self: end;
}
.nav-right a, .nav-right button {
  color: var(--ink-70); text-decoration: none; font-weight: 500; font-family: inherit;
}
.nav-ic {
  background: transparent; border: 0; padding: 8px; border-radius: 8px;
  cursor: pointer; color: var(--ink-70);
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-ic:hover { background: rgba(15,20,25,.05); }
.lang-btn, .nav-lang-btn {
  background: transparent; border: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px;
  cursor: pointer; font-size: 13px;
  color: var(--ink-70);
  font-family: inherit;
  font-weight: 500;
  white-space: nowrap;
}
.lang-btn:hover, .nav-lang-btn:hover { background: rgba(15,20,25,.05); color: var(--ink); }
.nav-divider { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.login-link {
  padding: 8px 12px; border-radius: 8px;
  transition: background .12s ease, color .12s ease;
}
.login-link:hover { background: rgba(15,20,25,.05); color: var(--ink); }
.nav-cta {
  background: var(--ink) !important; color: #fff !important;
  padding: 10px 16px 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s ease, transform .1s ease;
}
.nav-cta:hover { background: #1a2128 !important; color: #fff !important; }
.nav-cta:active { transform: translateY(1px); }
.nav-cta span { display: inline-block; }

.nav-mobile-cta { display: none; }
.nav-hamburger {
  display: none; background: transparent; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 10px; border-radius: 8px;
  flex-direction: column; justify-content: space-between; align-items: stretch;
}
.nav-hamburger span {
  display: block; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav.is-open .nav-hamburger span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav-hamburger span:nth-child(2){ opacity: 0; }
.nav.is-open .nav-hamburger span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav {
    grid-template-columns: auto 1fr auto; gap: 12px; padding: 14px 20px;
  }
  .nav-hamburger { display: flex; order: 3; justify-self: end; }
  .nav-right { display: none; }
  .nav-links {
    display: none;
    position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
    background: var(--cream);
    padding: 24px 20px 40px; overflow-y: auto;
    flex-direction: column; gap: 4px;
    border-top: 1px solid var(--line);
  }
  .nav.is-open .nav-links { display: flex; z-index: 80; }
  .nav-links > .nl-item { position: static; }
  .nav-links a.nl {
    width: 100%; padding: 14px 16px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px;
    font-size: 15px; font-weight: 600; justify-content: space-between;
  }
  .nav-links .nl-menu {
    position: static; display: flex; flex-direction: column;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    box-shadow: none; border: 0; padding: 8px 8px 0;
    background: transparent; grid-template-columns: 1fr; gap: 2px;
    margin: 0; width: 100%;
  }
  .nav-links .nl-menu.wide { grid-template-columns: 1fr; }
  .nav-links .nl-menu a {
    padding: 12px; border-radius: 8px; background: transparent;
  }
  .nav-links .nl-menu a:hover { background: rgba(15,20,25,.04); }
  .nav-links::after {
    content: ""; display: block; height: 1px; background: var(--line); margin: 20px 0 16px;
  }
  .nav-mobile-cta {
    display: flex; flex-direction: column; gap: 10px; padding: 0 8px; margin-top: 8px;
  }
  .nav-mobile-cta .login-link {
    padding: 14px 16px; text-align: center; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; font-weight: 600;
  }
  .nav-mobile-cta .nav-cta {
    padding: 14px 16px; justify-content: center; font-size: 15px;
  }
}


/* ========== PAGE LAYOUT ========== */
.page-main {
  max-width: 1040px; margin: 0 auto; padding: 56px 40px 96px;
}
.page-main.wide { max-width: 1320px; }
.page-main.narrow { max-width: 760px; }

.page-hero {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; margin-bottom: 20px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; font-size: 12px; color: var(--ink-70); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  font-family: 'Syne', sans-serif;
}
.page-hero .eyebrow .chip {
  background: var(--green-050); color: var(--green-700);
  padding: 3px 9px; border-radius: 999px; font-size: 11px;
  font-family: 'Syne', sans-serif; font-weight: 700;
}
.page-hero h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800; font-size: 60px; line-height: 1.18;
  letter-spacing: -.03em; color: var(--ink);
  margin-bottom: 20px;
}
.page-hero h1 .g { color: var(--green); }
.page-hero .lead {
  font-size: 20px; line-height: 1.8; color: var(--ink-70);
  max-width: 720px;
}

/* content blocks */
.page-content section {
  margin-bottom: 48px;
}
.page-content h2 {
  font-weight: 800; font-size: 32px; line-height: 1.3;
  letter-spacing: -.02em; margin: 56px 0 16px; color: var(--ink);
}
.page-content > h2:first-child,
.page-content section > h2:first-child { margin-top: 0; }
.page-content h3 {
  font-weight: 700; font-size: 20px; line-height: 1.4;
  margin: 28px 0 10px; color: var(--ink);
}
.page-content p { font-size: 16px; color: var(--ink-70); margin-bottom: 14px; line-height: 1.8; }
.page-content strong { color: var(--ink); font-weight: 700; }
.page-content ul, .page-content ol {
  padding-left: 24px; margin: 0 0 20px;
}
.page-content li { font-size: 16px; color: var(--ink-70); margin-bottom: 8px; line-height: 1.8; }

.page-content a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.page-content a:hover { color: var(--green); }

/* info cards / tables */
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 32px; margin-bottom: 20px;
}
.info-card h3:first-child { margin-top: 0; }

.kv-table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); margin-bottom: 24px;
}
.kv-table th, .kv-table td {
  padding: 14px 20px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-2);
}
.kv-table tr:last-child th, .kv-table tr:last-child td { border-bottom: 0; }
.kv-table th {
  width: 220px; color: var(--mute); font-weight: 600;
  background: var(--cream); font-size: 13px;
  letter-spacing: .04em;
}
.kv-table td { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
  cursor: pointer; border: 0; text-decoration: none;
}
.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(0,179,104,.55);
}
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

/* Pricing grid */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 28px;
}
.pricing-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 26px;
  display: flex; flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--green); border-width: 2px;
  box-shadow: 0 20px 48px -24px rgba(0,179,104,.28);
  position: relative;
}
.pricing-card.featured::before {
  content: "おすすめ";
  position: absolute; top: -12px; left: 24px;
  background: var(--green); color: #fff;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  font-family: 'Syne', sans-serif;
}
.pricing-card .plan-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 14px; color: var(--mute);
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 10px;
}
.pricing-card .plan-price {
  font-family: 'Syne', sans-serif;
  font-size: 44px; font-weight: 700; letter-spacing: -.03em;
  color: var(--ink); margin-bottom: 4px;
}
.pricing-card .plan-price .unit { font-size: 16px; color: var(--mute); font-weight: 500; }
.pricing-card .plan-desc { color: var(--mute); font-size: 14px; margin-bottom: 20px; }
.pricing-card ul { padding: 0; margin: 0 0 20px; list-style: none; }
.pricing-card ul li {
  padding: 8px 0; border-bottom: 1px solid var(--line-2);
  font-size: 14px; color: var(--ink-70); display: flex; gap: 8px;
}
.pricing-card ul li::before { content: "✓"; color: var(--green); font-weight: 800; }
.pricing-card ul li:last-child { border-bottom: 0; }
.pricing-card .btn { justify-content: center; margin-top: auto; }

/* Two-column plan cards (pricing.html) */
.pricing-two-col {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin: 32px 0 8px;
}
.plan-card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 36px 32px 32px;
  display: flex; flex-direction: column;
}
.plan-card.plan-featured {
  border-color: var(--green); border-width: 2px;
  box-shadow: 0 24px 56px -28px rgba(0,179,104,.32);
}
.plan-card .plan-badge {
  position: absolute; top: -14px; left: 28px;
  background: var(--green); color: #fff;
  padding: 5px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  font-family: 'Syne', sans-serif; text-transform: uppercase;
}
.plan-card .plan-name {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px;
  color: var(--mute); letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 14px;
}
.plan-card .plan-price {
  font-family: 'Syne', sans-serif;
  letter-spacing: -.03em; color: var(--ink); margin-bottom: 6px;
  display: flex; align-items: baseline; gap: 8px;
}
.plan-card .plan-price .num { font-size: 48px; font-weight: 800; }
.plan-card .plan-price .per { font-size: 15px; color: var(--mute); font-weight: 500; }
.plan-card .plan-sub { color: var(--mute); font-size: 14px; margin-bottom: 24px; }
.plan-card .plan-list { padding: 0; margin: 0 0 28px; list-style: none; }
.plan-card .plan-list li {
  padding: 10px 0; border-bottom: 1px solid var(--line-2);
  font-size: 15px; color: var(--ink-70);
  display: flex; gap: 10px; align-items: flex-start;
}
.plan-card .plan-list li::before {
  content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0;
}
.plan-card .plan-list li:last-child { border-bottom: 0; }
.plan-card .plan-cta { justify-content: center; margin-top: auto; }

/* Feature grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
  margin: 28px 0 24px;
}
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; transition: border-color .15s ease, box-shadow .15s ease;
}
.feature-card:hover { border-color: var(--ink); box-shadow: 0 10px 24px -14px rgba(15,20,25,.18); }
.feature-card .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--green-050); color: var(--green-700);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature-card h3 { font-size: 17px; margin: 0 0 6px; }
.feature-card p { font-size: 14px; line-height: 1.7; margin-bottom: 0; }

/* Empty / coming soon */
.coming-soon {
  text-align: center; padding: 80px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  margin-top: 32px;
}
.coming-soon .badge {
  display: inline-block;
  background: var(--green-050); color: var(--green-700);
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  font-family: 'Syne', sans-serif;
  margin-bottom: 18px;
}
.coming-soon h2 { font-size: 28px; margin-bottom: 12px; }
.coming-soon p { color: var(--ink-70); max-width: 480px; margin: 0 auto 24px; }
.coming-soon .btn { margin: 0 4px; }

/* Contact form */
.contact-form {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px;
}
.contact-form label {
  font-size: 13px; font-weight: 600; color: var(--ink-70);
}
.contact-form input, .contact-form textarea, .contact-form select {
  font-family: inherit; font-size: 15px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); color: var(--ink);
  transition: border-color .12s ease, background .12s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--green); background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 140px; }

/* Sitemap layout */
.sitemap-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px;
  margin-top: 28px;
}
.sitemap-cols h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 12px;
}
.sitemap-cols ul { list-style: none; padding: 0; }
.sitemap-cols li { margin-bottom: 8px; }
.sitemap-cols a { color: var(--ink-70); font-size: 14px; }
.sitemap-cols a:hover { color: var(--ink); }

/* Roadmap */
.roadmap-col { border-left: 2px solid var(--line); padding-left: 20px; margin-top: 28px; }
.roadmap-item { position: relative; padding: 0 0 28px; }
.roadmap-item::before {
  content: ""; position: absolute; left: -26px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px var(--green-050);
}
.roadmap-item.done::before { background: var(--mute-2); box-shadow: 0 0 0 4px var(--line-2); }
.roadmap-item.next::before { background: #fff; border: 2px solid var(--green); }
.roadmap-item .tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  font-family: 'Syne', sans-serif;
  background: var(--green-050); color: var(--green-700);
  margin-bottom: 6px;
}
.roadmap-item.done .tag { background: var(--line-2); color: var(--mute); }
.roadmap-item h3 { font-size: 18px; margin: 0 0 4px; }

/* Changelog */
.changelog-entry { padding: 20px 0; border-bottom: 1px solid var(--line); }
.changelog-entry:last-child { border-bottom: 0; }
.changelog-entry .meta {
  display: flex; gap: 12px; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--mute); margin-bottom: 8px;
}
.changelog-entry h3 { font-size: 18px; margin-bottom: 6px; }

/* ========== SITE FOOTER (full LP match) ========== */
.site-footer {
  position: relative; isolation: isolate;
  background: #0a0e13; color: #aeb6bd;
  padding: 80px 0 32px;
  margin-top: 80px;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(0,179,104,.08), transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 100%, rgba(0,179,104,.05), transparent 70%);
}
.footer-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 40px;
}
.footer-top {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 48px;
}
.footer-brand-block .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand-block .brand-tile {
  width: 42px; height: 42px; border-radius: 10px;
  background: #141a22; border: 1px solid rgba(107,230,168,.25);
  box-shadow: 0 0 24px rgba(0,179,104,.25);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.footer-brand-block .brand-name {
  color: #fff; font-weight: 700; font-size: 20px; letter-spacing: -.02em;
}
.footer-brand-block .brand-name .amp { color: var(--green); margin: 0 .04em; }
.footer-mission {
  font-size: 14px; line-height: 1.85; color: #8b949c; max-width: 400px;
  margin-bottom: 20px;
}
.footer-mission b { color: #fff; font-weight: 600; }
.footer-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: rgba(0,179,104,.12);
  color: #7fedb0; border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  transition: background .15s ease;
}
.footer-status:hover { background: rgba(0,179,104,.18); color: #7fedb0; }
.footer-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #33d495; box-shadow: 0 0 0 3px rgba(51,212,149,.25);
  animation: blip 1.8s infinite;
}
@keyframes blip { 0%,40%,100% { opacity: 1; } 70% { opacity: .35; } }

.footer-news h4 {
  color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  font-family: 'Syne', sans-serif; margin-bottom: 10px;
}
.footer-news-title {
  color: #fff; font-size: 19px; font-weight: 700; line-height: 1.5;
  margin-bottom: 10px; letter-spacing: -.01em;
}
.footer-news-sub { font-size: 13px; line-height: 1.75; color: #8b949c; margin-bottom: 16px; }
.footer-news-form { display: flex; gap: 8px; margin-bottom: 12px; }
.footer-news-form input {
  flex: 1; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; background: rgba(255,255,255,.04); color: #fff;
  font-family: inherit; font-size: 14px;
}
.footer-news-form input::placeholder { color: #64707b; }
.footer-news-form button {
  padding: 12px 20px; background: var(--green); color: #fff;
  border: 0; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .15s ease;
}
.footer-news-form button:hover { background: var(--green-700); }
.footer-news-privacy { font-size: 12px; color: #64707b; }
.footer-news-privacy a { color: #aeb6bd; text-decoration: underline; }

.footer-cols {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 32px;
}
.footer-col h5 {
  color: #fff; font-family: 'Syne', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-col a {
  color: #aeb6bd; font-size: 14px; display: inline-flex; align-items: center; gap: 8px;
  transition: color .12s ease;
}
.footer-col a:hover { color: #fff; }
.footer-col a .tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  font-family: 'Syne', sans-serif; border: 1px solid rgba(255,255,255,.12);
  color: #aeb6bd;
}
.footer-col a .tag.new { background: rgba(51,212,149,.18); color: #7fedb0; }
.footer-col a .tag.beta { background: rgba(217,119,87,.15); color: #f4a583; border-color: rgba(217,119,87,.25); }

.footer-social-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 24px; gap: 24px; flex-wrap: wrap;
}
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.04); color: #aeb6bd;
  display: grid; place-items: center;
  transition: background .15s ease, color .15s ease;
}
.footer-socials a:hover { background: rgba(255,255,255,.08); color: #fff; }
.footer-locale { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-locale-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: rgba(255,255,255,.04);
  color: #aeb6bd; border: 1px solid rgba(255,255,255,.06); border-radius: 999px;
  font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12.5px; color: #64707b;
}
.footer-copy .mark { color: var(--green); margin-right: 6px; }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal-links a { color: #8b949c; }
.footer-legal-links a:hover { color: #fff; }
.footer-legal-links a.required::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%; margin-right: 6px;
  vertical-align: 2px;
}

/* ========== LEGAL PAGES (terms / privacy / tokushoho) ========== */
.page-content.legal { font-size: 15px; }
.page-content.legal h2 {
  font-size: 20px; margin: 40px 0 14px;
  padding-left: 14px; border-left: 4px solid var(--green);
  font-weight: 700;
}
.page-content.legal h3 { font-size: 16px; margin: 24px 0 10px; font-weight: 700; }
.page-content.legal p,
.page-content.legal li { font-size: 15px; line-height: 1.9; }
.page-content.legal ul,
.page-content.legal ol { padding-left: 24px; margin-bottom: 16px; }
.page-content.legal .warn {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px;
  padding: 16px 20px; margin: 24px 0; font-size: 14px; color: #9a3412;
}
.page-content.legal .box {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin: 16px 0; font-size: 14px;
}
.page-content.legal .note {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; margin-top: 32px; font-size: 13px; color: var(--ink-70); line-height: 1.9;
}
.page-content.legal table {
  width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0;
  background: #fff; border-radius: 10px; overflow: hidden;
}
.page-content.legal th {
  padding: 12px 16px; background: #f7f7f2; border: 1px solid var(--line);
  text-align: left; font-weight: 700; color: var(--ink);
  width: 32%; vertical-align: top; white-space: nowrap;
}
.page-content.legal td {
  padding: 12px 16px; border: 1px solid var(--line); vertical-align: top; color: var(--ink-70);
}
.page-content.legal hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
@media (max-width: 600px) {
  .page-content.legal th { width: 40%; white-space: normal; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .pricing-grid, .feature-grid, .pricing-two-col { grid-template-columns: 1fr; }
  .sitemap-cols { grid-template-columns: repeat(2, 1fr); }
  .page-hero h1 { font-size: 42px; }
}
@media (max-width: 640px) {
  .page-main { padding: 32px 20px 64px; }
  .footer-inner { padding: 0 20px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .page-hero h1 { font-size: 34px; }
  .page-content h2 { font-size: 24px; }
  .plan-card { padding: 28px 22px 24px; }
  .plan-card .plan-price .num { font-size: 40px; }
}
