:root {
  --bg: #fbfbff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-muted: #f5f6fc;
  --text: #1d1c24;
  --muted: #6f7285;
  --line: rgba(27, 31, 59, 0.08);
  --line-strong: rgba(27, 31, 59, 0.14);
  --accent: #5965ff;
  --accent-2: #8d8eff;
  --accent-3: #ff8d52;
  --shadow-xl: 0 28px 80px rgba(84, 92, 188, 0.16);
  --shadow-lg: 0 18px 48px rgba(52, 60, 120, 0.12);
  --shadow-md: 0 10px 30px rgba(59, 64, 113, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Plus Jakarta Sans", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(91, 106, 255, 0.08), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(130, 141, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #fbfbff 0%, #f7f8fd 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-glow {
  position: fixed;
  inset: auto;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.34;
}

.page-glow-left {
  left: -10rem;
  top: 18rem;
  background: radial-gradient(circle, rgba(103, 113, 255, 0.22), transparent 64%);
}

.page-glow-right {
  right: -11rem;
  bottom: 8rem;
  background: radial-gradient(circle, rgba(139, 135, 255, 0.18), transparent 66%);
}

.site-header,
.site-footer,
.section-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  padding: 34px 0 20px;
  justify-content: flex-start;
}

.site-footer {
  padding: 24px 0 48px;
  border-top: 1px solid rgba(32, 37, 77, 0.08);
  color: var(--muted);
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 0.92rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #171823;
}

