/* AP SafeCache LP — minimal, neutral, developer-focused */

:root {
  --bg: #fafafa;
  --bg-alt: #f0f0f2;
  --text: #1a1a1c;
  --muted: #5c5c66;
  --border: #d8d8de;
  --accent: #2d2d33;
  --accent-hover: #111;
  --radius: 8px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header-h: 56px;
  --banner-h: 52px;
  --ea-float-size: min(200px, calc(100vw - 2.5rem));
  --ea-float-height: min(200px, calc(100vh - 2.5rem));
  --ea-card-bg: linear-gradient(165deg, #ffffff 0%, #f4f4f6 52%, #ececef 100%);
  --ea-card-border: rgba(26, 26, 28, 0.09);
  --ea-card-shade: 0 1px 0 rgba(255, 255, 255, 0.88) inset;
  --ea-btn-bg: #ffe500;
  --ea-btn-fg: #622700;
  --ea-btn-bg-hover: #f0d900;
  --sticky-top-h: var(--header-h);
  /* モバイル下部 fixed バーに合わせた本文下余白（safe-area は別途 env で加算） */
  --ea-mobile-dock-h: 100px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-top--sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.early-access-banner--floating {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 150;
  box-sizing: border-box;
  width: var(--ea-float-size);
  height: var(--ea-float-height);
  max-height: var(--ea-float-height);
  background: var(--ea-card-bg);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid var(--ea-card-border);
  border-radius: 0;
  box-shadow: var(--ea-card-shade), 0 4px 6px -1px rgba(26, 26, 28, 0.06),
    0 14px 28px -6px rgba(26, 26, 28, 0.12);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}

.early-access-banner--floating.is-ea-revealed {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0s;
}

.early-access-banner--floating::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(45, 45, 51, 0.35) 40%, rgba(45, 45, 51, 0.35) 60%, transparent);
  pointer-events: none;
}

.early-access-banner__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 0.65rem 0.75rem;
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.38;
  color: var(--text);
  overflow-y: auto;
}

.early-access-banner__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  width: 100%;
}

.early-access-banner__line {
  margin: 0;
  max-width: 100%;
}

.early-access-banner__line:not(.early-access-banner__line--title) {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.early-access-banner__line--title {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.92;
}

.early-access-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70%;
  max-width: 70%;
  margin-top: 0;
  min-height: 34px;
  padding: 0.4rem 0.75rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  font-family: inherit;
  color: var(--ea-btn-fg);
  background: var(--ea-btn-bg);
  text-decoration: none;
  border: 1px solid rgba(98, 39, 0, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 2px 6px rgba(98, 39, 0, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.early-access-banner__cta:hover {
  color: var(--ea-btn-fg);
  background: var(--ea-btn-bg-hover);
  border-color: rgba(98, 39, 0, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 4px 12px rgba(98, 39, 0, 0.18);
  transform: translateY(-1px);
}

.early-access-banner__cta:active {
  transform: translateY(0);
  color: var(--ea-btn-fg);
  background: var(--ea-btn-bg-hover);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 1px 3px rgba(98, 39, 0, 0.2);
}

.early-access-banner__cta:focus-visible {
  outline: 2px solid #622700;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .early-access-banner--floating {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    border-radius: 0;
    box-shadow: var(--ea-card-shade), 0 -6px 28px rgba(26, 26, 28, 0.12);
  }

  .early-access-banner--floating::before {
    left: 8%;
    right: 8%;
  }

  .early-access-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 0;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    text-align: left;
    font-size: 0.65rem;
    line-height: 1.3;
    overflow: visible;
  }

  .early-access-banner__copy {
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.12rem;
  }

  .early-access-banner__line--title {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .early-access-banner__cta {
    width: auto;
    min-width: 5.5rem;
    margin-top: 0;
    min-height: 36px;
    padding: 0.38rem 0.65rem;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
  }

  .early-access-banner__cta:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .early-access-banner--floating {
    transform: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }

  .early-access-banner--floating.is-ea-revealed {
    transition: opacity 0.2s ease, visibility 0s linear 0s;
  }

  .early-access-banner__cta {
    transition: none;
  }

  .early-access-banner__cta:hover {
    transform: none;
  }
}

/* Early Access クーポン通知（ネイティブ alert の代わり・画面中央） */
.ea-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.ea-modal[hidden] {
  display: none !important;
}

.ea-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 28, 0.5);
  cursor: pointer;
}

.ea-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  padding: 1.35rem 1.25rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(26, 26, 28, 0.18);
}

