/* ==========================================================
   じぶん指圧 — デザインシステム
   やわらかい紙と手のひらのような、落ち着く配色
   ========================================================== */

:root {
  --bg: #FBF7F2;
  --bg-deep: #F4EDE4;
  --paper: #FFFFFF;
  --ink: #2E2A27;
  --ink-soft: #4B443E;
  --muted: #7C736A;
  --line: #EBE2D7;
  --line-soft: #F2EBE2;

  --clay: #C4703F;
  --clay-deep: #A85A2C;
  --clay-soft: #F8E7DB;
  --sage: #6F8A72;
  --sage-soft: #E8EFE7;
  --lav: #7F7398;
  --lav-soft: #EDE9F3;
  --night: #4A5570;
  --night-soft: #E5E8F0;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 2px 4px rgba(80, 60, 45, .04), 0 10px 30px -12px rgba(80, 60, 45, .16);
  --shadow-lg: 0 18px 50px -18px rgba(80, 60, 45, .35);

  --font-display: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;

  --nav-h: 66px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

body::before {
  /* ほんのりした紙の質感 */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 700px 420px at 12% -8%, rgba(196, 112, 63, .07), transparent 65%),
    radial-gradient(ellipse 640px 380px at 92% 4%, rgba(111, 138, 114, .08), transparent 68%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  letter-spacing: .02em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2.5px solid var(--clay);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- レイアウト ---------- */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.page {
  padding-bottom: calc(var(--nav-h) + 42px);
  min-height: 100vh;
}
.page--session { padding-bottom: 34px; }

section + section { margin-top: 34px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 1.06rem;
}
.section-head .eyebrow { margin-bottom: 2px; }
.section-head a {
  font-size: .82rem;
  color: var(--clay-deep);
  white-space: nowrap;
  font-weight: 600;
}

.eyebrow {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: block;
}

.lead { color: var(--muted); font-size: .92rem; }

/* ---------- ヘッダー ---------- */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 6px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .04em;
}
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--clay-soft);
  display: grid;
  place-items: center;
  color: var(--clay-deep);
  font-size: .86rem;
  flex: 0 0 auto;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.2;
}
.topbar .tools { display: flex; gap: 8px; align-items: center; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 1rem;
  transition: background .2s ease, transform .2s ease;
}
.icon-btn:hover { background: #fff; transform: translateY(-1px); }
.icon-btn[aria-pressed="true"] { background: var(--clay); border-color: var(--clay); color: #fff; }

/* ---------- ヒーロー ---------- */
.hero {
  padding: 14px 0 0;
}
.hero h1 {
  font-size: clamp(1.6rem, 6.4vw, 2.1rem);
  line-height: 1.5;
  letter-spacing: .01em;
}
.hero h1 .accent { color: var(--clay-deep); }
.hero .lead { margin-top: 10px; max-width: 30em; }

.breath {
  margin: 22px 0 4px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #FFF9F4 0%, #F7EFE6 100%);
  border: 1px solid var(--line-soft);
  padding: 18px 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* リンクとして使う場合（深呼吸モードへの入口） */
a.breath { display: flex; }
a.breath:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: #E7D8C6;
}
a.breath .breath__text { min-width: 0; }
.breath__text .log-banner__link { margin-top: 7px; }
.breath__orb {
  position: relative;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #F0C3A8, var(--clay) 78%);
  box-shadow: 0 0 0 0 rgba(196, 112, 63, .35);
  animation: breathe 11s ease-in-out infinite;
}
.breath__orb::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(196, 112, 63, .28);
}
.breath__text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  display: block;
}
.breath__text span {
  font-size: .82rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.today-status {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--sage);
  background: #EAF1E8;
  border: 1px solid #D9E6D6;
  padding: 6px 14px;
  border-radius: 999px;
}
.today-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
.today-status[hidden] { display: none; }

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-actions .btn--primary { flex: 1 1 220px; }

