/* Hallmark · macrostructure: Product Ledger (offer-first SaaS) · tone: utilitarian · anchor hue: teal 174°
 * genre: modern-minimal · theme: custom (studied from 2026-10-07 brief: #129C8B / #173D39 / #F1F8F5 / #123E38)
 * nav: N1b (wordmark + 4 links + 1 primary) · footer: operator ledger
 * principles: gestalt proximity/similarity (6 cats in one frame tied to one price) · chunking (6 groups + 3 scenes)
 *             von Restorff (deep-green plan block, price card) · Hick (one plan, one primary CTA) · Fitts (≥48px SP CTA)
 * pre-emit critique: P4 H5 E4 S5 R4 V4
 * =========================================================
 * variant.css — TailSign A案（2026-10-07 改稿指示書）
 * 色は tokens.css の変数だけを参照する。
 * ========================================================= */

/* ---------- ベース ---------- */
html,
body {
  overflow-x: clip;
}
.section__title {
  font-family: var(--ff-sans);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.45;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  overflow-wrap: anywhere;
}
.section {
  padding: clamp(48px, 7.5vw, 104px) 0;
}
.section__head.ts-head {
  max-width: 760px;
}
.section__lead {
  font-size: 1rem;
  line-height: 1.85;
}
.btn--primary {
  background: var(--ts-primary-strong);
  box-shadow: 0 8px 20px -10px rgba(18, 62, 56, 0.55);
}
.btn--primary:hover {
  background: var(--c-green-dk);
}
.btn:focus-visible,
.ts-textlink:focus-visible,
.nav__link:focus-visible,
.sticky-cta__btn:focus-visible {
  outline: 3px solid var(--ts-brand);
  outline-offset: 3px;
}
.btn--lg {
  min-height: 52px;
}

/* 日本語を文節で折り返す（語の途中・末尾の数文字だけが次行に残るのを防ぐ）。
   非対応ブラウザでは通常の折り返しになるだけ。 */
.section__title,
.section__lead,
.ts-hero__lead,
.ts-hero__kicker,
.ts-scene__title,
.ts-scene__text,
.ts-plan__title,
.ts-plan__lead,
.ts-final__title,
.ts-final__lead,
.ts-dev__body,
.ts-price__external,
.ts-cat__name,
.ts-cat__items,
.ts-cat__note,
.ts-scene__media figcaption,
.ts-shots__cap,
.ts-overview__note,
.faq__q span,
.flow__body,
.flow__title {
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* ---------- ヘッダー（ロゴ） ---------- */
.site-header__brand a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.site-header__mark {
  grid-row: 1 / 3;
  display: block;
  width: 28px;
  height: 28px;
}
.site-header__brand .site-header__name-ja {
  font-family: var(--ff-sans, inherit);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* =========================================================
   Hero — 左56%: 見出し＋価格＋CTA / 右44%: 「すべて1プラン」の枠
   ========================================================= */
.hero.ts-hero {
  min-height: 0;
  display: block;
  background: var(--ts-mint);
  overflow: visible;
}
.ts-hero__inner {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
  padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  gap: clamp(28px, 3.6vw, 56px);
  align-items: center;
}
.ts-hero__kicker {
  margin: 0 0 1rem;
  color: var(--c-accent-text);
  font-weight: 700;
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
/* 2行の主見出し。各行は句点まで1行に収める（単語の末尾だけが次行に残る事故を防ぐ）。
   文字数（最長13字）から、列幅に収まる大きさを計算する。上限は PC 56px。 */
.ts-hero__catch {
  margin: 0 0 1.1rem;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: var(--ts-ink);
  font-size: min(
    3.5rem,
    calc((min(100vw, var(--maxw) + 40px) - 40px) * 0.56 / 12.8)
  );
}
.ts-hero__line {
  display: block;
  white-space: nowrap;
}
.ts-hero__lead {
  margin: 0 0 1.6rem;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.9;
  color: var(--c-brown-sub);
}
.ts-hero__lead-line {
  display: block;
  text-wrap: pretty;
}

/* 価格のまとまり（Hero と料金カードで共用） */
.ts-price {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.3rem 1.2rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--ts-brand);
  border-radius: 12px;
  max-width: 34rem;
  margin-bottom: 1.6rem;
}
.ts-price__scope {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--c-accent-text);
}
.ts-price__amount {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15em 0.3em;
  line-height: 1.05;
  color: var(--ts-ink);
}
.ts-price__prefix {
  font-size: 1.15rem;
  font-weight: 700;
}
.ts-price__yen {
  font-size: clamp(3rem, 5.6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ts-price__unit {
  font-size: 1.35rem;
  font-weight: 800;
}
.ts-price__terms {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  font-weight: 700;
  font-size: 0.98rem;
}
.ts-price__terms li::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.3em;
  margin: 0 0.45em 0.2em 0;
  border-left: 2px solid var(--ts-brand);
  border-bottom: 2px solid var(--ts-brand);
  transform: rotate(-45deg);
}
.ts-price__tax {
  margin: 0;
  font-size: 0.86rem;
  color: var(--c-brown-sub);
}
.ts-price__external {
  margin: 0.3rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--c-line);
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--c-brown-sub);
}