.ea-modal__title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.ea-modal__body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-line;
}

.ea-modal__ok {
  width: 100%;
  margin-top: 1.15rem;
  min-height: 44px;
}

.site-header {
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo__mark {
  width: 1.75rem;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 6px;
}

.logo__text {
  min-width: 0;
}

.logo:hover {
  text-decoration: underline;
}

.logo:hover .logo__mark {
  opacity: 0.92;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.nav__link {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--text);
  text-decoration: underline;
}

.lang {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.lang__btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.lang__btn:hover {
  color: var(--text);
  border-color: var(--border);
}

.lang__btn.is-active {
  color: var(--text);
  border-color: var(--text);
  font-weight: 600;
}

.lang__label--abbr {
  display: none;
}

@media (max-width: 640px) {
  /* バナーをスクロールで表示しているときだけ下部余白（非表示時は本文を広く使う） */
  html.has-ea-dock.has-ea-banner-revealed {
    scroll-padding-bottom: calc(var(--ea-mobile-dock-h) + env(safe-area-inset-bottom, 0px));
  }

  body.has-ea-dock.has-ea-banner-revealed {
    /* fixed Early Access バー分だけスクロール領域を確保（フッター下は無理に広げない） */
    padding-bottom: calc(var(--ea-mobile-dock-h) + env(safe-area-inset-bottom, 0px));
  }

  .site-footer {
    padding: 1.5rem 0 1rem;
  }

  .site-header__inner {
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0.5rem 0.65rem;
  }

  .logo {
    flex: 0 1 auto;
    max-width: 36%;
    font-size: 0.84rem;
    letter-spacing: -0.03em;
    gap: 0.35rem;
  }

  .logo__mark {
    width: 1.35rem;
    border-radius: 4px;
  }

  .logo__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 0.28rem 0.4rem;
    justify-content: center;
    min-width: 0;
  }

  .nav__link {
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .lang {
    flex-shrink: 0;
    gap: 0.12rem;
  }

  .lang__btn {
    padding: 0.16rem 0.34rem;
    font-size: 0.6rem;
    line-height: 1.15;
  }

  .lang__label--full {
    display: none;
  }

  .lang__label--abbr {
    display: inline;
  }
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
  scroll-margin-top: calc(var(--sticky-top-h) + 0.5rem);
}

.section--hero {
  padding-top: 3rem;
  padding-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
}

.section--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 55% 45% at 85% 35%, rgba(45, 45, 51, 0.06) 0%, transparent 55%),
    repeating-linear-gradient(45deg, transparent, transparent 13px, rgba(216, 216, 222, 0.35) 13px, rgba(216, 216, 222, 0.35) 14px);
  pointer-events: none;
  z-index: 0;
}

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

.hero-layout {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (max-width: 767px) {
  .hero-layout__visual {
    max-width: 17rem;
  }
}

@media (min-width: 768px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
    gap: 2rem 2.5rem;
  }
}

.hero-layout__copy {
  min-width: 0;
}

.hero-layout__visual {
  display: flex;
  justify-content: center;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-layout__visual {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    justify-content: flex-end;
  }
}

.hero-visual {
  width: 100%;
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 250, 0.95) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(26, 26, 28, 0.06);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(rgba(216, 216, 222, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 216, 222, 0.35) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.45;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 35%, transparent 100%);
}

.hero-visual__svg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.hero-visual--photo {
  overflow: hidden;
}

.hero-visual--photo::after {
  display: none;
}

.hero-visual__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  .section--hero::before {
    background-image: radial-gradient(ellipse 55% 45% at 85% 35%, rgba(45, 45, 51, 0.06) 0%, transparent 55%);
  }
}

.section--alt {
  background: var(--bg-alt);
}

.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-audience {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
}

.lead--tight {
  margin-bottom: 2rem;
}

.prose {
  margin: 0 0 1rem;
  color: var(--muted);
}

.prose--note {
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.prereq-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}

.prereq-hook {
  margin: 0 0 0.85rem;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
}

.free-tier-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.65;
}

.free-tier-list li {
  margin-bottom: 0.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: #ffe500;
  color: #622700;
}

.btn--primary:hover {
  background: #f0d900;
  color: #622700;
}

.btn--primary:focus-visible {
  outline: 2px solid #622700;
  outline-offset: 2px;
}

.btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--ghost {
  background: #ffffff;
  color: #622700;
  border: 1px solid rgba(98, 39, 0, 0.22);
}

.btn--ghost:hover {
  background: #ffffff;
  color: #622700;
  border-color: rgba(98, 39, 0, 0.45);
}

.btn--ghost:focus-visible {
  outline: 2px solid #622700;
  outline-offset: 2px;
}

.btn--small {
  min-height: 36px;
  padding: 0 0.9rem;
  font-size: 0.85rem;
}

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

.screens-gallery {
  margin-top: 1.25rem;
  width: 100%;
  max-width: 100%;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.85rem;
  width: 100%;
}

@media (min-width: 640px) {
  .screens-grid {
    gap: 1rem 1.1rem;
  }
}

.screens-grid__open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 6px 22px rgba(26, 26, 28, 0.06);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.screens-grid__open:hover {
  border-color: rgba(98, 39, 0, 0.35);
  box-shadow: 0 10px 32px rgba(26, 26, 28, 0.09);
}

.screens-grid__open:focus-visible {
  outline: 2px solid #622700;
  outline-offset: 2px;
}

.screens-grid__thumb-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  background: #f6f6f8;
  overflow: hidden;
}

.screens-grid__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screens-grid__title {
  display: block;
  padding: 0.5rem 0.65rem 0.15rem;
  font-size: clamp(0.78rem, 2.1vw, 0.88rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}

.screens-grid__hint {
  display: block;
  padding: 0 0.65rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #622700;
  letter-spacing: 0.02em;
}

.screens-lb {
  padding: 0;
  margin: auto;
  border: none;
  background: transparent;
  max-width: min(96vw, 1120px);
  width: 100%;
}

.screens-lb::backdrop {
  background: rgba(18, 18, 22, 0.52);
  backdrop-filter: blur(3px);
}

.screens-lb__panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.screens-lb__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.screens-lb__close:hover {
  background: #fff;
}

.screens-lb__close:focus-visible {
  outline: 2px solid #622700;
  outline-offset: 2px;
}

.screens-lb__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.screens-lb__nav:hover {
  background: #fff;
}

.screens-lb__nav:focus-visible {
  outline: 2px solid #622700;
  outline-offset: 2px;
}

.screens-lb__nav--prev {
  left: 0.35rem;
}

.screens-lb__nav--next {
  right: 0.35rem;
}

@media (max-width: 520px) {
  .screens-lb__nav {
    width: 2.1rem;
    height: 2.45rem;
    font-size: 1.45rem;
  }

  .screens-lb__nav--prev {
    left: 0.2rem;
  }

  .screens-lb__nav--next {
    right: 0.2rem;
  }
}

.screens-lb__viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  max-height: min(78vh, 860px);
}

.screens-lb__strip {
  display: contents;
}

.screens-lb__slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0;
  padding: 2.75rem 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .screens-lb__slide {
    padding: 2.85rem 3.25rem 0.65rem;
  }
}

.screens-lb__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(68vh, 760px);
  object-fit: contain;
}