.brand-logo-frame {
  display: inline-flex;
  width: 220px;
  height: 86px;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.brand-footer .brand-logo-frame {
  width: 196px;
  height: 76px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.pill-button:hover,
.pill-button:focus-visible {
  transform: translateY(-1px);
}

.pill-button-dark {
  min-height: 46px;
  padding-inline: 18px;
  color: white;
  background: #0f121d;
  box-shadow: 0 12px 28px rgba(16, 20, 36, 0.16);
}

.pill-button-light {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(33, 38, 80, 0.1);
  box-shadow: var(--shadow-md);
}

.pill-button-accent {
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, #6e53ff 100%);
  box-shadow: 0 16px 32px rgba(88, 101, 255, 0.28);
}

.section-shell {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(440px, 1.02fr);
  gap: 36px;
  padding-top: 12px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 44rem;
  padding: 18px 4px 26px 0;
}

.hero-eyebrow {
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.hero h1,
.feature-copy h2,
.security-section h2,
.cta-panel h2 {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  letter-spacing: -0.05em;
  text-wrap: pretty;
}

.hero h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.86rem, 2.72vw, 3.08rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero h1 .hero-line {
  display: block;
  white-space: normal;
}

.hero h1 .headline-accent {
  display: block;
  font-size: 0.94em;
  letter-spacing: -0.06em;
  white-space: normal;
  text-wrap: balance;
  background: linear-gradient(90deg, #4d60ff 0%, #6870ff 42%, #ff8b54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-body {
  margin: 22px 0 0;
  max-width: 28rem;
  color: #565a6f;
  font-size: 1.04rem;
  line-height: 1.78;
  text-wrap: pretty;
}

.desktop-break {
  display: block;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-dashboard {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-dashboard::after {
  content: "";
  position: absolute;
  inset: auto 5% -22px 5%;
  height: 70px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(91, 106, 255, 0.28) 0%, rgba(91, 106, 255, 0) 70%);
  filter: blur(16px);
  z-index: 0;
}

.snapshot-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.snapshot-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.snapshot-frame img {
  width: 100%;
  display: block;
  border-radius: 28px;
  background: #f7f8fd;
}

.snapshot-frame-hero {
  width: min(100%, 1020px);
  margin-right: 0;
}

.snapshot-frame-hero img {
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 32px 64px rgba(70, 80, 165, 0.18));
}

.snapshot-frame-section {
  width: 100%;
}

.snapshot-frame-section img {
  border-radius: 0;
  background: transparent;
}

.legal-page {
  padding: 28px 0 92px;
}

.legal-document {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(34, 40, 90, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  color: #23263a;
}

.legal-eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.legal-document h1 {
  margin: 0 0 22px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.legal-document h2 {
  margin: 34px 0 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(34, 40, 90, 0.08);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.12rem, 1.6vw, 1.34rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.7;
}

.legal-document p {
  margin: 0 0 12px;
  color: #4f5469;
  font-size: 0.95rem;
  line-height: 1.95;
}

.legal-document .legal-clause {
  padding-left: 1em;
  text-indent: -1em;
}

.legal-date {
  margin-top: 28px !important;
  color: var(--muted) !important;
  text-align: right;
}

.legal-document h3 {
  margin: 26px 0 10px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #2a2f48;
}

.legal-document a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  word-break: break-word;
}

.legal-document a:hover {
  text-decoration: none;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 14px 0 24px;
  -webkit-overflow-scrolling: touch;
}

.legal-document table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  background: white;
  border: 1px solid rgba(34, 40, 90, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.legal-document table th,
.legal-document table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(34, 40, 90, 0.08);
  line-height: 1.7;
  color: #4f5469;
}

.legal-document table th {
  background: rgba(89, 101, 255, 0.06);
  color: #2a2f48;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.legal-document table tbody tr:last-child th,
.legal-document table tbody tr:last-child td {
  border-bottom: none;
}

.legal-document table.data-events th:first-child,
.legal-document table.data-events td:first-child {
  width: 48px;
  text-align: center;
  white-space: nowrap;
}

.legal-document table.data-events td:first-child {
  font-weight: 600;
  color: var(--muted);
}

.legal-document table code,
.legal-document table .config-key {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  color: #2a2f48;
  background: rgba(89, 101, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .legal-document table {
    font-size: 0.85rem;
  }
  .legal-document table th,
  .legal-document table td {
    padding: 10px;
  }
}

.hero-dashboard .dashboard-shell {
  width: min(100%, 742px);
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 220px;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(61, 68, 130, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(22px);
}

.dashboard-sidebar,
.dashboard-main,
.dashboard-rail,
.glass-card,
.security-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(34, 40, 90, 0.08);
  box-shadow: var(--shadow-md);
}

.dashboard-sidebar,
.dashboard-main,
.dashboard-rail {
  border-radius: 22px;
}

.dashboard-sidebar {
  padding: 18px 14px;
  background: linear-gradient(180deg, rgba(252, 252, 255, 0.95), rgba(246, 247, 252, 0.95));
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.sidebar-nav a {
  padding: 11px 12px;
  border-radius: 12px;
  color: #6e7286;
  font-size: 0.88rem;
  font-weight: 600;
}

.sidebar-nav a.active {
  background: rgba(95, 108, 255, 0.12);
  color: var(--accent);
}

.dashboard-main {
  padding: 20px;
}

.dashboard-topbar {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.muted-label {
  margin: 0;
  color: #8e92a6;
  font-size: 0.8rem;
}

.member-name {
  margin: 2px 0 0;
  font-weight: 700;
}

.segmented-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  background: #f5f6fb;
  border-radius: 999px;
}

.segmented-tabs button {
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  color: #767b91;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.segmented-tabs .is-current {
  color: white;
  background: #161b2d;
  box-shadow: 0 10px 18px rgba(22, 27, 45, 0.18);
}

.date-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fafbff;
  border: 1px solid var(--line);
  color: #5f6480;
  font-size: 0.9rem;
}

.summary-card {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(250, 251, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid rgba(70, 80, 150, 0.08);
}

.summary-kicker,
.card-subtitle,
.section-en,
.stats-line span,
.timeline-list span,
.timeline-list em,
.agent-footer-note,
.ai-chip,
.today-pill {
  letter-spacing: 0.02em;
  font-size: 0.77rem;
}

.summary-kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.summary-card h2 {
  margin: 10px 0 10px;
  font-size: 1.46rem;
  text-wrap: balance;
}

.summary-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #585d73;
  line-height: 1.8;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.mini-stat {
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(34, 40, 90, 0.08);
}

.mini-stat p,
.ring-meta span,
.rail-card p,
.strip-title,
.security-card p,
.feature-copy p {
  margin: 0;
  color: #696d82;
}

.mini-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.mini-stat span {
  display: inline-block;
  margin-top: 6px;
  color: #8389a3;
  font-size: 0.8rem;
}

.ring-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ring-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(34, 40, 90, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
}

.ring {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: white;
}

.ring-36 {
  background: conic-gradient(var(--accent) 0 36%, rgba(88, 101, 255, 0.15) 36% 100%);
}

.ring-29 {
  background: conic-gradient(#6870ff 0 29%, rgba(104, 112, 255, 0.14) 29% 100%);
}

.ring-42 {
  background: conic-gradient(#7d64ff 0 42%, rgba(125, 100, 255, 0.15) 42% 100%);
}

.ring-meta strong {
  display: block;
  margin-bottom: 4px;
}

.activity-strip {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(34, 40, 90, 0.08);
}

.activity-strip.compact {
  margin-top: 0;
}

.strip-title,
.strip-axis,
.legend-row,
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.strip-title,
.card-head-wide {
  gap: 16px;
}

.strip-bars {
  display: flex;
  gap: 4px;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
  background: #eef0f8;
}

.bar {
  border-radius: 999px;
}

.is-violet {
  background: linear-gradient(90deg, #5f67ff 0%, #7a74ff 100%);
}

.is-blue {
  background: linear-gradient(90deg, #7f8cff 0%, #5463ff 100%);
}

.is-orange {
  background: linear-gradient(90deg, #ffb16d 0%, #ff8c50 100%);
}

.is-lilac {
  background: linear-gradient(90deg, #c2c7ff 0%, #a3adff 100%);
}

.strip-axis {
  margin-top: 10px;
  color: #9a9fb4;
  font-size: 0.76rem;
}

.dashboard-rail {
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.rail-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 253, 0.98));
  border: 1px solid rgba(34, 40, 90, 0.08);
}

.rail-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
}

.rail-status,
.live-pill,
.ai-chip,
.today-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #22a85d;
  background: rgba(34, 168, 93, 0.09);
  font-weight: 700;
}

.rail-agent .agent-copy {
  line-height: 1.65;
  margin-bottom: 16px;
}

.rail-agent button {
  width: 100%;
  min-height: 42px;
  border: 0;
  color: white;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent) 0%, #7160ff 100%);
}

.progress-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #50556d;
  font-size: 0.9rem;
  margin-top: 14px;
}

.progress-track {
  margin-top: 8px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #eef0f7;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5c68ff 0%, #7781ff 100%);
}

.rail-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  color: #31364f;
  background: white;
  border: 1px solid rgba(34, 40, 90, 0.08);
  border-radius: 14px;
  font-weight: 700;
}

.feature-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
  padding-top: 72px;
}

.feature-copy {
  max-width: none;
  padding: 12px 0 0;
}

.section-tag {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 26px;
}

.section-no {
  font-family: "Noto Serif JP", serif;
  font-style: italic;
  font-size: clamp(2.8rem, 4.4vw, 3.8rem);
  line-height: 1;
  color: var(--accent);
}

.section-en {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15rem !important;
  letter-spacing: 0.18em;
}

.feature-copy h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(2rem, 2.9vw, 2.85rem);
  line-height: 1.36;
}

.feature-copy h2 .feature-line {
  display: block;
  white-space: nowrap;
}

.feature-copy p {
  margin-top: 22px;
  max-width: none;
  font-size: 1.1rem;
  line-height: 1.92;
  text-wrap: pretty;
}

.feature-copy a,
.security-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 800;
}

.feature-cards {
  display: grid;
  gap: 16px;
}

.feature-cards-record {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-cards-visual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-cards-automate {
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
}

.glass-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 255, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: auto -10% 72% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 122, 255, 0.11), rgba(108, 122, 255, 0) 68%);
  pointer-events: none;
}

.card-head {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.card-head h3,
.report-card h4,
.day-report-card h4,
.agent-tile h4,
.security-card h3 {
  margin: 0;
  text-wrap: balance;
}

.card-head h3 {
  font-size: 1.02rem;
}

.card-head-wide span {
  color: #9aa0b6;
  font-size: 0.82rem;
}

.window-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: end;
  min-height: 160px;
  padding: 10px 4px 14px;
}

.window-card {
  display: block;
  height: 112px;
  border-radius: 14px;
  border: 1px solid rgba(77, 89, 162, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 255, 0.98)),
    linear-gradient(90deg, rgba(91, 101, 255, 0.1), rgba(91, 101, 255, 0.03));
  box-shadow: 0 12px 22px rgba(85, 95, 177, 0.08);
}

.w1 {
  transform: translateY(24px) rotate(-6deg);
}

.w2 {
  transform: translateY(14px) rotate(-2deg);
}

.w3 {
  transform: translateY(4px) rotate(2deg);
}

.w4 {
  transform: translateY(12px) rotate(6deg);
}

.record-list,
.activity-log,
.timeline-list,
.agent-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
}

