/* リドリAI 体験デモ（/demo/）。色や部品は style.css のものを使う */
.demo-page { background: var(--grad-soft); min-height: 100vh; display: flex; flex-direction: column; }
.demo-page > main { flex: 1; }
.nowrap { white-space: nowrap; }
.demo-badge { margin-left: 4px; }
.header__inner .demo-badge ~ .btn { margin-left: auto; } /* 公開前・公開後のどちらのボタンも右に寄せる */
.demo { padding: 40px 0 80px; }
.demo__head { text-align: center; max-width: 760px; }
.demo__head h1 { font-size: clamp(26px, 4vw, 38px); margin-top: 8px; }
.demo__lead { margin-top: 12px; color: var(--ink-2); }
.demo__privacy { margin: 14px auto 0; display: inline-block; font-size: 13px; color: var(--ink-2); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; }

/* 進み具合 */
.stepper { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 32px 0 24px; counter-reset: s; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 700; color: var(--ink-3); }
.stepper li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e6edf2; color: var(--ink-3); font-size: 12px; }
.stepper li[aria-current="step"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.stepper li[aria-current="step"] span { background: var(--grad-button); color: var(--ink); }
.stepper li.is-done { color: var(--brand); }
.stepper li.is-done span { background: #e3f6d2; color: var(--brand); }

.demo__grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }

/* 案内役のリドリ */
.guide { position: sticky; top: 92px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.guide__ridori { position: relative; width: 170px; aspect-ratio: 1; }
.guide__ridori .ridori { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.guide[data-face="kihon"] .ridori--d-kihon,
.guide[data-face="think"] .ridori--d-think,
.guide[data-face="deliver"] .ridori--d-deliver,
.guide[data-face="joy"] .ridori--d-joy { display: block; }
.guide .ridori * { animation-iteration-count: 3; }
.guide .ridori--d-think .r-light { animation-duration: .6s; animation-iteration-count: 6; }
.guide .ridori--d-joy .r-body { transform-box: view-box; transform-origin: 200px 354px; animation: rd-hop .8s cubic-bezier(.3, .6, .4, 1) .1s 2 both, rd-bob 3.2s ease-in-out 1.7s 3; }
.guide__bubble { position: relative; background: #fff; border: 1.5px solid #b9ecd6; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); text-align: left; }
.guide__bubble::before { content: ""; position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; margin-left: -8px; background: #fff; border-left: 1.5px solid #b9ecd6; border-top: 1.5px solid #b9ecd6; transform: rotate(45deg); }
.guide__name { font-weight: 800; color: #0e7d4f; font-size: 14px; }
.guide__text { margin-top: 2px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }

/* 共通のカード */
.panels { display: grid; gap: 20px; min-width: 0; }
.panel { display: grid; gap: 20px; }
.panel[hidden] { display: none; }
.panel.is-enter { animation: rd-rise .4s ease both; }
.demo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.demo-card h2 { font-size: 22px; }
.demo-card h2:focus, .demo-card h3:focus { outline: none; }
.demo-card h3 { font-size: 18px; }
.panel__crumb { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--brand); margin-bottom: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.actions--start { justify-content: flex-start; margin-top: 12px; }
.actions--center { justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.sample-note { margin-top: 14px; font-size: 12px; color: var(--ink-3); }

/* 1. 選択肢 */
.choose { display: grid; gap: 18px; margin-top: 18px; }
.q { border: 0; padding: 0; margin: 0; min-width: 0; }
.q legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.q[disabled] { opacity: .55; }
.q__hint { font-size: 13px; color: var(--ink-3); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts--wide { display: grid; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span { display: block; padding: 10px 16px; border-radius: 14px; border: 1.5px solid #c8d4df; background: #fff; font-size: 14px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.opts--wide .opt span { border-radius: 12px; }
.opt input:checked + span { border-color: #8fd46b; background: #eefadf; color: var(--brand); font-weight: 700; }
.opt input:focus-visible + span { outline: 3px solid #8ddbf0; outline-offset: 2px; }
/* 困りごとから選ぶ（1 画面目） */
.opts--cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opts--cats .opt span { height: 100%; padding: 14px 16px; border-radius: 14px; font-weight: 700; font-size: 15px; line-height: 1.5; }
#step-1-title { word-break: keep-all; } /* <wbr> の位置だけで折り返す */
.opts--cats .opt span { word-break: auto-phrase; } /* 日本語を文節で折り返す（対応していないブラウザでは通常の折り返し） */
.opt__ex { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.opt input:checked + span .opt__ex { color: var(--brand); }
.worry-search { display: grid; gap: 6px; }
.worry-search label { font-weight: 700; font-size: 14px; }
.worry-search label span { margin-left: 8px; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.worry-search input { font: inherit; font-size: 16px; padding: 10px 14px; border: 1.5px solid #c8d4df; border-radius: 12px; background: #fff; color: var(--ink); }
.worry-search input:focus { outline: 3px solid #8ddbf0; outline-offset: 1px; border-color: #8ddbf0; }
/* 体験では選べない困りごと（登録後に使える） */
.opt--locked span { border-style: dashed; background: var(--subtle); color: var(--ink-3); cursor: not-allowed; }
.opt__lock { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: #fff3d6; color: #8a5a00; font-size: 11px; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.lock-note { margin: -2px 0 10px; font-size: 13px; color: var(--ink-2); }
.lock-box { margin-top: 14px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(120deg, #f1fbe6, #e4f5fb); border: 1px solid #c9ead7; }
.lock-box__title { font-weight: 700; color: var(--ink); }
.lock-box p + p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.lock-box .actions { margin-top: 12px; }
.is-locked .prompt pre { color: var(--ink-2); }
.opt-more { justify-self: start; padding: 8px 4px; border: 0; background: none; color: var(--brand); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.opt[hidden] { display: none; }
.lock-box[hidden], .actions[hidden], .btn[hidden], .hint[hidden] { display: none; }
.opt__tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--subtle); color: var(--ink-3); font-size: 11px; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.opt input:checked + span .opt__tag { background: #fff; color: var(--brand); }
.q-time { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: #fff; }
.q-time summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; cursor: pointer; list-style: none; font-size: 14px; }
.q-time summary::-webkit-details-marker { display: none; }
.q-time__label { font-weight: 700; }
.q-time__now { color: var(--ink-2); }
.q-time__edit { margin-left: auto; color: var(--brand); font-weight: 700; font-size: 13px; text-decoration: underline; }
.q-time[open] .q-time__edit { visibility: hidden; }
.q-time > .q__hint { margin: 10px 0 12px; }
.q-time .q + .q { margin-top: 14px; }
.na-role { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.na-role label { font-weight: 700; color: var(--ink); }
.na-role select { font: inherit; font-size: 14px; padding: 6px 10px; border: 1.5px solid #c8d4df; border-radius: 10px; background: #fff; color: var(--ink); }
.na-role select:disabled { color: var(--ink-2); background: var(--subtle); }
.na-role span { font-size: 12px; color: var(--ink-3); }
@media (max-width: 720px) {
  .opts--cats { grid-template-columns: repeat(2, 1fr); }
  .opts--cats .opt span { padding: 12px 12px; font-size: 14px; }
}

/* 2. 提案 */
.thinking { display: none; align-items: center; justify-content: center; gap: 12px; padding: 48px 0; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.thinking__dots { display: inline-flex; gap: 6px; }
.thinking__dots i { width: 8px; height: 8px; border-radius: 50%; background: #7cc94a; animation: dm-dot 1s ease-in-out infinite; }
.thinking__dots i:nth-child(2) { animation-delay: .15s; background: #3ddc97; }
.thinking__dots i:nth-child(3) { animation-delay: .3s; background: #22c3e6; }
@keyframes dm-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-6px); opacity: 1; } }
.is-thinking .thinking { display: flex; }
.is-thinking .proposal { display: none; }
.demo-na { width: 100%; }
.proposal .demo-na { transform-origin: 20% 0; animation: rd-card-in .55s cubic-bezier(.2, .8, .2, 1) both; }
.proposal .demo-na h3 { animation: rd-type .8s steps(16, end) .35s both; }
.proposal .na-card__desc { animation: rd-rise .4s ease .9s both; }
.proposal .na-card__stats .stat { animation: rd-pop .4s cubic-bezier(.3, 1.4, .5, 1) 1.05s both; }
.proposal .na-card__stats .stat:nth-child(2) { animation-delay: 1.2s; }
.proposal .na-card__stats .stat:nth-child(3) { animation-delay: 1.35s; }
.proposal .na-card__why, .proposal .na-skill, .proposal .na-role { animation: rd-rise .4s ease 1.5s both; }
.na-skill { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.na-skill b { color: var(--brand); }

/* 3. 実践 */
.goal { margin-top: 14px; display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--grad-soft); font-size: 15px; }
.goal b { font-size: 12px; color: var(--brand); }
.rules { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.rules em { font-style: normal; background: var(--subtle); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }
.prompt { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.prompt__head .btn { flex: none; white-space: nowrap; }
.prompt__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--subtle); font-size: 13px; }
.prompt pre, .result pre { margin: 0; padding: 14px 16px; font-family: inherit; font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.hint { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.result { margin-top: 14px; border-radius: 14px; background: #f3fbf6; border: 1px dashed #9fe3c5; animation: rd-rise .4s ease both; }
.result__label { padding: 10px 16px 0; font-size: 12px; font-weight: 700; color: #0e7d4f; }

/* 4. 記録 */
.slider { margin-top: 18px; }
.slider label { font-weight: 700; font-size: 14px; }
.slider__row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.slider input { flex: 1; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 4px; background: #e2eaee; cursor: pointer; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #3ddc97; border: 4px solid #fff; box-shadow: 0 1px 6px rgba(15, 30, 51, .25); }
.slider input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #3ddc97; border: 4px solid #fff; box-shadow: 0 1px 6px rgba(15, 30, 51, .25); }
.slider input:focus-visible { outline: 3px solid #8ddbf0; outline-offset: 6px; }
.slider output { min-width: 64px; text-align: right; font-weight: 800; font-size: 18px; }
.compare { display: grid; grid-template-columns: 1fr auto 1fr 1.4fr; gap: 10px; align-items: center; margin: 18px 0 20px; }
.compare > div { background: var(--subtle); border-radius: 14px; padding: 12px 14px; }
.compare > .compare__arrow { background: none; padding: 0; color: var(--ink-3); font-size: 20px; }
.compare span { display: block; font-size: 12px; color: var(--ink-3); }
.compare strong { font-size: 20px; }
.compare__save { background: #eefadf !important; }
.compare__save strong { color: #0e7d4f; font-size: 18px; }

/* 5. 見立てと学びノート */
.skill { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--grad-soft); }
.skill__head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.skill__head span { font-size: 12px; font-weight: 700; color: var(--brand); }
.skill__bar { margin-top: 10px; height: 8px; border-radius: 4px; background: #fff; overflow: hidden; }
.skill__bar i { display: block; height: 100%; width: 25%; border-radius: 4px; background: var(--grad-button); transition: width 1.2s cubic-bezier(.2, .8, .2, 1) .3s; }
.is-grown .skill__bar i { width: 50%; }
.insight { display: grid; gap: 10px; margin-top: 14px; }
.insight > div { padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; }
.insight span { font-size: 12px; font-weight: 700; color: var(--brand); }
.insight p, .insight ol { margin-top: 4px; font-size: 14px; color: var(--ink); }
.insight ol { padding-left: 1.4em; list-style: decimal; display: grid; gap: 2px; }
.lnote__text { margin-top: 8px; font-size: 16px; font-weight: 700; line-height: 1.7; }
.lnote__switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: var(--subtle); font-size: 12px; color: var(--ink-3); }
.lnote__switch button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid #c8d4df; background: #fff; color: var(--ink-2); cursor: pointer; }
.lnote__switch button[aria-checked="true"] { border-color: #8fd46b; background: #eefadf; color: var(--brand); font-weight: 700; }
.comment { margin-top: 14px; display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: var(--grad-soft); animation: rd-rise .4s ease both; }
.comment[hidden] { display: none; }
.comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 800; white-space: nowrap; }
.comment__head span { font-size: 11px; font-weight: 700; color: #08708a; background: #dff5fb; border-radius: 999px; padding: 2px 8px; }
.comment > div { background: #fff; border-radius: 12px; padding: 10px 14px; }
.comment > div span { font-size: 12px; color: var(--ink-3); }
.comment > div p { margin-top: 2px; font-size: 14px; }
.comment__off { margin-top: 12px; font-size: 14px; color: var(--ink-2); padding: 12px 14px; border-radius: 12px; background: var(--subtle); }
.finish { text-align: center; }
.finish p { margin-top: 8px; color: var(--ink-2); }

@media (max-width: 900px) {
  .demo__grid { grid-template-columns: 1fr; gap: 16px; }
  .guide { position: static; flex-direction: row; align-items: center; text-align: left; }
  .guide__ridori { width: 92px; flex: none; }
  .guide__bubble::before { top: 50%; left: -9px; margin: -8px 0 0; transform: rotate(-45deg); }
  .demo-card { padding: 20px; }
  .compare { grid-template-columns: 1fr auto 1fr; }
  .compare__save { grid-column: 1 / -1; }
  .header__inner .demo-badge { display: none; }
}
@media (max-width: 600px) {
  .demo-na .na-card__stats { grid-template-columns: 1fr 1fr; }
  .demo-na .na-card__stats .stat:nth-child(3) { grid-column: 1 / -1; }
  .demo-na .stat strong { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .demo *, .demo *::before { animation: none !important; transition: none !important; }
}

/* エンジニア向け（上級）：ターミナルでの使い方を、ターミナル風に表示する */
.is-term .prompt { border-color: #22344b; }
.is-term .prompt__head { background: #16273d; color: #c7d2de; }
.is-term .prompt pre, .is-term .result pre {
  background: #0f1e33; color: #d9f7e8;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px; line-height: 1.7; overflow-wrap: anywhere;
}
.is-term .result { background: #0f1e33; border: 1px solid #22344b; overflow: hidden; }
.is-term .result__label { color: #8fe6bf; }
.is-term .goal { background: linear-gradient(120deg, #eef4ff 0%, #e6f8f1 60%, #e4f5fb 100%); }

/* 5 → 6 への案内 */
.next-dash { text-align: center; }
.next-dash p { color: var(--ink-2); }
.next-dash .actions { margin-top: 14px; }

/* 6. ダッシュボード */
.dash__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.period { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--subtle); border: 1px solid var(--line); }
.period button { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.period button[aria-checked="true"] { background: var(--grad-button); color: var(--ink); box-shadow: 0 2px 8px rgba(18, 156, 99, .18); }
.period button:focus-visible { outline: 3px solid #8ddbf0; outline-offset: 2px; }
.dash__note { margin-top: 8px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.kpis > div { padding: 12px 14px; border-radius: 14px; background: var(--subtle); }
.kpis span { display: block; font-size: 12px; color: var(--ink-3); }
.kpis strong { font-size: 20px; white-space: nowrap; }
.kpis > div:nth-child(2) strong { color: #0e7d4f; }
.chart { margin-top: 16px; padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: 14px; }
.chart__title { font-size: 12px; font-weight: 700; color: var(--brand); }
.chart__bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 10px; }
.chart__bars i { flex: 1; height: calc(var(--h, .04) * 100%); border-radius: 6px 6px 2px 2px; background: #e6eef2; transition: height .6s cubic-bezier(.2, .8, .2, 1), background .3s ease; }
.chart__bars i.is-on { background: var(--grad-button); }
.chart__axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--ink-3); }
.dash__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.dash__label { font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.dash__label--sub { margin-top: 16px; }
.memory ul { display: grid; gap: 6px; }
.memory li { position: relative; padding: 8px 12px 8px 30px; border-radius: 12px; background: var(--subtle); font-size: 13px; line-height: 1.6; }
.memory li::before { content: ""; position: absolute; left: 12px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: #7cc94a; }
.memory li.is-new { background: #eefadf; animation: rd-rise .4s ease both; }
.memory li.is-new::after { content: "NEW"; margin-left: 6px; font-size: 10px; font-weight: 800; color: #0e7d4f; letter-spacing: .05em; }
.future__card { padding: 14px 16px; border-radius: 14px; background: var(--grad-soft); border: 1.5px solid #b9ecd6; }
.future__card.is-flip { animation: rd-card-in .45s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 50% 0; }
.future__title { font-weight: 800; }
.future__why { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.timeline { display: grid; gap: 8px; padding-left: 0; }
.timeline li { position: relative; padding-left: 22px; font-size: 13px; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid #22c3e6; background: #fff; }
.timeline li + li::after { content: ""; position: absolute; left: 8px; top: -10px; width: 1px; height: 14px; background: #cfe3ea; }
.dash__privacy { margin-top: 16px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 900px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash__cols { grid-template-columns: 1fr; }
}
.timeline { list-style: none; }

/* 5. 来週のあなたへの提案（記録で提案が変わる） */
.nextweek h2 { margin-bottom: 14px; }
.nw { display: grid; grid-template-columns: 1fr auto 1.25fr; gap: 10px; align-items: stretch; }
.nw > div { border-radius: 14px; padding: 12px 16px; }
.nw span { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.nw p { margin-top: 4px; font-weight: 700; line-height: 1.6; }
.nw__before { background: var(--subtle); }
.nw__before p { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(107, 122, 140, .5); }
.nw__arrow { align-self: center; font-size: 22px; color: #22c3e6; padding: 0 !important; }
.nw__after { background: var(--grad-soft); border: 1.5px solid #9fe3c5; animation: rd-card-in .5s cubic-bezier(.2, .8, .2, 1) .3s both; }
.nw__after span { color: #0e7d4f; }
.nw__why { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* 6. 視点の切り替え（あなた／会社） */
.dash__head { align-items: center; }
.view { display: inline-flex; padding: 4px; border-radius: 999px; background: #eef8f2; border: 1px solid #c9ebd8; }
.view button { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.view button[aria-checked="true"] { background: #0e7d4f; color: #fff; }
.view button:focus-visible { outline: 3px solid #8ddbf0; outline-offset: 2px; }

/* 体験の最後の登録 */
.finish__form { margin: 18px auto 0; max-width: 560px; text-align: left; box-shadow: none; padding: 24px; }
.finish .actions { margin-top: 10px; }

@media (max-width: 600px) {
  .nw { grid-template-columns: 1fr; }
  .nw__arrow { justify-self: center; transform: rotate(90deg); }
  .dash__head { flex-direction: column; align-items: flex-start; }
}

/* 7. 運営に頼む */
.req__lead { margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.req .q { margin-top: 16px; }
.near { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--grad-soft); border: 1.5px solid #b9ecd6; animation: rd-rise .35s ease both; }
.near__head { font-size: 12px; font-weight: 700; color: #0e7d4f; }
.near__title { margin-top: 4px; font-weight: 700; }
.near__note { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.req .actions { align-items: center; }
.req__quota { margin-right: auto; font-size: 13px; color: var(--ink-3); }
.track { margin-top: 18px; }
.track__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; }
.track__steps li { position: relative; padding: 12px; border-radius: 14px; background: var(--subtle); color: var(--ink-3); transition: background .3s ease, color .3s ease; }
.track__steps b { display: block; font-size: 14px; }
.track__steps span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; }
.track__steps li.is-on { background: #eefadf; color: var(--ink); }
.track__steps li.is-on b { color: #0e7d4f; }
.track__steps li.is-now { box-shadow: 0 0 0 2px #8fd46b inset; animation: rd-pop .35s cubic-bezier(.3, 1.4, .5, 1) both; }
.toast { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: #0f1e33; color: #e6eef6; animation: rd-rise .4s ease both; }
.toast__head { font-size: 12px; font-weight: 700; color: #8fe6bf; }
.toast__title { margin-top: 4px; font-weight: 700; }
.toast__note { margin-top: 4px; font-size: 13px; color: #c7d2de; }
.everyone__list { display: grid; gap: 8px; margin-top: 12px; list-style: none; padding: 0; }
.everyone__list li { padding: 12px 14px; border-radius: 14px; background: var(--subtle); }
.everyone__title { font-weight: 700; font-size: 14px; }
.everyone__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.status { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #e6edf2; color: var(--ink-2); }
.status--doing { background: #dff5fb; color: #08708a; }
.status--done { background: #e3f6d2; color: #0e7d4f; }
.metoo { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1.5px solid #c8d4df; background: #fff; color: var(--ink-2); cursor: pointer; }
.metoo[aria-pressed="true"] { border-color: #8fd46b; background: #eefadf; color: var(--brand); }
.metoo:focus-visible { outline: 3px solid #8ddbf0; outline-offset: 2px; }
@media (max-width: 600px) {
  .track__steps { grid-template-columns: 1fr 1fr; }
  .req .actions { flex-direction: column; align-items: stretch; }
  .req__quota { margin: 0; text-align: center; }
}

/* 会社（管理者）の視点：メンバーの一覧（名前つき） */
.members { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.members[hidden] { display: none; }
.members__head, .members__list li { display: grid; grid-template-columns: 130px 110px 96px 1fr 70px; gap: 10px; align-items: center; }
.members__head { padding: 0 8px 6px; font-size: 11px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.members__list { list-style: none; padding: 0; margin: 0; }
.members__list li { padding: 8px; border-bottom: 1px solid var(--line); font-size: 13px; position: relative; }
.members__list li.is-me { background: #f3fbf6; border-radius: 10px; }
.m-name b { display: block; font-size: 13px; }
.m-name small { font-size: 11px; color: var(--ink-3); }
.m-status { justify-self: start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.m-status--ok { background: #e3f6d2; color: #0e7d4f; }
.m-status--warn { background: #fff2d6; color: #8a5a00; }
.m-status--wait { background: #e6edf2; color: var(--ink-2); }
.m-heat { display: flex; gap: 4px; }
.m-heat i { width: 18px; height: 14px; border-radius: 4px; background: #eef2f5; }
.m-heat i.lv1 { background: #d6f3bd; }
.m-heat i.lv2 { background: #7cc94a; }
.m-heat i.is-wait { background: repeating-linear-gradient(45deg, #e6edf2 0 3px, #f4f8fa 3px 6px); }
.m-task { color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.m-save { font-weight: 700; font-size: 12px; text-align: right; }
.m-nudge { grid-column: 4 / -1; justify-self: end; font: inherit; font-size: 12px; font-weight: 700; color: var(--brand); background: #fff; border: 1.5px solid #b9e48f; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.m-nudge:disabled { color: var(--ink-3); border-color: var(--line); cursor: default; }
.members__note { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 700px) {
  .members__head { display: none; }
  .members__list li { grid-template-columns: 1fr auto; row-gap: 4px; }
  .m-heat { grid-column: 1; }
  .m-task { grid-column: 1 / -1; }
  .m-save { grid-row: 1; grid-column: 2; }
  .m-status { grid-column: 2; grid-row: 2; justify-self: end; }
  .m-nudge { grid-column: 1 / -1; }
}

/* 7. 経営ダッシュボード（社員一人ひとりの利用状況） */
.exec .kpis small { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-3); }
.exec__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.exec__bar .dash__label { margin: 0; }
.depts { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.depts button { font: inherit; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1.5px solid #c8d4df; background: #fff; color: var(--ink-2); cursor: pointer; }
.depts button[aria-checked="true"] { border-color: #8fd46b; background: #eefadf; color: var(--brand); }
.m-open { text-align: left; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.m-open b { text-decoration: underline; text-decoration-color: rgba(18, 156, 99, .35); text-underline-offset: 3px; }
.m-open:hover b { color: #0e7d4f; }
.m-open:focus-visible { outline: 3px solid #8ddbf0; outline-offset: 2px; border-radius: 6px; }
.members__list li.is-open { background: #eefadf; border-radius: 10px; }
.person { margin-top: 12px; padding: 18px; border-radius: 16px; border: 1.5px solid #9fe3c5; background: var(--grad-soft); animation: rd-rise .3s ease both; display: grid; gap: 12px; }
.person[hidden] { display: none; }
.person__head { display: flex; align-items: center; gap: 12px; }
.person__name { font-size: 18px; font-weight: 800; }
.person__dept { font-size: 12px; color: var(--ink-3); }
.person__close { margin-left: auto; font: inherit; font-size: 13px; color: var(--brand); background: none; border: 0; cursor: pointer; }
.person__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.person__grid div { background: #fff; border-radius: 12px; padding: 10px 12px; }
.person__grid dt { font-size: 11px; color: var(--ink-3); }
.person__grid dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; }
.person__bars { display: flex; align-items: flex-end; gap: 10px; height: 90px; background: #fff; border-radius: 12px; padding: 10px 14px 6px; }
.person__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.person__col i { width: 100%; max-width: 48px; height: calc(var(--h, .1) * 56px); border-radius: 6px 6px 2px 2px; background: #eef2f5; }
.person__col i.lv1 { background: #b9e48f; }
.person__col i.lv2 { background: #7cc94a; }
.person__col i.is-wait { background: repeating-linear-gradient(45deg, #e6edf2 0 3px, #f4f8fa 3px 6px); }
.person__col span { font-size: 11px; color: var(--ink-3); }
.person__hidden, .person__hint { font-size: 12px; color: var(--ink-3); }
.person .btn { justify-self: start; }
.exec__cols { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 12px; margin-top: 16px; }
.exec__box { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.exec__box--ai { background: var(--grad-soft); border-color: #b9ecd6; }
.funnel, .effect, .moves { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.funnel__line { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.funnel li > i { display: block; height: 8px; margin-top: 3px; border-radius: 4px; background: linear-gradient(90deg, #7cc94a 0, #3ddc97 100%); width: calc(var(--w, 0) * 100%); min-width: 4px; transition: width .5s ease; }
.effect li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.effect__empty { color: var(--ink-3); }
.moves li { background: #fff; border-radius: 12px; padding: 10px 12px; }
.moves b { display: block; font-size: 13px; }
.moves span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.exec__notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--subtle); font-size: 13px; color: var(--ink-2); }
.notice-preview { margin-top: 10px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; animation: rd-rise .3s ease both; }
.notice-preview[hidden] { display: none; }
.notice-preview__title { font-weight: 800; font-size: 14px; }
.notice-preview__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.notice-preview__cols > div { padding: 12px; border-radius: 12px; background: var(--subtle); font-size: 13px; }
.notice-preview__cols > div:last-child { background: #eefadf; }
.notice-preview__cols ul { margin-top: 6px; padding-left: 1.2em; list-style: disc; display: grid; gap: 2px; color: var(--ink-2); }
@media (max-width: 900px) {
  .exec__cols, .notice-preview__cols { grid-template-columns: 1fr; }
}

/* 中身の長さでカードが画面の幅より広がらないように */
.panel > .demo-card { min-width: 0; }
.exec .kpis > div, .members__list li > * { min-width: 0; }

/* 4.5 AI メモ帳 */
.memo-ed { margin-top: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.memo-ed__meta { font-size: 12px; color: var(--ink-3); }
.memo-ed__title { margin-top: 4px; font-size: 17px; font-weight: 800; }
.memo-ed__body { margin-top: 10px; padding-left: 1.2em; list-style: disc; display: grid; gap: 4px; font-size: 15px; line-height: 1.7; }
.memo-ed__body li.is-new { background: #eefadf; border-radius: 6px; padding: 0 6px; margin-left: -6px; animation: rd-rise .35s ease both; }
.memo-ed__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 14px; background: var(--subtle); }
.memo-ed__ai { font-size: 13px; font-weight: 700; margin-right: 2px; }
.memo-ed__btn { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 18px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px #a9e6c9; color: var(--ink); cursor: pointer; }
.memo-ed__btn:hover { box-shadow: inset 0 0 0 1.5px var(--mint); }
.memo-ed__btn[aria-pressed="true"] { background: var(--grad-button); box-shadow: none; }
.memo-ed__btn:focus-visible { outline: 3px solid #8ddbf0; outline-offset: 2px; }
.memo-ed__note { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.memo-think { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--subtle); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.memo-think[hidden] { display: none; }
.memo-res { margin-top: 12px; padding: 16px 18px; border-radius: 18px; background: var(--grad-soft); border: 1.5px solid #b9ecd6; display: grid; gap: 10px; animation: rd-rise .4s ease both; }
.memo-res[hidden] { display: none; }
.memo-res__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.memo-res__head b { font-size: 15px; }
.memo-res__tag { font-size: 11px; font-weight: 700; color: #08708a; background: #dff5fb; border-radius: 999px; padding: 2px 8px; }
.memo-res__list { padding-left: 1.2em; list-style: disc; display: grid; gap: 4px; font-size: 14px; }
.memo-res__part { background: #fff; border-radius: 12px; padding: 10px 14px; }
.memo-res__part > span { font-size: 12px; color: var(--ink-3); }
.memo-res__part p { margin-top: 2px; font-size: 14px; }
.memo-res__todohead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.memo-res__todohead > span { font-size: 12px; color: var(--ink-3); }
.memo-res__check { margin-top: 6px; display: grid; gap: 4px; font-size: 14px; }
.memo-res__check li::before { content: "□ "; color: var(--ink-3); }
.memo-res__q { justify-self: end; max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: #fff; font-size: 14px; }
.memo-res__a { background: #fff; border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: 14px; display: grid; gap: 6px; }
.memo-res__a ol { padding-left: 1.4em; list-style: decimal; display: grid; gap: 2px; }
.memo-res__input { padding: 9px 14px; border-radius: 999px; border: 1.5px solid #c8d4df; background: #fff; font-size: 13px; color: var(--ink-3); }
.memo-res__acts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) { .memo-ed__note { margin-left: 0; width: 100%; } .memo-ed { padding: 16px; } }

/* 4.5 AI メモ帳：一覧 */
.memo-list { margin-top: 16px; }
.memo-list[hidden], .memo-detail[hidden] { display: none; }
.memo-list__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.memo-list__count { font-size: 12px; color: var(--ink-3); }
.memo-list__items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.memo-item { display: grid; gap: 4px; width: 100%; text-align: left; font: inherit; color: inherit; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; animation: rd-rise .3s ease both; }
.memo-item:hover { border-color: #9fe3c5; box-shadow: var(--shadow); transform: translateY(-1px); }
.memo-item:focus-visible { outline: 3px solid #8ddbf0; outline-offset: 2px; }
.memo-item__top { display: flex; align-items: baseline; gap: 10px; }
.memo-item__top b { flex: 1; font-size: 15px; }
.memo-item__date { font-size: 12px; color: var(--ink-3); }
.memo-item__ex { font-size: 13px; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.memo-item__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.memo-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e6edf2; color: var(--ink-2); }
.memo-tag--new { background: #eefadf; color: #0e7d4f; }
.memo-tag--ai { background: #dff5fb; color: #08708a; }
.memo-list__items li:first-child .memo-item { border-color: #b9ecd6; background: linear-gradient(120deg, #fbfef7 0%, #f3fbf6 100%); }
.memo-list__empty { padding: 16px; border-radius: 14px; background: var(--subtle); font-size: 13px; color: var(--ink-2); }
.memo-list__hint { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.memo-detail { margin-top: 12px; }
.memo-back { font: inherit; font-size: 14px; font-weight: 700; color: var(--brand); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.memo-back:focus-visible { outline: 3px solid #8ddbf0; outline-offset: 2px; border-radius: 6px; }
.memo-detail .memo-ed { margin-top: 8px; }

/* 実践カレンダー */
.cal { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cal__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.cal__head .dash__label { margin: 0; }
.cal__sum { font-size: 13px; color: var(--ink-2); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 10px; font-size: 11px; color: var(--ink-3); }
.cal__legend span { display: inline-flex; align-items: center; gap: 4px; }
.cal__legend i, .cal__dots i, .cal__items i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.k-practice { background: #7cc94a; }
.k-note { background: #22c3e6; }
.k-review { background: #fff; box-shadow: inset 0 0 0 2px #7cc94a; }
.k-off { background: #eef2f5; border-radius: 2px !important; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__grid > span { text-align: center; font-size: 11px; color: var(--ink-3); padding: 2px 0; }
.cal__grid > span.is-sun { color: #c0504d; }
.cal__grid > span.is-sat { color: #2f6db5; }
.cal__d { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 48px; padding: 5px 2px; border-radius: 10px; border: 1px solid transparent; background: #f7fafb; font: inherit; color: var(--ink); cursor: pointer; }
.cal__d.is-off { background: #eef2f5; color: var(--ink-3); }
.cal__d.is-done { background: #eefadf; }
.cal__d.is-today { border-color: #3ddc97; }
.cal__d.is-sel { box-shadow: 0 0 0 2px #22c3e6 inset; }
.cal__d:focus-visible { outline: 3px solid #8ddbf0; outline-offset: 1px; }
.cal__n { font-size: 12px; font-weight: 700; }
.cal__dots { display: flex; gap: 3px; min-height: 8px; }
.cal__day { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--subtle); font-size: 13px; }
.cal__dayhead { font-weight: 700; }
.cal__none { margin-top: 4px; color: var(--ink-3); font-size: 13px; }
.cal__items { margin-top: 6px; display: grid; gap: 4px; list-style: none; padding: 0; }
.cal__items li { display: flex; align-items: center; gap: 8px; }
.cal__note { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.cal--person { margin-top: 0; }
.cal--person .cal__d { min-height: 36px; }
@media (max-width: 600px) { .cal__d { min-height: 40px; } .cal__n { font-size: 11px; } }
