/* 見た目の方針 (2026-11-29〜): 白と淡い青の地に、濃紺の文字。強調とボタンは青のグラデーション。
   のっぺりさせないよう、カードは白の面 + やわらかい青みの影で浮かせ、地には淡い青の光を置く。 */
:root {
  --bg: #f4f7fd;
  --surface: #ffffff;
  --surface-2: #eaf0fb;
  --line: #dde5f2;
  --line-strong: #cfdaec;
  --line-soft: rgba(15, 27, 51, 0.08);
  --text: #0f1b33;
  --text-2: #3d4a63;
  --muted: #7b879c;
  --accent: #2563eb;        /* 青。色ブロックとボタンの地に使う (上の文字は白) */
  --accent-deep: #1d4ed8;   /* 白地の上に置く文字・リンク用の、濃い青 */
  --accent-ink: #ffffff;
  --tint: #e4eeff;          /* 青を薄めた色。札や目印の地 */
  --danger: #d6312b;
  --radius: 18px;
  --font: "LINE Seed JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "palt";
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(14, 165, 233, 0.16), transparent 62%),
    radial-gradient(780px 480px at -8% 12%, rgba(37, 99, 235, 0.12), transparent 62%),
    radial-gradient(700px 500px at 50% 110%, rgba(99, 102, 241, 0.08), transparent 60%);
}
main, .nav-inner, .footer-inner { max-width: 1160px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
h1, h2, h3 { line-height: 1.18; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
h3 { letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --- ナビ --- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav nav { display: flex; align-items: center; gap: 24px; font-size: 0.92rem; }
.nav nav a { color: var(--text); text-decoration: none; opacity: 0.72; transition: opacity .15s; }
.nav nav a:hover { opacity: 1; }
.nav-email { color: var(--muted); max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: 0.01em; font-size: 1.16rem; text-decoration: none; }
.logo-mark { width: 13px; height: 23px; border-radius: 3px; background: var(--accent); box-shadow: 6px 4px 0 0 var(--text); margin-right: 8px; }

/* --- ボタン・入力 --- */
.btn {
  font: inherit; font-weight: 700; font-size: 0.92rem; border: 1px solid transparent; border-radius: 9px;
  padding: 9px 16px; cursor: pointer; white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .12s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--text); color: #fff; }
.btn.primary:hover { background: #34323a; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--text); }
.btn.big { padding: 14px 24px; font-size: 1rem; }
.btn.small { padding: 6px 12px; font-size: 0.82rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-deep); cursor: pointer; text-decoration: underline; }
input[type=url], input[type=email], input[type=password], input[type=text], select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; padding: 12px 14px; width: 100%; min-width: 0;
}
input:focus-visible, select:focus-visible, .btn:focus-visible, summary:focus-visible, .seg input:focus-visible + span {
  outline: 2px solid var(--text); outline-offset: 2px;
}
input::placeholder { color: #aaa7b0; }
.url-form {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 8px 8px 18px; transition: border-color .2s;
}
.url-form:focus-within { border-color: var(--text); }
.url-form .ico { color: var(--muted); }
.url-form input { flex: 1; border: 0; background: none; padding: 12px 6px; outline: none; font-size: 1.02rem; }
.url-form .btn.primary { background: var(--accent); color: var(--accent-ink); }
.url-form .btn.primary:hover { background: #3b82f6; }
.url-form.in-card { background: var(--bg); padding: 4px 16px; }

/* --- ヒーロー: 大きな見出しと、URL を貼る箱を真ん中に --- */
.hero { text-align: center; padding-top: 76px; padding-bottom: 96px; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text); background: var(--tint); padding: 3px 12px; border-radius: 4px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.7rem, 8.4vw, 6.8rem); line-height: 1.1; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--text-2); font-size: 1.08rem; margin: 30px auto 34px; max-width: 33em; }
.hero .url-form { max-width: 620px; margin: 0 auto; }
.formats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 16px 0 0; }
.formats li { font-size: 0.8rem; color: var(--text-2); border: 1px solid var(--line); border-radius: 5px; padding: 3px 11px; background: var(--surface); }
.fineprint { color: var(--muted); font-size: 0.82rem; margin: 16px 0 0; }
/* 生成例を、大きさの違う札のように横に並べる */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin-top: 68px; }
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #000; flex: none; }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone.wide { aspect-ratio: 16 / 9; }
.phone.h1 { height: 250px; } .phone.h2 { height: 330px; } .phone.h3 { height: 410px; } .phone.h4 { height: 200px; }
.phone.small { width: 172px; }
.phone-badge { position: absolute; bottom: 10px; left: 10px; font-size: 0.68rem; font-weight: 700; white-space: nowrap; background: var(--tint); color: var(--text); padding: 1px 8px; border-radius: 3px; }

/* --- 数字の帯 --- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); margin-bottom: 120px; }
main > .stats { padding: 0; margin-left: 28px; margin-right: 28px; max-width: none; }
.stats div { padding: 28px 28px 28px 0; }
.stats div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.stats b { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.stats span { color: var(--text-2); font-size: 0.88rem; }

/* --- 2 段組のセクション: 左に大きな見出し、右に中身 --- */
.compare, .steps, .features, .pricing, .faq { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 24px 64px; align-items: start; padding-bottom: 128px; }
.compare-copy p, .section-lead { color: var(--text-2); margin-top: 18px; max-width: 26em; }
.pricing > h2, .pricing > .section-lead { grid-column: 1; }
.pricing > .plans { grid-column: 1 / -1; }

.compare-stage { display: flex; align-items: center; justify-content: center; gap: 22px; background: var(--surface); border-radius: var(--radius); padding: 34px 28px; }
.compare-stage figure { margin: 0; text-align: center; }
.compare-stage figcaption { color: var(--muted); font-size: 0.78rem; margin-top: 12px; letter-spacing: 0.04em; }
.before { flex: 1; min-width: 0; }
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.frame video { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.5); }
.crop-box { position: absolute; top: 0; bottom: 0; left: 50%; aspect-ratio: 9 / 16; transform: translateX(-50%); border: 2px solid var(--accent); border-radius: 3px; backdrop-filter: brightness(2); }
.arrow { width: 30px; height: 30px; color: var(--text); }

