/* small-animals.css — 「うさぎ・小動物」 channel.
   Design: Opus 5.5 spec, design/DESIGN-SPEC.md ("小さな写真館": paper · mounted frame · numbered tag).
   Every rule is scoped under .sa-page / .sa-* — cat pages are never affected. */

/* ───────── tokens ───────── */
.sa-page {
  --sa-paper: #FFFCF0; --sa-card: #FFFFFF; --sa-mat: #F6F1E4; --sa-hay: #E6DAC0; --sa-line: #E8E2D4;
  --sa-heading: #203E32; --sa-ink: #26332F; --sa-ink-soft: #5C6B66;
  --sa-action: #357C68; --sa-action-press: #2B6656; --sa-line-green: #07843F;
  --sa-ok-bg: #F0FFFA; --sa-ok-fg: #357C68;
  --sa-hold-bg: #FBF1D9; --sa-hold-fg: #6E5700;
  --sa-done-bg: #FBEDE8; --sa-done-fg: #9A3F2B;
  --sa-seal: #B04A33; --sa-cheek: #F9B8D0;
  --sa-gutter: 16px; --sa-gap: 20px; --sa-section: 56px; --sa-top: 12px; --sa-pad: 10px;
  --sa-ease: var(--ease-out, cubic-bezier(.25, .46, .45, .94));
  background: var(--sa-paper);
}
@media (min-width: 768px) { .sa-page { --sa-gutter: 24px; --sa-gap: 24px; --sa-section: 72px; --sa-top: 32px; } }
@media (min-width: 1024px) { .sa-page { --sa-gutter: 40px; --sa-gap: 32px; --sa-section: 96px; --sa-top: 40px; --sa-pad: 12px; } }

/* ───────── page frame ───────── */
.sa-main { padding-top: calc(var(--header-height, 72px) + var(--sa-top)); color: var(--sa-ink); font-feature-settings: "palt" 0; }
.sa-wrap { width: min(100% - (var(--sa-gutter) * 2), 1200px); margin-inline: auto; }
.sa-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sa-main :focus-visible { outline: 3px solid var(--sa-action); outline-offset: 2px; }
.sa-main a { text-underline-offset: 3px; }
.sa-crumbs a, .sa-hall a, .sa-back, .sa-link { display: inline-flex; align-items: center; min-height: 24px; } /* WCAG 2.5.8 target size */

/* Japanese line breaking (review 1 §3): kinsoku + phrase-aware where supported; fixed copy breaks only at phrase
   boundaries (<wbr>), so no orphan "す。" lines and no splitting inside a word like キャッテ/リー */
.sa-main { line-break: strict; word-break: auto-phrase; }
.sa-main p, .sa-main li, .sa-main dd { text-wrap: pretty; }
.sa-main h1, .sa-main h2, .sa-main h3 { text-wrap: balance; }
.sa-keep { word-break: keep-all; overflow-wrap: anywhere; }
.sa-sent { display: block; }

/* site buttons, calmed for this channel (spec §1: one interactive colour, no gradients; §3: buttons may wrap).
   Only LINE is a solid button; the secondary one (見学 / retry / back to list) is an outline (review 1 §2). */
