/* AI活用タブ（.ln）と はじめてガイド（.gd）— 2026-12-01 ともさん・まいたいMTG。learn.js と組
   色は aishot.css の役割の名前だけを使う（紫のグラデ・地は白） */

/* ---------- ホームの帯（みんなの作品の上） ---------- */
.gd-bar-h{display:flex;align-items:center;max-width:100%;border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 6px 18px rgba(0,0,0,.25)}
.gd-bar-go{display:flex;align-items:center;gap:10px;min-height:52px;padding:6px 4px 6px 12px;text-align:left;color:var(--ink)}
.gd-bar-go>svg{flex:none;width:32px;height:32px;padding:6px;border-radius:10px;background:var(--grad-cta);fill:#fff}
.gd-bar-go span{display:flex;flex-direction:column;gap:1px;min-width:0}
.gd-bar-go b{font-size:14px;font-weight:800}
.gd-bar-go small{font-size:12px;font-weight:600;color:var(--sub)}
.gd-bar-x{flex:none;width:44px;height:44px;display:grid;place-items:center}
.gd-bar-x svg{width:20px;height:20px;fill:var(--mute)}

/* ---------- はじめてガイド（全画面） ---------- */
#gd-root{position:absolute;inset:0;z-index:30}
.gd{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--bg);color:var(--ink);padding:calc(10px + env(safe-area-inset-top,0px)) 20px calc(16px + env(safe-area-inset-bottom,0px));animation:in .2s ease-out both}
.gd-head{display:flex;align-items:center;justify-content:space-between;min-height:44px}
.gd-dots{display:flex;gap:6px}
.gd-dots i{width:22px;height:4px;border-radius:99px;background:var(--surface-3)}
.gd-dots i.on{background:var(--grad-bar)}
.gd-x svg{width:24px;height:24px;fill:var(--mute)}
.gd-vis{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:8px 0}
.gd-tx{display:flex;flex-direction:column;gap:8px;padding:4px 0 18px}
.gd-n{font-size:12px;font-weight:800;letter-spacing:.08em;color:var(--accent-text)}
.gd-tx h2{font-size:24px;font-weight:900;line-height:1.4;letter-spacing:.01em}
.gd-tx p{font-size:15px;line-height:1.7;color:var(--sub);word-break:auto-phrase}
.gd-foot{display:flex;gap:10px}
.gd-foot .btn-cta{flex:1}
.gd-back{width:auto;flex:none;padding:0 18px}