.record-list {
  display: grid;
  gap: 10px;
  color: #60657c;
  font-size: 0.84rem;
}

.record-list li,
.timeline-list li,
.activity-log li,
.agent-metrics li {
  display: grid;
  gap: 10px;
  align-items: center;
}

.record-list li {
  grid-template-columns: 68px minmax(0, 1fr) auto;
}

.live-pill {
  color: #18a253;
  background: rgba(24, 162, 83, 0.08);
}

.transcript-card .card-subtitle {
  margin-bottom: 18px;
}

.waveform {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
  min-height: 96px;
}

.waveform span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, #5f67ff 0%, #7280ff 100%);
}

.waveform span:nth-child(1),
.waveform span:nth-child(10) {
  height: 28px;
}

.waveform span:nth-child(2),
.waveform span:nth-child(13) {
  height: 54px;
}

.waveform span:nth-child(3),
.waveform span:nth-child(8),
.waveform span:nth-child(16) {
  height: 80px;
}

.waveform span:nth-child(4),
.waveform span:nth-child(7),
.waveform span:nth-child(14) {
  height: 38px;
}

.waveform span:nth-child(5),
.waveform span:nth-child(9),
.waveform span:nth-child(12),
.waveform span:nth-child(18) {
  height: 62px;
}

.waveform span:nth-child(6),
.waveform span:nth-child(11),
.waveform span:nth-child(15),
.waveform span:nth-child(17) {
  height: 48px;
}