.tip-text {
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

@keyframes breathe {
  0%, 100% { transform: scale(.86); opacity: .85; }
  40% { transform: scale(1.06); opacity: 1; }
  55% { transform: scale(1.06); opacity: 1; }
}

/* ---------- 気分でえらぶ ---------- */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mood {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 1px 2px rgba(80, 60, 45, .03);
}
.mood:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #E2D3C3;
}
.mood .em { font-size: 1.15rem; line-height: 1; }

/* ---------- コースカード ---------- */
.course-list { display: grid; gap: 12px; }

.course-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.course-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--tone, var(--clay));
}
.course-card[data-tone="sage"] { --tone: var(--sage); }
.course-card[data-tone="clay"] { --tone: var(--clay); }
.course-card[data-tone="lav"] { --tone: var(--lav); }
.course-card[data-tone="night"] { --tone: var(--night); }

.course-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.course-card h3 { font-size: 1.06rem; }
.course-card .catch {
  font-size: .74rem;
  color: var(--tone, var(--clay));
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 3px;
  display: block;
}
.course-card p.lead {
  margin-top: 8px;
  font-size: .86rem;
  line-height: 1.7;
}
.course-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--ink-soft);
  white-space: nowrap;
}
.pill--tone { background: color-mix(in srgb, var(--tone, var(--clay)) 12%, #fff); color: var(--tone, var(--clay)); }
.pill--done { background: var(--sage-soft); color: var(--sage); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  background: var(--bg-deep);
  color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn--primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(196, 112, 63, .8);
}
.btn--primary:hover { background: var(--clay-deep); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}
.btn--ghost:hover { background: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 10px 16px; font-size: .86rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- 汎用カード ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card--flat { box-shadow: none; background: rgba(255, 255, 255, .6); }

/* ---------- 下部ナビ ---------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(251, 247, 242, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 680px;
  margin: 0 auto;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .18s ease;
}
.nav-item svg { width: 21px; height: 21px; }
.nav-item[aria-current="page"] { color: var(--clay-deep); }
.nav-item[aria-current="page"] .nav-dot { opacity: 1; }
.nav-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--clay); opacity: 0; margin-top: 1px;
}

/* ---------- セッション画面 ---------- */
.session-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 4px;
}
.session-top h1 { font-size: 1rem; flex: 1; text-align: center; }
.session-top .icon-btn { width: 38px; height: 38px; }

.session-intro {
  margin-top: 10px;
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.session-intro h2 { font-size: 1.32rem; margin-bottom: 6px; }
.session-intro .catch {
  font-size: .76rem; font-weight: 700; letter-spacing: .05em;
  color: var(--clay-deep); display: block; margin-bottom: 4px;
}
.session-intro .lead { margin-top: 10px; }
.step-preview {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}
.step-preview li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .86rem;
  color: var(--ink-soft);
}
.step-preview .num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-deep); color: var(--muted);
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; flex: 0 0 auto;
}
.step-preview .sec { margin-left: auto; color: var(--muted); font-size: .78rem; }
.step-preview .nm { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.step-preview .kn { font-size: .7rem; color: var(--muted); letter-spacing: .08em; }

.intro-note {
  margin-top: 12px;
  font-size: .84rem;
  color: var(--muted);
  background: var(--bg-deep);
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1.75;
}
.intro-actions { margin-top: 20px; }
.intro-hint {
  font-size: .74rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.7;
}

.point-name {
  font-size: 1.95rem;
  letter-spacing: .1em;
  margin-top: 2px;
}

/* 進捗バー */
.progress {
  height: 4px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
  margin: 6px 0 0;
}
.progress__bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--clay), #DB9968);
  transition: width .45s linear;
}

/* ステップ表示 */
.stage {
  margin-top: 14px;
  text-align: center;
}
.stage .step-count {
  font-size: .76rem;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 600;
}
.stage h2 {
  font-size: 1.9rem;
  margin-top: 2px;
  letter-spacing: .06em;
}
.stage .kana { font-size: .76rem; color: var(--muted); letter-spacing: .1em; }

