/* ==========================================================================
   yutimo mail — トップページ（未ログイン時のホームページ）
   style.css のトークン・ボタン(.btn-yutimo等)・リセットを前提に、
   このページ固有のレイアウトと演出のみをここに書く。
   ========================================================================== */

/* style.css の body は「1画面固定・内部スクロール」を前提にしているが、
   このページは通常の縦スクロールページなので上書きする。 */
body.home-page {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}

.home-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--accent);
  color: var(--text-on-accent);
  border-radius: 0 0 var(--radius-sm) 0;
}

.home-skip-link:focus-visible {
  left: 0;
}

/* ---- Nav ------------------------------------------------------------ */

.home-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: rgba(245, 246, 249, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.home-nav-brand {
  display: flex;
  align-items: center;
}

.home-nav-logo {
  height: 26px;
  width: auto;
  display: block;
}

.home-nav-login {
  width: auto;
  padding: 8px 18px;
}

.home-nav-links {
  display: flex;
  gap: var(--space-5);
  margin-left: auto;
  margin-right: var(--space-5);
}

.home-nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: var(--text-md);
  text-decoration: none;
}

.home-nav-links a:hover {
  color: var(--text);
}

/* ---- Hero ------------------------------------------------------------ */

.home-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-7) var(--space-5) calc(var(--space-7) + var(--space-5));
}

.home-hero-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.home-blob-a {
  width: 420px;
  height: 420px;
  top: -140px;
  left: -80px;
  background: var(--accent-gradient);
  animation: home-drift-a 16s ease-in-out infinite;
}

.home-blob-b {
  width: 360px;
  height: 360px;
  top: -60px;
  right: -120px;
  background: linear-gradient(135deg, #8b7bf5 0%, #4b63ef 100%);
  animation: home-drift-b 18s ease-in-out infinite;
}

.home-float {
  position: absolute;
  font-size: 28px;
  opacity: 0.35;
  animation: home-float-slow 6s ease-in-out infinite;
}

.home-float-1 {
  top: 5%;
  left: 3%;
}

.home-float-2 {
  bottom: 6%;
  right: 5%;
  animation-delay: -2s;
  animation-duration: 7s;
}

.home-float-3 {
  top: 5%;
  right: 6%;
  animation-delay: -4s;
  animation-duration: 5.5s;
}

@keyframes home-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes home-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.05); }
}

@keyframes home-float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.home-hero-grid {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: var(--space-6);
}

.home-hero-inner {
  position: relative;
  max-width: 560px;
  text-align: left;
}

.home-eyebrow {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: var(--text-sm);
  font-weight: 650;
}

.home-hero h1 {
  text-wrap: balance;
  font-size: clamp(28px, 5.5vw, 44px);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 750;
  margin-bottom: var(--space-4);
}

.home-hero-sub {
  text-wrap: balance;
  word-break: auto-phrase;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.home-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.home-hero-btn {
  width: auto;
  padding: 14px 32px;
  font-size: var(--text-lg);
}

.home-hero-link {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}

.home-hero-link:hover {
  color: var(--text);
}

/* ---- Trust strip ------------------------------------------------------ */

.home-trust {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--card-bg);
}

.home-trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
}

.home-trust-list li::before {
  content: "✓";
  color: var(--success);
  margin-right: 6px;
}

/* ---- Product screenshots ------------------------------------------------ */

.home-screens {
  background: var(--bg);
  padding: var(--space-7) var(--space-5);
}

.home-screens-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-6);
}

.home-screen-desktop {
  flex: 1 1 640px;
  max-width: 720px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--card-bg);
}

.home-screen-desktop img {
  display: block;
  width: 100%;
  height: auto;
}

.home-screen-mobile {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 22px;
  overflow: hidden;
  border: 6px solid var(--card-bg);
  box-shadow: var(--shadow-lg);
}

.home-screen-mobile img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 760px) {
  .home-screens-inner {
    flex-direction: column-reverse;
    align-items: center;
  }

  .home-screen-desktop {
    max-width: 100%;
  }

  .home-screen-mobile {
    width: min(260px, 70vw);
  }
}

/* ---- Section shell ----------------------------------------------------- */

.home-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-5);
}

