/* ============================================================================
 * あいろぐ LP スタイル
 *
 * 設計方針：
 *   - デザイントークンは CSS 変数で一元管理（色・角丸・影・トランジション）
 *   - light テーマ主体、ヒーローとフッターだけ dark で「章立て」を作る
 *   - モバイルファースト。ブレークポイントは 640 / 900 / 1200
 *   - motion は `prefers-reduced-motion` で必ずガード
 * ==========================================================================*/

:root {
  /* Brand（緑）— やさしい印象を出すため彩度を下げすぎず、深緑も茶を含んだ暖色寄り */
  --accent: #2F8F6E;
  --accent-deep: #1F6B52;
  --accent-darker: #144A38;
  --accent-soft: #E7F2EC;
  --accent-line: #C5DFD1;

  /* 暖色系（ロゴの手と「あい」の色）— 福祉らしい温かみの主軸 */
  --warm: #E5675A;
  --warm-soft: #FBE5DD;
  --warm-line: #F1C4B7;
  --warm-deep: #B23F33;
  --peach: #FBD5C4;
  --butter: #F7E4A8;
  --butter-soft: #FCF3D6;
  --sun: #E89B4F;

  /* Neutrals — canvas を一段暖かいクリーム寄りに */
  --canvas: #FAF6EE;
  --paper: #FEFCF6;
  --white: #FFFFFF;
  --ink-900: #1A241F;
  --ink-800: #263129;
  --ink-700: #3A4741;
  --ink-500: #5E6B65;
  --ink-400: #838F89;
  --ink-300: #B0B9B4;
  --ink-200: #D2D9D5;
  --ink-100: #E7ECE8;
  --ink-50: #F3F5F1;

  /* Dark section — 純黒でなく、深い森の緑。暖かさを保つ */
  --night: #0F2A20;
  --night-2: #16382B;
  --night-line: rgba(255,255,255,0.08);
  --night-mute: rgba(255,255,255,0.78);
  --night-dim: rgba(255,255,255,0.56);

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(11, 21, 18, 0.05);
  --shadow-2: 0 2px 6px rgba(11, 21, 18, 0.06), 0 1px 2px rgba(11, 21, 18, 0.04);
  --shadow-3: 0 8px 24px -8px rgba(11, 21, 18, 0.12), 0 2px 4px rgba(11, 21, 18, 0.05);
  --shadow-4: 0 24px 48px -16px rgba(11, 21, 18, 0.18), 0 4px 12px rgba(11, 21, 18, 0.08);
  --shadow-brand: 0 20px 40px -20px rgba(31, 107, 82, 0.55);

  /* Radius */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 44px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-mid: 260ms;
  --dur-slow: 480ms;

  /* Typography */
  --font-body: "Zen Maru Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont,
               "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo,
               system-ui, sans-serif;
  --font-display: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ---------------- Reset & base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* ---------------- Layout ---------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 900px) {
  .container { padding: 0 32px; }
}

.section {
  padding: 96px 0;
  position: relative;
}
@media (min-width: 900px) {
  .section { padding: 128px 0; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 143, 110, 0.15);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  margin: 16px 0 12px;
  font-weight: 700;
  color: var(--ink-900);
}
.section-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-lead {
  color: var(--ink-500);
  font-size: 16.5px;
  max-width: 680px;
  margin: 0;
}
.section-head { text-align: center; margin: 0 auto 56px; max-width: 780px; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: 14.5px; letter-spacing: 0.01em;
  border: none; cursor: pointer;
  transition: background var(--dur-mid) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              color var(--dur-mid) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink-900); color: #fff;
  box-shadow: var(--shadow-3);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: var(--shadow-brand); }

