/* 色は v2 と同じ (元サイト genkeep-stretch.jp の配色) */
:root {
  --yellow: #ffe74d;
  --yellow-deep: #f3d823;
  --cream: #fffbe3;
  --orange: #e2470f;
  --orange-dark: #bd3a0a;
  --ink: #2b2727;
  --ink-soft: #5c5454;
  --line: #e7e1cf;
  --white: #fff;
  --green: #2e8b6e; /* 自宅のプランのスタンプ */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 64px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--ink); }

body {
  margin: 0;
  background: var(--ink); /* スマホ幅の枠 (.page) の外側。v2 と同じ黒 */
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
button:focus-visible, [role="tab"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.page { max-width: 460px; margin: 0 auto; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 16px); background: var(--cream); min-height: 100vh; }

/* ---------- ヘッダー ---------- */
.top { padding: 24px 16px 20px; background: var(--yellow); text-align: center; }
.logo { width: 150px; height: auto; margin: 0 auto 12px; }
.top h1 { font-size: 26px; font-weight: 900; letter-spacing: .04em; }
.top-lead { margin-top: 8px; font-size: 13px; color: var(--ink); }

/* ---------- プランの選択 ---------- */
/* 1つの白い枠の中に、区切り線で並べる */
.plan-cards {
  margin-top: 20px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}
.plan-cards li + li { border-top: 1px solid var(--line); }
.plan-card {
  display: grid; grid-template-columns: 1fr 16px; gap: 12px; align-items: center;
  width: 100%; padding: 18px 16px;
  border: 0; background: none;
  text-align: left; cursor: pointer;
}
.plan-card:active { background: #fdf8e6; }
.plan-card-body { display: flex; flex-direction: column; gap: 2px; }
.plan-card-name { font-size: 18px; font-weight: 900; line-height: 1.35; }
.plan-card-target { font-size: 13px; color: var(--ink-soft); }
.plan-card-arrow {
  width: 9px; height: 9px; margin-left: 2px;
  border-top: 2px solid #b8ae90; border-right: 2px solid #b8ae90;
  transform: rotate(45deg);
}

/* 中身の画面と進行中の画面のヘッダー */
.top-sub { position: relative; padding-top: 20px; }
.top-sub h1 { font-size: 24px; }
.top-label span { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 999px; background: var(--white); color: var(--orange); font-size: 11px; font-weight: 900; }
.top .plan-title { justify-content: center; margin-bottom: 4px; }
.back-button {
  position: absolute; top: 12px; left: 8px;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 6px 8px;
  border: 0; background: none;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.top-sub:has(.back-button) { padding-top: 44px; }

/* 中身の画面 */
.level-note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 20px 0 8px; }
.section-title { font-size: 16px; font-weight: 900; }
.section-meta { font-size: 13px; font-weight: 700; color: var(--ink-soft); }

/* 中身の確認の一覧は、1つの白い枠の中に区切り線で並べる */
.steps.steps-plain { gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; }
.steps-plain .step { grid-template-columns: 56px 1fr 52px; padding: 12px 14px; border: 0; border-radius: 0; }
.steps-plain .step.is-preview { grid-template-columns: 56px 1fr auto; }
.steps-plain .step + .step { border-top: 1px solid var(--line); }
.steps-plain .step-photo img { width: 56px; height: 56px; }
.steps-plain .step-name { font-size: 14px; }
.steps-plain .how-button { margin-top: 0; }
/* 進行中の一覧は、1種目ずつ分かれたカード */
.steps.steps-cards { gap: 8px; }
.steps-cards .step { padding: 12px; border-radius: 12px; box-shadow: 0 1px 2px rgba(43, 39, 39, .04); }
.steps-cards .step-photo img { width: 56px; height: 56px; }
.steps-cards .stamp { width: 52px; height: 52px; }
/* 右端がスタンプなので、「使い方」のボタンは回数のタグの下に置く */
.steps-cards .step { grid-template-columns: 56px 1fr 52px; align-items: center; }
.steps-cards .how-button { margin-top: 6px; padding: 3px 9px 3px 8px; font-size: 11px; }
.steps-cards .step.is-done .step-name { color: var(--ink-soft); }

/* 回数・時間のタグ */
.step-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.tag-dose { padding: 1px 8px; border-radius: 6px; background: var(--yellow); font-size: 14px; font-weight: 900; line-height: 1.6; }
.tag-time { padding: 1px 8px; border-radius: 6px; background: #f3efe3; color: var(--ink-soft); font-size: 12px; font-weight: 700; line-height: 1.6; }
.step.is-done .tag-dose { background: #fde3d6; }

.progress-num { font-size: 16px; color: var(--orange); }
.progress-thin { height: 6px; margin: 0 0 12px; }
.start-bar {
  position: sticky; bottom: calc(var(--tab-h) + var(--safe-b));
  margin: 16px -16px 0; padding: 12px 16px;
  background: linear-gradient(rgba(255, 251, 227, 0), var(--cream) 35%);
}
.start-button {
  width: 100%; padding: 16px; border: 0; border-radius: 8px;
  background: var(--orange); color: var(--white);
  font-size: 18px; font-weight: 900; cursor: pointer;
}
.start-button:active { background: var(--orange-dark); }

/* ---------- レベルのタブ ---------- */
.levels { position: sticky; top: 0; z-index: 5; padding: 12px 16px; background: var(--yellow); border-bottom: 1px solid var(--yellow-deep); }
.levels-inner { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--white); }
.levels [role="tab"] {
  flex: 1;
  padding: 10px 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.levels [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--white); }

.view-body { padding: 0 16px 8px; }

/* ---------- 概要と進み具合 ---------- */
.summary { padding: 20px 0 16px; }
.plan-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 22px; font-weight: 900; line-height: 1.3; }
.plan-level { padding: 2px 10px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 700; white-space: nowrap; }
.lead { font-size: 14px; }
.lead-sub { margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.meta { display: flex; gap: 8px; margin-top: 10px; }
.meta span { padding: 2px 10px; border-radius: 4px; background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.progress { margin-top: 16px; }
.progress-label { font-size: 13px; font-weight: 700; }
.progress-label strong { font-size: 18px; color: var(--orange); }
.progress-bar { height: 10px; margin-top: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--orange); border-radius: inherit; transition: width .3s ease; }

/* ---------- メニュー ---------- */
.steps { display: grid; gap: 10px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr 60px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.step.is-preview { grid-template-columns: 72px 1fr; }
.step-photo img { width: 72px; height: 72px; object-fit: contain; border-radius: 6px; background: var(--white); border: 1px solid var(--line); }
.step-body { min-width: 0; }
.step-name { font-size: 15px; font-weight: 700; line-height: 1.35; }
.how-button {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px; padding: 4px 10px 4px 8px;
  border: 1px solid var(--ink-soft); border-radius: 999px;
  background: var(--white);
  font-size: 12px; font-weight: 700; line-height: 1.4;
  cursor: pointer;
}
.how-button::before { content: ""; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.how-button:active { background: #fdf8e6; }

/* スタンプ。押すとその場でスタンプが押される (もう一度押すと取り消し) */
.stamp {
  display: grid; place-items: center;
  width: 60px; height: 60px; padding: 0;
  border: 2px dashed #cfc6aa;
  border-radius: 50%;
  background: #fffdf3;
  color: #b8ae90;
  font-size: 11px; font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.stamp:active { transform: scale(.94); }
.step.is-done { border-color: #f1c3b0; background: #fff6f1; }
.step.is-done .stamp {
  border: 3px double var(--orange);
  color: var(--orange);
  font-size: 15px; font-weight: 900;
  transform: rotate(-12deg);
}
.step.is-new .stamp { animation: stamp .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes stamp {
  0% { transform: scale(2) rotate(-30deg); opacity: 0; }
  100% { transform: scale(1) rotate(-12deg); opacity: 1; }
}

/* ---------- 達成 ---------- */
.done { margin-top: 16px; padding: 20px 16px; border-radius: 10px; background: var(--orange); color: var(--white); text-align: center; }
.done-stamp {
  display: grid; place-items: center;
  width: 76px; height: 76px; margin: 0 auto 8px;
  border: 4px double var(--white); border-radius: 50%;
  font-size: 22px; font-weight: 900;
  transform: rotate(-12deg);
}
.done-title { font-size: 20px; font-weight: 900; }
.done-text { font-size: 13px; margin-top: 4px; }

/* ---------- スタンプカード ---------- */
.card, .log { margin-top: 16px; }
.card h2, .log h2 {
  display: inline-block;
  padding: 0 10px;
  background: var(--yellow);
  font-size: 18px; font-weight: 900;
}
.card { padding: 18px 16px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.card-total { margin-top: 4px; font-size: 13px; font-weight: 700; text-align: center; }
.card-total strong { font-size: 18px; color: var(--orange); }
.card-total-sep { margin: 0 8px; color: var(--line); }

/* カレンダー */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.cal-title { font-size: 17px; font-weight: 900; }
.cal-move { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; }
.cal-move:disabled { opacity: .3; cursor: default; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-week { margin-top: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--ink-soft); text-align: center; }
.cal-week li:first-child { color: #c4553a; }
.cal-week li:last-child { color: #3a6fc4; }
.cal-grid { gap: 2px; margin-top: 4px; }
.cal-day { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 8px; }
.cal-day.is-today { background: #fff6cc; }
.cal-date { position: absolute; top: 3px; left: 5px; font-size: 10px; font-weight: 700; color: #a99f84; }
.cal-day.is-today .cal-date { color: var(--ink); }
.cal-stamp {
  display: grid; place-items: center;
  width: 78%; aspect-ratio: 1; margin-top: 6px;
  border: 2.5px double var(--orange); border-radius: 50%;
  color: var(--orange); font-size: 10px; font-weight: 900; line-height: 1.1; text-align: center;
  transform: rotate(-12deg);
}
.cal-stamp.is-home { border-color: var(--green); color: var(--green); }
.cal-more { position: absolute; right: 1px; bottom: 1px; padding: 0 4px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 9px; font-weight: 700; line-height: 1.5; }
.cal-day.has-stamp { width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cal-day.has-stamp:active { background: #fdf3e0; }
.cal-day.is-selected { background: #fff6f1; box-shadow: inset 0 0 0 2px var(--orange); }
.cal-day.is-today.is-selected { background: #fff6cc; }

/* 押した日にやったこと */
.cal-detail { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--cream); }
.cal-detail[hidden] { display: none; }
.cal-detail-date { font-size: 13px; font-weight: 900; }
.cal-detail-list { display: grid; gap: 8px; margin-top: 8px; }
.cal-detail-list li { display: flex; align-items: center; gap: 10px; }
.cal-detail-mark {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 38px; height: 38px;
  border: 2.5px double var(--orange); border-radius: 50%;
  background: var(--white); color: var(--orange);
  font-size: 10px; font-weight: 900; line-height: 1.1; text-align: center;
  transform: rotate(-12deg);
}
.cal-detail-mark.is-home { border-color: var(--green); color: var(--green); }
.cal-detail-text { display: flex; flex-direction: column; }
.cal-detail-name { font-size: 14px; font-weight: 700; }
.cal-detail-sub { font-size: 12px; color: var(--ink-soft); }
.cal-legend { display: flex; justify-content: flex-end; gap: 12px; margin-top: 10px; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.cal-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 4px; border: 2px solid var(--orange); border-radius: 50%; vertical-align: -1px; }
.cal-legend .cal-legend-home::before { border-color: var(--green); }
.card-note { margin-top: 12px; font-size: 11px; color: var(--ink-soft); }
.link-button { margin-top: 8px; padding: 4px 0; border: 0; background: none; font-size: 12px; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }

/* ---------- マシンの使い方 ---------- */
/* ---------- スタンプの画面 ---------- */
.today { margin-top: 20px; padding: 16px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.today-label { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
/* 進行中のプランがないときは、文字を左、「プランを選ぶ」を右に並べる */
.today-none { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.today-none[hidden] { display: none; }
.today-empty { margin: 2px 0 0; font-size: 16px; font-weight: 700; color: var(--ink-soft); }
.today-button { padding: 10px 20px; border: 0; border-radius: 999px; background: var(--orange); color: var(--white); font-size: 14px; font-weight: 700; cursor: pointer; }
.today-name { margin-bottom: 10px; font-size: 18px; font-weight: 900; }
.log { padding: 18px 16px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.log-list { margin-top: 10px; }
.log-list li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.log-list li:first-child { border-top: 0; }
.log-date { flex: 0 0 3.2em; font-weight: 900; color: var(--orange); }
.log-name { font-weight: 700; }
.log-empty { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.view-body > .card-note { margin-top: 16px; }

/* ---------- トレーニングの画面 ---------- */
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.done-button-main { background: var(--white) !important; color: var(--orange) !important; }
.done-button { padding: 10px 20px; border: 2px solid var(--white); border-radius: 999px; background: transparent; color: var(--white); font-size: 14px; font-weight: 700; cursor: pointer; }
/* キャンセル */
.cancel { margin-top: 28px; text-align: center; }
.cancel-button { padding: 10px 20px; border: 1px solid #cfc6aa; border-radius: 999px; background: var(--white); color: var(--ink-soft); font-size: 14px; font-weight: 700; cursor: pointer; }
.cancel-confirm { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 14px; }
.cancel-actions { display: flex; gap: 8px; margin-top: 12px; }
.cancel-actions button { flex: 1; padding: 12px 8px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.cancel-no { border: 1px solid var(--line); background: var(--white); }
.cancel-yes { border: 0; background: var(--ink); color: var(--white); }
.caution { margin-top: 24px; font-size: 12px; color: var(--ink-soft); text-align: center; }

/* ---------- マシン一覧の画面 ---------- */
.guide-list { display: grid; gap: 10px; margin-top: 20px; }
.guide-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center;
  width: 100%; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); text-align: left; cursor: pointer;
}
.guide-item:active { background: #fdf8e6; }
.guide-item img { width: 96px; height: 96px; object-fit: contain; border-radius: 6px; background: var(--white); border: 1px solid var(--line); }
.guide-text { display: flex; flex-direction: column; gap: 2px; }
.guide-area { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.guide-name { font-size: 16px; font-weight: 900; line-height: 1.3; }
.guide-catch { font-size: 12px; line-height: 1.5; }

/* ---------- 下のタブ ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end;
  max-width: 460px; height: calc(var(--tab-h) + var(--safe-b));
  margin: 0 auto; padding-bottom: var(--safe-b);
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px;
  height: var(--tab-h); padding: 0 0 8px;
  border: 0; background: none;
  color: #9a9080; font-size: 11px; font-weight: 700;
  cursor: pointer;
}
/* 選んでいるタブは、アイコンと文字をオレンジにする */
.tab[aria-current="page"] { color: var(--orange); }
.tab-main-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-top: -22px;
  border: 4px solid var(--white); border-radius: 50%;
  background: var(--ink-soft); color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.tab-main[aria-current="page"] .tab-main-icon { background: var(--orange); }
.tab:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

/* ---------- マシンの詳細 (下から出るシート) ---------- */
/* 高さは中身の長さによらず画面の高さに対して決める。中身が短いときは下が余白になる */
.sheet {
  width: 100%; max-width: 460px;
  height: 88vh; height: 88dvh; max-height: 88vh; max-height: 88dvh;
  margin: auto auto 0;
  padding: 0; border: 0;
  border-radius: 16px 16px 0 0;
  background: var(--white); color: var(--ink);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(0, 0, 0, .55); }
.sheet[open] { animation: sheet-in .25s ease-out; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
.sheet-body { display: flex; flex-direction: column; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.sheet-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); cursor: pointer;
}
.sheet-video { background: #000; }
/* 動画はどれも 640x360。サムネイルの写真は縦長なので、枠に合わせて切り抜く */
.sheet-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.sheet-content { flex: 1 0 auto; padding: 16px 16px calc(24px + var(--safe-b)); }
.sheet-area { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.sheet-title { font-size: 22px; font-weight: 900; line-height: 1.3; }
.sheet-catch { margin-top: 6px; font-size: 14px; }
.sheet-dose { margin-top: 14px; padding: 12px; border-radius: 8px; background: var(--yellow); text-align: center; }
.sheet-dose:empty { display: none; }
.sheet-dose b { display: block; font-size: 26px; font-weight: 900; line-height: 1.2; }
.sheet-dose span { font-size: 12px; font-weight: 700; }
.sheet-note { margin-top: 10px; padding-left: 10px; border-left: 3px solid var(--orange); font-size: 14px; }
.sheet-note:empty { display: none; }
.sheet-content > p { font-size: 14px; }
.sheet-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sheet-tags li { padding: 2px 10px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.sheet-tags:empty { display: none; }

.sheet-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.sheet-eyebrow { font-size: 11px; font-weight: 900; letter-spacing: .12em; color: var(--orange); }
.sheet-section h3 { margin: 2px 0 12px; font-size: 18px; font-weight: 900; }

.sheet-merits { display: grid; gap: 8px; }
.sheet-merits li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 8px; background: var(--cream); }
.merit-num { flex: 0 0 auto; font-size: 20px; font-weight: 900; line-height: 1; color: var(--orange); }
.merit-title { font-size: 15px; font-weight: 700; line-height: 1.45; }
.merit-text { margin-top: 2px; font-size: 13px; color: var(--ink-soft); }

.sheet-point { display: grid; grid-template-columns: 38% 1fr; gap: 14px; align-items: start; }
.sheet-point p { font-size: 14px; line-height: 1.75; }
.sheet-figure { margin: 0; padding: 8px; border-radius: 8px; background: #fffdf3; border: 1px solid var(--line); text-align: center; }
.sheet-figure[hidden] { display: none; }
.sheet-video[hidden], .sheet-section[hidden], .sheet-caution[hidden] { display: none; }
/* 動画がないときは、閉じるボタンの下に余白を取る */
.sheet-video[hidden] + .sheet-content { padding-top: 60px; }

/* やり方の手順 */
.sheet-how { counter-reset: how; display: grid; gap: 10px; }
.sheet-how li { position: relative; padding-left: 34px; font-size: 14px; line-height: 1.65; counter-increment: how; }
.sheet-how li::before {
  content: counter(how);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--yellow); font-size: 13px; font-weight: 900;
}
.sheet-caution { margin-top: 20px; padding: 12px 14px; border-radius: 8px; background: #f3efe3; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.sheet-figure img { width: 100%; height: auto; max-height: 220px; object-fit: contain; margin: 0 auto; }
.sheet-figure figcaption { margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.sheet-figure[hidden] + p { grid-column: 1 / -1; }

.sheet-photos { display: flex; gap: 8px; margin: 12px -16px 0; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sheet-photos[hidden] { display: none; }
.sheet-photos::-webkit-scrollbar { display: none; }
.sheet-photos img { flex: 0 0 62%; aspect-ratio: 335 / 431; object-fit: cover; border-radius: 8px; scroll-snap-align: start; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