.sa-main .btn { box-sizing: border-box; white-space: normal; text-align: center; min-height: 48px; padding: 12px 24px; border: 1.5px solid transparent; line-height: 1.45; font-weight: 700; text-decoration: none; transition: background-color 150ms var(--sa-ease), border-color 150ms var(--sa-ease), transform 120ms var(--sa-ease); }
.sa-main .btn-primary { background: #fff; color: var(--sa-action); border-color: var(--sa-action); box-shadow: none; }
.sa-main .btn-primary:hover, .sa-main .btn-primary:active { background: var(--sa-ok-bg); color: var(--sa-action-press); border-color: var(--sa-action-press); transform: none; box-shadow: none; }
.sa-main .btn-line { background: var(--sa-line-green); color: #fff; box-shadow: none; padding-inline: 24px; }
.sa-main .btn-line:hover, .sa-main .btn-line:active { background: #066B2C; transform: none; box-shadow: none; }
.sa-main .btn:active { transform: scale(.985); }

/* ───────── type ───────── */
.sa-h1 { margin: 16px 0 0; font-size: 28px; line-height: 1.25; font-weight: 700; color: var(--sa-heading); font-feature-settings: "palt"; text-wrap: balance; }
.sa-h2 { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 700; color: var(--sa-heading); font-feature-settings: "palt"; }
.sa-lede { margin: 12px 0 0; max-width: 34em; font-size: 16px; line-height: 1.8; }
.sa-small { font-size: 13px; line-height: 1.7; color: var(--sa-ink-soft); }
@media (min-width: 768px) { .sa-h1 { font-size: 32px; } .sa-h2 { font-size: 24px; } .sa-lede { font-size: 17px; } }
@media (min-width: 1024px) { .sa-h1 { font-size: 40px; } .sa-h2 { font-size: 26px; } }

/* ───────── intro ───────── */
.sa-intro { margin-bottom: 24px; }
.sa-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: var(--sa-ink-soft); }
.sa-crumbs a { color: var(--sa-ink-soft); text-decoration: none; }
.sa-crumbs a:hover { color: var(--sa-action); text-decoration: underline; }
.sa-stamp { display: inline-flex; align-items: center; max-width: 100%; box-sizing: border-box; min-height: 28px; padding: 5px 12px; background: #fff; border: 1px solid var(--sa-line); border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--sa-ink-soft); text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
.sa-stamp:hover { color: var(--sa-action); border-color: var(--sa-action); }

/* ───────── filter ───────── */
.sa-catalog { min-height: 420px; }
.sa-catalog[data-sa-ready] { min-height: 0; }
.sa-filter { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 2px 0; }
.sa-chipbtn { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; background: #fff; border: 1px solid var(--sa-line); border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1; color: var(--sa-ink); white-space: nowrap; cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color 150ms var(--sa-ease), color 150ms var(--sa-ease), border-color 150ms var(--sa-ease), transform 120ms var(--sa-ease); }
.sa-chipbtn:not(.is-on):hover { border-color: var(--sa-action); color: var(--sa-action); }
.sa-chipbtn.is-on { background: var(--sa-action); border-color: var(--sa-action); color: #fff; }
.sa-chipbtn:active { transform: scale(.985); }
.sa-count { margin: 0; font-size: 13px; line-height: 1.7; color: var(--sa-ink-soft); font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
  .sa-filter { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
  .sa-chips { margin: 0; padding: 2px 0; flex-wrap: wrap; overflow: visible; }
}

/* ───────── grid ───────── */
.sa-gridwrap { transition: opacity 120ms var(--sa-ease); }
.sa-gridwrap.is-out { opacity: 0; }
.sa-gridwrap.is-in { opacity: 1; transition-duration: 180ms; }
.sa-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sa-gap); }
@media (min-width: 768px) { .sa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sa-cell { display: flex; min-width: 0; }

/* ───────── card ───────── */
.sa-card { position: relative; display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; padding: var(--sa-pad); background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: 20px; box-shadow: var(--shadow-card); color: var(--sa-ink); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform 220ms var(--sa-ease), box-shadow 220ms var(--sa-ease); }
.sa-card:focus-visible { outline: 3px solid var(--sa-action); outline-offset: 3px; }
@media (hover: hover) {
  .sa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
  .sa-card:hover .sa-window > img { transform: scale(1.03); }
}
.sa-card:active { transform: scale(.985); transition-duration: 120ms; }

.sa-window { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px; background: var(--sa-mat); }
.sa-window::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(38, 51, 47, .06); pointer-events: none; }
.sa-window > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transition: transform 420ms var(--sa-ease), opacity 240ms var(--sa-ease); }
.sa-window > img.sa-fade { opacity: 0; }
.sa-window > img.sa-fade.is-in { opacity: 1; }

.sa-card__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 2px 4px 4px; min-width: 0; }
.sa-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.sa-card__title { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--sa-heading); max-height: calc(1.45em * 2); overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; } /* block (not -webkit-box) so balance can even out a forced break of a long katakana name */
.sa-card__meta { margin: 0; font-size: 14px; line-height: 1.6; color: var(--sa-ink-soft); }
.sa-card__price { margin: auto 0 0; padding-top: 6px; font-size: 17px; line-height: 1.4; font-weight: 700; color: var(--sa-ink); font-variant-numeric: tabular-nums; }
.sa-card__price.is-ask, .sa-card__price.is-done { font-size: 14px; font-weight: 600; color: var(--sa-ink-soft); }
.sa-price__tax { margin-left: 4px; font-size: 12px; font-weight: 400; color: var(--sa-ink-soft); }
@media (min-width: 1024px) { .sa-card__title, .sa-card__price { font-size: 18px; } .sa-card__price.is-ask, .sa-card__price.is-done { font-size: 14px; } .sa-others__row .sa-card__title { font-size: 16px; } }

/* name tag (with punched hole) & status chip */
.sa-tag { position: relative; display: inline-flex; align-items: center; height: 26px; padding: 0 10px 0 22px; background: var(--sa-mat); border: 1px solid var(--sa-hay); border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: .06em; color: var(--sa-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sa-tag::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--sa-hay); }
.sa-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.sa-chip--available { background: var(--sa-ok-bg); color: var(--sa-ok-fg); }
.sa-chip--available::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sa-chip--reserved { background: var(--sa-hold-bg); color: var(--sa-hold-fg); }
.sa-chip--sold { background: var(--sa-done-bg); color: var(--sa-done-fg); }
@media (min-width: 1024px) { .sa-chip { font-size: 13px; } }

/* seal — ご家族決定 only; the photo itself stays in full colour */
.sa-seal { position: absolute; top: -8px; left: -8px; z-index: 2; display: grid; place-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .94); border: 2px solid var(--sa-seal); color: var(--sa-seal); font-size: 11px; font-weight: 700; line-height: 1.25; text-align: center; transform: rotate(-10deg); pointer-events: none; }
.sa-seal span { display: block; }
@media (min-width: 768px) { .sa-seal { width: 60px; height: 60px; } }

