/* お客様ポータル デモ用の追加 CSS（本物をビルドした app.css の上に重ねる。本物の見た目は変えない）
   Tailwind の CSS は @layer の中にあるので、ここ（レイヤーの外）に書いたものが優先される */
:root { --demobar-h: 44px; }
html { scroll-padding-top: calc(var(--demobar-h) + 72px); }
body { padding-top: var(--demobar-h); }

/* ---------- 上の細いデモのバー（本物のヘッダーとは別の色） ---------- */
.demo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  background: #2b2140; color: #fff; font-size: 13px; line-height: 1.4;
  border-bottom: 2px solid #f5c451;
}
.demo-bar__in { max-width: 1400px; margin: 0 auto; padding: 0 16px; min-height: 42px; display: flex; align-items: center; gap: 8px 14px; position: relative; }
.demo-bar__label { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; }
.demo-bar__pill { flex: none; background: #f5c451; color: #2b2140; font-weight: 800; border-radius: 6px; padding: 1px 8px; font-size: 12px; letter-spacing: .08em; }
.demo-bar__text { display: flex; flex-direction: column; min-width: 0; }
.demo-bar__main { font-weight: 700; }
.demo-bar__more { display: none; }
.demo-bar__short { font-size: 11px; color: #e3dcf5; white-space: nowrap; }
.demo-bar__toggle {
  flex: none; font: inherit; font-weight: 700; font-size: 13px; color: #fff; background: transparent;
  border: 1.5px solid rgba(255,255,255,.7); border-radius: 8px; padding: 6px 12px; min-height: 34px; cursor: pointer;
}
.demo-bar__toggle::after { content: " ▾"; }
.demo-bar__toggle[aria-expanded="true"] { background: #fff; color: #2b2140; }
.demo-bar__toggle[aria-expanded="true"]::after { content: " ▴"; }
.demo-bar__menu {
  display: none; position: absolute; top: calc(100% + 2px); left: 0; right: 0;
  background: #2b2140; padding: 10px 16px 14px; box-shadow: 0 12px 24px rgba(0,0,0,.3); border-bottom: 2px solid #f5c451;
}
.demo-bar.is-open .demo-bar__menu { display: grid; gap: 10px; }
.demo-bar__menu-note { margin: 0; font-size: 13px; color: #e3dcf5; }
.demo-bar__switch { display: flex; border: 1.5px solid rgba(255,255,255,.7); border-radius: 9px; overflow: hidden; }
.demo-bar__seg { flex: 1 1 0; font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: transparent; border: 0; padding: 8px 10px; min-height: 40px; cursor: pointer; white-space: nowrap; }
.demo-bar__seg + .demo-bar__seg { border-left: 1.5px solid rgba(255,255,255,.5); }
.demo-bar__seg[aria-pressed="true"] { background: #fff; color: #2b2140; }
.demo-bar__actions { display: flex; gap: 8px; }
.demo-bar__btn {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 13px; font-weight: 700;
  color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,.7); border-radius: 8px; padding: 6px 12px; min-height: 40px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.demo-bar__btn:hover, .demo-bar__seg:hover, .demo-bar__toggle:hover { background: rgba(255,255,255,.14); }
.demo-bar__seg[aria-pressed="true"]:hover { background: #fff; }
.demo-bar__toggle[aria-expanded="true"], .demo-bar__toggle[aria-expanded="true"]:hover { background: #fff; color: #2b2140; }
.demo-bar :focus-visible { outline: 3px solid #f5c451; outline-offset: 2px; }
@media (min-width: 1100px) {
  .demo-bar__toggle, .demo-bar__menu-note, .demo-bar__short { display: none; }
  .demo-bar__more { display: inline; color: #e3dcf5; font-weight: 400; }
  .demo-bar__text { flex-direction: row; flex-wrap: wrap; }
  .demo-bar__menu { display: flex !important; position: static; padding: 0; background: none; box-shadow: none; border: 0; align-items: center; gap: 10px; }
  .demo-bar__seg { min-height: 32px; padding: 4px 12px; flex: none; }
  .demo-bar__btn { min-height: 32px; padding: 4px 12px; flex: none; }
}

/* 本物のヘッダー（sticky）とタスクの中身（右から出る）を、デモのバーの下に */
.demo-sticky { top: var(--demobar-h); }
.demo-drawer { top: var(--demobar-h); }
#main:focus, #main h1:focus { outline: none; }

/* ---------- デモの注意書き（赤い枠と「デモ」の印。本物にはない） ---------- */
.demo-note { position: relative; margin: 0; border-radius: 14px; padding: 10px 14px; background: #fff1f1; border: 2px solid #d93838; font-size: 14px; font-weight: 700; color: #b91c1c; line-height: 1.7; text-align: left; }
.demo-note::before { content: "デモ"; display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: #d93838; color: #fff; font-size: 12px; font-weight: 800; vertical-align: 1px; }
.demo-note strong { color: #991b1b; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.demo-note--sm { font-size: 12.5px; padding: 6px 10px; border-radius: 10px; line-height: 1.6; }
.demo-note--sm::before { font-size: 11px; padding: 0 7px; }
.demo-note { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- 下の一言 ---------- */
.demo-footer { padding-bottom: 120px; }
.demo-footer p { margin: 2px 16px; }
.demo-footer a { font-weight: 700; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
/* スマホで案内が出ているときは、トーストを上に（下の案内と、読んでいる文に重ねない） */
@media (max-width: 759px) {
  html body.has-guide .demo-toasts { bottom: auto; top: calc(var(--demobar-h) + 12px); }
}

/* ---------- トースト（案内と重ならないように上に。デモのバーより手前） ---------- */
.demo-toasts { z-index: 90; padding: 0 16px; }
.demo-toasts > p { max-width: 100%; text-align: center; }
body.has-guide .demo-toasts { bottom: 150px; }

/* ---------- 案内の吹き出し ---------- */
.demo-guide {
  position: fixed; z-index: 70; right: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px));
  background: #2b2140; color: #fff; border-radius: 14px; padding: 10px 14px 12px; box-shadow: 0 14px 34px rgba(20, 10, 40, .35);
  border: 2px solid #f5c451; animation: demo-pop .25s ease-out;
}
.demo-guide[hidden], .demo-guide-reopen[hidden] { display: none; }
.demo-guide__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 2px; }
.demo-guide__step { font-size: 12px; font-weight: 800; color: #f5c451; letter-spacing: .06em; }
.demo-guide__find { display: none; margin-right: auto; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.demo-guide.is-findable { cursor: pointer; }
.demo-guide.is-findable .demo-guide__find { display: inline; }
.demo-guide.is-findable:hover { border-color: #ffd97a; }
.demo-guide:focus-visible { outline: 3px solid #8ddbf0; outline-offset: 2px; }
.demo-guide__close { font: inherit; font-size: 20px; line-height: 1; color: #fff; background: transparent; border: 0; width: 36px; height: 36px; margin: -6px -8px -6px 0; border-radius: 8px; cursor: pointer; }
.demo-guide__close:hover { background: rgba(255,255,255,.14); }
.demo-guide__text { margin: 0; font-size: 15px; line-height: 1.7; font-weight: 700; }
.demo-guide__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.demo-guide__actions:empty { display: none; }
.demo-guide__btn { font: inherit; font-size: 14px; font-weight: 700; color: #2b2140; background: #f5c451; border: 0; border-radius: 8px; padding: 6px 12px; min-height: 36px; cursor: pointer; }
.demo-guide :focus-visible { outline: 3px solid #f5c451; outline-offset: 2px; }
.demo-guide-reopen {
  position: fixed; z-index: 70; right: 16px; bottom: 16px; font: inherit; font-size: 14px; font-weight: 700;
  color: #2b2140; background: #f5c451; border: 0; border-radius: 999px; padding: 8px 16px; min-height: 40px; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
/* タスクの中身を開いているときも、案内は手前に（中身は z-40） */
body.panel-open .demo-guide, body.panel-open .demo-guide-reopen { z-index: 70; }
@media (max-width: 759px) {
  .demo-guide { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 8px 12px 10px; }
  .demo-guide__text { font-size: 13.5px; line-height: 1.6; }
  .demo-guide__head { margin: 0; }
  .demo-guide__actions { margin-top: 6px; }
  .demo-guide-reopen { right: 12px; bottom: 12px; }
  /* スマホでタスクの中身を開いているとき、いちばん下が案内に隠れないように */
  body.has-guide [data-aside] > div:last-child { padding-bottom: 190px; }
}
/* PC でタスクの中身（右）を開いているときは、案内を左下に */
@media (min-width: 1000px) {
  body.panel-open .demo-guide, body.panel-open .demo-guide-reopen { right: auto; left: 16px; }
}

/* 案内が指している場所（押すまで点滅し続ける） */
.demo-spot { position: relative; z-index: 1; animation: demo-spot 1.2s ease-in-out infinite; }
@keyframes demo-spot {
  0%, 100% { box-shadow: 0 0 0 3px #f0a020, 0 0 0 3px rgba(245, 168, 32, .55); }
  50% { box-shadow: 0 0 0 3px #f0a020, 0 0 0 11px rgba(245, 168, 32, 0); }
}
/* 右上に「ここ」の札を付けて、上下に弾ませる */
.demo-spot::after {
  content: "👆 ここ"; position: absolute; top: -13px; right: 10px; z-index: 2; pointer-events: none;
  padding: 2px 9px; border-radius: 999px; background: #f0a020; color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 30, 51, .2); animation: demo-spot-tag 1.2s ease-in-out infinite;
}
@keyframes demo-spot-tag { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
/* 上のメニューは横にスクロールして札が切れるので、枠だけにする */
#topbar .demo-spot::after { display: none; }
@keyframes demo-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .demo-guide { animation: none; }
  .demo-spot { animation: none; box-shadow: 0 0 0 3px #f0a020, 0 0 0 7px rgba(245, 168, 32, .35); }
  .demo-spot::after { animation: none; }
}
@media print {
  body { padding-top: 0; }
  .demo-bar, .demo-guide, .demo-guide-reopen, .demo-toasts { display: none !important; }
}

/* ---------- 本物の globals.css にあるのに、本番ビルドの CSS（app.css）に入っていなかったもの（2026-10-26 時点）。同じ内容をここに置く ---------- */
@keyframes ridori-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ridori-hop { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-12px) scale(1.03); } 55% { transform: translateY(0) scale(.98, 1.02); } }
@keyframes ridori-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.ridori-bob { animation: ridori-bob 3.2s ease-in-out infinite; }
.ridori-hop { animation: ridori-hop 1.4s ease-in-out infinite; }
.ridori-sway { animation: ridori-sway 2.8s ease-in-out infinite; transform-origin: 50% 90%; }
@media (prefers-reduced-motion: reduce) { .ridori-bob, .ridori-hop, .ridori-sway { animation: none; } }
.portal-dragging { opacity: .45; }
.portal-drop-target { outline: 2px dashed #8ddbf0; outline-offset: 2px; }
@media print { html, body { background: #fff !important; } }
/* ご利用期間の「ログインできなくなる日」（2026-11-15）。app.css に入っていないクラス */
.text-\[\#b42318\] { color: #b42318; }
@media (min-width: 64rem) { .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lg\:col-span-4 { grid-column: span 4 / span 4; } }
/* HOME と「AI のプロンプトを学ぶ」（2026-11-15）。app.css に入っていないクラス（本番のアプリの CSS と同じ値） */
.bg-\[\#f6faf8\] { background-color: #f6faf8; }
.bg-\[\#fff8ea\] { background-color: #fff8ea; }
.break-words { overflow-wrap: break-word; }
.font-sans { font-family: Hiragino Sans, Hiragino Kaku Gothic ProN, Noto Sans JP, Yu Gothic UI, Yu Gothic, Meiryo, sans-serif; }
.list-decimal { list-style-type: decimal; }
.list-disc { list-style-type: disc; }
.max-h-\[28rem\] { max-height: 28rem; }
.mt-auto { margin-top: auto; }
.overflow-auto { overflow: auto; }
.pl-5 { padding-left: calc(var(--spacing) * 5); }
.scroll-mt-24 { scroll-margin-top: calc(var(--spacing) * 24); }
#projects { scroll-margin-top: calc(var(--demobar-h, 0px) + 5rem); }
@media (hover: hover) { .group-hover\:underline:is(:where(.group):hover *) { text-decoration-line: underline; } }
@media (min-width: 40rem) { .sm\:grid-cols-\[1fr_auto_auto_auto\] { grid-template-columns: 1fr auto auto auto; } }
@media (min-width: 80rem) { .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 2026-11-17 本物のポータルの表・タブ・「管理者」の札に合わせて足したもの（app.css にないクラス） */
.bg-\[\#ecebfd\]{background-color:#ecebfd}
.bg-\[\#fdf6f5\]{background-color:#fdf6f5}
.bg-white\/70{background-color:rgb(255 255 255/.7)}
.border-\[\#f3c7c3\]{border-color:#f3c7c3}
.border-b-\[3px\]{border-bottom-style:solid;border-bottom-width:3px}
.border-transparent{border-color:transparent}
.break-all{word-break:break-all}
.flex-nowrap{flex-wrap:nowrap}
.gap-y-1\.5{row-gap:.375rem}
.inline-block{display:inline-block}
.last\:border-0:last-child{border-width:0}
.max-w-\[16rem\]{max-width:16rem}
.max-w-\[18rem\]{max-width:18rem}
.max-w-\[20rem\]{max-width:20rem}
.min-w-\[10rem\]{min-width:10rem}
.min-w-\[560px\]{min-width:560px}
.min-w-\[640px\]{min-width:640px}
.min-w-\[680px\]{min-width:680px}
.min-w-\[960px\]{min-width:960px}
.min-w-\[980px\]{min-width:980px}
.overflow-y-hidden{overflow-y:hidden}
.pl-3{padding-left:.75rem}
.py-px{padding-top:1px;padding-bottom:1px}
.shadow-\[inset_0_-1px_0_var\(--color-line\)\]{box-shadow:inset 0 -1px 0 var(--line)}
.text-\[\#4338a8\]{color:#4338a8}
.text-\[10px\]{font-size:10px}
.whitespace-nowrap{white-space:nowrap}
@media (hover:hover){.hover\:bg-subtle\/60:hover{background-color:color-mix(in oklab,var(--subtle) 60%,transparent)}}
@media (min-width:40rem){.sm\:grid-cols-\[200px_1fr\]{grid-template-columns:200px 1fr}.sm\:w-64{width:16rem}.sm\:w-auto{width:auto}}
/* タブの「チケット」の右上の枚数（2026-11-21） */
.-top-2{top:-.5rem}
.-right-3{right:-.75rem}
.h-\[18px\]{height:18px}
.min-w-\[18px\]{min-width:18px}
.bg-\[\#e5484d\]{background-color:#e5484d}
.leading-none{--tw-leading:1;line-height:1}

/* 2026-11-22：本物の app.css から外れたが、デモ（担当者の会社の一覧の表）で使うもの */
.min-w-\[860px\]{min-width:860px}