.art-frame {
  position: relative;
  margin: 14px auto 0;
  width: min(300px, 74vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #FFFDFB 0%, #F5EBE0 100%);
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  box-shadow: inset 0 2px 18px rgba(150, 110, 80, .08);
}
.art-frame svg { width: 92%; height: 92%; }
.art-frame .art-dot { animation: dotGlow 2.8s ease-in-out infinite; transform-origin: center; }
@keyframes dotGlow {
  0%, 100% { opacity: .8; }
  50% { opacity: 1; }
}

/* タイマーリング */
.timer {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 1;
  margin: 16px auto 0;
  display: grid;
  place-items: center;
}
.timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.timer__track { fill: none; stroke: var(--line-soft); stroke-width: 7; }
.timer__bar {
  fill: none;
  stroke: var(--clay);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset .35s linear;
}
.timer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 15%;
}
.timer__art { width: 100%; display: grid; place-items: center; }
.timer__art svg { width: 100%; height: auto; }

.timer-readout {
  text-align: center;
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--clay-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.timer-readout span:first-child { font-size: 2rem; }
.timer-readout .unit {
  font-size: .8rem;
  margin-left: 3px;
  color: var(--muted);
  font-weight: 700;
}

/* 呼吸ガイド */
.breath-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  min-height: 38px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.breath-guide .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--clay);
  animation: breathe 7.5s ease-in-out infinite;
}

.press-cue {
  margin: 12px auto 0;
  max-width: 30em;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.8;
  min-height: 3.2em;
}
.press-cue strong, .press-cue b { color: var(--clay-deep); }
#pressKeep {
  margin-top: 6px;
  font-size: .82rem;
  background: #FFF6E9;
  border: 1px solid #F3E2C4;
  color: #7A5A2C;
  border-radius: 10px;
  padding: 8px 11px;
}
.press-cue b { font-weight: 700; }

.session-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.round-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  font-size: 1.1rem;
  transition: transform .18s ease;
}
.round-btn:hover { transform: translateY(-1px); }
.round-btn--main {
  width: 82px; height: 82px;
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 14px 28px -14px rgba(196, 112, 63, .85);
}
.round-btn--main:hover { background: var(--clay-deep); }
.round-btn--soft { color: var(--muted); }

.demo-wrap { margin-top: 18px; }
.demo {
  margin: 0 auto;
  width: min(220px, 62vw);
  aspect-ratio: 1.5;
  border-radius: 18px;
  background: linear-gradient(180deg, #F8F1E9, #F2E7DB);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.demo .finger {
  width: 54px; height: 64px;
  border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 40% 32%, #F3C9AF, #DE9C77);
  box-shadow: 0 6px 16px rgba(150, 100, 70, .25);
  animation: pressDemo 3s ease-in-out infinite;
}
@keyframes pressDemo {
  0%, 100% { transform: translateY(-6px) scale(1); }
  45%, 60% { transform: translateY(4px) scale(.94); }
}
.demo .pad {
  position: absolute;
  width: 100px; height: 62px;
  border-radius: 50%;
  background: rgba(196, 112, 63, .1);
  animation: padDemo 3s ease-in-out infinite;
}
@keyframes padDemo {
  0%, 100% { opacity: .45; transform: scale(1); }
  45%, 60% { opacity: .9; transform: scale(.9); }
}
.demo-label {
  text-align: center;
  font-size: .76rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ステップ一覧（下部） */
.step-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 6px;
}
.step-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: .84rem;
  color: var(--muted);
  border: 1px solid transparent;
}
.step-list li.is-current {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 2px 10px -6px rgba(80, 60, 45, .25);
}
.step-list li.is-done { color: #A9A096; text-decoration: line-through; text-decoration-thickness: 1px; }
.step-list .tick { width: 16px; color: var(--sage); font-size: .8rem; }
.step-list .sec { margin-left: auto; font-size: .74rem; }

/* 完了画面 */
.done {
  text-align: center;
  padding: 26px 0 0;
}
.done .halo {
  width: 118px; height: 118px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 34%, #FFF2E6, var(--clay-soft));
  display: grid; place-items: center;
  font-size: 2.4rem;
  animation: haloPulse 3.6s ease-in-out infinite;
}
@keyframes haloPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(196, 112, 63, .18); }
  50% { transform: scale(1.035); box-shadow: 0 0 0 16px rgba(196, 112, 63, 0); }
}
.done h2 { font-size: 1.5rem; }
.done p { color: var(--muted); margin-top: 10px; font-size: .9rem; }
.feel-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 6px;
  flex-wrap: wrap;
}
.feel {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .18s ease;
}
.feel[aria-pressed="true"] {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}

