/* ===== Reset & Custom Properties ===== */
:root {
  --ink:        #0f1923;
  --ink-2:      #1a2738;
  --teal:       #2b4a54;
  --teal-light: #3d6b78;
  --gold:       #c9963a;
  --gold-bg:    #fef7e8;
  --paper:      #f5f3ee;
  --paper-2:    #edeae3;
  --panel:      #ffffff;
  --border:     #dddad1;
  --text:       #1a1f26;
  --muted:      #5c6570;
  --faint:      #8a9099;
  --pass:       #2d7d3a;
  --pass-bg:    #e8f5e9;
  --block:      #c0392b;
  --block-bg:   #fce8e6;
  --mono:       'JetBrains Mono', 'Courier New', monospace;
  --sans:       'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:     10px;
  --radius-lg:  18px;
  --shadow:     0 4px 24px rgba(15, 25, 35, 0.10);
  --shadow-lg:  0 16px 64px rgba(15, 25, 35, 0.16);
  --hh:         64px; /* header height */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--panel);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }

/* ===== Utilities ===== */
.container { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--hh);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f0ede5;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.brand-icon {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold);
  border-radius: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-header nav a {
  color: #b0b8c4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.site-header nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-cta {
  margin-left: 8px;
  background: var(--gold) !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
  border-radius: 9px !important;
  padding: 9px 18px !important;
}
.nav-cta:hover { background: #d9a840 !important; color: var(--ink) !important; }

/* hamburger */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: transparent;
  color: #f0ede5;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.nav-toggle .bar {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform .25s, opacity .25s;
  position: relative;
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  position: absolute;
  left: 0;
  transition: transform .25s, opacity .25s;
}
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after  { top: 6px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
  line-height: 1.3;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(201,150,58,.35);
}
.btn-primary:hover { background: #d9a840; border-color: #d9a840; color: var(--ink); box-shadow: 0 6px 20px rgba(201,150,58,.45); }
/* dark-bg outline (フッター等) */
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.3);
}
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }
/* light-bg secondary button */
.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: rgba(43,74,84,.35);
}
.btn-secondary:hover { background: rgba(43,74,84,.06); border-color: var(--teal); color: var(--teal); }
.btn-light {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border);
}
.btn-light:hover { background: var(--paper); }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* SVG icon helper */
.icon {
  width: 1.1em; height: 1.1em;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(ellipse 65% 70% at 95% 5%, rgba(43,74,84,.07) 0%, transparent 55%),
    radial-gradient(ellipse 45% 50% at 5% 95%, rgba(201,150,58,.06) 0%, transparent 50%),
    linear-gradient(180deg, #f0f7f8 0%, #ffffff 100%);
  padding: calc(var(--hh) + 80px) 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(43,74,84,.09);
  border: 1px solid rgba(43,74,84,.22);
  border-radius: 999px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 28px;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 {
  color: var(--ink);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.02em;
  margin: 0 auto 22px;
  max-width: 780px;
}
.hero-lead {
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero .btn-group {
  justify-content: center;
  margin-bottom: 20px;
}
/* 無料注記（ボタン直下） */
.hero-free-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.hero-free-note svg { width: 13px; height: 13px; color: var(--pass); flex-shrink: 0; }
.hero-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 60px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.trust-item svg {
  width: 15px; height: 15px;
  color: var(--teal);
  opacity: .85;
}

/* ===== Free section ===== */
.free-section {
  background: var(--ink);
  padding: 72px 0;
}
.free-section .eyebrow { color: var(--gold); }
.free-section h2 { color: #f0ede5; font-size: clamp(24px,3vw,34px); margin: 0 0 14px; }
.free-section .section-desc { color: #8a9db0; max-width: 560px; }
.free-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.free-text { }
.free-text p { color: #8a9db0; font-size: 15px; line-height: 1.9; margin: 0 0 14px; }
.free-text p:last-child { margin-bottom: 0; }
.free-text strong { color: #c8d4dd; }
.price-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.price-card.is-free {
  background: rgba(45,125,58,.12);
  border-color: rgba(45,125,58,.3);
}
.price-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6e7d8c;
  margin-bottom: 8px;
}
.price-card-value {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}
.price-card.is-free .price-card-value { color: #5ec46e; }
.price-card:not(.is-free) .price-card-value { color: #f0ede5; }
.price-card-value span {
  font-size: 15px;
  font-weight: 400;
  color: #6e7d8c;
}
.price-card-note {
  font-size: 13px;
  color: #6e7d8c;
  line-height: 1.75;
}
.price-card.is-free .price-card-note { color: #7fc48a; }
@media (max-width: 860px) {
  .free-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Filter demo card */
.hero-demo {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 0;
}
.demo-card {
  background: var(--panel);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--ink-2);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.demo-dot { width: 9px; height: 9px; border-radius: 50%; }
.demo-dot:nth-child(1) { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #febc2e; }
.demo-dot:nth-child(3) { background: #28c840; }
.demo-url {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: #6e7d8c;
}
.demo-body { padding: 20px; }
.demo-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.demo-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.demo-threshold {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  background: var(--paper-2);
  padding: 3px 10px;
  border-radius: 6px;
}
.demo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.demo-row.blocked {
  background: var(--block-bg);
  border-color: #f5c4c2;
}
.demo-row-text { flex: 1; min-width: 0; }
.demo-row-text strong { display: block; font-size: 13px; color: var(--text); margin-bottom: 2px; font-weight: 600; }
.demo-row-text span  { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.demo-score { text-align: center; flex-shrink: 0; }
.score-num {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.score-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.score-badge.pass  { background: var(--pass-bg); color: var(--pass); }
.score-badge.block { background: var(--block-bg); color: var(--block); }
.demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #eef3f4;
  border-top: 1px solid #cdd8da;
  font-size: 12px;
  color: var(--teal);
  font-weight: 500;
}

/* ===== Stats bar ===== */
.stats-bar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-color: var(--border);
}
.stat-item {
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ===== Section commons ===== */
.section { padding: 88px 0; }
.section.bg-paper { background: var(--paper); }
.section.bg-white { background: var(--panel); }
.section.bg-dark  { background: var(--ink); }

.section-head { margin-bottom: 56px; }
.section-head.centered { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  color: var(--text);
}
.section-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 600px;
  margin: 0;
}
.section-head.centered .section-desc { margin: 0 auto; }

/* ===== How it works ===== */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps-row::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.step-item { position: relative; z-index: 1; text-align: center; }
.step-num {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.step-icon-wrap {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  color: var(--teal);
}
.step-icon-wrap svg { width: 28px; height: 28px; }
.step-item h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.step-item p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.8; }

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: #c5c0b5;
}
.feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: #e8f0f1;
  border-radius: 14px;
  color: var(--teal);
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.feature-card p  { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.85; }

/* ===== About / Why free ===== */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: start;
}
.quote-block {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #f0ede5;
  position: relative;
}
.quote-block::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 1;
  color: var(--gold);
  opacity: .3;
  position: absolute;
  top: 20px; left: 28px;
}
.quote-block p {
  position: relative;
  font-size: 16px;
  line-height: 1.9;
  color: #c8cfd6;
  margin: 0 0 24px;
}
.quote-block footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #6e7d8c;
  font-style: normal;
}
.quote-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--gold);
  font-size: 13px;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 16px;
}
.about-text p:last-child { margin-bottom: 0; }

/* ===== Screenshots ===== */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shot-item {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.shot-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.shot-item:first-child {
  grid-column: span 2;
}
.shot-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top;
  background: var(--paper-2);
  border-bottom: 1px solid var(--border);
}
.shot-item:first-child img { aspect-ratio: 16/9; }
.shot-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ===== Download CTA ===== */
.cta-box {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  bottom: -200px; right: -100px;
  background: radial-gradient(circle, rgba(43,74,84,.5) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box h2 { color: #f0ede5; margin: 0 0 12px; }
.cta-box .cta-lead { color: #7d8d9c; font-size: 16px; margin: 0 0 28px; }
.cta-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  background: rgba(201,150,58,.12);
  border: 1px solid rgba(201,150,58,.28);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.cta-version svg { width: 13px; height: 13px; }
.cta-box .btn-group { justify-content: center; }
.cta-sub {
  font-size: 13px;
  color: #5a6572;
  margin: 20px 0 0;
}
.cta-sub a { color: rgba(201,150,58,.75); }
.cta-sub a:hover { color: var(--gold); }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 36px 24px;
}
.footer-inner {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: #f0ede5; font-size: 15px;
  text-decoration: none;
}
.footer-brand .brand-icon { width: 26px; height: 26px; font-size: 14px; }
.footer-links {
  display: flex; gap: 20px; flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  font-size: 13px; color: #6e7d8c;
  text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: #c8cfd6; }
.footer-copy { font-size: 12px; color: #4e5d6a; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .steps-row { grid-template-columns: 1fr; gap: 32px; }
  .steps-row::before { display: none; }
  .step-item { text-align: left; display: flex; gap: 20px; align-items: flex-start; }
  .step-icon-wrap { flex-shrink: 0; margin: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .shots-grid { grid-template-columns: 1fr; }
  .shot-item:first-child { grid-column: span 1; }
  .shot-item img { aspect-ratio: 16/10 !important; }
  .cta-box { padding: 44px 28px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-header nav {
    display: none;
    position: absolute;
    top: var(--hh); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,.08);
    gap: 2px;
  }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { padding: 12px 16px; }
  .site-header nav .nav-cta { margin-left: 0; text-align: center; border-radius: 10px !important; }
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
