:root {
  --ink: #15202b;
  --ink-soft: #4a5763;
  --muted: #8a96a3;
  --line: #e6eaef;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --brand: #1457d6;
  --brand-dark: #0f3fa0;
  --gold: #ffd76a;
  --coral: #f28d52;
  --mint: #36b37e;
  --plum: #221a2e;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--brand); color: #fff;
  font-weight: 800; border-radius: 8px; font-size: 16px; letter-spacing: 0;
}
.brand-mark.small { width: 26px; height: 26px; font-size: 13px; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: 0; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink-soft); font-size: 14px; font-weight: 600; }

/* HERO */
.hero { padding: 80px 0; background: linear-gradient(180deg, #fff8e8 0%, #eef4ff 54%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.35; margin: 0 0 20px; letter-spacing: 0; }
.lead { font-size: 18px; color: var(--ink-soft); margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tabs { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(21,32,43,0.06); }
.hero-tab { appearance: none; -webkit-appearance: none; padding: 13px 24px; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink-soft); background: #fff; border: none; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.hero-tab + .hero-tab { border-left: 1.5px solid var(--line); }
.hero-tab.active { background: var(--brand); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 22px 38px rgba(21,32,43,0.12)); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 8px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1.5px solid transparent; transition: all 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-block { width: 100%; text-align: center; }

/* SECTIONS */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.eyebrow { text-transform: uppercase; letter-spacing: 0; font-size: 12px; font-weight: 800; color: var(--brand); margin: 0 0 8px; }
.section h2 { font-size: 28px; margin: 0 0 14px; }
.section h2 .muted { color: var(--muted); font-weight: 600; font-size: 18px; }
.section-lead { font-size: 16px; color: var(--ink-soft); max-width: 720px; margin: 0 0 32px; }

/* TABS */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 36px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab { appearance: none; -webkit-appearance: none; background: none; border: none; padding: 14px 20px; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink-soft); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: color 0.15s ease, border-color 0.15s ease; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.panel { display: none; }
.panel.active { display: block; animation: panelfade 0.25s ease; }
@keyframes panelfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel-title { font-size: 26px; margin: 0 0 14px; }
.panel-title .muted { color: var(--muted); font-weight: 600; font-size: 17px; }
.sub-h { font-size: 22px; margin: 52px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.mt-link { margin: 24px 0 0; }
.tag-dev { display: inline-block; background: #fff3cd; color: #8a6d1a; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 8px; margin-left: 6px; letter-spacing: 0; vertical-align: middle; }

/* PRODUCT */
.product-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; margin-bottom: 32px; }
.product-art { display: grid; place-items: center; min-height: 360px; }
.product-art .art-item { display: none; text-align: center; }
.product-art .art-item.active { display: block; }
.product-art svg { width: 230px; height: auto; max-height: 360px; filter: drop-shadow(0 20px 40px rgba(20,87,214,0.18)); }
.art-cap { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); font-weight: 600; }

/* FEATURES */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 8px; padding: 18px 20px;
  cursor: default; transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.features li.is-active { border-color: var(--brand); background: #eef4ff; box-shadow: 0 10px 24px rgba(20,87,214,0.10); }
.features strong { display: block; font-size: 16px; margin-bottom: 3px; }
.features span { color: var(--ink-soft); font-size: 14px; }

/* ICONS */
.ic { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: #e7f0ff; color: var(--brand); }
.ic svg { width: 22px; height: 22px; }
.ic-lg { width: 48px; height: 48px; margin-bottom: 16px; }
.ic-lg svg { width: 26px; height: 26px; }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 36px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px; }
.card h3, .card h4 { margin: 0 0 10px; font-size: 17px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* PLANS / PRICING */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px 26px; }
.plan-accent { border-color: var(--brand); box-shadow: 0 12px 30px rgba(20,87,214,0.10); }
.badge { position: absolute; top: -12px; right: 22px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 8px; letter-spacing: 0; }
.plan-head h3 { margin: 0; font-size: 22px; }
.plan-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.plan-desc { color: var(--ink-soft); font-size: 14.5px; margin: 16px 0 18px; }
.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.price-list span { color: var(--ink-soft); }
.price-list strong { font-size: 16px; white-space: nowrap; }
.plan-note { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; line-height: 1.6; }
.pricing-foot { font-size: 13px; color: var(--ink-soft); margin: 4px 0 32px; line-height: 1.8; }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }

/* COMPARE TABLE */
.table-scroll { overflow-x: auto; margin-bottom: 14px; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 660px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.compare th, .compare td { padding: 14px 12px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.compare thead th { background: #eef2f6; font-weight: 700; }
.compare tbody th { text-align: left; background: #fafbfc; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.compare td small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 2px; }
.compare td.own { background: #eef4ff; color: var(--brand); font-weight: 800; }
.compare thead th.own { background: var(--brand); color: #fff; }
.compare td.hl { font-size: 18px; }
.compare tr td:last-child, .compare tr th:last-child { border-right: none; }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: none; }

/* UNLIMITED CTA */
.unlimited {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #172044 0%, #1457d6 56%, #f28d52 138%);
  color: #fff; border-radius: 8px; padding: 48px 40px; text-align: center;
  box-shadow: 0 20px 50px rgba(20,87,214,0.22);
}
.unlimited::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(255,215,106,0.24), transparent 30%),
    linear-gradient(260deg, rgba(54,179,126,0.18), transparent 36%);
  pointer-events: none;
}
.unlimited > * { position: relative; }
.badge-lg { display: inline-block; background: var(--gold); color: #5f4600; font-weight: 800; font-size: 13px; padding: 7px 16px; border-radius: 8px; margin-bottom: 18px; }
.u-eyebrow { text-transform: uppercase; letter-spacing: 0; font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.85); margin: 0 0 6px; }
.u-title { font-size: 30px; margin: 0 0 16px; color: #fff; }
.u-lead { max-width: 660px; margin: 0 auto 30px; color: rgba(255,255,255,0.95); font-size: 16px; }
.u-lead strong { color: var(--gold); }
.u-facts { display: flex; gap: 48px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.u-fact { display: flex; flex-direction: column; align-items: center; }
.u-num { font-size: 36px; font-weight: 800; line-height: 1.15; }
.u-num small { font-size: 16px; font-weight: 700; }
.u-lbl { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 6px; }
.u-note { max-width: 640px; margin: 0 auto 26px; font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,0.92); background: rgba(255,255,255,0.12); border-radius: 8px; padding: 14px 18px; }
.u-note strong { color: #fff; }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: #eef4ff; color: var(--brand-dark); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); color: #fff; }
.u-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 720px) { .unlimited { padding: 36px 24px; } .u-title { font-size: 24px; } .u-facts { gap: 28px; } .u-num { font-size: 30px; } }

/* STORY / COMIC */
.story-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #171b35 0%, #1457d6 62%, #f28d52 132%);
  color: #fff; text-align: center; padding: 64px 24px 66px;
}
.story-hero::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 82px;
  border-top: 1px solid rgba(255,255,255,0.18);
  transform: skewY(-2deg);
}
.story-hero .container { position: relative; z-index: 1; }
.story-hero h1 { font-size: 34px; line-height: 1.45; margin: 14px 0 8px; color: #fff; }
.story-hero p { margin: 0; font-size: 17px; color: rgba(255,255,255,0.95); font-weight: 700; }
.comic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 8px 0 44px; }
.story-divider {
  margin: 54px 0 20px;
  text-align: center;
}
.story-divider h2 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.4;
}
.frame { position: relative; border: 2.5px solid #15202b; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 14px 30px rgba(21,32,43,0.10); }
.frame.wide { grid-column: 1 / -1; }
.scene { display: block; width: 100%; height: auto; }
img.scene { aspect-ratio: 16 / 10; object-fit: cover; background: #eef4ff; }
.frame.wide img.scene { aspect-ratio: 16 / 10; }
.bubble {
  position: absolute; top: 13px; left: 13px; right: 13px;
  background: rgba(255,255,255,0.98); border: 2px solid #15202b; border-radius: 8px;
  padding: 9px 13px; font-size: 13.5px; font-weight: 800; line-height: 1.55;
  box-shadow: 4px 4px 0 rgba(21,32,43,0.12);
}
.bubble::after {
  content: ""; position: absolute; left: 22px; bottom: -9px; width: 14px; height: 14px;
  background: inherit; border-right: 2px solid #15202b; border-bottom: 2px solid #15202b;
  transform: rotate(45deg);
}
.bubble-left {
  right: auto;
  width: min(48%, 220px);
}
.bubble-left-wide {
  width: min(56%, 420px);
}
.bubble-right {
  left: auto;
  right: 5px;
  width: min(58%, 260px);
}
.bubble-right::after {
  left: auto;
  right: 14px;
}
.cap { margin: 0; background: #15202b; color: #fff; font-size: 13px; padding: 12px 15px; line-height: 1.55; font-weight: 700; }
@media (max-width: 640px) {
  .comic { grid-template-columns: 1fr; gap: 18px; margin-left: -16px; margin-right: -16px; }
  .story-hero h1 { font-size: 26px; }
  .story-hero { padding: 50px 20px 54px; }
  .bubble { top: 10px; left: 10px; right: 10px; font-size: 12.5px; padding: 8px 11px; }
  .bubble-left { right: auto; width: min(54%, 230px); }
  .bubble-left-wide { width: min(78%, 360px); }
  .bubble-right { left: auto; right: 4px; width: min(62%, 280px); }
}

/* COMPANY TABLE */
.company-table { width: 100%; border-collapse: collapse; max-width: 760px; }
.company-table th, .company-table td { text-align: left; vertical-align: top; padding: 16px 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.company-table th { width: 150px; color: var(--ink-soft); font-weight: 700; }

/* CONTACT FORM */
.contact-form { display: grid; gap: 18px; margin-top: 8px; }
.contact-form label { display: block; font-weight: 700; font-size: 14px; }
.req { display: inline-block; margin-left: 8px; font-size: 11px; color: #c0392b; font-weight: 700; vertical-align: middle; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 8px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); }
.contact-alt { text-align: center; color: var(--ink-soft); margin-top: 20px; font-size: 14px; }

/* FOOTER */
.site-footer { background: var(--ink); color: #c9d3de; padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-name { margin-left: 10px; font-weight: 700; color: #fff; font-size: 14px; }
.site-footer small { color: var(--muted); font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; max-width: 360px; margin: 0 auto; }
  .product-grid { grid-template-columns: 1fr; }
  .product-art { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 32px; }
  .lead { font-size: 16px; }
  .section { padding: 56px 0; }
}