/* ---------- ツボ図鑑 ---------- */
.search {
  margin: 14px 0 4px;
  position: relative;
}
.search input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: .92rem;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(80, 60, 45, .03);
}
.search input::placeholder { color: #A99F94; }
.search .mag {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: .95rem; pointer-events: none;
}
.filter-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 12px 0 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.point-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 14px;
}
.point-tile {
  text-align: left;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px 12px;
  box-shadow: 0 1px 3px rgba(80, 60, 45, .04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.point-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.point-tile svg { width: 100%; height: auto; aspect-ratio: 1; }
.point-tile .pt-img {
  border-radius: 12px;
  background: radial-gradient(circle at 50% 42%, #FEFBF8, #F6EDE3);
  margin-bottom: 8px;
  overflow: hidden;
}
.point-tile h3 { font-size: .95rem; }
.point-tile .kana { font-size: .68rem; color: var(--muted); letter-spacing: .06em; }
.point-tile .tagline {
  font-size: .72rem;
  color: var(--clay-deep);
  margin-top: 4px;
  font-weight: 600;
}

/* ツボ詳細シート */
.sheet-back {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(46, 42, 39, .38);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .25s ease;
}
.sheet-back.is-open { opacity: 1; }
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 41;
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -18px 50px -20px rgba(60, 40, 25, .5);
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(102%);
  transition: transform .32s cubic-bezier(.22, .9, .28, 1);
  padding: 0 20px calc(26px + env(safe-area-inset-bottom));
}
.sheet.is-open { transform: translateY(0); }
.sheet__handle {
  width: 44px; height: 4px; border-radius: 99px;
  background: #DCD2C7; margin: 12px auto 6px;
}
.sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0 4px;
}
.sheet__head h2 { font-size: 1.4rem; }
.sheet__art {
  width: min(212px, 52vw);
  margin: 8px auto 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #FFFDFB, #F5EBE0);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.sheet .block { margin-top: 16px; }
.sheet .block h3 {
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 5px;
}
.sheet .block p { font-size: .92rem; line-height: 1.85; }
.effect-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.effect-list li {
  font-size: .8rem;
  background: var(--sage-soft);
  color: #4E6A51;
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 600;
}
.caution-box {
  background: #FFF6E9;
  border: 1px solid #F3E2C4;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .84rem;
  color: #7A5A2C;
  line-height: 1.7;
}
.sheet__actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet__actions .btn { flex: 1; }

/* ---------- セッション完了 ---------- */
.feel-q {
  margin-top: 24px;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
}
.done-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.caution--session { margin-top: 40px; }
.card h3 { font-size: .95rem; }

/* ---------- 記録 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(80, 60, 45, .04);
}
.stat .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--clay-deep);
  font-variant-numeric: tabular-nums;
}
.stat .lab { font-size: .7rem; color: var(--muted); letter-spacing: .06em; }

.week {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 116px;
  margin-top: 18px;
  padding: 0 2px;
}
.week__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.week__bar {
  width: 100%;
  max-width: 26px;
  min-height: 4px;
  border-radius: 8px 8px 4px 4px;
  background: var(--clay-soft);
  transition: height .4s ease;
}
.week__col.is-today .week__bar { background: var(--clay); }
.week__col.is-done .week__bar { background: color-mix(in srgb, var(--clay) 55%, #fff); }
.week__lab { font-size: .66rem; color: var(--muted); letter-spacing: .02em; }

.history { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.history li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.history .h-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-deep); display: grid; place-items: center;
  font-size: .9rem; flex: 0 0 auto;
}
.history .h-main { flex: 1; min-width: 0; }
.history .h-title { font-size: .88rem; font-weight: 700; }
.history .h-sub { font-size: .72rem; color: var(--muted); }
.history .h-mood { font-size: 1rem; }

/* 週グラフの回数ラベル */
.week__count {
  font-size: .62rem;
  color: var(--muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-height: 1em;
}

/* 設定スイッチ */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  cursor: pointer;
}
.switch-row + .switch-row { border-top: 1px solid var(--line-soft); }
.sw-text { display: block; }
.sw-text strong { display: block; font-size: .9rem; font-weight: 700; }
.sw-text small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.6; }
.switch {
  appearance: none;
  -webkit-appearance: none;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #E2D8CC;
  position: relative;
  flex: 0 0 auto;
  transition: background .22s ease;
  cursor: pointer;
  margin: 0;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(80, 60, 45, .25);
  transition: transform .22s cubic-bezier(.3, .9, .3, 1);
}
.switch:checked { background: var(--clay); }
.switch:checked::after { transform: translateX(20px); }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--clay-deep); }