.btn-brand {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-brand:hover { background: var(--accent-deep); }

.btn-ghost {
  background: transparent; color: var(--ink-800);
  border: 1.5px solid var(--ink-200);
}
.btn-ghost:hover { border-color: var(--ink-900); background: var(--paper); }

/* ダーク背景（CTA バナー内）用の透過ボタン */
.btn-light {
  background: rgba(255,255,255,0.14); color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-light:hover { background: rgba(255,255,255,0.22); }

/* 明るいヒーロー用の白 + 淡い縁のセカンダリ */
.btn-soft {
  background: var(--white); color: var(--accent-deep);
  border: 1px solid var(--accent-line);
}
.btn-soft:hover { background: var(--accent-soft); border-color: var(--accent); }

.btn .arrow {
  transition: transform var(--dur-mid) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 246, 242, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-mid) var(--ease-out),
              background var(--dur-mid) var(--ease-out);
}
.nav.is-scrolled {
  border-bottom-color: var(--ink-100);
  background: rgba(246, 246, 242, 0.92);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--ink-900);
}
.brand img { height: 40px; width: auto; }

.nav-links {
  display: none;
  gap: 4px; align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  color: var(--ink-700); font-size: 14px; font-weight: 600;
  border-radius: var(--r-pill);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-links a:hover { background: var(--ink-50); color: var(--ink-900); }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; }
@media (min-width: 900px) { .nav-links { display: inline-flex; } }

/* ---------------- Announcement pill ---------------- */
.announce {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; color: var(--ink-700);
  box-shadow: var(--shadow-1);
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.announce:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.announce .badge {
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--warm); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em;
}
.announce .arrow { opacity: 0.55; color: var(--ink-500); }

/* ---------------- Hero ----------------
   純黒の冷たいテック感を避け、温かいクリームベースに緑・桃・バターの
   ふわっとしたグラデを乗せる。福祉現場の「あかるい部屋」の光を意識。 */
.hero {
  position: relative;
  background: var(--canvas);
  color: var(--ink-900);
  padding: 88px 0 140px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -15% auto -15%; height: 95%;
  background:
    radial-gradient(45% 55% at 22% 20%, rgba(199,232,214,0.85) 0%, transparent 65%),
    radial-gradient(38% 50% at 82% 15%, rgba(251,213,196,0.72) 0%, transparent 65%),
    radial-gradient(50% 55% at 55% 90%, rgba(247,228,168,0.45) 0%, transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg fill='%232F8F6E' fill-opacity='0.06'%3E%3Ccircle cx='40' cy='60' r='2'/%3E%3Ccircle cx='120' cy='140' r='1.5'/%3E%3Ccircle cx='220' cy='80' r='2'/%3E%3Ccircle cx='260' cy='220' r='1.5'/%3E%3Ccircle cx='80' cy='240' r='2'/%3E%3Ccircle cx='170' cy='40' r='1.2'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  gap: 56px;
  align-items: center;
  text-align: center;
}
.hero-text { max-width: 780px; }
.hero-badge-row { justify-content: center; }
.hero-lead { margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }
.hero-meta { justify-content: center; }

/* ヒーロー下部の大きなスクショ */
.hero-shot {
  width: 100%;
  max-width: 1080px;
  margin-top: 8px;
  /* シャドウを少し強めにして "浮いてる感" を出す */
  transform: perspective(1500px) rotateX(1deg);
  transform-origin: 50% 100%;
}
.hero-shot .shot {
  box-shadow: 0 40px 80px -30px rgba(15, 42, 32, 0.35), 0 16px 32px -12px rgba(15, 42, 32, 0.18);
}
@media (max-width: 720px) {
  .hero-shot { transform: none; }
}

.hero-badge-row { display: flex; margin-bottom: 28px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.16;
  letter-spacing: -0.005em;
  margin: 0 0 24px;
  font-weight: 700;
  color: var(--ink-900);
}
.hero-title .accent {
  position: relative;
  color: var(--accent-deep);
  display: inline-block;
}
/* 手書き風の下線ドゥードゥル：やさしい強調に */
.hero-title .accent::after {
  content: "";
  position: absolute; left: -4%; right: -4%; bottom: -8px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath d='M4 14 C 60 4, 140 20, 200 12 S 340 6, 396 14' stroke='%23E5675A' stroke-width='5' fill='none' stroke-linecap='round' opacity='0.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 100%;
  pointer-events: none;
}
.hero-lead {
  color: var(--ink-500);
  font-size: clamp(15.5px, 1.4vw, 18px);
  max-width: 560px;
  margin: 0 0 36px;
  line-height: 1.85;
}
.hero-actions {
  display: inline-flex; gap: 12px; flex-wrap: wrap;
}
.hero-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 36px; color: var(--ink-500); font-size: 13.5px;
}
.hero-meta .item { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .item svg { flex-shrink: 0; }

/* Hero visual: floating cards mock — 明るいクリーム背景の上に浮くやさしいカード */
.hero-visual {
  position: relative;
  min-height: 480px;
  perspective: 1500px;
}
.hero-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 20px;
  color: var(--ink-900);
  box-shadow: 0 22px 44px -20px rgba(31,107,82,0.20), 0 6px 12px -8px rgba(31,107,82,0.10);
}
.hero-card-1 {
  top: 0; right: 0; width: 78%;
  border-color: var(--accent-line);
  animation: float1 8s ease-in-out infinite;
}
.hero-card-2 {
  top: 45%; left: 0; width: 62%;
  border-color: var(--warm-line);
  background: linear-gradient(180deg, var(--white) 0%, var(--peach) 320%);
  animation: float2 9s ease-in-out infinite;
}
.hero-card-3 {
  bottom: 4%; right: 6%; width: 58%;
  background: linear-gradient(135deg, var(--accent-soft), #F2F9F5);
  border-color: var(--accent-line);
  animation: float3 10s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(-1deg); } }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(1.5deg); } 50% { transform: translateY(10px) rotate(1.5deg); } }
