@charset "UTF-8";

/*
 * クリスマスおもちゃ特集2026（#675）
 *
 * カンプ: Figma kgIOFqh47Z69icFHCyLVWR
 *   SP 44:8419（384 幅）／PC 44:694（1440 幅。中央に SP と同じ 384 幅の列、左右は画面に固定）
 *
 * ■ 単位は --x-r / --x-s（どちらも 1 = カンプの 12px。既定はサイト共通の 1rem と同じ）
 *   カンプの px を 12 で割った数を calc(N * var(--x-r)) の形で書く。html の rem を直接
 *   使わないのは、1440px より広い画面でこのページだけ拡大するため（末尾の指定を参照）。
 *   固定ヘッダーの高さ（6.8333rem）だけは、ヘッダーに合わせて素の rem のまま。
 *
 * ■ このCSSは新レイアウト（Header / Footer）と同じ文書に読み込まれる。
 *   セレクタは #xmas2026 配下に閉じる（素の * や body は書かない）。
 */

#xmas2026 {
  --x-red: #b81113;
  --x-gold: #c87f3d;
  --x-base: #f5eee5;
  --x-black: #262626;
  --x-font-body: var(--font-corp, 'dnp-shuei-gothic-kin-std', sans-serif);
  --x-font-display: var(--font-product, 'MFW-PPuhuPicnicMin2-H', sans-serif);
  /* このページの寸法の単位。サイト共通の rem（1rem = カンプの 12px）と同じ意味だが、
     ヘッダー・フッターを巻き込まずにこのページだけ拡大・縮小できるよう変数にしてある。
     --x-r: 中央の列、--x-s: PC の左右の飾り・右ナビ・街並み（下の PC 用の指定を参照） */
  --x-r: 1rem;
  --x-s: 1rem;
  --x-d: 0rem;
  --x-gold-line: linear-gradient(
    90deg,
    #d3a96c 0%,
    #fbf2a4 9%,
    #996633 23%,
    #d3aa6c 33%,
    #fff4a9 47%,
    #ecd58f 65%,
    #e0c07e 77%,
    #d0a267 85%,
    #a37949 92%,
    #e1c180 100%
  );

  position: relative;
  background-color: var(--x-base);
  color: var(--x-black);
  font-family: var(--x-font-body);
  font-size: calc(1 * var(--x-r));
  font-weight: 500;
  line-height: 1.5;
}

#xmas2026 *,
#xmas2026 *::before,
#xmas2026 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#xmas2026 ul {
  list-style: none;
}

#xmas2026 a {
  color: inherit;
  text-decoration: none;
}

#xmas2026 img {
  display: block;
  max-width: none;
}

/* ページ内リンクは滑らかに。着地点は固定ヘッダー（SP 60px / PC 82px）のぶん下げる */
html:has(#xmas2026) {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* パンくずはカンプどおり中央の列の中に置く（.x-crumb）。レイアウト側のものは出さない */
main:has(#xmas2026) nav[aria-label='パンくずリスト'] {
  display: none;
}

/* ---------- モーション（Figma motion: 2.4 秒ループ） ---------- */

@keyframes x-blink {
  0%,
  14.583% {
    opacity: 1;
    animation-timing-function: ease-in-out;
  }
  20.833%,
  31.25% {
    opacity: 0;
    animation-timing-function: ease-in-out;
  }
  41.667%,
  56.25% {
    opacity: 1;
    animation-timing-function: ease-in-out;
  }
  62.5%,
  72.917% {
    opacity: 0;
    animation-timing-function: ease-in-out;
  }
  83.333%,
  100% {
    opacity: 1;
  }
}

@keyframes x-float {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(calc(-0.125 * var(--x-r)));
  }
  75% {
    transform: translateY(calc(0.125 * var(--x-r)));
  }
}

