/* ============================================================
   TasCure LP — design tokens & styles
   Light theme matched to product admin UI
   ============================================================ */

:root {
  /* Surfaces */
  --bg:            #f4f6f8;
  --surface:       #ffffff;
  --surface-2:     #f8fafc;
  --border:        #e5e7eb;
  --border-strong: #d1d5db;

  /* Text */
  --text:          #1f2933;
  --muted:         #6b7280;
  --muted-2:       #9ca3af;

  /* Accent */
  --accent:        #2563eb;
  --accent-hover:  #1d4ed8;
  --accent-soft:   #eff4ff;
  --accent-border: #c9dbff;

  /* Semantic / status */
  --danger:        #dc2626;
  --danger-soft:   #fef2f2;
  --success:       #16a34a;
  --success-soft:  #ecfdf3;
  --warn:          #d97706;
  --warn-soft:     #fffbeb;

  /* Brand chat */
  --slack:         #4a154b;
  --line:          #06c755;

  /* Geometry */
  --container:     1140px;
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     16px;

  /* Elevation */
  --shadow-sm:  0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow:     0 4px 12px rgba(16,24,40,.08), 0 1px 3px rgba(16,24,40,.04);
  --shadow-lg:  0 18px 48px rgba(16,24,40,.14), 0 4px 12px rgba(16,24,40,.06);
  --shadow-xl:  0 32px 70px rgba(16,24,40,.20);

  --header-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 92px 0; }
.section--tint { background: var(--surface); }
.section--accent { background: linear-gradient(180deg, #f0f5ff 0%, #f4f6f8 100%); }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .12s ease, box-shadow .16s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.24); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 8px 22px rgba(37,99,235,.30); }
.btn--primary:disabled,
.btn--primary[disabled] {
  background: #cbd5e1;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
.btn--primary:disabled:hover,
.btn--primary[disabled]:hover { background: #cbd5e1; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--muted-2); }
.btn--soft { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.btn--soft:hover { background: #e2ecff; }
.btn--lg { padding: 16px 30px; font-size: 16px; border-radius: 11px; }
.btn--block { width: 100%; }
.btn .ico { width: 18px; height: 18px; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  overflow: hidden;
  background: transparent;
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand b { font-weight: 800; }
.brand .tld { color: var(--muted-2); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.hamburger { display: none; width: 42px; height: 42px; border: 1px solid var(--border); background: var(--surface); border-radius: 9px; cursor: pointer; align-items: center; justify-content: center; }
.hamburger svg { width: 20px; height: 20px; color: var(--text); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 70; display: none; }
.drawer.open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(15,23,42,.45); }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(82vw, 340px);
  background: var(--surface); box-shadow: var(--shadow-xl);
  padding: 18px; display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.22,.61,.36,1);
}
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer a.drawer__link { padding: 13px 12px; border-radius: 9px; font-weight: 600; color: var(--text); }
.drawer a.drawer__link:hover { background: var(--surface-2); }
.drawer__cta { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); border-radius: 9px; cursor: pointer; }
.iconbtn svg { width: 20px; height: 20px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 70%); }
.hero::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(37,99,235,.12), transparent 70%); pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1.1fr; gap: 56px; align-items: center; padding: 84px 0 96px; }
.hero__copy { max-width: 560px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--surface); border: 1px solid var(--accent-border);
  padding: 7px 14px 7px 10px; border-radius: 999px; margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.22; letter-spacing: -.02em; }
.hero h1 .hl { color: var(--accent); }
.hero__sub { margin-top: 22px; font-size: 18px; color: var(--muted); line-height: 1.85; }
.hero__cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.trust-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.trust-badge svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.trust-sep { width: 1px; height: 16px; background: var(--border-strong); }

