@charset "utf-8";

/* ==============================================
   スノー特集 2026 (snowcollection_2611) — スタンドアロンCSS
   このLPのCSSはこの1ファイルのみ。index_local.html（ローカル確認用）と index.html（W2本番用）の両方から読み込む。
   既存LPフォーマット(_system)は使わない独自レイアウト。ワイヤー(PC=1440px基準)の寸法を元にしている。

   ベースカラー     #fff
   メインカラー     #090017
   アクセントカラー #66AB8C / #9E90C9
   アニメーション: フワッとやわらかく（下の「アニメーション」のブロック）。出す・出さないは js/script.js の ANIM（OSの「視差効果を減らす」・URLの ?anim=0 では出さない）。
   ============================================== */

:root {
  --sn-base:   #ffffff;
  --sn-main:   #090017;
  --sn-accent1:#66AB8C;   /* Recommend「ベビー」・追加完了のチェック */
  --sn-accent2:#9E90C9;   /* Recommend「おそろい」・フォーカス枠 */

  --sn-gray-100:#f5f5f5;  /* PANTSの帯・SNOW ITEMのパネル（ワイヤー #f4f4f4 / #f6f6f6） */
  --sn-gray-150:#f2f2f2;  /* Recommendの札・セットおすすめのカード */
  --sn-gray-200:#ececec;  /* 画像の読み込み前・CTAボタン */
  --sn-line:    #808080;  /* ポップアップの区切り線 */
  --sn-sub:     rgba(9, 0, 23, .62); /* 商品説明などの薄い文字（ワイヤーの薄グレーより読みやすく） */
  --sn-error:   #b3261e;

  --sn-font-en: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --sn-font-jp: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  --sn-font-title: 'Outfit', 'Manrope', 'Helvetica Neue', Arial, sans-serif;   /* ページタイトル・セクション見出し。やわらかい字形で、端は丸めすぎない */

  --sn-title-size: clamp(34px, 4.25vw, 61px);  /* h1・h3・GLOVE/GAITERS は全部同じ大きさ（ワイヤーの大文字の高さが全て44px。PC1440pxで61px） */
  --sn-w: 960px;          /* グリッド・パネルの幅 */
  --sn-w-slider: 720px;   /* スライダーの幅 */
}

/* ======================
   W2 Vendor Overrides（完全版・osoroi / outercollection_2610 と同じ）
   #tblLayoutはtable-layout:fixed必須。無いとSPでコンテンツ幅がはみ出すバグが既知。
   参照: ec/自社/LP/osoroi/css/style.css、feedback_w2_lp_markup_rules.md
   ====================== */
.global-header,
.l-header,
.p-header,
.p-product-list__category-title { display: none; }

.global-contents__inner {
  width: 100% !important;
  padding: 0 !important;
}

#tblLayout { width: 100% !important; table-layout: fixed !important; }
#tblLayout td:has(#lp-wrap) { width: 100% !important; }
#tblLayout td:not(:has(#lp-wrap)) { width: 0 !important; }

table { border-collapse: collapse; margin: 0; padding: 0; }
td, th { padding: 0; margin: 0; }

main + div { display: none; }
main.global-contents { min-width: 0; }

/* ======================
   Reset（このLPの中だけ。W2のサイトCSS・ヘッダには触れない）
   W2のreset.cssは p を両端揃え・line-height:1 にするので、ここで打ち消す。
   部品のCSSは ".sn-wrap .sn-xxx" と書いて、この reset より強くしている。
   ====================== */
body { margin: 0; }
.sn-wrap,
.sn-wrap *,
.sn-wrap *::before,
.sn-wrap *::after { box-sizing: border-box; }