.transcript-lines {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: #5f647a;
  line-height: 1.75;
  font-size: 0.9rem;
}

.transcript-lines strong {
  display: inline-block;
  margin-right: 10px;
  color: var(--accent);
}

.activity-log {
  display: grid;
  gap: 10px;
}

.activity-log li {
  grid-template-columns: 24px 52px minmax(0, 1fr) auto;
  font-size: 0.87rem;
  color: #61657c;
}

.app-dot,
.tile-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.docs,
.tile-doc {
  background: linear-gradient(135deg, #4d79ff 0%, #76a4ff 100%);
}

.sheets,
.tile-data {
  background: linear-gradient(135deg, #1fbf78 0%, #54d399 100%);
}

.figma {
  background: linear-gradient(135deg, #f25c52 0%, #ff8967 100%);
}

.slack,
.tile-task {
  background: linear-gradient(135deg, #7c54ff 0%, #a18aff 100%);
}

.gmail,
.tile-gmail {
  background: linear-gradient(135deg, #ff6d53 0%, #ffba63 100%);
}

.meet {
  background: linear-gradient(135deg, #00a5c8 0%, #71d2ea 100%);
}

.report-card h4,
.day-report-card h4 {
  margin-top: 12px;
  font-size: 1.34rem;
  line-height: 1.55;
}

.report-card p,
.day-report-card p {
  color: #666b82;
  line-height: 1.8;
  text-wrap: pretty;
}

.ai-chip,
.today-pill {
  position: absolute;
  right: 20px;
  top: 56px;
}

.ai-chip {
  color: var(--accent);
  background: rgba(92, 103, 255, 0.1);
}

.today-pill {
  color: #ff7b44;
  background: rgba(255, 123, 68, 0.12);
}

.stats-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(43, 49, 98, 0.08);
}

.stats-line div strong {
  display: block;
  margin-top: 6px;
  font-size: 1.6rem;
  letter-spacing: -0.05em;
}

.heatmap {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.heatmap-head,
.heatmap-row {
  display: grid;
  grid-template-columns: 64px repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.heatmap-head {
  color: #9aa1ba;
  font-size: 0.76rem;
}

.heatmap-row span {
  color: #5d6277;
  font-size: 0.86rem;
}

.heatmap-row b {
  display: inline-flex;
  justify-content: center;
  padding: 12px 4px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2d3350;
  background: #eef1ff;
}

.heatmap-row b[data-level="1"] {
  background: #eef1ff;
}

.heatmap-row b[data-level="2"] {
  background: #dfe5ff;
}

.heatmap-row b[data-level="3"] {
  background: #cdd4ff;
}

.heatmap-row b[data-level="4"] {
  background: #b8c0ff;
}

.heatmap-row b[data-level="5"] {
  color: white;
  background: linear-gradient(135deg, #6a72ff 0%, #4e5cff 100%);
}

.timeline-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.timeline-list li {
  grid-template-columns: 120px minmax(0, 1fr) auto;
  color: #595e75;
  font-size: 0.9rem;
}

.timeline-list strong {
  font-weight: 700;
}

.timeline-list em {
  font-style: normal;
  color: #888fa7;
}

.legend-row {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 14px;
  color: #7b8097;
  font-size: 0.82rem;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 8px;
}

.legend-violet {
  background: #636cff;
}

.legend-blue {
  background: #8a95ff;
}

.legend-orange {
  background: #ff9759;
}

.legend-lilac {
  background: #c0c8ff;
}

.agent-running {
  margin-bottom: 18px;
  color: #24a860;
  font-weight: 700;
}

.agent-metrics {
  display: grid;
  gap: 12px;
}

.agent-metrics li {
  grid-template-columns: minmax(0, 1fr) auto;
  color: #61667d;
}

.agent-link {
  margin-top: 18px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.agent-tile {
  padding: 18px;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(34, 40, 90, 0.08);
}

.agent-tile h4 {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.55;
}

.agent-tile p {
  color: #666b81;
  line-height: 1.7;
  font-size: 0.9rem;
  text-wrap: pretty;
}

.tile-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  color: #6b7186;
  font-size: 0.82rem;
}

.agent-tile small {
  display: block;
  margin-top: 8px;
  color: #a0a5bb;
}

.agent-footer-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: #737991;
}

.security-section {
  padding-top: 82px;
  text-align: center;
}

.security-section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.security-card {
  padding: 24px 22px;
  border-radius: 22px;
  text-align: left;
}

.security-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(95, 107, 255, 0.1);
  line-height: 0;
}

.security-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: currentColor;
}

.security-card h3 {
  margin-top: 18px;
  line-height: 1.65;
  font-size: 1.08rem;
}

.security-card p {
  margin-top: 12px;
  line-height: 1.8;
  font-size: 1rem;
  text-wrap: pretty;
}

.cta-section {
  padding: 98px 0 82px;
}

.cta-panel {
  position: relative;
  z-index: 1;
  padding: 48px 24px 42px;
  text-align: center;
}

.cta-panel .cta-row {
  justify-content: center;
}

.cta-halo {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 1100px);
  height: 320px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(103, 115, 255, 0.22) 0%, rgba(103, 115, 255, 0.1) 34%, rgba(103, 115, 255, 0) 72%);
  filter: blur(6px);
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 2.9vw, 2.85rem);
  line-height: 1.36;
}

.cta-panel p {
  margin: 14px 0 0;
  color: #777c93;
  line-height: 1.8;
}

.cta-eyebrow {
  margin: 0 0 18px !important;
  color: var(--accent) !important;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cta-form {
  margin: 36px auto 0;
  max-width: 640px;
  display: grid;
  gap: 14px;
  text-align: left;
  padding: 28px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.cta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cta-field {
  display: grid;
  gap: 6px;
}

.cta-field > span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cta-form input,
.cta-form textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: #abafc1;
}

.cta-form input:focus,
.cta-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(89, 101, 255, 0.12);
}

.cta-form textarea {
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
}

.cta-form .cta-row {
  justify-content: center;
  margin-top: 6px;
}

.cta-note {
  margin: 4px 0 0 !important;
  text-align: center;
  font-size: 0.78rem !important;
  color: #9095ab !important;
  line-height: 1.6 !important;
}

.cta-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
  cursor: pointer;
}

.cta-consent input[type="checkbox"] {
  margin: 3px 0 0;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--accent);
  cursor: pointer;
}