/* Hero mockup */
.mock {
  position: relative;
  padding: 8px 10px 32px;
  isolation: isolate;
}
.mock__glow {
  position: absolute;
  inset: 6% 0 14%;
  background: radial-gradient(ellipse 78% 62% at 52% 48%, rgba(37, 99, 235, .22), transparent 72%);
  filter: blur(34px);
  pointer-events: none;
  z-index: 0;
}
.mock__base {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6px;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, .16), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.mock__frame {
  position: relative;
  z-index: 1;
  transform: perspective(1280px) rotateY(-5deg) rotateX(2.5deg);
  transform-origin: center center;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.mock:hover .mock__frame {
  transform: perspective(1280px) rotateY(-2.5deg) rotateX(1.25deg) translateY(-6px);
}
.mock__win {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: calc(var(--radius-lg) + 2px);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, .06),
    0 10px 20px rgba(15, 23, 42, .06),
    0 28px 56px rgba(15, 23, 42, .10),
    0 52px 88px rgba(37, 99, 235, .16);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.mock__dots { display: flex; gap: 5px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; display: block; box-shadow: inset 0 -1px 1px rgba(0, 0, 0, .12); }
.mock__dots i:nth-child(1){ background:#ff5f57; } .mock__dots i:nth-child(2){ background:#febc2e; } .mock__dots i:nth-child(3){ background:#28c840; }
.mock__url {
  margin-left: 6px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}
.mock__viewport {
  position: relative;
  background: #eef2f7;
  line-height: 0;
}
.mock__viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  pointer-events: none;
}
.mock__shot {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.mock__toast {
  position: absolute;
  right: -10px;
  bottom: 18px;
  z-index: 3;
  width: min(248px, 42vw);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, .05),
    0 10px 24px rgba(15, 23, 42, .10),
    0 24px 48px rgba(15, 23, 42, .12);
  backdrop-filter: blur(10px);
  padding: 12px 14px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.mock__toast .src { width: 32px; height: 32px; border-radius: 8px; flex: none; object-fit: contain; display: block; }
.mock__toast small { display: block; font-size: 11px; color: var(--muted-2); margin-bottom: 2px; }
.mock__toast b { font-size: 12.5px; }
.mock__toast p { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

/* ============================================================
   Problems / Solutions
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.prob {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.prob__icon { width: 44px; height: 44px; border-radius: 11px; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center; margin-bottom: 16px; }
.prob__icon svg { width: 22px; height: 22px; }
.prob h3 { font-size: 16.5px; line-height: 1.5; }
.prob p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* solution paired row */
.sol-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.sol {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.sol::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.sol__no { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .05em; }
.sol__head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.sol__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.sol__icon svg { width: 24px; height: 24px; }
.sol h3 { font-size: 18px; }
.sol p { font-size: 14.5px; color: var(--muted); }
.sol__from { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 12.5px; color: var(--muted-2); }
.sol__from b { color: var(--text); font-weight: 600; }

/* ============================================================
   3 key differentiators (#features)
   ============================================================ */
.feat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 28px 30px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-border); }
.feat-card__num {
  position: absolute; top: 24px; right: 26px; font-size: 40px; font-weight: 800; color: #eef2f7; line-height: 1; letter-spacing: -.04em;
}
.feat-card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent), #5b8dff); color: #fff; box-shadow: 0 10px 22px rgba(37,99,235,.28);
}
.feat-card__icon svg { width: 28px; height: 28px; }
.feat-card h3 { font-size: 19px; line-height: 1.45; }
.feat-card p { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.feat-card__tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); padding: 5px 11px; border-radius: 8px; }

/* ============================================================
   Functions grid (#functions)
   ============================================================ */
.fn-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.fn-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 26px 22px; box-shadow: var(--shadow-sm); }
.fn-group__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.fn-group__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.fn-group__icon svg { width: 21px; height: 21px; }
.fn-group__head h3 { font-size: 16.5px; }
.fn-list li { display: flex; gap: 11px; padding: 8px 0; font-size: 14px; color: var(--text); align-items: flex-start; }
.fn-list li svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 4px; }
.fn-list li b { font-weight: 600; }
.fn-list li span { color: var(--muted); }