/* ---------- こえの設定 ---------- */
.voice-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}
.voice-emoji {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--clay-soft);
  display: grid; place-items: center;
  font-size: 1.15rem;
}
.voice-title { display: block; font-size: .92rem; font-weight: 700; }
.voice-sub { display: block; font-size: .74rem; color: var(--muted); line-height: 1.6; }

.field { display: block; margin-top: 14px; }
.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.field__label b {
  font-family: var(--font-display);
  color: var(--clay-deep);
  font-variant-numeric: tabular-nums;
}
.field__hint {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 4px;
}

.select {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: .86rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.range {
  width: 100%;
  margin: 9px 0 0;
  appearance: none;
  -webkit-appearance: none;
  height: 26px;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--clay-soft), var(--clay));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--clay);
  box-shadow: 0 2px 6px rgba(80, 60, 45, .2);
}
.range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--clay-soft), var(--clay));
}
.range::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--clay);
}

.voice-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.voice-actions .btn { flex: 1 1 auto; }

.voice-link {
  font-weight: 700;
  color: var(--clay-deep);
  border-bottom: 1px solid rgba(196, 112, 63, .35);
  padding-bottom: 1px;
}

.empty-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--clay-deep);
  font-weight: 700;
  border-bottom: 1px solid rgba(196, 112, 63, .35);
}

/* 図鑑の見出し・件数 */
.page-title {
  font-size: clamp(1.55rem, 5.6vw, 1.95rem);
  margin-top: 4px;
}
.result-count {
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: .06em;
  margin: 16px 0 0;
}

/* ---------- 丸太ページ ---------- */
.log-banner {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid #E7D8C6;
  background: linear-gradient(150deg, #FFFBF6 0%, #F6ECDF 100%);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.log-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.log-banner__art {
  width: 88px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  padding: 3px;
}
.log-banner__art svg { width: 100%; height: auto; }
.log-banner__text { min-width: 0; }
.log-banner__text h2 { font-size: 1rem; margin-top: 1px; }
.log-banner__text p { font-size: .8rem; color: var(--muted); line-height: 1.7; margin-top: 3px; }
.log-banner__link {
  display: inline-block;
  margin-top: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--clay-deep);
}

.maruta-hero {
  margin: 18px auto 0;
  width: min(300px, 76vw);
  border-radius: 26px;
  background: linear-gradient(170deg, #FFF9F3, #F4E9DC);
  border: 1px solid var(--line-soft);
  padding: 10px;
  box-shadow: var(--shadow);
}
.maruta-hero svg { width: 100%; height: auto; }

.reason-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.reason-list li { display: flex; gap: 12px; align-items: flex-start; }
.reason-list li > span {
  font-size: 1.15rem;
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bg-deep);
  display: grid; place-items: center;
}
.reason-list strong { display: block; font-size: .9rem; }
.reason-list small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.7; }