.ts-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.6rem;
}
.ts-textlink {
  font-weight: 700;
  color: var(--c-accent-text);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1.5px;
  white-space: nowrap;
  padding: 0.6rem 0;
}
.ts-textlink:hover {
  text-decoration-thickness: 3px;
}

/* 右: すべて1プランの枠 */
.ts-plan-frame {
  position: relative;
  background: var(--c-surface);
  border: 2px solid var(--ts-brand);
  border-radius: 20px;
  padding: 2rem clamp(14px, 1.6vw, 22px) 1.1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}
.ts-plan-frame__label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.35rem 1.1rem;
  background: var(--ts-ink);
  color: var(--ts-on-deep);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}
.ts-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.ts-chip {
  text-align: center;
  padding: 0.3rem 0.3rem;
  background: var(--ts-mint-2);
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ts-ink);
  white-space: nowrap;
}
/* 実画面: PC を大きく、飼い主のスマホを右下に小さく重ねる。注釈はまとめて下に置く。 */
.ts-shots {
  margin: 0;
  min-width: 0;
}
.ts-shots__stage {
  position: relative;
  padding: 0 0 6% 0;
}
.ts-shots__pc {
  width: 86%;
  height: auto;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-surface);
}
.ts-shots__sp {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22%;
  height: auto;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-surface);
  box-shadow: 0 14px 30px -14px rgba(18, 62, 56, 0.5);
}
.ts-shots__cap {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.1rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--c-brown-sub);
}

/* =========================================================
   A. 機能の全体図（6分類を1つの枠に）
   ========================================================= */
.ts-frame {
  position: relative;
  border: 2px solid var(--ts-brand);
  border-radius: 24px;
  background: var(--ts-mint);
  padding: clamp(32px, 4vw, 48px) clamp(14px, 2.6vw, 36px)
    clamp(18px, 2.6vw, 32px);
}
.ts-frame__label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.45rem 1.3rem;
  background: var(--ts-ink);
  color: var(--ts-on-deep);
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(0.86rem, 1.4vw, 1rem);
  white-space: nowrap;
}
.ts-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
}
.ts-cat {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ts-cat__tag {
  display: flex;
  align-items: center;
  margin: 0 0 0.3rem;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ts-ink);
}
.ts-cat__tag .ficon {
  width: 1.6em;
  height: 1.6em;
  color: var(--ts-brand);
  vertical-align: 0;
}
.ts-cat__name {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--c-accent-text);
  line-height: 1.5;
}
.ts-cat__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.ts-cat__items li {
  padding-left: 0.95em;
  position: relative;
}
.ts-cat__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.38em;
  height: 0.38em;
  border-radius: 50%;
  background: var(--ts-brand);
}
.ts-cat__note {
  margin: 0.8rem 0 0;
  padding-top: 0.6rem;
  font-size: 0.78rem;
  line-height: 1.6;
  font-weight: 700;
  color: var(--c-brown-sub);
  border-top: 1px dashed var(--c-line);
  margin-top: auto;
}
.ts-cat__note::before {
  content: "※";
  margin-right: 0.2em;
}
.ts-overview__note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--c-brown-sub);
}

/* =========================================================
   B. 3つの業務例
   ========================================================= */
.ts-scene-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(40px, 6vw, 80px);
}
.ts-scene {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.ts-scene:nth-child(even) .ts-scene__media {
  order: 2;
}
.ts-scene__media {
  margin: 0;
  min-width: 0;
}
.ts-scene__media figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--c-brown-sub);
}
.ts-scene__title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ts-scene__text {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--c-brown-sub);
}
.ts-scene__media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
  box-shadow: var(--shadow);
}
.ts-scene__points {
  list-style: none;
  margin: 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--c-line);
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
}
.ts-scene__points li {
  padding-left: 1.4em;
  position: relative;
}
.ts-scene__points li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.55em;
  width: 0.6em;
  height: 0.32em;
  border-left: 2px solid var(--ts-brand);
  border-bottom: 2px solid var(--ts-brand);
  transform: rotate(-45deg);
}

