@charset "UTF-8";
/* ============================================================
 * フェア（キャンペーン）投稿
 *
 * 旧 misite の Views/Home/Cmp/Cmp_*.cshtml ＋ css/cmp_*.css を
 * WordPress の投稿へ移したもの。
 *
 * 従来はフェアごとに cshtml と CSS を1枚ずつ新規作成していたが、
 * このファイルは「どのフェアでも共通の骨格」だけを持ち、
 * 配色は下の配色プリセット（.fair-page--*）で切り替える。
 * 新しいフェアは原則ここを触らずに、投稿＋パターンだけで作れる。
 *
 * 読み込み: mu-plugins/mydoo-fair.php（フェア投稿のときだけ）
 * マークアップ: wp-content/mu-plugins/mydoo-fair/pattern-fair.html
 *               （ブロックパターン「フェアページ」として登録済み）
 * テンプレート: z_wordpress/投稿/フェアテンプレート.html
 * ============================================================ */

/* ------------------------------------------------------------
 * シチュエーション（配色プリセット）
 *
 * 過去のフェア（旧サイトの Views/Home/Cmp/Cmp_*.cshtml）を分類し、
 * 繰り返し開催されてきたテーマを一覧にしたもの。
 * それぞれに配色と、対応する背景の演出を用意してある。
 *
 * 切り替えは投稿編集画面の「フェアのシチュエーション」（ACF）で行う。
 * 選んだ値は body のクラス（fair-theme-halloween など）として出力され、
 * CSS 変数がそこから .fair-page へ継承される。
 *
 * 増やすときは、ここに配色を、下の「背景の演出」に動きを足し、
 * mu-plugins/mydoo-fair.php の mdf_situations() にも1行足す。
 * ------------------------------------------------------------ */

/*
 * 未選択の投稿が崩れないよう、バラエティの配色を土台にしておく。
 */
.fair-page {
  --fair-bg: #fff6e9;
  --fair-ink: #4a3b2a;
  --fair-accent: #ef8354;
  --fair-accent-ink: #ffffff;
  --fair-accent-deep: #c9603a;
  --fair-card: #fffdf8;
  --fair-card-ink: #4a3b2a;
  --fair-frame: #f3c9a3;
  --fair-band: #ef8354;
  --fair-band-ink: #ffffff;
}

/* 春・桜（fourseasons2021 / nagomi2020） */
body.fair-theme-sakura .fair-page {
  --fair-bg: #fde3ec;
  --fair-ink: #5c2740;
  --fair-accent: #c2185b;
  --fair-accent-ink: #fff5f8;
  --fair-accent-deep: #8e0f42;
  --fair-card: #fffafc;
  --fair-card-ink: #5c2740;
  --fair-frame: #f4a7c3;
  --fair-band: #d64d84;
  --fair-band-ink: #ffffff;
}

/* フラワー（flower2022 / flower2026） */
body.fair-theme-flower .fair-page {
  --fair-bg: #eef7e4;
  --fair-ink: #33502a;
  --fair-accent: #5a9c3c;
  --fair-accent-ink: #f7fff0;
  --fair-accent-deep: #3f7628;
  --fair-card: #fdfff8;
  --fair-card-ink: #33502a;
  --fair-frame: #a8d38a;
  --fair-band: #4e8a34;
  --fair-band-ink: #ffffff;
}

/* バレンタイン（valentine2020 / valentine2023 / heart2022 / lovers2021） */
body.fair-theme-valentine .fair-page {
  --fair-bg: #ffe4ec;
  --fair-ink: #5b1f33;
  --fair-accent: #d81b60;
  --fair-accent-ink: #fff0f5;
  --fair-accent-deep: #a10e45;
  --fair-card: #fff6f9;
  --fair-card-ink: #5b1f33;
  --fair-frame: #f49ab8;
  --fair-band: #c2185b;
  --fair-band-ink: #ffffff;
}

/* ホワイトデー（whiteday2020） */
body.fair-theme-whiteday .fair-page {
  --fair-bg: #f4f6fb;
  --fair-ink: #3f4560;
  --fair-accent: #7b86c4;
  --fair-accent-ink: #ffffff;
  --fair-accent-deep: #5a65a3;
  --fair-card: #ffffff;
  --fair-card-ink: #3f4560;
  --fair-frame: #c9d0ea;
  --fair-band: #7b86c4;
  --fair-band-ink: #ffffff;
}

/* 夏・海（summer2020 / summer2023 / summer2026 / vacation） */
body.fair-theme-sea .fair-page {
  --fair-bg: #81d4fa;
  --fair-ink: #0b3a58;
  --fair-accent: #01579b;
  --fair-accent-ink: #fff9f0;
  --fair-accent-deep: #013f70;
  --fair-card: #fbf1e7;
  --fair-card-ink: #60390f;
  --fair-frame: #7dbfd1;
  --fair-band: #0c72ad;
  --fair-band-ink: #ffffff;
}

/* 夏祭り（summerfes2019 / yatai2022） */
body.fair-theme-matsuri .fair-page {
  --fair-bg: #1b2a5c;
  --fair-ink: #fdf3e3;
  --fair-accent: #e23b3b;
  --fair-accent-ink: #fff7ec;
  --fair-accent-deep: #b02626;
  --fair-card: #2a3c75;
  --fair-card-ink: #fdf3e3;
  --fair-frame: #e8b23c;
  --fair-band: #e23b3b;
  --fair-band-ink: #ffffff;
}

/* 梅雨（rainy2023） */
body.fair-theme-rainy .fair-page {
  --fair-bg: #dfeaf2;
  --fair-ink: #27455c;
  --fair-accent: #3f7ea6;
  --fair-accent-ink: #ffffff;
  --fair-accent-deep: #2b5c7d;
  --fair-card: #fbfdff;
  --fair-card-ink: #27455c;
  --fair-frame: #9dc0d6;
  --fair-band: #3f7ea6;
  --fair-band-ink: #ffffff;
}

/* 秋（autumn2023 / fruits2022） */
body.fair-theme-autumn .fair-page {
  --fair-bg: #f6e7d2;
  --fair-ink: #4a2f17;
  --fair-accent: #b5451b;
  --fair-accent-ink: #fff6ec;
  --fair-accent-deep: #8a3212;
  --fair-card: #fffaf2;
  --fair-card-ink: #4a2f17;
  --fair-frame: #d6a86a;
  --fair-band: #8a5a2b;
  --fair-band-ink: #ffffff;
}

/* ハロウィン（halloween2019〜2025 / masquerade2021） */
body.fair-theme-halloween .fair-page {
  --fair-bg: #2e1a47;
  --fair-ink: #f7ecff;
  --fair-accent: #ff7518;
  --fair-accent-ink: #2a1206;
  --fair-accent-deep: #d95c0a;
  --fair-card: #472a6b;
  --fair-card-ink: #f7ecff;
  --fair-frame: #ff7518;
  --fair-band: #ff7518;
  --fair-band-ink: #2a1206;
}

/* クリスマス（xmas2019 / xmas2020） */
body.fair-theme-xmas .fair-page {
  --fair-bg: #12402e;
  --fair-ink: #f6efe2;
  --fair-accent: #c62828;
  --fair-accent-ink: #fff6f2;
  --fair-accent-deep: #96201f;
  --fair-card: #1b5741;
  --fair-card-ink: #f6efe2;
  --fair-frame: #d4af37;
  --fair-band: #c62828;
  --fair-band-ink: #ffffff;
}

/* 冬・雪（winter2021 / winter2022 / hatsuyuki2021） */
body.fair-theme-winter .fair-page {
  --fair-bg: #e8f1f7;
  --fair-ink: #1d3a52;
  --fair-accent: #1f6f9c;
  --fair-accent-ink: #ffffff;
  --fair-accent-deep: #14506f;
  --fair-card: #ffffff;
  --fair-card-ink: #1d3a52;
  --fair-frame: #a9cbe0;
  --fair-band: #1f6f9c;
  --fair-band-ink: #ffffff;
}

/* お正月・和（onenga2020 / onenga2021 / china2020 / china2023） */
body.fair-theme-newyear .fair-page {
  --fair-bg: #fdf6ec;
  --fair-ink: #4a2b2b;
  --fair-accent: #c1272d;
  --fair-accent-ink: #fff8f0;
  --fair-accent-deep: #8f1a1f;
  --fair-card: #fffdf8;
  --fair-card-ink: #4a2b2b;
  --fair-frame: #d4af37;
  --fair-band: #c1272d;
  --fair-band-ink: #ffffff;
}

/* スイーツ（sweets2021） */
body.fair-theme-sweets .fair-page {
  --fair-bg: #fff3e6;
  --fair-ink: #5c3a22;
  --fair-accent: #e8735a;
  --fair-accent-ink: #fff8f4;
  --fair-accent-deep: #c05340;
  --fair-card: #fffaf5;
  --fair-card-ink: #5c3a22;
  --fair-frame: #f6c39b;
  --fair-band: #e8735a;
  --fair-band-ink: #ffffff;
}

/* ゆめかわ・ファンシー（yumekawa2020 / oshi2020 / alice2019 / nursery2022） */
body.fair-theme-yumekawa .fair-page {
  --fair-bg: #f3e8ff;
  --fair-ink: #4a3566;
  --fair-accent: #9b6fd4;
  --fair-accent-ink: #fff8ff;
  --fair-accent-deep: #7a4db8;
  --fair-card: #fdf8ff;
  --fair-card-ink: #4a3566;
  --fair-frame: #d9bff2;
  --fair-band: #9b6fd4;
  --fair-band-ink: #ffffff;
}

/* スチームパンク（steampunk2021 / steampunk2022） */
body.fair-theme-steampunk .fair-page {
  --fair-bg: #3b2f26;
  --fair-ink: #f2e4cf;
  --fair-accent: #b8860b;
  --fair-accent-ink: #2a1f16;
  --fair-accent-deep: #8a6508;
  --fair-card: #4d3d31;
  --fair-card-ink: #f2e4cf;
  --fair-frame: #b8860b;
  --fair-band: #8a6508;
  --fair-band-ink: #f2e4cf;
}

/* バラエティ（汎用）（variety2023 / game2020 / wannyan2019 / bridal2021 ほか） */
body.fair-theme-variety .fair-page {
  --fair-bg: #fff6e9;
  --fair-ink: #4a3b2a;
  --fair-accent: #ef8354;
  --fair-accent-ink: #ffffff;
  --fair-accent-deep: #c9603a;
  --fair-card: #fffdf8;
  --fair-card-ink: #4a3b2a;
  --fair-frame: #f3c9a3;
  --fair-band: #ef8354;
  --fair-band-ink: #ffffff;
}