@keyframes x-sway-a {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

@keyframes x-sway-b {
  0%,
  6.25%,
  100% {
    transform: rotate(0);
  }
  31.25% {
    transform: rotate(-6deg);
  }
  75% {
    transform: rotate(6deg);
  }
}

@keyframes x-sway-c {
  0%,
  12.5%,
  100% {
    transform: rotate(0);
  }
  37.5% {
    transform: rotate(6deg);
  }
  79.167% {
    transform: rotate(-6deg);
  }
}

#xmas2026 .x-blink {
  animation: x-blink 2.4s linear infinite;
}

#xmas2026 .x-float {
  animation: x-float 2.4s ease-in-out infinite;
}

#xmas2026 .x-sway-a {
  animation: x-sway-a 2.4s ease-in-out infinite;
}

#xmas2026 .x-sway-b {
  animation: x-sway-b 2.4s ease-in-out infinite;
}

#xmas2026 .x-sway-c {
  animation: x-sway-c 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html:has(#xmas2026) {
    scroll-behavior: auto;
  }

  #xmas2026 .x-blink,
  #xmas2026 .x-float,
  #xmas2026 .x-sway-a,
  #xmas2026 .x-sway-b,
  #xmas2026 .x-sway-c {
    animation: none;
  }
}

/* ---------- 紙の質感（乗算・不透明度 10%） ---------- */

#xmas2026 .x-paper,
#xmas2026 .x-stage__paper {
  position: absolute;
  inset: 0;
  background: url('../img/paper_texture.webp') 0 0 / calc(39.1667 * var(--x-s)) auto repeat;
  mix-blend-mode: multiply;
  opacity: 0.1;
  pointer-events: none;
}

/* ---------- 中央の列 ---------- */

#xmas2026 .x-col {
  position: relative;
  z-index: 1;
  width: calc(32 * var(--x-r));
  max-width: 100%;
  margin: 0 auto;
  /* 特設共通の保険CSS（末尾要素の padding-bottom）を受けない */
  padding: 0;
  background-color: var(--x-base);
}

#xmas2026 .x-col__in {
  width: calc(32 * var(--x-r));
  max-width: 100%;
}

/* ---------- パンくず ---------- */

main:has(#xmas2026) {
  background-color: #fff;
}

html:has(#xmas2026) header {
  background-color: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(0.75rem);
}

#xmas2026 .x-crumb {
  display: flex;
  align-items: center;
  gap: calc(1 * var(--x-r));
  height: calc(3.6667 * var(--x-r));
  padding: 0 calc(2 * var(--x-r));
  background-color: #f5eee5;
  color: var(--x-red);
  font-size: calc(1 * var(--x-r));
  line-height: calc(1.6667 * var(--x-r));
  letter-spacing: -0.04em;
  white-space: nowrap;
}

#xmas2026 .x-crumb a {
  text-decoration: underline;
}

#xmas2026 .x-crumb img {
  width: calc(1 * var(--x-r));
  height: calc(1 * var(--x-r));
}

/* ---------- ファーストビュー（384 × 1314） ---------- */

#xmas2026 .x-fv {
  position: relative;
  height: calc(109.5 * var(--x-r));
  overflow: hidden;
  background-color: #f7f0e8;
}

/* 絵は層に分けて重ねる（下から: 幕の奥の飾り / 赤い幕 / 飾りとタイトル / 動く線と文字 /
   紹介文 / 電飾 / 手前の星）。
   影・光彩・合成は SVG の中ではなく CSS で掛ける。SVG を <img> で読むと、iOS Safari は
   filter や mix-blend-mode を正しく描かず、赤い幕が出ない・絵が粗くなることがあった。 */
#xmas2026 .x-fv__art img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

/* 赤い幕。縁の影（カンプ: 上へ 3px・ぼかし・#cabaa6） */
#xmas2026 .x-fv__art .x-fv__back {
  filter: drop-shadow(0 calc(-0.25 * var(--x-r)) calc(0.6667 * var(--x-r)) #cabaa6);
}