/* =========================================================
   C. 単一料金（2026-10-08 作り直し）— 明るい地に深緑の価格カード1枚
   ========================================================= */
.ts-plan {
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--ts-mint) 100%);
}
.ts-plan__title {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
}
.ts-plan__lead-line {
  display: block;
}
.ts-plan__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 56px);
  background: var(--ts-deep);
  color: var(--ts-on-deep);
  border-radius: 28px;
  box-shadow: 0 40px 70px -40px rgba(18, 62, 56, 0.7);
  position: relative;
  overflow: hidden;
}
.ts-plan__card::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(18, 156, 139, 0.35),
    transparent 70%
  );
  pointer-events: none;
}
.ts-plan__price,
.ts-plan__includes {
  position: relative;
}
.ts-plan__scope {
  margin: 0 0 0.6rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ts-mint-2);
}
.ts-plan__amount,
.ts-plan__amount .ts-price__prefix,
.ts-plan__amount .ts-price__unit {
  color: var(--ts-on-deep);
}
.ts-plan__amount .ts-price__yen {
  font-size: clamp(3.6rem, 7vw, 5.4rem);
}
.ts-plan__terms {
  list-style: none;
  margin: 1rem 0 0.8rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ts-plan__terms li {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700;
  font-size: 0.92rem;
}
.ts-plan__tax {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ts-on-deep-sub);
}
.ts-plan__cta {
  margin-top: 1.4rem;
}
.ts-btn-light {
  background: var(--c-surface);
  color: var(--ts-ink);
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.6);
}
.ts-btn-light:hover {
  background: var(--ts-mint-2);
  color: var(--ts-ink);
}
.ts-plan__sub {
  margin: 0 0 1rem;
  font-weight: 800;
  font-size: 1rem;
}
.ts-plan__tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ts-plan__tiles li {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 1rem 0.4rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
}
.ts-plan__tiles .ts-ico {
  width: 30px;
  height: 30px;
}
.ts-plan__tiles-note {
  margin: 0.9rem 0 0;
  font-size: 0.84rem;
  color: var(--ts-on-deep-sub);
}
.ts-plan__external {
  max-width: 1040px;
  margin: 1.2rem auto 0;
  padding: 1.1rem 1.4rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem 1.4rem;
  align-items: center;
}
.ts-plan__external-title {
  margin: 0;
  font-weight: 800;
  font-size: 0.92rem;
}
.ts-plan__external-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ts-plan__external-list li {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--ts-mint);
  border: 1px solid var(--c-line);
  font-size: 0.84rem;
}
.ts-plan__external-note {
  grid-column: 2;
  margin: 0;
  font-size: 0.8rem;
  color: var(--c-brown-sub);
}
.ts-promises {
  list-style: none;
  max-width: 1040px;
  margin: 1.6rem auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ts-promises li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.6rem;
  border-radius: 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.6;
  word-break: auto-phrase;
}
.ts-promises li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 0.8em;
  height: 0.42em;
  border-left: 2.5px solid var(--ts-brand);
  border-bottom: 2.5px solid var(--ts-brand);
  transform: rotate(-45deg);
}

/* 関連サービス（単一プランの外） */
.ts-related {
  padding: clamp(32px, 4.5vw, 56px) 0;
  border-bottom: 1px solid var(--c-line);
}
.ts-related__title {
  margin: 0 0 0.8rem;
  font-weight: 800;
  color: var(--c-brown-sub);
  font-size: 0.92rem;
}
.ts-related__item {
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
}
.ts-related__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 1.2rem;
  font-weight: 800;
}
.ts-related__price {
  color: var(--c-brown-sub);
  font-weight: 700;
}
.ts-related__body {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--c-brown-sub);
}

/* =========================================================
   D. 開発中
   ========================================================= */
.ts-dev__list:has(> li:only-child) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 450px;
}
.ts-dev__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.ts-dev__card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
}
.ts-badge-dev {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.2rem 0.8rem;
  background: var(--ts-amber-bg);
  color: var(--ts-amber-fg);
  border: 1px solid var(--ts-amber-line);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
}
.ts-dev__name {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
}
.ts-dev__body {
  margin: 0 0 0.7rem;
  font-size: 0.94rem;
  color: var(--c-brown-sub);
  line-height: 1.8;
}
.ts-dev__status {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ts-amber-fg);
}

/* ---------- 導入の流れ・FAQ ---------- */
.flow__step {
  border-radius: 16px;
}
.flow__body {
  font-size: 0.9rem;
}
.flow__step::before {
  background: var(--ts-primary-strong);
  font-family: var(--ff-sans);
  font-weight: 800;
}

