/* ============================================================
   sqz — スクイーズレイヤー v1.0（エナブレンド）
   ここにあるクラスは、すべて .sqz- で始まります。
   既存のLPのCSSにはさわりません。
   ============================================================ */
html.sqz-on { scrollbar-width: none; overscroll-behavior: none; }
html.sqz-on::-webkit-scrollbar { display: none; }
html.sqz-on body { overscroll-behavior: none; }

/* 触る面（ページの絵をのせて、やわらかく変形させるキャンバス） */
.sqz-canvas { position: fixed; left: 0; top: 0; z-index: 2147483000; display: none; touch-action: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; cursor: grab; }
.sqz-canvas:active { cursor: grabbing; }
html.sqz-on .sqz-canvas { display: block; }
.sqz-spacer { display: none; }
html.sqz-on .sqz-spacer { display: block; height: 130px; }

/* 操作部品（キャンバスの上にのる。変形しない） */
.sqz-ui { position: fixed; inset: 0; z-index: 2147483001; pointer-events: none; font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif; }
.sqz-ui > * { pointer-events: auto; }
.sqz-ui button { -webkit-tap-highlight-color: transparent; font: inherit; }

/* 右上：音・表示の切りかえ */
.sqz-top { position: absolute; top: calc(36px + env(safe-area-inset-top, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); display: flex; gap: 8px; }
.sqz-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.82); color: #5A3E36; font-weight: 700; font-size: 12.5px; letter-spacing: .04em;
  box-shadow: 0 6px 16px -8px rgba(90,62,54,.45), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sqz-chip svg { width: 18px; height: 18px; flex: 0 0 auto; }
.sqz-sound { width: 44px; padding: 0; justify-content: center; }
.sqz-chip[aria-pressed="true"] { background: #5A3E36; color: #fff; }
html:not(.sqz-on) .sqz-sound, html:not(.sqz-on) .sqz-dpad, html:not(.sqz-on) .sqz-bar, html:not(.sqz-on) .sqz-hint { display: none; }

/* 右下：十字キー（▲▼）。押しっぱなしで、つづけてスクロール */
.sqz-dpad { position: absolute; right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
.sqz-key { width: 54px; height: 54px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; color: #5A3E36;
  background: radial-gradient(circle at 35% 28%, #fff, #FFF1E4 55%, #F6D9C4); box-shadow: 0 10px 20px -10px rgba(90,62,54,.6), inset 0 -3px 6px rgba(201,138,75,.25), inset 0 2px 2px #fff;
  transition: transform .25s cubic-bezier(.3,.7,.3,1); touch-action: none; -webkit-user-select: none; user-select: none; }
.sqz-key:active, .sqz-key.is-on { transform: scale(.9); }
.sqz-key svg { width: 20px; height: 20px; }
.sqz-key:focus-visible, .sqz-chip:focus-visible, .sqz-thumb:focus-visible { outline: 3px solid #F28CA0; outline-offset: 3px; }

/* 右端：ドラッグできるスクロールバー */
.sqz-bar { position: absolute; right: env(safe-area-inset-right, 0px); top: calc(92px + env(safe-area-inset-top, 0px)); bottom: calc(146px + env(safe-area-inset-bottom, 0px)); width: 44px; touch-action: none; cursor: pointer; }
.sqz-bar::before { content: ""; position: absolute; right: 13px; top: 0; bottom: 0; width: 6px; border-radius: 3px; background: rgba(90,62,54,.14); }
.sqz-thumb { position: absolute; right: 0; top: 0; width: 44px; min-height: 44px; border: 0; padding: 0; cursor: grab; touch-action: none; background: transparent; }
.sqz-thumb::before { content: ""; position: absolute; right: 7px; top: 0; bottom: 0; width: 18px; border-radius: 9px; background: linear-gradient(90deg, rgba(255,255,255,.95), #FBE3D2); box-shadow: 0 6px 12px -6px rgba(90,62,54,.6), inset 0 0 0 1px rgba(201,138,75,.35); }
.sqz-thumb::after { content: ""; position: absolute; right: 12px; width: 8px; top: 50%; height: 10px; margin-top: -5px; border-top: 2px solid rgba(90,62,54,.3); border-bottom: 2px solid rgba(90,62,54,.3); }

/* 最初だけ出る、ひとことの案内 */
.sqz-hint { position: absolute; left: calc(12px + env(safe-area-inset-left, 0px)); right: 78px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); margin: 0 auto; max-width: 360px; pointer-events: none; text-align: center; line-height: 1.6;
  padding: 10px 18px; border-radius: 999px; background: rgba(90,62,54,.82); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .06em;
  transition: opacity .6s, transform .6s; }
.sqz-hint.is-gone { opacity: 0; transform: translateY(12px); }
@media (max-width: 380px) { .sqz-hint { font-size: 12px; padding: 9px 12px; } .sqz-chip { padding: 0 11px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .sqz-key, .sqz-hint { transition: none; } }

/* ===== 見た目：luxe（高級感）。data-sqz-look="luxe" のとき ===== */
html.sqz-look-luxe .sqz-ui { font-family: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; }
html.sqz-look-luxe .sqz-chip { border-radius: 0; background: rgba(14,10,9,.62); color: #EADBC0; font-weight: 600; letter-spacing: .16em;
  box-shadow: inset 0 0 0 1px rgba(201,169,110,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html.sqz-look-luxe .sqz-chip[aria-pressed="true"] { background: #C9A96E; color: #120C0A; }
html.sqz-look-luxe .sqz-key { color: #EADBC0; background: radial-gradient(circle at 35% 25%, #3A2C24, #17100D 70%);
  box-shadow: 0 12px 24px -10px #000, inset 0 0 0 1px rgba(201,169,110,.6), inset 0 2px 3px rgba(255,236,200,.18); }
html.sqz-look-luxe .sqz-bar::before { background: rgba(201,169,110,.22); width: 2px; right: 15px; }
html.sqz-look-luxe .sqz-thumb::before { width: 10px; right: 11px; border-radius: 5px; background: linear-gradient(180deg, #E8CF9E, #A9864D); box-shadow: 0 4px 10px -4px #000; }
html.sqz-look-luxe .sqz-thumb::after { display: none; }
html.sqz-look-luxe .sqz-hint { border-radius: 0; background: rgba(14,10,9,.78); color: #EADBC0; font-weight: 600; letter-spacing: .14em; box-shadow: inset 0 0 0 1px rgba(201,169,110,.5); }
html.sqz-look-luxe .sqz-key:focus-visible, html.sqz-look-luxe .sqz-chip:focus-visible, html.sqz-look-luxe .sqz-thumb:focus-visible { outline-color: #C9A96E; }
@media (max-width: 360px) { .sqz-chip { padding: 0 10px; font-size: 11px; letter-spacing: 0; } .sqz-sound { padding: 0; } html.sqz-look-luxe .sqz-chip { letter-spacing: .06em; } }