/* 絵: スマホの枠 */
.gd-ph{position:relative;height:100%;max-height:340px;aspect-ratio:9/16;border-radius:22px;overflow:hidden;background:#000;box-shadow:0 0 0 6px #211B36,0 14px 30px rgba(33,27,54,.25)}
.gd-ph>img,.gd-ph>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gd-ph.gd-short{max-height:230px}
.gd-ph.gd-plain{box-shadow:none;background:transparent;border-radius:0;max-height:380px}  /* 1枚目の動画は中にスマホの枠を持っているので、枠を重ねない */
.gd-ph.gd-plain>video{object-fit:contain}
.gd-swipe{position:absolute;left:50%;bottom:64px;width:44px;height:44px;margin-left:-22px;border-radius:50%;background:rgba(255,255,255,.9);display:grid;place-items:center;animation:gdup 1.4s ease-in-out infinite}
.gd-swipe svg{width:26px;height:26px;fill:var(--accent-text);transform:rotate(-90deg)}
@keyframes gdup{0%{transform:translateY(16px);opacity:0}30%{opacity:1}100%{transform:translateY(-36px);opacity:0}}
.gd-tabs{position:absolute;left:0;right:0;bottom:0;display:flex;background:#000;padding:6px 0 8px}
.gd-tabs span{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;font-size:8px;font-weight:700;color:rgba(255,255,255,.5)}
.gd-tabs span.on{color:#fff}
.gd-tabs svg{width:16px;height:16px;fill:currentColor}

/* 絵: 素材＋声 */
.gd-two{display:flex;align-items:center;gap:10px}
.gd-card{display:flex;flex-direction:column;align-items:center;gap:8px;width:130px}
.gd-card img,.gd-voice>svg{width:130px;height:170px;border-radius:16px;object-fit:cover}
.gd-card b{font-size:14px;font-weight:800}
.gd-voice{position:relative}
.gd-voice>svg{padding:48px 30px 70px;background:var(--surface-2);fill:var(--accent-text)}
.gd-wave{position:absolute;left:0;right:0;top:118px;display:flex;justify-content:center;gap:4px;height:24px;align-items:center}
.gd-wave i{width:4px;height:40%;border-radius:2px;background:var(--accent);animation:gdw 1s ease-in-out infinite}
.gd-wave i:nth-child(2){animation-delay:.15s}.gd-wave i:nth-child(3){animation-delay:.3s}.gd-wave i:nth-child(4){animation-delay:.45s}.gd-wave i:nth-child(5){animation-delay:.6s}
@keyframes gdw{50%{height:100%}}
.gd-plus{font-size:22px;font-weight:800;color:var(--mute);margin-bottom:28px}

/* 絵: 作成中→通知 */
.gd-stack{display:flex;flex-direction:column;gap:14px;width:min(300px,100%)}
.gd-prog{display:grid;grid-template-columns:1fr auto;gap:10px;padding:16px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line),0 8px 20px rgba(33,27,54,.08)}
.gd-prog span{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:800}
.gd-prog span i{width:8px;height:8px;border-radius:50%;background:var(--err-fill);animation:hfp 1.2s ease-in-out infinite}
.gd-prog b{font-size:15px;font-weight:900;color:var(--accent-text)}
.gd-bar{grid-column:1/-1;height:6px;border-radius:99px;background:var(--surface-3);overflow:hidden}
.gd-bar i{display:block;height:100%;width:64%;border-radius:99px;background:var(--grad-bar)}
.gd-note{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:rgba(33,27,54,.92);color:#fff;animation:gdin 2.4s ease-out infinite}
.gd-note svg{flex:none;width:30px;height:30px;padding:6px;border-radius:8px;background:var(--grad-cta);fill:#fff}
.gd-note span{display:flex;flex-direction:column;font-size:13px;font-weight:600}
.gd-note b{font-size:12px;font-weight:800;color:rgba(255,255,255,.7)}
@keyframes gdin{0%{transform:translateY(-12px);opacity:0}15%,85%{transform:none;opacity:1}100%{opacity:0}}

/* 絵: タイムラインとAIで直す */
.gd-tl{position:relative;display:flex;gap:4px;width:min(300px,100%);padding:12px 10px 46px;border-radius:14px;background:var(--tel-bg)}
.gd-tl i{height:30px;width:var(--w);border-radius:6px;background:linear-gradient(180deg,#7952D9,#5B3BB8)}
.gd-tl i:nth-child(2){background:linear-gradient(180deg,#286FDF,#1744AA)}
.gd-tl em{position:absolute;left:38%;top:6px;width:2px;height:42px;background:#fff;border-radius:1px}
.gd-ask{position:absolute;left:10px;right:10px;bottom:8px;display:flex;align-items:center;gap:6px;height:30px;padding:0 10px;border-radius:99px;background:rgba(255,255,255,.12);color:#fff;font-size:12px;font-weight:700}
.gd-ask svg{width:16px;height:16px;fill:var(--accent-hi)}

/* 絵: 育つ */
.gd-grow{display:flex;flex-direction:column;align-items:center;gap:10px}
.gd-grow span{padding:8px 16px;border-radius:99px;background:var(--surface-2);font-size:14px;font-weight:700;color:var(--sub);animation:gdin2 3s ease-in-out infinite}
.gd-grow span:nth-child(2){animation-delay:.4s}.gd-grow span:nth-child(3){animation-delay:.8s}
.gd-grow b{display:flex;align-items:center;gap:8px;margin-top:8px;padding:14px 22px;border-radius:16px;background:var(--grad-cta);color:#fff;font-size:16px;font-weight:900;box-shadow:var(--glow)}
.gd-grow b svg{width:22px;height:22px;fill:#fff}
@keyframes gdin2{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}

/* ---------- AI活用タブ ---------- */
.ln{gap:24px}
.ln-hero{display:flex;align-items:stretch;gap:14px;padding:12px;border-radius:20px;background:var(--surface-2);text-align:left;color:var(--ink)}
.ln-hv{flex:none;width:96px;aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:#000}
.ln-hv video{width:100%;height:100%;object-fit:cover;display:block}
.ln-ht{display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0}
.ln-ht .eyebrow{color:var(--accent-text)}
.ln-ht b{font-size:20px;font-weight:900;line-height:1.3}
.ln-ht small{font-size:13px;line-height:1.6;color:var(--sub)}
.ln-go{display:inline-flex;align-items:center;align-self:flex-start;gap:2px;margin-top:4px;height:36px;padding:0 10px 0 14px;border-radius:99px;background:var(--grad-cta);color:#fff;font-size:13px;font-weight:800}
.ln-go svg{width:18px;height:18px;fill:#fff}
.ln-how{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ln-hw{display:flex;flex-direction:column;gap:8px;text-align:left;color:var(--ink)}
.ln-hw img,.ln-ic{width:100%;aspect-ratio:1;border-radius:14px;object-fit:cover;background:var(--surface-2)}
.ln-ic{display:grid;place-items:center}
.ln-ic svg{width:44px;height:44px;fill:var(--accent-text)}
.ln-hw b{font-size:14px;font-weight:800;line-height:1.4}
.ln-empty{display:flex;flex-direction:column;gap:6px;padding:18px 16px;border-radius:16px;border:1px dashed var(--line-2);text-align:center}
.ln-empty b{font-size:15px;font-weight:800;line-height:1.5}
.ln-empty p{font-size:13px;line-height:1.7;color:var(--sub)}
.ln .btn svg{width:20px;height:20px;fill:currentColor}
.ln-cases{display:flex;flex-direction:column;gap:12px}
.ln-case{display:flex;gap:12px;padding:12px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.ln-cv{position:relative;flex:none;width:84px;aspect-ratio:9/16;border-radius:10px;overflow:hidden;background:#000}
.ln-cv img{width:100%;height:100%;object-fit:cover}
.ln-cv svg{position:absolute;left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;fill:#fff}
.ln-ct{display:flex;flex-direction:column;gap:6px;min-width:0}
.ln-ct b{font-size:15px;font-weight:800;line-height:1.4}
.ln-ct p{font-size:13px;line-height:1.7;color:var(--sub)}
.ln-who{display:inline-flex;align-items:center;font-size:13px;font-weight:800;color:var(--accent-text)}
.ln-who svg{width:16px;height:16px;fill:currentColor}
.ln-ol{margin:4px 0 4px 20px;font-size:15px;line-height:1.9}
.ln-play video{width:100%;max-height:70vh;border-radius:14px;background:#000;display:block}

/* 作る画面へ移した「冒頭パターン」の入口（見た目は app.css の .hk-entry） */
.mk-hk{margin-top:18px}

/* ---------- 2026-12-01 デザイン担当の直し ---------- */
.gd-tx h2{word-break:auto-phrase;line-break:strict}
.gd-vis{flex:none;height:min(52vh,420px)}
.gd-ph.gd-plain{max-height:420px}
.gd-stack,.gd-grow{transform:scale(1.15)}
.gd-grow span{background:var(--surface);box-shadow:0 0 0 1.5px var(--accent-line);color:var(--accent-text);font-weight:800;animation:none}
.ln-how{grid-template-columns:repeat(3,1fr);gap:8px}
.ln-hw{position:relative}
.ln-hw img{aspect-ratio:3/4}
.ln-hw b{font-size:13px}
.ln-hw b em{font-style:normal;font-weight:900;font-size:14px;color:var(--accent-text);margin-right:4px}
.ln-pl{position:absolute;left:6px;top:6px;display:flex;align-items:center;gap:2px;height:22px;padding:0 8px 0 4px;border-radius:99px;background:rgba(0,0,0,.55);color:#fff;font-size:11px;font-weight:800}
.ln-pl svg{width:14px;height:14px;fill:#fff}
.ln-note{font-size:13px;line-height:1.7;color:var(--sub)}
.ln .ob-ab .btn{min-height:44px;background:var(--surface);color:var(--accent-text);box-shadow:inset 0 0 0 1.5px var(--line-2)}
.ln .ob-ab .btn svg{fill:var(--accent-text)}
/* 冒頭パターンの入口＝1行の項目（主の流れ「次へ」と強さを取り合わない） */
.mk-hk{margin-top:12px;min-height:56px;padding:0 14px;border:0;box-shadow:none;background:var(--surface-2)}
.mk-hk .hk-i,.mk-hk .tag,.mk-hk small{display:none}
.mk-hk .pt b{font-size:15px;font-weight:800}
.gd-tx{flex:1;justify-content:flex-start;padding-top:8px}
.hk-entry.mk-hk .hk-i{display:none}
.mk-hk .pt{flex:1;min-width:0}.mk-hk .pt b{white-space:nowrap}
.mk-hk .pt b{width:max-content;max-width:100%}

/* ---------- 2026-12-01 B: 作る画面のテロップの高さバー・いつもの見た目 ---------- */
.pv.pos-y .tel{top:var(--ty,42%)}
.mk-pr{display:flex;align-items:center;gap:8px;min-height:44px}
.mk-pr small{flex:none;font-size:12px;font-weight:700;color:var(--sub)}
.mk-pr input[type=range]{flex:1;min-width:0;accent-color:var(--accent);height:28px}
.mk-keep{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;margin-top:4px;border-radius:12px;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--accent-text);font-size:14px;font-weight:800}
.mk-keep svg{width:18px;height:18px;fill:currentColor}

/* ---------- 2026-12-01 B: マイショット（#/myshot） ---------- */
.my{gap:24px}
.my-hero,.ln-my{display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;background:var(--surface-2);text-align:left;color:var(--ink)}
.my-ic{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--grad-cta)}
.my-ic svg{width:22px;height:22px;fill:#fff}
.my-hero b,.ln-my b{display:block;font-size:16px;font-weight:900}
.my-hero small,.ln-my small{display:block;margin-top:2px;font-size:12.5px;line-height:1.6;color:var(--sub)}
.ln-my .ot{flex:1;min-width:0}
.ln-my>svg{flex:none;width:20px;height:20px;fill:var(--mute)}
.my .li>svg:first-child{flex:none;width:20px;height:20px;fill:var(--accent-text)}
.my .li .ot{flex:1;min-width:0;text-align:left}
.my .li .ot small{display:block;margin-top:2px;font-size:12px;line-height:1.5;color:var(--sub)}
.my-look{align-items:center;gap:12px;padding:10px 0}
.my-note{font-size:13px;line-height:1.7;color:var(--sub)}
.my-habits{display:flex;flex-direction:column;gap:8px}
.my-h{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 4px 0 14px;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.my-h span{flex:1;min-width:0;font-size:14px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.my-hx{flex:none;width:40px;height:40px;display:grid;place-items:center}
.my-hx svg{width:18px;height:18px;fill:var(--mute)}
.my-add{display:flex;gap:8px}
.my-add .field{flex:1;min-width:0}
.my-add .btn{width:auto;flex:none;min-height:48px;padding:0 18px}
.my-log{display:flex;flex-direction:column;gap:10px}
.my-lg{display:flex;align-items:center;gap:10px;padding:12px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.my-lt{flex:1;min-width:0}
.my-lt small{font-size:11.5px;font-weight:700;color:var(--mute)}
.my-lt p{margin-top:2px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.my-lb{flex:none;max-width:104px;padding:8px 10px;border-radius:10px;background:var(--surface-2);color:var(--accent-text);font-size:12px;font-weight:800;line-height:1.35}
.my-in{flex:none;display:flex;align-items:center;gap:2px;font-size:12px;font-weight:800;color:var(--sub)}
.my-in svg{width:16px;height:16px;fill:currentColor}
/* 2026-12-01 C-15 書体・影・濃さのタイルに名前（make2.js mk-tl） */
.mk-t:has(.mk-tl){height:auto;min-height:54px;padding:5px 0 4px;gap:1px;align-content:center}
.mk-tl{display:block;font-size:10px;font-weight:800;line-height:1.1;color:var(--sub);white-space:nowrap}
.mk-t.on .mk-tl,.mk-t[aria-pressed="true"] .mk-tl{color:var(--accent-text)}
/* もうすぐ使える（2026-12-03・デザイン担当の指定）：横に流すカード。灰色・点線にしない（壊れて見えるため）。アイコンは薄紫の地＝本物の機能のグラデと差をつける */
.ln-soons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ln-soon{min-width:0;min-height:150px;position:relative;display:flex;flex-direction:column;gap:10px;padding:12px 10px;border:0;border-radius:var(--r-card);background:var(--surface);box-shadow:0 0 0 1px var(--line);text-align:left;color:var(--ink);font:inherit;cursor:pointer}
.ln-soon .si{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft)}
.ln-soon .si svg{width:20px;height:20px;fill:var(--accent)}
.ln-soon .mk-soon{margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:9px;background:var(--surface-3);color:var(--sub);white-space:nowrap}
.ln-soon .mk-soon b{font:800 9.5px/1 var(--f-en);letter-spacing:.02em;color:inherit;margin:0}
.ln-soon .tx>b{display:block;font-size:14px;font-weight:800;line-height:1.3}
.ln-soon small{margin-top:4px;font-size:11.5px;font-weight:700;line-height:1.5;color:var(--sub);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ln-soon:active{transform:scale(.98)}