/* 「クリスマスプレゼントに…」の白い光彩 */
#xmas2026 .x-fv__art .x-fv__intro {
  filter: drop-shadow(0 0 calc(0.8333 * var(--x-r)) rgba(255, 255, 255, 0.55));
}

/* 電飾は黒地の画像をスクリーンで重ねる（黒は消え、光だけが幕に乗る）。幕の上端 = 481 */
#xmas2026 .x-fv__art .x-fv__lights {
  top: calc(40.0833 * var(--x-r));
  mix-blend-mode: screen;
}

#xmas2026 .x-cats {
  position: absolute;
  top: calc(61.3333 * var(--x-r));
  left: calc(2 * var(--x-r));
  width: calc(28 * var(--x-r));
}

#xmas2026 .x-cats ul {
  display: flex;
  flex-direction: column;
  gap: calc(1 * var(--x-r));
}

/* カテゴリボタン（Figma 768:68779 の各「search」。336 × 80）。
   丸・イラスト・ラベル・「さがす」・金の縁まで、ボタン 1 つを丸ごと Figma から書き出した画像。
   Web フォントが読み込まれない環境でも、文字の形と位置がカンプからずれない。
   金の縁（3px）はボタンの外周に 1.5px はみ出すので、画像は 339 × 83 */
#xmas2026 .x-cat {
  display: block;
  position: relative;
  height: calc(6.6667 * var(--x-r));
  transition: opacity 0.2s;
}

#xmas2026 .x-cat img {
  position: absolute;
  top: calc(-0.125 * var(--x-r));
  left: calc(-0.125 * var(--x-r));
  width: calc(28.25 * var(--x-r));
  max-width: none;
  height: calc(6.9167 * var(--x-r));
  /* 4 倍の画像で書き出したボタンは四隅に下地の色が入るので、縁の外周（半径 17.5）で切る */
  border-radius: calc(1.4583 * var(--x-r));
}

#xmas2026 .x-cat:hover,
#xmas2026 .x-side__btn:hover,
#xmas2026 .x-btn:hover,
#xmas2026 .x-card:hover,
#xmas2026 .x-banner:hover {
  opacity: 0.8;
}

#xmas2026 :is(.x-cat, .x-side__btn, .x-btn, .x-link, .x-side__other, .x-card, .x-banner, .x-crumb a):focus-visible {
  outline: 2px solid var(--x-gold);
  outline-offset: 2px;
}

/* ---------- 商品セクション ---------- */

#xmas2026 .x-sec,
#xmas2026 .x-end {
  position: relative;
  padding: calc(6.3333 * var(--x-r)) calc(2 * var(--x-r)) calc(3 * var(--x-r));
  background-color: var(--x-bg);
}

/* 区切りの波（高さ 40）。前のセクションの色を、波形に抜いて上端へ敷く */
#xmas2026 .x-sec::before,
#xmas2026 .x-end::before {
  content: '';
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: calc(3.4167 * var(--x-r));
  background-color: var(--x-prev);
  -webkit-mask: url('../img/wave_top.svg') center / 100% 100% no-repeat;
  mask: url('../img/wave_top.svg') center / 100% 100% no-repeat;
}

#xmas2026 .x-sec--anpanman {
  --x-bg: #fff8ec;
  --x-prev: #b81113;
}

#xmas2026 .x-sec--sanrio {
  --x-bg: #ffefee;
  --x-prev: #fff8ec;
}

#xmas2026 .x-sec--hyojo {
  --x-bg: #e9f8ff;
  --x-prev: #ffefee;
}

#xmas2026 .x-sec--award {
  --x-bg: #ffe3be;
  --x-prev: #e9f8ff;
}