@keyframes float3 { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(-2deg); } }

.mock-head {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-500); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px;
}
.mock-head .live {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 8px rgba(47,143,110,0.6);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.8); } }
.mock-line {
  height: 8px; border-radius: 999px; background: var(--ink-100); margin: 6px 0;
}
.mock-line.w-90 { width: 90%; }
.mock-line.w-70 { width: 70%; }
.mock-line.w-55 { width: 55%; }
.mock-line.w-40 { width: 40%; }
.mock-line.accent { background: linear-gradient(90deg, var(--accent), var(--accent-soft)); }
.mock-line.warm { background: linear-gradient(90deg, var(--warm), var(--warm-soft)); }
.mock-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.mock-avatar {
  width: 28px; height: 28px; border-radius: 999px;
  background: linear-gradient(135deg, var(--warm), var(--sun));
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.mock-tag {
  display: inline-flex; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
}
.mock-tag.warm { background: var(--warm-soft); color: var(--warm-deep); }
.mock-tag.butter { background: var(--butter-soft); color: #7A5A15; }

/* ---------------- Trust bar ---------------- */
.trust {
  padding: 44px 0 0;
  color: var(--ink-400);
}
.trust-inner { text-align: center; }
.trust-label {
  font-size: 11.5px; letter-spacing: 0.24em; font-weight: 700; text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 24px;
}
.trust-marquee {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
  color: var(--ink-500); font-weight: 700;
  font-size: 14.5px;
}
.trust-marquee .dot {
  width: 4px; height: 4px; background: var(--ink-300); border-radius: 999px;
}

/* ---------------- Bento grid ---------------- */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .bento { gap: 20px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(160px, auto); }
}

.bento-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out);
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: var(--accent-line); }
.bento-card > * { position: relative; z-index: 1; }

.bento-badge {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep);
  margin-bottom: 18px;
}
.bento-badge svg { width: 22px; height: 22px; }
.bento-card h3 {
  font-size: 19px; font-weight: 700; margin: 0 0 10px;
  color: var(--ink-900); font-family: var(--font-display);
}
.bento-card p { margin: 0; color: var(--ink-500); font-size: 14.5px; line-height: 1.7; }

@media (min-width: 720px) {
  .bento-card.span-3 { grid-column: span 3; }
  .bento-card.span-2 { grid-column: span 2; }
  .bento-card.span-4 { grid-column: span 4; }
  .bento-card.span-6 { grid-column: span 6; }
  .bento-card.row-2 { grid-row: span 2; }
}

