/* オーバーレイ工房 — 共通スタイル（リデザイン版）
   カラーパレットは INSTRUCTION §3-2 の CSS変数のみを使う。
   中間色は既存色の rgba で作る。フォントは M PLUS Rounded 1c（見出し）＋システムフォント（本文）。 */
:root{
  --bg:#12121F;
  --panel:#1D1D2E;
  --line:#34344E;
  --text:#F7F7FC;
  --sub:#A6A6C2;
  --pink:#FF5C8A;
  --cyan:#2ED3FF;
  --yellow:#FFD93B;
  --mint:#3DDC97;
  --grad:linear-gradient(90deg,#FF5C8A,#2ED3FF);
  --font-round:"M PLUS Rounded 1c","Hiragino Maru Gothic ProN","Hiragino Sans","Yu Gothic UI","Yu Gothic",Meiryo,"Noto Sans JP",sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic UI","Yu Gothic",Meiryo,"Noto Sans JP",sans-serif;
  color:var(--text); background:var(--bg); line-height:1.8; font-size:15.5px;
}
a{color:var(--cyan)}
a:hover{text-decoration:none}
:focus-visible{outline:2px solid var(--cyan); outline-offset:2px}
img{max-width:100%}
h1,h2,h3{font-family:var(--font-round)}

/* ---------- 共通ヘッダー ---------- */
header.site{
  background:rgba(18,18,31,.94); border-bottom:1px solid var(--line);
  padding:12px 16px;
}
header.site .inner{
  max-width:1080px; margin:0 auto;
  display:flex; align-items:center; gap:12px 18px; flex-wrap:wrap;
}
a.brand{display:flex; align-items:center; gap:10px; text-decoration:none; margin-right:auto}
.logo{
  width:40px; height:40px; flex:0 0 auto; display:block;
  border-radius:22%; overflow:hidden;
}
.logo img{width:100%; height:100%; display:block; object-fit:cover}
.brand-name{
  font-family:var(--font-round); font-weight:800; font-size:20px; letter-spacing:.02em;
  color:var(--text); white-space:nowrap;
}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .brand-name{
    background:var(--grad);
    -webkit-background-clip:text; background-clip:text;
    color:transparent; -webkit-text-fill-color:transparent;
  }
}
.live-badge{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--pink); color:#fff;
  font-family:var(--font-round); font-weight:800; font-size:11px; letter-spacing:.14em;
  padding:3px 10px 3px 8px; border-radius:999px; white-space:nowrap;
}
.live-dot{width:7px; height:7px; border-radius:50%; background:#fff; flex:0 0 auto}
nav.gnav{font-size:14px; display:flex; gap:4px 20px; flex-wrap:wrap}
nav.gnav a{color:var(--sub); text-decoration:none; font-weight:700}
nav.gnav a:hover{color:var(--cyan); text-decoration:none}

/* ---------- 本体・文書型（法的ページ等と共通） ---------- */
main{max-width:1080px; margin:0 auto; padding:28px 16px 64px}
h1.page{font-size:26px; line-height:1.4; margin:0 0 8px; font-weight:800}
p.lead{color:var(--sub); margin:0 0 24px}
section.card{
  background:var(--panel); border:1px solid var(--line); border-radius:14px;
  padding:20px 22px; margin-bottom:18px;
}
section.card h2{margin:0 0 10px; font-size:19px; font-weight:800}
section.card h3{margin:18px 0 6px; font-size:16px; font-weight:700}
section.card p{margin:0 0 10px}
section.card ul, section.card ol{margin:6px 0 12px; padding-left:1.4em}
section.card li{margin-bottom:4px}
table.kv{border-collapse:collapse; width:100%; margin:8px 0 12px}
table.kv th, table.kv td{
  border:1px solid var(--line); padding:8px 12px; text-align:left; vertical-align:top; font-size:14.5px;
}
table.kv th{background:rgba(46,211,255,.08); width:9em; font-weight:700; color:var(--text)}
.note{font-size:13.5px; color:var(--sub)}
.badge{
  display:inline-block; font-size:12px; font-weight:700; color:var(--cyan);
  background:rgba(46,211,255,.12); border-radius:999px; padding:2px 10px; margin-left:8px; vertical-align:middle;
}
.badge.soon{color:var(--sub); background:rgba(247,247,252,.08)}
.badge.pub{color:var(--mint); background:rgba(61,220,151,.14)}
a.btn{
  display:inline-block; background:var(--pink); color:#fff; text-decoration:none;
  border-radius:10px; padding:11px 22px; font-weight:700; font-size:15px;
  font-family:var(--font-round);
}
a.btn:hover{opacity:.88; text-decoration:none}
a.btn.booth{background:var(--pink)}
a.btn.ghost{background:transparent; color:var(--cyan); border:1.5px solid var(--cyan)}
a.btn.ghost:hover{background:rgba(46,211,255,.1); opacity:1}
.toolitem{border-top:1px solid var(--line); padding:14px 0}
.toolitem:first-of-type{border-top:none}
.toolitem h3{margin:0 0 4px; font-size:16.5px}
.toolitem p{margin:0; color:var(--sub); font-size:14.5px}

/* ---------- 共通フッター ---------- */
footer.site{
  border-top:1px solid var(--line); background:var(--panel);
  padding:24px 20px 32px; font-size:13.5px; color:var(--sub);
}
footer.site .inner{max-width:1080px; margin:0 auto}
footer.site nav{display:flex; gap:4px 18px; flex-wrap:wrap}
footer.site nav a{color:var(--sub); text-decoration:none}
footer.site nav a:hover{color:var(--cyan)}
footer.site .foot-note{margin:12px 0 0; font-size:12.5px}
footer.site .copy{margin-top:8px; font-weight:700; color:var(--text)}

/* ---------- 出現演出（後付け専用。初期状態は表示が正） ---------- */
.rv-on .rv{
  opacity:0; transform:translateY(14px);
  transition:opacity .6s ease, transform .6s ease;
}
.rv-on .rv.rv-in{opacity:1; transform:none}

/* =========================================================
   トップページ
   ========================================================= */
.fv{position:relative; display:grid; gap:20px; margin-bottom:44px}
.fv-catch{position:relative}
.catch{
  font-weight:800; font-size:clamp(28px,8vw,44px); line-height:1.3;
  letter-spacing:-.01em; margin:6px 0 14px;
}
.catch .marker{
  background:linear-gradient(transparent 64%, rgba(255,92,138,.55) 64%);
  padding:0 .06em;
}
.fv-sub{color:var(--sub); margin:0 0 20px; max-width:34em}
.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin-bottom:18px}
a.btn-main{
  display:inline-block; background:var(--pink); color:#fff; text-decoration:none;
  border-radius:12px; padding:13px 26px; font-weight:800; font-size:16px;
  font-family:var(--font-round); box-shadow:0 4px 0 rgba(255,92,138,.35);
}
a.btn-main:hover{opacity:.9; text-decoration:none}
a.btn-sub{
  display:inline-block; background:transparent; color:var(--cyan); text-decoration:none;
  border:1.5px solid var(--cyan); border-radius:12px; padding:12px 24px;
  font-weight:800; font-size:16px; font-family:var(--font-round);
}
a.btn-sub:hover{background:rgba(46,211,255,.1)}
.stickers{display:flex; gap:10px; flex-wrap:wrap}
.sticker{
  display:inline-block; background:var(--text); color:var(--bg);
  font-family:var(--font-round); font-weight:800; font-size:13px;
  padding:5px 14px; border-radius:999px; border:2px solid var(--bg);
  box-shadow:0 2px 0 rgba(0,0,0,.4);
}
.sticker:nth-child(1){transform:rotate(-3deg)}
.sticker:nth-child(2){transform:rotate(2deg)}
.sticker:nth-child(3){transform:rotate(-2deg)}
.spark{
  position:absolute; width:14px; height:14px; background:var(--yellow);
  clip-path:polygon(50% 0,63% 37%,100% 50%,63% 63%,50% 100%,37% 63%,0 50%,37% 37%);
  pointer-events:none;
}
.fv-hero{margin:0; border:1px solid var(--line); border-radius:16px; overflow:hidden}
.fv-hero img{width:100%; height:auto; display:block}
@media (min-width:920px){
  .fv{grid-template-columns:1fr 1.18fr; grid-template-areas:"catch mock" "hero hero"; align-items:start; gap:26px}
  .fv-catch{grid-area:catch; padding-top:18px}
  .mock-wrap{grid-area:mock}
  .fv-hero{grid-area:hero}
}