/* ───────── line art (sprite + placeholders) ───────── */
.sa-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sa-art { display: block; color: var(--sa-action); overflow: visible; --sa-art-stroke: 1.75; } /* stroke is screen px (vector-effect set on the shapes) */
.sa-art--trio { width: 160px; height: 64px; }
.sa-nophoto { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--sa-mat); }
.sa-nophoto .sa-art { width: 40%; height: auto; aspect-ratio: 1; --sa-art-stroke: 2; }
.sa-state__window .sa-art { --sa-art-stroke: 2; }
.sa-notice .sa-art { --sa-art-stroke: 1.5; }
.sa-window--wide { aspect-ratio: 4 / 3; }
.sa-nophoto__cap { font-size: 13px; line-height: 1.7; color: var(--sa-ink-soft); }

/* ───────── notice cell (the conversion hook) ───────── */
.sa-notice { display: flex; grid-column: auto; min-width: 0; }
@media (min-width: 768px) { .sa-notice { grid-column: span var(--sa-span2, 1); } }
@media (min-width: 1024px) { .sa-notice { grid-column: span var(--sa-span3, 1); } }
.sa-notice.sa-notice--top { grid-column: 1 / -1; }
.sa-notice__inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px 24px; text-align: center; background: var(--sa-mat); border: 1px solid var(--sa-hay); border-radius: 20px; }
.sa-notice__art { display: flex; justify-content: center; width: 100%; min-width: 0; }
.sa-notice__title { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--sa-heading); }
.sa-notice__body { margin: 6px 0 0; font-size: 14px; line-height: 1.7; }
.sa-notice .btn { width: 100%; }
/* three looks, picked by JS from the real column count (data-mode): compact = one column (above),
   poster = shares a row with cards, banner = alone on its row (review 1 §4) */
