:root {
  --ink: #111418;
  --ink-soft: #1c2127;
  --sald-green: #00913a;
  --text: #2a3138;
  --text-muted: #626c76;
  --bg: #ffffff;
  --bg-alt: #f5f6f7;
  --border: #e5e8eb;
  --highlight: #e7f1ea;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only { display: none; }

/* オープニング */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.intro-logo {
  width: min(300px, 56vw);
  clip-path: inset(0 100% 0 0);
}

.intro-run .intro-logo {
  animation: intro-wipe 0.85s cubic-bezier(0.76, 0, 0.24, 1) 0.1s forwards;
}

@keyframes intro-wipe {
  to { clip-path: inset(0 0 0 0); }
}

.intro-bar {
  width: min(300px, 56vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.intro-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.intro-run .intro-bar::after {
  animation: intro-fill 1.1s cubic-bezier(0.76, 0, 0.24, 1) 0.1s forwards;
}

@keyframes intro-fill {
  to { transform: scaleX(1); }
}

.intro-done .intro {
  transform: translateY(-101%);
}

/* 見出しの文字リビール */
.split .ch {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.split .ch-in {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i) * 0.035s);
}

.split.title-in .ch-in {
  transform: none;
}

/* カスタムカーソル */
body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: #fff;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  transition: width 0.25s, height 0.25s, margin 0.25s, background 0.25s;
}

.cursor-ring--on {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  background: rgba(255, 255, 255, 0.18);
}

/* 進捗レール */
.rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  mix-blend-mode: difference; /* 黒背景セクションでも視認できる */
}

.rail--visible {
  opacity: 1;
  pointer-events: auto;
}

.rail-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border: none;
  background: none;
  padding: 2px 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.rail-item:hover { color: #fff; }

.rail-num {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.rail-label {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
}

.rail:hover .rail-label,
.rail-item--on .rail-label {
  opacity: 1;
  transform: none;
}

.rail-item--on {
  color: #fff;
}

.rail-item--on .rail-num {
  font-size: 0.86rem;
}

@media (max-width: 1000px) {
  .rail { display: none; }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo-link { display: flex; align-items: center; }

.logo-img { height: 22px; width: auto; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.nav a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  padding: 9px 20px;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  transition: opacity 0.15s;
}

.nav-cta:hover { opacity: 0.82; }

/* ハンバーガー（モバイルのみ表示） */
.menu-btn {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
}

.menu-btn span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 23px; }

.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  padding: 100px 32px 40px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.drawer-nav .drawer-cta {
  margin-top: 22px;
  border-bottom: none;
  background: var(--ink);
  color: #fff;
  text-align: center;
  border-radius: 999px;
  padding: 15px 20px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 85% 10%, #eef2f0 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 5% 95%, #eef0f3 0%, transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero-mark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%) rotate(6deg);
  height: 76%;
  width: auto;
  opacity: 0.05;
  pointer-events: none;
  transition: opacity 0.6s;
}

.hero-mark--hidden { opacity: 0; }

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%; /* 書き直し演出で見出しが空になる間も幅を保ち、横ズレを防ぐ */
  padding-top: 130px;
  padding-bottom: 90px;
}

.hero-eyebrow {
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(1.64rem, 5.4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.42;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
  min-height: 2.84em; /* 打ち直し演出中の高さを確保してレイアウトシフトを防ぐ */
}

.hero-title .ghost {
  color: #9aa4ae;
  font-weight: 700;
}

.type-caret {
  display: inline-block;
  width: 3px;
  height: 0.92em;
  margin-left: 5px;
  vertical-align: -0.06em;
  background: var(--ink);
  animation: caret-blink 1.05s steps(1) infinite;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  min-height: 22px;
  margin-bottom: 30px;
  transition: opacity 0.4s;
}

.hero-note-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex: none;
}

.hero-note--busy { color: #8a949e; }

.hero-title .accent {
  background: linear-gradient(transparent 62%, var(--highlight) 62%);
  padding: 0 0.06em;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 42px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 36px;
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:hover { transform: translateY(-2px); opacity: 0.85; }

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-ghost {
  border: 1.5px solid #c8cdd2;
  color: var(--ink);
}

.button-light {
  background: #fff;
  color: var(--ink);
}

.button-large {
  padding: 16px 48px;
  font-size: 1.05rem;
}

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.eyebrow-light { color: #98a2ac; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 44px;
  line-height: 1.4;
}

/* Problem */
.problems {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-bottom: 44px;
}

.problem {
  background: var(--bg-alt);
  border-left: 3px solid var(--ink);
  border-radius: 0 14px 14px 0;
  padding: 20px 26px;
  font-size: 1rem;
}

.problem strong { color: var(--ink); }

.problem-lead {
  font-size: 1.05rem;
  color: var(--text);
}

.problem-lead strong {
  background: linear-gradient(transparent 62%, var(--highlight) 62%);
}

/* Services */
.services {
  display: grid;
  gap: 28px;
}

.service {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 42px 46px;
  box-shadow: 0 10px 32px rgba(17, 20, 24, 0.05);
}

.service-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.service-num {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #aab2ba;
  letter-spacing: 0.08em;
}

.service h3 {
  font-size: 1.35rem;
  color: var(--ink);
}

.service p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service-points {
  list-style: none;
  margin: 18px 0 4px;
  display: grid;
  gap: 8px;
}

.service-points li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 24px;
  position: relative;
}

.service-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ink);
  font-weight: 700;
}