.home-section-title {
  text-align: center;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

/* ---- Feature grid ------------------------------------------------------- */

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.home-feature-card {
  padding: var(--space-5);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.home-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.home-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  font-size: 22px;
}

.home-feature-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.home-feature-card p {
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* ---- Security band ------------------------------------------------------ */

.home-security {
  background:
    radial-gradient(900px 420px at 50% 0%, var(--accent-soft) 0%, transparent 65%),
    var(--bg-subtle);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.home-security-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-5);
  text-align: center;
}

.home-security-inner h2 {
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: var(--space-4);
}

.home-security-inner p {
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* ---- Final CTA ----------------------------------------------------------- */

.home-cta {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-5);
  text-align: center;
}

.home-cta h2 {
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: var(--space-5);
}

.home-cta-btn {
  display: inline-flex;
  width: auto;
  padding: 14px 32px;
  font-size: var(--text-lg);
}

/* ---- Footer ---------------------------------------------------------------- */

.home-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-5) calc(var(--space-6) + var(--safe-bottom));
  color: var(--text-faint);
  font-size: var(--text-sm);
}

.home-footer-logo {
  height: 20px;
  width: auto;
  opacity: 0.7;
}

/* ---- Scroll reveal ------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease, ease), transform 0.6s var(--ease, ease);
}

.reveal-visible {
  opacity: 1;
  transform: none;
}

/* home-feature-grid内は少しずつ時差をつけて表示する */
.home-feature-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.home-feature-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.home-feature-grid .reveal:nth-child(4) { transition-delay: 0.06s; }
.home-feature-grid .reveal:nth-child(5) { transition-delay: 0.12s; }
.home-feature-grid .reveal:nth-child(6) { transition-delay: 0.18s; }

@media (max-width: 640px) {
  .home-hero {
    padding: var(--space-6) var(--space-4) var(--space-6);
  }

  .home-trust-list {
    flex-direction: column;
    gap: var(--space-2);
  }

  .home-blob-a,
  .home-blob-b {
    width: 260px;
    height: 260px;
  }
}


/* ==========================================================================
   2026-09-29 追加: 機能紹介の拡充（動くモック・お試しデモ・詳細説明・FAQ）
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

.home-kicker {
  text-align: center;
  color: var(--accent-dark);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
}

.home-section-title {
  line-height: var(--leading-tight);
}

/* ---- Hero mock (動く受信箱) ------------------------------------------- */

.home-mock {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: home-mock-bob 7s ease-in-out infinite;
}

.home-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--hairline);
  background: var(--card-bg-alt);
}

.home-mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.home-mock-title {
  margin-left: var(--space-2);
  font-weight: 700;
  font-size: var(--text-md);
}

.home-mock-badge {
  padding: 1px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: var(--text-xs);
  font-weight: 700;
}

.home-mock-list {
  list-style: none;
}

.home-mock-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  transform: translateX(28px);
  animation: home-mail-in 0.7s var(--ease) forwards;
}

.home-mock-row-1 { animation-delay: 0.4s; }
.home-mock-row-2 { animation-delay: 1.0s; }
.home-mock-row-3 { animation-delay: 1.6s; }
.home-mock-row-4 { animation-delay: 2.2s; }

.home-mock-row-2 {
  background: var(--warning-soft);
}

.home-mock-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: var(--text-md);
}