/* ---------- 配信画面モック＋実演デモ ---------- */
.mock-wrap{position:relative; padding:26px 2px 2px}
.mock{
  position:relative; background:var(--panel);
  border:1.5px solid var(--line); border-radius:16px;
  container-type:inline-size;
}
.mock-corner{position:absolute; width:20px; height:20px; pointer-events:none; z-index:3}
.mock-corner.tl{top:-7px; left:-7px; border-top:3px solid var(--cyan); border-left:3px solid var(--cyan); border-top-left-radius:8px}
.mock-corner.tr{top:-7px; right:-7px; border-top:3px solid var(--cyan); border-right:3px solid var(--cyan); border-top-right-radius:8px}
.mock-corner.bl{bottom:-7px; left:-7px; border-bottom:3px solid var(--cyan); border-left:3px solid var(--cyan); border-bottom-left-radius:8px}
.mock-corner.br{bottom:-7px; right:-7px; border-bottom:3px solid var(--cyan); border-right:3px solid var(--cyan); border-bottom-right-radius:8px}
.mock-bar{
  display:flex; align-items:center; gap:8px;
  padding:9px 14px; border-bottom:1px solid var(--line);
}
.mock-dots{display:flex; gap:6px}
.mock-dots i{width:10px; height:10px; border-radius:50%; display:block}
.mock-dots i:nth-child(1){background:var(--pink)}
.mock-dots i:nth-child(2){background:var(--yellow)}
.mock-dots i:nth-child(3){background:var(--cyan)}
.mock-title{font-size:12.5px; color:var(--sub); font-weight:700; margin-right:auto}
.screen{
  position:relative; background:var(--bg);
  font-size:15px; font-size:3.1cqw;
}
.roll-viewport{
  position:relative; overflow:hidden; aspect-ratio:16/9;
}
.roll-track{position:absolute; left:0; right:0; top:0}
.js .roll-track{animation:rollup 26s linear infinite}
@keyframes rollup{
  from{transform:translateY(0)}
  to{transform:translateY(-50%)}
}
.roll-set{padding:30% 8% 56.25%; text-align:center; line-height:1.7}
.cr-hd{
  font-family:var(--font-round); font-weight:800; letter-spacing:.14em;
  margin:1.15em 0 .45em; color:var(--text);
}
.cr-hd:first-child{margin-top:0}
.cr-nm{margin:.3em 0; color:var(--text)}
.cr-slot{color:var(--sub)}
.cr-slot.filled{color:var(--yellow); font-weight:700}
.demo-form{
  border-top:1px solid var(--line);
  padding:12px 14px 14px;
  background:rgba(247,247,252,.04);
  border-radius:0 0 15px 15px;
}
.demo-form label{
  display:block; font-family:var(--font-round); font-weight:800; font-size:14px; margin-bottom:8px;
}
.demo-row{display:flex; gap:8px}
.demo-row input{
  flex:1 1 auto; min-width:0;
  background:var(--bg); border:1.5px solid var(--line); border-radius:10px;
  color:var(--text); font-size:15px; padding:10px 12px;
  font-family:inherit;
}
.demo-row input::placeholder{color:var(--sub)}
button.btn-demo{
  flex:0 0 auto; background:var(--pink); color:#fff; border:none; cursor:pointer;
  border-radius:10px; padding:10px 18px; font-weight:800; font-size:15px;
  font-family:var(--font-round);
}
button.btn-demo:hover{opacity:.9}
.demo-note{font-size:12.5px; color:var(--yellow); margin:8px 0 0}
.demo-link{margin:8px 0 0; font-size:13.5px; text-align:right}
.demo-noscript{margin:10px 0 0; font-size:13.5px; color:var(--sub)}
.bubble{
  position:absolute; z-index:4;
  background:var(--panel); border:1.5px solid var(--cyan); color:var(--text);
  font-family:var(--font-round); font-weight:700; font-size:12.5px;
  padding:6px 12px; border-radius:14px; max-width:46%;
  box-shadow:0 3px 0 rgba(0,0,0,.35);
}
.bubble::after{
  content:""; position:absolute; bottom:-7px; left:22px;
  width:12px; height:12px; background:var(--panel);
  border-right:1.5px solid var(--cyan); border-bottom:1.5px solid var(--cyan);
  transform:rotate(45deg);
}
.bubble.b1{top:-8px; left:4%; --r:-3deg; transform:rotate(-3deg)}
.bubble.b2{top:34%; right:-2px; --r:2deg; transform:rotate(2deg)}
.bubble.b3{top:54%; left:-2px; --r:-2deg; transform:rotate(-2deg)}
.js .bubble{animation:floaty 5.5s ease-in-out infinite alternate}
.js .bubble.b2{animation-delay:1.2s}
.js .bubble.b3{animation-delay:2.1s}
@keyframes floaty{
  from{transform:translateY(0) rotate(var(--r,0deg))}
  to{transform:translateY(-5px) rotate(var(--r,0deg))}
}