/* ------------------------------------------------------------
 * ページ全体
 *
 * 旧ページは .body-content-wrap に背景を敷いていた。
 * 投稿では alignfull のグループがその役割を持つ。
 * ------------------------------------------------------------ */

.fair-page {
  --fair-max: 1200px;
  --fair-gutter: clamp(12px, 4vw, 32px);

  /*
   * 背景のニュアンスは --fair-bg から作る。
   * プリセット側で増やす変数は無いので、配色を足すときは
   * --fair-bg を1行書くだけで背景も一緒に決まる。
   */
  --fair-bg-light: color-mix(in srgb, var(--fair-bg) 72%, #ffffff);
  --fair-bg-deep: color-mix(in srgb, var(--fair-bg) 80%, #000000);

  position: relative;
  isolation: isolate;
  color: var(--fair-ink);
  padding-block: clamp(16px, 4vw, 40px) clamp(32px, 7vw, 72px);

  /*
   * 光のあたりを大きなグラデーションで作る。
   * color-mix に対応しない古いブラウザでは background-image が無効になり、
   * 単色の background-color だけが残る（表示は崩れない）。
   */
  background-color: var(--fair-bg);
  background-image:
    radial-gradient(70% 55% at 5% -10%, var(--fair-bg-light) 0%, transparent 60%),
    radial-gradient(60% 45% at 100% 2%, var(--fair-bg-deep) 0%, transparent 55%),
    radial-gradient(85% 45% at 50% 108%, var(--fair-bg-deep) 0%, transparent 60%);
  background-repeat: no-repeat;
}

/* 中身は常に同じ幅・同じ左右余白でそろえる */
.fair-page > * {
  max-width: var(--fair-max);
  margin-inline: auto;
  padding-inline: var(--fair-gutter);
}

/* セクション間の縦リズム */
.fair-page > * + * {
  margin-block-start: clamp(28px, 6vw, 64px);
}

.fair-page a {
  color: inherit;
}

/* ------------------------------------------------------------
 * メインビジュアル
 *
 * 旧ページは PC 用と SP 用で同じ画像を2回出し、
 * .pconly / .mobileonly で出し分けていた。1枚で足りるので統合。
 * ------------------------------------------------------------ */

.fair-hero {
  margin-block-start: 0;
  text-align: center;
}

.fair-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 18%);
}

/* 開催期間のバッジ（[fair_period] が出力する） */
.fair-period {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 0.9em;
  margin-block-start: clamp(12px, 3vw, 20px);
  padding: 0.5em 1.2em;
  border-radius: 999px;
  background: var(--fair-accent);
  color: var(--fair-accent-ink);
  font-weight: 700;
  line-height: 1.4;
}

.fair-period__state {
  padding: 0.15em 0.8em;
  border-radius: 999px;
  background: var(--fair-accent-ink);
  color: var(--fair-accent);
  font-size: 0.85em;
}

/* 終了後は色を落として「終わったこと」が一目で分かるようにする */
.fair-period.is-ended {
  background: #6b6b6b;
  color: #ffffff;
}

.fair-period.is-ended .fair-period__state {
  background: #ffffff;
  color: #6b6b6b;
}

/* ------------------------------------------------------------
 * お知らせ・注意事項（旧 .head-goods）
 * ------------------------------------------------------------ */

.fair-notice {
  max-width: min(860px, 100%);
  padding-block: clamp(16px, 4vw, 28px);
  border-radius: 10px;
  background: var(--fair-accent);
  color: var(--fair-accent-ink);
  box-shadow: 0 4px 14px rgb(0 0 0 / 22%);
  line-height: 1.8;
}

.fair-notice h3,
.fair-notice h4 {
  margin-block: 1.2em 0.4em;
  font-size: 1.15em;
  font-weight: 700;
  color: inherit;
}

.fair-notice > :first-child {
  margin-block-start: 0;
}

.fair-notice a {
  text-decoration: underline;
  word-break: break-all;
}

/* ------------------------------------------------------------
 * セクション見出し
 *
 * デザイン画像があればそれを使い、無ければテキスト見出しに
 * フォールバックする。どちらでも同じ幅に収まる。
 * ------------------------------------------------------------ */

.fair-heading {
  max-width: min(860px, 100%);
  text-align: center;
}

/* 画像見出し（旧 .charm-img / .daiza-img） */
.fair-heading img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

