@charset "utf-8";
/* 主催者の作業画面。
   配色と入力まわりの作法は squeeze-php に合わせてある（ツール間で操作感を変えない）。
   見出しは太らせず、字間を広めに。 */

:root{
  --paper:#FFFFFF; --paper2:#F1F7FA; --card:#FFFFFF;
  --ink:#182229; --ink2:#4A555C; --ink3:#8A959B;
  --line:#DDE7EC; --line2:#EDF3F6;
  --accent:#3F5BC9; --accent-d:#2F469E; --accent-soft:#E6EAFB;
  --orange:#E3902F; --orange-d:#C97A1E;
  --navy:#1D2634;
  --red:#C0492F; --ok:#1E7A52;
  --jp:"Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP",system-ui,sans-serif;
  --shadow:0 1px 2px rgba(20,50,70,.04),0 8px 24px rgba(20,50,70,.06);
  --tool-w:1180px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

.app{
  background:var(--paper2); color:var(--ink);
  font-family:var(--jp); font-size:14px; line-height:1.9; letter-spacing:.02em;
  -webkit-font-smoothing:antialiased;
}

/* ---------------- ヘッダ ---------------- */
.hd{background:var(--card); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:40}
.hd-in{max-width:var(--tool-w); margin:0 auto; padding:14px 22px; display:flex; align-items:center; gap:14px}
.hd-logo{font-size:13px; letter-spacing:.2em; color:var(--ink2); font-weight:500}
.hd-logo b{font-weight:600; color:var(--accent-d)}
.hd-crumb{font-size:12.5px; color:var(--ink3); letter-spacing:.06em}
.hd-who{margin-left:auto; font-size:12.5px; color:var(--ink3)}
.hd-out{
  border:1px solid var(--line); background:var(--card); color:var(--ink2);
  border-radius:999px; padding:7px 15px; font-size:12px; cursor:pointer; font-family:inherit;
}
.hd-out:hover{border-color:var(--accent)}

/* ---------------- 共通 ---------------- */
.view[hidden]{display:none}
.sec{max-width:var(--tool-w); margin:0 auto; padding:26px 22px 72px}
.sec-head{display:flex; align-items:center; gap:14px; margin-bottom:20px; flex-wrap:wrap}
.sec-h{font-size:19px; font-weight:600; letter-spacing:.06em; margin:0; margin-right:auto; color:var(--ink)}
.save-state{font-size:12px; color:var(--ink3); letter-spacing:.04em}
.save-state.ok{color:var(--ok)}
.save-state.err{color:var(--red)}

.panel{background:var(--card); border:1px solid var(--line); border-radius:18px;
  box-shadow:var(--shadow); padding:22px; margin-bottom:20px}
.panel > h2{font-size:14px; font-weight:600; letter-spacing:.05em; line-height:1.6;
  margin:-22px -22px 20px; padding:16px 22px; border-bottom:1px solid var(--line2);
  background:rgba(241,247,250,.5); border-radius:18px 18px 0 0}
.panel.danger > h2{color:var(--red); background:#FDF2EF; border-bottom-color:#F3DCD6}
.panel .lead{font-size:12.5px; color:var(--ink3); margin:-8px 0 16px; line-height:1.95}
.opt{font-size:10.5px; font-weight:600; letter-spacing:.1em; color:var(--ink3);
  background:var(--paper2); border:1px solid var(--line); border-radius:999px;
  padding:2px 9px; margin-left:9px; vertical-align:1px}
.note-s{font-size:11.5px; color:var(--ink3); line-height:1.9; margin:10px 0 0}

.field{margin-bottom:16px; position:relative}
.field:last-child{margin-bottom:0}
.field > label{display:block; font-size:12.5px; font-weight:600; color:#3E4A52; margin-bottom:7px}
.hint{font-size:11.5px; color:var(--ink3); font-weight:400; margin-left:6px; line-height:1.8}
/* 単位は入力欄の中に置く。外に出すと幅100%の入力に押し出されて次の行へ落ちる */
.field > .unit{position:absolute; right:13px; bottom:12px; font-size:12px; color:var(--ink3); pointer-events:none}
.field:has(> .unit) > input{padding-right:40px}
.row .field > .unit{position:static; margin-left:7px}

input[type=text],input[type=number],input[type=url],input[type=email],
input[type=password],input[type=datetime-local],select,textarea{
  width:100%; font-family:inherit; font-size:14px; color:var(--ink);
  background:#FBFDFE; border:1px solid var(--line); border-radius:11px; padding:11px 13px;
  transition:border-color .2s, box-shadow .2s;
}
input:focus,select:focus,textarea:focus{
  outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(63,91,201,.16); background:#fff;
}
textarea{resize:vertical; min-height:64px; line-height:1.9}
textarea.code{font-family:ui-monospace,Menlo,Consolas,monospace; font-size:12px; min-height:150px; line-height:1.8}

.row{display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end}
.row > .field{flex:1; min-width:110px; margin-bottom:0; display:flex; align-items:center}
.row > .field input{flex:1}
/* ラベルの行数が違っても入力欄の下端が揃うようにする */
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:10px; align-items:end}
@media(max-width:520px){.grid2{grid-template-columns:1fr}}

.seg{display:flex; gap:6px; flex-wrap:wrap; background:var(--paper2);
  border:1px solid var(--line); border-radius:12px; padding:4px}
.seg label{flex:1; min-width:84px; text-align:center; cursor:pointer; border-radius:9px;
  padding:9px 6px; font-size:12.5px; color:var(--ink2); transition:.2s; line-height:1.5}
.seg label[hidden]{display:none}
.seg input{display:none}
.seg label:has(input:checked){background:var(--card); color:var(--ink); font-weight:600; box-shadow:var(--shadow)}

.check{display:flex; align-items:center; gap:9px; font-size:13px; font-weight:600; cursor:pointer; color:#3E4A52}
.check input{width:18px; height:18px; accent-color:var(--accent); cursor:pointer}
.when{display:none} .when.on{display:block}

.btn{
  font-family:inherit; cursor:pointer; border-radius:999px; font-size:13px; font-weight:600;
  letter-spacing:.06em; padding:11px 22px; border:1px solid var(--line);
  background:var(--card); color:var(--ink2); transition:.16s;
}
.btn:hover{border-color:var(--accent); color:var(--accent-d)}
.btn.primary{background:var(--accent); border-color:var(--accent); color:#fff;
  box-shadow:0 6px 16px rgba(63,91,201,.24)}
.btn.primary:hover{background:var(--accent-d); border-color:var(--accent-d); color:#fff}
.btn.ghost{background:transparent}
.btn.danger{background:var(--red); border-color:var(--red); color:#fff}
.btn.danger:hover{background:#A5301C; border-color:#A5301C; color:#fff}
.btn.small{padding:8px 16px; font-size:12px}
.btn.wide{width:100%; padding:15px}
.btn:disabled{opacity:.5; cursor:default}

.msg{font-size:12.5px; line-height:1.9; border-radius:10px; padding:11px 14px; margin:0 0 14px}
.msg[hidden]{display:none}
.msg.err{background:#FDECEA; border:1px solid #E9A79E; color:#A5301C}
.msg.warn{background:#FFF8E8; border:1px solid #E9CE8C; color:#8A5A0B}

/* ---------------- ログイン ---------------- */
.auth{max-width:420px; margin:0 auto; padding:60px 22px 90px}
.auth-h{font-size:21px; font-weight:600; letter-spacing:.08em; margin:0 0 10px; text-align:center}
.auth-lead{font-size:13px; color:var(--ink3); text-align:center; margin:0 0 28px; line-height:1.95}
.auth-seg{margin-bottom:22px}
.auth-body{background:var(--card); border:1px solid var(--line); border-radius:18px;
  box-shadow:var(--shadow); padding:26px 24px}
[data-only][hidden]{display:none}

/* ---------------- 一覧 ---------------- */
.wcard{
  background:var(--card); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow);
  padding:18px 20px; margin-bottom:12px; display:flex; align-items:center; gap:16px; flex-wrap:wrap;
}
.wcard-main{flex:1; min-width:200px}
.wcard-t{font-size:15px; font-weight:600; letter-spacing:.04em; color:var(--ink); margin:0 0 5px}
.wcard-m{font-size:12px; color:var(--ink3); letter-spacing:.03em}
.wcard-m b{color:var(--ink2); font-weight:600}
.wcard-url{font-size:11.5px; color:var(--accent-d); word-break:break-all; text-decoration:none}
.wcard-url:hover{text-decoration:underline}
.tag{display:inline-block; font-size:10.5px; font-weight:600; letter-spacing:.08em;
  padding:3px 9px; border-radius:999px; margin-left:8px}
.tag.on{background:#E4F3EA; color:var(--ok)}
.tag.off{background:#F0F2F3; color:var(--ink3)}
.tag.sim{background:#FFF1DC; color:var(--orange-d)}
.empty{text-align:center; color:var(--ink3); font-size:13.5px; padding:52px 20px; line-height:2}

/* ---------------- 作成画面のレイアウト ---------------- */
.layout{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:22px; align-items:start}
@media(max-width:920px){.layout{grid-template-columns:minmax(0,1fr)}}
/* 広い画面ではプレビューを実寸で出す。左右2等分だと縮んで本文が読めない */
@media(min-width:1250px){
  :root{--tool-w:1460px}
  .layout{grid-template-columns:minmax(0,460px) minmax(0,1fr)}
}
.col-in,.col-out{min-width:0}
.col-out{position:sticky; top:76px}
@media(max-width:920px){.col-out{position:static}}

.preview-head{display:flex; align-items:center; gap:10px; margin-bottom:14px; flex-wrap:wrap}
.preview-head h2{margin:0; border:none; padding:0; background:none; margin-right:auto; font-size:14px}
.zoomnote{font-size:11.5px; color:var(--ink3); white-space:nowrap}
.zoomnote.full{color:var(--ok); font-weight:600}
.device{display:flex; gap:4px; background:var(--paper2); border:1px solid var(--line); border-radius:999px; padding:3px}
.device button{border:0; background:none; color:var(--ink2); border-radius:999px; padding:6px 14px;
  font-size:12px; cursor:pointer; font-family:inherit; transition:.2s}
.device button.active{background:var(--card); color:var(--ink); font-weight:600; box-shadow:var(--shadow)}
/* 台紙はページ地より少し沈ませる。真っ白だとLPの白地と溶けて、どこまでがページか分からない */
.stage{background:var(--paper2); border:1px solid var(--line); border-radius:14px; overflow:hidden;
  display:flex; justify-content:center}
.frame-wrap{overflow:hidden; background:#fff; transition:width .2s, height .2s}
iframe.preview{border:0; display:block; background:#fff; transform-origin:top left}

.urlrow{display:flex; align-items:center; gap:12px; flex-wrap:wrap}
.urlrow-l{font-size:12px; font-weight:600; color:#3E4A52; flex:0 0 auto}
.urlrow-a{flex:1; min-width:180px; font-size:12.5px; color:var(--accent-d); word-break:break-all}

/* ---------------- 開催回 ---------------- */
.sess-list{display:flex; flex-direction:column; gap:9px; margin-bottom:13px}
.sess{display:flex; align-items:center; gap:9px; background:#FBFDFE;
  border:1px solid var(--line); border-radius:12px; padding:10px 12px; flex-wrap:wrap}
.sess input[type=datetime-local]{flex:1; min-width:180px; background:#fff}
.sess .cap{width:104px; flex:0 0 auto; background:#fff}
.sess .cap-l{font-size:11px; color:var(--ink3); flex:0 0 auto}
.sess .taken{font-size:11px; color:var(--accent-d); flex:0 0 auto; white-space:nowrap}
.sess .rm{border:0; background:none; color:var(--ink3); cursor:pointer; font-size:17px;
  line-height:1; padding:4px 6px; border-radius:7px; flex:0 0 auto}
.sess .rm:hover{background:#FDECEA; color:var(--red)}
.sess.is-off{opacity:.55}

/* ---------------- 人数カーブ ---------------- */
.curve{margin-top:16px; background:#FBFDFE; border:1px solid var(--line); border-radius:13px; padding:14px}
.curve-head{display:flex; justify-content:space-between; font-size:11.5px; color:var(--ink3); margin-bottom:8px}
.curve-peak{color:var(--orange-d); font-weight:600}
.curve-svg{display:block; width:100%; height:130px}
.curve-x{display:flex; justify-content:space-between; font-size:10.5px; color:var(--ink3); margin-top:6px}

/* ---------------- 集計 ---------------- */
.cards{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:20px}
.stat{background:var(--card); border:1px solid var(--line); border-radius:15px;
  box-shadow:var(--shadow); padding:18px 18px 16px}
.stat-l{font-size:11px; letter-spacing:.12em; color:var(--ink3); font-weight:600}
.stat-v{font-size:27px; font-weight:500; letter-spacing:.03em; color:var(--ink); margin-top:6px;
  font-variant-numeric:tabular-nums}
.stat-v small{font-size:13px; color:var(--ink3); margin-left:3px}
.stat-s{font-size:11.5px; color:var(--ink3); margin-top:2px}

.tablewrap{overflow-x:auto}
table.t{width:100%; border-collapse:collapse; font-size:12.5px; min-width:520px}
table.t th,table.t td{padding:11px 12px; text-align:left; border-bottom:1px solid var(--line2); white-space:nowrap}
table.t th{font-size:11px; letter-spacing:.08em; color:var(--ink3); font-weight:600;
  background:rgba(241,247,250,.5)}
table.t td{color:var(--ink2)}
table.t td b{color:var(--ink); font-weight:600}
table.t tr:last-child td{border-bottom:0}
.bar{display:inline-block; height:6px; border-radius:3px; background:var(--accent-soft); min-width:2px;
  vertical-align:middle; margin-right:7px}
.bar i{display:block; height:100%; border-radius:3px; background:var(--accent)}
.qs{color:var(--ink3); font-size:11.5px}

.qitem{border-bottom:1px solid var(--line2); padding:14px 0}
.qitem:last-child{border-bottom:0; padding-bottom:0}
.qitem-h{font-size:11.5px; color:var(--ink3); margin-bottom:5px}
.qitem-h b{color:var(--ink2); font-weight:600}
.qitem-b{font-size:13.5px; line-height:1.95; color:var(--ink); white-space:pre-wrap}