.sa-notice[data-mode="poster"] .sa-notice__inner { gap: 22px; padding: 40px 32px; }
.sa-notice[data-mode="poster"] .sa-art--trio { width: min(72%, 360px); height: auto; aspect-ratio: 160 / 64; --sa-art-stroke: 2; }
.sa-notice[data-mode="poster"] .sa-notice__title { font-size: 22px; }
.sa-notice[data-mode="poster"] .btn { width: auto; min-width: min(100%, 300px); }
.sa-notice[data-mode="banner"] .sa-notice__inner { display: grid; grid-template-columns: 220px minmax(0, 1fr) max-content; align-items: center; gap: 28px; padding: 28px 40px; text-align: left; }
.sa-notice[data-mode="banner"] .sa-art--trio { width: 100%; height: auto; aspect-ratio: 160 / 64; }
.sa-notice[data-mode="banner"] .btn { width: auto; white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1023px) { /* tablet: the text column would be squeezed, so the button drops under the text */
  .sa-notice[data-mode="banner"] .sa-notice__inner { grid-template-columns: 160px minmax(0, 1fr); gap: 20px 28px; padding: 28px 32px; }
  .sa-notice[data-mode="banner"] .btn { grid-column: 1 / -1; width: 100%; white-space: normal; }
}

/* ───────── skeleton ───────── */
.sa-cell > .sa-skel { flex: 1; min-width: 0; }
.sa-skel { padding: var(--sa-pad); background: #fff; border: 1px solid var(--sa-line); border-radius: 20px; box-shadow: var(--shadow-card); animation: sa-pulse 1400ms ease-in-out infinite alternate; }
.sa-skel__win { aspect-ratio: 3 / 4; border-radius: 12px; background: var(--sa-mat); }
.sa-skel__line { height: 14px; margin: 14px 4px 0; border-radius: 7px; background: var(--sa-mat); }
.sa-skel__line:last-child { width: 55%; }
@keyframes sa-pulse { from { opacity: .55; } to { opacity: 1; } }
@media (max-width: 1023px) { .sa-grid--skel > .sa-cell:nth-child(3) { display: none; } }

/* ───────── empty / error / missing ───────── */
.sa-state { display: grid; gap: 20px; max-width: 960px; margin-inline: auto; }
.sa-state__frame { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: var(--sa-pad); background: #fff; border: 1px solid var(--sa-line); border-radius: 20px; box-shadow: var(--shadow-card); }
.sa-state__window { display: grid; place-items: center; aspect-ratio: 2 / 1; border-radius: 12px; background: var(--sa-mat); }
.sa-state__window .sa-art--trio { width: min(70%, 300px); height: auto; aspect-ratio: 160 / 64; }
.sa-state__window .sa-art--rabbit { width: 88px; height: 88px; }
.sa-state__frame .sa-tag { align-self: flex-start; margin: 0 4px 4px; }
.sa-state__text h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.45; font-weight: 700; color: var(--sa-heading); text-wrap: balance; }
.sa-state__text p { margin: 0 0 16px; font-size: 16px; line-height: 1.8; }
.sa-state__text .btn { width: 100%; }
.sa-state__text .btn + .btn { margin-top: 10px; }
.sa-state__text p.sa-state__note { margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: var(--sa-ink-soft); }
.sa-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--sa-action); text-decoration: none; }
.sa-link:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .sa-state { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; }
  .sa-state__window { aspect-ratio: 4 / 3; }
  .sa-state__text .btn { width: auto; min-width: 100%; }
}