/* テキスト見出し */
.fair-heading__text {
  margin: 0;
  padding: 0.6em 1em;
  border-radius: 8px;
  background: linear-gradient(to right, var(--fair-accent), var(--fair-accent-deep));
  color: var(--fair-accent-ink);
  font-size: clamp(1.25rem, 1rem + 2vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.fair-heading__sub {
  margin-block-start: 0.6em;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------
 * チャーム／台座のラインナップ（旧 .charm-flex / .daiza-flex）
 *
 * 旧実装は幅 250px 固定の flex で、点数が増えると崩れていた。
 * grid の auto-fit にして点数・画面幅どちらにも追従させる。
 * 画像の拡大は lightbox.js ではなく WordPress 標準のライトボックス
 *（画像ブロックの「クリックして拡大」）に任せる。
 * ------------------------------------------------------------ */

.fair-lineup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(12px, 2.5vw, 24px);
  list-style: none;
}

.fair-lineup__item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 4px solid var(--fair-frame);
  border-radius: 10px;
  background: var(--fair-card);
  color: var(--fair-card-ink);
  box-shadow: 0 3px 10px rgb(0 0 0 / 20%);
}

.fair-lineup__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.fair-lineup__name {
  margin: 0;
  padding: 0.45em 0.8em;
  background: var(--fair-band);
  color: var(--fair-band-ink);
  font-weight: 700;
  text-align: center;
}

.fair-lineup__price {
  margin: 0;
  padding: 0.45em 0.8em;
  font-size: 0.9em;
  text-align: right;
}

/* 完売・品切れ表示 */
.fair-lineup__soldout {
  margin: 0;
  padding: 0.3em 0.8em 0.6em;
  color: #c62828;
  font-weight: 700;
  font-size: 0.9em;
  text-align: center;
}

/* 完売した品は写真を落ち着かせて、残っている品を目立たせる */
.fair-lineup__item.is-soldout img {
  filter: grayscale(0.7) opacity(0.75);
}

/* ------------------------------------------------------------
 * 対象商品（[fair_products] の出力）
 *
 * 旧実装はアイコン画像と商品名を手打ちしていた。
 * 商品スラッグだけ書けばサムネイル・名称・リンクは商品DBから引く。
 * ------------------------------------------------------------ */

.fair-goods {
  padding-block: clamp(14px, 3vw, 24px);
  border-radius: 10px;
  background: var(--fair-frame);
}

.fair-goods__title {
  margin: 0 0 clamp(10px, 2vw, 16px);
  padding: 0.35em 0.8em;
  border-radius: 6px;
  background: var(--fair-band);
  color: var(--fair-band-ink);
  font-size: clamp(1.05rem, 0.9rem + 1vw, 1.5rem);
  font-weight: 700;
  text-align: center;
}

.fair-goods__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(8px, 1.5vw, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.fair-goods__item {
  border-radius: 10px;
  background: var(--fair-card);
}

.fair-goods__link {
  display: flex;
  align-items: center;
  gap: 0.8em;
  height: 100%;
  padding: 0.6em 0.9em;
  border-radius: inherit;
  color: var(--fair-card-ink);
  text-decoration: none;
}

.fair-goods__link:hover,
.fair-goods__link:focus-visible {
  background: rgb(255 255 255 / 45%);
  text-decoration: none;
}

.fair-goods__figure {
  flex: 0 0 auto;
  width: 64px;
  margin: 0;
}

.fair-goods__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.fair-goods__name {
  margin: 0;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.5;
}

.fair-goods__note {
  display: block;
  font-weight: 400;
  font-size: 0.85em;
  opacity: 0.85;
}

/*
 * 商品が1件も引けなかったとき（スラッグの打ち間違いなど）の表示。
 * 編集権限のある利用者にだけ出す。訪問者には何も出さない。
 */
.fair-goods__empty {
  margin: 0;
  padding: 0.6em 0.9em;
  border-radius: 6px;
  background: #fff3cd;
  color: #7a5c00;
  font-size: 0.9em;
}

/* ------------------------------------------------------------
 * CTA ボタン（旧 .button-wrapper / .custom-button）
 * ------------------------------------------------------------ */

.fair-cta {
  text-align: center;
}

.fair-cta__link {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  max-width: 100%;
  padding: clamp(12px, 2.5vw, 20px) clamp(18px, 4vw, 36px);
  border-radius: 999px;
  background: var(--fair-accent);
  color: var(--fair-accent-ink);
  text-decoration: none;
  box-shadow: 0 6px 16px rgb(0 0 0 / 25%);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fair-cta__link:hover,
.fair-cta__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgb(0 0 0 / 30%);
  color: var(--fair-accent-ink);
  text-decoration: none;
}

.fair-cta__text {
  display: block;
  font-size: clamp(1.05rem, 0.9rem + 1vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
}

.fair-cta__sub {
  display: block;
  margin-block-start: 0.3em;
  font-size: 0.85em;
  font-weight: 400;
}

.fair-cta__image {
  flex: 0 0 auto;
  width: clamp(60px, 12vw, 110px);
}

.fair-cta__image img {
  display: block;
  width: 100%;
  height: auto;
}

/* 動きを減らす設定の利用者には変形を効かせない */
@media (prefers-reduced-motion: reduce) {
  .fair-cta__link {
    transition: none;
  }

  .fair-cta__link:hover,
  .fair-cta__link:focus-visible {
    transform: none;
  }
}

/* ------------------------------------------------------------
 * 狭い画面での調整
 * ------------------------------------------------------------ */

@media (max-width: 600px) {
  /* CTA はボタン内で縦積みにしたほうがタップ領域を取りやすい */
  .fair-cta__link {
    flex-direction: column;
  }

  .fair-goods__link {
    gap: 0.6em;
  }

  .fair-goods__figure {
    width: 52px;
  }
}

/* ------------------------------------------------------------
 * ブロックエディタ由来の余白の打ち消し
 *
 * 画像ブロックの figure と、グループ直下の要素にはテーマ既定の
 * margin が付く。グリッドの gap と二重にかかるため無効化する。
 * ------------------------------------------------------------ */

.fair-page figure.wp-block-image {
  margin: 0;
}

.fair-lineup > *,
.fair-lineup__item > * {
  margin-block: 0;
}

.fair-hero > * + *,
.fair-heading > * + * {
  margin-block-start: 0.6em;
}

/* ------------------------------------------------------------
 * パンくずリスト
 *
 * フェアテンプレートでは alignfull で置き、ここで幅と左右余白を
 * フェア本体（.fair-page > *）とそろえる。
 * テンプレート側を constrained グループにするとテーマが中身を
 * content-size 幅に絞って中央寄せするため、フェア本体より
 * 内側に入って中央寄せに見えてしまう。
 * ------------------------------------------------------------ */

.fair-breadcrumb {
  max-width: 1200px;
  margin-inline: auto;
  padding-block: 10px 12px;
  padding-inline: clamp(12px, 4vw, 32px);
}

.fair-breadcrumb .mdp-breadcrumb__list {
  justify-content: flex-start;
}

/*
 * 下の余白はこのグループの padding だけで決める。
 * site-wp.css の .mdp-breadcrumb が margin: 0 0 var(--s-2) を持っており、
 * そのままだと 16px（--s-2 = 1rem）が下に付く。
 */
.fair-breadcrumb .mdp-breadcrumb {
  margin-bottom: 0;
}

/*
 * ショートコードブロックの前後の改行が段落に変換され、
 * 中身のない <p> が余白を作ってしまうため消す。
 *
 * :empty は子ノードが1つも無い要素にしか当たらず、改行や空白が
 * 入った <p> には効かない。このグループはパンくずしか置かない
 * 前提なので、直下の段落はまとめて消してしまう。
 */
.fair-breadcrumb > p {
  display: none;
}

/* ============================================================
 * 背景の演出
 *
 * シチュエーションごとに、背景へ動きのあるレイヤーを重ねる。
 * 絵はすべて SVG を CSS に直接埋め込んでいる。画像ファイルを増やさず、
 * 追加のリクエストも発生しない。
 *
 * 1つの擬似要素に2本のアニメーションを並べる。片方が
 * background-position、もう片方が transform か opacity と、
 * 別のプロパティを扱うので競合しない。周期をずらしてあるため、
 * 見た目には不規則に動く。
 *
 * 動く量は @keyframes 側で --fair-w-* / --fair-h-* から計算している。
 * タイルの大きさの倍数になるので、1周してもつなぎ目が飛ばない。
 * ============================================================ */

/* 揺れでレイヤーが外へはみ出しても横スクロールが出ないようにする */
.fair-page {
  overflow: hidden;
}

/*
 * 演出レイヤーの共通設定。
 * 背景画像を持たないシチュエーションでは、何も描かれない透明な層になる。
 */
.fair-page::before,
.fair-page::after {
  content: "";
  position: absolute;
  /* 揺れの分だけ外側へ広げ、端に隙間が見えないようにする */
  inset: -60px -40px;
  z-index: -1;
  pointer-events: none;

  --fair-w-1: 220px;
  --fair-h-1: 220px;
  --fair-w-2: 340px;
  --fair-h-2: 340px;
  /* 2枚目をずらして、同じ柄が重なって見えないようにする */
  --fair-offset-2: 110px;

  background-repeat: repeat;
  background-size: var(--fair-w-1) var(--fair-h-1), var(--fair-w-2) var(--fair-h-2);
}

/* ------------------------------------------------------------
 * 春・桜：つぼみから花が開く
 *
 * つぼみ（::before）と花（::after）を同じ位置・同じ向きに重ね、
 * 表示から数秒かけて入れ替える。咲いたあとはそのまま。
 * 咲く動きを繰り返すと落ち着かないため、1回だけにしている。
 * ------------------------------------------------------------ */

body.fair-theme-sakura .fair-page::before {
  opacity: 0.75;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg transform='translate(30 34) rotate(-12) scale(1.0)'%3E%3Cpath d='M0 8L0 18' fill='none' stroke='%238a6a4f' stroke-width='1.6'/%3E%3Cpath d='M0 8C-6 4 -6 -6 0 -10C6 -6 6 4 0 8Z' fill='%23f4a7c3'/%3E%3C/g%3E%3Cg transform='translate(128 22) rotate(20) scale(0.75)'%3E%3Cpath d='M0 8L0 18' fill='none' stroke='%238a6a4f' stroke-width='1.6'/%3E%3Cpath d='M0 8C-6 4 -6 -6 0 -10C6 -6 6 4 0 8Z' fill='%23f4a7c3'/%3E%3C/g%3E%3Cg transform='translate(74 116) rotate(-25) scale(0.85)'%3E%3Cpath d='M0 8L0 18' fill='none' stroke='%238a6a4f' stroke-width='1.6'/%3E%3Cpath d='M0 8C-6 4 -6 -6 0 -10C6 -6 6 4 0 8Z' fill='%23f4a7c3'/%3E%3C/g%3E%3Cg transform='translate(178 98) rotate(10) scale(0.95)'%3E%3Cpath d='M0 8L0 18' fill='none' stroke='%238a6a4f' stroke-width='1.6'/%3E%3Cpath d='M0 8C-6 4 -6 -6 0 -10C6 -6 6 4 0 8Z' fill='%23f4a7c3'/%3E%3C/g%3E%3Cg transform='translate(38 176) rotate(15) scale(0.7)'%3E%3Cpath d='M0 8L0 18' fill='none' stroke='%238a6a4f' stroke-width='1.6'/%3E%3Cpath d='M0 8C-6 4 -6 -6 0 -10C6 -6 6 4 0 8Z' fill='%23f4a7c3'/%3E%3C/g%3E%3Cg transform='translate(146 168) rotate(-18) scale(0.9)'%3E%3Cpath d='M0 8L0 18' fill='none' stroke='%238a6a4f' stroke-width='1.6'/%3E%3Cpath d='M0 8C-6 4 -6 -6 0 -10C6 -6 6 4 0 8Z' fill='%23f4a7c3'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-bloom-bud 5s ease-in-out 1s forwards,
    fair-sway-small 13s ease-in-out infinite alternate;
}

body.fair-theme-sakura .fair-page::after {
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg transform='translate(30 34) rotate(-12) scale(1.0)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23e58aa8'/%3E%3C/g%3E%3Cg transform='translate(128 22) rotate(20) scale(0.75)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23e58aa8'/%3E%3C/g%3E%3Cg transform='translate(74 116) rotate(-25) scale(0.85)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23e58aa8'/%3E%3C/g%3E%3Cg transform='translate(178 98) rotate(10) scale(0.95)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23e58aa8'/%3E%3C/g%3E%3Cg transform='translate(38 176) rotate(15) scale(0.7)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23e58aa8'/%3E%3C/g%3E%3Cg transform='translate(146 168) rotate(-18) scale(0.9)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23f8c8d8' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23e58aa8'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-bloom-open 5s ease-in-out 1s forwards,
    fair-sway-small 13s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * 夏・海：さざ波が揺れる
 *
 * 波の線を2枚、左右反対方向へ流す。速度差ですれ違い、
 * 水面のゆらぎに見える。上下の揺れも加える。
 * ------------------------------------------------------------ */

body.fair-theme-sea .fair-page::after {
  --fair-w-1: 240px;
  --fair-h-1: 60px;
  --fair-w-2: 360px;
  --fair-h-2: 90px;
  --fair-offset-2: 45px;

  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' viewBox='0 0 240 60'%3E%3Cpath d='M0 34Q30 16 60 34T120 34T180 34T240 34' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' opacity='0.55'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' viewBox='0 0 240 60'%3E%3Cpath d='M0 34Q30 16 60 34T120 34T180 34T240 34' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' opacity='0.55'/%3E%3C/svg%3E");
  animation:
    fair-drift 16s linear infinite,
    fair-bob 5s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * フラワー：花びらが舞い落ちる
 * ------------------------------------------------------------ */

body.fair-theme-flower .fair-page::after {
  --fair-w-1: 200px;
  --fair-h-1: 200px;
  --fair-w-2: 300px;
  --fair-h-2: 300px;

  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg transform='translate(20 32) rotate(-18) scale(1.0)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='9' fill='%23f28ab2'/%3E%3C/g%3E%3Cg transform='translate(116 16) rotate(24) scale(0.75)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='9' fill='%23f9c8dc'/%3E%3C/g%3E%3Cg transform='translate(64 104) rotate(-35) scale(0.9)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='9' fill='%23fff2a8'/%3E%3C/g%3E%3Cg transform='translate(164 88) rotate(12) scale(0.65)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='9' fill='%23f28ab2'/%3E%3C/g%3E%3Cg transform='translate(32 164) rotate(30) scale(0.7)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='9' fill='%23f9c8dc'/%3E%3C/g%3E%3Cg transform='translate(136 156) rotate(-12) scale(0.85)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='9' fill='%23fff2a8'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg transform='translate(20 32) rotate(-18) scale(1.0)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='9' fill='%23f28ab2'/%3E%3C/g%3E%3Cg transform='translate(116 16) rotate(24) scale(0.75)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='9' fill='%23f9c8dc'/%3E%3C/g%3E%3Cg transform='translate(64 104) rotate(-35) scale(0.9)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='9' fill='%23fff2a8'/%3E%3C/g%3E%3Cg transform='translate(164 88) rotate(12) scale(0.65)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='9' fill='%23f28ab2'/%3E%3C/g%3E%3Cg transform='translate(32 164) rotate(30) scale(0.7)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='9' fill='%23f9c8dc'/%3E%3C/g%3E%3Cg transform='translate(136 156) rotate(-12) scale(0.85)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='9' fill='%23fff2a8'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-fall 22s linear infinite,
    fair-sway 9s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * バレンタイン：ハートがふわりと浮き上がる
 * ------------------------------------------------------------ */

body.fair-theme-valentine .fair-page::after {
  --fair-w-1: 200px;
  --fair-h-1: 200px;
  --fair-w-2: 310px;
  --fair-h-2: 310px;

  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg transform='translate(20 32) rotate(-18) scale(1.0)'%3E%3Cpath d='M0 12C-10 4 -14 -2 -10 -7C-6 -12 0 -9 0 -5C0 -9 6 -12 10 -7C14 -2 10 4 0 12Z' fill='%23e2507f'/%3E%3C/g%3E%3Cg transform='translate(116 16) rotate(24) scale(0.75)'%3E%3Cpath d='M0 12C-10 4 -14 -2 -10 -7C-6 -12 0 -9 0 -5C0 -9 6 -12 10 -7C14 -2 10 4 0 12Z' fill='%23f7a8c0'/%3E%3C/g%3E%3Cg transform='translate(64 104) rotate(-35) scale(0.9)'%3E%3Cpath d='M0 12C-10 4 -14 -2 -10 -7C-6 -12 0 -9 0 -5C0 -9 6 -12 10 -7C14 -2 10 4 0 12Z' fill='%23c2185b'/%3E%3C/g%3E%3Cg transform='translate(164 88) rotate(12) scale(0.65)'%3E%3Cpath d='M0 12C-10 4 -14 -2 -10 -7C-6 -12 0 -9 0 -5C0 -9 6 -12 10 -7C14 -2 10 4 0 12Z' fill='%23f7a8c0'/%3E%3C/g%3E%3Cg transform='translate(32 164) rotate(30) scale(0.7)'%3E%3Cpath d='M0 12C-10 4 -14 -2 -10 -7C-6 -12 0 -9 0 -5C0 -9 6 -12 10 -7C14 -2 10 4 0 12Z' fill='%23f7a8c0'/%3E%3C/g%3E%3Cg transform='translate(136 156) rotate(-12) scale(0.85)'%3E%3Cpath d='M0 12C-10 4 -14 -2 -10 -7C-6 -12 0 -9 0 -5C0 -9 6 -12 10 -7C14 -2 10 4 0 12Z' fill='%23c2185b'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg transform='translate(20 32) rotate(-18) scale(1.0)'%3E%3Cpath d='M0 12C-10 4 -14 -2 -10 -7C-6 -12 0 -9 0 -5C0 -9 6 -12 10 -7C14 -2 10 4 0 12Z' fill='%23e2507f'/%3E%3C/g%3E%3Cg transform='translate(116 16) rotate(24) scale(0.75)'%3E%3Cpath d='M0 12C-10 4 -14 -2 -10 -7C-6 -12 0 -9 0 -5C0 -9 6 -12 10 -7C14 -2 10 4 0 12Z' fill='%23f7a8c0'/%3E%3C/g%3E%3Cg transform='translate(64 104) rotate(-35) scale(0.9)'%3E%3Cpath d='M0 12C-10 4 -14 -2 -10 -7C-6 -12 0 -9 0 -5C0 -9 6 -12 10 -7C14 -2 10 4 0 12Z' fill='%23c2185b'/%3E%3C/g%3E%3Cg transform='translate(164 88) rotate(12) scale(0.65)'%3E%3Cpath d='M0 12C-10 4 -14 -2 -10 -7C-6 -12 0 -9 0 -5C0 -9 6 -12 10 -7C14 -2 10 4 0 12Z' fill='%23f7a8c0'/%3E%3C/g%3E%3Cg transform='translate(32 164) rotate(30) scale(0.7)'%3E%3Cpath d='M0 12C-10 4 -14 -2 -10 -7C-6 -12 0 -9 0 -5C0 -9 6 -12 10 -7C14 -2 10 4 0 12Z' fill='%23f7a8c0'/%3E%3C/g%3E%3Cg transform='translate(136 156) rotate(-12) scale(0.85)'%3E%3Cpath d='M0 12C-10 4 -14 -2 -10 -7C-6 -12 0 -9 0 -5C0 -9 6 -12 10 -7C14 -2 10 4 0 12Z' fill='%23c2185b'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-rise 26s linear infinite,
    fair-sway-small 8s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * ホワイトデー：白い小花が静かに降る
 * ------------------------------------------------------------ */

body.fair-theme-whiteday .fair-page::after {
  --fair-w-1: 210px;
  --fair-h-1: 210px;
  --fair-w-2: 320px;
  --fair-h-2: 320px;

  opacity: 0.75;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='210' viewBox='0 0 210 210'%3E%3Cg transform='translate(21 34) rotate(-18) scale(1.0)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23d7dcf0'/%3E%3C/g%3E%3Cg transform='translate(122 17) rotate(24) scale(0.75)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23d7dcf0'/%3E%3C/g%3E%3Cg transform='translate(67 109) rotate(-35) scale(0.9)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23d7dcf0'/%3E%3C/g%3E%3Cg transform='translate(172 92) rotate(12) scale(0.65)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23d7dcf0'/%3E%3C/g%3E%3Cg transform='translate(34 172) rotate(30) scale(0.7)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23d7dcf0'/%3E%3C/g%3E%3Cg transform='translate(143 164) rotate(-12) scale(0.85)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23d7dcf0'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='210' viewBox='0 0 210 210'%3E%3Cg transform='translate(21 34) rotate(-18) scale(1.0)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23d7dcf0'/%3E%3C/g%3E%3Cg transform='translate(122 17) rotate(24) scale(0.75)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23d7dcf0'/%3E%3C/g%3E%3Cg transform='translate(67 109) rotate(-35) scale(0.9)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23d7dcf0'/%3E%3C/g%3E%3Cg transform='translate(172 92) rotate(12) scale(0.65)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23d7dcf0'/%3E%3C/g%3E%3Cg transform='translate(34 172) rotate(30) scale(0.7)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23eef0fa' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23d7dcf0'/%3E%3C/g%3E%3Cg transform='translate(143 164) rotate(-12) scale(0.85)'%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-8' rx='4.6' ry='7.6' fill='%23ffffff' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.6' fill='%23d7dcf0'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-fall 34s linear infinite,
    fair-sway-small 12s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * 夏祭り：花火がきらめく
 * ------------------------------------------------------------ */

body.fair-theme-matsuri .fair-page::after {
  --fair-w-1: 230px;
  --fair-h-1: 230px;
  --fair-w-2: 340px;
  --fair-h-2: 340px;
  --fair-fx-min: 0.25;
  --fair-fx-max: 0.7;

  opacity: 0.7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='230' height='230' viewBox='0 0 230 230'%3E%3Cg transform='translate(23 37) rotate(-18) scale(1.0)'%3E%3Cpath d='M0 -14L2.6 -2.6L14 0L2.6 2.6L0 14L-2.6 2.6L-14 0L-2.6 -2.6Z' fill='%23ffd95e'/%3E%3C/g%3E%3Cg transform='translate(133 18) rotate(24) scale(0.75)'%3E%3Cpath d='M0 -14L2.6 -2.6L14 0L2.6 2.6L0 14L-2.6 2.6L-14 0L-2.6 -2.6Z' fill='%23ff8a8a'/%3E%3C/g%3E%3Cg transform='translate(74 120) rotate(-35) scale(0.9)'%3E%3Cpath d='M0 -14L2.6 -2.6L14 0L2.6 2.6L0 14L-2.6 2.6L-14 0L-2.6 -2.6Z' fill='%23ffd95e'/%3E%3C/g%3E%3Cg transform='translate(189 101) rotate(12) scale(0.65)'%3E%3Cpath d='M0 -14L2.6 -2.6L14 0L2.6 2.6L0 14L-2.6 2.6L-14 0L-2.6 -2.6Z' fill='%238ad6ff'/%3E%3C/g%3E%3Cg transform='translate(37 189) rotate(30) scale(0.7)'%3E%3Cpath d='M0 -14L2.6 -2.6L14 0L2.6 2.6L0 14L-2.6 2.6L-14 0L-2.6 -2.6Z' fill='%23ff8a8a'/%3E%3C/g%3E%3Cg transform='translate(156 179) rotate(-12) scale(0.85)'%3E%3Cpath d='M0 -14L2.6 -2.6L14 0L2.6 2.6L0 14L-2.6 2.6L-14 0L-2.6 -2.6Z' fill='%23ffd95e'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='230' height='230' viewBox='0 0 230 230'%3E%3Cg transform='translate(23 37) rotate(-18) scale(1.0)'%3E%3Cpath d='M0 -14L2.6 -2.6L14 0L2.6 2.6L0 14L-2.6 2.6L-14 0L-2.6 -2.6Z' fill='%23ffd95e'/%3E%3C/g%3E%3Cg transform='translate(133 18) rotate(24) scale(0.75)'%3E%3Cpath d='M0 -14L2.6 -2.6L14 0L2.6 2.6L0 14L-2.6 2.6L-14 0L-2.6 -2.6Z' fill='%23ff8a8a'/%3E%3C/g%3E%3Cg transform='translate(74 120) rotate(-35) scale(0.9)'%3E%3Cpath d='M0 -14L2.6 -2.6L14 0L2.6 2.6L0 14L-2.6 2.6L-14 0L-2.6 -2.6Z' fill='%23ffd95e'/%3E%3C/g%3E%3Cg transform='translate(189 101) rotate(12) scale(0.65)'%3E%3Cpath d='M0 -14L2.6 -2.6L14 0L2.6 2.6L0 14L-2.6 2.6L-14 0L-2.6 -2.6Z' fill='%238ad6ff'/%3E%3C/g%3E%3Cg transform='translate(37 189) rotate(30) scale(0.7)'%3E%3Cpath d='M0 -14L2.6 -2.6L14 0L2.6 2.6L0 14L-2.6 2.6L-14 0L-2.6 -2.6Z' fill='%23ff8a8a'/%3E%3C/g%3E%3Cg transform='translate(156 179) rotate(-12) scale(0.85)'%3E%3Cpath d='M0 -14L2.6 -2.6L14 0L2.6 2.6L0 14L-2.6 2.6L-14 0L-2.6 -2.6Z' fill='%23ffd95e'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-rise 30s linear infinite,
    fair-twinkle 3.5s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * 梅雨：雨が降る
 * ------------------------------------------------------------ */

body.fair-theme-rainy .fair-page::after {
  --fair-w-1: 170px;
  --fair-h-1: 170px;
  --fair-w-2: 250px;
  --fair-h-2: 250px;

  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170'%3E%3Cg transform='translate(17 27) rotate(-18) scale(1.0)'%3E%3Cpath d='M0 -12C0 -12 7 -2 7 3A7 7 0 0 1 -7 3C-7 -2 0 -12 0 -12Z' fill='%236fa8c9' opacity='0.8'/%3E%3C/g%3E%3Cg transform='translate(99 14) rotate(24) scale(0.75)'%3E%3Cpath d='M0 -12C0 -12 7 -2 7 3A7 7 0 0 1 -7 3C-7 -2 0 -12 0 -12Z' fill='%239dc0d6' opacity='0.8'/%3E%3C/g%3E%3Cg transform='translate(54 88) rotate(-35) scale(0.9)'%3E%3Cpath d='M0 -12C0 -12 7 -2 7 3A7 7 0 0 1 -7 3C-7 -2 0 -12 0 -12Z' fill='%236fa8c9' opacity='0.8'/%3E%3C/g%3E%3Cg transform='translate(139 75) rotate(12) scale(0.65)'%3E%3Cpath d='M0 -12C0 -12 7 -2 7 3A7 7 0 0 1 -7 3C-7 -2 0 -12 0 -12Z' fill='%239dc0d6' opacity='0.8'/%3E%3C/g%3E%3Cg transform='translate(27 139) rotate(30) scale(0.7)'%3E%3Cpath d='M0 -12C0 -12 7 -2 7 3A7 7 0 0 1 -7 3C-7 -2 0 -12 0 -12Z' fill='%239dc0d6' opacity='0.8'/%3E%3C/g%3E%3Cg transform='translate(116 133) rotate(-12) scale(0.85)'%3E%3Cpath d='M0 -12C0 -12 7 -2 7 3A7 7 0 0 1 -7 3C-7 -2 0 -12 0 -12Z' fill='%236fa8c9' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170'%3E%3Cg transform='translate(17 27) rotate(-18) scale(1.0)'%3E%3Cpath d='M0 -12C0 -12 7 -2 7 3A7 7 0 0 1 -7 3C-7 -2 0 -12 0 -12Z' fill='%236fa8c9' opacity='0.8'/%3E%3C/g%3E%3Cg transform='translate(99 14) rotate(24) scale(0.75)'%3E%3Cpath d='M0 -12C0 -12 7 -2 7 3A7 7 0 0 1 -7 3C-7 -2 0 -12 0 -12Z' fill='%239dc0d6' opacity='0.8'/%3E%3C/g%3E%3Cg transform='translate(54 88) rotate(-35) scale(0.9)'%3E%3Cpath d='M0 -12C0 -12 7 -2 7 3A7 7 0 0 1 -7 3C-7 -2 0 -12 0 -12Z' fill='%236fa8c9' opacity='0.8'/%3E%3C/g%3E%3Cg transform='translate(139 75) rotate(12) scale(0.65)'%3E%3Cpath d='M0 -12C0 -12 7 -2 7 3A7 7 0 0 1 -7 3C-7 -2 0 -12 0 -12Z' fill='%239dc0d6' opacity='0.8'/%3E%3C/g%3E%3Cg transform='translate(27 139) rotate(30) scale(0.7)'%3E%3Cpath d='M0 -12C0 -12 7 -2 7 3A7 7 0 0 1 -7 3C-7 -2 0 -12 0 -12Z' fill='%239dc0d6' opacity='0.8'/%3E%3C/g%3E%3Cg transform='translate(116 133) rotate(-12) scale(0.85)'%3E%3Cpath d='M0 -12C0 -12 7 -2 7 3A7 7 0 0 1 -7 3C-7 -2 0 -12 0 -12Z' fill='%236fa8c9' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-fall 9s linear infinite,
    fair-sway-small 6s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * 秋：落ち葉が舞う
 * ------------------------------------------------------------ */

body.fair-theme-autumn .fair-page::after {
  --fair-w-1: 220px;
  --fair-h-1: 220px;
  --fair-w-2: 340px;
  --fair-h-2: 340px;

  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg transform='translate(22 35) rotate(-18) scale(1.0)'%3E%3Cpath d='M0 -18C12 -10 12 6 0 18C-12 6 -12 -10 0 -18Z' fill='%23b5451b'/%3E%3Cpath d='M0 -14L0 14' fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.35'/%3E%3C/g%3E%3Cg transform='translate(128 18) rotate(24) scale(0.75)'%3E%3Cpath d='M0 -18C12 -10 12 6 0 18C-12 6 -12 -10 0 -18Z' fill='%23d6a86a'/%3E%3Cpath d='M0 -14L0 14' fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.35'/%3E%3C/g%3E%3Cg transform='translate(70 114) rotate(-35) scale(0.9)'%3E%3Cpath d='M0 -18C12 -10 12 6 0 18C-12 6 -12 -10 0 -18Z' fill='%238a5a2b'/%3E%3Cpath d='M0 -14L0 14' fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.35'/%3E%3C/g%3E%3Cg transform='translate(180 97) rotate(12) scale(0.65)'%3E%3Cpath d='M0 -18C12 -10 12 6 0 18C-12 6 -12 -10 0 -18Z' fill='%23b5451b'/%3E%3Cpath d='M0 -14L0 14' fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.35'/%3E%3C/g%3E%3Cg transform='translate(35 180) rotate(30) scale(0.7)'%3E%3Cpath d='M0 -18C12 -10 12 6 0 18C-12 6 -12 -10 0 -18Z' fill='%23d6a86a'/%3E%3Cpath d='M0 -14L0 14' fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.35'/%3E%3C/g%3E%3Cg transform='translate(150 172) rotate(-12) scale(0.85)'%3E%3Cpath d='M0 -18C12 -10 12 6 0 18C-12 6 -12 -10 0 -18Z' fill='%238a5a2b'/%3E%3Cpath d='M0 -14L0 14' fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.35'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg transform='translate(22 35) rotate(-18) scale(1.0)'%3E%3Cpath d='M0 -18C12 -10 12 6 0 18C-12 6 -12 -10 0 -18Z' fill='%23b5451b'/%3E%3Cpath d='M0 -14L0 14' fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.35'/%3E%3C/g%3E%3Cg transform='translate(128 18) rotate(24) scale(0.75)'%3E%3Cpath d='M0 -18C12 -10 12 6 0 18C-12 6 -12 -10 0 -18Z' fill='%23d6a86a'/%3E%3Cpath d='M0 -14L0 14' fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.35'/%3E%3C/g%3E%3Cg transform='translate(70 114) rotate(-35) scale(0.9)'%3E%3Cpath d='M0 -18C12 -10 12 6 0 18C-12 6 -12 -10 0 -18Z' fill='%238a5a2b'/%3E%3Cpath d='M0 -14L0 14' fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.35'/%3E%3C/g%3E%3Cg transform='translate(180 97) rotate(12) scale(0.65)'%3E%3Cpath d='M0 -18C12 -10 12 6 0 18C-12 6 -12 -10 0 -18Z' fill='%23b5451b'/%3E%3Cpath d='M0 -14L0 14' fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.35'/%3E%3C/g%3E%3Cg transform='translate(35 180) rotate(30) scale(0.7)'%3E%3Cpath d='M0 -18C12 -10 12 6 0 18C-12 6 -12 -10 0 -18Z' fill='%23d6a86a'/%3E%3Cpath d='M0 -14L0 14' fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.35'/%3E%3C/g%3E%3Cg transform='translate(150 172) rotate(-12) scale(0.85)'%3E%3Cpath d='M0 -18C12 -10 12 6 0 18C-12 6 -12 -10 0 -18Z' fill='%238a5a2b'/%3E%3Cpath d='M0 -14L0 14' fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.35'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-fall 28s linear infinite,
    fair-sway 7s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * ハロウィン：こうもりが横切る
 * ------------------------------------------------------------ */

body.fair-theme-halloween .fair-page::after {
  --fair-w-1: 240px;
  --fair-h-1: 240px;
  --fair-w-2: 360px;
  --fair-h-2: 360px;

  opacity: 0.8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg transform='translate(24 38) rotate(-18) scale(1.0)'%3E%3Cpath d='M0 0C4 -6 7 -1 11 -5C13 -2 15 -6 18 -3C14 -2 13 3 9 2C7 5 3 5 0 2C-3 5 -7 5 -9 2C-13 3 -14 -2 -18 -3C-15 -6 -13 -2 -11 -5C-7 -1 -4 -6 0 0Z' fill='%231b0f2b'/%3E%3C/g%3E%3Cg transform='translate(139 19) rotate(24) scale(0.75)'%3E%3Cpath d='M0 0C4 -6 7 -1 11 -5C13 -2 15 -6 18 -3C14 -2 13 3 9 2C7 5 3 5 0 2C-3 5 -7 5 -9 2C-13 3 -14 -2 -18 -3C-15 -6 -13 -2 -11 -5C-7 -1 -4 -6 0 0Z' fill='%233d2360'/%3E%3C/g%3E%3Cg transform='translate(77 125) rotate(-35) scale(0.9)'%3E%3Cpath d='M0 0C4 -6 7 -1 11 -5C13 -2 15 -6 18 -3C14 -2 13 3 9 2C7 5 3 5 0 2C-3 5 -7 5 -9 2C-13 3 -14 -2 -18 -3C-15 -6 -13 -2 -11 -5C-7 -1 -4 -6 0 0Z' fill='%231b0f2b'/%3E%3C/g%3E%3Cg transform='translate(197 106) rotate(12) scale(0.65)'%3E%3Cpath d='M0 0C4 -6 7 -1 11 -5C13 -2 15 -6 18 -3C14 -2 13 3 9 2C7 5 3 5 0 2C-3 5 -7 5 -9 2C-13 3 -14 -2 -18 -3C-15 -6 -13 -2 -11 -5C-7 -1 -4 -6 0 0Z' fill='%233d2360'/%3E%3C/g%3E%3Cg transform='translate(38 197) rotate(30) scale(0.7)'%3E%3Cpath d='M0 0C4 -6 7 -1 11 -5C13 -2 15 -6 18 -3C14 -2 13 3 9 2C7 5 3 5 0 2C-3 5 -7 5 -9 2C-13 3 -14 -2 -18 -3C-15 -6 -13 -2 -11 -5C-7 -1 -4 -6 0 0Z' fill='%233d2360'/%3E%3C/g%3E%3Cg transform='translate(163 187) rotate(-12) scale(0.85)'%3E%3Cpath d='M0 0C4 -6 7 -1 11 -5C13 -2 15 -6 18 -3C14 -2 13 3 9 2C7 5 3 5 0 2C-3 5 -7 5 -9 2C-13 3 -14 -2 -18 -3C-15 -6 -13 -2 -11 -5C-7 -1 -4 -6 0 0Z' fill='%231b0f2b'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg transform='translate(24 38) rotate(-18) scale(1.0)'%3E%3Cpath d='M0 0C4 -6 7 -1 11 -5C13 -2 15 -6 18 -3C14 -2 13 3 9 2C7 5 3 5 0 2C-3 5 -7 5 -9 2C-13 3 -14 -2 -18 -3C-15 -6 -13 -2 -11 -5C-7 -1 -4 -6 0 0Z' fill='%231b0f2b'/%3E%3C/g%3E%3Cg transform='translate(139 19) rotate(24) scale(0.75)'%3E%3Cpath d='M0 0C4 -6 7 -1 11 -5C13 -2 15 -6 18 -3C14 -2 13 3 9 2C7 5 3 5 0 2C-3 5 -7 5 -9 2C-13 3 -14 -2 -18 -3C-15 -6 -13 -2 -11 -5C-7 -1 -4 -6 0 0Z' fill='%233d2360'/%3E%3C/g%3E%3Cg transform='translate(77 125) rotate(-35) scale(0.9)'%3E%3Cpath d='M0 0C4 -6 7 -1 11 -5C13 -2 15 -6 18 -3C14 -2 13 3 9 2C7 5 3 5 0 2C-3 5 -7 5 -9 2C-13 3 -14 -2 -18 -3C-15 -6 -13 -2 -11 -5C-7 -1 -4 -6 0 0Z' fill='%231b0f2b'/%3E%3C/g%3E%3Cg transform='translate(197 106) rotate(12) scale(0.65)'%3E%3Cpath d='M0 0C4 -6 7 -1 11 -5C13 -2 15 -6 18 -3C14 -2 13 3 9 2C7 5 3 5 0 2C-3 5 -7 5 -9 2C-13 3 -14 -2 -18 -3C-15 -6 -13 -2 -11 -5C-7 -1 -4 -6 0 0Z' fill='%233d2360'/%3E%3C/g%3E%3Cg transform='translate(38 197) rotate(30) scale(0.7)'%3E%3Cpath d='M0 0C4 -6 7 -1 11 -5C13 -2 15 -6 18 -3C14 -2 13 3 9 2C7 5 3 5 0 2C-3 5 -7 5 -9 2C-13 3 -14 -2 -18 -3C-15 -6 -13 -2 -11 -5C-7 -1 -4 -6 0 0Z' fill='%233d2360'/%3E%3C/g%3E%3Cg transform='translate(163 187) rotate(-12) scale(0.85)'%3E%3Cpath d='M0 0C4 -6 7 -1 11 -5C13 -2 15 -6 18 -3C14 -2 13 3 9 2C7 5 3 5 0 2C-3 5 -7 5 -9 2C-13 3 -14 -2 -18 -3C-15 -6 -13 -2 -11 -5C-7 -1 -4 -6 0 0Z' fill='%231b0f2b'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-drift 24s linear infinite,
    fair-bob 4s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * クリスマス：雪の結晶がきらめきながら降る
 * ------------------------------------------------------------ */

body.fair-theme-xmas .fair-page::after {
  --fair-w-1: 210px;
  --fair-h-1: 210px;
  --fair-w-2: 320px;
  --fair-h-2: 320px;
  --fair-fx-min: 0.45;
  --fair-fx-max: 0.85;

  opacity: 0.85;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='210' viewBox='0 0 210 210'%3E%3Cg transform='translate(21 34) rotate(-18) scale(1.0)'%3E%3Cpath transform='rotate(0)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(60)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(120)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(122 17) rotate(24) scale(0.75)'%3E%3Cpath transform='rotate(0)' d='M0 -13L0 13' fill='none' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(60)' d='M0 -13L0 13' fill='none' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(120)' d='M0 -13L0 13' fill='none' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(67 109) rotate(-35) scale(0.9)'%3E%3Cpath transform='rotate(0)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(60)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(120)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(172 92) rotate(12) scale(0.65)'%3E%3Cpath transform='rotate(0)' d='M0 -13L0 13' fill='none' stroke='%23cfe6f5' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(60)' d='M0 -13L0 13' fill='none' stroke='%23cfe6f5' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(120)' d='M0 -13L0 13' fill='none' stroke='%23cfe6f5' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(34 172) rotate(30) scale(0.7)'%3E%3Cpath transform='rotate(0)' d='M0 -13L0 13' fill='none' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(60)' d='M0 -13L0 13' fill='none' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(120)' d='M0 -13L0 13' fill='none' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(143 164) rotate(-12) scale(0.85)'%3E%3Cpath transform='rotate(0)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(60)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(120)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='210' viewBox='0 0 210 210'%3E%3Cg transform='translate(21 34) rotate(-18) scale(1.0)'%3E%3Cpath transform='rotate(0)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(60)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(120)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(122 17) rotate(24) scale(0.75)'%3E%3Cpath transform='rotate(0)' d='M0 -13L0 13' fill='none' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(60)' d='M0 -13L0 13' fill='none' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(120)' d='M0 -13L0 13' fill='none' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(67 109) rotate(-35) scale(0.9)'%3E%3Cpath transform='rotate(0)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(60)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(120)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(172 92) rotate(12) scale(0.65)'%3E%3Cpath transform='rotate(0)' d='M0 -13L0 13' fill='none' stroke='%23cfe6f5' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(60)' d='M0 -13L0 13' fill='none' stroke='%23cfe6f5' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(120)' d='M0 -13L0 13' fill='none' stroke='%23cfe6f5' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(34 172) rotate(30) scale(0.7)'%3E%3Cpath transform='rotate(0)' d='M0 -13L0 13' fill='none' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(60)' d='M0 -13L0 13' fill='none' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(120)' d='M0 -13L0 13' fill='none' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(143 164) rotate(-12) scale(0.85)'%3E%3Cpath transform='rotate(0)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(60)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath transform='rotate(120)' d='M0 -13L0 13' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-fall 24s linear infinite,
    fair-twinkle 4s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * 冬・雪：雪が降る
 * ------------------------------------------------------------ */

body.fair-theme-winter .fair-page::after {
  --fair-w-1: 200px;
  --fair-h-1: 200px;
  --fair-w-2: 320px;
  --fair-h-2: 320px;

  opacity: 0.85;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg transform='translate(20 32) rotate(-18) scale(1.0)'%3E%3Ccircle cx='0' cy='0' r='3' fill='%23ffffff'/%3E%3C/g%3E%3Cg transform='translate(116 16) rotate(24) scale(0.75)'%3E%3Ccircle cx='0' cy='0' r='3' fill='%23ffffff'/%3E%3C/g%3E%3Cg transform='translate(64 104) rotate(-35) scale(0.9)'%3E%3Ccircle cx='0' cy='0' r='3' fill='%23dceaf4'/%3E%3C/g%3E%3Cg transform='translate(164 88) rotate(12) scale(0.65)'%3E%3Ccircle cx='0' cy='0' r='3' fill='%23ffffff'/%3E%3C/g%3E%3Cg transform='translate(32 164) rotate(30) scale(0.7)'%3E%3Ccircle cx='0' cy='0' r='3' fill='%23ffffff'/%3E%3C/g%3E%3Cg transform='translate(136 156) rotate(-12) scale(0.85)'%3E%3Ccircle cx='0' cy='0' r='3' fill='%23dceaf4'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg transform='translate(20 32) rotate(-18) scale(1.0)'%3E%3Ccircle cx='0' cy='0' r='3' fill='%23ffffff'/%3E%3C/g%3E%3Cg transform='translate(116 16) rotate(24) scale(0.75)'%3E%3Ccircle cx='0' cy='0' r='3' fill='%23ffffff'/%3E%3C/g%3E%3Cg transform='translate(64 104) rotate(-35) scale(0.9)'%3E%3Ccircle cx='0' cy='0' r='3' fill='%23dceaf4'/%3E%3C/g%3E%3Cg transform='translate(164 88) rotate(12) scale(0.65)'%3E%3Ccircle cx='0' cy='0' r='3' fill='%23ffffff'/%3E%3C/g%3E%3Cg transform='translate(32 164) rotate(30) scale(0.7)'%3E%3Ccircle cx='0' cy='0' r='3' fill='%23ffffff'/%3E%3C/g%3E%3Cg transform='translate(136 156) rotate(-12) scale(0.85)'%3E%3Ccircle cx='0' cy='0' r='3' fill='%23dceaf4'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-fall 18s linear infinite,
    fair-sway-small 11s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * お正月・和：金の紙吹雪が舞う
 * ------------------------------------------------------------ */

body.fair-theme-newyear .fair-page::after {
  --fair-w-1: 190px;
  --fair-h-1: 190px;
  --fair-w-2: 290px;
  --fair-h-2: 290px;

  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190' viewBox='0 0 190 190'%3E%3Cg transform='translate(19 30) rotate(-18) scale(1.0)'%3E%3Crect x='-4' y='-2.5' width='8' height='5' rx='1' fill='%23d4af37'/%3E%3C/g%3E%3Cg transform='translate(110 15) rotate(24) scale(0.75)'%3E%3Crect x='-4' y='-2.5' width='8' height='5' rx='1' fill='%23c1272d'/%3E%3C/g%3E%3Cg transform='translate(61 99) rotate(-35) scale(0.9)'%3E%3Crect x='-4' y='-2.5' width='8' height='5' rx='1' fill='%23e8c96a'/%3E%3C/g%3E%3Cg transform='translate(156 84) rotate(12) scale(0.65)'%3E%3Crect x='-4' y='-2.5' width='8' height='5' rx='1' fill='%23d4af37'/%3E%3C/g%3E%3Cg transform='translate(30 156) rotate(30) scale(0.7)'%3E%3Crect x='-4' y='-2.5' width='8' height='5' rx='1' fill='%23c1272d'/%3E%3C/g%3E%3Cg transform='translate(129 148) rotate(-12) scale(0.85)'%3E%3Crect x='-4' y='-2.5' width='8' height='5' rx='1' fill='%23e8c96a'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190' viewBox='0 0 190 190'%3E%3Cg transform='translate(19 30) rotate(-18) scale(1.0)'%3E%3Crect x='-4' y='-2.5' width='8' height='5' rx='1' fill='%23d4af37'/%3E%3C/g%3E%3Cg transform='translate(110 15) rotate(24) scale(0.75)'%3E%3Crect x='-4' y='-2.5' width='8' height='5' rx='1' fill='%23c1272d'/%3E%3C/g%3E%3Cg transform='translate(61 99) rotate(-35) scale(0.9)'%3E%3Crect x='-4' y='-2.5' width='8' height='5' rx='1' fill='%23e8c96a'/%3E%3C/g%3E%3Cg transform='translate(156 84) rotate(12) scale(0.65)'%3E%3Crect x='-4' y='-2.5' width='8' height='5' rx='1' fill='%23d4af37'/%3E%3C/g%3E%3Cg transform='translate(30 156) rotate(30) scale(0.7)'%3E%3Crect x='-4' y='-2.5' width='8' height='5' rx='1' fill='%23c1272d'/%3E%3C/g%3E%3Cg transform='translate(129 148) rotate(-12) scale(0.85)'%3E%3Crect x='-4' y='-2.5' width='8' height='5' rx='1' fill='%23e8c96a'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-fall 20s linear infinite,
    fair-sway 6s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * スイーツ：キャンディがふわふわ浮かぶ
 * ------------------------------------------------------------ */

body.fair-theme-sweets .fair-page::after {
  --fair-w-1: 210px;
  --fair-h-1: 210px;
  --fair-w-2: 320px;
  --fair-h-2: 320px;

  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='210' viewBox='0 0 210 210'%3E%3Cg transform='translate(21 34) rotate(-18) scale(1.0)'%3E%3Ccircle cx='0' cy='0' r='8' fill='%23f2a0b5'/%3E%3Ccircle cx='-2.5' cy='-2.5' r='2.6' fill='%23ffffff' opacity='0.55'/%3E%3C/g%3E%3Cg transform='translate(122 17) rotate(24) scale(0.75)'%3E%3Ccircle cx='0' cy='0' r='8' fill='%23f6c96a'/%3E%3Ccircle cx='-2.5' cy='-2.5' r='2.6' fill='%23ffffff' opacity='0.55'/%3E%3C/g%3E%3Cg transform='translate(67 109) rotate(-35) scale(0.9)'%3E%3Ccircle cx='0' cy='0' r='8' fill='%239fd3b0'/%3E%3Ccircle cx='-2.5' cy='-2.5' r='2.6' fill='%23ffffff' opacity='0.55'/%3E%3C/g%3E%3Cg transform='translate(172 92) rotate(12) scale(0.65)'%3E%3Ccircle cx='0' cy='0' r='8' fill='%23f2a0b5'/%3E%3Ccircle cx='-2.5' cy='-2.5' r='2.6' fill='%23ffffff' opacity='0.55'/%3E%3C/g%3E%3Cg transform='translate(34 172) rotate(30) scale(0.7)'%3E%3Ccircle cx='0' cy='0' r='8' fill='%23f6c96a'/%3E%3Ccircle cx='-2.5' cy='-2.5' r='2.6' fill='%23ffffff' opacity='0.55'/%3E%3C/g%3E%3Cg transform='translate(143 164) rotate(-12) scale(0.85)'%3E%3Ccircle cx='0' cy='0' r='8' fill='%239fd3b0'/%3E%3Ccircle cx='-2.5' cy='-2.5' r='2.6' fill='%23ffffff' opacity='0.55'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='210' viewBox='0 0 210 210'%3E%3Cg transform='translate(21 34) rotate(-18) scale(1.0)'%3E%3Ccircle cx='0' cy='0' r='8' fill='%23f2a0b5'/%3E%3Ccircle cx='-2.5' cy='-2.5' r='2.6' fill='%23ffffff' opacity='0.55'/%3E%3C/g%3E%3Cg transform='translate(122 17) rotate(24) scale(0.75)'%3E%3Ccircle cx='0' cy='0' r='8' fill='%23f6c96a'/%3E%3Ccircle cx='-2.5' cy='-2.5' r='2.6' fill='%23ffffff' opacity='0.55'/%3E%3C/g%3E%3Cg transform='translate(67 109) rotate(-35) scale(0.9)'%3E%3Ccircle cx='0' cy='0' r='8' fill='%239fd3b0'/%3E%3Ccircle cx='-2.5' cy='-2.5' r='2.6' fill='%23ffffff' opacity='0.55'/%3E%3C/g%3E%3Cg transform='translate(172 92) rotate(12) scale(0.65)'%3E%3Ccircle cx='0' cy='0' r='8' fill='%23f2a0b5'/%3E%3Ccircle cx='-2.5' cy='-2.5' r='2.6' fill='%23ffffff' opacity='0.55'/%3E%3C/g%3E%3Cg transform='translate(34 172) rotate(30) scale(0.7)'%3E%3Ccircle cx='0' cy='0' r='8' fill='%23f6c96a'/%3E%3Ccircle cx='-2.5' cy='-2.5' r='2.6' fill='%23ffffff' opacity='0.55'/%3E%3C/g%3E%3Cg transform='translate(143 164) rotate(-12) scale(0.85)'%3E%3Ccircle cx='0' cy='0' r='8' fill='%239fd3b0'/%3E%3Ccircle cx='-2.5' cy='-2.5' r='2.6' fill='%23ffffff' opacity='0.55'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-rise 32s linear infinite,
    fair-sway-small 10s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * ゆめかわ・ファンシー：星と雲がゆっくり流れる
 * ------------------------------------------------------------ */

body.fair-theme-yumekawa .fair-page::after {
  --fair-w-1: 200px;
  --fair-h-1: 200px;
  --fair-w-2: 300px;
  --fair-h-2: 300px;

  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg transform='translate(20 32) rotate(-18) scale(1.0)'%3E%3Cpath d='M0 -10L2.4 -3L9.5 -3L3.8 1.2L6 8L0 4L-6 8L-3.8 1.2L-9.5 -3L-2.4 -3Z' fill='%23ffd9f0'/%3E%3C/g%3E%3Cg transform='translate(116 16) rotate(24) scale(0.75)'%3E%3Cpath d='M0 -10L2.4 -3L9.5 -3L3.8 1.2L6 8L0 4L-6 8L-3.8 1.2L-9.5 -3L-2.4 -3Z' fill='%23c9b6f5'/%3E%3C/g%3E%3Cg transform='translate(64 104) rotate(-35) scale(0.9)'%3E%3Cpath d='M0 -10L2.4 -3L9.5 -3L3.8 1.2L6 8L0 4L-6 8L-3.8 1.2L-9.5 -3L-2.4 -3Z' fill='%23fff0a8'/%3E%3C/g%3E%3Cg transform='translate(164 88) rotate(12) scale(0.65)'%3E%3Cpath d='M0 -10L2.4 -3L9.5 -3L3.8 1.2L6 8L0 4L-6 8L-3.8 1.2L-9.5 -3L-2.4 -3Z' fill='%23ffd9f0'/%3E%3C/g%3E%3Cg transform='translate(32 164) rotate(30) scale(0.7)'%3E%3Cpath d='M0 -10L2.4 -3L9.5 -3L3.8 1.2L6 8L0 4L-6 8L-3.8 1.2L-9.5 -3L-2.4 -3Z' fill='%23c9b6f5'/%3E%3C/g%3E%3Cg transform='translate(136 156) rotate(-12) scale(0.85)'%3E%3Cpath d='M0 -10L2.4 -3L9.5 -3L3.8 1.2L6 8L0 4L-6 8L-3.8 1.2L-9.5 -3L-2.4 -3Z' fill='%23fff0a8'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg transform='translate(20 32) rotate(-18) scale(1.0)'%3E%3Cpath d='M0 -10L2.4 -3L9.5 -3L3.8 1.2L6 8L0 4L-6 8L-3.8 1.2L-9.5 -3L-2.4 -3Z' fill='%23ffd9f0'/%3E%3C/g%3E%3Cg transform='translate(116 16) rotate(24) scale(0.75)'%3E%3Cpath d='M0 -10L2.4 -3L9.5 -3L3.8 1.2L6 8L0 4L-6 8L-3.8 1.2L-9.5 -3L-2.4 -3Z' fill='%23c9b6f5'/%3E%3C/g%3E%3Cg transform='translate(64 104) rotate(-35) scale(0.9)'%3E%3Cpath d='M0 -10L2.4 -3L9.5 -3L3.8 1.2L6 8L0 4L-6 8L-3.8 1.2L-9.5 -3L-2.4 -3Z' fill='%23fff0a8'/%3E%3C/g%3E%3Cg transform='translate(164 88) rotate(12) scale(0.65)'%3E%3Cpath d='M0 -10L2.4 -3L9.5 -3L3.8 1.2L6 8L0 4L-6 8L-3.8 1.2L-9.5 -3L-2.4 -3Z' fill='%23ffd9f0'/%3E%3C/g%3E%3Cg transform='translate(32 164) rotate(30) scale(0.7)'%3E%3Cpath d='M0 -10L2.4 -3L9.5 -3L3.8 1.2L6 8L0 4L-6 8L-3.8 1.2L-9.5 -3L-2.4 -3Z' fill='%23c9b6f5'/%3E%3C/g%3E%3Cg transform='translate(136 156) rotate(-12) scale(0.85)'%3E%3Cpath d='M0 -10L2.4 -3L9.5 -3L3.8 1.2L6 8L0 4L-6 8L-3.8 1.2L-9.5 -3L-2.4 -3Z' fill='%23fff0a8'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-drift 40s linear infinite,
    fair-bob 9s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * スチームパンク：歯車がゆっくり流れる
 * ------------------------------------------------------------ */

body.fair-theme-steampunk .fair-page::after {
  --fair-w-1: 230px;
  --fair-h-1: 230px;
  --fair-w-2: 350px;
  --fair-h-2: 350px;

  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='230' height='230' viewBox='0 0 230 230'%3E%3Cg transform='translate(23 37) rotate(-18) scale(1.0)'%3E%3Ccircle cx='0' cy='0' r='8' fill='none' stroke='%23c99a3f' stroke-width='3'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(0 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(45 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(90 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(135 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(180 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(225 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(270 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(315 0.0 -10.5)'/%3E%3C/g%3E%3Cg transform='translate(133 18) rotate(24) scale(0.75)'%3E%3Ccircle cx='0' cy='0' r='8' fill='none' stroke='%238a6508' stroke-width='3'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(0 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(45 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(90 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(135 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(180 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(225 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(270 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(315 0.0 -10.5)'/%3E%3C/g%3E%3Cg transform='translate(74 120) rotate(-35) scale(0.9)'%3E%3Ccircle cx='0' cy='0' r='8' fill='none' stroke='%23c99a3f' stroke-width='3'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(0 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(45 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(90 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(135 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(180 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(225 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(270 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(315 0.0 -10.5)'/%3E%3C/g%3E%3Cg transform='translate(189 101) rotate(12) scale(0.65)'%3E%3Ccircle cx='0' cy='0' r='8' fill='none' stroke='%236d5138' stroke-width='3'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(0 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(45 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(90 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(135 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(180 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(225 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(270 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(315 0.0 -10.5)'/%3E%3C/g%3E%3Cg transform='translate(37 189) rotate(30) scale(0.7)'%3E%3Ccircle cx='0' cy='0' r='8' fill='none' stroke='%238a6508' stroke-width='3'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(0 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(45 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(90 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(135 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(180 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(225 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(270 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(315 0.0 -10.5)'/%3E%3C/g%3E%3Cg transform='translate(156 179) rotate(-12) scale(0.85)'%3E%3Ccircle cx='0' cy='0' r='8' fill='none' stroke='%23c99a3f' stroke-width='3'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(0 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(45 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(90 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(135 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(180 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(225 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(270 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(315 0.0 -10.5)'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='230' height='230' viewBox='0 0 230 230'%3E%3Cg transform='translate(23 37) rotate(-18) scale(1.0)'%3E%3Ccircle cx='0' cy='0' r='8' fill='none' stroke='%23c99a3f' stroke-width='3'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(0 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(45 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(90 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(135 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(180 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(225 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(270 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(315 0.0 -10.5)'/%3E%3C/g%3E%3Cg transform='translate(133 18) rotate(24) scale(0.75)'%3E%3Ccircle cx='0' cy='0' r='8' fill='none' stroke='%238a6508' stroke-width='3'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(0 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(45 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(90 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(135 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(180 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(225 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(270 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(315 0.0 -10.5)'/%3E%3C/g%3E%3Cg transform='translate(74 120) rotate(-35) scale(0.9)'%3E%3Ccircle cx='0' cy='0' r='8' fill='none' stroke='%23c99a3f' stroke-width='3'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(0 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(45 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(90 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(135 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(180 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(225 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(270 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(315 0.0 -10.5)'/%3E%3C/g%3E%3Cg transform='translate(189 101) rotate(12) scale(0.65)'%3E%3Ccircle cx='0' cy='0' r='8' fill='none' stroke='%236d5138' stroke-width='3'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(0 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(45 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(90 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(135 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(180 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(225 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(270 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%236d5138' transform='rotate(315 0.0 -10.5)'/%3E%3C/g%3E%3Cg transform='translate(37 189) rotate(30) scale(0.7)'%3E%3Ccircle cx='0' cy='0' r='8' fill='none' stroke='%238a6508' stroke-width='3'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(0 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(45 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(90 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(135 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(180 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(225 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(270 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%238a6508' transform='rotate(315 0.0 -10.5)'/%3E%3C/g%3E%3Cg transform='translate(156 179) rotate(-12) scale(0.85)'%3E%3Ccircle cx='0' cy='0' r='8' fill='none' stroke='%23c99a3f' stroke-width='3'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(0 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(45 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(90 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(135 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(180 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(225 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(270 0.0 -10.5)'/%3E%3Crect x='-1.8' y='-13' width='3.6' height='5' rx='0' fill='%23c99a3f' transform='rotate(315 0.0 -10.5)'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-drift 60s linear infinite,
    fair-bob 14s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * バラエティ（汎用）：泡がふわふわ浮かぶ
 * ------------------------------------------------------------ */

body.fair-theme-variety .fair-page::after {
  --fair-w-1: 200px;
  --fair-h-1: 200px;
  --fair-w-2: 300px;
  --fair-h-2: 300px;

  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg transform='translate(20 32) rotate(-18) scale(1.0)'%3E%3Ccircle cx='0' cy='0' r='9' fill='none' stroke='%23f0a97e' stroke-width='1.6' opacity='0.9'/%3E%3Ccircle cx='-3' cy='-3' r='2' fill='%23f0a97e' opacity='0.5'/%3E%3C/g%3E%3Cg transform='translate(116 16) rotate(24) scale(0.75)'%3E%3Ccircle cx='0' cy='0' r='9' fill='none' stroke='%23f7cfae' stroke-width='1.6' opacity='0.9'/%3E%3Ccircle cx='-3' cy='-3' r='2' fill='%23f7cfae' opacity='0.5'/%3E%3C/g%3E%3Cg transform='translate(64 104) rotate(-35) scale(0.9)'%3E%3Ccircle cx='0' cy='0' r='9' fill='none' stroke='%23f0a97e' stroke-width='1.6' opacity='0.9'/%3E%3Ccircle cx='-3' cy='-3' r='2' fill='%23f0a97e' opacity='0.5'/%3E%3C/g%3E%3Cg transform='translate(164 88) rotate(12) scale(0.65)'%3E%3Ccircle cx='0' cy='0' r='9' fill='none' stroke='%23ffffff' stroke-width='1.6' opacity='0.9'/%3E%3Ccircle cx='-3' cy='-3' r='2' fill='%23ffffff' opacity='0.5'/%3E%3C/g%3E%3Cg transform='translate(32 164) rotate(30) scale(0.7)'%3E%3Ccircle cx='0' cy='0' r='9' fill='none' stroke='%23f7cfae' stroke-width='1.6' opacity='0.9'/%3E%3Ccircle cx='-3' cy='-3' r='2' fill='%23f7cfae' opacity='0.5'/%3E%3C/g%3E%3Cg transform='translate(136 156) rotate(-12) scale(0.85)'%3E%3Ccircle cx='0' cy='0' r='9' fill='none' stroke='%23f0a97e' stroke-width='1.6' opacity='0.9'/%3E%3Ccircle cx='-3' cy='-3' r='2' fill='%23f0a97e' opacity='0.5'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg transform='translate(20 32) rotate(-18) scale(1.0)'%3E%3Ccircle cx='0' cy='0' r='9' fill='none' stroke='%23f0a97e' stroke-width='1.6' opacity='0.9'/%3E%3Ccircle cx='-3' cy='-3' r='2' fill='%23f0a97e' opacity='0.5'/%3E%3C/g%3E%3Cg transform='translate(116 16) rotate(24) scale(0.75)'%3E%3Ccircle cx='0' cy='0' r='9' fill='none' stroke='%23f7cfae' stroke-width='1.6' opacity='0.9'/%3E%3Ccircle cx='-3' cy='-3' r='2' fill='%23f7cfae' opacity='0.5'/%3E%3C/g%3E%3Cg transform='translate(64 104) rotate(-35) scale(0.9)'%3E%3Ccircle cx='0' cy='0' r='9' fill='none' stroke='%23f0a97e' stroke-width='1.6' opacity='0.9'/%3E%3Ccircle cx='-3' cy='-3' r='2' fill='%23f0a97e' opacity='0.5'/%3E%3C/g%3E%3Cg transform='translate(164 88) rotate(12) scale(0.65)'%3E%3Ccircle cx='0' cy='0' r='9' fill='none' stroke='%23ffffff' stroke-width='1.6' opacity='0.9'/%3E%3Ccircle cx='-3' cy='-3' r='2' fill='%23ffffff' opacity='0.5'/%3E%3C/g%3E%3Cg transform='translate(32 164) rotate(30) scale(0.7)'%3E%3Ccircle cx='0' cy='0' r='9' fill='none' stroke='%23f7cfae' stroke-width='1.6' opacity='0.9'/%3E%3Ccircle cx='-3' cy='-3' r='2' fill='%23f7cfae' opacity='0.5'/%3E%3C/g%3E%3Cg transform='translate(136 156) rotate(-12) scale(0.85)'%3E%3Ccircle cx='0' cy='0' r='9' fill='none' stroke='%23f0a97e' stroke-width='1.6' opacity='0.9'/%3E%3Ccircle cx='-3' cy='-3' r='2' fill='%23f0a97e' opacity='0.5'/%3E%3C/g%3E%3C/svg%3E");
  animation:
    fair-rise 36s linear infinite,
    fair-sway-small 12s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------
 * 動きの定義（共通）
 *
 * 移動量はタイルの大きさの2枚ぶん。端数にすると、
 * 1周したときに柄が飛んで見える。
 * ------------------------------------------------------------ */

@keyframes fair-fall {
  from {
    background-position: 0 calc(var(--fair-h-1) * -2), var(--fair-offset-2) calc(var(--fair-h-2) * -2);
  }

  to {
    background-position: 0 calc(var(--fair-h-1) * 2), var(--fair-offset-2) calc(var(--fair-h-2) * 2);
  }
}

@keyframes fair-rise {
  from {
    background-position: 0 calc(var(--fair-h-1) * 2), var(--fair-offset-2) calc(var(--fair-h-2) * 2);
  }

  to {
    background-position: 0 calc(var(--fair-h-1) * -2), var(--fair-offset-2) calc(var(--fair-h-2) * -2);
  }
}

/* 2枚を左右反対方向へ流し、すれ違わせる */
@keyframes fair-drift {
  from {
    background-position: calc(var(--fair-w-1) * -2) 0, calc(var(--fair-w-2) * 2) var(--fair-offset-2);
  }

  to {
    background-position: calc(var(--fair-w-1) * 2) 0, calc(var(--fair-w-2) * -2) var(--fair-offset-2);
  }
}

@keyframes fair-sway {
  from {
    transform: translateX(-16px);
  }

  to {
    transform: translateX(16px);
  }
}

@keyframes fair-sway-small {
  from {
    transform: translateX(-8px);
  }

  to {
    transform: translateX(8px);
  }
}

@keyframes fair-bob {
  from {
    transform: translateY(-6px);
  }

  to {
    transform: translateY(6px);
  }
}

@keyframes fair-twinkle {
  from {
    opacity: var(--fair-fx-min);
  }

  to {
    opacity: var(--fair-fx-max);
  }
}

@keyframes fair-bloom-bud {
  from {
    opacity: 0.75;
  }

  to {
    opacity: 0;
  }
}

@keyframes fair-bloom-open {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.6;
  }
}

/* ------------------------------------------------------------
 * 動きを減らす設定の利用者には、すべて静止した背景として見せる
 *
 * 桜だけは、止めると咲く前のつぼみで固まってしまうので、
 * 咲いた状態を初期値にする。
 * ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .fair-page::before,
  .fair-page::after {
    animation: none;
    transform: none;
  }

  body.fair-theme-sakura .fair-page::before {
    opacity: 0;
  }

  body.fair-theme-sakura .fair-page::after {
    opacity: 0.6;
  }
}

/* ------------------------------------------------------------
 * 投稿タイトル（フェアテンプレート）
 *
 * フェアではタイトルをメインビジュアルの画像が担うため、
 * 画面には出さない。ただし要素ごと消すと、ページの見出しが
 * セクションの h2 から始まってしまい、検索エンジンと
 * 読み上げソフトの両方で構造が崩れる。
 * そのため h1 は残したまま、目に見えない形で置いている。
 * ------------------------------------------------------------ */

.fair-title-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