.cta-consent a {
  color: var(--accent);
  text-decoration: underline;
}

.cta-consent a:hover {
  text-decoration: none;
}

@media (max-width: 720px) {
  .cta-form { padding: 20px; }
  .cta-form-row { grid-template-columns: 1fr; }
  .cta-form input,
  .cta-form textarea { font-size: 16px; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* PC（>=1281px）ではヒーローは2行表示・大きく・画像に少しかぶるレイアウト。
   feature-section（01/02/03）の見出しはspanをinline化して1行表示。 */
@media (min-width: 1281px) {
  .hero,
  .hero-copy {
    overflow: visible;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 3.05vw, 3.25rem);
    width: max-content;
    max-width: 138%;
    position: relative;
    z-index: 3;
  }

  .hero h1 .hero-line,
  .hero h1 .headline-accent {
    white-space: nowrap;
  }

  .hero-dashboard {
    position: relative;
    z-index: 1;
  }

  .feature-copy h2 {
    font-size: clamp(1.85rem, 2.35vw, 2.55rem);
    white-space: nowrap;
  }

  .feature-copy h2 .feature-line {
    display: inline;
  }
}

@media (max-width: 1280px) {
  .hero,
  .feature-section,
  .feature-cards-automate {
    grid-template-columns: 1fr;
  }

  /* hero: 見出しは自然折り返し、順序: 見出し → 画像 → CTA → メタ */
  .hero-copy {
    display: contents;
  }

  .hero h1 {
    order: 1;
  }

  .hero-dashboard {
    order: 2;
    justify-content: center;
  }

  .hero .cta-row {
    order: 3;
  }

  .hero-meta {
    order: 4;
  }

  .hero h1 .hero-line,
  .hero h1 .headline-accent {
    display: inline;
  }

  .snapshot-frame-hero {
    width: min(100%, 940px);
    margin-right: 0;
  }

  .dashboard-shell {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .dashboard-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-cards-record,
  .feature-cards-visual,
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .section-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    gap: 28px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 4.6vw, 3rem);
  }

  .hero h1 .hero-line {
    white-space: normal;
  }

  .hero h1 .headline-accent {
    white-space: normal;
    text-wrap: balance;
  }

  .feature-copy h2 .feature-line {
    white-space: normal;
  }

  .desktop-break {
    display: none;
  }

  .snapshot-frame {
    border-radius: 0;
  }

  .snapshot-frame img {
    border-radius: 22px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-topbar,
  .metric-grid,
  .ring-row,
  .dashboard-rail,
  .feature-cards-record,
  .feature-cards-visual,
  .security-grid,
  .agent-grid {
    grid-template-columns: 1fr;
  }

  .strip-axis {
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .stats-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heatmap {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .heatmap-head,
  .heatmap-row {
    min-width: 380px;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .record-list li,
  .activity-log li {
    grid-template-columns: 1fr;
  }

  .cta-row,
  .hero-note,
  .footer-links {
    gap: 12px;
  }
}

/* ============================================
   Mobile-first refinements (<= 560px)
   ============================================ */
@media (max-width: 560px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(91, 106, 255, 0.05), transparent 40%),
      linear-gradient(180deg, #fbfbff 0%, #f7f8fd 100%);
  }

  .page-glow {
    width: 22rem;
    height: 22rem;
    opacity: 0.22;
    filter: blur(48px);
  }

  .page-glow-left { left: -8rem; top: 12rem; }
  .page-glow-right { right: -8rem; bottom: 6rem; }

  .site-header,
  .site-footer,
  .section-shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  /* Header: smaller logo, tighter padding */
  .site-header {
    padding: 22px 0 8px;
  }

  .brand-logo-frame {
    width: 168px;
    height: 64px;
  }

  /* Hero */
  .hero {
    gap: 24px;
    padding-top: 8px;
  }

  .hero-copy {
    padding: 4px 0 8px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 6.6vw, 2.2rem);
    line-height: 1.42;
    letter-spacing: -0.03em;
  }

  .hero h1 .headline-accent {
    font-size: 1em;
    letter-spacing: -0.04em;
  }

  .hero-eyebrow {
    margin-bottom: 16px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .hero-eyebrow::before {
    width: 20px;
  }

  .hero-meta {
    margin-top: 12px;
    font-size: 0.82rem;
    text-align: center;
  }

  .snapshot-frame-hero {
    width: 100%;
    margin-right: 0;
  }

  .hero-body {
    margin-top: 18px;
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .cta-row {
    margin-top: 24px;
    gap: 12px;
  }

  .pill-button {
    width: 100%;
    max-width: 360px;
    min-height: 56px;
    font-size: 1rem;
  }

  .hero-dashboard::after {
    display: none;
  }

  /* Feature sections — reduce vertical padding, tighten spacing */
  .feature-section {
    gap: 28px;
    padding-top: 56px;
  }

  .feature-copy {
    padding: 0;
  }

  .section-tag {
    margin-bottom: 18px;
    gap: 10px;
  }

  .section-no {
    font-size: 2.5rem;
  }

  .section-en {
    font-size: 1.02rem;
  }

  .feature-copy h2 {
    font-size: clamp(1.55rem, 5.8vw, 2rem);
    line-height: 1.42;
    letter-spacing: -0.04em;
  }

  .feature-copy p {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.88;
  }

  /* Snapshot images — full bleed feel without overflow */
  .snapshot-stack {
    gap: 14px;
  }

  .snapshot-frame img {
    border-radius: 18px;
  }

  /* Security section */
  .security-section {
    padding-top: 64px;
  }

  .security-section h2 {
    font-size: clamp(1.6rem, 6vw, 2.05rem);
    line-height: 1.42;
    margin-bottom: 8px;
  }

  .security-grid {
    gap: 14px;
  }

  .security-card {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .security-card h3 {
    font-size: 1.06rem;
    line-height: 1.55;
  }

  .security-card p {
    font-size: 0.96rem;
    line-height: 1.78;
  }

  /* CTA section */
  .cta-section {
    padding-top: 64px;
  }

  .cta-panel {
    padding: 0;
  }

  .cta-panel h2 {
    font-size: clamp(1.7rem, 6.4vw, 2.15rem);
    line-height: 1.4;
  }

  .cta-panel p {
    font-size: 1rem;
    line-height: 1.78;
  }

  .cta-eyebrow {
    margin-bottom: 14px !important;
    font-size: 0.74rem;
  }

  .cta-form {
    margin-top: 26px;
    padding: 18px;
    gap: 12px;
    border-radius: 20px;
  }

  .cta-form-row {
    gap: 12px;
  }

  .cta-form input,
  .cta-form textarea {
    font-size: 16px;
    padding: 13px 14px;
    border-radius: 11px;
  }

  .cta-field > span {
    font-size: 0.8rem;
  }

  .cta-form .pill-button {
    max-width: none;
  }

  /* Footer */
  .site-footer {
    align-items: center;
    text-align: center;
    padding: 28px 0 36px;
    gap: 18px;
  }

  .brand-footer .brand-logo-frame {
    width: 156px;
    height: 60px;
  }

  .footer-links {
    justify-content: center;
    gap: 16px;
    font-size: 0.86rem;
  }
}

/* Extra small phones */
@media (max-width: 380px) {
  .site-header,
  .site-footer,
  .section-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .hero h1 {
    font-size: clamp(1.5rem, 7vw, 1.85rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