.sn-wrap {
  width: 100%;
  background: var(--sn-base);
  color: var(--sn-main);
  font-family: var(--sn-font-jp);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
.sn-wrap h1, .sn-wrap h2, .sn-wrap h3, .sn-wrap h4, .sn-wrap p, .sn-wrap ul, .sn-wrap li,
.sn-wrap figure, .sn-wrap button, .sn-wrap select, .sn-wrap label {
  margin: 0; padding: 0;
  font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit;
  letter-spacing: inherit; text-align: inherit; text-transform: none;
}
.sn-wrap ul { list-style: none; }
.sn-wrap img { display: block; max-width: 100%; border: 0; }
.sn-wrap a { color: inherit; text-decoration: none; }
.sn-wrap button { border: 0; background: none; color: inherit; cursor: pointer; border-radius: 0; -webkit-appearance: none; appearance: none; }
.sn-wrap [hidden] { display: none !important; }
.sn-wrap :focus-visible { outline: 2px solid var(--sn-accent2); outline-offset: 2px; }
/* ポップアップの枠そのもの(tabindex=-1)は、開いたときにフォーカスを受けるだけ。リングは出さない（Safariだとパネルをぐるっと囲んでしまう） */
.sn-wrap .sn-modal__panel:focus, .sn-wrap .sn-modal__panel:focus-visible { outline: none; }

.sn-wrap .sn-vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ======================
   見出し（h1 / h3 / GLOVE・GAITERS 共通）
   ====================== */
.sn-wrap .sn-title {
  font-family: var(--sn-font-title);
  font-weight: 400;
  font-size: var(--sn-title-size);
  line-height: 1;
  letter-spacing: .01em;
  text-align: center;
  text-transform: uppercase;
}

/* ======================
   HERO
   黒い「Let's enjoy winter.」が左から1文字ずつ打たれる → 白い画面を商品画像が左から右へゆっくり流れる（通り過ぎた後ろから黒い題名が現れる）
   → 5コマ目ごろ、リード文がゆっくり消える → 題名だけ → 題名も消えて真っ白 → 商品がふわっと浮かび上がる
   → 商品が下へゆっくり動き、同時に黒い文字（リード文・題名）が上から降りてくる
   ・高さは画面いっぱい（100vh。スマホのブラウザはアドレスバーが出ている高さ 100svh）。縦長の画面だけ、動き終わりに縮む（下の「HERO（縦長の画面）」）。
     「u」＝絵コンテの1px ＝ 画面の幅÷1440 と 高さ÷720 の小さい方（絵コンテの絵 1440×720 が横にも縦にも画面に収まる大きさ）。
     絵は画面の縦の真ん中に置く（上の余白 --sn-y0・下も同じだけ白が残る）。1440×720のPCなら絵コンテと同じ。画面が横に長いほど左右が白くなる
   ・縦長の画面（スマホ・縦持ちのタブレット）は、下の「HERO（縦長の画面）」で組み直し（2026-11-13の添付のモックに合わせる。動き終わりにヒーローが縮み、下のリード文が上に上がる）
   ・寸法は絵コンテ（PC 1440×720・2026-11-12の10コマ）から。画像 images/hero.png は背景が透明の16:9（服は幅の1.4〜99.3%・高さの12.4〜92.3%）。
     流れる画像(--sweep)は幅1232u・上端47.5u（リード文の下を通る）。最後に残る画像(--final)は1.12倍の幅1378uで、ヒーローの真ん中に浮かび上がってから173u下へ動く（下の端はヒーローで切れる。絵コンテ8〜10コマ目にECCで合わせた値）
   ・黒い文字(.sn-hero__ghost)は動きの途中だけ（リード文は span で1文字ずつ）。黒い題名は「白いカバー(.sn-hero__cover)」の下にあり、
     カバーは流れる画像の左端に付いて一緒に動く＝画像が通り過ぎた後ろから文字が現れる（左端は画像の一番左の服に合わせる。透明の余白は幅の1.72%）
   ・流れる画像は、横に動く入れ物(.sn-hero__sweep)に入れてある（中の画像が跳ねて傾く『かくかく』と、横の動きを分けるため）
   ・最後に残る文字(.sn-hero__lead・h1)は黒・影なし。最後の画像は入れ物(.sn-hero__stage)に入れて、浮かび上がる動き(画像)と下へ動く動き(入れ物)を重ねる
   ・全部を .sn-hero__inner に入れてある（縦長の画面で、動き終わりに中身ごと上へ上げるため。PCでは何もしない）。題名は span 2つ（PCは1行・縦長は2行）
   ・動きはこのCSSだけ（JS不要）。ここに書く見た目＝動き終わった後の姿。?anim=0・OSの『視差効果を減らす』ではその姿のまま（動きは下の「アニメーション」の枠）
   ====================== */
.sn-wrap .sn-hero {
  --sn-hero-h: 100vh;                                                   /* ヒーローの高さ＝画面いっぱい（すぐ下の @supports で 100svh に） */
  --sn-u: min(calc(100vw / 1440), calc(var(--sn-hero-h) / 720));        /* 絵コンテの1px。絵(1440×720)が横にも縦にも画面に収まる大きさ */
  --sn-y0: calc((var(--sn-hero-h) - 720 * var(--sn-u)) / 2);            /* 絵を縦の真ん中に置いたときの、絵の上端（＝上の余白） */
  --sn-sw-w: calc(1232 * var(--sn-u));                                  /* 流れる画像の幅（高さは16:9） */
  --sn-sw-h: calc(var(--sn-sw-w) * 9 / 16);
  --sn-kaku-y1: calc(var(--sn-sw-w) * 4 / 1232);                        /* 『かくかく』で沈む量・1コマ目（PCで4u。流れる画像の幅に比例） */
  --sn-kaku-y2: calc(var(--sn-sw-w) * 1.5 / 1232);                      /* 同じく2コマ目（PCで1.5u） */
  --sn-sw-top: calc(var(--sn-y0) + 47.5 * var(--sn-u));                 /* 流れる画像の上端（絵コンテ2コマ目。黒いリード文と重ならない） */
  --sn-fin-w: calc(1378 * var(--sn-u));                                 /* 最後に残る画像の幅（流れる画像の1.1185倍） */
  --sn-fin-h: calc(var(--sn-fin-w) * 9 / 16);
  --sn-fin-top: calc(var(--sn-y0) + 144.4 * var(--sn-u));               /* 最後の位置の上端（下の端はヒーローで切れる。絵コンテ9・10コマ目に合わせた値） */
  --sn-fin-rise: calc(173 * var(--sn-u));                               /* 浮かび上がる位置（絵コンテ8コマ目）から最後の位置までの距離 */
  --sn-text-rise: calc(var(--sn-y0) + 230 * var(--sn-u));               /* 黒い文字が降りてくる前にいる高さ（最後の位置から、ヒーローの上の外まで） */
  --sn-sweep: 100vw;   /* 流れる画像が左右に動く距離。画像が画面の外から外まで通り抜ける長さ */
  position: relative;
  height: var(--sn-hero-h);
  background: #fff;
  overflow: hidden;
}
@supports (height: 100svh) {
  .sn-wrap .sn-hero { --sn-hero-h: 100svh; }   /* スマホのアドレスバーが出ている高さ（100vh だとバーの下に隠れる） */
}
/* 中身の入れ物（縦長の画面で、動き終わりに中身ごと上へ上げるため。PCでは何もしない＝ヒーロー全面に重なるだけ） */
.sn-wrap .sn-hero__inner { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }

/* 画像（.sn-wrap img{max-width:100%} を打ち消す） */
.sn-wrap .sn-hero__img { position: absolute; left: 50%; max-width: none; object-fit: contain; }
.sn-wrap .sn-hero__img--sweep { top: var(--sn-sw-top); width: var(--sn-sw-w); height: var(--sn-sw-h); margin-left: calc(var(--sn-sw-w) / -2); }
.sn-wrap .sn-hero__sweep,
.sn-wrap .sn-hero__stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.sn-wrap .sn-hero__sweep { z-index: 4; }
.sn-wrap .sn-hero__stage { z-index: 5; }
.sn-wrap .sn-hero__img--final { top: var(--sn-fin-top); width: var(--sn-fin-w); height: var(--sn-fin-h); margin-left: calc(var(--sn-fin-w) / -2); }
/* 動きの途中だけ使う部品は、動かないとき(基本)は隠す（流れる画像は入れ物ごと隠れる） */
.sn-wrap .sn-hero__sweep,
.sn-wrap .sn-hero__cover { visibility: hidden; }
.sn-wrap .sn-hero__ghost { opacity: 0; }

/* 白いカバー: 流れる画像の左端（一番左の服）から右へ。後ろの黒い題名をまだ見せない（幅は、流れ始めの位置でも画面の右端まで覆う長さ） */
.sn-wrap .sn-hero__cover {
  position: absolute; z-index: 2; top: 0; bottom: 0;
  left: calc(50% - var(--sn-sw-w) / 2 + var(--sn-sw-w) * .0172);
  width: calc(50vw + var(--sn-sw-w) / 2 + var(--sn-sweep));
  background: #fff;
}

/* 文字（絵コンテのフォント＝Zen Kaku Gothic New 900。リード文52u・題名70u・字間0・黒。line-height:1 のとき字の上端は要素の上から 0.1346em / 0.2143em） */
.sn-wrap .sn-hero__ghost,
.sn-wrap .sn-hero__lead,
.sn-wrap .sn-hero__title {
  position: absolute; left: 0; right: 0; margin: 0; padding: 0;
  font-family: var(--sn-font-jp); font-weight: 900; line-height: 1; letter-spacing: 0;
  text-align: center; text-transform: none; white-space: nowrap; color: #000;
}
.sn-wrap .sn-hero__lead,
.sn-wrap .sn-hero__ghost--lead { font-size: calc(52 * var(--sn-u)); }
.sn-wrap .sn-hero__title,
.sn-wrap .sn-hero__ghost--title { font-size: calc(70 * var(--sn-u)); }

/* 入りの黒文字（動きの途中だけ）。題名は流れる画像の真ん中あたり（画像の上から41.2%＝服のすき間から見える高さ。PCでは絵の真ん中の少し上）、リード文は上（76u） */
.sn-wrap .sn-hero__ghost--title { z-index: 1; top: calc(var(--sn-sw-top) + .412 * var(--sn-sw-h)); }
.sn-wrap .sn-hero__ghost--lead { z-index: 3; top: calc(var(--sn-y0) + 76 * var(--sn-u)); }

/* 最後に残る黒文字（絵コンテ10コマ目: リード文の字の上端が89u・題名が163u） */
.sn-wrap .sn-hero__lead,
.sn-wrap .sn-hero__title { z-index: 6; }
.sn-wrap .sn-hero__lead { top: calc(var(--sn-y0) + 82 * var(--sn-u)); }
.sn-wrap .sn-hero__title { top: calc(var(--sn-y0) + 148 * var(--sn-u)); }

/* ======================
   HERO（縦長の画面＝スマホ・縦持ちのタブレット）
   絵コンテはPC(横長)だけなので、縦長は同じ流れを組み直したもの。寸法は 2026-11-13 の添付（スマホのモック。上＝動き終わり・下＝縮んだ後）に合わせた。
   ・寸法は「V」＝画面の幅の1%（--sn-v）。タブレットで大きくなりすぎないよう 6.4px（幅640px相当）で止める。位置は全部、縮んだ後のヒーロー(--sn-hc)の上端から測る（V単位）
   ・動いている間のヒーローは画面いっぱい(--sn-hero-h0)。中身(.sn-hero__inner)を --sn-shift だけ下げて、縦の真ん中に置く。
     動き終わりに「ヒーローの高さが --sn-hc まで縮む」と「中身が上へ上がる」を、同じ長さ・同じイージングで行う（中身は縮みながらも常にヒーローの中＝商品が切れない）。下のリード文は、縮んだぶん上に上がってくる
   ・基本の姿（動かないとき・?anim=0・視差効果を減らす設定）は、縮んだ後の高さ
   ・流れる画像は画面の幅の1.9倍（100vwのままだと縦に長い画面では小さく見える。両端は画面の外へ出る）。最後に残る商品は幅113.4V（左右の服が少し見切れる）
   ・文字（黒・影なし）: リード文 5.95V／題名は2行で SNOW ITEM 13.85V・COLLECTION 7.9V
   ====================== */
@media (max-aspect-ratio: 1/1) {
  .sn-wrap .sn-hero {
    --sn-v: min(1vw, 6.4px);
    --sn-u: calc(.1026 * var(--sn-v));                                    /* PCのu（絵コンテの1px）に当たる長さ。縦長の寸法はVで書くので、uを使う小さな動き（浮かび上がる前の下げ幅）だけが使う */
    --sn-hc: calc(108 * var(--sn-v));                                     /* 動き終わったあとのヒーローの高さ（商品の足元107.6Vまで＋ほんの少し） */
    --sn-hero-h: var(--sn-hc);                                            /* 基本の高さ＝縮んだ後 */
    --sn-hero-h0: max(100vh, var(--sn-hc));                               /* 動いている間の高さ＝画面いっぱい（下の @supports で 100svh に）。縮んだ後より低い画面では縮まない */
    --sn-shift: max(calc(var(--sn-hero-h0) * .495 - 63 * var(--sn-v)), 0px);   /* 動いている間に中身を下げる量＝最後の並び（リード文の字の上端18.4V〜服の足元107.6V）の真ん中を、画面の縦の真ん中(49.5%。モックは49.2%)に */
    --sn-sw-w: calc(190 * var(--sn-v));
    --sn-fin-w: calc(113.4 * var(--sn-v));
    --sn-sw-top: calc(25.8 * var(--sn-v) - .1248 * var(--sn-sw-h));       /* 流れる服の頭は、リード文の字の下端(23.4V)の少し下(25.8V) */
    --sn-fin-top: calc(48.7 * var(--sn-v));                               /* 最後の商品の画像の上端（服の頭が56.6V・足元が107.6V） */
    --sn-fin-rise: calc(var(--sn-hero-h0) * .2);                          /* 浮かび上がる位置から最後の位置まで（動いている間の高さの2割） */
    --sn-text-rise: calc(53 * var(--sn-v) + var(--sn-shift));             /* 黒い文字が降りてくる前にいる高さ＝題名の下端(51.7V)がヒーローの上の外へ出る分 */
    --sn-sweep: calc(50vw + var(--sn-sw-w) / 2 + 2vw);                    /* 画像が画面の外から外まで通り抜ける長さ */
  }
  @supports (height: 100svh) {
    .sn-wrap .sn-hero { --sn-hero-h0: max(100svh, var(--sn-hc)); }        /* スマホのアドレスバーが出ている高さ */
  }
  .sn-wrap .sn-hero__lead,
  .sn-wrap .sn-hero__ghost--lead { top: calc(17.6 * var(--sn-v)); font-size: calc(5.95 * var(--sn-v)); }   /* リード文の字の上端は18.4V */
  .sn-wrap .sn-hero__title { top: calc(28.98 * var(--sn-v)); }
  .sn-wrap .sn-hero__ghost--title { top: calc(var(--sn-sw-top) + .43 * var(--sn-sw-h) - 11.38 * var(--sn-v)); }   /* 2行のかたまり(22.75V)の真ん中を、流れる画像の上から43%に */
  .sn-wrap .sn-hero__t1,
  .sn-wrap .sn-hero__t2 { display: block; }
  .sn-wrap .sn-hero__t1 { font-size: calc(13.85 * var(--sn-v)); }
  .sn-wrap .sn-hero__t2 { margin-top: calc(1 * var(--sn-v)); font-size: calc(7.9 * var(--sn-v)); }
}

/* ======================
   LEAD（h2）
   ====================== */
.sn-wrap .sn-lead { padding: 100px 24px 121px; }
.sn-wrap .sn-lead__text {
  max-width: 800px; margin: 0 auto;
  font-size: 20px; line-height: 2; font-weight: 400; letter-spacing: .02em;
  text-align: left;
}

/* ======================
   SECTION 共通
   ====================== */
.sn-wrap .sn-sec { position: relative; }

/* SNOW WEAR（3列グリッド・すき間48px。SPは2列・すき間16px）
   ※ 余白はremでなくpx。W2本番は html が 10px なので、remだとローカル確認（16px基準）と寸法が変わる */
.sn-wrap .sn-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  width: min(var(--sn-w), 100%);
  margin: 52px auto 0;
}
.sn-wrap .sn-sec--wear { padding-bottom: 180px; }