/* Bento hero card (with visual) */
.bento-hero {
  padding: 32px;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent-darker) 100%);
  color: #fff;
  border: none;
}
.bento-hero .bento-badge { background: rgba(255,255,255,0.14); color: #fff; }
.bento-hero h3 { color: #fff; font-size: 22px; }
.bento-hero p { color: rgba(255,255,255,0.82); font-size: 15px; }
.bento-hero .mock {
  margin-top: 20px;
  background: rgba(0,0,0,0.28);
  border-radius: var(--r-md);
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 12.5px; line-height: 1.7;
  color: rgba(255,255,255,0.86);
}
.bento-hero .mock .k { color: #7FE0BD; }
.bento-hero .mock .s { color: #FBAB94; }

/* Kanban-style mock for bento cards */
.mock-mini {
  margin-top: 18px; display: flex; flex-direction: column; gap: 8px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
}
.mock-mini-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-sm);
  font-size: 12.5px; color: var(--ink-700);
}
.mock-mini-item .tag {
  padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-deep);
}
.mock-mini-item .tag.warm { background: var(--warm-soft); color: var(--warm-deep); }
.mock-mini-item .tag.amber { background: #FCEFDD; color: #B66A22; }

/* ---------------- Deep-dive section (alternating) ---------------- */
.dive {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  align-items: center;
  margin: 80px 0;
}
@media (min-width: 900px) {
  .dive { grid-template-columns: 1fr 1fr; gap: 80px; margin: 120px 0; }
  .dive.reverse .dive-visual { order: -1; }
}
.dive-text .eyebrow { margin-bottom: 18px; }
.dive-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.24;
  margin: 0 0 18px;
  font-weight: 700; letter-spacing: -0.005em;
}
.dive-text p { color: var(--ink-500); font-size: 16px; line-height: 1.85; margin: 0 0 16px; }
.dive-list { list-style: none; padding: 0; margin: 24px 0 32px; }
.dive-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--ink-100);
  font-size: 15px; color: var(--ink-800);
}
.dive-list li:first-child { border-top: none; }
.dive-list .check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; margin-top: 2px;
}
.dive-list strong { color: var(--ink-900); }

.dive-visual {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-3);
  min-height: 360px;
}
@media (min-width: 900px) {
  .dive-visual { padding: 40px; }
}

/* AI chat mock inside dive */
.chat-mock { display: flex; flex-direction: column; gap: 12px; }
.chat-msg {
  padding: 14px 18px; border-radius: var(--r-md);
  font-size: 14px; line-height: 1.7;
  max-width: 88%;
}
.chat-msg.user {
  background: var(--white); border: 1px solid var(--ink-100);
  color: var(--ink-800);
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.chat-msg.ai {
  background: linear-gradient(135deg, var(--accent-soft), #F1F9F5);
  color: var(--ink-900);
  border: 1px solid var(--accent-line);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}
.chat-msg .who {
  display: block;
  font-size: 11px; letter-spacing: 0.14em; font-weight: 700; text-transform: uppercase;
  margin-bottom: 6px; opacity: 0.66;
}
.chat-msg.ai .who { color: var(--accent-deep); }

/* Records mock */
.records-mock {
  display: flex; flex-direction: column; gap: 10px;
}
.records-mock .row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--white);
  border: 1px solid var(--ink-100); border-radius: var(--r-md);
}
.records-mock .row .time {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-400);
  min-width: 46px;
}
.records-mock .row .avatar {
  width: 30px; height: 30px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.records-mock .row .body {
  font-size: 13.5px; color: var(--ink-800); flex: 1; min-width: 0;
}
.records-mock .row .body strong { display: block; font-size: 13px; color: var(--ink-900); margin-bottom: 2px; }
.records-mock .row .tag {
  padding: 3px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-deep);
}

/* Face check-in mock */
.face-mock {
  display: flex; flex-direction: column; gap: 14px;
  align-items: center;
}
.face-frame {
  position: relative;
  width: 200px; height: 200px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--ink-100), var(--ink-50));
  border: 2px dashed var(--accent-line);
  display: grid; place-items: center; color: var(--accent-deep);
  overflow: hidden;
}
.face-frame::before {
  content: ""; position: absolute; inset: 12%;
  border: 2px solid var(--accent);
  border-radius: 999px;
  opacity: 0.7;
}
.face-frame::after {
  content: ""; position: absolute; top: 8%; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 2.4s ease-in-out infinite;
}
@keyframes scan {
  0% { top: 8%; }
  50% { top: 90%; }
  100% { top: 8%; }
}
.face-status {
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-brand);
}
.face-time { font-family: var(--font-mono); font-size: 26px; color: var(--ink-900); font-weight: 700; }