/* ============================================================
   Integrations (Slack / LINE 3-step)
   ============================================================ */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); text-align: center;
}
.step__no { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; margin: 0 auto 18px; }
.step__vis { height: 120px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 18px; overflow: hidden; }
.step h3 { font-size: 16px; }
.step p { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.step__line {
  position: absolute;
  top: 50%;
  right: -20px;
  width: 20px;
  height: 2px;
  background: var(--border-strong);
  transform: translateY(-50%);
  z-index: 1;
}
.step__line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: var(--border-strong);
}
.chat-logos { display: flex; gap: 14px; justify-content: center; margin-top: 30px; }
.chat-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.chat-logo .badge { width: 26px; height: 26px; border-radius: 7px; flex: none; object-fit: contain; display: block; }

/* notify mock inside step */
.nmock { width: 100%; padding: 0 14px; }
.nbubble { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; text-align: left; box-shadow: var(--shadow-sm); }
.nbubble .nt { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.nbubble .nt .src { width: 18px; height: 18px; border-radius: 5px; flex: none; object-fit: contain; display: block; }
.nbubble .nt b { font-size: 11px; }
.nbubble p { font-size: 11px; color: var(--text); margin: 0; line-height: 1.45; }

/* ============================================================
   対象と公開 comparison
   ============================================================ */
.cmp { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.cmp table { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 20px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.cmp thead th { background: var(--surface-2); font-size: 14px; }
.cmp thead th:first-child { width: 150px; }
.cmp thead th .h-icon { display: inline-flex; align-items: center; gap: 9px; }
.cmp thead th .h-icon .b { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.cmp thead th .target .b { background: var(--accent); }
.cmp thead th .public .b { background: #7c3aed; }
.cmp thead th .h-icon .b svg { width: 16px; height: 16px; }
.cmp thead th b { font-size: 16px; }
.cmp tbody th { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface-2); }
.cmp tbody td { font-size: 14.5px; }
.cmp tbody td b { color: var(--text); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: none; }
.cmp-note { margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: var(--radius); padding: 18px 20px; }
.cmp-note svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.cmp-note p { font-size: 14.5px; color: var(--text); }
.cmp-note b { color: var(--accent); }

/* ============================================================
   Security
   ============================================================ */
.sec-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sec-item { display: flex; gap: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px; box-shadow: var(--shadow-sm); }
.sec-item__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.sec-item__icon svg { width: 21px; height: 21px; }
.sec-item h4 { font-size: 14.5px; }
.sec-item p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.sec-aside { background: linear-gradient(160deg,#1f2933,#0f172a); color: #fff; border-radius: var(--radius-lg); padding: 38px 34px; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-lg); }
.sec-aside .lock { width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,.1); display: grid; place-items: center; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.16); }
.sec-aside .lock svg { width: 28px; height: 28px; color: #93b4ff; }
.sec-aside h3 { font-size: 22px; color: #fff; line-height: 1.5; }
.sec-aside p { margin-top: 14px; font-size: 14.5px; color: #cbd5e1; line-height: 1.85; }
.sec-aside .tenant { margin-top: 22px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: #93b4ff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 10px 14px; }
.sec-aside-note { margin-top: 14px; font-size: 12.5px; color: #94a3b8; line-height: 1.6; }

/* ============================================================
   Flow (steps)
   ============================================================ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: flow; }
.flow-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow-sm); }
.flow-step__no { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 16px; display: grid; place-items: center; margin-bottom: 16px; }
.flow-step h4 { font-size: 16px; }
.flow-step p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.flow-step__line {
  position: absolute;
  top: 50%;
  right: -20px;
  width: 20px;
  height: 2px;
  background: var(--border-strong);
  transform: translateY(-50%);
  z-index: 1;
}
.flow-step__line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: var(--border-strong);
}

/* ============================================================
   Pricing
   ============================================================ */
.price-card { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 48px 44px; text-align: center; }
.price-card .lead { font-size: 28px; font-weight: 800; }
.price-card .lead span { color: var(--accent); }
.price-card p { margin-top: 14px; color: var(--muted); font-size: 15.5px; }
.price-card ul { margin: 26px auto 30px; max-width: 440px; display: grid; gap: 10px; text-align: left; }
.price-card ul li { display: flex; gap: 11px; font-size: 14.5px; }
.price-card ul li svg { width: 19px; height: 19px; color: var(--success); flex: none; margin-top: 3px; }
.price-card__note { margin: 0 auto; max-width: 440px; font-size: 12.5px; color: var(--muted); text-align: left; line-height: 1.6; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.faq-item.open { box-shadow: var(--shadow); border-color: var(--accent-border); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 20px 22px; display: flex; align-items: center; gap: 14px; font-size: 15.5px; font-weight: 600; color: var(--text); }
.faq-q .q { width: 24px; height: 24px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.faq-q .ch { margin-left: auto; transition: transform .2s; color: var(--muted); flex: none; }
.faq-item.open .faq-q .ch { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .26s ease; }
.faq-a__in {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 22px 22px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.85;
}
.faq-a .a {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}
.faq-a__text { flex: 1; min-width: 0; }
.faq-a__in code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); padding: 2px 7px; border-radius: 5px; color: var(--accent); }

/* ============================================================
   CTA band + footer
   ============================================================ */
.cta-band { background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #3b82f6); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.14), transparent 55%); }
.cta-band__inner { position: relative; padding: 76px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.35; }
.cta-band p { color: #dbe6ff; margin-top: 16px; font-size: 17px; }
.cta-band__btns { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn--primary { background: #fff; color: var(--accent); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.cta-band .btn--primary:hover { background: #f0f5ff; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.footer { background: #111827; color: #cbd5e1; padding: 64px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { color: #fff; }
.footer .brand .tld { color: #64748b; }
.footer__desc { margin-top: 16px; font-size: 13.5px; color: #94a3b8; line-height: 1.8; max-width: 320px; }
.footer h5 { color: #fff; font-size: 13px; letter-spacing: .04em; margin-bottom: 16px; text-transform: uppercase; }
.footer ul { display: grid; gap: 11px; }
.footer ul a, .footer ul button { font-size: 13.5px; color: #94a3b8; transition: color .15s; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; text-align: left; }
.footer ul a:hover, .footer ul button:hover { color: #fff; }
.footer ul a .ext { display: inline-block; width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; opacity: .7; }
.footer__bottom { padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #64748b; }
.footer__legal { display: grid; gap: 5px; line-height: 1.55; }
.footer__legal-en { color: #64748b; }
.footer__legal-ja { color: #94a3b8; font-size: 12px; }
.footer__product { display: inline-flex; align-items: center; gap: 8px; color: #cbd5e1; }
.footer__product img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; display: block; }

/* ============================================================
   Modals
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: 40px 18px; overflow-y: auto; }
.modal.open { display: flex; }
.modal__scrim { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal__dialog {
  position: relative; width: 100%; max-width: 560px; background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); margin: auto 0;
  animation: pop .24s cubic-bezier(.22,.61,.36,1); overflow: hidden;
}
.modal__dialog--sm { max-width: 460px; }
@keyframes fade { from { opacity: 0; } } 
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__head { padding: 26px 28px 18px; border-bottom: 1px solid var(--border); position: relative; }
.modal__head h3 { font-size: 21px; }
.modal__head p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--muted); transition: background .15s, color .15s; }
.modal__close:hover { background: var(--surface-2); color: var(--text); }
.modal__close svg { width: 18px; height: 18px; }
.modal__body { padding: 24px 28px 28px; }

/* form */
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span { display: block; padding: 10px 18px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .14s; }
.radio-pill input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field { margin-top: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field > label .req,
.check .req { color: var(--danger); font-size: 11px; margin-left: 5px; font-weight: 700; }
.field > label .opt { color: var(--muted-2); font-size: 11px; margin-left: 5px; font-weight: 500; }
.input, .textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 14px; background: var(--surface);
  transition: border-color .14s, box-shadow .14s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.textarea { resize: vertical; min-height: 92px; line-height: 1.7; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 11px; align-items: flex-start; margin-top: 20px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent); text-decoration: underline; }
.modal__foot { margin-top: 24px; }
.form-note { margin-top: 14px; font-size: 12px; color: var(--muted-2); text-align: center; }
.form-error {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid #fecaca;
  border-radius: 8px;
}
.field--hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

/* login modal */
.login-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 44px;
}
.login-modal-title__logo {
  width: 32px;
  height: 32px;
  flex: none;
  object-fit: contain;
  display: block;
}
.login-field { margin-top: 8px; }
.slug-input { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 11px; overflow: hidden; transition: border-color .14s, box-shadow .14s; background: var(--surface); }
.slug-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.slug-input input {
  border: 0; outline: none; flex: 1; min-width: 0; padding: 14px 14px; font-family: ui-monospace, Menlo, monospace;
  font-size: 18px; letter-spacing: .22em; color: var(--text); background: transparent; text-transform: lowercase;
}
.slug-input .suffix { padding: 0 16px 0 8px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--muted); white-space: nowrap; }
.slug-preview { margin-top: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 13px 15px; display: flex; align-items: center; gap: 10px; }
.slug-preview svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.slug-preview .url { font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--text); }
.slug-preview .url b { color: var(--accent); font-weight: 700; }
.login-hint { margin-top: 18px; display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 13px 15px; line-height: 1.65; }
.login-form-error { margin-top: 16px; margin-bottom: 0; }
.login-hint svg { width: 16px; height: 16px; color: var(--muted-2); flex: none; margin-top: 2px; }

/* success state */
.success { text-align: center; padding: 18px 8px 6px; }
.success__ico { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 22px; animation: pop .3s ease; }
.success__ico svg { width: 34px; height: 34px; }
.success h3 { font-size: 21px; }
.success p { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.success .btn { margin-top: 26px; }

/* ============================================================
   Mobile FAB
   ============================================================ */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: none; }
.fab .btn { box-shadow: var(--shadow-lg); padding: 15px 22px; border-radius: 999px; }

.hide-desktop { display: none; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .mock__frame,
  .mock:hover .mock__frame { transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav { display: none; }
  .header__actions .btn--ghost { display: none; }
  .hamburger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; padding: 56px 0 70px; }
  .hero__copy { max-width: none; }
  .mock__frame { transform: none; }
  .mock:hover .mock__frame { transform: translateY(-4px); }
  .mock__toast { right: 4px; bottom: 12px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .fn-groups { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step__line { display: none; }
  .sec-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .container { padding: 0 18px; }
  .grid-2, .grid-3, .feat3, .sol-row, .steps3, .sec-grid { grid-template-columns: 1fr; }
  .step__line { display: none; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero h1 { font-size: 30px; }
  .hero__cta .btn { flex: 1; }
  .cmp { overflow-x: auto; }
  .cmp table { min-width: 520px; }
  .fab { display: block; }
  .field-2 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__top .footer__brandcol { grid-column: 1 / -1; }
  .price-card { padding: 36px 24px; }
  .mock { padding-bottom: 12px; }
  .mock__frame { transform: none; }
  .mock:hover .mock__frame { transform: none; }
  .mock__toast { position: static; width: auto; margin-top: 14px; }
  .hide-desktop { display: block; }
  .hide-mobile { display: none; }
}

@media (max-width: 420px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero__trust { gap: 8px 12px; }
}

/* ---- Legal / document pages ---- */
.legal-header .nav a { font-size: 13px; font-weight: 600; color: var(--muted); }
.legal-header .nav a:hover,
.legal-header .nav a.is-active { color: var(--ink); }
.legal-header .nav { gap: 20px; }
.legal-page { padding: 48px 0 72px; }
.legal-page__head { max-width: 760px; margin: 0 auto 36px; }
.legal-page__head h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.legal-page__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.legal-page__lead { margin-top: 18px; color: var(--muted); line-height: 1.75; font-size: 15px; }
.legal-doc { max-width: 760px; margin: 0 auto; line-height: 1.85; font-size: 15px; color: var(--ink); }
.legal-doc h2 { font-size: 17px; font-weight: 800; margin: 36px 0 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.legal-doc h2:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.legal-doc ol { padding-left: 1.4em; margin: 10px 0 16px; }
.legal-doc ol > li { margin-bottom: 10px; }
.legal-doc ol ol { margin-top: 8px; list-style-type: lower-alpha; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc ul { padding-left: 1.3em; margin: 10px 0 16px; }
.legal-doc ul > li { margin-bottom: 8px; }
.legal-doc .legal-supplement { margin-top: 40px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.legal-doc .legal-supplement h2 { border: 0; margin: 0 0 12px; padding: 0; font-size: 16px; }
.tokusho-table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.tokusho-table th, .tokusho-table td { border: 1px solid var(--line); padding: 14px 16px; vertical-align: top; text-align: left; }
.tokusho-table th { width: 28%; background: var(--surface-2); font-weight: 700; white-space: nowrap; text-align: center; vertical-align: middle; }
.tokusho-table ul { margin: 0; padding-left: 1.2em; }
.tokusho-table p { margin: 0 0 10px; }
.tokusho-table p:last-child { margin-bottom: 0; }
.tokusho-note { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.tokusho-reveal-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.tokusho-reveal-btn:hover { opacity: 0.85; }
@media (max-width: 640px) {
  .tokusho-table th, .tokusho-table td { display: block; width: 100%; }
  .tokusho-table th { border-bottom: 0; padding-bottom: 8px; }
}
.legal-page__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.legal-page__nav a { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: underline; }

.app-doc { max-width: 860px; margin: 0 auto; }
.app-doc__toolbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 20px; }
.app-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow-sm); }
.app-sheet__title { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.app-sheet__subtitle { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.app-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.app-meta__box { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.app-meta__box h3 { font-size: 14px; font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.app-field { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; align-items: baseline; margin-bottom: 8px; font-size: 14px; }
.app-field label { color: var(--muted); font-weight: 600; }
.app-field .line { border-bottom: 1px solid #cbd5e1; min-height: 22px; }
.app-field .line--short { max-width: 180px; }
.app-section { margin-top: 28px; }
.app-section h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.app-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.app-table th, .app-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.app-table th { background: var(--surface); width: 28%; font-weight: 700; }
.app-checks { display: grid; gap: 8px; font-size: 14px; margin-top: 10px; }
.app-check { display: flex; gap: 8px; align-items: flex-start; }
.app-check .box { width: 14px; height: 14px; border: 1.5px solid #64748b; flex-shrink: 0; margin-top: 3px; }
.app-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.app-sign__box { border: 1px solid var(--line); border-radius: 8px; padding: 18px; min-height: 140px; }
.app-sign__box h4 { font-size: 13px; font-weight: 800; margin-bottom: 16px; }
.app-sign__line { border-bottom: 1px solid #cbd5e1; margin-bottom: 14px; min-height: 28px; font-size: 13px; color: var(--muted); }
.app-note { margin-top: 24px; font-size: 13px; color: var(--muted); line-height: 1.7; }

@media (max-width: 720px) {
  .app-meta, .app-sign { grid-template-columns: 1fr; }
  .app-sheet { padding: 22px 18px; }
  .app-field { grid-template-columns: 1fr; gap: 4px; }
}

@media print {
  .header, .footer, .fab, .app-doc__toolbar, .legal-page__nav { display: none !important; }
  body { background: #fff; }
  .legal-page, .app-doc { padding: 0; }
  .app-sheet { border: 0; box-shadow: none; padding: 0; }
}