/* ───────── flow ───────── */
.sa-flowsec { margin-top: var(--sa-section); }
.sa-flowcell { container-type: inline-size; margin-top: 24px; }
.sa-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.sa-flow__item { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.sa-flow__num { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1.5px solid var(--sa-action); font-size: 13px; font-weight: 700; line-height: 1; color: var(--sa-action); font-variant-numeric: tabular-nums; }
.sa-flow__title { margin: 0; padding-top: 6px; font-size: 16px; line-height: 1.5; font-weight: 700; color: var(--sa-heading); }
.sa-flow__text { margin: 4px 0 0; font-size: 14px; line-height: 1.8; }
.sa-payment { margin-top: 24px; padding: 16px; background: var(--sa-mat); border: 1px solid var(--sa-line); border-radius: 12px; overflow-wrap: anywhere; }
.sa-payment__title { margin: 0; font-size: 16px; line-height: 1.5; color: var(--sa-heading); }
.sa-payment__list { margin: 8px 0 0; padding-left: 1.4em; font-size: 14px; line-height: 1.8; }
.sa-flow__item:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: -24px; width: 1.5px; background: var(--sa-hay); }
@container (min-width: 560px) {
  .sa-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
  .sa-flow__item:not(:last-child)::before { display: none; }
}
@container (min-width: 900px) {
  .sa-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .sa-flow__item { display: block; }
  .sa-flow__item:not(:last-child)::before { display: block; left: 46px; right: -16px; top: 17px; bottom: auto; width: auto; height: 1.5px; }
  .sa-flow__title { padding-top: 14px; }
}
.sa-legal { margin: 24px 0 0; font-size: 13px; line-height: 1.7; color: var(--sa-ink-soft); }

/* ───────── CTA group (desktop only — phones have the site's fixed bar) & hall band ───────── */
.sa-cta { display: none; margin-top: 40px; }
@media (min-width: 769px) { .sa-cta { display: block; } }
.sa-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.sa-cta__btns .btn { min-width: 220px; }
.sa-cta__note { margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: var(--sa-ink-soft); }
.sa-hall { display: flex; flex-direction: column; gap: 8px; margin-top: var(--sa-section); padding: 24px 0 56px; border-top: 1px solid var(--sa-line); font-size: 14px; line-height: 1.7; color: var(--sa-ink-soft); }
.sa-hall p { margin: 0; }
.sa-hall a { font-weight: 600; color: var(--sa-action); text-decoration: none; }
.sa-hall a:hover { text-decoration: underline; }
@media (min-width: 768px) { .sa-hall { flex-direction: row; align-items: center; justify-content: space-between; padding-bottom: 64px; } }
@media (min-width: 769px) { .sa-hall { padding-bottom: 96px; } } /* the site's floating LINE button sits bottom-right on desktop */

/* ───────── detail ───────── */
.sa-detail { display: grid; gap: 40px; }
.sa-detail > * { min-width: 0; }
.sa-detail__top { display: grid; gap: 16px; align-items: start; }
.sa-detail__top > * { min-width: 0; }
.sa-side { display: grid; gap: 40px; }
@media (min-width: 768px) {
  .sa-detail { gap: 48px; }
  .sa-detail__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .sa-side { gap: 32px; }
  .sa-gcol { position: sticky; top: calc(var(--header-height, 72px) + 16px); }
}
@media (min-width: 1024px) { .sa-detail__top { grid-template-columns: 500px minmax(0, 1fr); gap: 40px; } }
@media (min-width: 1280px) { .sa-detail__top { grid-template-columns: 580px minmax(0, 1fr); gap: 56px; } }
.sa-flowsec--side { display: none; margin-top: 0; }
@media (min-width: 1024px) { .sa-flowsec--side { display: block; } .sa-flowsec--wide { display: none; } }
.sa-flowsec--wide, .sa-flowsec--side { margin-top: 0; }

