/* ===== Design tokens ===== */
:root {
  --indigo: #6366f1;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --grad: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);

  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #eef4ff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, .12);
  --container: 1120px;

  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.pc-only { display: inline; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(59, 130, 246, .35);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(59, 130, 246, .45); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, .8);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: #fff; border-color: #cbd5e1; }
.btn-line {
  background: #fff;
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn-line:hover { border-color: #94a3b8; background: var(--bg-soft); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { display: inline-flex; filter: drop-shadow(0 2px 6px rgba(59, 130, 246, .35)); }
.brand-logo svg { border-radius: 9px; }
.brand-name { font-weight: 900; font-size: 20px; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 600; color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: var(--blue); }
.nav .nav-cta {
  background: var(--grad);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, .3);
}
.nav .nav-cta:hover { color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 78% -8%, rgba(6, 182, 212, .14), transparent 60%),
    radial-gradient(900px 460px at 8% 4%, rgba(99, 102, 241, .14), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 96px 24px 88px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--blue);
  background: #fff;
  border: 1px solid #dbeafe;
  padding: 6px 16px;
  border-radius: 999px;
  margin: 0 0 22px;
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: .01em;
  margin: 0 0 22px;
}
.hero .lead {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 32px;
}
.hero .lead strong { color: var(--ink); font-weight: 800; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges {
  list-style: none;
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 36px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}
.hero-badges li { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ===== Section ===== */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--blue);
  margin: 0 0 12px;
}
.section-head h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: .01em;
}
.section-sub { color: var(--muted); font-size: 16px; margin: 0; }

/* ===== Products ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent, var(--grad));
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.accent-blue { --accent: linear-gradient(90deg, #3b82f6, #60a5fa); --accent-solid: #3b82f6; }
.accent-indigo { --accent: linear-gradient(90deg, #6366f1, #818cf8); --accent-solid: #6366f1; }
.accent-cyan { --accent: linear-gradient(90deg, #06b6d4, #22d3ee); --accent-solid: #06b6d4; }

.product-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.product-card h3 { font-size: 21px; font-weight: 900; margin: 0 0 6px; }
.product-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-solid);
  margin: 0 0 14px;
}
.product-desc { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 18px; }

.feature-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--accent-solid, var(--blue));
  opacity: .14;
}
.feature-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 9px; height: 9px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  background: var(--accent-solid, var(--blue));
}
.product-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.product-actions .btn { flex: 1; min-width: 120px; }

/* ===== Why ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.why-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.why-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg-tint);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.why-item h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.why-item p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ===== Pricing (per app) ===== */
.pricing-apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.price-app {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.price-app::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent, var(--grad));
}
.price-app h3 { font-size: 18px; font-weight: 900; margin: 0 0 16px; }

.tier-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.tier {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: var(--bg-soft);
}
.tier.is-rec {
  border-color: var(--accent-solid, var(--blue));
  background: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-solid, #3b82f6) 14%, transparent);
}
.tier-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tier-name { font-size: 13.5px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tier-name em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--accent-solid, var(--blue));
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.tier-price { font-size: 18px; font-weight: 900; color: var(--ink); white-space: nowrap; letter-spacing: -.01em; }
.tier-price small { font-size: 11px; font-weight: 700; color: var(--muted); }
.tier-sub { font-size: 11.5px; color: var(--muted); margin: 5px 0 0; line-height: 1.55; }

.price-app-actions { display: flex; gap: 10px; margin-top: auto; }
.price-app-actions .btn { flex: 1; }

.pricing-note {
  max-width: 820px;
  margin: 30px auto 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.pricing-note p { margin: 0 0 8px; }
.pricing-note p:last-child { margin-bottom: 0; }
.pricing-note-fine { color: var(--muted); font-size: 12.5px; }

/* ===== CTA ===== */
.section-cta { padding: 80px 0; }
.cta-box {
  background: var(--grad);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; margin: 0 0 12px; }
.cta-box > p { font-size: 16px; opacity: .95; margin: 0 auto 32px; max-width: 560px; }
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.cta-link {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(4px);
}
.cta-link:hover { background: rgba(255, 255, 255, .26); transform: translateY(-3px); }
.cta-link-name { font-weight: 900; font-size: 17px; }
.cta-link-sub { font-size: 12.5px; opacity: .9; }

/* ===== Company ===== */
.company-table {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.company-table > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
}
.company-table > div:last-child { border-bottom: none; }
.company-table dt {
  background: var(--bg-soft);
  font-weight: 800;
  font-size: 14px;
  padding: 18px 22px;
  margin: 0;
  color: var(--ink);
}
.company-table dd {
  margin: 0;
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.company-table dd a { color: var(--blue); font-weight: 700; }
.company-table dd a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 56px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}
.footer-brand .brand-name { color: #fff; font-size: 22px; }
.footer-brand p { font-size: 13.5px; color: #94a3b8; margin: 8px 0 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 13px; color: #fff; margin: 0 0 14px; letter-spacing: .04em; }
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: #94a3b8;
  padding: 5px 0;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  text-align: center;
}
.footer-bottom small { color: #64748b; font-size: 12.5px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .pc-only { display: none; }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform .25s ease;
    z-index: 40;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 24px; font-size: 16px; border-bottom: 1px solid var(--bg-soft); }
  .nav .nav-cta { margin: 12px 24px 0; border-radius: 999px; text-align: center; }
  .nav-toggle { display: flex; }

  .hero-inner { padding: 64px 24px 60px; }
  .section { padding: 64px 0; }
  .pricing-apps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 44px 24px; }
  .company-table > div { grid-template-columns: 1fr; }
  .company-table dt { padding-bottom: 4px; }
  .company-table dd { padding-top: 6px; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