/* ---------- トップのセクション ---------- */
.sec{margin:0 0 44px}
.sec h2{
  font-size:clamp(20px,4.6vw,26px); font-weight:800; line-height:1.35;
  margin:0 0 12px; display:flex; align-items:center; gap:12px;
}
.sec h2::before{
  content:""; flex:0 0 auto; width:11px; height:11px;
  background:var(--pink); border-radius:3px; transform:rotate(45deg);
}
.sec p{margin:0 0 12px}
.sec .panel-block{
  background:var(--panel); border:1px solid var(--line); border-radius:16px;
  padding:20px 22px;
}
.sec ul{margin:6px 0 6px; padding-left:1.4em}
.sec li{margin-bottom:4px}

/* ビフォアアフター */
.ba{
  position:relative; aspect-ratio:16/9; overflow:hidden;
  border:1.5px solid var(--line); border-radius:16px; background:var(--panel);
  --pos:50%;
}
.ba-before{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:var(--bg); color:var(--sub);
  font-family:var(--font-round); font-weight:700; font-size:clamp(18px,4.5vw,30px);
}
.ba-after{
  position:absolute; inset:0;
  clip-path:inset(0 0 0 var(--pos));
}
.ba-after img{width:100%; height:100%; object-fit:cover; display:block}
.ba-divider{
  position:absolute; top:0; bottom:0; left:var(--pos);
  width:2px; background:var(--yellow); transform:translateX(-1px);
  pointer-events:none;
}
.ba-divider::after{
  content:""; position:absolute; top:50%; left:50%;
  width:26px; height:26px; border-radius:50%;
  background:var(--yellow); transform:translate(-50%,-50%);
  box-shadow:0 2px 6px rgba(0,0,0,.4);
}
.ba-tag{
  position:absolute; top:10px; z-index:2;
  font-family:var(--font-round); font-size:11px; font-weight:800; letter-spacing:.08em;
  padding:3px 10px; border-radius:999px;
  background:rgba(18,18,31,.78); color:var(--text);
  pointer-events:none;
}
.ba-tag.b{left:10px}
.ba-tag.a{right:10px; color:var(--yellow)}
.ba-range{
  position:absolute; inset:0; width:100%; height:100%;
  opacity:0; cursor:ew-resize; margin:0; padding:0;
}
.ba-cap{font-size:13px; color:var(--sub); margin:8px 0 0}

