
  :root {
    --bg: #faf6f1;
    --card: #fffdf9;
    --ink: #3d3429;
    --muted: #7a6b5a;
    --accent: #c4784a;
    --accent-soft: #f3e4d6;
    --line: #e8ddd0;
    --good: #5a8f6a;
    --good-soft: #e5f0e8;
    --warn: #b85c3a;
    --warn-soft: #f5e6e0;
    --shadow: 0 8px 28px rgba(61, 52, 41, 0.08);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body {
    height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: "Zen Maru Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  .deck { height: 100dvh; width: 100%; position: relative; overflow: hidden; }
  .slide {
    display: none;
    position: absolute;
    inset: 0;
    padding: clamp(0.55rem, 1.8vw, 1.25rem) clamp(0.85rem, 3vw, 2.5rem);
    padding-bottom: clamp(3.2rem, 6.5vw, 4.4rem);
    flex-direction: column;
    justify-content: flex-start;
    max-width: min(1200px, 92vw);
    margin: 0 auto;
    left: 0; right: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .slide.active { display: flex; animation: fadeIn .28s ease; }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
  .eyebrow {
    font-size: clamp(0.95rem, 2.3vw, 1.15rem);
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
  }
  h1 {
    font-size: clamp(1.75rem, 5vw, 2.7rem);
    font-weight: 700;
    line-height: 1.28;
    margin-bottom: 0.35rem;
    flex-shrink: 0;
  }
  h2 {
    font-size: clamp(1.4rem, 4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    flex-shrink: 0;
  }
  .small {
    font-size: clamp(0.95rem, 2.3vw, 1.1rem);
    color: var(--muted);
    line-height: 1.5;
    margin-top: 0.35rem;
    flex-shrink: 0;
  }
  .sub {
    font-size: clamp(1.1rem, 2.8vw, 1.35rem);
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 0.45rem;
    flex-shrink: 0;
  }
  .ornament {
    width: 3.2rem; height: 0.32rem;
    background: var(--accent);
    border-radius: 999px;
    margin: 0.45rem 0 0.55rem;
    flex-shrink: 0;
  }
  .caption {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    line-height: 1.5;
    font-weight: 500;
    flex-shrink: 0;
  }
  .end-mark {
    margin-top: 0.7rem;
    font-size: clamp(1.1rem, 2.6vw, 1.3rem);
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
  }
  .callout {
    margin-top: 0.55rem;
    padding: 0.85rem 1.05rem;
    background: var(--accent-soft);
    border-radius: 14px;
    font-size: clamp(1.05rem, 2.6vw, 1.25rem);
    line-height: 1.5;
    border-left: 5px solid var(--accent);
    flex-shrink: 0;
  }
  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 0.65rem;
    margin-top: 0.4rem;
  }
  .cards.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (max-width: 520px) { .cards.grid2 { grid-template-columns: 1fr; } }
  .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.8rem 0.95rem;
    box-shadow: var(--shadow);
  }
  .card strong {
    display: block;
    font-size: clamp(1.05rem, 2.6vw, 1.25rem);
    margin-bottom: 0.25rem;
    color: var(--accent);
  }
  .card p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.45;
  }
  .step-dots {
    display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.3rem;
    flex-shrink: 0;
  }
  .step-dots span {
    width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--line);
  }
  .step-dots span.on { background: var(--accent); }
  .step-dots span.done { background: #d4a07a; }
  .illus-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: clamp(0.45rem, 1.4vw, 0.85rem);
    margin: 0.2rem 0 0.45rem;
    height: min(58vh, 520px);
    min-height: min(42vh, 280px);
    width: 100%;
    flex: 1 1 auto;
  }
  .illus-wrap svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
  }
  .illus-wrap.wide svg { width: 100%; height: 100%; }
  .dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    align-content: stretch;
  }
  @media (max-width: 560px) {
    .dual { grid-template-columns: 1fr; height: auto; }
    .illus-wrap { height: auto; min-height: 0; flex: 1 1 auto; }
  }
  .dual .panel {
    border-radius: 14px;
    border: 2.5px solid;
    padding: 0.55rem 0.45rem 0.65rem;
    background: var(--card);
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .dual .panel.ok { border-color: var(--good); background: var(--good-soft); }
  .dual .panel.ng { border-color: var(--warn); background: var(--warn-soft); }
  .dual .panel h3 {
    text-align: center;
    font-size: clamp(1.1rem, 2.8vw, 1.35rem);
    margin: 0.1rem 0 0.35rem;
    flex-shrink: 0;
  }
  .dual .panel.ok h3 { color: var(--good); }
  .dual .panel.ng h3 { color: var(--warn); }
  .dual .panel svg {
    width: 100%;
    height: auto;
    flex: 1 1 auto;
    min-height: 120px;
    max-height: none;
    display: block;
    margin: 0 auto;
  }
  .dual .panel .foot {
    display: flex; align-items: center; justify-content: center; gap: 0.45rem;
    margin-top: 0.4rem;
    font-size: clamp(1.05rem, 2.6vw, 1.25rem);
    font-weight: 700;
    flex-shrink: 0;
  }
  .dual .panel.ok .foot { color: var(--good); }
  .dual .panel.ng .foot { color: var(--warn); }
  .slide[data-i="7"] .illus-wrap {
    display: block;
    height: min(58vh, 520px);
    min-height: min(42vh, 280px);
    padding: 0.75rem;
  }
  @media (max-width: 560px) {
    .slide[data-i="7"] .illus-wrap { height: auto; min-height: 0; }
  }
  .flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.35rem;
  }
  @media (max-width: 640px) {
    .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  .flow-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.55rem 0.45rem 0.65rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
  }
  .flow {
    flex: 1 1 auto;
    align-content: center;
  }
  .flow-item .n {
    display: inline-flex;
    width: 1.55rem; height: 1.55rem;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
  }
  .flow-item .lab {
    font-size: clamp(0.95rem, 2.4vw, 1.15rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
  }
  .flow-item svg { width: 56px; height: 56px; margin: 0.2rem auto 0.3rem; display: block; }
  .flow-item { padding: 0.75rem 0.5rem 0.85rem; }
  .nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(250, 246, 241, 0.92);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    z-index: 20;
  }
  .nav button {
    appearance: none; border: 1px solid var(--line); background: var(--card);
    color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 700;
    padding: 0.55rem 1rem; border-radius: 999px; cursor: pointer; min-width: 5.5rem;
  }
  .nav button:disabled { opacity: 0.35; cursor: default; }
  .nav button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
  .progress { flex: 1; text-align: center; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
  .hint {
    position: fixed; top: 0.75rem; right: 1rem;
    font-size: 0.75rem; color: var(--muted); z-index: 15; opacity: 0.8;
  }
  @media (max-width: 520px) { .hint { display: none; } }

  @media (max-width: 560px) {
    .slide {
      padding-top: 0.4rem;
      padding-left: 0.7rem;
      padding-right: 0.7rem;
      padding-bottom: 4.2rem;
    }
    .illus-wrap {
      height: auto !important;
      min-height: 0 !important;
      margin-bottom: 0.3rem;
      padding: 0.5rem;
    }
    .slide[data-i="7"] .illus-wrap { height: auto !important; min-height: 0 !important; }
    .dual { gap: 0.5rem; }
    .dual .panel { padding: 0.4rem 0.35rem 0.45rem; }
    .dual .panel svg { min-height: 0; max-height: 140px; }
    .dual .panel h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
    .dual .panel .foot { font-size: 1rem; margin-top: 0.25rem; }
    .caption { font-size: 1.08rem; line-height: 1.4; }
    .small { font-size: 0.92rem; }
    h2 { font-size: 1.28rem; margin-bottom: 0.2rem; }
    .eyebrow { font-size: 0.9rem; margin-bottom: 0.15rem; }
    .step-dots { margin-bottom: 0.2rem; }
    .flow-item svg { width: 48px; height: 48px; }
  }
  @media (min-width: 900px) {
    .flow { gap: 0.65rem; margin-top: 0.55rem; }
    .flow-item svg { width: 64px; height: 64px; }
    .flow-item .lab { font-size: 1.15rem; }
  }
.home-link{display:block;color:inherit;font-size:.75rem;text-decoration:underline;margin-top:.2rem}a:focus-visible{outline:3px solid #5a8f6a;outline-offset:3px}

.slide.vcenter { justify-content: center; }