/* タイル（一覧のアイテム。タップでポップアップ） */
.sn-wrap .sn-tile { position: relative; display: block; background: var(--sn-gray-200); }
.sn-wrap .sn-tile__img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 13 / 20; object-fit: cover;
}
.sn-wrap .sn-tile__img[data-fit="contain"] { object-fit: contain; background: #fff; }
/* 右下の「＋」（グレーの箱にネイビーの＋。＋の色は svg の stroke=currentColor） */
.sn-wrap .sn-tile__go {
  position: absolute; right: 0; bottom: 0;
  width: 36px; height: 36px; background: var(--sn-gray-200); color: var(--sn-main);
}
.sn-wrap .sn-tile__go svg { display: block; width: 100%; height: 100%; }
.sn-wrap .sn-tile--s .sn-tile__go { width: 22px; height: 22px; }
.sn-wrap .sn-tile--s .sn-tile__go path { stroke-width: 2.8; }   /* 小さい箱でも＋の線が細くなりすぎないように */

/* PC（マウス）だけ: タイルの上では矢印の代わりに「Click」の丸いポインター（直径64px。js/script.js の initCursor が動いたときだけ） */
.sn-wrap .sn-cursor { display: none; }
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .sn-wrap.sn-has-cursor .sn-tile { cursor: none; }
  .sn-wrap .sn-cursor {
    position: fixed; top: 0; left: 0; z-index: 99990;
    width: 64px; height: 64px; margin: -32px 0 0 -32px;
    border-radius: 50%; background: rgba(9, 0, 23, .88); color: #fff;
    font-family: var(--sn-font-en); font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 64px; text-align: center;
    pointer-events: none;
  }
  .sn-wrap .sn-cursor.is-on { display: block; }
}

/* Recommend の札（data の recommend に書いた品番にだけ出る）。アイコン＋文字の丸いタグを縦に積む（写真を隠す幅を最小限に）
   ベビー=赤ちゃんの顔・緑／おそろい=ハート2つ・紫。白フチ＋やわらかい影でぷっくり見せる */
.sn-wrap .sn-reco {
  position: absolute; left: 10px; bottom: 11px; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  pointer-events: none;
}
.sn-wrap .sn-tag {
  box-sizing: border-box; display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px 0 3px;
  border: 2px solid #fff; border-radius: 999px; box-shadow: 0 2px 6px rgba(9, 0, 23, .18);
  font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .02em; white-space: nowrap;
  color: var(--sn-main); background: var(--sn-accent1);
}
.sn-wrap .sn-tag--2 { background: var(--sn-accent2); }
.sn-wrap .sn-tag--noico { padding-left: 10px; }   /* アイコンの無いタグ（data に「ベビー」「おそろい」以外の文言を書いたとき） */
.sn-wrap .sn-tag__ico { display: block; width: 19px; height: 19px; flex: 0 0 auto; }
.sn-wrap .sn-tag--2 .sn-tag__ico { color: var(--sn-accent2); }   /* ハートの縁取り(currentColor)をタグの地色に合わせる */
.sn-wrap .sn-tag__ico svg { display: block; width: 100%; height: 100%; }