/* 使い方ステップ */
.steps{display:grid; gap:12px}
@media (min-width:760px){ .steps{grid-template-columns:repeat(3,1fr)} }
.step{
  background:var(--panel); border:1px solid var(--line); border-radius:16px;
  padding:18px;
}
.step-num{
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:50%;
  background:var(--pink); color:#fff; border:2px solid var(--text);
  font-family:var(--font-round); font-weight:800; font-size:16px;
  transform:rotate(-6deg); margin-bottom:10px;
}
.step p{margin:0; font-size:14.5px}
.steps-note{margin-top:12px; font-weight:700}

/* ツールタイル（トップ／一覧共通） */
.tile-grid{display:grid; gap:14px}
@media (min-width:760px){ .tile-grid{grid-template-columns:repeat(2,1fr)} }
a.tile, div.tile{
  display:block; text-decoration:none; color:var(--text);
  background:var(--panel); border:1.5px solid var(--line); border-radius:16px;
  padding:14px;
}
a.tile:hover{border-color:var(--cyan); text-decoration:none}
a.tile.live, div.tile.live{border:1.5px dashed var(--pink)}
div.tile.soon{opacity:.62; filter:saturate(.55)}
.tile .mini{
  display:block;
  aspect-ratio:16/9; border-radius:10px; background:var(--bg);
  border:1px solid var(--line); overflow:hidden; position:relative;
  margin-bottom:12px;
}
.tile .mini img{width:100%; height:100%; object-fit:cover; display:block}
.mini-credits{
  position:absolute; left:0; right:0; top:16%;
  text-align:center; font-size:11px; line-height:1.9; color:var(--sub);
}
.mini-credits b{color:var(--text); display:block; font-family:var(--font-round); letter-spacing:.12em}
a.tile:hover .mini-credits{animation:miniroll 2.8s linear infinite}
@keyframes miniroll{
  from{transform:translateY(0)}
  to{transform:translateY(-42%)}
}
.mini-frame{
  position:absolute; inset:14% 10%;
  border:2px dashed var(--cyan); border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  color:var(--sub); font-size:12px; font-weight:700;
}
.mini-count{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-round); font-weight:800; font-size:44px; color:var(--text);
}
.mini-cal{
  position:absolute; inset:16% 14%;
  display:grid; grid-template-columns:repeat(5,1fr); gap:5px;
}
.mini-cal i{border:1.5px solid var(--line); border-radius:5px; display:block}
.mini-cal i.on{border-color:var(--pink); background:rgba(255,92,138,.25)}
.tile h3{margin:0 0 4px; font-size:16.5px; font-weight:800}
.tile p{margin:0; color:var(--sub); font-size:14px}
.tile .badge{margin-left:8px}