/* ---------- 最終CTA ---------- */
.ts-final {
  text-align: center;
  border-top: 1px solid var(--c-line);
}
.ts-final__title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ts-final__lead {
  margin: 0 0 1.6rem;
  color: var(--c-brown-sub);
}
.ts-final__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1rem;
}

/* ---------- 追従CTA（SP）: 主CTA 1つ・高さ 56px ---------- */
.ts-sticky .sticky-cta__btn {
  min-height: 56px;
  font-size: 1rem;
  padding: 0.6rem 1rem;
}
.ts-sticky .sticky-cta__btn--web {
  background: var(--ts-primary-strong);
}

/* ---------- フォーム: 送信後の流れ ---------- */
.ts-after {
  margin: 0 0 2rem;
  padding: 1.1rem 1.3rem;
  background: var(--ts-mint);
  border: 1px solid var(--c-line);
  border-radius: 14px;
}
.ts-after__title {
  margin: 0 0 0.5rem;
  font-weight: 800;
}
.ts-after__list {
  margin: 0;
  padding-left: 1.3em;
  font-size: 0.92rem;
  line-height: 1.8;
}
/* フォーム上の「無料体験はこちらから」（2026-10-23: 申込は本番の病院登録へ直結） */
.ts-trial-direct__text {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.8;
  word-break: auto-phrase;
  text-wrap: pretty;
}
.ts-trial-direct .btn {
  max-width: 100%;
}
.form__actions .btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1023px) {
  .ts-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
  }
  .ts-hero__catch {
    font-size: min(3.25rem, calc((min(100vw, 760px) - 40px) / 12.8));
  }
  .ts-plan-frame {
    margin-top: 0.8rem;
  }
}

@media (max-width: 860px) {
  .ts-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ts-scene,
  .ts-plan__card {
    grid-template-columns: minmax(0, 1fr);
  }
  .ts-scene:nth-child(even) .ts-scene__media {
    order: 0;
  }
  .ts-plan__external {
    grid-template-columns: minmax(0, 1fr);
  }
  .ts-plan__external-note {
    grid-column: 1;
  }
  .ts-promises {
    grid-template-columns: minmax(0, 1fr);
  }
  .ts-dev__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .ts-dev__list:has(> li:only-child) {
    max-width: none;
  }
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.6rem;
  }
  .flow__step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .ts-hero__inner,
  .container {
    width: min(100% - 32px, var(--maxw));
  }
  .ts-hero__catch {
    font-size: calc((100vw - 32px) / 12.8);
  }
  .ts-hero__lead-line {
    display: inline;
  }
  .ts-price {
    padding: 1rem 1rem 1.05rem;
  }
  .ts-frame {
    padding: 30px 8px 10px;
    border-radius: 18px;
  }
  .ts-cats {
    gap: 8px;
  }
  .ts-cat {
    padding: 0.85rem 0.65rem 0.9rem;
    border-radius: 12px;
  }
  .ts-cat__name {
    font-size: 0.8rem;
  }
  .ts-cat__items li {
    padding-left: 0.8em;
  }
  .ts-cat__tag {
    font-size: 1rem;
  }
  .ts-cat__items {
    font-size: 0.82rem;
  }
  .ts-cat__note {
    font-size: 0.74rem;
  }
  .ts-chip {
    font-size: 0.86rem;
  }
  .ts-plan-frame__label,
  .ts-frame__label {
    font-size: 0.84rem;
  }
  .ts-plan__lead-line {
    display: inline;
  }
  .flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .ts-final__cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }
}

/* 追従CTA: Hero の主CTA が見えている間は下へ引っ込める（variant.js） */
.ts-sticky {
  transition: transform 0.25s var(--ease);
}
.ts-sticky.is-tucked {
  transform: translateY(110%);
}
@media (prefers-reduced-motion: reduce) {
  .ts-sticky {
    transition: none;
  }
}