/* PANTS（全幅の帯） */
.sn-wrap .sn-sec--pants { padding: 105px 0 88px; background: var(--sn-gray-100); }

/* スライダー（PANTS・GLOVE・GAITERS・ポップアップ内のセット）。矢印は端に半分かぶせる */
.sn-wrap .sn-slider { position: relative; width: min(var(--sn-w-slider), 100%); margin: 52px auto 0; }
.sn-wrap .sn-slider__track {
  display: flex; gap: 24px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.sn-wrap .sn-slider__track::-webkit-scrollbar { display: none; }
.sn-wrap .sn-slider__item { flex: 0 0 calc((100% - 72px) / 4); min-width: 0; scroll-snap-align: start; }
/* 4つに満たないときは中央に寄せる（あふれるときは余白0になるのでスクロールはそのまま効く） */
.sn-wrap .sn-slider__item:first-child { margin-left: auto; }
.sn-wrap .sn-slider__item:last-child { margin-right: auto; }

.sn-wrap .sn-arrow {
  position: absolute; top: 50%; z-index: 2;
  width: 42px; height: 42px; margin-top: -21px;
  border-radius: 50%; background: var(--sn-main);
}
.sn-wrap .sn-arrow::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 16px; background: #fff;
}
.sn-wrap .sn-arrow--prev { left: -21px; }
.sn-wrap .sn-arrow--next { right: -21px; }
.sn-wrap .sn-arrow--prev::before { margin: -8px 0 0 -9px; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.sn-wrap .sn-arrow--next::before { margin: -8px 0 0 -5px; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ページネーション（PANTS・GLOVE・GAITERSのスライダーの下の点。js/script.js の makePager が作る。1ページ＝いま見えている分）
   見た目は小さな点。いまのページだけ細長くなる。押せる範囲は 26px 四方 */
.sn-wrap .sn-pager { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.sn-wrap .sn-dot { position: relative; flex: 0 0 auto; width: 26px; height: 26px; }
.sn-wrap .sn-dot::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 4px; background: rgba(9, 0, 23, .22);
}
.sn-wrap .sn-dot[aria-current="true"]::before { width: 24px; margin-left: -12px; background: var(--sn-main); }

/* SNOW ITEM（GLOVE・GAITERSのパネル） */
.sn-wrap .sn-sec--item { padding: 198px 0 0; }
.sn-wrap .sn-sec--item > .sn-title { margin-bottom: 52px; }
.sn-wrap .sn-item {
  width: min(var(--sn-w), 100%); margin: 0 auto;
  padding: 123px 120px; background: var(--sn-gray-100);
}
.sn-wrap .sn-item + .sn-item { margin-top: 100px; }
.sn-wrap .sn-item__head { display: grid; grid-template-columns: 358px 1fr; gap: 64px; align-items: center; }
.sn-wrap .sn-item__visual { margin: 0; background: var(--sn-gray-200); }
.sn-wrap .sn-item__img { display: block; width: 100%; height: auto; aspect-ratio: 358 / 549; object-fit: cover; }
.sn-wrap .sn-item__img[data-fit="contain"] { object-fit: contain; background: #fff; }
.sn-wrap .sn-item__body { min-width: 0; }
.sn-wrap .sn-item__label { font-size: 20px; line-height: 1.2; text-align: center; }
.sn-wrap .sn-item__title { margin-top: 19px; }
.sn-wrap .sn-item__text { margin-top: 51px; font-size: 18px; line-height: 30px; text-align: left; }
.sn-wrap .sn-item .sn-slider { margin-top: 40px; }

/* ======================
   CTA（ページ末尾）
   PC: 左右に並べる。SP: 2つとも全幅のボタンを縦に（上＝スノーアイテム一覧・紺文字／下＝ニット帽〜・黒）
   ====================== */
.sn-wrap .sn-cta { display: flex; gap: 8px; margin-top: 144px; }
.sn-wrap .sn-cta__btn {
  flex: 1 1 0; min-height: 249px; padding: 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sn-gray-200); color: var(--sn-main);
  font-size: 28px; line-height: 1.3; text-align: center;
}
/* ニット帽〜（sub）＝黒地に白文字／スノーアイテム一覧（main）＝#9E90C9（--sn-accent2）に紺文字（白文字は約2.9:1で弱いので紺にした） */
.sn-wrap .sn-cta__btn--sub { background: var(--sn-main); color: #fff; }
.sn-wrap .sn-cta__btn--sub:hover { background: #2b2140; }
.sn-wrap .sn-cta__btn--main { background: var(--sn-accent2); color: var(--sn-main); }
.sn-wrap .sn-cta__btn--main:hover { background: #8d7fbc; }

.sn-wrap .sn-foot { padding: 75px 16px 66px; font-size: 14px; line-height: 1.6; text-align: center; }

/* ======================
   ポップアップ（モーダル）
   ====================== */
html.sn-lock, html.sn-lock body { overflow: hidden; }
html.sn-lock body { position: fixed; left: 0; right: 0; width: 100%; } /* top は JS が -scrollY を入れる（iOS Safariで背面が動くのを防ぐ） */

.sn-wrap .sn-modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.sn-wrap .sn-modal__bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(9, 0, 23, .55); }
.sn-wrap .sn-modal__panel {
  position: relative; display: flex; flex-direction: column;
  width: min(880px, 100%);
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  background: var(--sn-base);
}
.sn-wrap .sn-modal__scroll {
  flex: 1 1 auto; min-height: 0;
  padding: 64px 70px 60px;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.sn-wrap .sn-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .92);
}
.sn-wrap .sn-modal__close::before,
.sn-wrap .sn-modal__close::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 20px; height: 2px; margin: -1px 0 0 -10px; background: var(--sn-main);
}
.sn-wrap .sn-modal__close::before { transform: rotate(45deg); }
.sn-wrap .sn-modal__close::after { transform: rotate(-45deg); }

.sn-wrap .sn-pop { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.sn-wrap .sn-pop__media { min-width: 0; }
.sn-wrap .sn-pop__info { min-width: 0; }

/* 画像（左）。矢印は左右の端に半分かぶせる。背景は白（SPは矢印がかぶらないよう、スライドの両端に余白） */
.sn-wrap .sn-gal { position: relative; background: #fff; }
.sn-wrap .sn-gal__track {
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
}
.sn-wrap .sn-gal__track::-webkit-scrollbar { display: none; }
.sn-wrap .sn-gal__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.sn-wrap .sn-gal__slide img { display: block; width: 100%; height: auto; aspect-ratio: 13 / 20; object-fit: cover; }
.sn-wrap .sn-gal__slide img[data-fit="contain"] { object-fit: contain; background: #fff; }

/* 商品名・説明・選択・価格・カート */
.sn-wrap .sn-pop__name { font-size: 18px; font-weight: 500; line-height: 24px; }
.sn-wrap .sn-pop__color { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--sn-sub); }
.sn-wrap .sn-pop__color:empty { display: none; }
.sn-wrap .sn-pop__desc-wrap { margin-top: 20px; }
.sn-wrap .sn-pop__desc {
  font-size: 12px; line-height: 18px; color: var(--sn-sub); white-space: pre-line;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.sn-wrap .sn-pop__desc-wrap.is-open .sn-pop__desc { display: block; -webkit-line-clamp: unset; overflow: visible; }
.sn-wrap .sn-pop__more { margin-top: 6px; font-size: 12px; line-height: 1.6; text-decoration: underline; color: var(--sn-main); }

.sn-wrap .sn-opts { display: flex; gap: 8px; margin-top: 24px; }
.sn-wrap .sn-opts > label { position: relative; flex: 1 1 0; min-width: 0; display: block; }
.sn-wrap .sn-pop__info > .sn-opts > label { flex: 0 0 calc(50% - 4px); }   /* サイズだけ（カラーは選ばない）。幅は、カラー+サイズが並んでいたときの片方分 */
.sn-wrap .sn-sel {
  display: block; width: 100%; height: 34px; padding: 0 26px 0 10px;
  border: 1px solid var(--sn-main); border-radius: 0; background-color: #fff; color: var(--sn-main);
  font-size: 12px; line-height: 32px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23090017'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 9px 5px;
  text-overflow: ellipsis;
}
.sn-wrap .sn-sel:disabled { color: rgba(9, 0, 23, .4); border-color: rgba(9, 0, 23, .25); cursor: default; }
.sn-wrap .sn-sel option:disabled { color: rgba(9, 0, 23, .35); }

.sn-wrap .sn-pop__buy { margin-top: 24px; padding-bottom: 20px; border-bottom: 2px solid var(--sn-line); }
.sn-wrap .sn-pop__buyrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sn-wrap .sn-price { font-family: var(--sn-font-en); font-size: 14px; line-height: 1.4; white-space: nowrap; }
.sn-wrap .sn-price small { margin-left: 3px; font-family: var(--sn-font-jp); font-size: 10px; color: var(--sn-sub); }

.sn-wrap .sn-buy { display: flex; gap: 6px; flex: 0 0 auto; }
.sn-wrap .sn-btn {
  height: 30px; padding: 0 14px; min-width: 102px;
  background: var(--sn-main); color: #fff;
  font-size: 12px; line-height: 30px; text-align: center; white-space: nowrap;
}
.sn-wrap .sn-btn:disabled { opacity: .45; cursor: default; }
.sn-wrap .sn-qty {
  width: 51px; height: 30px; padding: 0 12px 0 0;
  background-color: var(--sn-main); color: #fff; border: 0; border-radius: 0;
  font-family: var(--sn-font-en); font-size: 12px; line-height: 30px; text-align: center; text-align-last: center;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center; background-size: 7px 4px;
}
.sn-wrap .sn-qty:disabled { opacity: .45; cursor: default; }
.sn-wrap .sn-qty option { color: var(--sn-main); background: #fff; }

/* 「商品詳細ページはこちら」: カート行の直下（区切り線の上）。グレー地＋ネイビー文字（右下の＋と同じ配色）。高さ・文字はカートボタン(.sn-btn)と同じ。主役はネイビー塗りのカート */
.sn-wrap .sn-detail {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-sizing: border-box; width: 100%; height: 30px; margin-top: 12px;
  background: var(--sn-gray-200); color: var(--sn-main);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1; text-decoration: none;
}
.sn-wrap .sn-detail::after {
  content: ""; width: 5px; height: 5px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg);
}
.sn-wrap .sn-detail:hover { background: #e2e2e2; }

/* 追加の結果 */
.sn-wrap .sn-msg { margin-top: 12px; font-size: 12px; line-height: 1.7; min-height: 20px; }
.sn-wrap .sn-msg:empty { display: none; }
.sn-wrap .sn-msg a { text-decoration: underline; }
.sn-wrap .sn-msg.is-ok::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin: 0 6px -2px 0; border-radius: 50%;
  background: var(--sn-accent1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3.6 7.2l2.3 2.3 4.5-4.8' fill='none' stroke='%23090017' stroke-width='1.6'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.sn-wrap .sn-msg.is-ng { color: var(--sn-error); }
.sn-wrap .sn-msg.is-ng a { color: var(--sn-error); }
.sn-wrap .sn-note { margin-top: 8px; font-size: 11px; line-height: 1.6; color: var(--sn-sub); }
.sn-wrap .sn-note:empty { display: none; }

/* セットにおすすめ！ */
.sn-wrap .sn-set { margin-top: 34px; }
.sn-wrap .sn-set__ttl { font-size: 16px; font-weight: 500; line-height: 1.5; }
.sn-wrap .sn-set .sn-slider { width: 100%; margin: 28px 0 0; }
.sn-wrap .sn-set .sn-slider__track { gap: 0; scroll-padding: 0; }   /* スマホの一覧用の scroll-padding(36px)を打ち消す。残ると、指で送った/『次へ』で止まる位置が36pxずれて、隣のカードがのぞき、末尾でも『次へ』が消えない */
.sn-wrap .sn-set .sn-slider__item { flex: 0 0 100%; margin: 0; }
.sn-wrap .sn-set .sn-arrow { width: 30px; height: 30px; margin-top: -15px; }
.sn-wrap .sn-set .sn-arrow--prev { left: -15px; }
.sn-wrap .sn-set .sn-arrow--next { right: -15px; }
.sn-wrap .sn-set .sn-arrow::before { width: 10px; height: 12px; }
.sn-wrap .sn-set .sn-arrow--prev::before { margin: -6px 0 0 -6px; }
.sn-wrap .sn-set .sn-arrow--next::before { margin: -6px 0 0 -4px; }

.sn-wrap .sn-card { display: flex; gap: 26px; align-items: flex-start; padding: 20px 32px; background: var(--sn-gray-150); }
.sn-wrap .sn-card__img { flex: 0 0 88px; width: 88px; background: var(--sn-gray-200); }
.sn-wrap .sn-card__img img { width: 88px; height: auto; aspect-ratio: 13 / 20; object-fit: cover; }
.sn-wrap .sn-card__img img[data-fit="contain"] { object-fit: contain; background: #fff; }
.sn-wrap .sn-card__body { flex: 1 1 auto; min-width: 0; }
.sn-wrap .sn-card__name { font-size: 14px; font-weight: 500; line-height: 21px; }
.sn-wrap .sn-card__color { margin-top: 2px; font-size: 11px; line-height: 1.5; color: var(--sn-sub); }
.sn-wrap .sn-card__color:empty { display: none; }
.sn-wrap .sn-card__price { margin-top: 8px; font-family: var(--sn-font-en); font-size: 11px; line-height: 1.4; }
.sn-wrap .sn-card__price small { margin-left: 3px; font-family: var(--sn-font-jp); font-size: 9px; color: var(--sn-sub); }
.sn-wrap .sn-card .sn-opts { gap: 4px; margin-top: 10px; }
/* サイズの目安（グローブ・脚絆のカードだけ）。サイズごとに折り返す */
.sn-wrap .sn-card__guide { margin-top: 6px; font-size: 11px; line-height: 1.7; color: var(--sn-sub); }
.sn-wrap .sn-card__guide-ttl { display: block; font-weight: 500; }
.sn-wrap .sn-card__guide-item { display: inline-block; margin-right: 8px; white-space: nowrap; }
.sn-wrap .sn-card .sn-sel { height: 28px; padding: 0 20px 0 7px; font-size: 11px; line-height: 26px; background-position: right 6px center; }
.sn-wrap .sn-card .sn-buy { gap: 4px; margin-top: 8px; }
.sn-wrap .sn-card .sn-btn { height: 28px; min-width: 0; flex: 1 1 auto; padding: 0 8px; font-size: 11px; line-height: 28px; }
.sn-wrap .sn-card .sn-qty { height: 28px; line-height: 28px; flex: 0 0 51px; }
.sn-wrap .sn-card .sn-msg { margin-top: 8px; font-size: 11px; min-height: 0; }

/* デバッグ表示（URLに ?debug=1 を付けたときだけ。ログをコピーして共有できる） */
/* 左下に小さな「LOG」タブだけ常時表示。押すとログ欄が開く（開いている間は画面下部をふさぐので、見終わったら閉じる） */
.sn-wrap .sn-debug { position: fixed; left: 0; bottom: 8px; z-index: 100001; font: 11px/1.5 Consolas, 'Courier New', monospace; }
.sn-wrap .sn-debug__tab {
  display: block; padding: 4px 10px 4px 8px; border-radius: 0 4px 4px 0;
  background: rgba(9, 0, 23, .88); color: #e8e4f4; font: inherit; cursor: pointer;
}
.sn-wrap .sn-debug__panel {
  display: none; position: fixed; left: 8px; right: 8px; bottom: 40px;
  max-height: 40vh; flex-direction: column;
  background: rgba(9, 0, 23, .95); color: #e8e4f4; border-radius: 4px;
}
.sn-wrap .sn-debug.is-open .sn-debug__panel { display: flex; }
.sn-wrap .sn-debug__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.sn-wrap .sn-debug__bar button { padding: 3px 10px; background: #e8e4f4; color: #090017; font-size: 11px; border-radius: 3px; cursor: pointer; }
.sn-wrap .sn-debug__log { margin: 0; padding: 8px; overflow: auto; white-space: pre-wrap; word-break: break-all; }

/* ======================
   アニメーション（フワッとやわらかく）
   ・出す・出さないは js/script.js の ANIM。OSの「視差効果を減らす」・URLの ?anim=0 のときは、JSが .sn-anim を付けず、.sn-noanim で全部止める
   ・スクロールで現れる動きは、JSが付ける [data-sn-reveal]（見えるまで透明）→ .is-in（ふわっと表示）。最初から見えている部品には付けない
   ・イージング cubic-bezier(.22,.61,.36,1) = 最初は少し速く、終わりがゆっくり止まる（やわらかく着地）
   ====================== */
@keyframes sn-fade-up { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes sn-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sn-rise { from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.985); } to { opacity: 1; transform: none; } }
/* HERO 専用 */
@keyframes sn-hero-sweep {   /* 流れる入れ物（とカバー）が左の外→右の外へ。終わったら隠す（コマ送り steps。なめらかにするなら linear） */
  from { transform: translate3d(calc(var(--sn-sweep) * -1), 0, 0); visibility: visible; }
  to   { transform: translate3d(var(--sn-sweep), 0, 0); visibility: hidden; }
}
@keyframes sn-hero-kaku {   /* 流れる画像の『かくかく』: 3コマで1周。1コマごとに小さく沈んで傾く（コマ撮り風）。steps(1,end) で補間せず、コマごとに形が切り替わる。
                               沈む向き(下)だけ＝服の頭が、すぐ上のリード文に触れない（傾きで上がる端も、沈みとほぼ相殺）。沈む量は流れる画像の幅に比例（--sn-kaku-y1/y2。PCは4u・1.5u） */
  0%       { transform: translate3d(0, 0, 0) rotate(0deg); }
  33.333%  { transform: translate3d(0, var(--sn-kaku-y1), 0) rotate(-.4deg); }
  66.667%  { transform: translate3d(0, var(--sn-kaku-y2), 0) rotate(.35deg); }
  100%     { transform: translate3d(0, 0, 0) rotate(0deg); }
}
@keyframes sn-hero-type { from { opacity: 0; } to { opacity: 1; } }   /* リード文の1文字が打たれる */
@keyframes sn-hero-ghost-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes sn-hero-rise { from { opacity: 0; transform: translate3d(0, calc(30 * var(--sn-u)), 0) scale(.94); } to { opacity: 1; transform: none; } }   /* 商品がふわっと浮かび上がる（少し下・小さめから） */
@keyframes sn-hero-drop { from { transform: translate3d(0, calc(var(--sn-fin-rise) * -1), 0); } to { transform: none; } }   /* 商品が下へ（PCで173u） */
@keyframes sn-hero-text-drop { from { opacity: 0; transform: translate3d(0, calc(var(--sn-text-rise) * -1), 0); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }   /* 黒い文字が上から降りる */
@keyframes sn-hero-shrink { from { height: var(--sn-hero-h0); } to { height: var(--sn-hc); } }   /* 縦長の画面: 動き終わりに、画面いっぱい→縮んだ後の高さ（下のリード文が上に上がってくる） */
@keyframes sn-hero-lift { from { transform: translate3d(0, var(--sn-shift), 0); } to { transform: none; } }   /* 同時に中身が上へ（縮みながらも、ヒーローの中に収まる） */

@media (prefers-reduced-motion: no-preference) {
  /* ページを開いた直後（JSがなくても動く）
     HERO の時間割（開いた瞬間を0秒。PCの値）:
       0.2〜1.3 リード文の黒文字が左から1文字ずつ打たれる／0.9〜7.9 画像が左から右へゆっくり流れ切る（PCは1秒12コマのコマ送り＝かくかく・題名は画像の後ろから現れる）
       ／6.99〜8.29 リード文がゆっくり消える（絵コンテ5コマ目）／題名だけ（6コマ目）／8.59〜9.29 題名が消えて真っ白（7コマ目）
       ／9.69〜11.09 商品がふわっと浮かび上がる（8コマ目）／11.39〜13.19 商品が下へ動き、同時に黒い文字が上から降りてくる（9・10コマ目）
       ／（縦長の画面だけ）商品が動き終わった0.4秒あとから1.2秒、ヒーローの高さが縮み、中身が上へ上がる
     動きの長さ・開始を変えるときは、下の変数だけ直す（後ろの動きは前の動きが終わった後に続く＝前の変数を変えると全体がずれる）。
     ・「流れる速さ」は --hero-sweep-for（PC 7秒・縦長は下で4.5秒。長いほどゆっくり）。変えたら --hero-sweep-ease のコマ数（秒×12）と --hero-kaku-cycles（コマ数÷3）も合わせる
     ・「かくかく」: ①流れる動きを steps(コマ数, end) のコマ送りにする(--hero-sweep-ease。なめらかに戻すなら linear)
       ②流れる画像が1コマごとに小さく跳ねて傾く（下の .sn-hero__img--sweep の動き。大きさは @keyframes sn-hero-kaku。無くすなら animation: none） */
  .sn-wrap .sn-hero {
    --hero-type-at: .2s; --hero-type-step: .055s;                    /* リード文を打ち始める時刻・1文字ごとの間隔（19文字で約1秒） */
    --hero-sweep-at: .9s; --hero-sweep-for: 7s;                      /* 画像が流れ始める時刻・流れる時間（左の外→右の外） */
    --hero-sweep-ease: steps(84, end);                               /* かくかく: 1秒に12コマ（84＝7秒×12）。1440px幅だと1コマで34pxずつ進む */
    --hero-kaku-cycles: 28;                                          /* 跳ね・傾きの繰り返し回数（3コマで1周なので コマ数÷3） */
    --hero-reveal-end: .87;                                          /* 流れる画像が題名の右端を通り過ぎるころ（流れの割合）。リード文はこの後に消え始める */
    --hero-lead-out-at: calc(var(--hero-sweep-at) + var(--hero-sweep-for) * var(--hero-reveal-end)); --hero-lead-out-for: 1.3s;   /* リード文が消え始める＝題名が現れ終わるころ(絵コンテ5コマ目) */
    --hero-title-out-at: calc(var(--hero-lead-out-at) + var(--hero-lead-out-for) + .3s); --hero-title-out-for: .7s;   /* 題名だけが残る間(6コマ目)のあとで消える */
    --hero-img-at: calc(var(--hero-title-out-at) + var(--hero-title-out-for) + .4s); --hero-img-in-for: 1.4s;   /* 真っ白(7コマ目)のあと、商品が浮かび上がる(8コマ目) */
    --hero-drop-at: calc(var(--hero-img-at) + var(--hero-img-in-for) + .3s); --hero-drop-for: 1.8s;           /* 商品だけが見える間のあと、商品が下へ・文字が上から降りる(9・10コマ目) */
  }
  /* 動き終わった後に「効果を保持する(forwards)」アニメを残さない（残ると、その上に重なる最終画像が別レイヤー扱いになり、縮小描画が少し柔らかくなる）。
     終わった後の見た目は、上の基本の見た目（黒文字・流れる画像・カバーは隠れる／最終の画像と黒文字は最後の位置）がそのまま受け持つ */
  /* 流れる: 入れ物(.sn-hero__sweep)とカバーが横に動く（同じ動き＝カバーの左端は画像に付いて行く）。中の画像は、その上で小さく跳ねて傾く（入れ物の中で動くので、傾きの軸は画像の真ん中のまま） */
  .sn-wrap .sn-hero__sweep,
  .sn-wrap .sn-hero__cover { will-change: transform; animation: sn-hero-sweep var(--hero-sweep-for) var(--hero-sweep-ease) var(--hero-sweep-at) backwards; }
  .sn-wrap .sn-hero__img--sweep { will-change: transform; animation: sn-hero-kaku calc(var(--hero-sweep-for) / var(--hero-kaku-cycles)) steps(1, end) var(--hero-sweep-at) var(--hero-kaku-cycles) backwards; }
  /* 黒文字: 消えるアニメの待ち時間(backwards)が「不透明1」を保つ。リード文は span ごとに、打たれる時刻まで透明（--i は何文字目か・空白も1つ数える） */
  .sn-wrap .sn-hero__ghost--lead span { animation: sn-hero-type .05s linear calc(var(--hero-type-at) + var(--i) * var(--hero-type-step)) backwards; }
  .sn-wrap .sn-hero__ghost--lead  { animation: sn-hero-ghost-out var(--hero-lead-out-for) ease var(--hero-lead-out-at) backwards; }
  .sn-wrap .sn-hero__ghost--title { animation: sn-hero-ghost-out var(--hero-title-out-for) ease var(--hero-title-out-at) backwards; }
  /* 最後の画像: 画像そのものはふわっと浮かび上がり、入れ物(.sn-hero__stage)は浮かび上がった位置から最後の位置へ下がる。
     黒い文字も同じ長さ・同じイージングで上から降りる（同じ動きなら、文字が画像に重なることはない） */
  .sn-wrap .sn-hero__img--final { animation: sn-hero-rise var(--hero-img-in-for) cubic-bezier(.16, .84, .3, 1) var(--hero-img-at) backwards; }
  .sn-wrap .sn-hero__stage { animation: sn-hero-drop var(--hero-drop-for) cubic-bezier(.45, .05, .25, 1) var(--hero-drop-at) backwards; }
  .sn-wrap .sn-hero__lead,
  .sn-wrap .sn-hero__title { animation: sn-hero-text-drop var(--hero-drop-for) cubic-bezier(.45, .05, .25, 1) var(--hero-drop-at) backwards; }
  /* 縦長の画面（スマホ・縦持ちのタブレット）: 流れは4.5秒の『かくかく』（1秒12コマ＝54コマ・跳ねは3コマで1周＝18回）。
     流れる画像が大きい(190V)ので、題名を通り過ぎきるのは流れのほぼ最後(98%)。
     商品が下へ動き終わって0.4秒あと、ヒーローの高さが縮み(sn-hero-shrink)、同時に中身が上へ上がる(sn-hero-lift。同じ長さ・同じイージング)。
     ※上の基本より後ろに書く（同じ強さなら後ろが勝つ） */
  @media (max-aspect-ratio: 1/1) {
    .sn-wrap .sn-hero {
      --hero-sweep-for: 4.5s; --hero-sweep-ease: steps(54, end); --hero-kaku-cycles: 18; --hero-reveal-end: .98;
      --hero-shrink-at: calc(var(--hero-drop-at) + var(--hero-drop-for) + .4s); --hero-shrink-for: 1.2s;
      animation: sn-hero-shrink var(--hero-shrink-for) cubic-bezier(.45, .05, .25, 1) var(--hero-shrink-at) backwards;
    }
    .sn-wrap .sn-hero__inner { animation: sn-hero-lift var(--hero-shrink-for) cubic-bezier(.45, .05, .25, 1) var(--hero-shrink-at) backwards; }
  }

  .sn-wrap .sn-lead__text { animation: sn-fade-up 1.4s cubic-bezier(.22, .61, .36, 1) .5s backwards; }

  /* スクロールで、見えてきたらふわっと。
     待機（透明）にする瞬間は動かさず、現れる側(.is-in)にだけ transition を付ける（付け方を逆にすると、待機にする瞬間に『見えている→透明』へ1秒かけて消えてしまう） */
  .sn-wrap.sn-anim [data-sn-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); }
  .sn-wrap.sn-anim [data-sn-reveal].is-in {
    opacity: 1; transform: none;
    transition: opacity 1.1s cubic-bezier(.22, .61, .36, 1) var(--sn-d, 0ms), transform 1.2s cubic-bezier(.22, .61, .36, 1) var(--sn-d, 0ms);
  }

  /* ポップアップが開く／カートに入れた結果の文が出る */
  .sn-wrap .sn-modal__bg { animation: sn-fade .4s ease; }
  .sn-wrap .sn-modal__panel { animation: sn-rise .55s cubic-bezier(.22, .61, .36, 1); }
  .sn-wrap .sn-msg:not(:empty) { animation: sn-fade-up .5s cubic-bezier(.22, .61, .36, 1); }

  /* ふれたとき・切り替わるとき */
  .sn-wrap .sn-arrow { transition: transform .4s cubic-bezier(.22, .61, .36, 1); }
  .sn-wrap .sn-dot::before { transition: width .5s cubic-bezier(.22, .61, .36, 1), margin .5s cubic-bezier(.22, .61, .36, 1), background-color .5s ease; }
  .sn-wrap .sn-cta__btn { transition: background-color .6s ease; }
  .sn-wrap .sn-detail { transition: background-color .4s ease; }
  .sn-wrap .sn-btn, .sn-wrap .sn-qty { transition: opacity .4s ease; }
}
/* PC（マウス）だけ: タイルの写真がゆっくり少しだけ寄る・矢印がふくらむ */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .sn-wrap .sn-tile { overflow: hidden; }
  .sn-wrap .sn-tile__img { transition: transform 1.1s cubic-bezier(.22, .61, .36, 1); }
  .sn-wrap .sn-tile:hover .sn-tile__img { transform: scale(1.045); }
  .sn-wrap .sn-arrow:hover { transform: scale(1.1); }
}
/* ?anim=0（確認・テスト用）: 全部止める */
.sn-wrap.sn-noanim, .sn-wrap.sn-noanim *, .sn-wrap.sn-noanim *::before, .sn-wrap.sn-noanim *::after {
  animation: none !important; transition: none !important;
}
/* 縦長の画面で、ヒーローの動きの途中にスクロールされたとき（JSが .is-skip を付ける）: ヒーローの動きを止めて、縮んだ後の姿にする（スクロール位置が跳ねないように） */
.sn-wrap .sn-hero.is-skip,
.sn-wrap .sn-hero.is-skip * { animation: none !important; }
@media print { .sn-wrap [data-sn-reveal] { opacity: 1 !important; transform: none !important; } }

/* ======================
   SP（〜767px）
   ====================== */
@media (max-width: 767px) {
  :root { --sn-title-size: 28px; }

  .sn-wrap .sn-lead { padding: 44px 20px 64px; }
  .sn-wrap .sn-lead__text { font-size: 14px; line-height: 1.95; letter-spacing: .01em; }

  /* スノーウェアは2カラム */
  .sn-wrap .sn-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; width: 100%; margin-top: 28px; }
  .sn-wrap .sn-sec.sn-sec--wear { padding: 44px 20px 64px; }
  .sn-wrap .sn-tile__go { width: 28px; height: 28px; }
  .sn-wrap .sn-tile__go path { stroke-width: 2.4; }
  .sn-wrap .sn-tile--s .sn-tile__go { width: 20px; height: 20px; }
  .sn-wrap .sn-tile--s .sn-tile__go path { stroke-width: 3; }
  .sn-wrap .sn-reco { left: 6px; bottom: 6px; gap: 4px; }
  .sn-wrap .sn-tag { height: 22px; padding: 0 8px 0 3px; font-size: 10px; }
  .sn-wrap .sn-tag--noico { padding-left: 8px; }
  .sn-wrap .sn-tag__ico { width: 16px; height: 16px; }

  /* スライダーは2つ見えて、左右が見切れる（左右の余白=36px−すき間12px=24px分、隣が見える） */
  .sn-wrap .sn-sec--pants { padding: 56px 0 56px; }
  .sn-wrap .sn-slider { width: 100%; margin-top: 28px; }
  .sn-wrap .sn-slider__track { gap: 12px; padding: 0 36px; scroll-padding: 0 36px; }
  .sn-wrap .sn-slider__item { flex-basis: calc((100% - 12px) / 2); }
  .sn-wrap .sn-slider > .sn-arrow { display: none; }
  .sn-wrap .sn-pager { margin-top: 16px; }

  /* SNOW ITEM: 左画像・右タイトル → 上に画像 */
  .sn-wrap .sn-sec--item { padding-top: 88px; }
  .sn-wrap .sn-sec--item > .sn-title { margin-bottom: 28px; }
  .sn-wrap .sn-item { width: 100%; padding: 40px 0 40px; }
  .sn-wrap .sn-item + .sn-item { margin-top: 24px; }
  .sn-wrap .sn-item__head { grid-template-columns: 1fr; gap: 24px; padding: 0 20px; }
  .sn-wrap .sn-item__img { aspect-ratio: 4 / 5; }
  .sn-wrap .sn-item__img--top { object-position: 50% 20%; } /* 縦長の写真(716×1100)を4:5で切るとき、頭の上が切れないよう上寄せ（グローブ用。ほかの写真は中央） */
  .sn-wrap .sn-item__label { font-size: 14px; }
  .sn-wrap .sn-item__title { margin-top: 8px; font-size: 36px; }
  .sn-wrap .sn-item__text { margin-top: 16px; font-size: 14px; line-height: 1.9; }
  .sn-wrap .sn-item .sn-slider { margin-top: 28px; }

  /* CTA（SP）: 2つとも全幅のボタン。上＝「スノーアイテム一覧」（#9E90C9・紺文字）、下＝「ニット帽〜」（黒・白文字） */
  .sn-wrap .sn-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 64px; padding: 0 20px; }
  .sn-wrap .sn-cta__btn--main {
    order: -1; flex: 0 0 auto; min-height: 64px; padding: 16px 20px;
    background: var(--sn-accent2); color: var(--sn-main); font-size: 16px; font-weight: 700; letter-spacing: .04em;
  }
  .sn-wrap .sn-cta__btn--main:hover { background: var(--sn-accent2); }
  .sn-wrap .sn-cta__btn--main::after, .sn-wrap .sn-cta__btn--sub::after {
    content: ""; width: 7px; height: 7px; margin-left: 12px;
    border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg);
  }
  .sn-wrap .sn-cta__btn--sub {
    flex: 0 0 auto; min-height: 64px; padding: 16px 20px; background: var(--sn-main); color: #fff;
    font-size: 16px; font-weight: 700; letter-spacing: .04em; line-height: 1.5;
  }
  .sn-wrap .sn-cta__btn--sub:hover { background: #2b2140; }
  /* ニット帽〜の改行（『ニット帽やスヌードなど／冬の必須アイテムはこちら』）はSPでも入れる */
  .sn-wrap .sn-foot { padding: 56px 16px 48px; font-size: 12px; }

  /* ポップアップ: 画像→商品名→説明→価格・カート→セットにおすすめ の順で縦に並び、中でスクロールできる */
  .sn-wrap .sn-modal { padding: 12px; }
  .sn-wrap .sn-modal__panel { width: 100%; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .sn-wrap .sn-modal__scroll { padding: 0 0 32px; }
  .sn-wrap .sn-modal__close { top: 10px; right: 10px; }
  .sn-wrap .sn-pop { display: block; }
  .sn-wrap .sn-gal__slide { padding: 0 48px; }   /* 左右の矢印(8px+36px)が写真にかぶらないよう、両端に48pxの余白（写真はその分だけ小さくなる） */
  .sn-wrap .sn-gal__slide img { aspect-ratio: 3 / 4; object-position: center 30%; }
  .sn-wrap .sn-gal__slide img[data-fit="contain"] { object-position: center; }
  .sn-wrap .sn-pop__info { padding: 20px 20px 0; }
  .sn-wrap .sn-gal > .sn-arrow { width: 36px; height: 36px; margin-top: -18px; }
  .sn-wrap .sn-gal > .sn-arrow--prev { left: 8px; }
  .sn-wrap .sn-gal > .sn-arrow--next { right: 8px; }
  .sn-wrap .sn-gal > .sn-arrow::before { width: 12px; height: 14px; }
  .sn-wrap .sn-gal > .sn-arrow--prev::before { margin: -7px 0 0 -8px; }
  .sn-wrap .sn-gal > .sn-arrow--next::before { margin: -7px 0 0 -4px; }
  .sn-wrap .sn-pop__name { font-size: 16px; line-height: 1.5; }
  .sn-wrap .sn-pop__desc { font-size: 12px; line-height: 1.75; -webkit-line-clamp: 5; }
  .sn-wrap .sn-sel { height: 40px; font-size: 13px; line-height: 38px; }
  .sn-wrap .sn-btn { height: 42px; min-width: 124px; font-size: 13px; line-height: 42px; }
  .sn-wrap .sn-qty { height: 42px; width: 56px; font-size: 13px; line-height: 42px; }
  .sn-wrap .sn-detail { height: 42px; font-size: 13px; }
  .sn-wrap .sn-price { font-size: 16px; }
  .sn-wrap .sn-set { margin-top: 28px; }
  .sn-wrap .sn-set .sn-slider { margin-top: 20px; }
  .sn-wrap .sn-set .sn-slider > .sn-arrow { display: block; }
  .sn-wrap .sn-set .sn-slider__track { padding: 0; }
  .sn-wrap .sn-set .sn-arrow--prev { left: -14px; }    /* カード内の余白(16px)に収まる位置。セレクトに重ならない */
  .sn-wrap .sn-set .sn-arrow--next { right: -14px; }
  .sn-wrap .sn-card { gap: 16px; padding: 20px 16px 20px 16px; }
  .sn-wrap .sn-card .sn-sel { height: 36px; line-height: 34px; font-size: 12px; }
  .sn-wrap .sn-card .sn-btn { height: 38px; line-height: 38px; }
  .sn-wrap .sn-card .sn-qty { height: 38px; line-height: 38px; }
}