/* 見出し（333 × 127。左右の点線の弧・RECOMMEND・リボンは1枚の飾り） */
#xmas2026 .x-sec__title {
  width: calc(27.8333 * var(--x-r));
  height: calc(10.6667 * var(--x-r));
  margin: 0 auto;
  padding-top: calc(2.35 * var(--x-r));
  background: url('../img/section/title_deco.svg') center top / calc(27.8333 * var(--x-r)) calc(10.6667 * var(--x-r)) no-repeat;
  color: var(--x-red);
  font-family: var(--x-font-display);
  font-size: calc(2 * var(--x-r));
  font-weight: 800;
  line-height: calc(2.5 * var(--x-r));
  letter-spacing: -0.04em;
  text-align: center;
}

#xmas2026 .x-sec__title span {
  display: block;
  white-space: nowrap;
}

#xmas2026 .x-grid {
  display: grid;
  grid-template-columns: repeat(2, calc(13.5 * var(--x-r)));
  gap: calc(3 * var(--x-r)) calc(1 * var(--x-r));
  margin-top: calc(4.95 * var(--x-r));
}

#xmas2026 .x-card {
  display: flex;
  flex-direction: column;
  gap: calc(0.6667 * var(--x-r));
  transition: opacity 0.2s;
}

#xmas2026 .x-card__thumb {
  display: block;
  position: relative;
  width: calc(13.5 * var(--x-r));
  height: calc(13.5 * var(--x-r));
  overflow: hidden;
  border-radius: calc(1.4792 * var(--x-r));
  background-color: #fff;
}

/* 枠線（カンプは 4px・内側）。border だと 3.9996px が整数 px に切り捨てられて 3px に
   なり、カンプより細くなる（Retina では 3.5px）。端数のまま描ける inset の影で描く。
   画像は枠の外縁を基準に置くので、枠の太さが丸められても位置がずれない。 */
#xmas2026 .x-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 calc(0.3333 * var(--x-r)) var(--x-red);
  pointer-events: none;
}

/* 位置と大きさは商品ごとにカンプの値を style 属性で持つ（snapshot.html）。
   left / top はサムネイル枠の外縁からの距離（Figma の矩形の位置そのまま） */
#xmas2026 .x-card__thumb img {
  position: absolute;
  object-fit: cover;
}

#xmas2026 .x-card__badges {
  display: flex;
  gap: calc(0.5558 * var(--x-r));
  height: calc(4 * var(--x-r));
}

/* 書き出しは影のぶん上下左右 1.5px 広い（51 × 51）。枠が 48 × 48 に重なるよう外へ逃がす */
#xmas2026 .x-card__badges img {
  width: calc(4.25 * var(--x-r));
  height: calc(4.25 * var(--x-r));
  margin: calc(-0.125 * var(--x-r));
  /* 影は CSS で掛ける（SVG のフィルタは iOS Safari で絵が粗くなる） */
  filter: drop-shadow(calc(0.1108 * var(--x-r)) calc(0.1108 * var(--x-r)) calc(0.1108 * var(--x-r)) #c4ab82);
}

#xmas2026 .x-card__name {
  display: -webkit-box;
  height: calc(3 * var(--x-r));
  overflow: hidden;
  font-size: calc(1 * var(--x-r));
  line-height: calc(1.5 * var(--x-r));
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

#xmas2026 .x-card__meta {
  display: flex;
  flex-direction: column;
  gap: calc(0.25 * var(--x-r));
}

#xmas2026 .x-card__row {
  display: flex;
  gap: calc(0.6667 * var(--x-r));
  font-size: calc(1 * var(--x-r));
  line-height: calc(1.5 * var(--x-r));
  white-space: nowrap;
}

#xmas2026 .x-card__tag {
  flex: none;
  width: calc(4.6667 * var(--x-r));
  border-radius: calc(0.3333 * var(--x-r));
  background-color: var(--x-gold);
  color: #fff;
  text-align: center;
}

#xmas2026 .x-sec__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(1 * var(--x-r));
  margin-top: calc(5 * var(--x-r));
}