/* Billing mock */
.billing-mock {
  display: flex; flex-direction: column; gap: 12px;
}
.billing-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  font-size: 13.5px;
}
.billing-row.total {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; border: none; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-brand);
}
.billing-row .num { font-family: var(--font-mono); font-weight: 700; }
.billing-row .neg { color: var(--warm-deep); }
.billing-row.total .neg { color: #FFCFC7; }
.billing-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-deep);
}

/* Compliance timeline mock */
.timeline {
  position: relative; padding-left: 24px;
}
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: var(--accent-line);
}
.timeline-item {
  position: relative; padding: 4px 0 20px 20px;
}
.timeline-item::before {
  content: ""; position: absolute; left: -20px; top: 8px; width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--white); border: 3px solid var(--accent);
}
.timeline-item .when {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent-deep); font-weight: 700; letter-spacing: 0.08em;
}
.timeline-item .what { font-weight: 700; margin: 2px 0 4px; color: var(--ink-900); font-size: 14px; }
.timeline-item .why { color: var(--ink-500); font-size: 13px; line-height: 1.6; }

/* ---------------- Stats row ---------------- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 24px;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 22px 20px;
}
.stat .n {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.stat .l { font-size: 13px; color: var(--ink-500); font-weight: 600; }

/* ---------------- Compare table ---------------- */
.compare {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 32px;
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
@media (min-width: 900px) { .compare { padding: 48px; } }

.compare-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 720px) { .compare-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.compare-col h3 {
  font-size: 16px; font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--ink-100);
  display: flex; align-items: center; gap: 8px;
}
.compare-col.bad h3 { color: var(--warm-deep); }
.compare-col.good h3 { color: var(--accent-deep); }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  font-size: 14.5px; color: var(--ink-700);
  border-top: 1px solid var(--ink-100);
}
.compare-col li:first-child { border-top: none; }
.compare-col .icon {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center; margin-top: 3px;
}
.compare-col.bad .icon { background: var(--warm-soft); color: var(--warm-deep); }
.compare-col.good .icon { background: var(--accent-soft); color: var(--accent-deep); }

/* ---------------- Steps ---------------- */
.steps {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  counter-reset: step;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step {
  counter-increment: step;
  position: relative;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-1);
}
.step::before {
  content: "0" counter(step);
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-display);
  font-size: 44px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-line), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.85;
  line-height: 1;
}
.step h3 { margin: 20px 0 10px; font-size: 18px; font-weight: 700; }
.step p { margin: 0; color: var(--ink-500); font-size: 14.5px; }

/* ---------------- FAQ ---------------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}
.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-size: 15.5px; font-weight: 700; color: var(--ink-900);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px; color: var(--accent);
  transition: transform var(--dur-mid) var(--ease-out);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-body {
  padding: 0 24px 22px;
  color: var(--ink-500); font-size: 14.5px; line-height: 1.85;
}

/* ---------------- CTA banner ----------------
   純黒でなく深い森の緑。桃・バターの柔らかい光を差し込む */
.cta-banner {
  position: relative;
  background: linear-gradient(160deg, var(--night-2) 0%, var(--night) 100%);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 64px 32px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(15, 42, 32, 0.5);
}
@media (min-width: 720px) { .cta-banner { padding: 88px 48px; } }
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 24% 24%, rgba(199,232,214,0.28), transparent 60%),
    radial-gradient(45% 55% at 80% 78%, rgba(251,213,196,0.20), transparent 65%),
    radial-gradient(30% 40% at 55% 95%, rgba(247,228,168,0.14), transparent 65%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.24;
  margin: 0 0 16px;
  font-weight: 800;
}
.cta-banner p { margin: 0 auto 32px; max-width: 560px; color: rgba(255,255,255,0.78); font-size: 16px; }
.cta-banner .btn-brand { box-shadow: 0 12px 32px -8px rgba(47,143,110,0.6); }