/* 見出しの下に置く図: 色の面を 2 つ並べる */
.steps > h2, .features > h2 { grid-column: 1; grid-row: 1; }
.steps > ol, .features > .feature-grid { grid-column: 2; grid-row: 1 / span 2; }
.art { grid-column: 1; grid-row: 2; align-self: end; display: flex; max-width: 360px; }
.art > div { flex: 1; aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.art-a { background: var(--accent); color: var(--accent-ink); }
.art-a.ink { background: var(--text); color: #fff; }
.art-a .ico { width: 44%; height: 44%; stroke-width: 1.4; }
.art-b { background: var(--text); }
.art-b i { position: absolute; left: 50%; width: 34%; margin-left: -17%; height: 5%; border-radius: 3px; background: #fff; opacity: 0.9; }
.art-b i:nth-child(1) { top: 22%; background: var(--accent); }
.art-b i:nth-child(2) { top: 31%; width: 26%; margin-left: -13%; }
.art-b i:nth-child(3) { top: 72%; }
.art-b b { position: absolute; top: 44%; left: 0; right: 0; text-align: center; color: #fff; font-size: 1.5rem; letter-spacing: -0.02em; opacity: 0.5; }
.art-c { background: var(--surface); }
.art-c span { font-size: 0.82rem; color: var(--text-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--bg); white-space: nowrap; }

/* 手順・機能: 線で区切った行にする */
.steps ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line-strong); }
.step-ico { grid-row: 1 / span 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--text); }
.steps small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; font-weight: 700; }
.steps h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin: 0 0 6px; }
.steps p, .feature-grid p { color: var(--text-2); font-size: 0.94rem; }
.feature-grid { border-top: 1px solid var(--line-strong); }
.feature-grid article { display: grid; grid-template-columns: 1fr 44px; column-gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
.feature-grid .ico { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; padding: 10px; border: 1.5px solid var(--text); border-radius: 50%; align-self: center; transition: background .15s, color .15s; }
.feature-grid article:hover .ico { background: var(--text); color: var(--bg); }
.feature-grid h3 { grid-column: 1; font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 0 0 6px; }
.feature-grid p { grid-column: 1; }

/* --- 料金 --- */
/* プランは横に並べて見比べられるようにする (狭い画面では 2 列 → 1 列) */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.plan { position: relative; padding: 30px 22px 24px; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; background: var(--surface); border-radius: var(--radius); }
.plan.featured { background: var(--accent); }
.plan-tag { display: inline-block; background: var(--text); color: #fff; font-size: 0.7rem; font-weight: 700; font-style: normal; padding: 1px 9px; border-radius: 3px; }
.plan > .plan-tag { position: absolute; top: -9px; left: 22px; }
.plan h3 { font-size: 1.05rem; }
.plan .price { font-size: clamp(1.9rem, 2.7vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0 16px; white-space: nowrap; }
.plan .price small { font-size: 0.74rem; font-weight: 500; letter-spacing: 0; }
.plan ul { flex: 1; margin: 0 0 22px; padding: 0; list-style: none; font-size: 0.88rem; }
.plan li { padding: 4px 0 4px 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 10px; height: 5px; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(-45deg); }
.plan .btn { width: 100%; padding-left: 10px; padding-right: 10px; }
/* プランを選ぶ画面 (ログイン後) */
.pick-list { display: flex; flex-direction: column; gap: 10px; }
.pick { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.pick.current { border-color: var(--text); }
.pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pick-head b { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.pick-head > span { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.pick-head small { font-size: 0.74rem; font-weight: 500; }
.pick p { margin: 0; font-size: 0.82rem; color: var(--text-2); line-height: 1.6; }
.pick-now { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.billing-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- トップページ (作り直し): 長い動画 → ショート 3 本 --- */
.hero h1 span { white-space: nowrap; }
.t-label { display: none; font-weight: 800; font-size: 0.95rem; margin: 0 0 12px; }
.t-label::before { content: "▼ "; color: var(--accent); }
.transform { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 8px auto 0; max-width: 1000px; }
.hero .t-note { margin-bottom: 40px; }
.transform figure { margin: 0; }
.transform figcaption { color: var(--muted); font-size: 0.8rem; margin-top: 12px; font-weight: 700; letter-spacing: 0.02em; }
.t-src { flex: 0 1 340px; min-width: 0; }
.t-src .frame video { filter: none; }
.dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.78); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.t-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--accent-deep); font-size: 0.74rem; font-weight: 700; flex: none; }
.t-arrow .ico { width: 34px; height: 34px; }
.t-phones { display: flex; gap: 10px; }
.t-phones .phone { height: 330px; border-radius: 10px; box-shadow: 0 18px 40px -24px rgba(15, 27, 51, 0.55); }
.t-note { color: var(--muted); font-size: 0.76rem; margin: 18px 0 0; }

/* 新しい節の見出し: 行の途中で折り返さない大きさに */
.anatomy h2, .versus h2, .caption-sec h2 { font-size: clamp(1.6rem, 3.1vw, 2.6rem); }
.anatomy h2 span, .versus h2 span, .caption-sec h2 span { white-space: nowrap; }

/* 1 本のショートに入っているもの: 実例に番号を重ねる */
.anatomy { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px 64px; align-items: center; padding-top: 40px; padding-bottom: 128px; }
.points { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.points li { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.points b { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 0.95rem; }
.points h3 { font-size: clamp(1.1rem, 1.9vw, 1.4rem); margin: 2px 0 4px; }
.points p, .anatomy-more { color: var(--text-2); font-size: 0.93rem; margin: 0; }
.anatomy-more { margin-top: 16px; }
.anatomy-phone { display: flex; justify-content: center; }
.anatomy-phone .phone { height: min(620px, 78vh); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(15, 27, 51, 0.6); overflow: visible; }
.anatomy-phone .phone video { border-radius: 18px; }
.pin { position: absolute; right: -15px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); border: 3px solid var(--bg); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 0.92rem; }

/* 自分で編集するとき / このサイトのとき */
.versus { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 24px 64px; align-items: start; padding-bottom: 128px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vs-col { background: var(--surface); border-radius: var(--radius); padding: 26px 24px; }
.vs-col h3 { font-size: 1rem; margin-bottom: 14px; }
.vs-col ul { list-style: none; margin: 0; padding: 0; }
.vs-col li { position: relative; padding: 7px 0 7px 22px; font-size: 0.92rem; color: var(--text-2); border-top: 1px dashed var(--line); }
.vs-col li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.vs-col.mine { background: var(--text); color: #fff; }
.vs-col.mine li { color: #fff; border-top-color: rgba(255, 255, 255, 0.18); font-weight: 700; }
.vs-col.mine li::before { background: var(--accent); }
.vs-time { margin: 22px 0 0; font-size: 0.82rem; opacity: 0.85; }
.vs-time b { display: block; font-size: 2.2rem; letter-spacing: -0.02em; color: var(--accent); opacity: 1; line-height: 1.1; }

/* 字幕: 正確さと、直した言葉を覚えること */
.caption-sec { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 24px 64px; align-items: center; padding-bottom: 128px; }
.learn { background: var(--text); border-radius: var(--radius); padding: 48px 28px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.learn-cap { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; color: #fff; letter-spacing: 0.01em; text-shadow: 0 2px 0 #000; }
.learn-cap s { color: rgba(255, 255, 255, 0.45); text-decoration-thickness: 3px; text-decoration-color: var(--danger); margin-right: 4px; }
.learn-cap ins { text-decoration: none; color: #ffd84a; }
.learn-toast { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); color: var(--text); border-radius: 10px; padding: 12px 16px; font-size: 0.86rem; line-height: 1.55; max-width: 360px; }
.learn-toast .ico { flex: none; width: 20px; height: 20px; color: var(--accent-deep); margin-top: 1px; }

@media (max-width: 900px) {
  .t-label { display: block; }
  .t-src, .t-arrow, .t-out figcaption { display: none; }
  .transform { margin-top: 0; }
  .t-phones { gap: 8px; justify-content: center; }
  .t-phones .phone { height: auto; width: calc((min(100vw, 520px) - 36px - 16px) / 3); }
  .anatomy, .versus, .caption-sec { grid-template-columns: 1fr; gap: 26px; padding-bottom: 84px; }
  .anatomy-phone { order: -1; }
  .anatomy-phone .phone { height: min(520px, 110vw); }
  .vs { grid-template-columns: 1fr; }
  .learn { padding: 36px 20px; }
}

/* --- FAQ・最後の呼びかけ --- */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; padding: 22px 52px 22px 0; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; display: grid; place-items: center; border: 1.5px solid var(--text); border-radius: 50%; font-size: 1.2rem; font-weight: 400; line-height: 1; transition: transform .2s, background .15s, color .15s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--text); color: var(--bg); }
.faq details p { color: var(--text-2); padding: 0 52px 24px 0; font-size: 0.95rem; }
.cta { text-align: left; background: var(--text); color: #fff; border-radius: var(--radius); padding: 64px 56px; margin-bottom: 100px; max-width: 1104px; }
.cta h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); letter-spacing: -0.03em; }
.cta p { margin: 16px 0 30px; opacity: 0.9; }
.cta .btn.primary { background: var(--accent); color: var(--accent-ink); }
.cta .btn.primary:hover { background: #3b82f6; }

/* --- 管理画面: 大きな見出しと、URL を貼る箱を主役に --- */
#dashboard { padding-top: 18px; padding-bottom: 100px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 30px; }
.account { display: flex; align-items: center; gap: 14px; padding: 0; margin: 0 auto; }
.account-main { flex: 1; min-width: 0; }
.account-row { display: flex; align-items: center; gap: 12px; }
.chip { display: inline-block; white-space: nowrap; font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 4px; background: var(--text); color: #fff; }
.chip.pro { background: var(--accent); color: var(--accent-ink); }
.usage-text { color: var(--text-2); font-size: 0.86rem; white-space: nowrap; }
.meter { height: 4px; width: 120px; background: var(--line); border-radius: 2px; overflow: hidden; }
.meter div { height: 100%; background: var(--text); border-radius: 2px; transition: width .4s; }
.account-note { color: var(--muted); font-size: 0.82rem; margin-top: 8px; }
.account-note.warn { color: var(--danger); }
.create { max-width: 780px; margin: 0 auto; padding: 72px 0 40px; text-align: center; }
.create-title { font-size: clamp(2.3rem, 6.4vw, 4.6rem); line-height: 1.14; letter-spacing: -0.03em; margin-bottom: 40px; }
.create-title em { font-style: normal; color: var(--accent); }
.create form { text-align: left; }
/* 貼る箱: 上に入力、下の段に「入れ方の切り替え」と作るボタン */
.composer { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, box-shadow .2s; box-shadow: 0 1px 0 rgba(15, 27, 51, 0.04), 0 18px 40px -28px rgba(15, 27, 51, 0.35); }
.composer:focus-within { border-color: var(--text); }
.composer .url-form.in-card { background: none; border: 0; border-radius: 0; padding: 14px 20px 6px; }
.composer .url-form.in-card input { font-size: 1.14rem; padding: 14px 8px; }
.composer #source-file { padding: 14px 14px 0; }
.composer .helper-progress, .composer .notice { margin: 4px 16px 10px; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 12px 14px; }
.composer-bar .btn.primary { background: var(--accent); color: var(--accent-ink); border-radius: 11px; }
.composer-bar .btn.primary:hover { background: #3b82f6; }
.composer-bar .btn .ico { width: 18px; height: 18px; }
.create .rights { justify-content: center; margin: 20px 0 6px; font-size: 0.88rem; }
.create .helper-note { justify-content: center; margin: 0 0 4px; }
.create .auto-note { text-align: center; color: var(--muted); font-size: 0.86rem; margin: 10px 0 18px; }
.options { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: flex-end; margin: 22px 0; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 0.82rem; color: var(--muted); border: 0; padding: 0; margin: 0; }
.field legend { padding: 0; margin-bottom: 7px; }
.field select { width: 96px; padding: 9px 12px; }
.source-tabs { margin: 0; }
.helper-progress { margin-top: 12px; }
.helper-note { margin-top: 10px; font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.helper-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c9c5bc; flex: none; }
.helper-note.on { color: var(--text-2); }
.helper-note.on::before { background: #27b35a; }
.helper-note a { color: var(--accent-deep); }
.notice { margin-top: 12px; padding: 12px 16px; border-radius: 9px; font-size: 0.88rem; color: #7a4a00; background: #fff3d6; }
.notice .link { color: #7a4a00; font-weight: 700; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer;
  border: 1.5px dashed #c4c0b6; border-radius: var(--radius); padding: 32px 20px; background: var(--bg); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: #eef4ff; }
.dropzone .ico { width: 30px; height: 30px; color: var(--accent-deep); margin-bottom: 4px; }
.dropzone small { color: var(--muted); font-size: 0.8rem; }
.upload-state { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--bg); }
.upload-head { display: flex; justify-content: space-between; gap: 14px; font-weight: 700; font-size: 0.94rem; }
.upload-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-bar { height: 5px; background: var(--surface-2); border-radius: 3px; margin: 12px 0 8px; overflow: hidden; }
.upload-bar div { height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .2s; }
.upload-state small { color: var(--muted); font-size: 0.8rem; }
.layouts { margin: 4px 0 22px; }
.layout-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.layout-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; cursor: pointer;
  padding: 16px 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color .15s, background .15s;
}
.layout-card:hover { border-color: #b9b5ab; }
.layout-card input { position: absolute; opacity: 0; pointer-events: none; }
.layout-card:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.layout-card:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.layout-card svg { width: 54px; height: 96px; margin-bottom: 6px; }
.layout-card svg .bg { fill: #17161a; }
.layout-card svg .pane { fill: #6b6874; }
.layout-card svg .pane2 { fill: #4a4852; }
.layout-card svg .blur { fill: #34323a; }
.layout-card svg .dot { fill: #c9c6d0; }
.layout-card svg .hl { fill: #ffffff; }
.layout-card svg .hl.y { fill: #ffe600; }
.layout-card svg .cap { fill: #ffffff; }
.layout-card:has(input:checked) svg .cap { fill: var(--accent); }
.layout-card b { color: var(--text); font-size: 0.88rem; }
.layout-card small { color: var(--muted); font-size: 0.74rem; line-height: 1.5; }
.options.toggles { margin-top: 0; gap: 10px 28px; }
.field legend small { margin-left: 6px; font-size: 0.74rem; }
.auto-note { margin: 18px 2px 16px; color: var(--text-2); font-size: 0.92rem; line-height: 1.7; }
.advanced { background: var(--surface); border-radius: var(--radius); padding: 8px 26px 18px; margin: 14px 0 0; }
.seg.mode { display: flex; flex-direction: row; flex: none; width: fit-content; margin: 0 auto 16px; }
.seg.mode span { padding: 8px 20px; }
.advanced > summary { cursor: pointer; padding: 10px 0; color: var(--text-2); font-size: 0.88rem; list-style: none; text-align: center; }
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary::before { content: '＋'; display: inline-block; width: 1.5em; }
.advanced[open] > summary::before { content: '－'; }
.advanced > summary small { margin-left: 6px; font-size: 0.76rem; color: var(--muted); }
.advanced .options:first-of-type { margin-top: 6px; }
.field.endings { margin-bottom: 22px; }
.seg.wrap { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; }
.ending-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 12px; }
.ending-row label { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--muted); }
.ending-row .btn { padding: 8px 14px; font-size: 0.84rem; }
.field .ending-row select { width: auto; max-width: 260px; padding: 9px 12px; }
.field.check small { color: var(--muted); font-size: 0.78rem; }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 22px; }
.extras:has(.field:not([hidden])) { margin: -4px 0 22px; }
.voice-pick { margin: 14px 0 4px; }
.voice-row { display: flex; gap: 10px; align-items: center; }
.voice-row select { flex: 1; width: auto; padding: 11px 14px; }
.field.wide small { color: var(--muted); font-size: 0.76rem; }
.field.check, .rights { flex-direction: row; align-items: center; gap: 9px; color: var(--text); font-size: 0.92rem; cursor: pointer; }
.field.check { padding-bottom: 9px; }
.rights { display: flex; margin: 0 0 22px; color: var(--text-2); }
.create .rights { margin: 20px 0 6px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--text); flex: none; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 14px; border-radius: 7px; color: var(--text-2); font-size: 0.88rem; white-space: nowrap; transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--surface); color: var(--text); font-weight: 700; }

.list-title { margin: 56px 0 20px; padding-top: 28px; border-top: 1px solid var(--line-strong); font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.empty { color: var(--muted); border: 1.5px dashed #c4c0b6; border-radius: var(--radius); padding: 48px 24px; text-align: center; }
.empty .ico { width: 34px; height: 34px; color: #b0aca2; display: block; margin: 0 auto 10px; }
.job { background: var(--surface); border-radius: 16px; padding: 22px; margin-bottom: 14px; }
.job-head { display: flex; gap: 16px; align-items: center; }
.job-head img { width: 118px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--surface-2); flex: none; }
.job-info { flex: 1; min-width: 0; }
.job-title { font-weight: 700; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-sub { color: var(--muted); font-size: 0.85rem; }
.job-sub.failed { color: var(--danger); }
.stages { display: flex; gap: 6px; margin-top: 18px; }
.stages div { flex: 1; }
.stages i { display: block; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.stages i b { display: block; height: 100%; background: var(--text); border-radius: 2px; transition: width .6s; }
.stages .live i b { background-image: linear-gradient(90deg, var(--accent), #93c5fd, var(--accent)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.stages span { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 6px; }
.stages .live span, .stages .done span { color: var(--text); }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; margin-top: 22px; }
.clip video { width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; display: block; object-fit: cover; }
.clip-title { font-size: 0.9rem; font-weight: 700; margin: 10px 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.78rem; margin-bottom: 10px; }
.clip-meta b { color: var(--accent-deep); font-weight: 700; }
.clip .btn { width: 100%; }
.clip .btn .ico { width: 16px; height: 16px; }

/* --- 作成中の表示 --- */
.now { margin: 16px 0 6px; padding: 18px 20px; border-radius: 16px; background: var(--text); color: #fff; text-align: left; }
.now-top { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; }
.now-top #now-pct { margin-left: auto; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.now-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(0.7); opacity: 0.6; } 50% { transform: scale(1.15); opacity: 1; } }
.now-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); overflow: hidden; margin: 14px 0 10px; }
.now-bar div { height: 100%; width: 0; border-radius: 4px; background: var(--accent); transition: width .8s ease; }
.now.working .now-bar div { background-image: linear-gradient(90deg, var(--accent), #93c5fd, var(--accent)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
#now-detail { font-size: 0.86rem; opacity: 0.75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now .stages { margin-top: 12px; }
.now .stages i { background: rgba(255, 255, 255, 0.16); }
.now .stages i b { background: #fff; }
.now .stages span, .now .stages .live span, .now .stages .done span { color: rgba(255, 255, 255, 0.8); }
.now.done { background: var(--accent); color: var(--accent-ink); }
.now.done .now-dot { animation: none; background: var(--text); }
.now.done .now-bar { display: none; }
.now.failed { background: #fbe4e2; color: var(--danger); }
.now.failed .now-dot { animation: none; background: var(--danger); }
.now.failed .now-bar { display: none; }
.now.failed #now-detail { white-space: normal; opacity: 1; }
.job.flash { animation: flash 2.2s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* --- 編集画面: 画面いっぱいに、上にプレビューと直す欄、下に横長のタイムライン --- */
/* あとに出てくる .overlay の指定 (中央寄せ) に負けないよう、2 つのクラスで指定する */
.overlay.studio-overlay { padding: 10px; place-items: stretch; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
/* 作り直し・書き出しの最中の膜: 編集画面全体をおおって、クリックを止める */
.busy { position: absolute; inset: 0; z-index: 30; background: rgba(15, 27, 51, 0.55); display: grid; place-items: center; cursor: progress; }
.busy-box { display: flex; align-items: center; gap: 14px; padding: 18px 26px; border-radius: 14px; background: var(--surface); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5); font-size: 1.05rem; }
.busy .spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.studio { position: relative; background: var(--bg); border-radius: 16px; display: flex; flex-direction: column; min-height: 0; min-width: 0; width: 100%; height: calc(100vh - 20px); overflow: hidden; }
.studio-top { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.studio-top b { font-size: 1.15rem; }
/* スマホ幅では隠す、ことばの後ろ半分 (ボタンを 1 行に収めるため) */
.lbl { font-style: normal; }
.studio-top .seg { margin-right: auto; }
.studio-top .seg span { padding: 8px 16px; }
.mode { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
.studio-main { flex: 1; min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 0; }
.stage { position: relative; height: 100%; max-height: 100%; aspect-ratio: 9 / 16; margin: 14px auto; background: #000; border-radius: 10px; overflow: hidden; align-self: center; }
.studio-main > .stage { height: calc(100% - 28px); }
.stage.wide { aspect-ratio: 16 / 9; height: auto; width: min(100% - 28px, 1280px); max-height: calc(100% - 28px); }
.stage video { width: 100%; height: 100%; object-fit: contain; display: block; position: relative; z-index: 1; transform-origin: 50% 50%; }
.stage .back { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; filter: blur(10px) brightness(0.65) saturate(0.75); transform: scale(1.15); }
/* 字幕・見出し: 位置 (left/top) は文字の真ん中。ふちは字の外側に描く */
.ov { position: absolute; left: 0; top: 0; z-index: 2; width: max-content; text-align: center; font-weight: 800; white-space: nowrap; paint-order: stroke fill;
  cursor: grab; touch-action: none; transform-origin: 50% 50%; border-radius: 0;
  /* 書き出し (libass) は字間の詰め (カーニング・プロポーショナル詰め) をしないので、見本でも切って幅を合わせる */
  font-kerning: none; font-feature-settings: "kern" 0, "palt" 0, "liga" 0; }
/* 字幕は同じ時間に何本も重なることがあるので、入れ物の中に必要なだけ並べる (入れ物自体はクリックを通す) */
.ov-caps { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ov-caps .ov { pointer-events: auto; }
.st-own-note { margin: 0 0 8px; font-size: 0.8rem; color: var(--muted); }
.st-own-note[hidden] { display: none; }
.ov .trow { -webkit-box-decoration-break: clone; box-decoration-break: clone; pointer-events: none; }
.ov:hover { outline: 1px dashed rgba(255, 255, 255, 0.6); outline-offset: 2px; }
.ov-frame { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; box-sizing: border-box; border: 1.5px dashed #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45); transform-origin: 50% 50%; }
.ov-frame[hidden], .guide[hidden] { display: none; }
.fh { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  pointer-events: auto; touch-action: none; display: grid; place-items: center; font-size: 13px; font-style: normal; line-height: 1; color: #222; box-sizing: border-box; }
.fh.size { left: 100%; top: 100%; cursor: nwse-resize; }
.fh.rot { left: 50%; top: -28px; cursor: grab; }
.ov-frame.is-video .fh.rot { display: none; }
.guide { position: absolute; z-index: 4; pointer-events: none; background: rgba(255, 70, 160, 0.9); }
.guide.v { left: 50%; top: 0; bottom: 0; width: 1px; }
.guide.h { top: 50%; left: 0; right: 0; height: 1px; }
.inspector { background: var(--surface); border-left: 1px solid var(--line); padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.inspector h3 { font-size: 0.95rem; letter-spacing: 0; margin-top: 4px; }
.inspector h3 small { color: var(--muted); font-weight: 400; margin-left: 6px; font-variant-numeric: tabular-nums; }
.inspector .hint { color: var(--muted); font-size: 0.8rem; line-height: 1.65; }
.inspector textarea, .inspector input[type=text] { font: inherit; font-size: 1.05rem; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); resize: vertical; }
.inspector input[type=range] { width: 100%; accent-color: var(--text); }
#ins-line, #ins-none, #ins-style, #ins-video, .ins-global, #ins-heading-box { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#ins-line[hidden], #ins-none[hidden], #ins-style[hidden], #ins-video[hidden], #ins-heading-box[hidden] { display: none; }
.ins-global { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 4px; }
.ins-global .inspector input[type=text], .ins-global input[type=text] { padding: 8px 10px; font-size: 0.95rem; }
.st-block { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-block h4 { font-size: 0.78rem; color: var(--text-2); margin: 2px 0 0; font-weight: 700; }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; cursor: pointer; }
.check[hidden] { display: none; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.ins-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-2); min-width: 0; }
.ins-row > span { flex: none; min-width: 3.4em; }
.ins-row input[type=range] { flex: 1; min-width: 0; width: auto; }
.ins-row b { flex: none; min-width: 3.6em; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 232px; overflow-y: auto; padding: 2px; }
.font { border: 2px solid var(--line); background: #1b1a1f; border-radius: 8px; padding: 3px; cursor: pointer; min-width: 0; color: #fff; font: inherit; font-size: 0.75rem; }
.font img { display: block; width: 100%; height: auto; aspect-ratio: 320 / 72; }
.font.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--tint); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sw-list { display: contents; }
.swatch { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--c); cursor: pointer; font-weight: 700; font-size: 0.56rem; color: var(--text); padding: 0; display: inline-grid; place-items: center; box-sizing: border-box; overflow: hidden; }
.swatch.on { border-color: var(--text); box-shadow: 0 0 0 3px var(--tint); }
.swatch.none { background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.swatch.custom { background: conic-gradient(#f33, #fe3, #3e5, #3ee, #35f, #e3e, #f33); color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.swatch.custom.has { background: var(--c); }
.swatch.custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.ins-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.btn.danger { color: var(--danger); }
.rg-row { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--text-2); }
.rg-row span { margin-right: auto; }
.rg-list { display: flex; flex-direction: column; gap: 6px; }
.rg-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.rg-item.selected { border-color: var(--text); background: var(--tint); }
.rg-item b { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 0.74rem; flex: none; }
.rg-item small { margin-left: auto; color: var(--muted); }
.rg-item span { white-space: nowrap; }
.rg-acts { flex-basis: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.rg-item .mini { height: 26px; border-radius: 999px; border: 1px solid var(--text); background: #fff; cursor: pointer; color: var(--text); padding: 0 2px; font-size: 0.74rem; font-weight: 700; font-family: inherit; min-width: 0; white-space: nowrap; }
.rg-item .mini:hover:not(:disabled) { background: var(--text); color: #fff; border-color: var(--text); }
.rg-item .mini:disabled { opacity: 0.3; cursor: default; }
.rg-item small { margin-left: auto; margin-right: 2px; }
.rg-item .del:hover:not(:disabled) { background: var(--danger); color: #fff; border-color: var(--danger); }
.rg-item .del:disabled { opacity: 0.3; cursor: default; }
.rg-row b { font-size: 1.15rem; color: var(--text); font-variant-numeric: tabular-nums; margin-right: auto; }
.studio-bottom { border-top: 1px solid var(--line); background: var(--surface); padding: 10px 18px 12px; user-select: none; min-width: 0; }
.transport { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 0.84rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.transport .zoom { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); }
.transport .zoom input { width: 130px; accent-color: var(--text); }
.tl-scroll { overflow-x: auto; overflow-y: hidden; border-radius: 8px; background: var(--surface-2); max-width: 100%; }
/* 高さ 142px は字幕が 1 段のとき。2 段になっても同じ高さ (帯が細くなる)。3 段以上は 1 段につき 25px 足す (timelineRender が高さを入れる) */
.tl-inner { position: relative; height: 142px; min-width: 100%; cursor: pointer; touch-action: none; }
.tl-inner.range { height: 84px; }
.tl-ruler { position: relative; height: 18px; font-size: 0.66rem; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.tl-ruler span { position: absolute; top: 0; padding-left: 3px; border-left: 1px solid #cfcabf; height: 18px; }
.tl-film { height: 54px; display: flex; overflow: hidden; background: #17161a; pointer-events: none; }
.tl-film canvas { flex: none; display: block; }
.tl-track { position: relative; height: 62px; }
.tl-block { position: absolute; top: 9px; height: 44px; min-width: 8px; border-radius: 7px; background: var(--text); color: #fff; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; overflow: hidden; cursor: grab; border-left: 5px solid var(--c, #fff); box-sizing: border-box; z-index: 1; }
/* 字幕が 2 段以上のときの細い帯 (高さ 22px は timelineRender が入れる) */
.tl-block.thin { font-size: 0.68rem; line-height: 1; border-left-width: 4px; border-radius: 5px; }
.tl-block.thin span { padding: 0 6px; }
.tl-block span { padding: 0 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; flex: 1; }
.tl-block .grip, .rg-window .grip { position: absolute; top: 0; bottom: 0; width: 10px; cursor: ew-resize; }
.tl-block .grip.l { left: -5px; } .tl-block .grip.r { right: 0; }
.tl-block.selected { background: var(--accent); color: var(--accent-ink); z-index: 3; box-shadow: 0 0 0 2px var(--text); }
.tl-shade { position: absolute; top: 18px; bottom: 0; left: 0; width: 0; background: repeating-linear-gradient(135deg, rgba(15, 27, 51, 0.6) 0 6px, rgba(15, 27, 51, 0.45) 6px 12px); pointer-events: none; z-index: 2; }
.tl-handle { position: absolute; top: 18px; bottom: 0; width: 18px; margin-left: -9px; cursor: ew-resize; z-index: 4; }
.tl-handle::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 8px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 0 1.5px var(--text); }
.tl-head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--danger); pointer-events: none; z-index: 5; }
.rg-bar { position: relative; height: 66px; background: repeating-linear-gradient(90deg, #dcd8ce 0 1px, transparent 1px 100%); }
.rg-window { position: absolute; top: 7px; height: 30px; background: var(--accent); border-radius: 8px; box-shadow: 0 0 0 1px var(--text); opacity: 0.78; cursor: grab; display: flex; align-items: center; justify-content: center; min-width: 14px; overflow: hidden; }
.rg-window span { font-size: 0.78rem; font-weight: 700; color: var(--accent-ink); pointer-events: none; white-space: nowrap; }
.rg-window.selected { opacity: 1; box-shadow: 0 0 0 2.5px var(--text); z-index: 2; }
.rg-window .grip { background: rgba(15, 27, 51, 0.25); } .rg-window .grip.l { left: 0; } .rg-window .grip.r { right: 0; }
.edit-bar { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding-top: 10px; flex-wrap: wrap; }
.edit-range { margin-right: auto; font-size: 0.86rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.studio .btn.big { width: auto; margin: 0; padding: 12px 26px; }
.clip .clip-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.clip .clip-actions .btn { flex: 1; padding-left: 6px; padding-right: 6px; }
.clip .clip-actions .clip-copy { flex: 1 1 100%; }
/* iPhone: 読み込みが済んで、もう一度押すと共有メニューが開く状態 */
.btn.ghost.ready { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.save-hint { margin: 14px 0 0; font-size: 0.8rem; color: var(--muted); }
.clip-post { margin: -4px 0 10px; font-size: 0.8rem; line-height: 1.45; }
.clip-post-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip-post-tags { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.job-btns { display: flex; gap: 6px; flex: none; }
.job-btns .btn { width: auto; white-space: nowrap; }
@media (max-width: 520px) {
  .job-head { flex-wrap: wrap; }
  .job-info { flex-basis: calc(100% - 134px); }
  .job-btns { flex: 1 1 100%; justify-content: flex-end; }
}

/* --- ダイアログ・決済・お知らせ・フッター --- */
dialog, .sheet { background: var(--surface); color: var(--text); border: 0; border-radius: 16px; padding: 34px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(15, 27, 51, 0.45); }
dialog::backdrop { background: rgba(15, 27, 51, 0.5); backdrop-filter: blur(3px); }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(15, 27, 51, 0.5); backdrop-filter: blur(3px); display: grid; place-items: center; overflow-y: auto; padding: 16px; }
.sheet { position: relative; width: min(460px, 100%); }
dialog h2, .sheet h2 { font-size: 1.6rem; margin-bottom: 22px; }
.sheet h3 { font-size: 0.9rem; color: var(--muted); margin: 26px 0 8px; letter-spacing: 0; }
dialog label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
dialog label input { margin-top: 6px; background: var(--bg); }
dialog .btn.big, .sheet .btn.big { width: 100%; margin-top: 6px; }
.dialog-close { position: absolute; top: 12px; right: 14px; }
.dialog-close button, .sheet-close { background: none; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.sheet-close { position: absolute; top: 14px; right: 16px; }
.error { color: var(--danger); font-size: 0.88rem; margin: 0 0 10px; }
.switch { color: var(--muted); font-size: 0.88rem; margin: 18px 0 0; text-align: center; }
.pay-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--bg); font-size: 0.92rem; color: var(--text-2); }
.pay-summary b { font-size: 1.25rem; color: var(--text); white-space: nowrap; }
.card-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 14px 2px; margin: 14px 0; min-height: 106px; }
.card-loading { color: #666; font-size: 0.88rem; text-align: center; padding: 26px 0; }
/* 支払いの画面の、申し込む内容 (最終確認) */
.pay-terms { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 16px; font-size: 0.82rem; line-height: 1.6; }
.pay-terms dt { color: var(--muted); white-space: nowrap; }
.pay-terms dd { margin: 0; }
.agree-note { font-size: 0.76rem; color: var(--muted); margin: 10px 0 0; line-height: 1.6; }
.agree-note a, .legal a { color: var(--accent-deep); }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-links a { color: inherit; }
/* 利用規約などのページ */
main.legal { max-width: 780px; padding-top: 40px; padding-bottom: 90px; line-height: 1.85; }
.legal h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); letter-spacing: -0.03em; }
.legal h2 { font-size: 1.08rem; letter-spacing: 0; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 0.93rem; }
.legal ol, .legal ul { padding-left: 1.4em; margin: 6px 0; }
.legal-date { color: var(--muted); margin: 8px 0 26px; font-size: 0.85rem; }
.legal-table { display: grid; grid-template-columns: minmax(8em, auto) 1fr; border-top: 1px solid var(--line-strong); margin: 0; font-size: 0.92rem; }
.legal-table dt, .legal-table dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-table dt { font-weight: 700; padding-right: 20px; }
.legal-table dd { color: var(--text-2); }
.legal-table small { color: var(--muted); }
.legal-prices { border-collapse: collapse; margin-bottom: 6px; font-size: 0.88rem; }
.legal-prices th, .legal-prices td { text-align: left; padding: 3px 14px 3px 0; vertical-align: top; font-weight: 400; }
.legal-prices th { white-space: nowrap; font-weight: 700; }
.legal-missing { color: var(--danger); font-weight: 700; }
.legal-note { background: var(--surface); border-left: 3px solid var(--accent); padding: 10px 14px; font-size: 0.88rem; margin: 0 0 22px; }
.pay-note { display: flex; gap: 8px; color: var(--muted); font-size: 0.78rem; margin-top: 14px; }
.pay-note .ico { width: 16px; height: 16px; margin-top: 3px; }
.pay-test { margin-top: 12px; font-size: 0.78rem; color: var(--text); background: var(--tint); border-radius: 6px; padding: 6px 10px; text-align: center; }
.sheet label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.sheet label input { margin-top: 6px; }
.sheet h2 { overflow-wrap: anywhere; }
#aikey h2 { font-size: 1.3rem; padding-right: 20px; }
.aikey-list { margin: 0 0 16px; padding-left: 1.2em; font-size: 0.92rem; line-height: 1.6; }
.aikey-note { color: var(--muted); font-size: 0.8rem; margin: 0 0 10px; line-height: 1.5; }
.aikey-note a { color: var(--accent-deep); }
.aikey-set { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; font-size: 0.92rem; flex-wrap: wrap; }
.account-ai { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
#aikey h3 { margin: 18px 0 6px; }
.ai-packs { display: flex; gap: 10px; margin: 6px 0 10px; }
.ai-packs .pack { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; }
.ai-packs .pack b { font-size: 1.05rem; }
.ai-packs .pack span { font-size: 0.85rem; color: var(--muted); }
.ai-packs .aikey-note { margin: 0; }
.job-notice { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.billing-info { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 0.92rem; }
.billing-info dt { color: var(--muted); }
.billing-info dd { margin: 0; }
.history { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.history a { color: var(--accent-deep); }
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--text); color: #fff;
  padding: 12px 20px; border-radius: 9px; font-size: 0.92rem; font-weight: 700; max-width: calc(100vw - 32px); z-index: 80;
}
footer { border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 0.8rem; }
.footer-inner { padding-top: 28px; padding-bottom: 44px; }
footer p { margin: 0 0 6px; }

/* --- スクロールで現れる動き (JS が動くときだけ隠す) --- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { padding-top: 44px; padding-bottom: 64px; }
  .phones { gap: 10px; margin-top: 48px; }
  .phone.h1 { height: 170px; } .phone.h2 { height: 230px; } .phone.h3 { height: 290px; }
  .phone.wide, .phone.hide-s { display: none; }
  .compare, .steps, .features, .pricing, .faq { grid-template-columns: 1fr; gap: 26px; padding-bottom: 84px; }
  .pricing > .plans { grid-column: 1; grid-row: auto; }
  .stats { grid-template-columns: 1fr; margin-bottom: 84px; }
  .stats div, .stats div + div { padding: 20px 0; border-left: 0; }
  .stats div + div { border-top: 1px solid var(--line); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .layout-grid { grid-template-columns: repeat(2, 1fr); }
  .nav nav a { display: none; }
  .account { flex-wrap: wrap; }
  .card { padding: 20px; }
  .create { padding-top: 44px; }
  .art { display: none; }
  .steps > ol, .features > .feature-grid { grid-column: 1; grid-row: auto; }
  .steps > h2, .features > h2 { grid-row: auto; }
  .cta { padding: 44px 28px; }
  .seg { display: flex; flex-wrap: wrap; }
  .seg.mode { flex-wrap: nowrap; }
}
@media (max-width: 760px) {
  /* iPhone は、字が 16px より小さい入力欄を触ると画面を拡大する。スマホ幅では 16px にそろえる */
  input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], input[type=search], textarea, select { font-size: 16px !important; }
  /* 編集画面: ブラウザのバーを除いた高さに合わせる (100vh だと、下の「書き出す」がバーの下に隠れる) */
  .studio { height: calc(100dvh - 20px); }
  .studio-top { padding: 8px 12px; gap: 10px; }
  .studio-bottom { padding: 8px 12px 10px; }
  .transport { flex-wrap: wrap; gap: 6px; margin-bottom: 6px; font-size: 0.76rem; }
  .transport .btn.small { padding: 6px 9px; }
  .studio .lbl { display: none; }
  .studio-top .seg { flex-wrap: nowrap; }
  .studio-top .btn { flex: none; padding: 8px 12px; font-size: 0.84rem; }
  /* 見本の映像をできるだけ大きく */
  .studio-main > .stage { margin: 8px auto; }
  .studio-main > .stage:not(.wide) { height: calc(100% - 16px); }
  .edit-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "range save" "reset save"; gap: 2px 10px; padding-top: 8px; align-items: center; }
  .edit-bar .edit-range { grid-area: range; margin: 0; font-size: 0.74rem; }
  #edit-trim-reset { grid-area: reset; justify-self: start; }
  #edit-save { grid-area: save; }
  .studio .btn.big { padding: 11px 18px; }
  .transport > span { white-space: nowrap; }
  .transport .zoom { margin-left: 0; flex: 1; min-width: 0; }
  .transport .zoom input { flex: 1; width: auto; min-width: 50px; }
  /* ① 範囲: 横長の映像の高さに合わせる (上下に空きを作らない) */
  #mode-range .studio-main:has(> .stage.wide) { grid-template-rows: auto 1fr; }
  #mode-captions .transport .zoom { display: none; }  /* 字幕の並びは指で横に動かせる。拡大のつまみは置く場所が無い */
  .studio-main { grid-template-columns: 1fr; grid-template-rows: minmax(180px, 58%) 1fr; }
  .inspector { border-left: 0; border-top: 1px solid var(--line); }
  .studio-top .seg span { padding: 7px 9px; font-size: 0.8rem; }
  .studio-top b { display: none; }
}
@media (max-width: 560px) {
  main, .nav-inner, .footer-inner { padding-left: 18px; padding-right: 18px; }
  /* スマホ: ロゴ・メールアドレス・ログアウトが重ならないように詰める。アカウント行は 1 行ずつに分ける */
  .nav-inner { gap: 10px; }
  .logo { flex: none; }
  .nav nav { gap: 10px; min-width: 0; }
  .nav-email { max-width: 26vw; font-size: 0.78rem; }
  .account-main { flex: 1 1 100%; }
  .account-row { flex-wrap: wrap; row-gap: 4px; }
  .nav .btn { padding: 8px 11px; font-size: 0.84rem; }
  /* 見出しの 2 行目 (9 文字) が 1 行に収まる大きさにする */
  .hero h1 { font-size: clamp(1.45rem, 7.4vw, 2.9rem); }
  .hero .lead { margin: 18px auto 24px; font-size: 0.98rem; }
  .eyebrow { margin-bottom: 18px; }
  .plans { grid-template-columns: 1fr; }
  .legal-table { grid-template-columns: 1fr; }
  .legal-table dt { border-bottom: 0; padding-bottom: 0; }
  .legal-prices td:last-child { display: block; padding-bottom: 8px; }
  .legal-prices tr { display: block; }
  .plan .price { font-size: 2.3rem; }
  /* 例の 3 本を、画面の幅に収まる大きさにする (はみ出すと、ページ全体が横に動いてしまう) */
  .phones { gap: 8px; }
  .phone.h2 { height: 46vw; } .phone.h3 { height: 58vw; }
  .phone-badge { bottom: 6px; left: 6px; font-size: 0.58rem; padding: 0 6px; }
  main > .stats { margin-left: 18px; margin-right: 18px; }
  .url-form:not(.in-card) { flex-wrap: wrap; padding: 8px 8px 8px 14px; }
  .composer-bar { flex-direction: column; align-items: stretch; }
  .composer-bar .btn { width: 100%; }
  .meter { display: none; }
  .composer-bar .seg { flex-wrap: nowrap; }
  .composer-bar .seg label { flex: 1; }
  .composer-bar .seg span { text-align: center; font-size: 0.8rem; padding: 8px 6px; }
  .url-form:not(.in-card) .btn { width: 100%; }
  .compare-stage { flex-direction: column; }
  .arrow { transform: rotate(90deg); }
  .phone.small { width: 150px; }
  .stages span { font-size: 0.64rem; }
}
@media (max-width: 350px) {
  .logo { font-size: 1rem; }
  .nav .btn { padding: 7px 8px; font-size: 0.76rem; }
  .t-label { font-size: 0.82rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stages .live i b { animation: none; }
}


/* === 青基調・クリーン: 面を白く浮かせ、強調は青のグラデーション (2026-11-29) ===================== */
:root {
  --grad: linear-gradient(135deg, #1d4ed8 0%, #2563eb 48%, #0ea5e9 100%);
  --grad-dark: linear-gradient(150deg, #0b1d48 0%, #12307a 55%, #1d4ed8 115%);
  --shadow-sm: 0 1px 2px rgba(15, 35, 80, 0.05), 0 4px 14px -6px rgba(15, 35, 80, 0.10);
  --shadow-md: 0 1px 2px rgba(15, 35, 80, 0.05), 0 16px 38px -14px rgba(20, 50, 120, 0.22);
  --shadow-lg: 0 34px 70px -30px rgba(29, 78, 216, 0.45);
  --ring: 0 0 0 4px rgba(37, 99, 235, 0.16);
}
::selection { background: rgba(37, 99, 235, 0.18); }
.nav { border-bottom: 1px solid rgba(15, 27, 51, 0.06); }
.logo-mark { background: var(--grad); box-shadow: 6px 4px 0 0 #7dd3fc; border-radius: 4px; }

/* ボタン: 青のグラデーションで少し浮かせる */
.btn.primary, .url-form .btn.primary, .composer-bar .btn.primary {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.btn.primary:hover, .url-form .btn.primary:hover, .composer-bar .btn.primary:hover {
  background: var(--grad); filter: brightness(1.07); box-shadow: 0 12px 26px -10px rgba(37, 99, 235, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn.ghost { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { border-color: #9dbcf5; color: var(--accent-deep); }
.btn.ghost.ready { background: var(--grad); border-color: transparent; color: #fff; }
input:focus-visible, select:focus-visible, .btn:focus-visible, summary:focus-visible, .seg input:focus-visible + span { outline-color: var(--accent); }
input[type=checkbox], .inspector input[type=range], .transport .zoom input { accent-color: var(--accent); }

/* 入力の箱 */
.url-form { border-radius: 16px; border-color: var(--line); box-shadow: var(--shadow-md); }
.url-form:focus-within, .composer:focus-within { border-color: #8db2f6; box-shadow: var(--shadow-md), var(--ring); }
.composer { border-radius: 20px; box-shadow: var(--shadow-md); }

/* ヒーロー */
.eyebrow { background: var(--surface); color: var(--accent-deep); border: 1px solid #cfe0fd; border-radius: 999px; padding: 4px 14px; box-shadow: var(--shadow-sm); }
.hero h1 em, .create-title em {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.formats li { border-radius: 999px; border-color: #d7e3f8; }
.t-label::before { color: var(--accent); }
.t-phones .phone, .phone { border-radius: 14px; }
.t-phones .phone { box-shadow: 0 22px 44px -22px rgba(20, 50, 120, 0.55), 0 0 0 1px rgba(15, 27, 51, 0.06); }
.anatomy-phone .phone { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 27, 51, 0.06); }
.frame { border-radius: 12px; }

/* 白いカード: 線ではなく影で区切る */
.plan, .vs-col, .card, .compare-stage, .art-c, .learn-toast, .pick {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.pick.current { border-color: #8db2f6; box-shadow: var(--shadow-md), var(--ring); }
.points b, .pin, .rg-item b, .chip.pro { background: var(--grad); color: #fff; }
.pin { border-color: #fff; box-shadow: 0 6px 14px -6px rgba(37, 99, 235, 0.7); }
.points { border-top-color: var(--line); }

/* 料金: おすすめのプランを青い面で浮かせる */
.plan-tag { background: var(--grad); }
.plan.featured { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.plan.featured .plan-tag { background: #fff; color: var(--accent-deep); box-shadow: var(--shadow-sm); }
.plan.featured li::before { border-color: #fff; }
.plan.featured .btn.primary { background: #fff; color: var(--accent-deep); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.45); }
.plan.featured .btn.ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.45); box-shadow: none; }
.plan.featured small, .plan.featured p { color: rgba(255, 255, 255, 0.88); }
.plan li::before { border-color: var(--accent); }

/* 濃い面: 濃紺〜青のグラデーション */
.vs-col.mine, .learn, .cta { background: var(--grad-dark); border-color: transparent; box-shadow: var(--shadow-lg); }
.vs-col.mine li::before { background: #38bdf8; }
.vs-time b { color: #7dd3fc; }
.learn-cap ins { color: #7dd3fc; }
.cta { position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.35), transparent); pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta .btn.primary { background: #fff; color: var(--accent-deep); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }
.cta .btn.primary:hover { background: #fff; }
.art-a { background: var(--grad); }
.art-b, .art-a.ink { background: var(--grad-dark); }

/* 手順・よくある質問: 線の行ではなく、白いカードを並べる */
.steps ol, .faq-list { border-top: 0; display: grid; gap: 12px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px; box-shadow: var(--shadow-sm); }
.step-ico { border: 0; background: var(--tint); color: var(--accent-deep); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; box-shadow: var(--shadow-sm); }
.faq summary::after { border-color: #c4d5f3; color: var(--accent-deep); }
.faq details[open] summary::after { background: var(--grad); border-color: transparent; color: #fff; }
.faq details p { padding-right: 8px; }
.feature-grid .ico { border-color: #c4d5f3; color: var(--accent-deep); }
.feature-grid article:hover .ico { background: var(--grad); color: #fff; border-color: transparent; }

/* 管理画面の小物 */
.meter div { background: var(--grad); }
.now.done { background: var(--grad); color: #fff; }
.dialog, dialog, .sheet { box-shadow: 0 40px 90px -24px rgba(15, 35, 80, 0.45); border-radius: 20px; }
footer { border-top-color: var(--line); background: rgba(255, 255, 255, 0.55); }


/* === 背景に奥行き: 上から薄い点の模様、ヒーローの後ろに青い光、節ごとに淡い青の帯 (2026-11-29) ========== */
html { overflow-x: clip; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(37, 99, 235, 0.16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 75%);
}
/* ヒーロー・作る画面: 見出しの後ろに、ゆっくり動く青い光 */
.hero, .create { position: relative; isolation: isolate; }
.hero::before, .create::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: -90px; width: min(1180px, 150vw); height: 700px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 28% 42%, rgba(59, 130, 246, 0.30), transparent),
    radial-gradient(closest-side at 72% 30%, rgba(14, 165, 233, 0.26), transparent),
    radial-gradient(closest-side at 52% 72%, rgba(129, 140, 248, 0.20), transparent);
  filter: blur(36px); animation: aurora 16s ease-in-out infinite alternate;
}
.hero::after, .create::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: -20px; width: 100vw; height: 760px; transform: translateX(-50%);
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 38%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 38%, #000 20%, transparent 78%);
}
@keyframes aurora {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-47%) translateY(18px) scale(1.05); }
  100% { transform: translateX(-53%) translateY(-10px) scale(0.98); }
}
/* 節ごとの帯: 画面の端から端まで、淡い青の面を敷く */
.versus, .steps, .anatomy, .pricing { position: relative; isolation: isolate; }
.versus::before, .steps::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; width: 100vw; transform: translateX(-50%); top: -72px; bottom: 56px;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0) 0%, rgba(226, 236, 252, 0.5) 16%, rgba(230, 243, 252, 0.5) 84%, rgba(224, 242, 254, 0) 100%);
}
/* 実例の電話・料金の後ろに、ぼんやりした光 */
.anatomy::before, .pricing::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  width: 620px; height: 620px; filter: blur(40px);
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.26), rgba(37, 99, 235, 0.10) 60%, transparent);
}
.anatomy::before { right: -120px; top: 0; }
.pricing::before { left: 50%; top: 40px; transform: translateX(-50%); width: 900px; height: 560px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.16), rgba(37, 99, 235, 0.08) 60%, transparent); }
.faq { position: relative; isolation: isolate; }
.faq::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: -160px; top: 20px; width: 520px; height: 520px;
  border-radius: 50%; filter: blur(40px); background: radial-gradient(closest-side, rgba(14, 165, 233, 0.18), transparent);
}
@media (max-width: 900px) {
  .anatomy::before { right: -260px; top: -40px; width: 520px; height: 520px; }
  .pricing::before { width: 600px; height: 700px; }
  .hero::after, .create::after { background-size: 40px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .create::before { animation: none; }
}


/* === 背景がうごめく: 画面に固定した 4 つの光が、ゆっくり形を変えながら漂う (2026-11-29) ==========
   動かすのは transform だけ (重くならないよう、ぼかしは止まった絵にかけ、動きは合成だけで済ませる) */
.bg-fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-fx i {
  position: absolute; display: block; border-radius: 50%; filter: blur(60px); will-change: transform;
  width: 56vmax; height: 56vmax; opacity: 0.7;
}
.bg-fx i:nth-child(1) { left: -18vmax; top: -22vmax; background: radial-gradient(closest-side, rgba(59, 130, 246, 0.48), transparent 70%); animation: drift1 9s ease-in-out infinite alternate; }
.bg-fx i:nth-child(2) { right: -20vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(14, 165, 233, 0.40), transparent 70%); animation: drift2 11s ease-in-out infinite alternate; }
.bg-fx i:nth-child(3) { left: 10vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.5) 45%, transparent 70%); animation: drift3 13s ease-in-out infinite alternate; }
.bg-fx i:nth-child(4) { right: 0; bottom: -12vmax; width: 44vmax; height: 44vmax; background: radial-gradient(closest-side, rgba(196, 181, 253, 0.40), transparent 70%); animation: drift4 8s ease-in-out infinite alternate; }
@keyframes drift1 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(34vw, 22vh) scale(1.3, 0.85); } 100% { transform: translate(10vw, 50vh) scale(0.88, 1.2); } }
@keyframes drift2 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40vw, 30vh) scale(0.85, 1.28); } 100% { transform: translate(-14vw, 62vh) scale(1.22, 0.9); } }
@keyframes drift3 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(36vw, -36vh) scale(1.28, 0.85); } 100% { transform: translate(-12vw, -56vh) scale(0.9, 1.22); } }
@keyframes drift4 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-44vw, -28vh) scale(1.35); } 100% { transform: translate(-70vw, 10vh) scale(0.85); } }
/* 点の模様も、ゆっくり流れる (1 マス分ずらして繰り返すので、継ぎ目は見えない) */
body::after { inset: -22px 0 0 -22px; animation: dots-flow 4s linear infinite; will-change: transform; }
@keyframes dots-flow { from { transform: translate(0, 0); } to { transform: translate(22px, 22px); } }
/* 見出しの後ろの光は、前より大きく動かす */
.hero::before, .create::before { animation: aurora2 7s ease-in-out infinite alternate; }
@keyframes aurora2 {
  0% { transform: translateX(-50%) translateY(0) rotate(0deg) scale(1); }
  33% { transform: translateX(-44%) translateY(26px) rotate(8deg) scale(1.08); }
  66% { transform: translateX(-56%) translateY(-14px) rotate(-6deg) scale(0.96); }
  100% { transform: translateX(-50%) translateY(10px) rotate(4deg) scale(1.05); }
}
@media (max-width: 900px) {
  .bg-fx i { filter: blur(44px); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-fx i, body::after, .hero::before, .create::before { animation: none; }
}


/* === 「ショートを作る」: 色が流れ、光が走り、まわりがふわっと光る (2026-11-29) ===================== */
.btn.primary.shine {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(110deg, #1d4ed8 0%, #2563eb 25%, #0ea5e9 50%, #2563eb 75%, #1d4ed8 100%);
  background-size: 250% 100%;
  animation: btn-flow 5s linear infinite, btn-glow 2.6s ease-in-out infinite;
}
.btn.primary.shine:hover { background: linear-gradient(110deg, #1d4ed8 0%, #2563eb 25%, #0ea5e9 50%, #2563eb 75%, #1d4ed8 100%); background-size: 250% 100%; }
.btn.primary.shine::before {
  content: ""; position: absolute; z-index: -1; top: -60%; bottom: -60%; left: 0; width: 34%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: translateX(-180%) skewX(-22deg); animation: btn-sweep 2.6s cubic-bezier(.4, 0, .2, 1) infinite;
}
.btn.primary.shine::after {  /* ふちに細い光の線 */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.primary.shine .ico { animation: btn-nudge 2.6s ease-in-out infinite; }
@keyframes btn-flow { from { background-position: 0% 50%; } to { background-position: 250% 50%; } }
@keyframes btn-sweep { 0% { transform: translateX(-180%) skewX(-22deg); } 55%, 100% { transform: translateX(420%) skewX(-22deg); } }
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.65), 0 0 0 0 rgba(56, 189, 248, 0); }
  50% { box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.8), 0 0 26px 2px rgba(56, 189, 248, 0.45); }
}
@keyframes btn-nudge { 0%, 40%, 100% { transform: translateX(0); } 55% { transform: translateX(4px); } 70% { transform: translateX(0); } }
.btn.primary.shine:disabled { animation: none; }
.btn.primary.shine:disabled::before { display: none; }
.btn.primary.shine:disabled .ico { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .btn.primary.shine, .btn.primary.shine::before, .btn.primary.shine .ico { animation: none; }
}

.url-form .btn.primary .ico, .btn.primary .ico { color: #fff; }

/* 光るボタンは控えめに: 色の流れ・まわりの光・矢印の動きはやめ、細い光が時々走るだけにする */
.btn.primary.shine { background: var(--grad); background-size: auto; animation: none; }
.btn.primary.shine:hover { background: var(--grad); }
.btn.primary.shine::before { width: 22%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); animation: btn-sweep 5s cubic-bezier(.4, 0, .2, 1) 1s infinite; }
.btn.primary.shine .ico { animation: none; }
@keyframes btn-sweep2 { 0% { transform: translateX(-180%) skewX(-22deg); } 40%, 100% { transform: translateX(620%) skewX(-22deg); } }
.btn.primary.shine::before { animation-name: btn-sweep2; }
@media (prefers-reduced-motion: reduce) { .btn.primary.shine::before { animation: none; } }


/* === アプリで見たときのボタン・文字の位置 (目安) を、動画の上に重ねる (2026-11-29) ========== */
.clip-view { position: relative; }
.app-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s; }
.app-ui svg { width: 100%; height: 100%; display: block; }
.show-ui > .app-ui { opacity: 0.9; }
.clip-view .app-ui { border-radius: 10px; overflow: hidden; }
.ui-toggle {
  position: absolute; top: 8px; left: 8px; z-index: 4; font: inherit; font-size: 0.7rem; font-weight: 700; line-height: 1;
  padding: 6px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.5); cursor: pointer;
  background: rgba(15, 27, 51, 0.55); color: #fff; backdrop-filter: blur(6px);
}
.ui-toggle[aria-pressed="true"] { background: var(--accent); border-color: transparent; }
.app-ui-check small { color: var(--muted); font-size: 0.75rem; margin-left: 4px; }
.app-ui-check { flex-wrap: wrap; row-gap: 0; }
.app-ui-check small { flex-basis: 100%; margin-left: 26px; }


/* === 確かめる画面 (ブラウザの confirm の代わり) === */
.ask-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(15, 27, 51, 0.5); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; }
.ask-sheet { width: min(400px, 100%); padding: 26px 22px 20px; }
.ask-text { white-space: pre-line; font-size: 0.95rem; line-height: 1.7; margin: 0 0 20px; }
.ask-btns { display: flex; gap: 10px; justify-content: flex-end; }
.ask-btns .btn { flex: 1; }
.btn.ask-danger { background: var(--danger); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px rgba(214, 49, 43, 0.7); }
.btn.ask-danger:hover { filter: brightness(1.06); }

.auth-ok { color: var(--accent-deep); background: var(--tint); border-radius: 10px; padding: 10px 12px; font-size: 0.86rem; line-height: 1.6; margin: 0 0 12px; }
#verify-note .link { font-size: inherit; }