.screens-lb__cap {
  margin: 0.55rem 0 0;
  padding: 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.screens-lb__swipe-hint {
  margin: 0;
  padding: 0.45rem 0.75rem 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
  background: #fbfbfd;
  border-top: 1px solid var(--border);
}

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

.problem-checklist-intro {
  margin: 0 0 0.65rem;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.problem-checklist {
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem 1rem 1.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  line-height: 1.65;
}

.problem-checklist li {
  margin-bottom: 0.45rem;
}

.problem-checklist li:last-child {
  margin-bottom: 0;
}

.section--urgency {
  padding-block: 2rem 2.25rem;
}

.problem-checklist--signal {
  border-left: 4px solid rgba(180, 83, 9, 0.42);
  background: rgba(255, 251, 235, 0.65);
}

.urgency-bridge {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.section--mirror {
  padding-block: 2rem 2.25rem;
}

.section--mirror-below-hero {
  padding-top: 1.75rem;
  padding-bottom: 2.25rem;
  border-top: 1px solid rgba(216, 216, 222, 0.75);
}

.problem-checklist--mirror {
  margin-bottom: 0.85rem;
}

.ops-mirror-footer {
  margin: 0 0 1.15rem;
  padding: 0.65rem 0 0;
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

.ops-then {
  margin-top: 0.25rem;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid rgba(22, 101, 52, 0.22);
  background: rgba(22, 101, 52, 0.06);
}

.ops-then__label {
  margin: 0 0 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.ops-then__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text);
  line-height: 1.65;
}

.ops-then__list li {
  margin-bottom: 0.35rem;
}

.ops-then__list li:last-child {
  margin-bottom: 0;
}

.section--compare {
  padding-block: 2rem 2.25rem;
}

.compare-table-wrap {
  overflow-x: auto;
  margin-top: 1.15rem;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.compare-table thead th {
  padding: 0.75rem 0.85rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.compare-table__corner {
  width: 5.25rem;
  background: var(--bg-alt);
}

.compare-table__col--legacy {
  background: rgba(98, 39, 0, 0.06);
}

.compare-table__col--sc {
  background: rgba(22, 101, 52, 0.07);
}

.compare-table tbody th {
  padding: 0.75rem 0.85rem;
  font-weight: 600;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.compare-table td {
  padding: 0.75rem 0.85rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

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

@media (max-width: 520px) {
  .compare-table {
    font-size: 0.9rem;
  }

  .compare-table thead th,
  .compare-table tbody th,
  .compare-table td {
    padding: 0.65rem 0.65rem;
  }
}

.before-after {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .before-after {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.before-after__col {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}

.before-after__col--before {
  border-left: 4px solid rgba(98, 39, 0, 0.35);
}

.before-after__col--after {
  border-left: 4px solid #c9b400;
  background: linear-gradient(180deg, #fffef5 0%, #fff 42%);
}

.before-after__head {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.before-after__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.plan-compare {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .plan-compare {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.plan-compare__col {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}

.plan-compare__col--free {
  border-left: 4px solid rgba(98, 39, 0, 0.35);
}

.plan-compare__col--pro {
  border-left: 4px solid #c9b400;
  background: linear-gradient(180deg, #fffef5 0%, #fff 42%);
}

.plan-compare__head {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.plan-compare__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.plan-compare__list li {
  margin-bottom: 0.4rem;
}

.plan-compare__list li:last-child {
  margin-bottom: 0;
}

.plan-cf-note {
  margin-top: 1.25rem;
}

.story-flow {
  margin: 1.75rem 0 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.story-flow--stacked {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.story-flow__slot {
  min-width: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.story-flow__sep {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.story-flow__sep--between {
  width: 100%;
  min-height: 2rem;
  padding: 0.35rem 0;
  flex-shrink: 0;
}

.story-flow__card {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 1rem 1rem;
  border-radius: calc(var(--radius) + 3px);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.story-flow__card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.story-flow--stacked .story-flow__viz {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 10rem;
  max-height: none;
  padding: 0.35rem 0 0.65rem;
}

.story-mock {
  display: block;
  width: 100%;
  max-width: 100%;
}

.story-mock--rules {
  padding: 0.35rem 0.4rem 0.45rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(45, 45, 51, 0.12);
  box-shadow: 0 1px 3px rgba(26, 26, 28, 0.07);
}

.story-flow--stacked .story-mock--rules {
  max-width: 100%;
  padding: 0.65rem 0.85rem 0.75rem;
  border-radius: 8px;
}

.story-flow--stacked .story-mock__chrome {
  height: 9px;
  margin-bottom: 0.65rem;
}

.story-flow--stacked .story-mock__rules-body {
  gap: 0.5rem;
}

.story-flow--stacked .story-mock__knob {
  width: 9px;
  height: 9px;
}

.story-flow--stacked .story-mock__rail {
  height: 7px;
}

.story-flow--stacked .story-mock__chip {
  height: 10px;
}

.story-mock__chrome {
  display: block;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 0.45rem;
  background: linear-gradient(90deg, #cbd5e1 0%, #e2e8f0 45%, #cbd5e1 100%);
  opacity: 0.85;
}

.story-mock__rules-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.story-mock__rule-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.story-mock__rule-row--short {
  justify-content: flex-start;
  margin-top: 0.1rem;
}

.story-mock__knob {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #64748b;
}

.story-mock__rail {
  position: relative;
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #e2e8f0;
  overflow: hidden;
}

.story-mock__rail--alt .story-mock__thumb {
  left: 58%;
}

.story-mock__thumb {
  position: absolute;
  top: 0;
  left: 22%;
  width: 38%;
  height: 100%;
  border-radius: 2px;
  background: #475569;
}

.story-mock__chip {
  display: block;
  height: 8px;
  width: 42%;
  border-radius: 2px;
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.story-mock--broken {
  position: relative;
  padding-bottom: 0.35rem;
}

.story-mock__broken-frame {
  display: block;
  transform: rotate(-2.5deg);
  padding: 0.25rem;
  border-radius: 6px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: #fff;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.12);
}

.story-mock__broken-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.story-mock__broken-cell {
  min-height: 28px;
  border-radius: 3px;
  background: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.story-flow--stacked .story-mock__broken-cell {
  min-height: 52px;
}

.story-flow--stacked .story-mock--broken {
  max-width: 100%;
}

.story-flow--stacked .story-mock__broken-strip {
  height: 9px;
  margin-top: 0.45rem;
}

.story-mock__broken-cell--blank {
  background: repeating-linear-gradient(
    -12deg,
    #f8fafc,
    #f8fafc 4px,
    #f1f5f9 4px,
    #f1f5f9 8px
  );
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.55);
}

.story-mock__broken-strip {
  display: block;
  margin: 0.35rem 0.25rem 0;
  height: 7px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    #fecaca,
    #fecaca 5px,
    #fee2e2 5px,
    #fee2e2 10px
  );
}

.story-mock__broken-glitch {
  position: absolute;
  pointer-events: none;
  inset: auto 8% 18% 8%;
  height: 2px;
  border-radius: 1px;
  background: rgba(220, 38, 38, 0.35);
  opacity: 0.75;
}

.story-mock--history-ui {
  width: 100%;
  max-width: 100%;
  text-align: left;
  padding: 0.55rem 0.6rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(45, 45, 51, 0.14);
  background: #fff;
  box-shadow: 0 2px 10px rgba(26, 26, 28, 0.08);
  font-size: clamp(0.72rem, 1.65vw, 0.88rem);
  line-height: 1.35;
  color: var(--text);
}

.story-hui__head {
  margin: 0 0 0.45rem;
  padding-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.82em;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid rgba(216, 216, 222, 0.9);
}

.story-hui__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-hui__row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: 0.25rem 0.45rem;
  align-items: start;
  padding: 0.4rem 0.35rem;
  border-radius: 5px;
  border-left: 3px solid transparent;
  margin-bottom: 0.35rem;
  background: rgba(248, 250, 252, 0.85);
}

.story-hui__row:last-of-type {
  margin-bottom: 0;
}

.story-hui__row--target {
  border-left-color: #c9b400;
  background: linear-gradient(90deg, rgba(255, 249, 229, 0.95) 0%, rgba(255, 255, 255, 0.5) 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 180, 0, 0.22);
}

.story-hui__row--bad {
  background: rgba(254, 242, 242, 0.75);
  border-left-color: rgba(220, 38, 38, 0.45);
}

.story-hui__time {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--muted);
  padding-top: 0.1rem;
}

.story-hui__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.story-hui__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.92em;
}

.story-hui__badge--ok {
  background: #dcfce7;
  color: #166534;
}

.story-hui__badge--chg {
  background: #e0e7ff;
  color: #3730a3;
}

.story-hui__badge--bad {
  background: #fee2e2;
  color: #991b1b;
}

.story-hui__desc {
  color: var(--text);
  font-weight: 600;
}

.story-hui__target {
  align-self: center;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.78em;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff4cc 0%, #ffe8a3 100%);
  border: 1px solid rgba(201, 180, 0, 0.45);
  color: #5c4a00;
}

.story-hui__rollback {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.35rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95em;
  color: var(--text);
  border-top: 1px dashed rgba(148, 163, 184, 0.65);
}

.story-hui__done {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.45rem -0.6rem -0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0 0 7px 7px;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border-top: 1px solid rgba(22, 163, 74, 0.25);
  font-weight: 700;
  font-size: 0.88em;
  color: #14532d;
}

.story-hui__done-icon {
  flex-shrink: 0;
  display: flex;
  color: #15803d;
}

.story-hui__done-text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 420px) {
  .story-hui__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .story-hui__time {
    padding-top: 0;
  }

  .story-hui__target {
    justify-self: start;
    white-space: normal;
  }
}

.story-mock--inspect {
  position: relative;
  width: 100%;
  max-width: 10.75rem;
}

.story-flow--stacked .story-mock--inspect {
  max-width: 100%;
}

.story-mock__inspect-split {
  display: flex;
  gap: 5px;
  align-items: stretch;
}

.story-mock__inspect-pane {
  flex: 1;
  min-height: 3.75rem;
  padding: 0.35rem 0.3rem;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
}

.story-flow--stacked .story-mock__inspect-pane {
  min-height: 5.5rem;
  padding: 0.55rem 0.45rem;
}

.story-flow--stacked .story-mock__inspect-split {
  gap: 8px;
}

.story-flow--stacked .story-mock__inspect-loupe {
  width: 34px;
  height: 34px;
}

.story-flow--stacked .story-mock__inspect-loupe svg {
  width: 20px;
  height: 20px;
}

.story-mock__inspect-pane--after {
  border-color: rgba(22, 163, 74, 0.35);
  background: linear-gradient(165deg, #f0fdf4 0%, #fff 70%);
}

.story-mock__inspect-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}

.story-mock__inspect-line {
  display: block;
  height: 4px;
  width: 88%;
  border-radius: 2px;
  background: #e2e8f0;
}

.story-mock__inspect-line--short {
  width: 55%;
}

.story-mock__inspect-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #15803d;
}

.story-mock__inspect-check svg {
  display: block;
}

.story-mock__inspect-loupe {
  position: absolute;
  right: -2px;
  bottom: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(45, 45, 51, 0.12);
  color: var(--muted);
  box-shadow: 0 1px 3px rgba(26, 26, 28, 0.1);
}

.story-mock__inspect-loupe svg {
  display: block;
}

.story-flow__slot:nth-child(1) .story-flow__card:not(.story-flow__card--rollback) {
  background: linear-gradient(160deg, #e8eef6 0%, #dfe8f3 100%);
  border-color: rgba(45, 45, 51, 0.12);
}

.story-flow__slot:nth-child(3) .story-flow__card:not(.story-flow__card--rollback) {
  background: linear-gradient(160deg, #f6ebe8 0%, #f0e0dc 100%);
  border-color: rgba(98, 39, 0, 0.14);
}

.story-flow__slot:nth-child(7) .story-flow__card:not(.story-flow__card--rollback) {
  background: linear-gradient(160deg, #eceef3 0%, #e4e7ee 100%);
  border-color: rgba(45, 45, 51, 0.1);
}

.story-flow__card--rollback {
  border-left: 4px solid #c9b400;
  background: linear-gradient(165deg, #fff9e5 0%, #fff4cc 38%, #fffef8 100%);
  border-color: rgba(201, 180, 0, 0.35);
}

.story-flow__text {
  display: block;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
}

.story-flow__arrow {
  display: block;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
}

.story-gallery-wrap {
  margin-top: 3rem;
  padding-top: 2.75rem;
  border-top: 1px solid rgba(216, 216, 222, 0.95);
  scroll-margin-top: calc(var(--sticky-top-h) + 0.5rem);
}

.section-title--fuse {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
}

.pricing-grid--pro {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.pricing-free-link-wrap {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.92rem;
}

.pricing-free-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-free-link:hover {
  color: var(--text);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-card__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.12rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.feature-card__main {
  min-width: 0;
}

.feature-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.feature-card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.5rem;
}

.price-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

/* Pro（モール）：シングルより控えめなトーン */
.pricing-grid > .price-card--link.price-card--pro-mv {
  background-color: #f3f6f9;
}

.price-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.price-card--link:hover {
  border-color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* モール（マルチベンダー） */
.price-card--emphasis {
  border-color: var(--text);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  background-color: beige;
}

.price-card--emphasis.price-card--link:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.price-card__name {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.price-card__price {
  margin: 0 0 1rem;
}

.price-card__amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-card__period {
  font-size: 1rem;
  color: var(--muted);
  margin-left: 0.25rem;
}

.price-card__desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.price-card__activations {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}

.price-card__cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.price-card--link:hover .price-card__cta {
  text-decoration-thickness: 2px;
}

.pricing-note {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.section--note {
  padding: 2rem 0;
}

.pro-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
  border-left: 3px solid var(--border);
  padding: 0.25rem 0 0.25rem 1rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.footer-note {
  font-size: 0.8rem;
  max-width: 40rem;
}

.footer-legal {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.footer-legal + .footer-note {
  margin-top: 0.65rem;
}

.footer-legal__sep {
  margin: 0 0.28rem;
  opacity: 0.55;
}

.footer-legal__link {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(92, 92, 102, 0.45);
  text-underline-offset: 0.12em;
}

.footer-legal__link:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}