/* gallery */
.sa-gcol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.sa-gallery { position: relative; padding: 8px; background: #fff; border: 1px solid var(--sa-line); border-radius: 20px; box-shadow: var(--shadow-card); }
.sa-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 12px; }
.sa-gallery__track::-webkit-scrollbar { display: none; }
.sa-gallery__slide { flex: 0 0 100%; scroll-snap-align: center; }
.sa-gallery__count { position: absolute; top: 18px; right: 18px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(38, 51, 47, .72); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; pointer-events: none; }
.sa-thumbs { display: flex; gap: 8px; padding: 3px; overflow-x: auto; scrollbar-width: none; }
.sa-thumbs::-webkit-scrollbar { display: none; }
.sa-thumb { flex: none; width: 56px; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--sa-mat); opacity: .72; cursor: pointer; transition: opacity 150ms var(--sa-ease), box-shadow 150ms var(--sa-ease); }
.sa-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.sa-thumb.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--sa-action); }
.sa-thumb:hover { opacity: 1; box-shadow: 0 0 0 1.5px var(--sa-action); }
.sa-thumb.is-on:hover { box-shadow: 0 0 0 2px var(--sa-action); }
@media (min-width: 1024px) {
  .sa-gcol { grid-template-columns: 64px minmax(0, 400px); gap: 12px; }
  .sa-gcol .sa-gallery { grid-column: 2; grid-row: 1; }
  .sa-thumbs { grid-column: 1; grid-row: 1; flex-direction: column; overflow: visible; padding: 0; align-self: start; }
  .sa-thumb { width: 64px; }
}
@media (min-width: 1280px) { .sa-gcol { grid-template-columns: 64px minmax(0, 480px); } }

/* price panel */
.sa-panel { padding: 20px; background: #fff; border: 1px solid var(--sa-line); border-radius: 24px; box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .sa-panel { padding: 24px; } }
@media (min-width: 1024px) { .sa-panel { padding: 28px; } }
.sa-panel__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sa-copy { margin-left: auto; padding: 6px 0 6px 8px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--sa-action); cursor: pointer; transition: opacity 150ms var(--sa-ease); }
.sa-copy:hover { color: var(--sa-action-press); text-decoration: underline; }
.sa-panel__title { margin: 16px 0 0; font-size: 24px; line-height: 1.3; font-weight: 700; color: var(--sa-heading); font-feature-settings: "palt"; overflow-wrap: anywhere; }
.sa-panel__sum { margin: 8px 0 0; font-size: 16px; line-height: 1.7; color: var(--sa-ink-soft); }
@media (min-width: 768px) { .sa-panel__title { font-size: 26px; } }
@media (min-width: 1024px) { .sa-panel__title { font-size: 30px; } }
.sa-priceRow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--sa-line); border-bottom: 1px solid var(--sa-line); }
.sa-priceRow__label { font-size: 13px; line-height: 1.7; color: var(--sa-ink-soft); }
.sa-priceRow__val { font-size: 30px; line-height: 1.1; font-weight: 700; color: var(--sa-ink); font-variant-numeric: tabular-nums; text-align: right; }
.sa-priceRow__val.is-ask { font-size: 18px; font-weight: 600; color: var(--sa-ink-soft); }
.sa-priceRow__done { font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--sa-done-fg); }
@media (min-width: 768px) { .sa-priceRow__val { font-size: 32px; } }
@media (min-width: 1024px) { .sa-priceRow__val { font-size: 36px; } }
.sa-panel .btn { width: 100%; }
.sa-panel .btn + .btn { margin-top: 10px; }
.sa-panel__note { margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: var(--sa-ink-soft); text-align: center; }
.sa-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--sa-line); }
.sa-facts dt { font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--sa-ink-soft); }
.sa-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.sa-facts__sub { margin-left: 2px; font-size: 13px; font-weight: 400; color: var(--sa-ink-soft); white-space: nowrap; }
.sa-facts > div:nth-child(1), .sa-facts > div:nth-child(4) { grid-column: 1 / -1; }
.sa-legal--panel { margin: 16px 0 0; }

