/* ===== NxTiers Custom Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --accent:   #02C39A;
  --dark:     #0D1117;
  --dark2:    #131920;
  --surface:  #F7F9FC;
  --card:     #FFFFFF;
  --text:     #1A202C;
  --muted:    #64748B;
  --border:   #E2E8F0;
  --nav-h:    72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; background: var(--dark); color: var(--text); overflow-x: hidden; }

/* ===== NAV ===== */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 2rem;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s;
}
#mainNav.sticky {
  background: rgba(13,17,23,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
#mainNav .container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
#mainNav .logo img { height: 44px; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-decoration: none; letter-spacing: 0.05em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; margin: 5px 0; transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0 2rem;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,17,23,0.92) 0%, rgba(13,17,23,0.75) 60%, rgba(2,195,154,0.08) 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-label {
  display: inline-block;
  font-family: 'Syne', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800;
  line-height: 1.08; color: #fff; margin-bottom: 1.4rem;
  opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}
.hero-title .hl { color: var(--accent); }
.hero-desc {
  font-size: 1rem; line-height: 1.85; color: rgba(255,255,255,0.55);
  max-width: 560px; font-weight: 300; margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2rem; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700;
  text-decoration: none; letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0; animation: fadeUp 0.8s 0.8s forwards;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(2,195,154,0.35); color: #fff; }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.25); font-size: 0.65rem; letter-spacing: 0.18em;
  animation: pulse 2.5s infinite;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

/* ===== SECTION BASE ===== */
.section-light { background: var(--surface); padding: 6rem 2rem; }
.section-dark  { background: var(--dark2); padding: 6rem 2rem; }
.section-darker{ background: var(--dark);  padding: 6rem 2rem; }

.container-inner { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  display: block; font-family: 'Syne', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800;
  line-height: 1.2;
}
.section-title.on-dark { color: #fff; }
.section-title.on-light { color: var(--text); }
.section-header { margin-bottom: 4rem; }
.section-header.center { text-align: center; }
.section-desc {
  margin-top: 1rem; font-size: 1rem; line-height: 1.8;
  max-width: 640px;
}
.section-desc.on-dark { color: rgba(255,255,255,0.5); font-weight: 300; }
.section-desc.on-light { color: var(--muted); }
.section-desc.center { margin: 1rem auto 0; }

/* ===== CARDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.feature-card {
  background: var(--card); border-radius: 14px;
  padding: 2rem 1.8rem; border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.feature-card-dark {
  background: rgba(255,255,255,0.04); border-radius: 14px;
  padding: 2rem 1.8rem; border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.25s, border-color 0.25s;
}
.feature-card-dark:hover { transform: translateY(-4px); border-color: rgba(2,195,154,0.4); }

.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  background: rgba(2,195,154,0.12);
}
.card-icon img { width: 28px; height: 28px; object-fit: contain; filter: invert(1) brightness(2); }
.card-icon-emoji { font-size: 1.5rem; }

.card-title {
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.6rem;
}
.card-title.on-dark { color: #fff; }
.card-desc { font-size: 0.85rem; line-height: 1.75; color: var(--muted); }
.card-desc.on-dark { color: rgba(255,255,255,0.45); }

.card-accent-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
}

/* ===== PLAN CARDS ===== */
.plan-card {
  display: grid; grid-template-columns: 260px 1fr;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  margin-bottom: 3rem;
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s, transform 0.6s;
}
.plan-card.visible { opacity: 1; transform: translateY(0); }

.plan-sidebar {
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.plan-sidebar::before {
  content: ''; position: absolute;
  bottom: -50px; right: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.plan-name {
  font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800;
  color: #fff; margin-bottom: 0.4rem; position: relative;
}
.plan-tagline {
  font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.6;
  margin-bottom: 1.8rem; font-weight: 300; position: relative;
}
.plan-divider { height: 1px; background: rgba(255,255,255,0.15); margin: 1rem 0; }
.plan-meta-label {
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 0.25rem;
}
.plan-meta-value {
  font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 600;
  color: rgba(255,255,255,0.88); margin-bottom: 1rem; line-height: 1.4;
}
.plan-note {
  margin-top: auto; padding: 0.65rem 0.9rem;
  background: rgba(255,255,255,0.1); border-radius: 8px;
  font-size: 0.72rem; color: rgba(255,255,255,0.75); line-height: 1.6;
}

.plan-body { background: #fff; padding: 2.5rem; }
.plan-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.pf-card {
  padding: 1.1rem 1.2rem; border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; gap: 0.8rem; align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.pf-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.pf-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.pf-icon {
  width: 34px; height: 34px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.pf-title { font-family: 'Syne', sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.pf-desc  { font-size: 0.72rem; color: var(--muted); line-height: 1.6; }

/* Plan color themes */
.theme-basic  { --pc: #2E4057; }
.theme-std    { --pc: #028090; }
.theme-pro    { --pc: #1C7293; }
.theme-soc    { --pc: #C0392B; }
.plan-sidebar.theme-basic { background: #2E4057; }
.plan-sidebar.theme-std   { background: #028090; }
.plan-sidebar.theme-pro   { background: #1C7293; }
.plan-sidebar.theme-soc   { background: #C0392B; }
.pf-accent.theme-basic { background: #2E4057; }
.pf-accent.theme-std   { background: #028090; }
.pf-accent.theme-pro   { background: #1C7293; }
.pf-accent.theme-soc   { background: #C0392B; }
.pf-icon.theme-basic { background: rgba(46,64,87,0.1);  color: #2E4057; }
.pf-icon.theme-std   { background: rgba(2,128,144,0.1); color: #028090; }
.pf-icon.theme-pro   { background: rgba(28,114,147,0.1);color: #1C7293; }
.pf-icon.theme-soc   { background: rgba(192,57,43,0.1); color: #C0392B; }

/* ===== COMPARISON TABLE ===== */
.comp-wrap { overflow-x: auto; }
.comp-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.comp-table th {
  padding: 1rem 1.2rem; font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 0.88rem; color: #fff; text-align: center;
}
.comp-table th:first-child { text-align: left; }
.th-basic { background: #2E4057; border-radius: 10px 10px 0 0; }
.th-std   { background: #028090; border-radius: 10px 10px 0 0; }
.th-pro   { background: #1C7293; border-radius: 10px 10px 0 0; }
.th-soc   { background: #C0392B; border-radius: 10px 10px 0 0; }
.comp-table td {
  padding: 0.85rem 1.2rem; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
}
.comp-table td:first-child { text-align: left; color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.comp-table tr:last-child td { border-bottom: none; }
.chk   { color: var(--accent); font-size: 1.1rem; font-weight: 700; }
.cross { color: rgba(255,255,255,0.15); font-size: 1.1rem; }
.partial { color: rgba(255,255,255,0.45); font-size: 0.8rem; }

/* ===== BANNER / TOP BANNER ===== */
.top-banner {
  min-height: 380px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 7rem 2rem 4rem;
}
.top-banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.top-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,17,23,0.85), rgba(13,17,23,0.75));
}
.top-banner-content { position: relative; z-index: 2; text-align: center; }
.top-banner h2 {
  font-family: 'Syne', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; color: #fff; margin-bottom: 0.8rem;
}
.top-banner p { color: rgba(255,255,255,0.55); font-size: 1rem; font-weight: 300; }

/* ===== ABOUT ===== */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img-wrap { position: relative; border-radius: 16px; overflow: hidden; }
.about-img-wrap img { width: 100%; height: 480px; object-fit: cover; display: block; }
.about-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(2,195,154,0.15));
}
.about-text .section-eyebrow { margin-bottom: 0.75rem; }
.about-text .section-title { margin-bottom: 1.5rem; }
.about-text p { font-size: 0.95rem; line-height: 1.9; color: rgba(255,255,255,0.55); font-weight: 300; margin-bottom: 1.2rem; }
.about-info { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); }
.about-info p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-bottom: 0.4rem; }
.about-info a { color: var(--accent); text-decoration: none; }

/* ===== FOOTER ===== */
#site-footer {
  background: #080C11; padding: 4rem 2rem 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo img { height: 48px; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.3); line-height: 1.7; }
.footer-col h6 {
  font-family: 'Syne', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { font-size: 0.85rem; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: rgba(255,255,255,0.2);
}
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; }

/* ===== MISC ===== */
.pill-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pill {
  padding: 0.45rem 1.1rem; border-radius: 100px;
  font-family: 'Syne', sans-serif; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; border: 1px solid; text-decoration: none;
  transition: all 0.25s; display: inline-block;
}
.pill-basic { color: #8BA5C0; border-color: rgba(46,64,87,0.8);   background: rgba(46,64,87,0.2); }
.pill-std   { color: #5ECAD5; border-color: rgba(2,128,144,0.8);  background: rgba(2,128,144,0.2); }
.pill-pro   { color: #5BAFD4; border-color: rgba(28,114,147,0.8); background: rgba(28,114,147,0.2); }
.pill-soc   { color: #E88880; border-color: rgba(192,57,43,0.8);  background: rgba(192,57,43,0.2); }
.pill:hover { transform: translateY(-2px); filter: brightness(1.2); }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--accent); padding: 4rem 2rem; text-align: center;
}
.cta-band h3 {
  font-family: 'Syne', sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800; color: #fff; margin-bottom: 0.75rem;
}
.cta-band p { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 2rem; }
.cta-btn {
  display: inline-block; padding: 0.85rem 2.2rem;
  background: #fff; color: var(--accent);
  font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 800;
  border-radius: 8px; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); color: var(--accent); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s, transform 0.65s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .plan-card { grid-template-columns: 1fr; }
  .plan-features-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(13,17,23,0.98); padding: 2rem; gap: 1.5rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
