:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --brand: #0d9488;
  --brand-deep: #0f5f58;
  --brand-tint: #e6f6f4;
  --accent: #f59e0b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-deep); }
h1, h2, h3 { line-height: 1.4; margin: 0; letter-spacing: .03em; }
p { margin: 0; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
@media (max-width: 600px) { .container { width: calc(100% - 32px); } }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 18px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--brand);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
}
.nav { display: flex; gap: 24px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--brand); }
@media (max-width: 820px) { .nav { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(13, 148, 136, .28); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }

/* hero */
.hero { padding: 72px 0 80px; background: radial-gradient(1200px 500px at 85% -10%, var(--brand-tint), transparent 60%), linear-gradient(180deg, #fff, var(--bg-soft)); }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand-deep); background: var(--brand-tint); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(245, 158, 11, .35) 62%); }
.hero .lead { margin-top: 20px; color: var(--ink-2); font-size: 16.5px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.points li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 6px; }
@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
}

/* hero flow visual */
.flow { position: relative; display: grid; gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sheet { padding: 14px 14px 10px; }
.sheet-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.sheet-title i { width: 18px; height: 18px; border-radius: 4px; background: #16a34a; display: inline-block; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sheet th, .sheet td { border: 1px solid var(--line); padding: 5px 8px; text-align: left; white-space: nowrap; }
.sheet th { background: #f1f5f9; color: var(--muted); font-weight: 600; }
.sheet tr.new td { animation: rowIn 6s infinite; }
@keyframes rowIn { 0%, 8% { background: #fff7e6; opacity: 0; } 16%, 100% { opacity: 1; background: #fff; } }
.arrow { justify-self: center; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--brand-deep); }
.arrow span { background: var(--brand-tint); padding: 4px 12px; border-radius: 999px; }
.events { display: grid; gap: 10px; }
.event { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; animation: popIn 6s infinite both; }
.event:nth-child(2) { animation-delay: .6s; }
.event:nth-child(3) { animation-delay: 1.2s; }
@keyframes popIn { 0%, 20% { opacity: 0; transform: translateY(6px); } 30%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.event .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; }
.event b { display: block; font-size: 13.5px; }
.event small { color: var(--muted); font-size: 12px; line-height: 1.6; display: block; }
@media (prefers-reduced-motion: reduce) { .event, .sheet tr.new td { animation: none; } }

/* sections */
section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .en { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--brand); }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 6px; }
.sec-head p { color: var(--muted); margin-top: 12px; }
@media (max-width: 600px) { section { padding: 64px 0; } .sec-head { margin-bottom: 32px; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.service { padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.service .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-deep); display: grid; place-items: center; }
.service h3 { font-size: 18px; }
.service p { color: var(--ink-2); font-size: 14.5px; }
.service ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 13.5px; }
.service .price { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-weight: 700; color: var(--brand-deep); }
.service .price small { color: var(--muted); font-weight: 500; }

/* demos */
.demo { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.demo:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 16px 36px rgba(15, 23, 42, .1); }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eef2f7; border-bottom: 1px solid var(--line); }
.thumb iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; }
.demo-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.demo-body h3 { font-size: 17px; }
.demo-body p { font-size: 14px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tags span { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }
.demo-link { font-weight: 700; font-size: 14px; color: var(--brand-deep); }

/* code */
.code-wrap { max-width: 880px; margin-inline: auto; }
.tabs { display: flex; gap: 6px; margin-bottom: -1px; flex-wrap: wrap; }
.tab { font: inherit; font-size: 14px; font-weight: 700; padding: 10px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: #eef2f7; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { background: #0b1220; color: #e2e8f0; border-color: #0b1220; }
.code-panel { background: #0b1220; color: #dbe4f0; border-radius: 0 12px 12px 12px; padding: 22px 24px; overflow-x: auto; }
.code-panel[hidden] { display: none; }
.code-panel pre { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.75; tab-size: 2; }
.code-panel .c { color: #7c8aa5; }
.code-panel .k { color: #7dd3fc; }
.code-panel .s { color: #a7f3d0; }
.code-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps li { padding: 22px 18px; position: relative; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-weight: 800; font-size: 13px; color: var(--brand); letter-spacing: .1em; }
.steps h3 { font-size: 16px; margin: 6px 0 8px; }
.steps p { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* pricing */
.price-table { width: 100%; max-width: 880px; margin-inline: auto; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-table thead th { background: var(--bg-soft); font-size: 13px; color: var(--muted); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td.num { font-weight: 700; color: var(--brand-deep); white-space: nowrap; }
.price-note { max-width: 880px; margin: 14px auto 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 600px) { .price-table th, .price-table td { padding: 12px 12px; font-size: 14px; } .price-table .hide-sm { display: none; } }

/* ai note */
.note-box { max-width: 880px; margin-inline: auto; padding: 28px 30px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.note-box .ic { width: 48px; height: 48px; border-radius: 14px; background: #fff4de; display: grid; place-items: center; font-size: 22px; }
.note-box h3 { font-size: 18px; margin-bottom: 8px; }
.note-box p { font-size: 15px; color: var(--ink-2); }
.note-box p + p { margin-top: 8px; }
@media (max-width: 560px) { .note-box { grid-template-columns: 1fr; padding: 22px; } }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; gap: 12px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--brand); font-weight: 800; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px 26px; color: var(--ink-2); font-size: 15px; }

/* contact + footer */
.contact { text-align: center; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; }
.contact h2 { font-size: clamp(22px, 3vw, 30px); }
.contact p { margin-top: 14px; opacity: .92; }
.contact .platforms { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.contact .platforms span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 10px 20px; font-weight: 700; }
.site-footer { padding: 32px 0 40px; font-size: 13px; color: var(--muted); }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