.service .origin {
  margin-top: 16px;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--sald-green);
  font-size: 0.92rem;
  color: var(--text);
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
}

.text-link:hover { opacity: 0.7; }

/* Product (sald) */
.product-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
}

.product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 20%, #00a844, var(--sald-green) 70%);
  border-radius: 18px;
  padding: 44px 28px;
  transition: filter 0.2s;
}

.product-visual:hover { filter: brightness(1.06); }

.product-logo { width: min(200px, 80%); }

.feature-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.store-badge { height: 42px; width: auto; display: block; }

/* Why TOYACHI (statement) */
.statement {
  background: var(--ink);
  color: #fff;
  padding: 110px 0;
  text-align: center;
}

.statement-text {
  font-size: clamp(1.5rem, 3.8vw, 2.4rem);
  font-weight: 900;
  line-height: 1.55;
  margin: 16px 0 24px;
}

.statement-sub {
  max-width: 680px;
  margin: 0 auto 52px;
  color: #aeb7c0;
  font-size: 0.97rem;
  text-align: left;
}

/* 律のライブコンソール */
.console {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: left;
  background: #0a0d10;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.console-bar p {
  margin-left: 8px;
  font-size: 0.72rem;
  color: #8b949e;
  letter-spacing: 0.04em;
}

.console-body {
  margin: 0;
  padding: 20px 22px 24px;
  min-height: 13.5em;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.9;
  color: #c9d1d9;
  white-space: pre-wrap;
  word-break: break-all;
}

.console-caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: #c9d1d9;
  animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.evidence-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px 26px;
}

.evidence-item h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 10px;
}

.evidence-item p {
  font-size: 0.88rem;
  color: #aeb7c0;
}

.evidence-item a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.evidence-item a:hover { opacity: 0.75; }

/* Proof（AI経営の現物） */
.proof-lead {
  max-width: 720px;
  font-size: 0.97rem;
  color: var(--text);
  margin-bottom: 40px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 18px;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px 22px;
}

.stat-num {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 2.7rem;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-num span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-left: 4px;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.proof-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 60px;
}

.proof-sub {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 12px;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.review-who {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.review-quote {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 14px;
}

.review-fixed {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sald-green);
}

/* Message */
.message {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  align-items: start;
}

.message-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  position: sticky;
  top: 100px;
}

.avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.sns-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--ink);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.sns-links a:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.message-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink);
}

.message-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.message-body p {
  font-size: 0.97rem;
  color: var(--text);
  margin-bottom: 1.3em;
}