/* about / others / back */
.sa-about p { margin: 12px 0 0; font-size: 16px; line-height: 1.8; }
@media (min-width: 768px) { .sa-about p { font-size: 17px; } }
.sa-others__row { list-style: none; display: flex; gap: 16px; margin: 16px calc(var(--sa-gutter) * -1) 0; padding: 4px var(--sa-gutter) 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--sa-gutter); scrollbar-width: none; }
.sa-others__row::-webkit-scrollbar { display: none; }
.sa-others__row > .sa-cell { flex: 0 0 220px; scroll-snap-align: start; }
.sa-others__row .sa-card__title { font-size: 16px; }
@media (min-width: 1024px) {
  .sa-others__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sa-gap); margin: 20px 0 0; padding: 4px 0 8px; overflow: visible; }
  .sa-others__row > .sa-cell { flex: none; }
}
.sa-back { display: inline-block; font-size: 15px; font-weight: 600; color: var(--sa-action); text-decoration: none; }
.sa-back:hover { text-decoration: underline; }

/* ───────── reduced motion: no transforms, everything instant, skeleton still ───────── */
@media (prefers-reduced-motion: reduce) {
  .sa-main *, .sa-main *::before, .sa-main *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; }
  .sa-card:hover, .sa-card:active, .sa-main .btn:active, .sa-chipbtn:active { transform: none !important; }
  .sa-card:hover .sa-window > img { transform: none !important; }
}