/* お問い合わせページの見出しも文節で折り返す */
.page-head__title,
.page-head__lead,
.ts-after__list {
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* =========================================================
   図解・アイコン（2026-10-08: 文字だけの面が続くと飽きる、への対応）
   ========================================================= */
/* 線画アイコン。色ごとに書き出した SVG（icons-teal / icons-white）を img で置く。
   CSS mask＋変数の url() は CSS ファイル基準で解決され、file:// でも読めないため使わない。 */
.ts-ico {
  display: block;
  width: 1.4em;
  height: 1.4em;
  flex: none;
}

/* 来院の流れ: 6工程を横一列に、最後から最初へ戻る矢印で「次の来院まで」を示す */
.ts-journey {
  margin: 0 0 clamp(36px, 5vw, 56px);
  text-align: center;
}
.ts-journey__title {
  margin: 0 0 1.2rem;
  font-weight: 800;
  color: var(--c-accent-text);
}
.ts-journey__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.ts-journey__step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0 0.3rem;
}
.ts-journey__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  left: calc(50% + 40px);
  right: calc(-50% + 40px);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--ts-brand) 0 6px,
    transparent 6px 11px
  );
}
.ts-journey__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 2px solid var(--ts-brand);
  color: var(--ts-brand);
  font-size: 1.5rem;
  box-shadow: 0 10px 22px -16px rgba(18, 62, 56, 0.6);
}
.ts-journey__step:last-child .ts-journey__icon {
  background: var(--ts-brand);
  color: var(--c-white);
}
.ts-journey__label {
  font-weight: 800;
  font-size: 1rem;
}
.ts-journey__sub {
  font-size: 0.8rem;
  color: var(--c-brown-sub);
  line-height: 1.5;
}
.ts-journey__loop {
  position: relative;
  margin: 1.1rem auto 0;
  max-width: calc(100% - 16.66%);
  padding-top: 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-accent-text);
}
/* 右端（予防案内）の下から左端（予約）の下へ戻る U 字の矢印 */
.ts-journey__loop-arrow {
  position: absolute;
  top: -0.6rem;
  left: 0;
  right: 0;
  height: 1.3rem;
  border: 2px solid var(--ts-brand);
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.ts-journey__loop-arrow::before {
  content: "";
  position: absolute;
  left: -7px;
  top: -6px;
  border: 6px solid transparent;
  border-bottom: 9px solid var(--ts-brand);
}

/* 導入の流れ: 各ステップにアイコン */
.ts-flow-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 0 0.7rem;
  border-radius: 12px;
  background: var(--ts-mint-2);
  color: var(--ts-primary-strong);
  font-size: 1.25rem;
}

/* 開発中: カード上部に小さな図 */
.ts-dev__illust {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 0 1rem;
}

@media (max-width: 860px) {
  .ts-journey__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.4rem;
  }
  .ts-journey__step:nth-child(3)::after {
    display: none;
  }
  .ts-journey__loop {
    max-width: none;
    padding-top: 0;
  }
  .ts-journey__loop-arrow {
    display: none;
  }
}
@media (max-width: 560px) {
  .ts-journey__icon {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
  }
  .ts-journey__step:not(:last-child)::after {
    top: 28px;
    left: calc(50% + 32px);
    right: calc(-50% + 32px);
  }
  .ts-journey__label {
    font-size: 0.9rem;
  }
  .ts-journey__sub {
    font-size: 0.72rem;
  }
}

/* 最終CTA: イラスト（生成・人物なし）＋文言 */
.ts-final__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  text-align: left;
}
.ts-final__illust {
  width: 100%;
  max-width: 380px;
  mix-blend-mode: multiply;
  height: auto;
  justify-self: center;
}
.ts-final__grid .ts-final__cta {
  justify-content: flex-start;
}
@media (max-width: 860px) {
  .ts-final__grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .ts-final__illust {
    max-width: 240px;
  }
  .ts-final__grid .ts-final__cta {
    justify-content: center;
  }
}

/* =========================================================
   Hero の業務の流れ（旧: 上下に分かれた業務札）
   ========================================================= */
.ts-miniflow {
  padding-top: 0.2rem;
  border-top: 1px dashed var(--c-line);
}
.ts-miniflow__steps {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
  color: var(--ts-ink);
}
.ts-miniflow__steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.ts-miniflow__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--ts-brand) 0 4px,
    transparent 4px 8px
  );
}
.ts-miniflow__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--ts-brand);
  background: var(--c-surface);
  font-size: 1.05rem;
}
.ts-miniflow__note {
  margin: 0.6rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-accent-text);
}

/* =========================================================
   病院の1日（写真の帯）
   ========================================================= */
.ts-moments__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.ts-moment {
  display: grid;
  align-content: start;
  background: var(--c-surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-line);
}
.ts-moment__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ts-moment__body {
  padding: 1.1rem 1.3rem 1.4rem;
}
.ts-moment__when {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: var(--ts-mint-2);
  color: var(--c-accent-text);
  font-size: 0.8rem;
  font-weight: 800;
}
.ts-moment__title {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.5;
  word-break: auto-phrase;
  text-wrap: pretty;
}
.ts-moment__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--c-brown-sub);
  word-break: auto-phrase;
  text-wrap: pretty;
}
.ts-moments__note {
  margin: 1rem 0 0;
  text-align: right;
  font-size: 0.74rem;
  color: var(--c-brown-sub);
}
@media (max-width: 860px) {
  .ts-moments__list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
  }
}
@media (max-width: 560px) {
  .ts-miniflow__steps {
    font-size: 0.66rem;
  }
  .ts-miniflow__icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .ts-miniflow__steps li:not(:last-child)::after {
    top: 15px;
    left: calc(50% + 19px);
    right: calc(-50% + 19px);
  }
}