.message-body p:last-child {
  margin-bottom: 0;
  font-weight: 700;
  color: var(--ink);
}

/* Values */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value {
  background: var(--bg);
  border-radius: 18px;
  padding: 28px 24px;
  border: 1px solid var(--border);
}

.value-num {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  color: #aab2ba;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.value h3 {
  font-size: 1rem;
  color: var(--ink);
  margin: 6px 0 8px;
}

.value p { font-size: 0.88rem; color: var(--text-muted); }

/* FAQ */
.faqs {
  display: grid;
  gap: 14px;
}

.faq {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 52px 20px 26px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq[open] summary::after {
  content: "−";
}

.faq p {
  padding: 0 26px 20px;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* About */
.about-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.about-table th,
.about-table td {
  text-align: left;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

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

.about-table th {
  width: 170px;
  color: var(--ink);
  font-weight: 700;
  background: #fafbfc;
  vertical-align: top;
}

/* Contact */
.contact {
  background: var(--ink);
  color: #fff;
  padding: 110px 0;
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 900;
  margin: 10px 0 18px;
}

.contact p {
  color: #aeb7c0;
  margin-bottom: 36px;
}

/* 律 シネマティック登場（予兆グリッチ→正面登場→FABへ着地） */
.glitch {
  position: fixed;
  inset: 0;
  z-index: 69;
  background: #05070a;
  overflow: hidden;
  pointer-events: none;
}

.glitch-slice {
  position: absolute;
  left: 0;
  width: 100%;
  height: 17%;
  background-repeat: no-repeat;
  opacity: 0.92;
}

.ritu-reveal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 7, 10, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
}

/* display:flexがhidden属性に勝ってしまうのを防ぐ（透明のままクリックを塞ぐ事故防止） */
.ritu-reveal[hidden] { display: none; }

.ritu-reveal--on { opacity: 1; }

.reveal-inner { text-align: center; }

.reveal-avatar {
  width: min(52vw, 240px);
  height: min(52vw, 240px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 70px rgba(110, 150, 255, 0.5), 0 0 180px rgba(110, 150, 255, 0.22);
  animation: reveal-pop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes reveal-pop {
  0% { transform: scale(0.55); filter: blur(14px); opacity: 0; }
  100% { transform: scale(1); filter: blur(0); opacity: 1; }
}

.reveal-name {
  margin-top: 20px;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
}

.reveal-name span {
  display: block;
  margin-top: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: #8b949e;
}

.reveal-line {
  margin-top: 16px;
  color: #c9d1d9;
  font-size: 0.95rem;
  min-height: 1.7em;
  padding: 0 24px;
}

/* AI CEO 律ウィジェット */
.console-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ritu {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
}

.ritu-fab {
  display: block;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 8px 28px rgba(17, 20, 24, 0.28);
  animation: ritu-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform 0.15s;
}

.ritu-fab:hover { transform: scale(1.07); }

.ritu-fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes ritu-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* 登場直後だけ波紋で視線を集める */
@keyframes ritu-pulse {
  0% { box-shadow: 0 8px 28px rgba(17, 20, 24, 0.28), 0 0 0 0 rgba(17, 20, 24, 0.34); }
  70% { box-shadow: 0 8px 28px rgba(17, 20, 24, 0.28), 0 0 0 16px rgba(17, 20, 24, 0); }
  100% { box-shadow: 0 8px 28px rgba(17, 20, 24, 0.28), 0 0 0 0 rgba(17, 20, 24, 0); }
}

.ritu-fab--pulse {
  animation: ritu-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), ritu-pulse 2.3s ease-out 0.6s 3;
}

.ritu-bubble {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: max-content;
  max-width: 240px;
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.6;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 10px 30px rgba(17, 20, 24, 0.16);
  animation: ritu-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ritu-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 340px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(17, 20, 24, 0.22);
  overflow: hidden;
  animation: ritu-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
}

.ritu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
}

.ritu-avatar {
  position: relative;
  display: inline-flex;
  flex: none;
}

.ritu-head img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

/* 実際にJSが稼働しているサイン */
.ritu-live {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #31c48d;
  border: 2px solid var(--ink);
}

@keyframes ritu-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(49, 196, 141, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(49, 196, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(49, 196, 141, 0); }
}

.ritu-live { animation: ritu-live-pulse 2.4s ease-out infinite; }

.ritu-name {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.3;
}

.ritu-title {
  font-size: 0.7rem;
  color: #aeb7c0;
  line-height: 1.4;
}

.ritu-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.ritu-close:hover { background: rgba(255, 255, 255, 0.25); }

.ritu-msgs {
  max-height: 300px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ritu-msg {
  max-width: 86%;
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.ritu-msg--ritu {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--text);
  border-radius: 4px 14px 14px 14px;
}

.ritu-msg--user {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  border-radius: 14px 4px 14px 14px;
}

.ritu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.ritu-chip {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.ritu-chip:hover {
  background: var(--ink);
  color: #fff;
}

.ritu-chip--cta {
  background: var(--ink);
  color: #fff;
}

.ritu-chip--cta:hover { opacity: 0.85; }

.ritu-disclaimer {
  padding: 0 16px 12px;
  font-size: 0.64rem;
  color: #626c76;
  line-height: 1.5;
}

/* キーボードフォーカスの可視化（カスタムカーソル環境でも効く） */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.statement a:focus-visible,
.contact a:focus-visible,
.ritu-close:focus-visible {
  outline-color: #fff;
}

/* Footer */
.site-footer {
  background: #0b0e11;
  color: #7d8791;
  padding: 52px 0 36px;
  font-size: 0.85rem;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-tagline {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #9aa4ae;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  max-width: 380px;
  justify-content: flex-end;
}

.footer-nav a {
  color: #aeb7c0;
  text-decoration: none;
  font-size: 0.82rem;
}

.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

.footer-sns {
  display: flex;
  gap: 18px;
}

.footer-sns a {
  color: #aeb7c0;
  text-decoration: none;
  font-weight: 700;
}

.footer-sns a:hover { color: #fff; }

.footer-logo { height: 18px; width: auto; opacity: 0.9; }

/* Mobile */
@media (max-width: 760px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }

  .nav { gap: 10px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav-cta { font-size: 0.78rem; padding: 8px 16px; }
  .menu-btn { display: block; }

  .logo-img { height: 18px; }

  .hero-mark {
    height: 46%;
    right: -60px;
    top: auto;
    bottom: -30px;
    transform: rotate(6deg);
  }

  .section { padding: 68px 0; }

  .hero-note { font-size: 0.66rem; margin-bottom: 24px; }

  .service { padding: 30px 24px; }

  .product-split { grid-template-columns: 1fr; }
  .product-visual { padding: 36px 24px; }

  .evidence { grid-template-columns: 1fr; }

  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 16px 16px; }
  .stat-num { font-size: 2.1rem; }
  .reviews { grid-template-columns: 1fr; gap: 12px; }

  .message { grid-template-columns: 1fr; gap: 28px; }
  .message-profile { position: static; flex-direction: row; text-align: left; }
  .message-profile .sns-links { justify-content: flex-start; }
  .avatar-img { width: 84px; height: 84px; }

  .values { grid-template-columns: 1fr 1fr; gap: 14px; }

  .about-table th { width: 108px; padding: 15px 16px; }
  .about-table td { padding: 15px 16px; }

  .footer-top { flex-direction: column; }
  .footer-nav { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .console-body { font-size: 0.72rem; min-height: 15em; }

  .ritu { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .ritu-fab { width: 56px; height: 56px; }
  .ritu-panel { width: calc(100vw - 28px); }
  .ritu-msgs { max-height: 44vh; }
}

/* 動きを減らす設定のユーザーにはアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .nav-cta { transition: none; }

  .console-caret { animation: none; }

  .ritu-fab,
  .ritu-bubble,
  .ritu-panel,
  .ritu-live,
  .ritu-fab--pulse { animation: none; }

  .glitch,
  .ritu-reveal { display: none; }
}