.log-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.log-steps li {
  display: flex;
  gap: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  box-shadow: 0 1px 3px rgba(80, 60, 45, .04);
}
.log-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  color: #fff;
  background: var(--wood, #B08A63);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  letter-spacing: .02em;
}
.log-body h3 { font-size: .95rem; }
.log-body p { font-size: .84rem; color: var(--muted); line-height: 1.8; margin-top: 3px; }

.where-grid { display: grid; gap: 10px; }
.where-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(80, 60, 45, .04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.where-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.where-art {
  width: 78px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 42%, #FEFBF8, #F6EDE3);
  overflow: hidden;
  padding: 2px;
}
.where-text h3 { font-size: .95rem; }
.where-text p { font-size: .78rem; color: var(--muted); line-height: 1.7; margin-top: 3px; }
.where-effect {
  display: inline-block;
  margin-top: 6px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--sage);
  background: var(--sage-soft);
  padding: 2px 9px;
  border-radius: 999px;
}

.tool-list { display: grid; gap: 10px; }
.tool-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  box-shadow: 0 1px 3px rgba(80, 60, 45, .04);
}
.tool-icon { font-size: 1.3rem; line-height: 1.2; }
.tool-card strong { font-size: .9rem; display: block; }
.tool-card p { font-size: .8rem; color: var(--muted); line-height: 1.75; margin-top: 2px; }

/* 丸太ステップの動きデモ */
.demo--log .finger { display: none; }
.demo--log .pad {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #EAD3B8, #B08A63);
  animation: logRoll 3.4s ease-in-out infinite;
}
@keyframes logRoll {
  0%, 100% { transform: translateY(-9px); }
  45%, 55% { transform: translateY(9px); }
}
.demo--log .pad::after {
  content: '';
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1.5px solid rgba(120, 90, 62, .5);
}
.demo--log .demo-arrows {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(196, 112, 63, .8);
  font-size: .72rem;
  line-height: 1.1;
  text-align: center;
}