@media (max-width: 560px) {
  .ts-plan__cta .btn {
    width: 100%;
  }
}

/* =========================================================
   動き（2026-10-08 作り直し）
   「全部を下からふわっと」は安っぽい、と指摘されて作り直した。
   場所ごとに伝えたいことに合わせた動きだけを置き、意味の無い面は動かさない。
   transform / opacity / clip-path だけを動かす。待機状態は variant.js が付けた時だけ。
   ========================================================= */
:root {
  --ts-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ts-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Hero 見出し: 1行ずつ左から拭き出す（読む順に見せる） --- */
.m-hero-line .ts-hero__line {
  clip-path: inset(-10% 100% -10% 0);
  transform: translateX(-12px);
  transition:
    clip-path 0.9s var(--ts-ease-io),
    transform 0.9s var(--ts-ease-out);
}
.m-hero-line .ts-hero__line + .ts-hero__line {
  transition-delay: 0.22s;
}
.m-hero-line.is-revealed .ts-hero__line {
  clip-path: inset(-10% -2% -10% 0);
  transform: none;
}

/* --- Hero 価格: 数字の下に線を引く（視線を止める） --- */
.ts-hero .ts-price__yen {
  position: relative;
  isolation: isolate;
}
.ts-hero .ts-price__yen::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.1em;
  height: 0.26em;
  border-radius: 0.1em;
  background: var(--ts-mint-2);
  z-index: -1;
}
.m-price-mark.ts-price__yen::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ts-ease-io) 0.75s;
}
.m-price-mark.is-revealed.ts-price__yen::after {
  transform: scaleX(1);
}

/* --- 写真カード: 写真をゆっくり引く（奥行きと温度） --- */
.m-photo {
  opacity: 0;
  transition: opacity 0.7s var(--ts-ease-out);
}
.m-photo .ts-moment__photo {
  transform: scale(1.14);
  transition: transform 1.8s var(--ts-ease-out);
}
.m-photo:nth-child(2) {
  transition-delay: 0.12s;
}
.m-photo:nth-child(3) {
  transition-delay: 0.24s;
}
.m-photo:nth-child(2) .ts-moment__photo {
  transition-delay: 0.12s;
}
.m-photo:nth-child(3) .ts-moment__photo {
  transition-delay: 0.24s;
}
.m-photo.is-revealed {
  opacity: 1;
}
.m-photo.is-revealed .ts-moment__photo {
  transform: none;
}

/* --- 業務例: 画面を横から開き、できることにチェックを順に付ける --- */
/* 開き終わりは切り抜きを外側へ広げ、影と角の丸みを切らない（2026-11-29） */
.m-wipe .ts-scene__media .ts-scene__pc {
  clip-path: inset(0 100% 0 0 round 10px);
  transition: clip-path 1s var(--ts-ease-io);
}
.m-wipe:nth-child(even) .ts-scene__media .ts-scene__pc {
  clip-path: inset(0 0 0 100% round 10px);
}
.m-wipe.is-revealed .ts-scene__media .ts-scene__pc {
  clip-path: inset(-48px -48px -72px -48px round 0);
}
/* 病院の画面が開いたあとに、飼い主さんのスマホを下から差し込む（画面がつながる） */
.m-wipe .ts-scene__media .ts-scene__sp {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.5s var(--ts-ease-out) 0.75s,
    transform 0.8s var(--ts-ease-out) 0.75s;
}
.m-wipe.is-revealed .ts-scene__media .ts-scene__sp {
  opacity: 1;
  transform: none;
}
.m-wipe .ts-scene__points li {
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.45s var(--ts-ease-out),
    transform 0.45s var(--ts-ease-out);
}
.m-wipe .ts-scene__points li::before {
  transform: rotate(-45deg) scale(0);
  transition: transform 0.35s var(--ts-ease-out);
}
.m-wipe .ts-scene__points li:nth-child(1),
.m-wipe .ts-scene__points li:nth-child(1)::before {
  transition-delay: 0.8s;
}
.m-wipe .ts-scene__points li:nth-child(2),
.m-wipe .ts-scene__points li:nth-child(2)::before {
  transition-delay: 1s;
}
.m-wipe .ts-scene__points li:nth-child(3),
.m-wipe .ts-scene__points li:nth-child(3)::before {
  transition-delay: 1.2s;
}
.m-wipe.is-revealed .ts-scene__points li {
  opacity: 1;
  transform: none;
}
.m-wipe.is-revealed .ts-scene__points li::before {
  transform: rotate(-45deg) scale(1);
}