#xmas2026 .x-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(28 * var(--x-r));
  height: calc(6 * var(--x-r));
  padding: calc(1 * var(--x-r)) calc(2 * var(--x-r));
  border-radius: calc(8.3333 * var(--x-r));
  background-color: var(--x-red);
  color: #fff;
  font-family: var(--x-font-display);
  font-size: calc(1.5 * var(--x-r));
  font-weight: 800;
  line-height: calc(1.5 * var(--x-r));
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.2s;
}

#xmas2026 .x-link,
#xmas2026 .x-side__other {
  display: flex;
  align-items: center;
  height: calc(2 * var(--x-s));
  border-bottom: 1px solid var(--x-gold);
  color: var(--x-gold);
  font-size: calc(1 * var(--x-s));
  line-height: calc(1.6667 * var(--x-s));
  letter-spacing: -0.04em;
  white-space: nowrap;
}

#xmas2026 .x-link img,
#xmas2026 .x-side__other img {
  width: calc(1.0625 * var(--x-s));
  height: calc(1.125 * var(--x-s));
  margin: 0 calc(0.1875 * var(--x-s)) 0 calc(0.25 * var(--x-s));
}

/* 締めの3連アイコン（プレゼント・サンタ帽・くつ下。それぞれ揺れる） */
#xmas2026 .x-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(2.6667 * var(--x-r));
  height: calc(5.9525 * var(--x-r));
  margin-top: calc(5 * var(--x-r));
}

#xmas2026 .x-icons img {
  width: calc(3.3333 * var(--x-r));
  height: auto;
}

/* ---------- 末尾（バナー・権利表記） ---------- */

#xmas2026 .x-end {
  --x-bg: var(--x-base);
  --x-prev: #ffe3be;
  padding-bottom: 0;
}

#xmas2026 .x-banner {
  display: block;
  position: relative;
  z-index: 1;
  width: calc(28 * var(--x-r));
  height: calc(9.3333 * var(--x-r));
  transition: opacity 0.2s;
}

#xmas2026 .x-banner img {
  width: 100%;
  height: 100%;
}

#xmas2026 .x-copy {
  position: relative;
  z-index: 1;
  padding: calc(4 * var(--x-r)) 0 calc(0.5 * var(--x-r));
  color: #5d5d5d;
  font-size: calc(0.75 * var(--x-r));
  line-height: calc(1 * var(--x-r));
  letter-spacing: -0.04em;
  text-align: justify;
}

/* SP の末尾に並ぶ街並み（Figma 771:8650。384 × 137 を SVG で書き出したもの。PC は画面下に固定された .x-stage__town が受け持つ） */
#xmas2026 .x-end__town {
  display: block;
  position: relative;
  height: calc(11.4167 * var(--x-r));
  margin: 0 calc(-2 * var(--x-r));
  background: url('../img/end_town.svg') 0 0 / 100% 100% no-repeat;
}

/* ---------- PC の固定レイヤー ---------- */

#xmas2026 .x-stage {
  display: none;
}