.home-av-a { background: #e0a823; }
.home-av-b { background: #c94fd6; }
.home-av-c { background: #d6497f; }
.home-av-d { background: #4b63ef; }

.home-mock-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-mock-text b {
  font-size: var(--text-md);
}

.home-mock-text em {
  font-style: normal;
  color: var(--text-muted);
  font-size: var(--text-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-pill {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 650;
  white-space: nowrap;
}

.home-pill-safe {
  background: var(--success-soft);
  color: var(--success);
}

.home-pill-risky {
  background: var(--warning-soft);
  color: var(--warning);
  box-shadow: 0 0 0 0 var(--warning-line);
  animation: home-pill-pulse 2.4s ease-out 3s infinite;
}

.home-mock-note {
  padding: var(--space-2) var(--space-4);
  color: var(--text-faint);
  font-size: var(--text-2xs);
}

@keyframes home-mail-in {
  to { opacity: 1; transform: none; }
}

@keyframes home-mock-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes home-pill-pulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 220, 171, 0.9); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(240, 220, 171, 0); }
}

/* ---- Marquee ---------------------------------------------------------------- */

.home-marquee {
  overflow: hidden;
  background: var(--accent-gradient);
  color: var(--text-on-accent);
}

.home-marquee-track {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  padding: var(--space-3) 0;
  animation: home-marquee 38s linear infinite;
}

.home-marquee-track span {
  white-space: nowrap;
  font-weight: 650;
  font-size: var(--text-md);
}

@keyframes home-marquee {
  to { transform: translateX(-50%); }
}

/* ---- Pain points ----------------------------------------------------------- */

.home-pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-4);
}

.home-pain {
  padding: var(--space-5);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.home-pain-emoji {
  display: block;
  font-size: 30px;
  margin-bottom: var(--space-2);
  animation: home-float-slow 5s ease-in-out infinite;
}

.home-pain:nth-child(2) .home-pain-emoji { animation-delay: -1.2s; }
.home-pain:nth-child(3) .home-pain-emoji { animation-delay: -2.4s; }
.home-pain:nth-child(4) .home-pain-emoji { animation-delay: -3.6s; }

.home-pain-q {
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}

.home-pain-a {
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* ---- Interactive link demo ------------------------------------------------- */

.home-demo {
  background:
    radial-gradient(900px 420px at 50% 0%, var(--accent-soft) 0%, transparent 65%),
    var(--bg-subtle);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.home-demo-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-5);
}

.home-demo-lead {
  text-align: center;
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.home-demo-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.home-demo-tabs {
  display: flex;
  overflow-x: auto;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--card-bg-alt);
  border-bottom: 1px solid var(--hairline);
}

.home-demo-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  color: var(--text-muted);
  font: inherit;
  font-size: var(--text-md);
  font-weight: 650;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.home-demo-tab:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.home-demo-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
}

.home-demo-mail {
  padding: var(--space-5);
}

.home-demo-badge {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  background: var(--success-soft);
  color: var(--success);
  transition: background var(--transition-base), color var(--transition-base);
}

.home-demo-badge.is-hidden {
  display: none;
}

.home-demo-badge.is-risky {
  background: var(--warning-soft);
  color: var(--warning);
}

.home-demo-badge strong {
  display: block;
  font-weight: 650;
}

.home-demo-badge span span {
  color: var(--text-muted);
}

.home-demo-badge.is-pop {
  animation: home-pop 0.45s var(--ease);
}

@keyframes home-pop {
  0% { transform: scale(0.94); opacity: 0; }
  60% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); }
}

.home-demo-subject {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}

.home-demo-from {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.home-demo-body {
  line-height: var(--leading-relaxed);
  padding: var(--space-4);
  background: var(--card-bg-alt);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

.home-demo-body a {
  color: #1a56d6;
  text-decoration: underline;
  cursor: pointer;
  word-break: break-all;
}

.home-demo-body a.yutimo-link-risky {
  background: var(--warning-soft);
  outline: 1px solid var(--warning-line);
  border-radius: 3px;
}

.home-demo-body a.yutimo-link-risky::after {
  content: " ⚠";
}

.home-demo-body p + p {
  margin-top: var(--space-3);
}

.home-demo-hint {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-faint);
  font-size: var(--text-sm);
}

.home-demo-foot {
  margin-top: var(--space-4);
  text-align: center;
  color: var(--text-faint);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.home-demo-modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: var(--overlay-bg);
}

.home-demo-modal[hidden] {
  display: none;
}

.home-demo-modal-box {
  width: min(420px, 100%);
  padding: var(--space-5);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  animation: home-pop 0.3s var(--ease);
}

.home-demo-modal-title {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--warning);
  margin-bottom: var(--space-2);
}

.home-demo-modal-reasons {
  color: var(--text);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-3);
}

.home-demo-modal-url {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  word-break: break-all;
  margin-bottom: var(--space-4);
}

.home-demo-modal-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.home-demo-modal-actions .btn-secondary {
  width: auto;
}

.home-demo-modal-note {
  margin-top: var(--space-3);
  color: var(--text-faint);
  font-size: var(--text-sm);
  text-align: right;
}

/* ---- Feature deep dives ------------------------------------------------------- */

.home-deep {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 820px;
  margin: 0 auto;
}

.home-deep-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.home-deep-num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  font-weight: 750;
  font-size: var(--text-lg);
}

.home-deep-body {
  flex: 1 1 auto;
  min-width: 0;
}

.home-deep-body h3 {
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}

