/* =====================================================================
   AIShot ソーシャル画面（プロフィール・見つける・検索・プロフィール編集・公開の確認・警告）
   2026-11-11 design-reviewer
   読み込み順: style.css → app.css → aishot.css → この1枚（public/social.css）

   ■ 方針
   - 主役は 9:16 の映像。プロフィールは Instagram の並び（左にアイコン・右に数字3つ → 名前 → 説明 → ボタン → 3列グリッド）
   - ブランドの紫（--accent）は面に使い、上は白文字（--on-accent）。紫を文字・細線で使う時は --accent-text。面に使うのは「フォローする」「公開中」「スイッチON」「チェック済み」だけ（2026-11-19 ロゴの色 v5）
   - 映像の上（見つける）は黒の覆い＋白文字。色は aishot.css のトークンと、黒/白の透明度だけ（新しい色相は足さない）
   - はみ出し対策: 文字が入る flex 子はすべて min-width:0。1行の物は ellipsis、説明文は overflow-wrap:anywhere（長い英語URL対策）
   - 押す物は最低 44px（見た目が小さいフォローの枠は ::after で当たり判定を広げる）
   ===================================================================== */

/* ---------------------------------------------------------------------
   共通: アイコン丸（.pf-av 大 / .dc-av 小）。img が入ればそれを全面に、無ければ頭文字1字
   --------------------------------------------------------------------- */
.pf-av,.dc-av{position:relative;flex:none;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:var(--surface-2);color:var(--ink);font-weight:800;line-height:1;box-shadow:inset 0 0 0 1px var(--hair);user-select:none}
.pf-av img,.dc-av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pf-av{width:86px;height:86px;font-size:34px}
.dc-av{width:32px;height:32px;font-size:13px}

/* =====================================================================
   1) プロフィール  <div class="view prof">
   ===================================================================== */
.view.prof{gap:0;padding-top:16px;padding-bottom:0}
.pf-head{display:flex;flex-direction:column;min-width:0}