@media (min-width: 769px) {
  html:has(#xmas2026) {
    scroll-padding-top: 6.8333rem;
  }

  /* 左右の飾り・右ナビ・街並みの単位（--x-s）。カンプの見える範囲（ヘッダーの下 728px）が
     画面の高さに収まらないときは、比率を保ったまま縮める。そうしないと高さ 800px 以下で
     右ナビが、700px 以下で左のイラストが街並みに重なる。下限は半分の大きさ。
     --x-d は、縮めたぶん左右の飾りを中央の列の端へ寄せ直すずらし量（列の半幅 192px の差） */
  #xmas2026 {
    --x-s: max(0.5rem, min(var(--x-r), calc((100vh - 6.8333rem) / 60.6667)));
    --x-d: calc(16 * (var(--x-r) - var(--x-s)));
  }

  /* 列の左右に落ちる影（カンプ: 左右 10px ずらし・ぼかし 20・乗算） */
  #xmas2026 .x-col::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    box-shadow:
      calc(-0.8333 * var(--x-r)) 0 calc(1.6667 * var(--x-r)) #cfc1ae,
      calc(0.8333 * var(--x-r)) 0 calc(1.6667 * var(--x-r)) #cfc1ae;
    mix-blend-mode: multiply;
    pointer-events: none;
  }

  #xmas2026 .x-end {
    padding-bottom: calc(1 * var(--x-r));
  }

  /* 末尾の街並みは SP 専用。PC は画面下に貼り付く .x-stage__town が、ページの終わりで
     列と一緒に持ち上がってフッターの上に残る。ここでも出すと二重に重なる */
  #xmas2026 .x-end__town {
    display: none;
  }

  /* PC 中央列はカンプどおり 32rem（384px）。列の中身は SP と同じ寸法。 */
  #xmas2026 .x-col {
    /* 固定レイヤー（.x-stage）の高さぶん引き上げて、その上に重ねる */
    margin-top: calc(6.8333rem - 100vh);
  }

  /* 画面に貼り付く層。固定ヘッダー（82px）の下から画面の下端までを占める。
     ページの終わり（フッター手前）まで来たら、列と一緒に持ち上がる。

     ⚠️ この層自身に負の margin を付けないこと。sticky は「margin を含めた箱」が親の中に
     収まるあいだ貼り付くので、margin-bottom: -100vh にすると箱の下端が上端と同じ位置に
     なり、フッターが出ても持ち上がらなくなる（2026-11-19 に実際に起きた）。
     重ねるための引き上げは、後ろに続く .x-col の margin-top で行う。 */
  #xmas2026 .x-stage {
    display: block;
    position: sticky;
    top: 6.8333rem;
    z-index: 0;
    height: calc(100vh - 6.8333rem);
    overflow: hidden;
    pointer-events: none;
  }

  #xmas2026 .x-stage__deco {
    position: absolute;
    inset: 0;
  }

  #xmas2026 .x-stage__paper {
    background-size: calc(73.3333 * var(--x-s)) auto;
  }

  /* カンプの 1440 × 800 の座標系（上 72 がヘッダー、その下 728 が見える範囲）。
     見える範囲を、この層（ヘッダーの下〜画面下端）の上下中央に置く。 */
  #xmas2026 .x-stage__in {
    position: absolute;
    top: max(calc(-6 * var(--x-s)), calc((100vh - 6.8333rem - calc(60.6667 * var(--x-s))) / 2 - calc(6 * var(--x-s))));
    left: 50%;
    width: calc(120 * var(--x-s));
    height: calc(66.6667 * var(--x-s));
    margin-left: calc(-60 * var(--x-s));
  }

  /* 雪はカンプの 1440 × 800 にそのまま重ねる。画面幅に合わせて別に引き伸ばすと、
     左のイラスト・右のナビとの位置がずれる */
  #xmas2026 .x-stage__snow {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(120 * var(--x-s));
    height: calc(66.6667 * var(--x-s));
  }

  /* 雪は左半分・右半分に分けて、ほかの飾りと同じだけ左右へ寄せる */
  #xmas2026 .x-stage__snow--l {
    margin-left: calc(-1 * var(--x-d));
    clip-path: inset(0 50% 0 0);
  }

  #xmas2026 .x-stage__snow--r {
    margin-left: var(--x-d);
    clip-path: inset(0 0 0 50%);
  }

  #xmas2026 .x-stage__title {
    position: absolute;
    margin-left: calc(-1 * var(--x-d));
    top: calc(21.1667 * var(--x-s));
    left: calc(3.5 * var(--x-s));
    width: calc(30.1667 * var(--x-s));
    height: calc(15.6667 * var(--x-s));
  }

  #xmas2026 .x-stage__title img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  #xmas2026 .x-stage__illust {
    position: absolute;
    margin-left: calc(-1 * var(--x-d));
    top: calc(34.5 * var(--x-s));
    left: calc(2.1467 * var(--x-s));
    width: calc(15.9167 * var(--x-s));
    height: calc(13.1667 * var(--x-s));
  }

  #xmas2026 .x-stage__gifts {
    position: absolute;
    margin-left: calc(-1 * var(--x-d));
    top: calc(36.7192 * var(--x-s));
    left: calc(17.7708 * var(--x-s));
    width: calc(19.3333 * var(--x-s));
    height: calc(11.25 * var(--x-s));
  }

  #xmas2026 .x-stage__bell {
    position: absolute;
    margin-left: var(--x-d);
    top: calc(11.5558 * var(--x-s));
    left: calc(99.33 * var(--x-s));
    width: calc(4.3333 * var(--x-s));
    height: calc(5.0833 * var(--x-s));
  }

  /* 街並みと雪の地面は画面の下端に固定 */
  /* フッターは波のぶん本文へ 12px 食い込む。持ち上がったときに家の足元が隠れないよう、
     カンプの位置（下端から 6.75px）よりそのぶん上げてある */
  #xmas2026 .x-stage__town {
    position: absolute;
    bottom: calc(1.5625 * var(--x-s));
    height: calc(7.9167 * var(--x-s));
  }

  #xmas2026 .x-stage__town--l {
    right: calc(50% + calc(11.1667 * var(--x-s)) + var(--x-d));
    left: 0;
    background: url('../img/pc/town_l.svg') right bottom / calc(46.8333 * var(--x-s)) calc(7.9167 * var(--x-s)) repeat-x;
  }

  #xmas2026 .x-stage__town--r {
    right: 0;
    left: calc(50% + calc(11.1667 * var(--x-s)) + var(--x-d));
    background: url('../img/pc/town_r.svg') left bottom / calc(60.9167 * var(--x-s)) calc(7.9167 * var(--x-s)) repeat-x;
  }

  #xmas2026 .x-stage__ground {
    position: absolute;
    right: calc(50% - 50vw);
    bottom: calc(-3.5833 * var(--x-s));
    left: calc(50% - 50vw);
    width: 100vw;
    height: calc(11.9067 * var(--x-s));
    background: url('../img/pc/ground.svg') center bottom / 100% 100% no-repeat;
  }

  /* 右ナビ（276 幅） */
  #xmas2026 .x-side {
    display: flex;
    position: absolute;
    margin-left: var(--x-d);
    top: calc(18.0833 * var(--x-s));
    left: calc(89.8333 * var(--x-s));
    flex-direction: column;
    align-items: center;
    gap: calc(1 * var(--x-s));
    width: calc(23 * var(--x-s));
    pointer-events: auto;
  }

  #xmas2026 .x-side ul {
    display: flex;
    flex-direction: column;
    gap: calc(1 * var(--x-s));
    width: 100%;
  }

  /* ボタン 1 つを丸ごと Figma から書き出した SVG（768:65322 の各「button」。276 × 60） */
  #xmas2026 .x-side__btn {
    display: block;
    height: calc(5 * var(--x-s));
    transition: opacity 0.2s;
  }

  #xmas2026 .x-side__btn img {
    width: 100%;
    height: 100%;
  }

  #xmas2026 .x-side__other {
    font-size: calc(1.25 * var(--x-s));
    line-height: calc(2 * var(--x-s));
  }
}

/* ---------- 1440px より広い画面 ---------- */

/* サイト共通の rem は 1440px で頭打ちになる（lib/documentScripts.ts）。そのままだと広い
   画面ではカンプの大きさのまま中央に小さく残るので、このページの単位（--x-r）だけ画面に
   合わせて拡大を続ける。

   html の font-size は変えないこと。変えるとヘッダー・フッターまで大きくなる
   （2026-11-27 に指摘を受けて、ページ内の単位だけを広げる方式に直した）。

   高さ側の上限（100vh ÷ 66.6667 = カンプの高さ 800px）は、横長で背の低い画面で中央の列が
   大きくなりすぎないようにするため。 */
@media (min-width: 1441px) {
  #xmas2026 {
    --x-r: max(1rem, min(100vw / 120, 100vh / 66.6667));
  }
}