.home-deep-body p {
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.home-deep-body p + p,
.home-deep-body ul + p {
  margin-top: var(--space-3);
}

.home-deep-body ul {
  margin: var(--space-3) 0 0;
  padding-left: 1.2em;
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.home-deep-body li + li {
  margin-top: var(--space-1);
}

.home-deep-body strong {
  color: var(--text);
}

.home-deep-body code {
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.home-deep-note {
  font-size: var(--text-sm);
}

/* ---- Swipe demo ------------------------------------------------------------------ */

.home-swipe {
  position: relative;
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
}

.home-swipe-help {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.home-swipe-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.home-swipe-row {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

/* 実際のスマホ版（style.css の .swipe-reveal / .swipe-action-btn）と同じ見た目: 行の下に隠れていて、
   スワイプで開く。右スワイプで左側に「既読にする」、左スワイプで右側に「迷惑メール」「削除」。 */
.home-swipe-reveal {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
}

.home-swipe-reveal-start { left: 0; }
.home-swipe-reveal-end { right: 0; }

.home-swipe-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 76px;
  border: none;
  padding: 0 4px;
  color: #fff;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.home-swipe-btn svg {
  width: 20px;
  height: 20px;
}

.home-swipe-btn.c-blue { background: var(--accent); }
.home-swipe-btn.c-orange { background: #d4881d; }
.home-swipe-btn.c-red { background: #dd4b41; }

.home-swipe-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--card-bg);
  box-shadow: 0 0 0 1px var(--card-bg);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.25s var(--ease);
}

.home-swipe-card.is-dragging {
  transition: none;
  cursor: grabbing;
}

.home-swipe-card .home-mock-text b {
  font-weight: 700;
}

.home-swipe-row.is-read .home-mock-text b {
  font-weight: 500;
  color: var(--text-muted);
}

.home-swipe-row.is-read .home-swipe-dot {
  visibility: hidden;
}

.home-swipe-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.home-swipe-row.is-gone {
  display: none;
}

.home-swipe-reset {
  width: auto;
  margin-top: var(--space-3);
  padding: 6px 14px;
}

.home-swipe-toast {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--text);
  color: #fff;
  font-size: var(--text-md);
  box-shadow: var(--shadow-pop);
}

.home-swipe-toast[hidden] {
  display: none;
}

.home-swipe-toast button {
  border: 0;
  background: transparent;
  color: #b9c4ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ---- Stats -------------------------------------------------------------------------- */

.home-stats {
  background: var(--card-bg);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.home-stats-list {
  list-style: none;
  max-width: 940px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-5);
  text-align: center;
}

.home-stats-list b {
  display: block;
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-stats-list span {
  color: var(--text-muted);
  font-size: var(--text-md);
  font-weight: 600;
}

/* ---- Steps ----------------------------------------------------------------------------- */

.home-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  max-width: 940px;
  margin: 0 auto;
}

.home-step {
  position: relative;
  padding: var(--space-5);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  text-align: center;
}

.home-step-icon {
  display: block;
  font-size: 34px;
  margin-bottom: var(--space-2);
}

.home-step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.home-step p {
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  text-align: left;
}

.home-steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.home-steps .reveal:nth-child(3) { transition-delay: 0.2s; }
.home-stats-list .reveal:nth-child(2) { transition-delay: 0.08s; }
.home-stats-list .reveal:nth-child(3) { transition-delay: 0.16s; }
.home-stats-list .reveal:nth-child(4) { transition-delay: 0.24s; }
.home-pain-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.home-pain-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.home-pain-grid .reveal:nth-child(4) { transition-delay: 0.21s; }

/* ---- FAQ ---------------------------------------------------------------------------------- */

.home-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.home-faq-list details {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.home-faq-list summary {
  position: relative;
  padding: var(--space-4) calc(var(--space-5) + 20px) var(--space-4) var(--space-4);
  font-weight: 650;
  font-size: var(--text-md);
  cursor: pointer;
  list-style: none;
}

.home-faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq-list summary::after {
  content: "＋";
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  transition: transform var(--transition-base);
}

.home-faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.home-faq-list details[open] summary {
  border-bottom: 1px solid var(--hairline);
}

.home-faq-list details p {
  padding: var(--space-4);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.home-faq-list summary:focus-visible,
.home-demo-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Responsive ------------------------------------------------------------------------------ */

@media (max-width: 900px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-inner {
    max-width: none;
    text-align: center;
    margin: 0 auto;
  }

  .home-hero-cta {
    align-items: center;
  }

  .home-hero-visual {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .home-nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .home-deep-item {
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .home-mock-text em {
    max-width: 30vw;
  }

  .home-pill {
    font-size: var(--text-2xs);
    padding: 3px 8px;
  }

  .home-demo-mail {
    padding: var(--space-4);
  }
}

/* 日本語の見出しが単語の途中で折れないようにする */
.home-pain-q,
.home-step h3,
.home-deep-body h3,
.home-section-title {
  text-wrap: balance;
  word-break: auto-phrase;
}

/* ---- Motion preference -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-blob,
  .home-float,
  .home-mock,
  .home-pain-emoji,
  .home-pill-risky,
  .home-marquee-track {
    animation: none;
  }

  .home-mock-row {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-marquee-track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    padding: var(--space-3) var(--space-4);
  }
}
