/* ばらちゃん ローンチディレクター — ばらちゃんブランドの水彩パステル（2026-09-08）
   色はセミナーLPのヘッダー画像から実測: ラベンダー #a169d8 / ピンク #e659b0 / ブルー #6f95ec / 地 #eeedf2。
   参考にした「ローンチディレクター」の見た目＝淡いぼかし背景×白カード×ラベンダー→ペリウィンクルのグラデボタン。
   CW案件なのでGoAlオレンジは出さない（rules/08_cw・12_slide_brand）。フォントは角ゴシック（taiga_style 2026-09-07）。 */
:root {
  --p: #7d5cc9;            /* プライマリ（白文字OK・4.8:1） */
  --p2: #6f7fe0;           /* ペリウィンクル */
  --pink: #d94fa5;
  --grad: linear-gradient(135deg, #8a94e6 0%, #9a74d6 55%, #cf6bbd 100%);      /* ボタン・強調（白文字用） */
  --grad-soft: linear-gradient(135deg, #e7e9fb 0%, #ece3f7 55%, #f9e3f1 100%); /* 淡い面 */
  --ink: #2a2540;
  --sub: #7b7790;
  --line: #e3e0ee;
  --tint: #f3f0fb;
  --tint2: #ecebf5;
  --bg: #f5f4fb;
  --card: #fff;
  --ok: #2fa06a;
  --warn: #b06000;
  --danger: #e0485f;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6;
}
button, input, textarea, select { font-family: inherit; }
a { color: var(--p); }
[hidden] { display: none !important; }

/* 参考アプリと同じ「淡いぼかしの水彩」背景（固定・全画面） */
.bg-blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.bg-blobs .b1 { width: 60vw; height: 60vw; left: -18vw; top: -10vh; background: #d3b6ee; }
.bg-blobs .b2 { width: 55vw; height: 55vw; right: -15vw; top: 30vh; background: #b9cdf3; }
.bg-blobs .b3 { width: 50vw; height: 50vw; left: 10vw; bottom: -12vh; background: #f4c2dc; }
@media (min-width: 700px) { .bg-blobs .b1 { width: 36vw; height: 36vw; } .bg-blobs .b2 { width: 34vw; height: 34vw; } .bg-blobs .b3 { width: 30vw; height: 30vw; } }

.loading-screen { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); }
.loading-icon { width: 72px; height: 72px; border-radius: 18px; margin-bottom: .8rem; box-shadow: 0 12px 30px rgba(120,90,180,.25); }
.loading-logo { font-size: 1.3rem; font-weight: 900; letter-spacing: .04em; }
.loading-sub { color: var(--sub); margin-top: .3rem; font-size: .82rem; }

.muted { color: var(--sub); }
.center { text-align: center; }
.small { font-size: .8rem; }
.form-error { color: var(--danger); font-size: .86rem; margin: .5rem 0; min-height: 1.2em; }
.pre { white-space: pre-wrap; word-break: break-word; }
.empty { text-align: center; color: var(--sub); font-size: .86rem; padding: 1.4rem 0; }

/* ---- auth ---- */
.auth-wrap { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.auth-card { background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 22px; padding: 1.8rem 1.4rem; width: 100%; max-width: 420px; box-shadow: 0 18px 50px rgba(120,90,180,.18); border: 1px solid rgba(255,255,255,.7); }
.auth-brand { text-align: center; margin-bottom: 1.2rem; }
.auth-brand img { width: 56px; height: 56px; border-radius: 14px; margin-bottom: .5rem; box-shadow: 0 8px 20px rgba(120,90,180,.22); }
.auth-brand .b1 { font-size: 1.3rem; font-weight: 900; color: var(--ink); }
.auth-brand .b2 { color: var(--sub); font-size: .84rem; margin-top: .15rem; }
.field { margin-bottom: .85rem; }
.field label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.field input, .field select, .sel { width: 100%; padding: .78rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; background: #fff; color: var(--ink); }
.field input:focus, textarea:focus, .field select:focus { outline: none; border-color: var(--p); }
textarea { width: 100%; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; background: #fff; color: var(--ink); resize: vertical; min-height: 88px; }
.btn { display: block; width: 100%; padding: .85rem; border: none; border-radius: 14px; background: var(--grad); color: #fff; font-size: 1rem; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(125,92,201,.25); }
.btn:disabled { opacity: .5; }
.btn.secondary { background: var(--tint2); color: var(--ink); box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.small { display: inline-block; width: auto; padding: .5rem .85rem; font-size: .84rem; border-radius: 10px; text-decoration: none; box-shadow: none; }
.btn.ok { background: var(--ok); }
.btn.danger { background: #fff; color: var(--danger); border: 1.5px solid #f2c7cf; box-shadow: none; }
.seg { display: flex; background: var(--tint2); border-radius: 12px; padding: 4px; margin-bottom: 1rem; }
.seg button { flex: 1; border: none; background: none; padding: .55rem; border-radius: 9px; font-size: .92rem; font-weight: 700; color: var(--sub); cursor: pointer; }
.seg button.on { background: #fff; color: var(--p); box-shadow: 0 2px 8px rgba(120,90,180,.12); }
.auth-switch { text-align: center; margin-top: 1rem; font-size: .8rem; color: var(--sub); line-height: 1.6; }

/* ---- shell ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: .5px solid rgba(0,0,0,.07); padding: calc(.6rem + env(safe-area-inset-top)) .9rem .6rem; display: flex; align-items: center; gap: .5rem; }
.topbar .back { background: none; border: none; color: var(--ink); font-size: 1.5rem; padding: 0 .4rem; cursor: pointer; line-height: 1; }
.topbar .title { font-weight: 900; font-size: 1.02rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sync { font-size: .68rem; color: var(--sub); }
.container { max-width: 680px; margin: 0 auto; padding: .9rem .9rem 5rem; position: relative; z-index: 1; }
.section { background: var(--card); border-radius: var(--radius); padding: .95rem 1rem; margin-bottom: .9rem; box-shadow: 0 6px 22px rgba(120,90,180,.08); }
.section h3 { font-size: .98rem; font-weight: 900; margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
.section h3 .more { margin-left: auto; font-size: .76rem; color: var(--p); font-weight: 700; background: none; border: none; cursor: pointer; }
.section h3 .note { margin-left: auto; font-size: .7rem; color: var(--sub); font-weight: 500; }
.chips { display: flex; gap: .4rem; overflow-x: auto; padding: .1rem 0 .5rem; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: .32rem .8rem; font-size: .8rem; font-weight: 700; color: var(--sub); cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge { display: inline-block; font-size: .68rem; font-weight: 800; border-radius: 99px; padding: .1rem .5rem; background: var(--tint2); color: var(--sub); vertical-align: middle; white-space: nowrap; }
.badge.red { background: #fde8ec; color: var(--danger); }
.badge.orange { background: #fdf0e2; color: var(--warn); }
.badge.green { background: #e6f5ec; color: var(--ok); }
.badge.purple { background: #ede6fb; color: var(--p); }
.badge.pend { background: #fff4d6; color: #8a6200; }
.toast { position: fixed; left: 50%; bottom: calc(4.6rem + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: rgba(42,37,64,.94); color: #fff; padding: .6rem 1.1rem; border-radius: 99px; font-size: .85rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 99; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- タブバー（LINE型・4アプリ共通仕様＝taiga_style 2026-09-07） ---- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50; margin: 0;
  display: flex; align-items: stretch;
  height: calc(50px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border-top: .5px solid rgba(0,0,0,.09);
  --n: 5; --i: 0; overflow: hidden;
}
.tabbar[hidden] { display: none; }
body.kb-open .tabbar { display: none; }
.tabbar button { flex: 1; min-width: 0; border: none; background: none; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 0 0 6px; margin: 0; color: #9ca1a9; position: relative; z-index: 1; user-select: none; transition: transform .12s ease, color .12s ease; }
.tabbar button:active { transform: scale(.9); }
.tabbar button .ic { position: relative; width: 26px; height: 26px; display: block; }
.tabbar button svg { width: 26px; height: 26px; display: block; }
.tabbar button span { font-size: 10px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; line-height: 1; max-width: calc(100% - 10px); overflow: hidden; text-overflow: ellipsis; text-align: center; }
.tabbar button.on { color: var(--p); }
.tabbar .dot { position: absolute; top: -5px; left: 16px; min-width: 18px; height: 18px; border-radius: 9px; box-sizing: border-box; background: #ff334b; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; padding: 0 5px; box-shadow: 0 0 0 2px #fff; }
.tabbar .dot:empty { min-width: 10px; height: 10px; width: 10px; top: -2px; left: 18px; padding: 0; border-radius: 5px; }
.tabbar .glass { position: absolute; z-index: 0; top: 3px; bottom: calc(3px + env(safe-area-inset-bottom, 0px)); left: 0; width: calc(100% / var(--n)); transform: translateX(calc(var(--i) * 100%)); transition: transform .55s cubic-bezier(.34, 1.4, .4, 1); pointer-events: none; }
.tabbar .glass[hidden] { display: none; }
.tabbar .glass::before { content: ''; position: absolute; inset: 0 7px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.28)); -webkit-backdrop-filter: blur(6px) saturate(160%) brightness(1.06); backdrop-filter: blur(6px) saturate(160%) brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(0,0,0,.05), inset 0 0 0 .5px rgba(255,255,255,.6), 0 6px 16px rgba(0,0,0,.08); }
.tabbar .glass::after { content: ''; position: absolute; inset: 0 7px; border-radius: 16px; overflow: hidden; background: radial-gradient(60% 80% at 30% 20%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%); animation: glass-shine 3.2s ease-in-out infinite alternate; }
@keyframes glass-shine { from { transform: translateX(-14%) } to { transform: translateX(14%) } }
.tabbar .glass.move::before { animation: glass-stretch .55s ease-out; }
@keyframes glass-stretch { 0% { transform: scaleX(1) } 35% { transform: scaleX(1.16) scaleY(.92) } 100% { transform: scaleX(1) } }
@media (prefers-reduced-motion: reduce) { .tabbar .glass { transition: none; } .tabbar .glass::after, .tabbar .glass.move::before { animation: none; } }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
#app { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; z-index: 1; }
body.has-tabbar #app { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }

/* ---- home ---- */
.hero { padding: calc(.9rem + env(safe-area-inset-top)) 1rem .4rem; max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.hero-top { display: flex; align-items: center; gap: .6rem; }
.hero-top .hi { flex: 1; }
.hero-top .hi b { font-size: 1.15rem; font-weight: 900; display: block; line-height: 1.3; }
.hero-top .hi span { font-size: .76rem; color: var(--sub); }
.hero-top .bell { background: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.9); color: var(--ink); border-radius: 12px; padding: .42rem .65rem; font-size: .9rem; cursor: pointer; position: relative; box-shadow: 0 4px 14px rgba(120,90,180,.12); }
.hero-top .bell i { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 99px; background: #ff334b; color: #fff; font-size: .62rem; font-weight: 900; line-height: 16px; padding: 0 4px; font-style: normal; }
.month-nav { display: flex; align-items: center; gap: .4rem; margin: .5rem 0 .2rem; }
.month-nav button { background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 36px; height: 36px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.month-nav b { font-size: 1.05rem; font-weight: 900; }
.month-nav span { font-size: .72rem; color: var(--sub); }

.funnel-card { background: #fff; border-radius: 20px; padding: 1rem 1.05rem 1.05rem; box-shadow: 0 14px 34px rgba(120,90,180,.12); position: relative; overflow: hidden; }
.funnel-card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--grad); }
.fc-top { display: flex; align-items: flex-end; gap: .7rem; }
.fc-top .lab { font-size: .72rem; font-weight: 800; color: var(--sub); letter-spacing: .04em; }
.fc-top .num { font-size: 2.2rem; font-weight: 900; line-height: 1.1; letter-spacing: .01em; }
.fc-top .num small { font-size: .9rem; color: var(--sub); font-weight: 700; margin-left: .1rem; }
.fc-top .cmp { margin-left: auto; text-align: right; font-size: .74rem; color: var(--sub); line-height: 1.45; }
.fc-top .cmp b { font-size: .95rem; }
.up { color: var(--ok); } .down { color: var(--danger); }
.funnel { margin-top: .9rem; display: grid; gap: .45rem; }
.fr { display: grid; grid-template-columns: 6.4rem 1fr 3.2rem; align-items: center; gap: .5rem; font-size: .8rem; }
.fr .k { font-weight: 700; color: var(--ink); }
.fr .k span { display: block; font-size: .66rem; color: var(--sub); font-weight: 500; }
.fr .bar { height: 22px; border-radius: 8px; background: var(--tint); overflow: hidden; position: relative; }
.fr .bar i { display: block; height: 100%; border-radius: 8px; background: var(--grad); min-width: 4px; }
.fr .bar em { position: absolute; left: 8px; top: 0; line-height: 22px; font-style: normal; font-weight: 900; font-size: .8rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.fr .bar em.out { color: var(--ink); text-shadow: none; }
.fr .r { text-align: right; font-size: .74rem; color: var(--sub); font-weight: 700; }
.fr .r b { color: var(--ink); }
.fc-foot { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .45rem; margin-top: .8rem; }
.fc-foot div { background: var(--tint); border-radius: 12px; padding: .5rem .55rem; font-size: .68rem; color: var(--sub); line-height: 1.35; }
.fc-foot b { display: block; font-size: 1rem; color: var(--ink); }

.spark { margin-top: .3rem; }
.spark svg { width: 100%; height: 56px; display: block; }
.stat-row { display: flex; gap: .5rem; }
.stat { flex: 1; background: var(--tint); border-radius: 12px; padding: .5rem .6rem; font-size: .7rem; color: var(--sub); }
.stat b { display: block; font-size: 1.05rem; color: var(--ink); }

.offer { display: grid; grid-template-columns: 1fr auto; gap: .3rem .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.offer:last-child { border-bottom: none; }
.offer .t { font-weight: 900; font-size: .92rem; }
.offer .m { grid-column: 1 / -1; display: flex; gap: .55rem; flex-wrap: wrap; font-size: .74rem; color: var(--sub); }
.offer .m b { color: var(--ink); }
.offer .rate { font-size: 1.15rem; font-weight: 900; color: var(--p); text-align: right; }
.offer .rate small { font-size: .66rem; color: var(--sub); font-weight: 700; display: block; }

.list-row { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; padding: .65rem .2rem; border: none; border-bottom: 1px solid var(--line); background: none; cursor: pointer; font-family: inherit; color: var(--ink); }
.list-row:last-child { border-bottom: none; }
.list-row .d { flex: none; width: 3.4rem; text-align: center; }
.list-row .d b { display: block; font-size: 1rem; line-height: 1.1; }
.list-row .d span { font-size: .66rem; color: var(--sub); }
.list-row .main { flex: 1; min-width: 0; }
.list-row .t { font-weight: 800; font-size: .9rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .m { font-size: .72rem; color: var(--sub); margin-top: .1rem; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.list-row .go { color: #b8b0c5; }
.list-row .amt { font-weight: 900; color: var(--p); font-size: .95rem; white-space: nowrap; }

/* ステータスの色 */
.st { display: inline-block; font-size: .68rem; font-weight: 800; border-radius: 99px; padding: .1rem .5rem; background: var(--tint2); color: var(--sub); white-space: nowrap; }
.st.win { background: #e6f5ec; color: var(--ok); }
.st.pay { background: #fff4d6; color: #8a6200; }
.st.hold { background: #ede6fb; color: var(--p); }
.st.lost { background: #f4f1f6; color: #8d8698; }
.st.none { background: #fde8ec; color: var(--danger); }

/* ---- 個別相談の詳細 ---- */
.kv { display: grid; gap: .3rem; margin-top: .3rem; }
.kv-row { display: grid; grid-template-columns: 6.6rem 1fr; gap: .5rem; font-size: .84rem; align-items: start; }
.kv-row .k { color: var(--sub); font-size: .76rem; padding-top: .15rem; }
.kv-row .v { overflow-wrap: anywhere; white-space: pre-wrap; }
.edit-grid { display: grid; gap: .7rem; }
.edit-grid label { display: block; font-size: .76rem; font-weight: 700; color: var(--sub); margin-bottom: .25rem; }
.edit-grid select, .edit-grid input { width: 100%; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; background: #fff; color: var(--ink); }
.edit-grid .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.chk { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 700; padding: .5rem 0; }
.chk input { width: 22px; height: 22px; }
.sticky-save { position: sticky; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 5; padding-top: .4rem; }

/* ---- 失注理由 ---- */
.hbar { display: grid; grid-template-columns: 8.4rem 1fr 2.4rem; align-items: center; gap: .5rem; font-size: .8rem; padding: .28rem 0; }
.hbar .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.hbar .bar { height: 12px; border-radius: 6px; background: var(--tint); overflow: hidden; }
.hbar .bar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; min-width: 3px; }
.hbar .n { text-align: right; font-weight: 900; }

/* ---- 数字（表） ---- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -1rem; padding: 0 1rem; }
.kpi-table { border-collapse: collapse; font-size: .78rem; min-width: 100%; white-space: nowrap; }
.kpi-table th { text-align: left; color: var(--sub); font-weight: 700; font-size: .68rem; padding: .35rem .4rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.kpi-table td { padding: .42rem .4rem; border-bottom: 1px solid #f1eef6; }
.kpi-table td.r, .kpi-table th.r { text-align: right; }
.kpi-table tr.cur td { background: var(--tint); font-weight: 800; }
.kpi-table td:first-child, .kpi-table th:first-child { position: sticky; left: 0; background: inherit; }
.kpi-table th:first-child { background: #fff; }
.kpi-table tr td:first-child { background: #fff; font-weight: 800; }
.kpi-table tr.cur td:first-child { background: var(--tint); }
.mchart { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: .4rem; }
.mchart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.mchart .col i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: var(--grad); }
.mchart .col.cur i { background: var(--pink); }
.mchart .col b { font-size: .64rem; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.mchart .col span { font-size: .6rem; color: var(--sub); margin-top: 3px; }

/* ---- notices / menu / settings / admin ---- */
.notice-item { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.notice-item:last-child { border-bottom: none; }
.notice-item.unread { background: var(--tint); margin: 0 -1rem; padding: .65rem 1rem; }
.nt-head { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; align-items: baseline; }
.nt-date { font-size: .7rem; color: var(--sub); flex: none; }
.nt-body { font-size: .82rem; color: var(--ink); margin-top: .15rem; white-space: pre-wrap; }
.nt-link { font-size: .8rem; font-weight: 800; color: var(--p); text-decoration: none; display: inline-block; margin-top: .2rem; }
.menu-list { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 22px rgba(120,90,180,.08); margin-bottom: .9rem; }
.menu-row { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .85rem .95rem; border: none; background: none; cursor: pointer; border-bottom: 1px solid var(--line); font-family: inherit; text-align: left; color: var(--ink); text-decoration: none; }
.menu-row:last-child { border-bottom: none; }
.menu-row .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--tint); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: none; }
.menu-row .t { flex: 1; font-weight: 800; font-size: .92rem; }
.menu-row .t span { display: block; font-size: .72rem; color: var(--sub); font-weight: 500; }
.menu-row .go { color: #b8b0c5; font-size: 1.1rem; }
.adm-row { border-bottom: 1px solid var(--line); padding: .6rem 0; font-size: .86rem; }
.adm-row:last-child { border-bottom: none; }
.adm-row .sub { font-size: .72rem; color: var(--sub); }
.adm-row .acts { display: flex; gap: .4rem; margin-top: .35rem; flex-wrap: wrap; align-items: center; }
.adm-row select { padding: .35rem .5rem; border: 1.5px solid var(--line); border-radius: 8px; font-size: .84rem; }
.ob-row { font-size: .78rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.ob-row .e { color: var(--danger); }
.pob-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(42,37,64,.55); display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.pob-card { background: #fff; border-radius: 20px; padding: 1.5rem 1.3rem; max-width: 400px; width: 100%; text-align: center; }
.pob-card h2 { font-size: 1.15rem; margin: .3rem 0 .5rem; }
.pob-card p { font-size: .88rem; color: var(--ink); line-height: 1.7; margin-bottom: .9rem; }
.pob-emoji { font-size: 2.2rem; }
.pob-steps { text-align: left; font-size: .84rem; padding-left: 1.3rem; margin-bottom: .9rem; line-height: 1.7; }
.pob-later { display: inline-block; margin-top: .7rem; font-size: .82rem; color: var(--sub); }
.search { display: flex; gap: .4rem; margin-bottom: .5rem; }
.search input { flex: 1; padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; background: #fff; }
.search select { padding: .55rem .5rem; border: 1.5px solid var(--line); border-radius: 12px; font-size: .84rem; background: #fff; max-width: 40%; }

/* ---- ファネルの分岐（直売り／個別誘導・2026-09-08 たいが指示） ---- */
.fbranch { display: grid; grid-template-columns: 1fr 1.35fr; gap: .5rem; margin-top: .7rem; }
.fb { border-radius: 14px; padding: .55rem .6rem .6rem; background: var(--tint); }
.fb.direct { background: #eef0fb; } .fb.consult { background: #fbeef6; }
.fb-t { font-size: .7rem; font-weight: 900; color: var(--sub); letter-spacing: .04em; margin-bottom: .3rem; }
.fb.direct .fb-t::before { content: '①'; margin-right: .2rem; color: var(--p2); } .fb.consult .fb-t::before { content: '②'; margin-right: .2rem; color: var(--pink); }
.fm { padding: .3rem 0; }
.fm + .fm { border-top: 1px dashed rgba(0,0,0,.08); }
.fm-k { font-size: .72rem; font-weight: 700; color: var(--ink); }
.fm-v { font-size: 1.3rem; font-weight: 900; line-height: 1.15; }
.fm-v small { font-size: .7rem; color: var(--sub); font-weight: 700; margin-left: .1rem; }
.fm-r { font-size: .68rem; color: var(--sub); }
.fm-r b { color: var(--ink); font-size: .82rem; }
/* セミナー日程 */
.sem-day.today { background: var(--tint); border-radius: 12px; margin: 0 -.4rem; padding-left: .6rem; padding-right: .6rem; }
.sem-day.past { opacity: .8; }
.sem-day .t small { color: var(--sub); font-weight: 600; }
.sem-apps { background: var(--tint); border-radius: 12px; padding: .3rem .7rem; margin: .1rem 0 .5rem; }
.sem-app { display: flex; gap: .5rem; align-items: center; font-size: .8rem; padding: .3rem 0; border-bottom: 1px dashed rgba(0,0,0,.07); }
.sem-app:last-child { border-bottom: none; }
.sem-app .t { color: var(--sub); font-size: .7rem; width: 2.6rem; flex: none; }
.sem-app .n { font-weight: 700; }

/* ---- 引っ張って更新（全アプリ共通・正本 _shared/design_agent/ptr/ptr.css）---- */
/* 待機=白ピル＋ブランド色の文字 → 離すと更新/更新中/完了=ブランドグラデ地＋白文字（各アプリの :root で --ptr-color/--ptr-grad/--ptr-on-grad を指定） */
#ptr { position: fixed; left: 50%; top: 0; z-index: 60; transform: translate(-50%, calc(var(--pull, 0px) - 52px)); transition: transform .12s, background .2s, color .2s; display: flex; align-items: center; gap: .45rem; height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ptr-color, var(--navy, #333)); box-shadow: 0 8px 22px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.05); font-size: .85rem; font-weight: 800; letter-spacing: .02em; pointer-events: none; opacity: 0; white-space: nowrap; }
#ptr.show { opacity: 1; }
#ptr i { font-style: normal; font-size: 1.35rem; line-height: 1; display: inline-block; transition: transform .2s; }
#ptr.ready, #ptr.loading, #ptr.done { background: var(--ptr-grad, var(--ptr-color, #333)); color: var(--ptr-on-grad, #fff); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
#ptr.ready i { transform: translateY(2px) scale(1.2); }
#ptr.loading i { animation: ptr-spin .8s linear infinite; }
#ptr.done i { transform: scale(1.15); }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* ---- 読み込み中（全アプリ共通・正本 _shared/design_agent/ptr/loading.css）---- */
/* 起動スプラッシュ: 浮遊する光の玉＋ロゴがふわっと浮く＋下にブランド色のシマーバー。ページ内: ブランド色のリング＋「読み込み中…」の点が動く */
.loading-screen { position: relative; overflow: hidden; isolation: isolate; }
.loading-screen > * { position: relative; z-index: 1; }
.ld-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ld-orbs b { position: absolute; border-radius: 50%; background: var(--ld-orb, #fff); opacity: .28; filter: blur(42px); animation: ld-drift 10s ease-in-out infinite alternate; }
.ld-orbs b:nth-child(1) { width: 260px; height: 260px; left: -70px; top: 8%; }
.ld-orbs b:nth-child(2) { width: 320px; height: 320px; right: -120px; top: 34%; animation-duration: 13s; animation-delay: -4s; }
.ld-orbs b:nth-child(3) { width: 220px; height: 220px; left: 20%; bottom: -80px; animation-duration: 11s; animation-delay: -7s; }
.loading-icon, .loading-logo-img { animation: ld-float 3.2s ease-in-out infinite, ld-in .7s cubic-bezier(.2,.8,.2,1) both; filter: drop-shadow(0 14px 28px rgba(0,0,0,.22)); }
.loading-logo { animation: ld-in .7s .12s cubic-bezier(.2,.8,.2,1) both; }
.loading-sub { animation: ld-in .7s .24s cubic-bezier(.2,.8,.2,1) both; }
.ld-bar { width: 132px; height: 3px; border-radius: 3px; margin-top: 1.6rem; overflow: hidden; background: color-mix(in srgb, currentColor 22%, transparent); animation: ld-in .7s .36s both; }
.ld-bar i { display: block; width: 42%; height: 100%; border-radius: 3px; background: currentColor; animation: ld-slide 1.15s cubic-bezier(.4,0,.2,1) infinite; }
.ld { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: 1.8rem 0; color: var(--sub, #7a7a8a); font-size: .85rem; font-weight: 600; }
.ld i { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,.08); border-top-color: var(--ptr-color, var(--navy, #333)); animation: ptr-spin .8s linear infinite; flex: none; }
.ld span::after { content: '…'; display: inline-block; width: 1.3em; text-align: left; animation: ld-dots 1.2s steps(1, end) infinite; }
@keyframes ld-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, -50px) scale(1.18); } }
@keyframes ld-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ld-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ld-slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(260%); } }
@keyframes ld-dots { 0% { content: '.'; } 33% { content: '..'; } 66% { content: '…'; } }
@media (prefers-reduced-motion: reduce) { .ld-orbs b, .loading-icon, .loading-logo-img { animation: none; } }

/* ---- ブランド指定（apply.py が brands.json から生成） ---- */
:root { --ptr-color: #7b5fcf; --ptr-grad: linear-gradient(135deg, #8a94e6 0%, #9a74d6 55%, #cf6bbd 100%); --ptr-on-grad: #fff; --ld-orb: #b9a6f0; }