/* --- 料金: 6業務を順に点灯（全部が1つの料金に入る） --- */
.m-lightup li {
  opacity: 0.28;
  transition:
    opacity 0.5s var(--ts-ease-out),
    background-color 0.5s var(--ts-ease-out),
    border-color 0.5s var(--ts-ease-out);
}
.m-lightup li:nth-child(2) {
  transition-delay: 0.14s;
}
.m-lightup li:nth-child(3) {
  transition-delay: 0.28s;
}
.m-lightup li:nth-child(4) {
  transition-delay: 0.42s;
}
.m-lightup li:nth-child(5) {
  transition-delay: 0.56s;
}
.m-lightup li:nth-child(6) {
  transition-delay: 0.7s;
}
.m-lightup.is-revealed li {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
}

/* --- 流れの図: 点線を順に伸ばし、アイコンを順に出す --- */
.m-draw .ts-journey__step:not(:last-child)::after,
.m-draw .ts-miniflow__steps li:not(:last-child)::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ts-ease-out);
}
.m-draw .ts-journey__icon,
.m-draw .ts-miniflow__icon {
  transform: scale(0.7);
  opacity: 0;
  transition:
    transform 0.45s var(--ts-ease-out),
    opacity 0.45s var(--ts-ease-out);
}
.m-draw li:nth-child(1)::after {
  transition-delay: 0.25s;
}
.m-draw li:nth-child(2)::after {
  transition-delay: 0.55s;
}
.m-draw li:nth-child(3)::after {
  transition-delay: 0.85s;
}
.m-draw li:nth-child(4)::after {
  transition-delay: 1.15s;
}
.m-draw li:nth-child(5)::after {
  transition-delay: 1.45s;
}
.m-draw li:nth-child(2) .ts-journey__icon,
.m-draw li:nth-child(2) .ts-miniflow__icon {
  transition-delay: 0.4s;
}
.m-draw li:nth-child(3) .ts-journey__icon,
.m-draw li:nth-child(3) .ts-miniflow__icon {
  transition-delay: 0.7s;
}
.m-draw li:nth-child(4) .ts-journey__icon,
.m-draw li:nth-child(4) .ts-miniflow__icon {
  transition-delay: 1s;
}
.m-draw li:nth-child(5) .ts-journey__icon,
.m-draw li:nth-child(5) .ts-miniflow__icon {
  transition-delay: 1.3s;
}
.m-draw li:nth-child(6) .ts-journey__icon,
.m-draw li:nth-child(6) .ts-miniflow__icon {
  transition-delay: 1.6s;
}
.m-draw.is-revealed li:not(:last-child)::after {
  transform: scaleX(1);
}
.m-draw.is-revealed .ts-journey__icon,
.m-draw.is-revealed .ts-miniflow__icon {
  transform: none;
  opacity: 1;
}
.m-draw .ts-journey__loop {
  opacity: 0;
  transition: opacity 0.6s var(--ts-ease-out) 1.9s;
}
.m-draw.is-revealed .ts-journey__loop {
  opacity: 1;
}
.m-draw.is-revealed .ts-journey__step:last-child .ts-journey__icon {
  animation: ts-pulse 1.4s var(--ts-ease-out) 2s 2;
}
@keyframes ts-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(18, 156, 139, 0.45);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(18, 156, 139, 0);
  }
}

/* --- 主CTA の光: Hero と最終CTA の2か所だけ。間隔は長めに、3回で止める --- */
.ts-hero__cta .btn--primary,
.ts-final__cta .btn--primary {
  position: relative;
  overflow: hidden;
}
.ts-hero__cta .btn--primary::after,
.ts-final__cta .btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-12deg);
  animation: ts-shine 6s ease-in-out 2.4s 3; /* 3回で止める。ずっと光らせない */
  pointer-events: none;
}
@keyframes ts-shine {
  0% {
    transform: translateX(-160%) skewX(-12deg);
  }
  18%,
  100% {
    transform: translateX(330%) skewX(-12deg);
  }
}