/* そろばん玉のデモ：玉が4つ並んだ横長の器具 */
.demo--log[data-tool="soba"] .pad {
  width: 96px;
  height: 34px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 50%, #EBD9C4 42%, transparent 44%),
    radial-gradient(circle at 40% 50%, #EBD9C4 42%, transparent 44%),
    radial-gradient(circle at 62% 50%, #EBD9C4 42%, transparent 44%),
    radial-gradient(circle at 84% 50%, #EBD9C4 42%, transparent 44%),
    linear-gradient(#D8C2A6, #C6AC8C);
  border: 1.5px solid #A98462;
  animation: sobaRock 3.6s ease-in-out infinite;
}
.demo--log[data-tool="soba"] .pad::after { display: none; }
@keyframes sobaRock {
  0%, 100% { transform: rotate(-5deg) translateX(-5px); }
  50% { transform: rotate(5deg) translateX(5px); }
}

/* そろばん1個：単体の玉 */
.demo--log[data-tool="soba1"] .pad {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #F3E6D6, #C6AC8C);
  border: 1.5px solid #A98462;
  animation: stillPulse 3.4s ease-in-out infinite;
}
.demo--log[data-tool="soba1"] .pad::after { display: none; }
@keyframes stillPulse {
  0%, 100% { transform: scale(.95); opacity: .85; }
  50% { transform: scale(1.02); opacity: 1; }
}

/* タオル丸太：白い丸が3つ */
.demo--log[data-tool="towel"] .pad {
  width: 104px;
  height: 30px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #F6EFE7 0 26px, #E6DACB 26px 30px);
  border: 1.5px solid #C9B8A6;
  animation: towelRock 4s ease-in-out infinite;
}
.demo--log[data-tool="towel"] .pad::after { display: none; }
@keyframes towelRock {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* 砂時計の代わり：丸太系ステップの注記 */
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lav-soft);
  color: var(--lav);
  margin-bottom: 4px;
}

/* ---------- 道具ハブ（tools.html） ---------- */
.tool-hub { display: grid; gap: 12px; }
.tool-hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--clay);
}
.tool-hero-card[data-tone="lav"] { border-left-color: var(--lav); }
.tool-hero-card[data-tone="sage"] { border-left-color: var(--sage); }
.tool-hero-card[data-tone="wood"] { border-left-color: #B08A66; }
.tool-hero-card[data-tone="time"] { border-left-color: #8d7db0; }
.tool-hero-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tool-hero-card__icon {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--bg-deep);
  display: grid; place-items: center;
  font-size: 1.3rem;
}
.tool-hero-card__title { min-width: 0; }
.tool-hero-card__tag {
  display: block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
}
.tool-hero-card h3 { font-size: 1.02rem; }
.tool-hero-card p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 8px;
}
.tool-hero-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.tool-hero-card__actions .btn { flex: 1 1 auto; }

.quick-list { display: grid; gap: 9px; }
.quick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  box-shadow: 0 1px 3px rgba(80, 60, 45, .04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.quick-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-row__icon { font-size: 1.1rem; flex: 0 0 auto; }
.quick-row__label { flex: 1; min-width: 0; font-size: .88rem; font-weight: 700; }

/* 出典・引用元 */
.source-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.source-list li { font-size: .8rem; line-height: 1.6; }
.source-list a {
  display: block;
  color: var(--ink);
  border-bottom: 1px dotted rgba(111, 138, 114, .5);
  padding-bottom: 2px;
  word-break: break-word;
}
.source-list a::after {
  content: ' ↗';
  color: var(--ink-soft);
  font-size: .78em;
}
.source-list a:hover { color: #3f6b4e; }
.source-note {
  margin-top: 10px;
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ステップ内のミニ注記 */
.step-note {
  margin: 10px 0 0;
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.7;
  border-left: 2px solid var(--line);
  padding-left: 10px;
}

/* 用意するもの */
.tool-list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  background: var(--bg-inset, #F4EFE8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink);
}

.empty {
  text-align: center;
  padding: 34px 16px;
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.9;
  background: rgba(255, 255, 255, .5);
}

/* ---------- 注意書き・フッター ---------- */
.caution {
  margin-top: 34px;
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.85;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.caution strong { color: var(--ink-soft); display: block; margin-bottom: 4px; font-size: .78rem; }
.caution ul { padding-left: 1.05em; margin: 0; }
.caution li + li { margin-top: 4px; }

.site-foot {
  margin-top: 28px;
  font-size: .72rem;
  color: #9E948A;
  text-align: center;
  letter-spacing: .04em;
}

/* ---------- トースト ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  background: rgba(46, 42, 39, .94);
  color: #fff;
  font-size: .82rem;
  padding: 11px 18px;
  border-radius: 999px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-width: 86vw;
  text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 浮き上がり ---------- */
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.is-in { animation: revealIn .55s cubic-bezier(.22, .9, .28, 1) forwards; }
@keyframes revealIn { to { opacity: 1; transform: none; } }

/* ---------- 大きめ画面 ---------- */
@media (min-width: 620px) {
  .wrap { padding: 0 26px; }
  .mood-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .course-list { gap: 14px; }
  .point-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .art-frame, .timer { width: 320px; }
  .hero h1 { font-size: 2.3rem; }
  .session-intro { padding: 26px; }
  section + section { margin-top: 42px; }
}

@media (min-width: 900px) {
  .wrap { max-width: 720px; }
  .bottom-nav { border-radius: 20px 20px 0 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* ---------- アニメーション抑制 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 印刷 */
@media print {
  .bottom-nav, .icon-btn, .session-controls, .demo-wrap { display: none !important; }
  body { background: #fff; }
}