/* アイコン＋数字3つ */
.pf-row{display:flex;align-items:center;gap:16px;min-width:0}
.pf-stats{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr))}
.pf-st{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:56px;padding:4px 2px;border-radius:12px;transition:background .12s}
.pf-st:active{background:var(--surface-2)}
.pf-st b{display:block;max-width:100%;font-size:18px;font-weight:800;line-height:1.2;letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pf-st span{display:block;max-width:100%;font-size:12px;letter-spacing:-.02em;font-weight:600;line-height:1.3;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 名前・@ID・説明 */
.pf-name{display:flex;align-items:center;gap:8px;min-width:0;margin-top:14px;font-size:16px;font-weight:800;line-height:1.35}
.pf-name>b{min-width:0;font-weight:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pf-lock{flex:none;display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:999px;background:var(--surface-2);color:var(--sub);font-size:11px;font-weight:700;letter-spacing:.02em}
.pf-lock::before{content:"";width:11px;height:11px;background:currentColor;-webkit-mask:var(--ic-lock) center/contain no-repeat;mask:var(--ic-lock) center/contain no-repeat}
.pf-id{min-width:0;margin-top:2px;font-size:13px;font-weight:500;line-height:1.4;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pf-bio{margin:10px 0 0;font-size:14px;line-height:1.65;color:var(--ink);white-space:pre-line;overflow-wrap:anywhere;word-break:normal}

/* SNSリンク（Instagram / TikTok / YouTube / X）: 媒体の色は付けない＝黒いアイコン＋文字の丸ピル */
.pf-links{display:flex;flex-wrap:nowrap;gap:6px;margin:7px -16px 0;padding:5px 16px;min-width:0;overflow-x:auto;scrollbar-width:none}   /* 4つ並ぶと375pxで折り返すので1行の横スクロール（端で切れて続きが分かる） */
.pf-links::-webkit-scrollbar{display:none}
.pf-links:empty{display:none}
.pf-link{position:relative;flex:none;display:inline-flex;align-items:center;gap:5px;max-width:100%;min-width:0;height:34px;padding:0 11px 0 9px;border-radius:999px;background:var(--surface-2);color:var(--ink);font-size:12.5px;font-weight:700;text-decoration:none;transition:background .12s}
.pf-link::after{content:"";position:absolute;inset:-5px 0}            /* 当たり判定 44px（.pf-links の上下5pxの余白に収まる） */
.pf-link:active{background:var(--surface-3)}
.pf-link svg{flex:none;width:15px;height:15px;fill:currentColor}
.pf-link span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ボタン行: 自分＝[プロフィールを編集][歯車] ／ 他人＝[フォロー] */
.pf-acts{display:flex;gap:8px;margin-top:11px;min-width:0}
.pf-acts .btn{flex:1;min-width:0;width:auto;min-height:44px;padding:0 14px;border-radius:12px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pf-acts .ib{flex:none;width:44px;height:44px;border-radius:12px;background:var(--surface-2);color:var(--ink)}
.pf-acts .ib:active{background:var(--surface-3)}
.pf-acts .ib svg{width:22px;height:22px}
/* フォロー: 押す前＝ほかの主ボタンと同じグラデに白文字（aishot.css の末尾で上書き）／フォロー中＝薄い灰紫に濃い文字 */
.pf-follow{background:var(--accent);color:var(--on-accent);box-shadow:var(--glow)}
.pf-follow:active{background:var(--accent-press)}
.pf-follow.on{background:var(--surface-2);color:var(--ink);box-shadow:none}
.pf-follow.on:active{background:var(--surface-3)}

/* タブ（作品 / テンプレ）: 選択中は黒の2px線。スクロールしても上に貼り付く */
.pf-tabs{position:sticky;top:0;z-index:2;display:flex;margin:20px -16px 0;background:var(--bg);border-bottom:1px solid var(--line)}
.pf-tab{position:relative;flex:1;min-width:0;height:48px;font-size:14px;font-weight:700;color:var(--mute);transition:color .12s}
.pf-tab.on{color:var(--ink)}
.pf-tab.on::after{content:"";position:absolute;left:50%;bottom:-1px;width:56px;height:2px;margin-left:-28px;border-radius:2px;background:var(--ink)}

/* 作品グリッド（3列・9:16・端まで） */
.pf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;margin:2px -16px 0}
.pf-cell{position:relative;display:block;aspect-ratio:9/16;overflow:hidden;background:var(--surface-2);isolation:isolate}
.pf-cell>img,.pf-cell>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pf-cell:active>img,.pf-cell:active>video{opacity:.82}
.pf-badge{position:absolute;left:6px;top:6px;z-index:1;display:inline-flex;align-items:center;height:20px;max-width:calc(100% - 12px);padding:0 7px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:10px;font-weight:800;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pf-badge.busy{background:rgba(0,0,0,.58);color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.pf-cell:has(.pf-badge.busy)>img,.pf-cell:has(.pf-badge.busy)>video{opacity:.6}

/* テンプレ（販売は一覧だけ）: 箱に入れず、ヘアラインで区切る1行ずつ */
.pf-tpls{display:flex;flex-direction:column;margin:0 -16px}
.pf-tpl{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t p" "g s";column-gap:12px;row-gap:2px;align-items:center;min-height:68px;padding:12px 16px;border-bottom:1px solid var(--line)}
.pf-tpl-t{grid-area:t;min-width:0;font-size:15px;font-weight:700;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pf-tpl-g{grid-area:g;min-width:0;font-size:12px;line-height:1.4;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pf-tpl-p{grid-area:p;justify-self:end;font-size:15px;font-weight:800;line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap}
.pf-soon{grid-area:s;justify-self:end;display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:var(--surface-2);color:var(--sub);font-size:10.5px;font-weight:700;white-space:nowrap}

/* 空・見つかりません */
.pf-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:200px;padding:40px 16px;text-align:center;font-size:14px;line-height:1.7;color:var(--sub);overflow-wrap:anywhere}
.pf-empty b{font-size:16px;font-weight:800;color:var(--ink)}
.view.prof>.pf-empty:only-child{min-height:60vh}   /* 非公開を他人が見た時＝これ1つだけ */

/* =====================================================================
   2) 見つける（全画面の縦スワイプ）  <div class="dc">
   .phone の上に全面でかぶせる。上のヘッダー・下のバーは隠す
   （JSで .phone に .immersive を付けるのが確実。:has は保険）
   ===================================================================== */
.phone:has(.dc) .top,.phone:has(.dc) .tabbar,.phone:has(.dc) .dock{display:none}
.phone:has(.dc) #app{overflow:hidden;padding-bottom:0}
.dc{position:absolute;inset:0;z-index:6;background:#000;color:#fff;overflow:hidden;animation:in .24s ease-out both}

/* 上: 戻る＋検索の入口（映像の上に薄い黒のグラデ） */
.dc-top{position:absolute;left:0;right:0;top:0;z-index:3;display:flex;align-items:center;gap:8px;padding:calc(8px + env(safe-area-inset-top,0px)) 12px 28px;background:linear-gradient(to bottom,rgba(0,0,0,.5) 0%,rgba(0,0,0,.18) 60%,rgba(0,0,0,0) 100%);pointer-events:none}
.dc-top>*{pointer-events:auto}
.dc-back{flex:none;color:#fff}
.dc-back svg{width:26px;height:26px;fill:#fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.4))}
.dc-back:active{background:rgba(255,255,255,.14)}
.dc-search{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:44px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.16);-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);color:rgba(255,255,255,.86);font-size:13px;font-weight:600;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dc-search svg{flex:none;width:18px;height:18px;fill:currentColor}
.dc-search span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.dc-search:active{background:rgba(255,255,255,.24)}

/* フィード: 1枚＝画面いっぱい・ぴたっと止まる */
.dc-feed{position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.dc-feed::-webkit-scrollbar{display:none}
.dc-item{position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden;background:#000}
.dc-item>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dc-item::after{content:"";position:absolute;left:0;right:0;bottom:0;height:46%;z-index:1;pointer-events:none;background:linear-gradient(to top,rgba(0,0,0,.78) 0%,rgba(0,0,0,.42) 45%,rgba(0,0,0,0) 100%)}

/* 下: 投稿者・フォロー・タイトル・タグ（右の縦帯の分だけ右を空ける） */
.dc-meta{position:absolute;left:16px;right:76px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:2;display:flex;flex-wrap:wrap;align-items:center;column-gap:10px;row-gap:6px;min-width:0;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.dc-user{flex:0 1 auto;min-width:0;max-width:calc(100% - 100px);display:flex;align-items:center;gap:8px;min-height:44px;color:#fff;text-align:left}
.dc-user .dc-av{box-shadow:0 0 0 1.5px rgba(255,255,255,.9);text-shadow:none}
.dc-user b{flex:0 1 auto;min-width:0;font-size:14px;font-weight:800;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dc-user span:not(.dc-av){flex:0 100 auto;min-width:0;font-size:12px;font-weight:500;color:rgba(255,255,255,.72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}  /* 狭い時は@IDから先に縮む */
.dc-fol{position:relative;flex:none;height:30px;padding:0 12px;border-radius:9px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.75);color:#fff;font-size:12.5px;font-weight:800;text-shadow:none;transition:background .12s}
.dc-fol::after{content:"";position:absolute;inset:-7px -4px}           /* 当たり判定 44px */
.dc-fol:active{background:rgba(255,255,255,.18)}
.dc-fol.on{box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);color:rgba(255,255,255,.72)}
.dc-title{flex:1 0 100%;min-width:0;margin:0;font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dc-tags{flex:1 0 100%;min-width:0;display:flex;flex-wrap:wrap;gap:6px;max-height:24px;overflow:hidden}   /* 1行に入る分だけ見せる */
.dc-tags span{min-width:0;max-width:100%;display:inline-block;height:24px;padding:0 9px;border-radius:999px;background:rgba(255,255,255,.18);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:11.5px;font-weight:700;line-height:24px;text-shadow:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 右: 縦の操作帯（音・通報）。アイコン28px・当たり判定56×52px */
.dc-side{position:absolute;right:8px;bottom:calc(28px + env(safe-area-inset-bottom,0px));z-index:2;display:flex;flex-direction:column;align-items:center;gap:14px}
.dc-sb{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:56px;min-height:52px;color:#fff;font-size:11px;font-weight:700;line-height:1.2;text-shadow:0 1px 2px rgba(0,0,0,.5);transition:transform .1s}
.dc-sb svg{width:28px;height:28px;fill:#fff;filter:drop-shadow(0 1px 3px rgba(0,0,0,.45))}
.dc-sb:active{transform:scale(.9)}
.dc-sb.on svg{opacity:.6}          /* 消音中など */

.dc-empty{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:0 32px;text-align:center;font-size:15px;font-weight:600;line-height:1.7;color:rgba(255,255,255,.78)}
.dc-empty .btn{width:auto;min-width:200px}

/* =====================================================================
   3) 検索（#sheet の中）  <div class="sr">
   ===================================================================== */
.sr{display:flex;flex-direction:column;gap:18px;min-width:0}
.sr-bar{position:sticky;top:-10px;z-index:2;margin:0 -16px;padding:4px 16px 8px;background:var(--sheet)}
.sr-bar::before{content:"";position:absolute;left:30px;top:17px;width:18px;height:18px;background:var(--mute);-webkit-mask:var(--ic-search) center/contain no-repeat;mask:var(--ic-search) center/contain no-repeat;pointer-events:none}
.sr-in{width:100%;height:44px;padding:0 14px 0 42px;border:1px solid transparent;border-radius:12px;background:var(--surface-2);color:var(--ink);font:16px/1 var(--f);-webkit-appearance:none;appearance:none}   /* 16px＝iOSで勝手に拡大しない */
.sr-in::placeholder{color:var(--mute)}
.sr-in:focus{outline:0;border-color:var(--sel);background:var(--surface);box-shadow:0 0 0 3px var(--accent-soft)}
.sr-in::-webkit-search-decoration{-webkit-appearance:none}
.chips.sr-chips{flex-wrap:nowrap;overflow-x:auto;margin:-6px -16px 0;padding:2px 16px;scrollbar-width:none}
.chips.sr-chips::-webkit-scrollbar{display:none}
.chips.sr-chips .chip{flex:none;min-height:40px;padding:0 14px}
.sr-sec{display:flex;flex-direction:column;gap:4px;min-width:0}
.sr-sec>.eyebrow{margin-bottom:6px;color:var(--sub)}
.sr-sec .pf-grid{margin-top:4px}
.sr-user{display:flex;align-items:center;gap:12px;min-width:0;min-height:60px;padding:8px 0;text-align:left;border-radius:12px;transition:background .12s}
.sr-user:active{background:var(--surface-2)}
.sr-user .dc-av{width:44px;height:44px;font-size:17px}
.sr-un{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.sr-un b{font-size:14px;font-weight:800;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr-un small{font-size:12px;line-height:1.35;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr .pf-empty{min-height:120px;padding:24px 16px}

/* =====================================================================
   4) プロフィール編集（#sheet の中）  <div class="pe">
   ===================================================================== */
.pe{display:flex;flex-direction:column;gap:16px;min-width:0}
.pe-av{position:relative;align-self:center;display:flex;flex-direction:column;align-items:center;gap:8px;padding:4px 12px;cursor:pointer}
.pe-av .pf-av{width:88px;height:88px}
.pe-av em{font-style:normal;font-size:13px;font-weight:700;color:var(--ink);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px;min-height:20px}
.pe-av:active .pf-av{opacity:.8}
.pe-av:focus-within .pf-av{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--sel)}

.pe-f{display:flex;flex-direction:column;gap:6px;min-width:0}
.pe-f>span{font-size:13px;font-weight:700;color:var(--sub);line-height:1.3}
.pe-f input,.pe-f textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--ink);font:16px/1.5 var(--f);-webkit-appearance:none;appearance:none}
.pe-f input{height:48px;padding:0 14px}
.pe-f textarea{min-height:104px;padding:12px 14px;line-height:1.65;resize:none}
.pe-f input::placeholder,.pe-f textarea::placeholder{color:var(--mute)}
.pe-f input:focus,.pe-f textarea:focus{outline:0;border-color:var(--sel);background:var(--surface);box-shadow:0 0 0 3px var(--accent-soft)}
/* @ID: 「@」を頭に固定した1つの入力欄に見せる */
.pe-id{display:flex;align-items:center;min-width:0;height:48px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);transition:border-color .12s,box-shadow .12s}
.pe-id i{flex:none;padding:0 2px 0 14px;font-style:normal;font-size:16px;font-weight:700;color:var(--mute)}
.pe-f .pe-id input{flex:1;height:46px;padding:0 14px 0 0;border:0;background:transparent;box-shadow:none}
.pe-id:focus-within{border-color:var(--sel);background:var(--surface);box-shadow:0 0 0 3px var(--accent-soft)}
.pe-hint{font-size:12px;line-height:1.5;color:var(--mute)}
.pe-cnt{align-self:flex-end;font-size:11.5px;color:var(--mute);font-variant-numeric:tabular-nums}
/* 入力エラー（使われているID・字数オーバー）: .pe-f に .ng */
.pe-f.ng input,.pe-f.ng textarea,.pe-f.ng .pe-id{border-color:var(--err);box-shadow:0 0 0 3px var(--err-soft)}
.pe-f.ng .pe-id input{box-shadow:none}
.pe-f.ng .pe-hint,.pe-f.ng .pe-cnt{color:var(--err)}
.pe-links{display:flex;flex-direction:column;gap:12px;min-width:0;padding-top:4px}
.pe-links>.eyebrow{color:var(--sub)}

/* 公開スイッチの行（編集シート・作品画面で共用） */
.pe-sw{display:flex;align-items:center;gap:14px;min-width:0;padding:14px 14px 14px 16px;border-radius:var(--r-card);background:var(--surface-2)}
.pe-sw>div{flex:1;min-width:0}
.pe-sw b{display:block;font-size:15px;font-weight:800;line-height:1.4}
.pe-sw small{display:block;margin-top:3px;font-size:12px;line-height:1.6;color:var(--sub);overflow-wrap:anywhere}
.pe .pe-save{margin-top:4px}

/* スイッチ（iOS型 51×31）。既存の .sw（色見本の丸・.chip .sw / .swb .sw）と名前がぶつかるので role="switch" の時だけ効かせる */
.sw[role="switch"]{position:relative;flex:none;width:51px;height:31px;padding:0;border-radius:999px;background:var(--surface-3);box-shadow:inset 0 0 0 1px var(--line-2);transition:background .2s,box-shadow .2s}
.sw[role="switch"]::before{content:"";position:absolute;left:2px;top:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 1px 1px rgba(0,0,0,.06),0 3px 8px rgba(0,0,0,.18);transition:transform .22s cubic-bezier(.3,1.3,.5,1)}
.sw[role="switch"]::after{content:"";position:absolute;inset:-7px -4px}   /* 当たり判定 45px */
.sw[role="switch"].on,.sw[role="switch"][aria-checked="true"]{background:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-line)}
.sw[role="switch"].on::before,.sw[role="switch"][aria-checked="true"]::before{transform:translateX(20px)}
.sw[role="switch"]:disabled,.sw[role="switch"][aria-disabled="true"]{opacity:.4;cursor:not-allowed}
.sw[role="switch"]:focus-visible{outline:2px solid var(--sel);outline-offset:3px}
:root[data-theme="dark"] .sw[role="switch"]::before{background:#F5F5F2}

/* =====================================================================
   5) 作品画面の「見つけるに出す」＋出す前の確認シート
   ===================================================================== */
.share-note{margin:0;display:flex;align-items:flex-start;gap:6px;font-size:12px;line-height:1.6;color:var(--sub)}
.share-note::before{content:"";flex:none;width:13px;height:13px;margin-top:3px;background:currentColor;-webkit-mask:var(--ic-lock) center/contain no-repeat;mask:var(--ic-lock) center/contain no-repeat}

.sh-ok{display:flex;flex-direction:column;gap:10px;min-width:0}
.sh-ok h3{margin:4px 0 6px;font-size:18px;font-weight:900;line-height:1.4}
label.ck{position:relative;display:flex;align-items:flex-start;gap:12px;min-width:0;min-height:56px;padding:14px 14px 14px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);cursor:pointer;transition:border-color .12s,background .12s}
label.ck input{flex:none;position:relative;width:24px;height:24px;margin:0;border:2px solid var(--line-2);border-radius:7px;background:var(--surface);-webkit-appearance:none;appearance:none;cursor:pointer;transition:background .12s,border-color .12s}
label.ck input::after{content:"";position:absolute;left:6px;top:2px;width:6px;height:11px;border:solid var(--on-accent);border-width:0 2.5px 2.5px 0;transform:rotate(45deg) scale(0);transition:transform .14s}
label.ck input:checked{background:var(--accent);border-color:var(--sel)}
label.ck input:checked::after{transform:rotate(45deg) scale(1)}
label.ck input:focus-visible{outline:2px solid var(--sel);outline-offset:2px}
label.ck span{flex:1;min-width:0;font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
label.ck:has(input:checked){border-color:var(--sel);background:var(--accent-soft)}
.sh-ok .btn{margin-top:8px}

/* =====================================================================
   6) 自動操作の警告（全画面にかぶせる）＋「見すぎ」の帯
   ===================================================================== */
.bot-alert{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:24px 20px calc(24px + env(safe-area-inset-bottom,0px));background:rgba(0,0,0,.62);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:ba-in .2s ease-out both}
.ba-card{width:100%;max-width:360px;display:flex;flex-direction:column;align-items:center;gap:12px;padding:28px 22px 20px;border-radius:24px;background:var(--surface);color:var(--ink);box-shadow:0 24px 60px rgba(0,0,0,.35);text-align:center;animation:in .24s ease-out both}
.ba-ic{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--err-soft);color:var(--err);font-size:28px;font-weight:900;line-height:1}
.ba-ic svg{width:30px;height:30px;fill:currentColor}
.ba-card h2{margin:4px 0 0;font-size:19px;font-weight:900;line-height:1.4}
.ba-card p{margin:0;font-size:14px;line-height:1.75;color:var(--sub);text-align:left;overflow-wrap:anywhere}
.ba-card .btn{margin-top:8px}
@keyframes ba-in{from{opacity:0}to{opacity:1}}

/* 「短い時間にたくさん見すぎ」: 上から出る琥珀の帯（トーストより長く出す・責めない色） */
.rate-note{position:fixed;left:50%;top:calc(64px + env(safe-area-inset-top,0px));z-index:30;display:flex;align-items:flex-start;gap:10px;width:min(398px,calc(100% - 32px));padding:12px 14px;border-radius:14px;background:var(--warn-soft);color:var(--ink);font-size:13px;font-weight:700;line-height:1.55;box-shadow:0 8px 24px rgba(0,0,0,.16);overflow-wrap:anywhere;transform:translate(-50%,-12px);opacity:0;pointer-events:none;transition:opacity .22s,transform .22s}
.rate-note::before{content:"";flex:none;width:8px;height:8px;margin-top:6px;border-radius:50%;background:var(--warn)}
.rate-note.on{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.rate-note small{display:block;font-weight:500;color:var(--sub)}

/* ---------------------------------------------------------------------
   アイコン（mask 用。色は background:currentColor / var() で付けるので、ここに色は持たない）
   :root は触らない。使う部品の上でだけ形の変数を持つ
   --------------------------------------------------------------------- */
.pf-lock,.share-note,.sr-bar{
  --ic-lock:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7A5 5 0 0 0 7 7v2a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2zM9 7a3 3 0 0 1 6 0v2H9z'/%3E%3C/svg%3E");
  --ic-search:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.5 3a7.5 7.5 0 0 1 5.96 12.05l4.25 4.24-1.42 1.42-4.24-4.25A7.5 7.5 0 1 1 10.5 3zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11z'/%3E%3C/svg%3E");
}
/* アイコン未設定＝人のシルエット（頭文字は「く」が戻る矢印に見えたため・2026-11-11） */
.pf-noimg{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--mute)}
.pf-noimg svg{width:56%;height:56%;fill:currentColor}
.dc-who{display:contents}  /* JS側の包み。名前とフォローを .dc-meta の同じ行に並べる */
/* テンプレ一覧の下の「出す」ボタンと注記（.pf-tpls は左右 -16px で全幅のため、ここだけ内側に戻す） */
.pf-tpls>.pf-tpl-add{margin:16px 16px 0;width:auto}
.pf-tpls>.pf-note{margin:8px 16px 0;font-size:12.5px;line-height:1.6;color:var(--mute)}
.pf-head .pf-note{margin-top:10px;font-size:12.5px;line-height:1.6;color:var(--mute)}
/* 「プロフィールを公開する」は文の続きとして下線リンクで（横並びで折り返すと読みにくかった） */
.share-note{display:block}
.share-note .lnk{display:inline;padding:0;margin-left:4px;background:none;border:0;font:inherit;font-weight:800;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.share-note::before{display:inline-block;vertical-align:-2px;margin:0 6px 0 0}
/* 2026-11-11「作成」→「My Contents」。狭い画面（〜359px）では文字を少し小さくし、入らなければ2行に折る（切れて「…」にしない） */
@media (max-width:359px){.pf-st span{font-size:11px;white-space:normal;text-overflow:clip;text-align:center;word-break:keep-all;overflow-wrap:anywhere}}
/* followers 2026-11-19 */
/* ↑この目印から、下の終わりの目印 「/followers 2026-11-19」 までが「フォロワーの一覧」の分（たいが 2026-11-19）。外す時はこの間だけ消す */
/* =====================================================================
   7) フォロワーの一覧  <div class="view fl">   2026-11-19 design-reviewer
   画面: #/prof/followers（自分）・#/u/<@ID>/followers（ほかの人）
   「フォロー」の一覧を後で足す時も、この部品をそのまま使う（題名の文字だけ変える）

   ■ 方針
   - 主役は人（アイコンと名前）。行は箱に入れず、線も引かず、余白だけで区切る
   - フォローのボタンは30個並ぶので、アクセントの面を使わない
     押す前＝文字色の細い輪郭 ／ フォロー中＝薄い灰の面（プロフィールの「フォロー中」と同じ面）
     → アクセントが何色に変わっても、この一覧は 文字色・灰・地の色 だけで成り立つ
   - 色は aishot.css の変数だけ（HEX・rgb は書かない）
   - はみ出し対策: 名前と@IDは1行で「…」。ボタンは最小幅＋nowrap（文字は切れない・折れない・押しても幅が変わらない）
   - 押す物は最低44px。行（プロフィールへ）とボタン（フォロー）の当たり判定は重ねない（間に4pxのすき間）
   - 状態のクラスは fl- を付ける（素の .err は aishot.css が赤い面を付けるので使わない）
   ===================================================================== */

/* ---- プロフィールの数字: <button> にした物だけが押せる（今は「フォロワー」。後で「フォロー」も button にすれば同じ見た目になる） ---- */
button.pf-st{cursor:pointer}
/* 押せる印＝アプリの「押せる文字」と同じ語彙（--accent-text＋薄い下線。aishot.css の .link と同じ）。
   下線の分は余白で相殺して、3つの数字と文字の高さをそろえたまま */
button.pf-st span{padding-bottom:3px;margin-bottom:-3px;color:var(--accent-text);font-weight:700;text-decoration:underline;text-decoration-color:var(--line-2);text-decoration-thickness:1px;text-underline-offset:3px}
:root[data-theme="dark"] button.pf-st span{text-decoration:none}
/* 押せない物（My Contents・フォロー）は、押しても灰色にならないようにする */
.pf-stats>div.pf-st:active{background:none}
/* 320〜359px: 「フォロワー」が「フォロワ／ー」と2行に折れて、数字の高さが列ごとにずれていた（元からの崩れ）。
   列の配分を文字数に合わせて1行に収め、万一折れても数字は上でそろえる */
@media (max-width:359px){
  .pf-stats{grid-template-columns:minmax(0,1.42fr) minmax(0,1.08fr) minmax(0,.86fr)}
  .pf-st{justify-content:flex-start;padding-top:10px}
  .pf-st b{font-size:16px}
  .pf-st span{font-size:10.5px}
}

/* ---- 上のバーの題名: 1行目「フォロワー 128」／2行目「@ID」 ---- */
.top .fl-top>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}
.top .fl-top i{margin-left:6px;font-style:normal;font-weight:700;letter-spacing:0;color:var(--sub);font-variant-numeric:tabular-nums}
.top .fl-top small{margin-top:2px;font-size:11px;font-weight:600;letter-spacing:0;line-height:1.3;color:var(--sub);overflow:hidden;text-overflow:ellipsis}

/* ---- 一覧 ---- */
.view.fl{gap:0;padding-top:4px;padding-bottom:0;animation:none}   /* 読み込み中の形→中身、戻ってきた時、どちらも画面を動かさない */
.fl-list{display:flex;flex-direction:column;min-width:0}
.fl-row{display:flex;align-items:center;gap:8px;min-width:0;min-height:64px}

/* 行の左（アイコン＋名前）＝プロフィールへ。押した時の灰色がアイコンに貼り付かないよう、左に8pxはみ出させる */
.fl-who{flex:1;min-width:0;display:flex;align-items:center;gap:12px;min-height:60px;margin-left:-8px;padding:6px 4px 6px 8px;border-radius:12px;text-align:left;transition:background .12s}
button.fl-who:active{background:var(--surface-2)}
.fl-who .dc-av{width:44px;height:44px;font-size:17px}
.fl-un{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.fl-un b{font-size:14px;font-weight:800;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fl-un small{font-size:12px;line-height:1.35;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 行の右: フォローのボタン（見た目32px・当たり判定48px）。2つの状態で幅が同じ＝押しても名前が動かない */
.fl-fol{position:relative;flex:none;min-width:96px;height:32px;padding:0 10px;border-radius:10px;box-shadow:inset 0 0 0 1px var(--ink);color:var(--ink);font-size:12.5px;font-weight:800;line-height:1;white-space:nowrap;transition:background .12s,opacity .12s}
.fl-fol::after{content:"";position:absolute;inset:-8px -6px -8px -4px}
.fl-fol:active{background:var(--surface-2)}
.fl-fol.on{background:var(--surface-2);box-shadow:none;color:var(--sub);font-weight:700}
.fl-fol.on:active{background:var(--surface-3)}
.fl-fol:disabled{opacity:.5}
/* 自分の行: ボタンの代わりに文字だけ（ボタンと同じ幅の中で中央＝右の列がそろう） */
.fl-me{flex:none;min-width:96px;padding:0 10px;text-align:center;font-size:12.5px;font-weight:700;line-height:1;color:var(--mute);white-space:nowrap}
@media (max-width:359px){.fl-fol,.fl-me{min-width:88px;padding:0 6px}}   /* 狭い画面は名前に8px返す（「フォローする」75pxは入る） */

/* ---- 一覧の下（.fl-foot の中）: 非公開の人数 ／ 続きの読み込み ／ 失敗 ---- */
.fl-note{margin:0;padding:14px 0 6px;text-align:center;font-size:12.5px;line-height:1.6;color:var(--mute);overflow-wrap:anywhere}
.fl-note::before{content:"";display:inline-block;width:12px;height:12px;margin-right:6px;vertical-align:-1px;background:currentColor;-webkit-mask:var(--ic-lock) center/contain no-repeat;mask:var(--ic-lock) center/contain no-repeat}
.fl-state{display:flex;align-items:center;justify-content:center;gap:8px;min-height:56px;font-size:12.5px;font-weight:600;line-height:1.4;color:var(--sub)}
.fl-state p{margin:0}
.fl-state.fl-busy::before{content:"";flex:none;width:16px;height:16px;border-radius:50%;border:2px solid var(--surface-3);border-top-color:var(--sel);animation:fl-spin .9s linear infinite}
.fl-state.fl-fail{flex-direction:column;gap:8px;padding:12px 0 4px}
.fl-state .btn{min-width:176px;white-space:nowrap}
@keyframes fl-spin{to{transform:rotate(360deg)}}

/* ---- 最初の読み込み中: 行と同じ形の灰色（中身が出た時に画面が動かない） ---- */
.fl-list[aria-busy="true"]{animation:fl-pulse 1.6s ease-in-out infinite}
.fl-sk{pointer-events:none}
.fl-sk .dc-av{box-shadow:none}
.fl-sk .fl-un{gap:7px}
.fl-sk b,.fl-sk small{display:block;border-radius:6px;background:var(--surface-2)}
.fl-sk b{width:46%;height:12px}
.fl-sk small{width:30%;height:10px}
.fl-sk:nth-child(3n+2) b{width:60%}
.fl-sk:nth-child(3n) b{width:38%}
.fl-sk:nth-child(3n) small{width:24%}
@keyframes fl-pulse{50%{opacity:.5}}

/* ---- 0人・最初の読み込み失敗（.pf-empty を使う。上に人の形の丸を1つ） ---- */
.view.fl>.pf-empty{justify-content:flex-start;min-height:0;padding-top:18vh;gap:4px}   /* 上下中央にしない＝文の行数が違っても丸と見出しの高さが同じ */
.fl-empty-ic{width:64px;height:64px;margin-bottom:12px;box-shadow:none}
.view.fl>.pf-empty b{margin-bottom:2px}
.fl-sub{display:block;max-width:100%}
.fl-sub i{display:inline-block;font-style:normal}   /* 文のかたまりごとに折る（「フ／ォロー」のように語の途中で折らない） */
.view.fl>.pf-empty .btn{margin-top:14px;min-width:176px;white-space:nowrap}

/* アイコン（mask 用。色は持たない） */
.fl-note{--ic-lock:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7A5 5 0 0 0 7 7v2a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2zM9 7a3 3 0 0 1 6 0v2H9z'/%3E%3C/svg%3E")}
/* /followers 2026-11-19 */

/* home-swipe 2026-11-19 */
/* =====================================================================
   7) ホームの「みんなの作品」（見つけるの横スワイプ版）  <section class="sec hs">
   2026-11-19 design-reviewer ／ social.css の末尾に足すだけ（上の行は1つも変えない）

   ■ 方針
   - 「見つける」の1本（.dc-item＝video＋.dc-meta＋.dc-side）をそのまま横に並べ、.hs の下で大きさと出す物だけ変える
     既存の .dc-* への上書きは必ず .hs の下。全画面の「見つける」（.dc の中）は1pxも変わらない
   - 色は aishot.css の変数だけ（ブランド色の値に寄りかからない）。映像の上に重ねる物（札・文字・暗幕）だけ黒／白の透明度
   - 見出しは今のホームの段と同じ部品（.sh ＞ .t ＞ .eyebrow＋h2 ／ 右に .link）。新しい見出しの形は作らない
   - カードの幅＝レールの中身の幅 −94px（390幅で 264×469）。次の1枚がいつも94px見える。上限290px
   - 最後の「見つける」カードの幅＝残りぜんぶ（390幅で78px）。最後の動画で止めた時、右端がぴったり埋まる
   - 止まっている時に文字が途中で切れる所を作らない: 隣で待っているカードは文字を出さない（絵だけ）
   - 動いているのは「いま真ん中で見ている1枚」だけ。その1枚に JS が .is-on を付ける
   ===================================================================== */

/* ---------------------------------------------------------------------
   段の器。.view の直下なら前後は .view の gap（28px）。
   .sec の中（「新しく作る」や進み具合カードの直後）に入れた時だけ、前後を 14+10=24px に広げる
   --------------------------------------------------------------------- */
.hs{display:flex;flex-direction:column;gap:12px;min-width:0}
.sec>.hs{margin:10px 0}
.hs>.sh{min-width:0}
.hs>.sh h2{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs>.sh .link{flex:none;white-space:nowrap}

/* ---------------------------------------------------------------------
   レール（横スワイプ）。左右は画面の端まで出す（中身の左端は見出しと同じ16px）
   上6px・下30pxの内側の余白＝カードの影と細い縁を切らないための場所。同じだけ外側を引いて、段の高さには足さない
   --------------------------------------------------------------------- */
.hs-rail{--hs-w:min(calc(100% - 94px),290px);--hs-gap:16px;
  display:flex;align-items:flex-start;gap:var(--hs-gap);min-width:0;
  margin:-6px -16px -30px;padding:6px 16px 30px;
  overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;scroll-padding:0 16px;
  overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.hs-rail::-webkit-scrollbar{display:none}

/* ---------------------------------------------------------------------
   カード＝「見つける」の .dc-item。大きさ・角丸・縁だけここで決める
   待っているカード: 絵を少し暗く・影なし・文字なし ／ 見ているカード（.is-on）: 明るい・影あり・文字あり
   --------------------------------------------------------------------- */
.hs .dc-item{flex:0 0 var(--hs-w);min-width:0;height:auto;aspect-ratio:9/16;
  border-radius:var(--r-hero);background:var(--surface-2);
  outline:1px solid var(--hair);outline-offset:-1px;  /* 細い縁はカードの内側に引く（外に出すと、左へ送った前のカードの縁が画面の左端に1pxの線で残る） */
  scroll-snap-align:start;scroll-snap-stop:always;
  isolation:isolate;transform:translateZ(0);          /* Safari で角丸の外に映像がはみ出すのを防ぐ */
  cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
  transition:box-shadow .25s ease,transform .12s ease}
.hs .dc-item.is-on{box-shadow:var(--sh-hero)}
.hs .dc-item:active{transform:scale(.985)}
.hs .dc-item:focus-visible{outline:2px solid var(--sel);outline-offset:2px}
.hs .dc-item>video{transition:filter .25s ease}
.hs .dc-item:not(.is-on)>video{filter:brightness(.72)}

/* 下の暗幕: 名前とタイトルが載る下91pxだけ濃くする（名前の行＝下から55〜79pxは、真っ白な映像の上でも白文字 4.5:1 以上）。
   高さは34%まで＝動画に焼いてあるテロップ（カードの上から65〜80%あたり）を暗くしない（48%だとテロップが灰色に沈んだ・design-reviewer 実物チェック） */
.hs .dc-item::after{height:34%;background:linear-gradient(to top,rgba(0,0,0,.82) 0%,rgba(0,0,0,.74) 25%,rgba(0,0,0,.58) 50%,rgba(0,0,0,.26) 75%,rgba(0,0,0,0) 100%)}

/* 右上の札「全画面」＝タップすると全画面の「見つける」が開く合図。見ている1枚にだけ出す（文字は \5168\753B\9762 ＝全画面） */
.hs .dc-item::before{content:"\5168\753B\9762";position:absolute;right:10px;top:10px;z-index:2;
  height:26px;padding:0 10px 0 27px;border-radius:999px;
  background:rgba(0,0,0,.46) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z'/%3E%3C/svg%3E") 9px 50%/13px 13px no-repeat;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  color:#fff;font-size:11px;font-weight:800;line-height:26px;letter-spacing:.02em;white-space:nowrap;
  pointer-events:none;opacity:0;transition:opacity .2s ease}
.hs .dc-item.is-on::before{opacity:1;transition-delay:.08s}

/* カードの上の文字: アイコン24px＋表示名（1行）→ タイトル（2行まで）。ここは押す物ではない（カード全体が1つの押す物）
   color:#fff は必ず要る（全画面の方は親の .dc が白を持っているが、ホームには .dc が無いのでタイトルが地の文字色になる） */
.hs .dc-meta{left:12px;right:12px;bottom:12px;column-gap:0;row-gap:5px;color:#fff;pointer-events:none;opacity:0;transition:opacity .2s ease}
.hs .dc-item.is-on .dc-meta{opacity:1;transition-delay:.08s}
.hs .dc-user{max-width:100%;min-height:0;gap:6px}
.hs .dc-av{width:24px;height:24px;font-size:10px}
.hs .dc-user b{font-size:12.5px}
.hs .dc-user>span:not(.dc-av){display:none}            /* @ID はホームでは出さない */
.hs .dc-title{font-size:13px;line-height:1.45}
.hs .dc-fol,.hs .dc-tags,.hs .dc-side{display:none}    /* フォロー・タグ・音・通報は全画面で */

/* ---------------------------------------------------------------------
   最後のカード「見つける」（button.hs-more）。幅＝残りぜんぶ・高さ＝動画のカードと同じ
   ヘッダー右上のコンパスと同じ絵を置く（ここが「見つける」の入口だと覚えてもらう）
   --------------------------------------------------------------------- */
.hs-more{flex:0 0 calc(100% - var(--hs-w) - var(--hs-gap));align-self:stretch;min-width:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:0 4px;
  border-radius:var(--r-hero);background:var(--surface-2);color:var(--ink);
  scroll-snap-align:none;transition:background .12s,transform .12s}
.hs-more svg{flex:none;width:40px;height:40px;fill:currentColor}
.hs-more b{max-width:100%;font-size:12px;font-weight:800;line-height:1.3;letter-spacing:0;white-space:nowrap}
.hs-more:active{background:var(--surface-3);transform:scale(.985)}

/* ---------------------------------------------------------------------
   読み込み中（.hs-rail.is-loading ＞ .hs-sk ×2）。大きさ・角丸・並びは本物のカードと同じ＝入れ替わっても1pxも動かない
   1枚目だけ下に「アイコン・名前・タイトル2行」の骨組み。2枚目は絵だけ（本物も隣は文字なし）
   --------------------------------------------------------------------- */
.hs-rail.is-loading{overflow:hidden;scroll-snap-type:none}
.hs-sk{position:relative;flex:0 0 var(--hs-w);min-width:0;aspect-ratio:9/16;border-radius:var(--r-hero);background:var(--surface-2);animation:hs-pulse 1.4s ease-in-out infinite}
.hs-sk+.hs-sk{animation-delay:.2s}
.hs-sk i{position:absolute;left:12px;height:10px;border-radius:5px;background:var(--surface-3)}
.hs-sk i:nth-child(1){bottom:55px;width:24px;height:24px;border-radius:50%}
.hs-sk i:nth-child(2){left:42px;bottom:62px;width:88px}
.hs-sk i:nth-child(3){bottom:34px;width:72%}
.hs-sk i:nth-child(4){bottom:16px;width:46%}
.hs-sk+.hs-sk i{display:none}
@keyframes hs-pulse{0%,100%{opacity:1}50%{opacity:.55}}

/* ---------------------------------------------------------------------
   読み込めなかった時（.hs-msg）。レールの代わりに1行だけ（高さ64px）。大きな空の箱は置かない
   --------------------------------------------------------------------- */
.hs-msg{display:flex;align-items:center;gap:12px;min-width:0;min-height:64px;padding:10px 10px 10px 16px;border-radius:var(--r-card);background:var(--surface-2);color:var(--sub);font-size:13.5px;font-weight:600;line-height:1.5}
.hs-msg>span{flex:1;min-width:0;overflow-wrap:anywhere}
.hs-msg .btn{flex:none;white-space:nowrap}

/* ---------------------------------------------------------------------
   ダーク（<html data-theme="dark">）: 色はすべて変数なので、そのまま切り替わる
   （--surface-2/-3・--ink・--hair・--sh-hero がダークの値になる）。隣のカードだけ、黒い地に沈みすぎないよう暗くする量を減らす
   --------------------------------------------------------------------- */
:root[data-theme="dark"] .hs .dc-item:not(.is-on)>video{filter:brightness(.8)}

/* 動きを減らす設定の時: 色・影・文字の出入り・押した時の縮みを止める（自動再生を止めるのは JS 側） */
@media (prefers-reduced-motion:reduce){
  .hs-rail{scroll-behavior:auto}
  .hs .dc-item,.hs .dc-item>video,.hs .dc-item::before,.hs .dc-meta,.hs-more{transition:none}
  .hs .dc-item.is-on::before,.hs .dc-item.is-on .dc-meta{transition-delay:0s}
  .hs .dc-item:active,.hs-more:active{transform:none}
  .hs-sk{animation:none}
}
/* /home-swipe 2026-11-19 */
/* nihongo 2026-11-21 */
/* 検索のシートの小見出しを日本語（アカウント／動画）に戻した。英字用の広い字間（.16em）のままだと間延びするので詰める */
.sr-sec>.eyebrow{letter-spacing:.04em;font-size:12px;font-weight:700}
/* /nihongo 2026-11-21 */

/* =====================================================================
   2026-12-01 ホーム＝みんなの作品だけ（ともさんMTG）  <div class="dc dc-home">
   見つけると同じ全画面の縦スワイプ。違い＝下のタブは出したまま（黒）・上は「みんなの作品」と探すボタン・作成中の札・ガイドの帯
   ===================================================================== */
/* 表紙の絵を下に敷き、動画は動き出してから見せる＝スワイプの間に黒い画面を挟まない（見つける・ホーム共通） */
.dc-pv{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dc-item>video{opacity:0;transition:opacity .12s linear}
.dc-item.is-play>video{opacity:1}
@media (prefers-reduced-motion:reduce){.dc-item>video{opacity:1}}

.phone.is-home .top{display:none}
.phone:has(.dc-home) .tabbar{display:flex;background:#000;border-top-color:#1c1c1e;-webkit-backdrop-filter:none;backdrop-filter:none}
.phone:has(.dc-home) .tabbar .tab{color:rgba(255,255,255,.55)}
.phone:has(.dc-home) .tabbar .tab.on{color:#fff}
.phone:has(.dc-home) .tabbar .orb::before{background:rgba(255,255,255,.12)}
.dc.dc-home{bottom:calc(var(--tab-h) + env(safe-area-inset-bottom,0px));z-index:4;animation:none}
.dc-home .dc-meta{bottom:16px}
.hf-top{justify-content:space-between;padding-left:16px}
.hf-ttl{font-size:17px;font-weight:800;letter-spacing:.02em;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.45)}
.hf-q{color:#fff}
.hf-q svg{width:26px;height:26px;fill:#fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.4))}
.hf-q:active{background:rgba(255,255,255,.14)}
.hf-btn{width:auto;min-width:200px}

/* 上の札（作成中・ガイド）: 見出しの下に縦に積む */
.hf-over{position:absolute;left:12px;right:12px;top:calc(60px + env(safe-area-inset-top,0px));z-index:4;display:flex;flex-direction:column;align-items:flex-start;gap:8px;pointer-events:none}
.hf-over:empty{display:none}
.hf-over>*{pointer-events:auto}
.hf-pill{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 10px 0 12px;border-radius:999px;background:rgba(0,0,0,.5);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);color:#fff;font-size:13px;font-weight:700}
.hf-pill i{width:8px;height:8px;border-radius:50%;background:#ff5a5f;animation:hfp 1.2s ease-in-out infinite}
.hf-pill b{font-weight:800}
.hf-pill small{margin-left:6px;font-size:11.5px;font-weight:600;color:rgba(255,255,255,.7)}
.hf-pill svg{width:18px;height:18px;fill:rgba(255,255,255,.75)}
@keyframes hfp{50%{opacity:.35}}

/* 2026-12-01 デザイン担当: 上は1行だけ／ホームでは@IDを出さない */
.hf-top{gap:8px}
.hf-ttl{flex:1;min-width:0}
.hf-job:empty{display:none}
.hf-pill{height:28px;padding:0 10px;gap:6px;font-size:12px;font-weight:800;background:rgba(0,0,0,.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.hf-pill small{margin-left:2px;font-size:11px}
.dc-home .dc-user span:not(.dc-av){display:none}
.dc-home .dc-user{max-width:calc(100% - 100px)}
/* 2026-12-01 プロフィールのタブ（公開中／全作品＝自分だけ／販売） */
.pf-tab{display:inline-flex;align-items:center;justify-content:center;gap:4px}
.pf-tab svg{width:14px;height:14px;fill:currentColor}
.pf-empty small{display:block;margin-top:2px;font-size:13px;font-weight:500;color:var(--sub)}
.pf-empty .btn{width:auto;min-width:176px;margin-top:12px}
.pf-sale b{font-size:18px;letter-spacing:.04em;color:var(--accent-text)}