/* --- ホバー: 写真カードだけ少し浮かせて写真を寄せる --- */
@media (hover: hover) {
  .ts-moment {
    transition:
      transform 0.35s var(--ts-ease-out),
      box-shadow 0.35s var(--ts-ease-out),
      opacity 0.7s var(--ts-ease-out);
  }
  .ts-moment.is-revealed:hover,
  .ts-moment:not(.reveal--armed):hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 40px -24px rgba(18, 62, 56, 0.45);
  }
  .ts-moment.is-revealed:hover .ts-moment__photo,
  .ts-moment:not(.reveal--armed):hover .ts-moment__photo {
    transform: scale(1.04);
    transition-duration: 0.6s;
    transition-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ts-hero__cta .btn--primary::after,
  .ts-final__cta .btn--primary::after,
  .ts-journey__icon {
    animation: none !important;
  }
  .ts-moment:hover,
  .ts-moment:hover .ts-moment__photo {
    transform: none !important;
  }
}

/* =========================================================
   2026-11-29 改修: FV・写真・製品画面の見せ方
   ★色・面の並びは据え置き（差し戻しは FV／写真とイラスト／画面の見せ方の3点）。
   ★画面を写真に重ねない（2026-10-08 の差し戻し）。写真は写真、画面は画面で置く。
   ========================================================= */
.ts-hero__media {
  margin: 0;
  min-width: 0;
  position: relative;
}
.ts-hero__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
@media (max-width: 1023px) {
  .ts-hero__media {
    margin-top: 0.4rem;
  }
  .ts-hero__photo {
    aspect-ratio: 4 / 3;
    object-position: 50% 22%;
    border-radius: 20px;
  }
}

/* 3つの場面: 管理画面の切り抜き（データの入った部分）＋飼い主さんのスマホ */
.ts-scene__stage {
  position: relative;
  background: var(--ts-mint-2);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 36px) clamp(56px, 9vw, 110px) clamp(18px, 3vw, 36px) clamp(18px, 3vw, 36px);
  min-height: clamp(220px, 26vw, 330px);
  display: flex;
  align-items: center;
}
.ts-scene__media .ts-scene__pc {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.ts-scene__media .ts-scene__sp {
  position: absolute;
  right: clamp(12px, 2.4vw, 32px);
  top: clamp(12px, 1.6vw, 20px);
  height: calc(100% - 2 * clamp(12px, 1.6vw, 20px));
  width: auto;
  max-width: none;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 40px -20px rgba(18, 62, 56, 0.5);
}

/* =========================================================
   2026-11-29 機能別ページ（検索語ごとの入口: yoyaku / monshin / uketsuke / yobou）
   ========================================================= */
.ts-overview__more {
  margin: 1.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 0.95rem;
  color: var(--c-brown-sub);
}
.ts-overview__more a,
.ts-topic__text a,
.ts-topic__links a {
  color: var(--c-accent-text);
  font-weight: 600;
  text-underline-offset: 0.2em;
}
.ts-topic__figure {
  margin: 0 auto 3rem;
  max-width: 880px;
}
.ts-topic__caption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--c-brown-sub);
}
.ts-topic__h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  color: var(--ts-ink);
  word-break: auto-phrase;
}
.ts-topic__h2:not(:first-child) {
  margin-top: 3.2rem;
}
.ts-topic__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.ts-topic__points li {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  background: var(--c-surface);
}
.ts-topic__points h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ts-ink);
}
.ts-topic__points p,
.ts-topic__text,
.ts-topic__faq dd {
  margin: 0;
  line-height: 1.9;
  color: var(--c-brown-sub);
}
.ts-topic__text + .ts-topic__text {
  margin-top: 0.8rem;
}
.ts-topic__flow {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tsflow;
  display: grid;
  gap: 0.7rem;
}
.ts-topic__flow li {
  counter-increment: tsflow;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  line-height: 1.7;
  color: var(--ts-ink);
}
.ts-topic__flow li::before {
  content: counter(tsflow);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ts-primary-strong);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.ts-topic__price {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.9rem;
  color: var(--ts-ink);
}
.ts-topic__price strong {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
}
.ts-topic__price small {
  font-size: 0.5em;
  margin-left: 0.1em;
}
.ts-topic__price-label,
.ts-topic__price-tax {
  font-size: 0.9rem;
  color: var(--c-brown-sub);
}
.ts-topic__faq {
  margin: 0;
}
.ts-topic__faq dt {
  margin: 0 0 0.4rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ts-ink);
}
.ts-topic__faq dd + dt {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--c-line);
}
.ts-topic__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.ts-topic__cta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
@media (max-width: 767px) {
  .ts-topic__points {
    grid-template-columns: minmax(0, 1fr);
  }
  .ts-topic__cta .btn {
    width: 100%;
  }
}
