/* KDS Creative の画面。旧アプリ（KDS Next）と同じ基本デザイン：
   ネイビーのサイドバー、オレンジの差し色、白いカード、左右分割のログイン画面。
   Mac（Safari）・Windows・iPhone・iPad で同じ見た目。 */

:root {
  --ink: #17212a; --muted: #71808c; --line: #dfe5e9; --paper: #ffffff; --canvas: #f4f6f7;
  --navy: #132330; --navy-2: #1f3749;
  --orange: #e96d2f; --orange-dark: #d45b21; --orange-pale: #fff1e9;
  --green: #24956a; --blue: #3f6fc0; --purple: #7656b7; --red: #bf3e31;
  --shadow: 0 14px 40px rgba(21, 36, 48, .07); --radius: 18px;
}
* { box-sizing: border-box; }
html { background: var(--canvas); font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "DM Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }
.loading { padding: 60px; text-align: center; color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); font-size: 13px; }
svg.i { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---- 骨組み：サイドバー＋主列 ---- */
.app-frame { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 258px; display: flex; flex-direction: column; background: var(--navy); color: #fff; border-right: 1px solid rgba(255,255,255,.05); }
.sidebar-head { height: 92px; padding: 24px 24px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand-mark { display: flex; align-items: center; gap: 12px; }
.brand-symbol { width: 40px; height: 40px; flex: 0 0 40px; display: block; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.08; }
.brand-copy strong { font-size: 16px; letter-spacing: .01em; }
.brand-copy small { margin-top: 6px; color: #7f919f; font-size: 12px; letter-spacing: .02em; line-height: 1.5; }
.primary-nav { flex: 1; padding: 7px 14px; overflow-y: auto; }
.nav-group { margin-bottom: 26px; }
.nav-group > p { margin: 0 12px 9px; color: #718594; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.nav-link { min-height: 43px; margin: 3px 0; padding: 0 12px; display: flex; align-items: center; gap: 12px; color: #b6c1c9; border-radius: 10px; font-size: 13px; font-weight: 500; transition: .18s ease; cursor: pointer; border: 0; background: transparent; width: 100%; text-align: left; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(233,109,47,.2), rgba(233,109,47,.06)); box-shadow: inset 3px 0 var(--orange); }
.nav-link.active svg { color: var(--orange); }
.nav-link b { margin-left: auto; min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--orange); font-size: 10px; }
.sidebar-foot { padding: 12px 14px 20px; border-top: 1px solid rgba(255,255,255,.06); }
.account-row { margin: 11px 8px 5px; padding: 11px 0; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; border-top: 1px solid rgba(255,255,255,.06); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #d7e2e7; color: var(--navy); font-size: 12px; font-weight: 700; }
.account-row > span:nth-child(2) { display: flex; flex-direction: column; }
.account-row strong { font-size: 12px; }
.account-row small { margin-top: 3px; color: #7f919f; font-size: 10px; }
.logout-button { width: 100%; height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; color: #7f919f; background: transparent; font-size: 11px; cursor: pointer; }
.logout-button:hover { color: #fff; background: rgba(255,255,255,.05); }
.scrim { display: none; }

.main-column { width: calc(100% - 258px); min-width: 0; min-height: 100vh; margin-left: 258px; }
.test-banner { height: 29px; display: flex; justify-content: center; align-items: center; gap: 7px; color: #6c492d; background: #fff0df; border-bottom: 1px solid #f2dcc5; font-size: 11px; font-weight: 700; }
.test-banner span { color: #9c7453; font-weight: 500; }
.topbar { height: 69px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.9); border-bottom: 1px solid #e5e9ec; backdrop-filter: blur(16px); }
.current-page-label { font-size: 13px; font-weight: 700; color: #53636f; }
.topbar-actions { display: flex; align-items: center; gap: 11px; margin-left: auto; }
.icon-button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.mobile-only { display: none; }
.page-content { max-width: 1500px; margin: 0 auto; padding: 34px 38px 65px; }
.page-heading { margin-bottom: 25px; }
.page-heading h1 { margin: 4px 0 7px; font-size: clamp(25px, 2.4vw, 34px); line-height: 1.25; letter-spacing: -.025em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.eyebrow { margin: 0; color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* ---- 部品 ---- */
.primary-button, .secondary-button, .text-button, button.primary, button.accent, button.ghost, button:not([class]) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.primary-button, button.primary, button.accent { min-height: 40px; padding: 0 17px; border: 1px solid var(--orange); color: #fff; background: var(--orange); box-shadow: 0 7px 18px rgba(233,109,47,.18); font-size: 12px; }
.primary-button:hover, button.primary:hover, button.accent:hover { background: var(--orange-dark); transform: translateY(-1px); }
.secondary-button, button.ghost, button:not([class]) { min-height: 39px; padding: 0 15px; border: 1px solid var(--line); background: #fff; font-size: 12px; }
.secondary-button:hover, button.ghost:hover, button:not([class]):hover { border-color: #b9c5cc; background: #f8fafb; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.text-button { padding: 8px 0; border: 0; color: #53636f; background: transparent; font-size: 12px; }
input, select, textarea { width: 100%; border: 1px solid #d8e0e4; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; font-size: 13px; transition: .16s ease; }
input, select { height: 44px; padding: 0 13px; }
input[type="checkbox"], input[type="file"] { width: auto; height: auto; accent-color: var(--orange); }
textarea { min-height: 90px; padding: 12px 13px; resize: vertical; line-height: 1.7; }
input:focus, textarea:focus, select:focus { border-color: #e38758; box-shadow: 0 0 0 3px rgba(233,109,47,.09); }
label { display: block; margin: 14px 0 6px; color: #40515d; font-size: 11px; font-weight: 700; }
.panel { background: var(--paper); border: 1px solid #e1e7ea; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 16px; }
.panel > h2, .page-content h2 { font-size: 16px; margin: 0 0 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.error { margin: 10px 0; padding: 11px 13px; color: #923f36; border: 1px solid #efcec9; border-radius: 9px; background: #fff5f4; font-size: 12px; font-weight: 700; }
.ok { margin: 10px 0; padding: 11px 13px; color: #317459; border: 1px solid #d6eadf; border-radius: 9px; background: #f2faf6; font-size: 12px; font-weight: 700; }
.check { margin-top: 8px; padding: 10px 12px; color: #83532f; border: 1px solid #f0d5c2; border-radius: 9px; background: #fff7f1; font-size: 12px; }
.tag { display: inline-block; padding: 5px 9px; border-radius: 7px; color: #65737e; background: #eef1f3; font-size: 10px; font-weight: 700; margin-right: 4px; white-space: nowrap; }
.tag.blue { color: #355d91; background: #eaf2fc; } .tag.red { color: #c25a26; background: #fff0e8; } .tag.green { color: #29815f; background: #e8f7f1; } .tag.yellow { color: #c25a26; background: #fff0e8; }

/* 一覧 */
.list { display: flex; flex-direction: column; }
.item { padding: 13px 4px; display: flex; gap: 12px; align-items: center; border-top: 1px solid #edf0f2; cursor: pointer; }
.item:first-child { border-top: 0; }
.item:hover { background: #fafbfb; }
.item .t { font-weight: 700; flex: 1; min-width: 0; font-size: 13px; }
.item .s { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 3px; }

/* ログイン（旧アプリと同じ左右分割） */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; background: #fff; }
/* 背景は**紺一色**（グラデーションや模様は使わない。入校売上・KDSステップと同じ）。写し（.lv-splash）にも同じものが効く */
.login-visual { position: relative; min-height: 100vh; padding: 9vw; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--navy); }
.visual-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: linear-gradient(to right, black, transparent); mask-image: linear-gradient(to right, black, transparent); }
.visual-content { position: relative; z-index: 2; }
.eyebrow.light { color: #f79561; }
.visual-content h1 { margin: 22px 0 24px; font-size: clamp(38px, 4.2vw, 66px); line-height: 1.27; letter-spacing: -.055em; }
.visual-content > p:not(.eyebrow) { color: #aebdc6; font-size: 13px; line-height: 2; margin: 0; }
.visual-pills { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 9px; }
.visual-pills span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; color: #c7d1d7; background: rgba(255,255,255,.04); font-size: 10px; }
.visual-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 430px; height: 430px; right: -250px; bottom: -170px; background: radial-gradient(circle at 30% 30%, rgba(233,109,47,.55), rgba(233,109,47,0) 68%); }
.orb-two { width: 180px; height: 180px; right: 10%; top: 9%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 90px rgba(233,109,47,.09); }
.login-panel { padding: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fbfcfc; }
.login-card { width: min(420px, 100%); }
.login-panel .brand-copy strong { font-size: 17px; color: var(--ink); } .login-panel .brand-copy small { color: #52616c; }
.login-heading { margin: 57px 0 29px; }
.secure-label { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 10px; font-weight: 700; }
.login-heading h2 { margin: 13px 0 7px; font-size: 28px; } .login-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.login-card form { display: grid; gap: 20px; }
.login-card label { margin: 0; display: grid; gap: 8px; color: #40515d; font-size: 10px; font-weight: 700; }
.login-card input { height: 48px; padding: 0 14px; font-size: 13px; }
.password-field { position: relative; display: block; }
.password-field > svg { position: absolute; left: 14px; top: 15px; color: #85939c; }
.password-field input { padding-left: 42px; padding-right: 45px; }
.password-field button { position: absolute; right: 7px; top: 6px; width: 36px; height: 36px; min-height: 0; padding: 0; display: grid; place-items: center; border: 0; color: #7f8e98; background: transparent; box-shadow: none; }
.login-button { height: 50px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 10px; color: #fff; background: var(--orange); font-size: 12px; font-weight: 700; box-shadow: 0 10px 25px rgba(233,109,47,.2); cursor: pointer; }
.login-button:disabled { opacity: .65; }
.form-error { margin: -8px 0 0; color: var(--red); font-size: 10px; }
.login-card > p { color: var(--muted); font-size: 11px; }
.test-login-note { margin-top: 26px; padding: 14px; display: flex; flex-direction: column; gap: 4px; border: 1px solid #e2e8eb; border-radius: 10px; background: #f6f8f9; }
.test-login-note strong { font-size: 10px; } .test-login-note span { color: var(--muted); font-size: 9px; }
.login-footer { margin: 48px 0 -10px; color: #9aa4ab; font-size: 9px; }
.password-page { max-width: 420px; }

/* 制作画面 */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.preview { position: sticky; top: 16px; }
.preview img { width: 100%; border-radius: 12px; background: #e8edef; display: block; box-shadow: 0 15px 35px rgba(17,31,41,.14); }
.preview .pages { display: flex; gap: 6px; margin-bottom: 10px; }
.preview .pages button { min-height: 32px; padding: 0 12px; font-size: 12px; }
.fields .page-h { font-weight: 700; font-size: 13px; margin: 22px 0 2px; padding: 8px 0; border-bottom: 1px solid #edf0f2; color: #40515d; cursor: pointer; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 9px; margin-top: 8px; }
.picker .opt { border: 1px solid #e3e8eb; border-radius: 11px; overflow: hidden; cursor: pointer; background: #fff; padding: 6px; }
.picker .opt:hover { border-color: #c5d0d6; }
.picker .opt.on { border-color: #e69a73; box-shadow: 0 0 0 2px rgba(233,109,47,.09); }
.picker .opt img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 7px; background: #eef2f4; }
.picker .opt .n { font-size: 10px; padding: 6px 2px 2px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; font-size: 12px; }
.status-bar a { color: var(--orange-dark); font-weight: 700; }

/* ダイアログ */
.dialog-bg { position: fixed; inset: 0; background: rgba(7,15,20,.48); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.dialog { background: #fff; border-radius: 16px; padding: 22px 24px; width: 100%; max-width: 720px; max-height: 90vh; overflow: auto; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.dialog h2 { font-size: 17px; margin: 0 0 10px; }

/* カレンダー */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .d { background: #fff; border: 1px solid #e4e9ec; border-radius: 11px; min-height: 88px; padding: 6px 8px; font-size: 12px; min-width: 0; overflow: hidden; }
.cal .d .n { font-weight: 700; color: #53636f; } .cal .d.today { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(233,109,47,.1); }
.cal .d .p { background: var(--orange-pale); color: #a6461d; border-radius: 6px; padding: 3px 6px; margin-top: 4px; font-size: 10px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal .d.empty { background: #f8fafb; border-style: dashed; }
.mobile-work-nav { display: none; }

@media (max-width: 1080px) { .grid2 { grid-template-columns: 1fr; } .editor { grid-template-columns: 1fr; } .preview { position: static; } }
@media (max-width: 780px) {
  html, body { overflow-x: hidden; }
  .app-frame { min-height: 100dvh; padding-top: env(safe-area-inset-top); }
  .mobile-only { display: grid; }
  .sidebar { inset: env(safe-area-inset-top) auto env(safe-area-inset-bottom) 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform .22s ease; }
  .sidebar.sidebar-open { transform: translateX(0); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 40; border: 0; background: rgba(7,15,20,.48); backdrop-filter: blur(2px); }
  .main-column { width: 100%; margin-left: 0; }
  .topbar { position: sticky; top: env(safe-area-inset-top); z-index: 30; padding: 0 17px; }
  .page-content { padding: 22px 17px calc(80px + env(safe-area-inset-bottom)); }
  .login-page { grid-template-columns: 1fr; } .login-visual { display: none; } .login-panel { min-height: 100vh; padding: 35px 25px; }
  .cal .d { min-height: 64px; padding: 4px; font-size: 11px; } .cal .d .p { font-size: 9px; padding: 2px 4px; }
  .mobile-work-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e5e9ec; }
  .mobile-work-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: #7f8e98; font-size: 10px; font-weight: 700; border-radius: 9px; }
  .mobile-work-nav a[aria-current="page"] { color: var(--orange); }
}
@media (max-width: 520px) { .test-banner span { display: none; } .topbar-actions .primary-button span { display: none; } .topbar-actions .primary-button { padding: 0 12px; } }

.page-content > div > h1, .password-page h1 { font-size: 26px; margin: 4px 0 18px; letter-spacing: -.025em; line-height: 1.25; }

/* 作業中の覆い（AI・描画）。何をしているかを大きく見せ、操作を止める */
.busy-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(19,35,48,.72); backdrop-filter: blur(4px); }
.busy-card { width: min(460px, 100%); padding: 34px 30px 26px; text-align: center; background: #fff; border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.busy-card h2 { margin: 18px 0 8px; font-size: 20px; }
.busy-detail { margin: 0; color: var(--orange-dark); font-size: 14px; font-weight: 700; min-height: 1.5em; }
.busy-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.busy-spinner { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; border: 5px solid #f3d9c9; border-top-color: var(--orange); animation: kds-spin .9s linear infinite; }
@keyframes kds-spin { to { transform: rotate(360deg); } }

/* AIキャストの案内（吹き出し） */
.guide-bubble { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; margin: 0 0 16px; }
.guide-bubble.small { grid-template-columns: 44px 1fr; margin: 0 0 12px; }
.guide-face { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(21,36,48,.15); background: #eef2f4; }
.guide-bubble.small .guide-face { width: 44px; height: 44px; }
.guide-text { position: relative; padding: 10px 14px; background: #fff; border: 1px solid #e1e7ea; border-radius: 14px; font-size: 13px; line-height: 1.7; box-shadow: var(--shadow); }
.guide-text::before { content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; background: #fff; border-left: 1px solid #e1e7ea; border-bottom: 1px solid #e1e7ea; transform: rotate(45deg); }
.guide-text b { display: block; color: var(--orange-dark); font-size: 11px; margin-bottom: 2px; }
.guide-bubble.small .guide-text { font-size: 12px; padding: 8px 12px; }
.busy-stage { position: relative; width: 96px; height: 96px; margin: 0 auto; }
.busy-face { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; position: absolute; left: 12px; top: 12px; border: 3px solid #fff; }
.busy-stage .busy-spinner { position: absolute; inset: 0; width: 96px; height: 96px; margin: 0; border-width: 4px; }

/* 手順の流れ（制作画面）：上から順に、番号・題名・状態、キャストのやり方案内 */
.steps { max-width: 980px; }
.step { background: #fff; border: 1px solid #e1e7ea; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.step.lock { opacity: .75; }
.step-head { display: flex; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #edf0f2; background: #fbfcfc; }
.step-no { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--navy); font-size: 16px; font-weight: 800; }
.step.done .step-no { background: var(--green); } .step.warn .step-no { background: var(--orange); } .step.lock .step-no { background: #9aa4ab; }
.step-head h2 { font-size: 16px; margin: 0; flex: 1; }
.step-status { padding: 6px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; white-space: nowrap; color: #65737e; background: #eef1f3; }
.step-status.done { color: #29815f; background: #e8f7f1; } .step-status.warn { color: #c25a26; background: #fff0e8; } .step-status.lock { color: #6c7981; background: #eef1f3; }
.step-body { padding: 16px 20px 18px; }
.why { display: inline-block; padding: 8px 11px; color: #83532f; border: 1px solid #f0d5c2; border-radius: 9px; background: #fff7f1; font-size: 12px; font-weight: 700; margin: 4px 0; }
.field { margin-bottom: 4px; }
.pick { margin: 4px 0 10px; }
.pick-thumb { width: 96px; height: 96px; cursor: zoom-in; object-fit: cover; border-radius: 10px; border: 1px solid #e1e7ea; background: #eef2f4; }
.preview-wrap { margin-top: 12px; max-width: 420px; }
.preview-wrap > img { width: 100%; border-radius: 12px; display: block; box-shadow: 0 15px 35px rgba(17,31,41,.14); background: #e8edef; }
.preview-wrap .pages { display: flex; gap: 6px; margin-bottom: 10px; }
.preview-wrap .pages button { min-height: 32px; padding: 0 12px; font-size: 12px; }
.preview-empty { aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px dashed #c9d3d8; border-radius: 12px; background: #fafbfb; font-size: 13px; }
.flow-guide { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.flow-guide span { padding: 6px 10px; border-radius: 999px; background: #eef1f3; color: #65737e; font-size: 11px; font-weight: 700; }
.flow-guide span.on { background: var(--orange); color: #fff; }
.guide-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: g; display: grid; gap: 8px; }
.guide-steps li { counter-increment: g; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #e4e9ec; border-radius: 11px; background: #fbfcfc; font-size: 13px; }
.guide-steps li::before { content: counter(g); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--navy); font-weight: 800; font-size: 12px; }
.guide-steps li strong { display: block; } .guide-steps li span { color: var(--muted); font-size: 12px; }
.guide-steps li a { color: var(--orange-dark); font-weight: 700; font-size: 12px; }
@media (max-width: 780px) { .step-head { flex-wrap: wrap; } .guide-steps li { grid-template-columns: 28px 1fr; } .guide-steps li a { grid-column: 2; } }

/* 自動修正の前後 */
.fixes { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #d6dfe4; font-weight: 500; }
.fixes > b { display: block; margin-bottom: 6px; font-size: 12px; color: #29815f; }
.fix { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin-bottom: 8px; font-size: 12px; }
.fix-where { grid-row: 1 / 3; color: #53636f; font-weight: 700; }
.fix del { color: #9aa4ab; text-decoration: line-through; }
.fix ins { color: #17212a; text-decoration: none; background: #e8f7f1; border-radius: 4px; padding: 1px 4px; }
@media (max-width: 520px) { .fix { grid-template-columns: 1fr; } .fix-where { grid-row: auto; } }

/* SNSでの見え方（スマホの枠） */
.sns-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.sns-tabs button { min-height: 32px; padding: 0 12px; font-size: 12px; }
.phone { width: min(100%, 390px); margin: 0; padding: 10px; border-radius: 34px; background: #111; box-shadow: 0 20px 45px rgba(17,32,42,.28); position: relative; }
.phone-notch { width: 110px; height: 22px; margin: 0 auto 6px; border-radius: 0 0 16px 16px; background: #000; }
.sns { border-radius: 26px; overflow: hidden; background: #fff; color: #111; font-family: -apple-system, "Hiragino Sans", sans-serif; font-size: 13px; }
.sns-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.sns-head > div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.sns-head b { font-size: 13px; } .sns-head small { color: #737373; font-size: 11px; }
.sns-more { color: #333; letter-spacing: 1px; }
.sns-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid #ddd; padding: 3px; }
.sns-media { position: relative; background: #eee; overflow: hidden; }
.sns-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sns-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #333; font-size: 20px; line-height: 1; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.sns-arrow.l { left: 8px; } .sns-arrow.r { right: 8px; } .sns-arrow:disabled { opacity: .25; }
.sns-counter { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; }
.sns-actions { display: flex; align-items: center; gap: 12px; padding: 8px 12px 4px; position: relative; }
.sns-actions svg { width: 24px; height: 24px; }
.sns-dots { flex: 1; display: flex; justify-content: center; gap: 4px; }
.sns-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; } .sns-dots i.on { background: #0095f6; }
.sns-save { margin-left: auto; }
.sns-body { padding: 4px 12px 12px; line-height: 1.5; }
.sns-body p { margin: 4px 0; white-space: pre-wrap; word-break: break-word; }
.sns-tags { color: #00376b; }
.sns-muted { color: #737373; font-size: 12px; }
.sns-fb-react { display: flex; justify-content: space-between; padding: 8px 12px; color: #65676b; font-size: 12px; border-bottom: 1px solid #e4e6eb; }
.sns-fb-bar { display: flex; justify-content: space-around; padding: 8px; color: #65676b; font-size: 12px; font-weight: 700; }
.fb .sns-body { padding: 0 12px 10px; }
.sns-ai { padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.85); color: #333; font-size: 10px; font-weight: 700; margin-left: auto; }
.sns-ai.dark { background: rgba(0,0,0,.55); color: #fff; margin: 6px 0 0; display: inline-block; }
.story .sns-media, .tt .sns-media { background: #000; }
.story-top { position: absolute; left: 0; right: 0; top: 0; padding: 10px 10px 0; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.story-bars { display: flex; gap: 3px; margin-bottom: 8px; }
.story-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.4); } .story-bars i.on { background: #fff; }
.story-head { display: flex; align-items: center; gap: 8px; font-size: 12px; } .story-head small { color: #ddd; }
.story-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; display: flex; align-items: center; gap: 12px; color: #fff; }
.story-bottom span { flex: 1; padding: 9px 14px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; font-size: 12px; }
.tt-side { position: absolute; right: 8px; bottom: 90px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; }
.tt-side span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; } .tt-side svg { width: 26px; height: 26px; }
.tt-bottom { position: absolute; left: 12px; right: 70px; bottom: 16px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.tt-bottom b { font-size: 13px; } .tt-bottom p { margin: 4px 0 0; font-size: 12px; line-height: 1.45; }
.tt-counter { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

.cost-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; padding: 8px 12px; border-radius: 9px; background: #fff7f1; border: 1px solid #f0d5c2; font-size: 12px; }
.cost-line b { color: var(--orange-dark); font-size: 13px; }
.busy-est { margin: 6px 0 0; font-size: 11px; }

/* 表現案・設計の編集 */
.proposal { border: 1px solid #e1e7ea; border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: #fbfcfc; }
.proposal-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; } .proposal-head b { font-size: 14px; margin-right: 4px; }
.proposal-why { margin: 4px 0; font-size: 13px; color: #40515d; }
.proposal-pages { margin: 6px 0 8px; padding-left: 22px; font-size: 12px; } .proposal-pages li { margin: 2px 0; } .proposal-pages li span { color: var(--muted); }
.plan-editor { margin: 10px 0 4px; padding: 12px 14px; border: 1px solid #e1e7ea; border-radius: 12px; background: #fbfcfc; }
.plan-editor select { width: auto; min-width: 140px; height: 38px; }
.plan-pages { margin: 4px 0; padding-left: 22px; } .plan-pages li { margin: 4px 0; font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-ops { margin-left: auto; display: inline-flex; gap: 4px; } .plan-ops button { min-height: 28px; padding: 0 9px; font-size: 12px; }

/* 月の計画：AIの提案の枠（薄い点線）と動画枠、出す先ごとの本数 */
.cal .d .slot { background: #f3f8fd; color: #355d91; border: 1px dashed #9db9dc; border-radius: 6px; padding: 2px 5px; margin-top: 4px; font-size: 10px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.cal .d .slot.video { background: #fdf6ea; color: #8a5a12; border-color: #e3c58a; border-style: solid; }
.plan-counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.plan-counts span { font-size: 11px; font-weight: 700; color: #65737e; background: #eef1f3; border-radius: 7px; padding: 4px 8px; }
.plan-counts span.on { color: #29815f; background: #e8f7f1; }
@media (max-width: 780px) { .cal .d .slot { font-size: 9px; padding: 2px 4px; } }

/* 成果の記録（制作画面の手順8） */
.metrics-row { border-top: 1px solid #e4e9ec; padding: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.metrics-row input[type=number] { padding: 6px 8px; }

/* ===== 2026-09-21 見た目の作り込み（所有者「初めて使う人でもわかりやすく、アプリの見た目も高品質に」） =====
   方針：余白を広く、影はやわらかく、文字は読みやすい大きさに。絵（キャスト・完成画像の見本）で「何ができるか」を先に見せる。 */
:root { --shadow: 0 1px 2px rgba(21,36,48,.04), 0 12px 32px rgba(21,36,48,.07); --radius: 20px; --ring: 0 0 0 3px rgba(233,109,47,.28); }
body { font-feature-settings: "palt"; letter-spacing: .01em; }
.page-content h1 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.02em; margin-bottom: 18px; }
.panel { padding: 26px 28px; border-color: #e6ebee; }
.panel > h2, .page-content h2 { font-size: 17px; letter-spacing: -.01em; margin-bottom: 14px; }
button, .post-card, .make-card, .item, input, select, textarea { transition: box-shadow .18s ease, transform .18s ease, background .18s ease, border-color .18s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; box-shadow: var(--ring); }
button.big { min-height: 48px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
button.accent { box-shadow: 0 6px 18px rgba(233,109,47,.28); }
button.accent:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(233,109,47,.34); }
input, select, textarea { border-radius: 12px; }

/* ホームの案内（ヒーロー） */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 18px; padding: 34px 36px; border-radius: 26px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #25455c 0%, #132330 55%, #0e1a24 100%); box-shadow: 0 24px 60px rgba(14,26,36,.28); }
.hero:after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(233,109,47,.35), rgba(233,109,47,0) 70%); pointer-events: none; }
.hero .eyebrow { margin: 0 0 8px; color: #f3a77f; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.hero h2 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.35; margin: 0 0 10px; color: #fff; }
.hero p { margin: 0 0 18px; color: #c9d5dd; font-size: 14px; line-height: 1.9; max-width: 34em; }
.hero .row { gap: 10px; flex-wrap: wrap; }
.hero button.ghost { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.hero button.ghost:hover { background: rgba(255,255,255,.16); }
.hero-cast { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hero-cast figure { margin: 0; text-align: center; }
.hero-cast img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%; border-radius: 18px; border: 2px solid rgba(255,255,255,.85); background: #eef2f4; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.hero-cast figure:nth-child(odd) img { transform: translateY(10px); }
.hero-cast figcaption { margin-top: 16px; font-size: 11px; color: #c9d5dd; font-weight: 700; }

/* 作れるもの */
.make-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.make-card { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start; padding: 16px; border: 1px solid #e6ebee; border-radius: 18px; background: linear-gradient(180deg, #fff, #fbfcfc); }
.make-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.make-card img { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; object-position: 50% 15%; background: #eef2f4; }
.make-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.make-card p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.75; color: #52616c; }

/* 手順（目で追える流れ） */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; counter-reset: none; }
.flow li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 14px 14px; border-radius: 16px; background: #f6f8f9; border: 1px solid #e9eef1; }
.flow li:not(:last-child):after { content: "›"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); z-index: 1; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid #e1e7ea; color: var(--orange); font-weight: 700; font-size: 13px; }
.flow-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(21,36,48,.08); font-size: 20px; margin-bottom: 4px; }
.flow b { font-size: 13px; } .flow small { font-size: 11.5px; line-height: 1.6; color: var(--muted); } .flow a { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--orange-dark); }

/* 投稿のカード（見本つき） */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.post-card { padding: 0; text-align: left; border: 1px solid #e6ebee; border-radius: 18px; background: #fff; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d5dde2; }
.post-thumb { position: relative; aspect-ratio: 4 / 5; background: #eef2f4; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb-empty { height: 100%; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: #9aa7b0; font-size: 11px; background: repeating-linear-gradient(135deg, #f1f4f6 0 12px, #eaeef1 12px 24px); }
.post-thumb-empty span { font-size: 34px; line-height: 1; color: #b9c4cb; }
.post-badge { position: absolute; left: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px; color: #fff; background: rgba(19,35,48,.82); font-size: 10.5px; font-weight: 700; backdrop-filter: blur(4px); }
.post-meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.post-meta strong { font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta small { font-size: 11px; color: #5f6e79; }

/* 何も無いときの案内 */
.empty-state { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding: 22px; border: 1px dashed #d5dde2; border-radius: 18px; background: #fbfcfc; }
.empty-state img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: #eef2f4; }
.empty-state strong { display: block; font-size: 15px; margin-bottom: 4px; } .empty-state p { margin: 0 0 10px; font-size: 13px; line-height: 1.8; color: #52616c; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 26px 22px; }
  .hero-cast { max-width: 420px; }
  .flow li:not(:last-child):after { display: none; }
}

/* いまの仕上がり（制作画面の右下に付いてくる小さなプレビュー） */
.peek { width: fit-content; max-width: 100%; margin: 0 0 14px auto; padding: 10px 12px 12px; border-radius: 18px; background: rgba(19,35,48,.92); color: #fff; box-shadow: 0 18px 44px rgba(14,26,36,.35); backdrop-filter: blur(8px); }
.peek-head { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; margin: 0 2px 8px; color: #dfe7ec; } .peek-head small { font-weight: 500; color: #9fb0bc; margin-left: 6px; }
.peek-body { display: flex; gap: 8px; align-items: center; }
.peek-thumb { position: relative; width: 58px; height: 72px; padding: 0; border: 2px solid rgba(255,255,255,.85); border-radius: 10px; overflow: hidden; background: #0e1a24; cursor: pointer; }
.peek-thumb:hover { transform: translateY(-2px) scale(1.04); }
.peek-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.peek-thumb.video { width: 44px; border-color: var(--orange); } .peek-thumb.video i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 16px; color: #fff; background: rgba(0,0,0,.28); }
.peek .muted { color: #9fb0bc; font-size: 11px; }
@media (max-width: 700px) { .peek-thumb { width: 46px; height: 58px; } }

/* 使い方ツアー */
.tour-bg { position: fixed; inset: 0; z-index: 400; background: rgba(9,17,24,.55); backdrop-filter: blur(1.5px); }
.tour-lit { position: relative; z-index: 401 !important; color: #fff !important; background: rgba(233,109,47,.28) !important; box-shadow: 0 0 0 3px var(--orange), 0 0 0 9999px rgba(0,0,0,0) !important; border-radius: 12px; }
.sidebar:has(.tour-lit) { z-index: 401; }
.tour-card { position: fixed; z-index: 402; width: min(360px, calc(100vw - 32px)); display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.tour-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: #eef2f4; }
.tour-card strong { display: block; font-size: 16px; margin-bottom: 6px; } .tour-card p { margin: 0 0 12px; font-size: 13px; line-height: 1.85; color: #44525d; }
.tour-card .row { gap: 8px; align-items: center; } .tour-card .row .muted { margin-right: auto; }
/* 構図の見本 */
.framing-sample { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: center; margin: 8px 0 4px; padding: 10px; border: 1px solid #e6ebee; border-radius: 14px; background: #fafbfc; }
.framing-sample img { width: 100%; border-radius: 10px; display: block; } .framing-sample p { margin: 0; font-size: 12.5px; line-height: 1.8; color: #44525d; }
@media (max-width: 700px) { .framing-sample { grid-template-columns: 1fr; } }

/* 素材ライブラリ：種類の切り替えと、見本つきのカード */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.chip { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #dfe5e9; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: #44525d; cursor: pointer; }
.chip small { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #eef1f3; color: #65737e; font-size: 11px; font-weight: 700; text-align: center; }
.chip:hover { border-color: #c5d0d6; } .chip.on { color: #fff; background: var(--navy); border-color: var(--navy); } .chip.on small { background: rgba(255,255,255,.18); color: #fff; }
.picker:has(.asset-card) { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.asset-card { padding: 8px !important; border-radius: 14px !important; } .asset-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); } .asset-card.off { opacity: .45; }
.asset-thumb { position: relative; } .asset-thumb img { aspect-ratio: 4 / 3 !important; }
.asset-dur, .asset-flag { position: absolute; bottom: 6px; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(19,35,48,.82); backdrop-filter: blur(4px); }
.asset-dur { left: 6px; } .asset-flag { right: 6px; background: rgba(191,62,49,.9); }
.asset-audio { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 34px; border-radius: 8px; background: linear-gradient(135deg, #eef1f3, #e2e8ec); }
.asset-card .n { font-size: 11.5px !important; white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.45; }
.asset-tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 2px 0; } .asset-tags span { padding: 2px 7px; border-radius: 6px; background: #f1f4f6; color: #65737e; font-size: 10px; font-weight: 700; }

/* ネタ帳：カード */
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px; }
.idea-card { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: start; text-align: left; padding: 14px 16px; border: 1px solid #e6ebee; border-radius: 16px; background: #fff; cursor: pointer; }
.idea-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d5dde2; }
.idea-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; }
.idea-body strong { display: block; font-size: 14px; line-height: 1.5; margin-bottom: 4px; }
.idea-body p { margin: 0 0 8px; font-size: 12px; line-height: 1.7; color: #52616c; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idea-tags { display: flex; flex-wrap: wrap; gap: 5px; } .idea-tags span { padding: 3px 8px; border-radius: 7px; background: #f1f4f6; color: #65737e; font-size: 10.5px; font-weight: 700; }
.idea-go { align-self: center; font-size: 12px; font-weight: 700; color: var(--orange-dark); white-space: nowrap; opacity: 0; transition: opacity .18s ease; } .idea-card:hover .idea-go { opacity: 1; }
@media (max-width: 700px) { .idea-go { display: none; } }

/* カレンダー：予定の投稿に完成画像の見本 */
.cal .p.has-thumb { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; align-items: center; padding: 3px 6px 3px 3px; }
.cal .p.has-thumb img { width: 26px; height: 32px; object-fit: cover; border-radius: 5px; display: block; background: #eef2f4; }
.cal .p.has-thumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal .p i { font-style: normal; font-size: 9px; color: var(--orange-dark); }

/* 設定：目次 */
.settings-index { position: sticky; top: 76px; z-index: 5; padding: 10px 0; margin: 0 0 8px; background: linear-gradient(180deg, var(--canvas) 70%, rgba(244,246,247,0)); }
.settings-index .chip { min-height: 32px; font-size: 12px; }

/* 文字を減らす：案内は一文＋「くわしく」 */
.guide-more { margin-left: 6px; padding: 1px 9px; border: 0; border-radius: 999px; background: #eef1f3; color: #53636f; font-size: 11px; font-weight: 700; cursor: pointer; }
.guide-more:hover { background: #e2e8ec; }
/* 制作画面：いまやる手順だけ開く */
.step-head { cursor: pointer; user-select: none; }
.step-no { position: relative; width: 46px !important; height: 46px !important; border-radius: 14px !important; font-size: 11px !important; align-content: center; line-height: 1; }
.step-no i { display: block; font-style: normal; font-size: 20px; margin-bottom: 1px; }
.step-caret { color: #9aa7b0; font-size: 18px; transition: transform .2s ease; } .step.shut .step-caret { transform: rotate(-90deg); }
.step.shut .step-body { display: none; } .step.shut .step-head { border-bottom: 0; }
.step.shut { box-shadow: none; } .step.shut:hover { border-color: #cfd8de; }
.step.now { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(233,109,47,.12), var(--shadow); }
.step.now .step-head { background: linear-gradient(90deg, #fff4ec, #fbfcfc); }
.step.now .step-head h2:after { content: "いまここ"; margin-left: 10px; padding: 3px 9px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 700; vertical-align: middle; }

/* 編集画面の上部：絵つきの進み具合バー＋いまの仕上がり（押すとその手順へ） */
.stage { display: flex; align-items: stretch; gap: 14px; margin: 0 0 16px; }
.stage .flow-guide { flex: 1; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; padding: 14px 8px 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line, #e6eaed); box-shadow: 0 6px 20px rgba(14,26,36,.05); }
.flow-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 2px; border: 0; background: none; cursor: pointer; font: inherit; color: #7b8894; min-width: 0; }
.flow-item::before { content: ""; position: absolute; top: 19px; left: -50%; width: 100%; height: 3px; background: #e6eaed; z-index: 0; }
.flow-item:first-child::before { display: none; }
.flow-item.on + .flow-item::before { background: #35a56b; }
.flow-item.on + .flow-item.now::before { background: linear-gradient(90deg, #35a56b, var(--orange)); }
.flow-item i { position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #f1f4f6; border: 2px solid #e1e6ea; font-style: normal; font-size: 18px; filter: grayscale(.9); opacity: .75; transition: transform .15s; }
.flow-item.on i { background: #35a56b; border-color: #35a56b; color: #fff; font-weight: 800; filter: none; opacity: 1; }
.flow-item.now i { background: #fff6ee; border-color: var(--orange); filter: none; opacity: 1; box-shadow: 0 0 0 5px rgba(240,120,40,.16); transform: scale(1.12); }
.flow-item:hover i { transform: scale(1.12); }
.flow-item b { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.flow-item.on b { color: #2a7d52; } .flow-item.now b { color: var(--orange); }
.stage .peek { margin: 0; flex: none; align-self: stretch; }
@media (max-width: 760px) { .stage { flex-direction: column; } .stage .flow-guide { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; } .flow-item:nth-child(5)::before { display: none; } .stage .peek { align-self: flex-end; } }

/* 絵つきの選択タイル（動画の種類など。文字より絵で選ぶ） */
.pick-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; margin: 4px 0 14px; }
.pick-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px 14px; border: 1.5px solid #e3e9ed; border-radius: 18px; background: linear-gradient(180deg, #fff, #f9fbfc); text-align: center; cursor: pointer; font: inherit; color: inherit; min-height: 0; }
.pick-tile:hover:not(:disabled) { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14,26,36,.10); }
.pick-tile.hot { border-color: #f6c9ad; background: linear-gradient(180deg, #fff, var(--orange-pale)); }
.pick-tile i, .pick-tile img { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-style: normal; font-size: 32px; background: #eef3f6; object-fit: cover; object-position: 50% 15%; margin-bottom: 6px; }
.pick-tile strong { font-size: 14px; line-height: 1.4; }
.pick-tile small { font-size: 11.5px; color: #6b7984; }
.pick-price { margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #e8f6ee; color: #23774b; font-size: 11px; font-weight: 700; }
.pick-tile.hot .pick-price { background: #ffe6d6; color: var(--orange-dark); }
.pick-price.off { background: #f0f2f4; color: #7b8894; }
.pick-tile:disabled { opacity: .6; cursor: not-allowed; }

/* ダイアログの中：番号つきの見出し・絵で選ぶタイル・たたんだ詳細 */
.dlg-sec { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 15px; }
.dlg-sec:first-of-type { margin-top: 4px; }
.dlg-sec i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: var(--orange-pale); font-style: normal; font-size: 18px; }
.dlg-sec span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; }
.tile-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin: 4px 0 8px; }
.tile-picker.small { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.tile-picker button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px 10px; border: 2px solid #e3e9ed; border-radius: 16px; background: #fff; cursor: pointer; font: inherit; color: inherit; text-align: center; min-height: 0; }
.tile-picker button:hover:not(:disabled) { border-color: #f3b792; transform: translateY(-1px); }
.tile-picker button.on { border-color: var(--orange); background: var(--orange-pale); box-shadow: 0 8px 20px rgba(233,109,47,.16); }
.tile-picker button.on::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; }
.tile-picker button:disabled { opacity: .45; cursor: not-allowed; }
.tile-picker img { width: 100%; aspect-ratio: 3/2; object-fit: cover; object-position: 50% 20%; border-radius: 10px; background: #eef2f4; }
.tile-picker.small img { width: 56px; height: 56px; aspect-ratio: auto; border-radius: 50%; }
.tile-picker i { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: #eef3f6; font-style: normal; font-size: 26px; }
.tile-picker strong { font-size: 12.5px; line-height: 1.35; }
.tile-picker small { font-size: 10.5px; color: #6b7984; line-height: 1.3; }
.tile-picker + select { display: none; }
.dlg-more { margin: 6px 0; border: 1px solid #e6ebee; border-radius: 14px; padding: 0 12px; background: #fbfcfc; }
.dlg-more summary { cursor: pointer; padding: 10px 0; font-size: 12.5px; font-weight: 700; color: #4a5863; }
.dlg-more[open] { padding-bottom: 10px; }
.dlg-more .panel { margin: 0 !important; border: 0; padding: 0 !important; background: none; box-shadow: none; }
.tile-picker + .framing-sample { display: block; padding: 8px 12px; } .tile-picker + .framing-sample img { display: none; } .tile-picker + .framing-sample p { margin: 0; font-size: 12px; }
@media (max-width: 760px) { .stage .peek { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 16px; } .stage .peek .peek-head { margin: 0; } }
.auto-photos { display: flex; gap: 8px; margin: 6px 0; } .auto-photos figure { margin: 0; width: 92px; } .auto-photos img { width: 92px; height: 62px; object-fit: cover; border-radius: 10px; display: block; } .auto-photos figcaption { font-size: 10.5px; text-align: center; color: #6b7984; margin-top: 2px; }
.tile-picker.small i { width: 42px; height: 42px; font-size: 22px; border-radius: 13px; }

/* 設定：絵つきのスイッチと予算のバー */
.ai-switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 10px; margin: 12px 0; }
.ai-switch { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1.5px solid #e3e9ed; border-radius: 16px; background: #fff; cursor: pointer; }
.ai-switch.on { border-color: #bfe3cf; background: #f4fbf7; }
.ai-switch > i { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: #eef3f6; font-style: normal; font-size: 22px; }
.ai-switch > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.ai-switch b { font-size: 14px; } .ai-switch em { font-style: normal; font-size: 11.5px; color: #6b7984; }
.ai-switch small { font-size: 11px; font-weight: 700; color: #7b8894; } .ai-switch.on small { color: #23774b; } .ai-switch small.warn { color: #c0492b; }
.ai-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ai-switch u { flex: none; width: 46px; height: 26px; border-radius: 999px; background: #cfd8de; position: relative; transition: background .18s; text-decoration: none; }
.ai-switch u::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.ai-switch.on u { background: #35a56b; } .ai-switch.on u::after { transform: translateX(20px); }
.ai-switch input:focus-visible ~ u { outline: 3px solid rgba(233,109,47,.4); outline-offset: 2px; }
.budget-meter { margin: 4px 0 10px; } .budget-top { display: flex; align-items: baseline; gap: 8px; font-size: 13px; } .budget-top b { font-size: 22px; }
.budget-bar { height: 10px; border-radius: 999px; background: #e9eef1; overflow: hidden; margin-top: 6px; } .budget-bar i { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: linear-gradient(90deg, #35a56b, #7ccf9f); } .budget-bar i.hot { background: linear-gradient(90deg, #e96d2f, #f3a06f); }

/* カレンダー：出す先ごとのメーター・凡例・曜日の色 */
.plan-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 10px; }
.plan-meter { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 5px; align-items: center; padding: 9px 12px; border-radius: 14px; background: #fff; border: 1px solid #e4e9ec; }
.plan-meter > i { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #eef3f6; font-style: normal; font-size: 17px; }
.plan-meter span { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; min-width: 0; } .plan-meter b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .plan-meter em { font-style: normal; font-size: 12px; font-weight: 800; color: #53636f; }
.plan-meter .bar { display: flex; height: 7px; border-radius: 999px; background: #e9eef1; overflow: hidden; } .plan-meter .bar u { display: block; height: 100%; background: var(--orange); } .plan-meter .bar u.prop { background: repeating-linear-gradient(45deg, #9db9dc, #9db9dc 4px, #c9dbef 4px, #c9dbef 8px); }
.plan-meter.on { border-color: #bfe3cf; background: #f4fbf7; } .plan-meter.on .bar u { background: #35a56b; } .plan-meter.on em { color: #23774b; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 8px; font-size: 11.5px; color: #53636f; } .cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 18px; height: 12px; border-radius: 4px; display: inline-block; } .lg-post { background: var(--orange-pale); border: 1px solid #f3c3a6; } .lg-slot { background: #f3f8fd; border: 1px dashed #9db9dc; } .lg-video { background: #fdf6ea; border: 1px solid #e3c58a; } .lg-today { background: #fff; border: 2px solid var(--orange); }
.cal-wd { text-align: center; font-size: 12px; font-weight: 700; color: #65737e; } .cal-wd.sun, .cal .d.sun .n { color: #cf4b3f; } .cal-wd.sat, .cal .d.sat .n { color: #3a6fb5; }
.cal .d.past { background: #f7f9fa; } .cal .d.past .n { opacity: .55; }
.cal .d:not(.empty):hover { border-color: #f3b792; box-shadow: 0 6px 16px rgba(14,26,36,.07); }
.cal .d.today .n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #fff !important; }

/* 新しい投稿：型を見本の絵で選ぶ */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.preset-card { padding: 12px 12px 14px; border-radius: 20px; background: #fff; border: 1.5px solid #e6ebee; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; }
.preset-card:hover, .preset-card:focus-visible { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 16px 36px rgba(14,26,36,.12); outline: none; }
.preset-shot { position: relative; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #eef3f6, #f8fafb); }
.preset-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.preset-shot span { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(19,35,48,.82); color: #fff; font-size: 11px; font-weight: 700; }
.preset-shot.none::before { content: "🖼️"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; opacity: .5; }

/* 世界観の見本（小さな紙） */
.tile-picker i.swatch { font-weight: 900; font-size: 20px; }
.tile-picker i.sw-pop { background: #fff8ec; color: #231815; border: 3px solid #231815; box-shadow: 4px 4px 0 #231815; border-radius: 12px; }
.tile-picker i.sw-cinema { background: #14161a; color: #f4f1ea; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; font-weight: 500; }
.tile-picker i.sw-magazine { background: #fff; color: #1a1a1a; border: 2px solid #1a1a1a; border-radius: 2px; }
.tile-picker i.sw-note { background: repeating-linear-gradient(#fffdf5, #fffdf5 8px, #cfe0ee 8px, #cfe0ee 9px); color: #2b2622; border: 2px solid #2b2622; border-radius: 8px; box-shadow: 3px 3px 0 rgba(35,24,21,.18); font-weight: 600; }
.plan-meter em { white-space: nowrap; }
@media (max-width: 700px) { .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .preset-card { padding: 8px 8px 10px; border-radius: 16px; } .plan-meters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* AIの検査結果：1行にまとめ、押すと中身 */
.ai-check summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; flex-wrap: wrap; } .ai-check summary::-webkit-details-marker { display: none; }
.ai-check summary i { font-style: normal; font-size: 18px; } .ai-check summary u { margin-left: auto; font-size: 11.5px; color: #4a5863; text-decoration: underline; } .ai-check[open] summary u { display: none; } .ai-check[open] summary { margin-bottom: 6px; }

/* ===== 線画アイコン（絵文字の代わり）。色あいは data-tone で決める ===== */
.ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; font-style: normal; flex: none; }
[data-tone] { --tone-bg: #eef2f5; --tone-fg: #4a5a67; background: var(--tone-bg) !important; color: var(--tone-fg); }
[data-tone="orange"] { --tone-bg: #fff0e6; --tone-fg: #d45b21; } [data-tone="yellow"] { --tone-bg: #fff6d9; --tone-fg: #a97400; } [data-tone="green"] { --tone-bg: #e6f6ed; --tone-fg: #23774b; }
[data-tone="teal"] { --tone-bg: #e2f5f4; --tone-fg: #14736f; } [data-tone="blue"] { --tone-bg: #e8f1fc; --tone-fg: #2f63a8; } [data-tone="purple"] { --tone-bg: #f0eafc; --tone-fg: #6a4bb0; }
[data-tone="pink"] { --tone-bg: #fdebf2; --tone-fg: #b8376d; } [data-tone="red"] { --tone-bg: #fdecea; --tone-fg: #c0402f; }
svg.i { display: block; }
.dlg-sec .ico { width: 34px; height: 34px; border-radius: 12px; }
.flow .ico { margin-bottom: 8px; }
.step-no i svg, .flow-item i svg { stroke-width: 2; }
.step-no i { display: grid; place-items: center; }
.flow-item i { filter: none; opacity: 1; color: #8a97a2; } .flow-item.on i { color: #fff; } .flow-item.now i { color: var(--orange-dark); }
.flow-item.on i svg { stroke-width: 3; }
.ai-check summary > svg { flex: none; } .ai-check.ok summary > svg { color: #23774b; } .ai-check.check summary > svg { color: #c0402f; }
.asset-audio { color: #b8376d; }
.chip svg.i, button svg.i { display: inline-block; vertical-align: -3px; }
.idea-ic { display: grid; place-items: center; }

/* ===== ダイアログ：固定の見出し／スクロールする中身／固定の下帯 ===== */
.dialog-bg { animation: dlg-bg .16s ease-out; padding: 20px; background: rgba(9,18,25,.55); backdrop-filter: blur(6px) saturate(1.1); }
.dialog { display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 22px; max-height: min(92vh, 960px); box-shadow: 0 40px 120px rgba(5,12,18,.45), 0 0 0 1px rgba(255,255,255,.06); animation: dlg-in .22s cubic-bezier(.2,.9,.3,1.1); }
.dialog-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px 24px; border-bottom: 1px solid #eef1f3; flex: none; }
.dialog-head h2 { flex: 1; margin: 0; font-size: 18px; letter-spacing: .01em; }
.dialog-x { flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 0; background: #f1f4f6; color: #53636f; cursor: pointer; box-shadow: none; }
.dialog-x:hover { background: #e4e9ed; color: #1d2b36; transform: none; }
.dialog-body { flex: 1; min-height: 0; overflow: auto; padding: 16px 24px 20px; overscroll-behavior: contain; }
.dialog-body > :first-child { margin-top: 0; }
.dialog-foot { flex: none; padding: 12px 20px 14px 24px; border-top: 1px solid #eef1f3; background: linear-gradient(180deg, #fbfcfd, #f6f8fa); }
.dialog-foot-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dialog-cost { flex: 1; min-width: 0; } .dialog-cost .cost-line { margin: 0; border: 0; background: none; padding: 0; font-size: 12.5px; } .dialog-cost .cost-line b { font-size: 17px; color: var(--orange-dark); margin-right: 6px; }
.dialog-actions { margin: 0 0 0 auto !important; flex-wrap: nowrap !important; } .dialog-actions button { min-width: 96px; }
.dialog-error { margin: 0 0 8px; }
button.busy { position: relative; color: transparent !important; pointer-events: none; }
button.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes dlg-bg { from { opacity: 0; } } @keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (max-width: 700px) { .dialog-bg { padding: 0; align-items: flex-end; } .dialog { max-height: 94vh; border-radius: 22px 22px 0 0; animation-name: dlg-up; } .dialog-head { padding: 14px 14px 12px 18px; } .dialog-body { padding: 14px 18px 18px; } .dialog-foot { padding: 10px 14px calc(12px + env(safe-area-inset-bottom)) 18px; } .dialog-actions { width: 100%; } .dialog-actions button { flex: 1; } }
@keyframes dlg-up { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dialog, .dialog-bg { animation: none; } }

/* ===== 通知（下に積む）・読み込みの骨組み・画面の入り方 ===== */
.toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 560px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 700; line-height: 1.5; color: #fff; background: rgba(19,35,48,.96); box-shadow: 0 16px 40px rgba(5,12,18,.35); cursor: pointer; animation: toast-in .24s cubic-bezier(.2,.9,.3,1.2); max-width: 100%; }
.toast svg { flex: none; margin-top: 1px; } .toast.good svg { color: #6fdc9f; } .toast.bad { background: #8f2f24; } .toast.bad svg { color: #ffd0c8; }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@media (max-width: 700px) { .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; padding: 6px 0; }
.skeleton.sk-rows { grid-template-columns: 1fr; }
.sk { height: 128px; border-radius: 18px; background: linear-gradient(100deg, #e9eef1 30%, #f5f8fa 50%, #e9eef1 70%); background-size: 300% 100%; animation: sk 1.3s ease-in-out infinite; } .sk-rows .sk { height: 62px; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
.page-content > * { animation: page-in .28s ease-out; } @keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
.busy-clock { margin: -4px 0 6px; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--orange-dark); letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .page-content > *, .toast, .sk { animation: none; } }

/* ===== 制作画面：広い画面では右に「いまの仕上がり」を固定 ===== */
.editor-grid { display: block; } .side-stage { display: none; }
@media (min-width: 1480px) {
  .editor-grid { display: grid; grid-template-columns: minmax(0, 980px) 320px; gap: 26px; align-items: start; }
  .side-stage { display: block; position: sticky; top: 18px; padding: 16px 16px 18px; border-radius: 24px; background: linear-gradient(180deg, #16283a, #0f1c29); color: #fff; box-shadow: 0 24px 60px rgba(9,18,25,.28); }
  .stage .peek { display: none; }
}
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 12px; font-size: 13px; letter-spacing: .04em; }
.phone { position: relative; padding: 10px; border-radius: 34px; background: #05090d; box-shadow: inset 0 0 0 2px #2a3a48, 0 10px 30px rgba(0,0,0,.35); }
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 74px; height: 18px; border-radius: 999px; background: #05090d; z-index: 2; }
.phone-screen { display: block; width: 100%; padding: 0; border: 0; border-radius: 26px; overflow: hidden; background: #0e1a24; cursor: zoom-in; min-height: 0; box-shadow: none; }
.phone-screen:hover { transform: none; } .phone-screen img { display: block; width: 100%; height: auto; }
.phone-screen.empty { aspect-ratio: 4/5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #8fa1af; cursor: default; font-size: 13px; font-weight: 700; text-align: center; padding: 20px; } .phone-screen.empty small { font-weight: 500; font-size: 11.5px; color: #6f8291; }
.phone-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 0 2px; font-size: 12px; font-variant-numeric: tabular-nums; color: #c9d5de; }
.phone-nav button { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: #1d2d3b; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: none; } .phone-nav button:disabled { opacity: .3; }
.side-strip { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; } .side-strip button { flex: none; width: 44px; height: 55px; padding: 0; min-height: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #0e1a24; cursor: pointer; opacity: .6; box-shadow: none; } .side-strip button.on { border-color: var(--orange); opacity: 1; } .side-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-video { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; border: 1px solid #2a3a48; background: #132231; color: #fff; cursor: pointer; text-align: left; box-shadow: none; min-height: 0; }
.side-video:hover { background: #1a2c3d; transform: none; } .side-video img, .sv-ph { width: 34px; height: 44px; border-radius: 7px; object-fit: cover; flex: none; display: grid; place-items: center; background: #0e1a24; } .side-video span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; } .side-video b { font-size: 12.5px; } .side-video small { font-size: 11px; color: #9fb0bc; }
.phone { padding-top: 30px; } .phone-notch { top: 10px; width: 56px; height: 12px; background: #1a2733; }

/* ===== ホームのダッシュボード ===== */
.dash { display: flex; flex-direction: column; gap: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 14px; margin: 0 0 18px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid #e6ebee; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.stat:hover { transform: translateY(-2px); border-color: #f3b792; }
.stat .ico { width: 48px; height: 48px; border-radius: 16px; }
.stat-body { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; } .stat-body small { font-size: 12px; font-weight: 700; color: #65737e; } .stat-body b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .stat-body em { font-style: normal; font-size: 11px; color: #8a97a2; }
.stat-bar { display: block; height: 6px; border-radius: 999px; background: #e9eef1; overflow: hidden; margin-top: 5px; } .stat-bar i { display: block; height: 100%; min-width: 3px; background: #35a56b; border-radius: 999px; } .stat-bar i.hot { background: var(--orange); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; } .panel-head h2 { margin: 0; } .panel-head a { font-size: 12.5px; font-weight: 700; color: var(--orange-dark); text-decoration: none; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-day { display: flex; flex-direction: column; gap: 6px; min-height: 118px; padding: 10px 8px; border-radius: 16px; background: #f6f8f9; border: 1px solid #e9eef1; min-width: 0; }
.week-day.today { background: var(--orange-pale); border-color: #f6c9ad; }
.wd { display: flex; align-items: baseline; gap: 5px; } .wd b { font-size: 19px; font-weight: 800; } .wd span { font-size: 11px; font-weight: 700; color: #65737e; } .week-day.sun .wd { color: #cf4b3f; } .week-day.sat .wd { color: #3a6fb5; } .week-day.today .wd span { color: var(--orange-dark); }
.week-item { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 10px; background: #fff; border: 1px solid #e6ebee; color: inherit; text-decoration: none; font-size: 10.5px; font-weight: 700; line-height: 1.3; min-width: 0; }
.week-item:hover { border-color: var(--orange); } .week-item img, .wi-ph { flex: none; width: 28px; height: 35px; border-radius: 6px; object-fit: cover; background: #eef2f4; display: grid; place-items: center; color: #9aa7b1; }
.week-item > span:last-child { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .week-item em { font-style: normal; color: var(--orange-dark); margin-right: 4px; }
.week-none { margin: auto; color: #c3ccd3; font-size: 13px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
.gallery-item { scroll-snap-align: start; color: inherit; text-decoration: none; min-width: 0; } .gallery-item b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.45; margin-top: 7px; }
.g-img { position: relative; display: block; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; background: #eef2f4; box-shadow: 0 8px 22px rgba(14,26,36,.12); transition: transform .2s; } .gallery-item:hover .g-img { transform: translateY(-3px) scale(1.015); }
.g-img img { width: 100%; height: 100%; object-fit: cover; display: block; } .g-img i { position: absolute; left: 8px; bottom: 8px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; } .g-img u { position: absolute; top: 8px; right: 8px; text-decoration: none; font-size: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.home-intro { margin: 0 0 16px; } .home-intro > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid #e6ebee; font-size: 12.5px; font-weight: 700; color: #4a5863; margin-bottom: 12px; } .home-intro > summary::-webkit-details-marker { display: none; } .home-intro[open] > summary { background: var(--orange-pale); border-color: #f6c9ad; color: var(--orange-dark); }
@media (max-width: 760px) { .week { grid-template-columns: repeat(7, 132px); overflow-x: auto; padding-bottom: 6px; } .stat-body b { font-size: 24px; } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat { padding: 12px; gap: 10px; } .stat .ico { width: 40px; height: 40px; } }

/* 素材の取り込み口 */
.dropzone { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border: 2px dashed #cfd9e0; border-radius: 16px; background: #fafcfd; cursor: pointer; text-align: left; color: inherit; box-shadow: none; min-height: 0; }
.dropzone:hover, .dropzone.over { border-color: var(--orange); background: var(--orange-pale); transform: none; } .dropzone span:last-child { display: flex; flex-direction: column; line-height: 1.35; } .dropzone b { font-size: 14px; } .dropzone small { font-size: 11.5px; color: #6b7984; font-weight: 500; }
.ai-badge { display: inline-block; margin-right: 5px; padding: 0 5px; border-radius: 5px; background: linear-gradient(135deg, #7b5cd6, #e96d2f); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; }
@media (max-width: 700px) { .tile-picker.small { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; } .tile-picker.small img { width: 48px; height: 48px; } .tile-picker.small strong { font-size: 11.5px; } .tile-picker.small small { font-size: 9.5px; } }

/* 表現案：ページの並びを小さな紙で見せる */
.proposal { border-radius: 18px; padding: 16px 18px; background: #fff; border: 1.5px solid #e6ebee; transition: border-color .18s, box-shadow .18s; } .proposal:hover { border-color: #f3b792; box-shadow: 0 12px 28px rgba(14,26,36,.08); }
.proposal-visual { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 8px 0 10px; padding: 12px; border-radius: 14px; background: #f4f7f9; }
.mini-pages { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-page { position: relative; width: 52px; aspect-ratio: 4/5; border-radius: 8px; border: 2px solid; display: grid; place-items: center; overflow: hidden; box-shadow: 3px 3px 0 rgba(14,26,36,.12); }
.mini-page.tall { aspect-ratio: 9/16; width: 44px; }
.mini-page > i { position: absolute; left: 0; right: 0; top: 0; height: 9px; } .mini-page > span { position: absolute; right: 4px; bottom: 2px; font-size: 9px; font-weight: 800; opacity: .7; } .mini-page svg { opacity: .8; margin-top: 6px; }
.mini-casts { display: flex; } .mini-casts img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 3px solid #fff; margin-left: -10px; box-shadow: 0 3px 10px rgba(14,26,36,.15); background: #eef2f4; } .mini-casts img:first-child { margin-left: 0; }
.proposal-why { font-size: 13.5px; line-height: 1.7; }

/* ===== 制作：ページごとのカードと、写真・キャストを入れる枠 ===== */
.page-card { margin: 14px 0 0; border: 1px solid #e6ebee; border-radius: 18px; background: #fbfcfd; overflow: hidden; }
.page-card > header { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: #f1f5f7; border-bottom: 1px solid #e6ebee; }
.page-card > header img, .pc-ph { width: 36px; height: 45px; flex: none; border-radius: 7px; object-fit: cover; background: #fff; display: grid; place-items: center; color: #a7b3bc; border: 1px solid #dfe6ea; cursor: zoom-in; } .pc-ph { cursor: default; }
.page-card > header b { font-size: 14px; white-space: nowrap; } .page-card > header span:last-child { font-size: 12px; color: #65737e; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-card-body { padding: 14px; }
.slots { display: flex; flex-wrap: wrap; gap: 14px; } .field-slot { margin: 0; }
.slot { position: relative; width: 148px; display: flex; flex-direction: column; gap: 3px; }
.slot-main { position: relative; width: 148px; height: 148px; padding: 0; min-height: 0; border-radius: 18px; overflow: hidden; border: 2px solid #e1e7eb; background: #eef2f4; cursor: pointer; box-shadow: 0 6px 16px rgba(14,26,36,.08); }
.slot-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; } .slot-main:hover img { transform: scale(1.05); } .slot-main:hover { transform: none; border-color: var(--orange); }
.slot.cast .slot-main { border-radius: 50%; } .slot.cast .slot-main img { object-position: 50% 12%; }
.slot-change { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 0 8px; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(transparent, rgba(9,18,25,.72)); opacity: 0; transition: opacity .18s; } .slot-main:hover .slot-change, .slot-main:focus-visible .slot-change { opacity: 1; }
.slot.empty .slot-main { border: 2.5px dashed #f0a98a; background: repeating-linear-gradient(135deg, #fff7f2, #fff7f2 10px, #fff1e9 10px, #fff1e9 20px); box-shadow: none; animation: slot-pulse 2.2s ease-in-out infinite; }
.slot-plus { position: relative; display: grid; place-items: center; width: 100%; height: 100%; color: #e08a5f; } .slot-plus b { position: absolute; right: 38px; bottom: 38px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; box-shadow: 0 4px 10px rgba(233,109,47,.4); }
@keyframes slot-pulse { 50% { border-color: var(--orange); } }
.slot-label { margin-top: 5px; font-size: 12px; font-weight: 800; } .slot-name { font-size: 11px; color: #6b7984; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .slot-name.need { color: #c0492b; font-weight: 700; }
.slot-tools { display: flex; gap: 6px; margin-top: 3px; } .slot-tool { display: inline-flex; align-items: center; gap: 4px; height: 28px; min-height: 0; padding: 0 9px; border-radius: 999px; border: 1px solid #e1e7eb; background: #fff; color: #4a5863; font-size: 11px; font-weight: 700; cursor: pointer; box-shadow: none; } .slot-tool:hover { border-color: var(--orange); color: var(--orange-dark); transform: none; } .slot-tool.ai { color: #6a4bb0; border-color: #ddd3f5; background: #f7f3fe; }
.field label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.len { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; flex: none; } .len-track { width: 56px; height: 4px; border-radius: 999px; background: #e6ebee; overflow: hidden; } .len-track i { display: block; height: 100%; background: #35a56b; border-radius: 999px; transition: width .15s; }
.len em { font-style: normal; font-size: 10.5px; color: #8a97a2; font-variant-numeric: tabular-nums; } .len.near .len-track i { background: var(--orange); } .len.near em { color: var(--orange-dark); font-weight: 800; }
@media (max-width: 700px) { .slot, .slot-main { width: 124px; } .slot-main { height: 124px; } .slot-plus b { right: 28px; bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .slot.empty .slot-main { animation: none; } }

/* 設計：絵コンテ（ページの並び）・出す先のチップ・ページを足すタイル */
.board { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin: 4px 0 6px; }
.board-page { width: 96px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; } .board-page > b { font-size: 11px; line-height: 1.35; min-height: 30px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-page.big { width: 76px; border-radius: 10px; } .mini-page.big > i { height: 12px; } .mini-page.big > span { font-size: 11px; right: 6px; bottom: 3px; }
.board .plan-ops { display: flex; gap: 3px; } .board .plan-ops button { width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 8px; font-size: 10px; display: grid; place-items: center; }
.board-add { width: 76px; aspect-ratio: 4/5; margin: 0 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2.5px dashed #cfd9e0; border-radius: 10px; background: #fafcfd; color: #65737e; font-size: 10.5px; font-weight: 700; cursor: pointer; box-shadow: none; min-height: 0; padding: 0; } .board-add:hover { border-color: var(--orange); color: var(--orange-dark); background: var(--orange-pale); transform: none; }
.chan-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 8px; }
.chan-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 14px; border: 2px solid #e1e7eb; background: #fff; color: #65737e; cursor: pointer; font-weight: 700; }
.chan-chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.chan-chip > span { display: flex; flex-direction: column; line-height: 1.2; font-size: 12.5px; } .chan-chip small { font-size: 10px; font-weight: 600; color: #9aa7b1; }
.chan-chip u { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #e6ebee; color: transparent; text-decoration: none; }
.chan-chip.on { border-color: var(--orange); background: var(--orange-pale); color: #1d2b36; } .chan-chip.on u { background: var(--orange); color: #fff; } .chan-chip:has(input:focus-visible) { box-shadow: var(--ring); }
.block-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.block-tile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid #e6ebee; background: #fff; text-align: left; cursor: pointer; color: inherit; box-shadow: none; min-height: 0; } .block-tile:hover { border-color: var(--orange); transform: none; background: var(--orange-pale); }
.block-tile .mini-page { flex: none; width: 44px; } .block-tile > span:last-child { display: flex; flex-direction: column; line-height: 1.4; } .block-tile b { font-size: 13px; } .block-tile small { font-size: 11px; color: #6b7984; }

/* 文章：AIにおまかせの帯 */
.ai-hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px 12px 12px; border-radius: 18px; background: linear-gradient(120deg, #f4effe, #fff1e9); border: 1px solid #e9def9; margin: 4px 0 6px; }
.ai-hero > img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(106,75,176,.2); flex: none; }
.ai-hero-copy { flex: 1; min-width: 200px; display: flex; flex-direction: column; line-height: 1.5; } .ai-hero-copy b { font-size: 15px; } .ai-hero-copy small { font-size: 12px; color: #5d6b76; }
.ai-hero-actions { display: flex; gap: 8px; align-items: center; } .ai-hero-actions .accent small { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.25); font-size: 10.5px; }

/* ===== 動画のカード ===== */
.vid-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.vid-card { display: flex; gap: 14px; padding: 12px; border-radius: 18px; border: 1.5px solid #e6ebee; background: #fff; }
.vid-card.best { border-color: #bfe3cf; background: #f7fcf9; } .vid-card.failed { border-color: #f0cdc7; background: #fffaf9; }
.vid-shot { position: relative; flex: none; width: 104px; }
.vid-play { position: relative; display: block; width: 104px; height: 185px; padding: 0; min-height: 0; border: 0; border-radius: 14px; overflow: hidden; background: #0e1a24; cursor: pointer; box-shadow: 0 8px 20px rgba(14,26,36,.16); }
.vid-play:hover { transform: translateY(-2px); } .vid-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-play i { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(9,18,25,.62); color: #fff; backdrop-filter: blur(2px); }
.vid-ph { display: grid; place-items: center; width: 100%; height: 100%; color: #8fa1af; } .vid-ph.big { height: 185px; border-radius: 14px; background: #f1f4f6; gap: 6px; font-size: 11px; font-weight: 700; color: #7b8894; }
.vid-sec { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(9,18,25,.78); color: #fff; font-size: 10.5px; font-weight: 700; }
.vid-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.vid-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; } .vid-head b { font-size: 14.5px; }
.vid-facts { margin: 0; font-size: 12px; color: #5d6b76; line-height: 1.6; }
.vid-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.vid-tool { display: inline-flex; align-items: center; gap: 5px; height: 30px; min-height: 0; padding: 0 11px; border-radius: 999px; border: 1px solid #e1e7eb; background: #fff; color: #4a5863; font-size: 11.5px; font-weight: 700; cursor: pointer; box-shadow: none; text-decoration: none; }
.vid-tool:hover { border-color: var(--orange); color: var(--orange-dark); transform: none; background: #fff; }
.vid-tool.on { border-color: #bfe3cf; background: #f2faf6; color: #23774b; } .vid-tool.danger:hover { border-color: #e6b6ae; color: #a8412f; background: #fff7f6; }
.vid-card .dlg-more { margin: 0; } .vid-card .dlg-more p { margin: 4px 0; font-size: 12px; line-height: 1.7; }
@media (max-width: 700px) { .vid-card { flex-direction: column; } .vid-shot, .vid-play { width: 100%; } .vid-play { height: auto; aspect-ratio: 16/9; } .vid-play img { object-position: 50% 30%; } }
@media (max-width: 700px) { .step-head h2 { font-size: 15px; line-height: 1.35; } .step-head .step-status { font-size: 10px; padding: 3px 7px; } .page-card > header span:last-child { display: none; } }

/* 承認の道すじ */
.trail { display: flex; align-items: flex-start; gap: 0; margin: 10px 0 14px; max-width: 420px; }
.trail-node { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: #97a3ac; }
.trail-node::before { content: ""; position: absolute; top: 18px; left: -50%; width: 100%; height: 3px; background: #e6ebee; } .trail-node:first-child::before { display: none; }
.trail-node.done::before, .trail-node.now::before { background: #35a56b; }
.trail-node i { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #f1f4f6; border: 2px solid #e1e6ea; color: #97a3ac; }
.trail-node.done i { background: #35a56b; border-color: #35a56b; color: #fff; } .trail-node.done { color: #2a7d52; }
.trail-node.now i { background: #fff6ee; border-color: var(--orange); color: var(--orange-dark); box-shadow: 0 0 0 5px rgba(240,120,40,.14); } .trail-node.now { color: var(--orange-dark); }
/* 投稿の予定：カレンダーの1枚 */
.sched { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 440px; padding: 12px 16px 12px 12px; border-radius: 18px; border: 1.5px solid #e6ebee; background: #fff; cursor: pointer; text-align: left; color: inherit; box-shadow: none; min-height: 0; }
.sched:hover:not(:disabled) { border-color: var(--orange); transform: none; } .sched:disabled { cursor: default; opacity: .75; }
.sched-cal { flex: none; width: 62px; padding: 5px 0 7px; display: flex; flex-direction: column; align-items: center; border-radius: 12px; background: #fff; border: 1px solid #e1e7eb; box-shadow: 0 4px 12px rgba(14,26,36,.1); overflow: hidden; color: #97a3ac; }
.sched-cal em { width: 100%; padding: 2px 0; background: var(--orange); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; text-align: center; }
.sched-cal b { font-size: 26px; line-height: 1.15; color: #1d2b36; font-variant-numeric: tabular-nums; } .sched-cal i { font-style: normal; font-size: 10.5px; color: #7b8894; font-weight: 700; }
.sched-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; } .sched-copy b { font-size: 15px; } .sched-copy small { font-size: 12px; color: #6b7984; }
.sched-go { flex: none; font-size: 12px; font-weight: 700; color: var(--orange-dark); }
.sched.empty { border-style: dashed; background: #fafcfd; } .sched.empty .sched-cal { padding: 14px 0; }

/* カレンダーの日ダイアログ */
.day-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.day-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; border: 1px solid #e6ebee; background: #fff; cursor: pointer; }
.day-item:hover { border-color: var(--orange); } .day-item > img, .dp-ph { flex: none; width: 34px; height: 42px; border-radius: 8px; object-fit: cover; background: #eef2f4; display: grid; place-items: center; color: #9aa7b1; }
.day-item > span:not(.dp-ph) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; } .day-item b { font-size: 13px; } .day-item small { font-size: 11px; color: #6b7984; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 8px; margin: 4px 0 10px; max-height: 300px; overflow: auto; padding: 2px; }
.day-pick button { display: flex; align-items: center; gap: 9px; padding: 7px; border-radius: 14px; border: 2px solid #e6ebee; background: #fff; cursor: pointer; text-align: left; color: inherit; box-shadow: none; min-height: 0; }
.day-pick button:hover { border-color: #f3b792; transform: none; } .day-pick button.on { border-color: var(--orange); background: var(--orange-pale); }
.day-pick img, .day-pick .dp-ph { flex: none; width: 32px; height: 40px; border-radius: 7px; object-fit: cover; }
.day-pick button > span:not(.dp-ph) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; } .day-pick b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .day-pick small { font-size: 10.5px; color: #6b7984; } .day-pick em { font-style: normal; font-size: 10px; color: var(--orange-dark); font-weight: 700; }
.day-value { display: none; }

/* 仕上げ：絵つきのスイッチ */
.pol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 8px; }
.pol { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 12px 9px 9px; border-radius: 14px; border: 1.5px solid #e6ebee; background: #fff; cursor: pointer; }
.pol input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.pol > i { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; font-style: normal; filter: grayscale(.75); opacity: .6; }
.pol > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; } .pol b { font-size: 13px; } .pol small { font-size: 10.5px; color: #6b7984; }
.pol em { flex: none; font-style: normal; font-size: 10.5px; font-weight: 700; color: #8a97a2; }
.pol u { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #e6ebee; color: transparent; text-decoration: none; }
.pol.on { border-color: #bfe3cf; background: #f7fcf9; } .pol.on > i { filter: none; opacity: 1; } .pol.on u { background: #35a56b; color: #fff; } .pol.on em { color: #23774b; }
.pol:has(input:focus-visible) { box-shadow: var(--ring); }
.pol small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .pol em { white-space: nowrap; }

/* 投稿文：最初に見える範囲とハッシュタグの札 */
.cap-wrap { margin: 4px 0 6px; }
.cap-meter { display: flex; align-items: baseline; gap: 8px; font-size: 12px; } .cap-meter b { font-size: 14px; font-variant-numeric: tabular-nums; }
.cap-head { position: relative; margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: #f4f7f9; border: 1px solid #e6ebee; font-size: 12.5px; line-height: 1.8; color: #40515d; white-space: pre-wrap; word-break: break-word; }
.cap-head u { display: block; margin-top: 4px; padding-top: 6px; border-top: 2px dashed #cfd9e0; text-decoration: none; font-size: 11.5px; font-weight: 700; color: #8a97a2; }
.tag-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid #e1e7eb; background: #fff; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 999px; background: #eaf2fc; color: #2f63a8; font-size: 12px; font-weight: 700; }
.tag-chip button { width: 18px; height: 18px; min-height: 0; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(47,99,168,.14); color: #2f63a8; cursor: pointer; box-shadow: none; } .tag-chip button:hover { background: #2f63a8; color: #fff; transform: none; }
.tag-new { flex: 1; min-width: 150px; border: 0 !important; box-shadow: none !important; background: transparent; padding: 4px 6px !important; font-size: 13px; }

/* ホームのヒーロー：次の一手を1つだけ大きく */
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 4px; }
.hero-go { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px; font-size: 16px; box-shadow: 0 12px 30px rgba(233,109,47,.35); }
.hero-go svg:last-child { opacity: .8; transition: transform .18s; } .hero-go:hover svg:last-child { transform: translateX(3px); }
.hero-links { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; min-height: 0; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: rgba(255,255,255,.88); font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: none; }
.hero-link:hover { background: rgba(255,255,255,.16); color: #fff; transform: none; }

/* 素材1件の中身 */
.asset-media { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: 14px; background: #0e1a24; margin-bottom: 10px; }
.asset-media[src$=".jpg"], img.asset-media { cursor: zoom-in; background: #eef2f4; }
.asset-media.audio { display: flex; align-items: center; gap: 14px; padding: 18px; background: #f4f7f9; }
.asset-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.pol.wide { margin: 8px 0; }

/* ===== 承認・確認：1件ずつ大きく見て、その場で決める ===== */
.rv-queue { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; }
.rv-queue button { flex: none; width: 46px; height: 58px; padding: 0; min-height: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #eef2f4; cursor: pointer; opacity: .55; box-shadow: none; display: grid; place-items: center; }
.rv-queue button.on { border-color: var(--orange); opacity: 1; } .rv-queue img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; align-items: start; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid #e6ebee; box-shadow: var(--shadow); }
.rv-stage { display: flex; flex-direction: column; gap: 8px; }
.rv-tabs { display: flex; gap: 6px; } .rv-tabs button { min-height: 0; padding: 6px 11px; border-radius: 999px; border: 1px solid #e1e7eb; background: #fff; color: #65737e; font-size: 11.5px; font-weight: 700; cursor: pointer; box-shadow: none; } .rv-tabs button.on { background: var(--orange-pale); border-color: var(--orange); color: var(--orange-dark); }
.rv-img { display: block; width: 100%; padding: 0; min-height: 0; border: 0; border-radius: 16px; overflow: hidden; background: #eef2f4; cursor: zoom-in; box-shadow: 0 10px 28px rgba(14,26,36,.14); }
.rv-img img { display: block; width: 100%; height: auto; } .rv-img:hover { transform: none; }
.rv-img.empty { aspect-ratio: 4/5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #9aa7b1; font-size: 13px; font-weight: 700; cursor: default; }
.rv-nav { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 12px; font-variant-numeric: tabular-nums; color: #53636f; }
.rv-nav button { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid #e1e7eb; background: #fff; font-size: 17px; line-height: 1; cursor: pointer; box-shadow: none; } .rv-nav button:disabled { opacity: .35; }
.rv-stage .side-strip button { border-color: transparent; background: #eef2f4; opacity: .55; } .rv-stage .side-strip button.on { border-color: var(--orange); opacity: 1; }
.rv-stage .side-video { background: #f4f7f9; border-color: #e1e7eb; color: #1d2b36; } .rv-stage .side-video:hover { background: #eef3f6; } .rv-stage .side-video small { color: #6b7984; }
.rv-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; } .rv-side h2 { margin: 0; font-size: 20px; line-height: 1.35; }
.rv-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 12px; }
.rv-check { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 13px; font-size: 12.5px; font-weight: 700; }
.rv-check.ok { background: #f2faf6; color: #23774b; } .rv-check.warn { background: #fff5f4; color: #a8412f; } .rv-check > span { flex: 1; min-width: 0; }
.rv-cap { padding: 12px 14px; border-radius: 13px; background: #f6f8f9; border: 1px solid #e9eef1; font-size: 13px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow: auto; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; align-items: center; }
.rv-actions .accent.big, .rv-actions .big { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 1100px) { .rv { grid-template-columns: 1fr; } .rv-stage { max-width: 420px; margin: 0 auto; width: 100%; } }

/* ===== 使い方ツアー：絵で見せる ===== */
.tourx { position: fixed; z-index: 402; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 28px)); max-height: 92vh; overflow: auto; border-radius: 24px; background: #fff; box-shadow: 0 40px 110px rgba(5,12,18,.5); animation: dlg-in .22s cubic-bezier(.2,.9,.3,1.1); }
.tw-art { display: grid; place-items: center; min-height: 210px; padding: 22px 22px 6px; background: linear-gradient(160deg, #f6f9fb, #eef3f7); }
.tw-body { padding: 16px 22px 18px; }
.tw-who { display: flex; gap: 14px; align-items: flex-start; } .tw-who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; flex: none; background: #eef2f4; }
.tw-who strong { display: block; font-size: 17px; margin-bottom: 4px; } .tw-who p { margin: 0; font-size: 13.5px; line-height: 1.8; color: #44525c; }
.tw-nav { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: var(--orange-pale); color: var(--orange-dark); font-size: 11.5px; font-weight: 700; }
.tw-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tw-dots { display: flex; gap: 5px; margin-right: auto; } .tw-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d7dee3; } .tw-dots i.on { background: var(--orange); width: 18px; border-radius: 999px; }
.tw-cast { display: flex; gap: 12px; } .tw-cast figure { margin: 0; text-align: center; } .tw-cast img { width: 74px; height: 74px; border-radius: 22px; object-fit: cover; object-position: 50% 12%; box-shadow: 0 8px 20px rgba(14,26,36,.16); background: #fff; }
.tw-cast figcaption { margin-top: 5px; font-size: 11px; font-weight: 700; color: #53636f; }
.tw-samples { display: flex; gap: 12px; } .tw-samples img { width: 110px; border-radius: 12px; box-shadow: 0 10px 24px rgba(14,26,36,.18); background: #fff; }
.tw-samples img:first-child { transform: rotate(-4deg); } .tw-samples img:last-child { transform: rotate(4deg); }
.tw-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; width: 100%; max-width: 380px; }
.tw-step { display: flex; flex-direction: column; align-items: center; gap: 4px; } .tw-step i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid #e1e6ea; color: #97a3ac; }
.tw-step.done i { background: #35a56b; border-color: #35a56b; color: #fff; } .tw-step em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #65737e; }
.tw-slots { display: flex; gap: 14px; } .tw-slots .slot, .tw-slots .slot-main { width: 92px; } .tw-slots .slot-main { height: 92px; cursor: default; } .tw-slots .slot-plus b { right: 20px; bottom: 20px; width: 20px; height: 20px; }
.tw-phone { position: relative; width: 132px; padding: 10px; border-radius: 26px; background: #05090d; box-shadow: 0 14px 34px rgba(5,12,18,.35); }
.tw-phone .phone-notch { top: 9px; width: 46px; height: 10px; background: #1a2733; } .tw-phone img { display: block; width: 100%; border-radius: 18px; }
.tw-blank { aspect-ratio: 9/16; display: grid; place-items: center; border-radius: 18px; background: #0e1a24; color: #6f8291; }
.tw-phone u { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); white-space: nowrap; padding: 4px 11px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 700; text-decoration: none; }
.tw-money { width: 100%; max-width: 360px; } .tw-money .budget-meter { padding: 12px 16px; border-radius: 14px; background: #fff; margin-bottom: 10px; }
.tw-money .cost-line { margin: 0; }
@media (max-width: 700px) { .tw-art { min-height: 170px; padding: 16px 16px 4px; } .tw-cast img { width: 60px; height: 60px; } .tw-samples img { width: 88px; } .tw-body { padding: 14px 16px 16px; } .tw-foot { flex-wrap: wrap; } }

/* ===== 反応の記録と振り返り ===== */
.mx-card { margin: 12px 0 0; border: 1px solid #e6ebee; border-radius: 18px; background: #fbfcfd; overflow: hidden; }
.mx-card > header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f1f5f7; border-bottom: 1px solid #e6ebee; } .mx-card header b { font-size: 14px; }
.mx-score { margin-left: auto; display: flex; align-items: baseline; gap: 2px; color: var(--orange-dark); } .mx-score b { font-size: 22px; font-variant-numeric: tabular-nums; } .mx-score small { font-size: 11px; font-weight: 700; }
.mx-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; padding: 12px 14px 4px; }
.mx-num { display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 0; padding: 8px 6px; border-radius: 12px; background: #fff; border: 1px solid #e6ebee; }
.mx-num svg { color: #8a97a2; } .mx-num > span { font-size: 10.5px; font-weight: 700; color: #65737e; }
.mx-num input { width: 100%; text-align: center; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 4px 2px !important; border: 0 !important; box-shadow: none !important; background: transparent; }
.mx-card .row { padding: 6px 14px 14px; gap: 8px; } .mx-card .row input { flex: 1; }
.mx { display: flex; flex-direction: column; gap: 14px; }
.mx-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.mx-group { padding: 12px 14px; border-radius: 16px; background: #f7f9fb; border: 1px solid #e9eef1; }
.mx-group h3, .mx-tops h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; } .mx-group .ico, .mx-tops .ico { width: 30px; height: 30px; border-radius: 10px; }
.mx-bar { display: grid; grid-template-columns: 82px 1fr auto auto; gap: 8px; align-items: center; margin: 5px 0; font-size: 11.5px; }
.mx-bar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mx-track { height: 9px; border-radius: 999px; background: #e6ebee; overflow: hidden; } .mx-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--orange), #f4a373); }
.mx-bar em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; } .mx-bar small { color: #97a3ac; }
.mx-tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.mx-post { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 6px; padding: 7px 12px 7px 7px; border-radius: 14px; border: 1px solid #e6ebee; background: #fff; cursor: pointer; text-align: left; color: inherit; box-shadow: none; min-height: 0; }
.mx-post:hover { border-color: var(--orange); transform: none; } .mx-post img, .mx-post .dp-ph { width: 34px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; background: #eef2f4; }
.mx-post > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; } .mx-post b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mx-post small { font-size: 10.5px; color: #6b7984; }
.mx-post em { font-style: normal; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; } .mx-post.up em { color: #23774b; } .mx-post.down em { color: #97a3ac; }
@media (max-width: 700px) { .mx-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 10px 2px; } .mx-num { padding: 6px 2px; } .mx-num input { font-size: 15px; } .mx-card > header { flex-wrap: wrap; gap: 6px 8px; } .mx-score { margin-left: auto; } .mx-bar { grid-template-columns: 70px 1fr auto auto; } }
.relook-open { display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0; padding: 10px 14px 10px 10px; border-radius: 16px; border: 1.5px solid #e9def9; background: linear-gradient(120deg, #f7f3fe, #fff1e9); cursor: pointer; text-align: left; color: inherit; box-shadow: none; min-height: 0; }
.relook-open:hover { border-color: #b79ff0; transform: none; } .relook-open > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; } .relook-open b { font-size: 14px; } .relook-open small { font-size: 11.5px; color: #5d6b76; }

/* ===== 自動ログアウト（1分前の知らせ・時間切れの知らせ・書きかけの復元） ===== */
/* 生成を待つ覆い（200）やガイド（402）より手前に出す。切れる前に必ず目に入るように */
.session-warn-bg { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(9,18,25,.62); backdrop-filter: blur(6px) saturate(1.1); animation: dlg-bg .16s ease-out; }
.session-warn { width: min(440px, 100%); padding: 28px 26px 22px; text-align: center; background: #fff; border-radius: 22px; box-shadow: 0 40px 120px rgba(5,12,18,.5), 0 0 0 4px rgba(233,109,47,.35); animation: dlg-in .22s cubic-bezier(.2,.9,.3,1.1); }
.session-warn-icon { width: 56px; height: 56px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--orange-dark); background: var(--orange-pale); }
.session-warn h2 { margin: 14px 0 4px; font-size: 19px; line-height: 1.45; } .session-warn h2 small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.session-warn .session-warn-count { margin: 0 0 10px; color: var(--orange-dark); font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.session-warn p { font-size: 13px; }
.session-warn-note { padding: 10px 12px; border-radius: 12px; background: #f1f6fb; color: #2d4a66; text-align: left; }
.session-warn-actions { margin-top: 16px; display: flex; justify-content: center; } .session-warn-actions button { min-width: 180px; min-height: 46px; font-size: 14px; font-weight: 700; }
.form-notice { margin: -6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--orange-pale); color: #a6461d; font-size: 12px; font-weight: 700; }
.draft-offer { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; width: min(620px, calc(100vw - 24px)); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: 0 20px 60px rgba(5,12,18,.35); font-size: 13px; }
.draft-offer span { flex: 1; min-width: 180px; } .draft-offer svg { color: var(--orange); flex: none; }
.draft-offer button { min-height: 36px; } .draft-offer button.ghost { color: var(--ink); }
@media (max-width: 780px) { .draft-offer { bottom: calc(78px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .session-warn, .session-warn-bg { animation: none; } }

/*
 * ログインのキャッチコピー（2026-09-26 相馬さんの依頼「印象付けたい」。入校・売上などとそろえる）。
 * ログイン画面が出るたびに、左の面を全画面（.lv-splash。app.js の playLoginSplash が写しを作る）で流してから、
 * ログイン画面に切り替える。流れ方: 上の小見出し → 見出しが 1 行ずつ下からせり上がる → 「次の一歩へ。」に
 * 下線が引かれ、光が 1 回走る → 説明文 → タグが順に出る → 約 3 秒で消えてログイン画面（押す・キーを打つと飛ばせる）。
 * 画面の中（PC の左の面）のキャッチコピーは止まった完成形。スマホは左の面を出さない作りのまま、全画面のときだけ見える。
 * 動きを減らす設定の端末では全画面を出さない（app.js）。
 */
.lv-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.lv-line > span { display: inline-block; }
.lv-accent { position: relative; }
.lv-accent::after {
  content: "";
  position: absolute;
  left: .02em;
  right: .5em;
  bottom: .02em;
  height: .08em;
  border-radius: 2px;
  background: #f79561;
}

/* 全画面。左の面の写しなので見た目の指定はそのまま使い、画面いっぱいに広げて真ん中に置く */
.login-visual.lv-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex !important;
  justify-content: center;
  min-height: 100dvh;
  padding: 32px clamp(28px, 9vw, 150px);
  cursor: pointer;
  animation: lv-leave .5s ease 3.1s forwards;
}
.login-visual.lv-splash.lv-leave-now { animation: lv-leave-now .35s ease forwards; }
.lv-splash .visual-content { width: min(760px, 100%); }
.lv-splash .visual-content h1 { font-size: clamp(32px, 9vw, 72px); }
.lv-splash .visual-content > p:not(.eyebrow) { font-size: 15px; }
.lv-splash .visual-pills span { font-size: 12px; }

.lv-splash .lv-line > span {
  transform: translateY(110%);
  animation: lv-rise .95s cubic-bezier(.2, .8, .2, 1) .25s forwards;
}
/* せり上がる span そのものなので、上の .lv-line > span より強い書き方にして光の動きも足す */
.lv-splash .lv-line > span.lv-accent {
  /* 光が走るぶんの帯。文字の色（白）は帯の両端と同じにしてあるので、止まっていれば白のまま */
  background: linear-gradient(100deg, #fff 38%, #ffc2a1 46%, #f79561 50%, #ffc2a1 54%, #fff 62%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lv-rise .95s cubic-bezier(.2, .8, .2, 1) .43s forwards, lv-shine 1.3s ease-in-out 1.75s forwards;
}
.lv-splash .lv-accent::after {
  transform: scaleX(0);
  transform-origin: left center;
  animation: lv-draw .75s cubic-bezier(.65, 0, .25, 1) 1.2s forwards;
}
.lv-splash .eyebrow { animation: lv-fade .7s ease .05s both; }
.lv-splash .visual-content > p:not(.eyebrow) { animation: lv-fade .8s ease 1s both; }
.lv-splash .visual-pills span { animation: lv-fade .6s ease both; }
.lv-splash .visual-pills span:nth-child(1) { animation-delay: 1.25s; }
.lv-splash .visual-pills span:nth-child(2) { animation-delay: 1.35s; }
.lv-splash .visual-pills span:nth-child(3) { animation-delay: 1.45s; }
.lv-splash .visual-pills span:nth-child(4) { animation-delay: 1.55s; }

@keyframes lv-rise { to { transform: translateY(0); } }
@keyframes lv-draw { to { transform: scaleX(1); } }
@keyframes lv-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes lv-fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes lv-leave { to { opacity: 0; visibility: hidden; } }
/* 押して飛ばすとき。名前を分けて、途中からでも必ず新しく始まるようにする */
@keyframes lv-leave-now { to { opacity: 0; visibility: hidden; } }

/* ===== ログイン画面：入校売上（KDS PERFORMANCE）と同じ見た目にそろえる（2026-09-26 所有者の依頼） =====
   色は元から同じ（紺 #132330・橙 #e96d2f・下地 #f4f6f7）。違っていたのは 書体・左の質感・入力欄の形。
   ここは**ログイン画面だけ**に効く（アプリ本体の見た目は変えない）。 */
.login-page {
  /* 書体を入校売上とそろえる（DM Sans をやめてヒラギノ中心に） */
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
}
/* 左：飾り（格子・光の玉）を消して、平らな紺にする */
.visual-grid, .visual-orb { display: none; }  /* 格子と光の玉は使わない（写しにも効くよう .login-page を付けない） */
.login-visual { background: var(--navy); padding: clamp(54px, 9vw, 150px); }
.login-visual .eyebrow { color: #f79561; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.login-visual h1 { margin: 22px 0 24px; font-size: clamp(38px, 4.2vw, 66px); line-height: 1.27; letter-spacing: -.055em; font-weight: 700; }
.login-visual > .visual-content > p { margin: 0; font-size: 15px; line-height: 2; }
.visual-pills { margin-top: 48px; gap: 9px; }
.visual-pills span { padding: 8px 12px; border: 1px solid rgba(237,242,244,.12); border-radius: 20px; background: rgba(237,242,244,.04); color: #c7d1d7; font-size: 13px; }
/* 右：白地。見出しと入力欄の形をそろえる */
.login-page .login-panel { background: var(--paper); }
.login-page .login-heading h2 { margin: 13px 0 7px; font-size: 28px; line-height: 1.55; letter-spacing: -.01em; }
.login-page .login-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.login-page form label { margin-bottom: 20px; gap: 8px; font-size: 14px; }
.login-page input[type="text"], .login-page input[type="password"] { height: 48px; min-height: 48px; padding: 0 14px; border-radius: 10px; font-size: 15px; }
.login-page .login-button { width: 100%; height: 50px; border-radius: 10px; box-shadow: 0 10px 25px rgba(233,109,47,.25); }
.login-page .passkey-button { height: 50px; border-radius: 10px; }
/* パスワード欄とボタンの間が空きすぎるのを詰める（入校売上と同じ間合いに） */
.login-page form label:last-of-type { margin-bottom: 8px; }
@media (max-width: 820px) { .login-page .login-visual { display: none; } .login-page { display: flex; background: var(--paper); } }
@media (max-width: 520px) { .login-page .login-heading h2 { font-size: 24px; } }