/* ---------------- Footer ---------------- */
.foot {
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
  color: rgba(255,255,255,0.66);
  padding: 72px 0 40px;
  margin-top: 96px;
  border-top-left-radius: var(--r-2xl);
  border-top-right-radius: var(--r-2xl);
}
.foot-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; }
}
.foot .brand { color: #fff; margin-bottom: 20px; }
.foot .brand-desc { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 320px; line-height: 1.7; }
.foot h4 {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); font-weight: 700; margin: 0 0 16px;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot li a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  transition: color var(--dur-fast);
}
.foot li a:hover { color: #fff; }

.foot-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  color: rgba(255,255,255,0.4); font-size: 12.5px;
}
.foot-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-bottom .links a { color: rgba(255,255,255,0.5); }
.foot-bottom .links a:hover { color: #fff; }

/* ---------------- Reveal on scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- スクショフレーム（ブラウザチロメ風）----
   実際のアプリ画面を、macOS Safari 風の窓に入れて "本物っぽさ" を出す */
.shot {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 42, 32, 0.22), 0 8px 20px -10px rgba(15, 42, 32, 0.10);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
.shot:hover { transform: translateY(-3px); box-shadow: 0 40px 70px -20px rgba(15, 42, 32, 0.28), 0 12px 24px -10px rgba(15, 42, 32, 0.14); }
.shot-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-100);
}
.shot-chrome .dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--ink-200);
}
.shot-chrome .dot.r { background: #F5766B; }
.shot-chrome .dot.y { background: #F5C36A; }
.shot-chrome .dot.g { background: #7BC98F; }
.shot-chrome .addr {
  flex: 1; margin-left: 8px;
  height: 22px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  display: flex; align-items: center; padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-400);
  letter-spacing: 0.02em;
}
.shot-body {
  position: relative;
  display: block;
  background: var(--canvas);
}
.shot-body img {
  display: block;
  width: 100%;
  height: auto;
}

/* dive の visual をスクショに置き換える時の余白調整 */
.dive-visual.shot-visual {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ---------------- スクショギャラリー ---- */
.gallery {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(6, 1fr); gap: 24px; grid-auto-rows: minmax(120px, auto); }
}
.gallery .shot { display: block; }
.gallery .caption {
  padding: 14px 18px;
  background: var(--white);
  border-top: 1px solid var(--ink-100);
}
.gallery .caption h4 {
  margin: 0 0 3px;
  font-size: 15px; font-weight: 700;
  color: var(--ink-900);
  font-family: var(--font-display);
}
.gallery .caption p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-500);
}
@media (min-width: 720px) {
  .gallery .span-3 { grid-column: span 3; }
  .gallery .span-2 { grid-column: span 2; }
  .gallery .span-4 { grid-column: span 4; }
  .gallery .span-6 { grid-column: span 6; }
}

/* ---------------- 運営チームからのメッセージ（やさしさセクション） ----
   手紙のような、暖かい封筒風の白地カード。少し傾けて "手書き感" を出す */
.letter-wrap {
  position: relative;
  padding: 0 12px;
}
.letter {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 48px 32px 40px;
  box-shadow: var(--shadow-3);
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
}
@media (min-width: 720px) { .letter { padding: 64px 56px 52px; } }

/* 便箋の罫線イメージ */
.letter::before {
  content: "";
  position: absolute; top: 24px; left: 24px; right: 24px; bottom: 24px;
  border: 1.5px dashed rgba(47,143,110,0.15);
  border-radius: calc(var(--r-xl) - 8px);
  pointer-events: none;
}
/* 便箋の左上に「切手」代わりのハート */
.letter .stamp {
  position: absolute; top: -14px; left: 40px;
  width: 68px; height: 42px;
  background: var(--warm-soft);
  border: 1.5px dashed var(--warm);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--warm-deep);
  transform: rotate(-4deg);
}
.letter .stamp svg { width: 24px; height: 24px; }

.letter-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--warm-deep);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.letter h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.5;
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--ink-900);
}
.letter p {
  color: var(--ink-700);
  font-size: 15.5px;
  line-height: 2.0;
  margin: 0 0 14px;
}
.letter .sign {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-800);
  font-size: 15px;
}
.letter .sign small {
  display: block;
  font-size: 12px; color: var(--ink-500); font-weight: 500; margin-top: 4px;
}
.letter .quote-mark {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 120px;
  line-height: 1;
  color: var(--accent-soft);
  top: 8px; right: 32px;
  pointer-events: none;
}