/* 素材カード */
.mat-grid{display:grid; gap:14px}
@media (min-width:760px){ .mat-grid{grid-template-columns:repeat(3,1fr)} }
.mat-card{
  background:var(--panel); border:1px solid var(--line); border-radius:16px;
  overflow:hidden; display:flex; flex-direction:column;
}
.mat-card .shot{aspect-ratio:16/9; background:var(--bg); position:relative; overflow:hidden}
.mat-card .shot img{width:100%; height:100%; object-fit:cover; display:block}
.mat-card .shot .mini-frame{inset:16% 12%}
.mat-body{padding:14px 16px 16px; display:flex; flex-direction:column; gap:8px; flex:1}
.mat-body h3{margin:0; font-size:16px; font-weight:800}
.mat-body p{margin:0; color:var(--sub); font-size:13.5px; flex:1}
.mat-body .btn{align-self:flex-start}

/* 締め */
.closing{text-align:center}
.closing h2{justify-content:center}
.closing h2::before{display:none}
.closing .to-top{margin-top:10px; display:inline-block; font-weight:700}

/* ---------- スマホ幅の詰め調整（FVを1画面に収める） ---------- */
@media (max-width:600px){
  main{padding-top:18px}
  header.site{padding:9px 12px}
  .logo{width:34px; height:34px}
  .brand-name{font-size:18px}
  .fv{gap:14px}
  .fv-sub{margin-bottom:16px; line-height:1.7}
  .cta-row{margin-bottom:14px}
  .mock-bar{padding:7px 12px}
  .demo-form{padding:10px 12px 12px}
  .demo-form label{margin-bottom:6px}
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .rv-on .rv{opacity:1; transform:none; transition:none}
  .js .roll-track{animation:none}
  .js .bubble{animation:none}
  a.tile:hover .mini-credits{animation:none}
  .sticker, .step-num{transform:none}
}