/* Translated copy wraps naturally; Japanese layout and phrase boundaries stay unchanged. */
html[lang="en"] .sa-main, html[lang="zh"] .sa-main { word-break: normal; overflow-wrap: anywhere; }
html[lang="en"] .sa-main .btn, html[lang="zh"] .sa-main .btn,
html[lang="en"] .sa-chipbtn, html[lang="zh"] .sa-chipbtn,
html[lang="en"] .sa-copy, html[lang="zh"] .sa-copy { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
html[lang="en"] .sa-card__row, html[lang="zh"] .sa-card__row,
html[lang="en"] .sa-priceRow, html[lang="zh"] .sa-priceRow { flex-wrap: wrap; }
html[lang="en"] .sa-tag, html[lang="zh"] .sa-tag,
html[lang="en"] .sa-chip, html[lang="zh"] .sa-chip { box-sizing: border-box; min-width: 0; max-width: 100%; height: auto; min-height: 26px; padding-block: 5px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
html[lang="en"] .sa-chip--available::before, html[lang="zh"] .sa-chip--available::before { flex-shrink: 0; }
html[lang="en"] .sa-card__title, html[lang="zh"] .sa-card__title { word-break: normal; max-height: none; }
html[lang="en"] .sa-priceRow > *, html[lang="zh"] .sa-priceRow > *,
html[lang="en"] .sa-notice__inner, html[lang="zh"] .sa-notice__inner,
html[lang="en"] .sa-notice__text, html[lang="zh"] .sa-notice__text,
html[lang="en"] .sa-facts > *, html[lang="zh"] .sa-facts > * { min-width: 0; max-width: 100%; }
html[lang="en"] .sa-facts__sub, html[lang="zh"] .sa-facts__sub { white-space: normal; }
html[lang="en"] .sa-notice[data-mode="banner"] .sa-notice__inner,
html[lang="zh"] .sa-notice[data-mode="banner"] .sa-notice__inner { grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 280px); }
html[lang="en"] .sa-notice[data-mode="banner"] .btn,
html[lang="zh"] .sa-notice[data-mode="banner"] .btn { white-space: normal; }
html[lang="en"] .sa-stamp, html[lang="zh"] .sa-stamp { box-sizing: border-box; padding-inline: 6px; letter-spacing: 0; }
@media (max-width: 767px) {
  html[lang="en"] .sa-notice__inner, html[lang="zh"] .sa-notice__inner { padding-inline: 20px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  html[lang="en"] .sa-notice[data-mode="banner"] .sa-notice__inner,
  html[lang="zh"] .sa-notice[data-mode="banner"] .sa-notice__inner { grid-template-columns: minmax(0, 160px) minmax(0, 1fr); }
}

/* Independent visit form; these additions do not alter list/detail styles. */
.sa-main--visit .sa-visit-wrap { max-width: 720px; padding-bottom: var(--sa-section); }
.sa-main--visit .sa-legal { margin-bottom: 12px; }
.sa-visit-form { scroll-margin-top: 112px; display: flex; flex-direction: column; gap: 24px; padding: 24px 16px; background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: 12px; }
.sa-visit-field label { display: block; margin-bottom: 8px; font-weight: 700; }
.sa-visit-field input, .sa-visit-field select, .sa-visit-field textarea { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--sa-line); border-radius: 6px; background: #fff; color: var(--sa-ink); font: inherit; font-size: 16px; }
.sa-visit-field textarea { resize: vertical; }
.sa-visit-field p, .sa-visit-form > p { margin: 0; }
.sa-visit-field .sa-small { margin-top: 6px; }
.sa-visit-field [aria-invalid="true"] { border: 2px solid #9A3F2B; }
.sa-visit-field-error { color: #9A3F2B; font-size: 14px; line-height: 1.6; }
.sa-visit-field-error:empty { display: none; }
.sa-visit-form button { cursor: pointer; }
.sa-visit-form button:disabled { opacity: .65; cursor: wait; }
/* The confirmation and the error card reuse the state markup, not its two-column picture layout: one column, one card. */
.sa-main--visit .sa-state.sa-visit-error, .sa-main--visit .sa-state.sa-visit-success { display: block; max-width: none; margin: 0 0 24px; padding: 24px 16px; background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: 12px; overflow-wrap: anywhere; }
.sa-main--visit .sa-state.sa-visit-error { border: 2px solid #9A3F2B; }
.sa-main--visit .sa-state.sa-visit-success { border-top: 4px solid var(--sa-action); }
.sa-main--visit .sa-visit-error h2, .sa-main--visit .sa-visit-success h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.45; font-weight: 700; color: var(--sa-heading); text-wrap: balance; }
.sa-main--visit .sa-visit-error > p, .sa-main--visit .sa-visit-success > p { margin: 0 0 12px; font-size: 16px; line-height: 1.8; }
.sa-main--visit .sa-visit-success > p.sa-visit-summary { margin: 0 0 6px; padding: 8px 12px; background: var(--sa-mat); border-radius: 8px; font-size: 15px; line-height: 1.6; text-align: start; overflow-wrap: anywhere; }
.sa-main--visit .sa-visit-success > p.sa-visit-check { margin: 14px 0 4px; font-size: 14px; line-height: 1.7; }
.sa-visit-form [data-sa-visit-animal] { overflow-wrap: anywhere; }
.sa-main--visit .sa-visit-error .btn, .sa-main--visit .sa-visit-success .btn { display: flex; width: 100%; max-width: 100%; margin: 12px 0 0; }
.sa-main--visit .sa-crumbs a { min-height: 44px; }
.sa-main--visit noscript a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 768px) {
  .sa-visit-form { padding: 32px; }
  .sa-main--visit .sa-state.sa-visit-error, .sa-main--visit .sa-state.sa-visit-success { padding: 32px; }
  .sa-main--visit .sa-visit-error .btn, .sa-main--visit .sa-visit-success .btn { display: inline-flex; width: auto; min-width: 200px; margin: 16px 12px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .sa-main--visit .btn { transition: none; transform: none; } }