/* ---------------- 価値観 3 枚（Values）----
   角丸カード + それぞれのイラスト（ハート・手・木） */
.values {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 720px) { .values { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.value-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  overflow: hidden;
  text-align: left;
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }

.value-card .value-illust {
  width: 68px; height: 68px; border-radius: 999px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  position: relative;
}
.value-card .value-illust svg { width: 34px; height: 34px; }

.value-card.a .value-illust {
  background: linear-gradient(135deg, var(--warm-soft), var(--peach));
  color: var(--warm-deep);
}
.value-card.b .value-illust {
  background: linear-gradient(135deg, var(--accent-soft), #DEEEE4);
  color: var(--accent-deep);
}
.value-card.c .value-illust {
  background: linear-gradient(135deg, var(--butter-soft), var(--butter));
  color: #7A5A15;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink-900);
  line-height: 1.4;
}
.value-card p {
  color: var(--ink-500);
  font-size: 14.5px; line-height: 1.85;
  margin: 0;
}

/* 微かな手描きドゥードゥルの装飾 */
.doodle {
  display: inline-block;
  vertical-align: middle;
}
.doodle-sparkle {
  color: var(--sun);
  margin: 0 4px;
}

/* handwriting 風 accent（section-title の em に混ぜて使う） */
.hand-underline {
  position: relative;
  display: inline-block;
}
.hand-underline::after {
  content: "";
  position: absolute; left: -3%; right: -3%; bottom: -6px; height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 20' preserveAspectRatio='none'%3E%3Cpath d='M4 12 C 80 4, 180 18, 260 10 S 380 4, 396 12' stroke='%23E5675A' stroke-width='4' fill='none' stroke-linecap='round' opacity='0.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 100%;
  pointer-events: none;
}

/* ---------------- お問い合わせフォーム ---- */
.contact-wrap {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr 1.15fr; gap: 56px; }
}

.contact-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.32;
  margin: 12px 0 12px;
  font-weight: 700;
  color: var(--ink-900);
}
.contact-intro p { color: var(--ink-500); font-size: 15.5px; line-height: 1.9; margin: 0 0 14px; }
.contact-intro .contact-mail {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-pill);
  color: var(--accent-deep); font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-1);
  margin-top: 12px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-3);
}
@media (min-width: 720px) { .contact-form { padding: 36px 32px 32px; } }

.contact-form .row {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 640px) {
  .contact-form .row.row-2 { grid-template-columns: 1fr 1fr; gap: 14px; }
}

.contact-form label {
  display: block;
  font-size: 12.5px; font-weight: 700; color: var(--ink-700);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.contact-form label .req { color: var(--warm-deep); margin-left: 4px; }
.contact-form label .opt { color: var(--ink-400); font-weight: 500; margin-left: 6px; font-size: 11.5px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--ink-100);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
  -webkit-appearance: none; appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(47,143,110,0.12);
}
.contact-form textarea { min-height: 140px; resize: vertical; line-height: 1.75; }

.contact-form .consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 8px 0 4px;
  font-size: 13px; color: var(--ink-700); line-height: 1.7;
}
.contact-form .consent input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.contact-form .consent a { color: var(--accent-deep); text-decoration: underline; }

.contact-form .actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; flex-wrap: wrap;
}
.contact-form .actions .btn { flex: 1; min-width: 200px; }
.contact-form .actions .note { color: var(--ink-400); font-size: 12.5px; }

.contact-form .honeypot {
  position: absolute;
  left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
  opacity: 0; pointer-events: none;
}

.contact-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px; line-height: 1.7;
  display: none;
}
.contact-msg.ok {
  background: var(--accent-soft); color: var(--accent-deep);
  border: 1px solid var(--accent-line);
  display: block;
}
.contact-msg.err {
  background: var(--warm-soft); color: var(--warm-deep);
  border: 1px solid var(--warm-line);
  display: block;
}

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
