/* AI OFFICE ページ専用（共通部分は ../css/site.css） */
.office-intro { background: var(--cream); padding: 56px 0 28px; }
.office-intro h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.35; letter-spacing: -1.6px; margin: 0 0 14px; }
.office-intro h1 em { font-style: normal; color: var(--green); }
.office-intro .lead { margin: 0; }
.office-main { background: var(--cream); padding: 10px 0 70px; }
.office-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.office-ctrl { background: transparent; color: #fff; border: 1px solid #ffffff55; border-radius: 20px; padding: 4px 12px; font-size: 11px; cursor: pointer; }
.office-ctrl:hover { background: #ffffff1a; }

/* 社員一覧（タップしやすい操作手段・読み上げ用） */
.staff-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.staff-list > li { min-width: 0; }
.staff-btn { width: 100%; min-width: 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; cursor: pointer; color: var(--ink); transition: border-color .15s, transform .15s; min-height: 64px; }
.staff-btn:hover, .staff-btn[aria-pressed="true"] { border-color: var(--green); }
.staff-btn[aria-pressed="true"] { box-shadow: 0 8px 22px #0b5d5118; transform: translateY(-2px); }
.staff-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.staff-btn strong { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.staff-btn strong::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.staff-btn .st { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 詳細パネル */
.staff-panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; outline: none; }
.panel-hint { color: var(--muted); font-size: 13px; line-height: 1.9; margin: 0; }
.panel-top { display: flex; gap: 14px; align-items: center; }
.panel-portrait { width: 60px; height: 84px; image-rendering: pixelated; background: #e7f1eb; border-radius: 12px; padding: 4px 10px 0; flex-shrink: 0; box-sizing: content-box; }
.panel-role-sub { margin: 0; font-size: 11px; font-weight: 850; letter-spacing: 1.5px; color: var(--green); }
.staff-panel h2 { font-size: 22px; margin: 2px 0 6px; letter-spacing: -.5px; }
.panel-trait { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.panel-status { display: flex; align-items: center; gap: 8px; background: var(--cream); border-radius: 10px; padding: 9px 12px; font-size: 12px; margin: 16px 0 6px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.status-dot[data-state="break"] { background: #e3ba59; }
.status-dot[data-state="meeting"] { background: #6b93e5; }
.status-dot[data-state="done"] { background: #2aa772; }
.status-dot[data-state="offline"], .status-dot[data-state="idle"] { background: #9aa8ad; }
.sim-tag { margin-left: auto; font-size: 10px; font-weight: 700; color: #8a5a00; background: #fff4dc; border: 1px solid #f1d9a6; padding: 1px 7px; border-radius: 10px; white-space: nowrap; }
.staff-panel h3 { font-size: 13px; margin: 18px 0 6px; }
.staff-panel p { font-size: 13px; line-height: 1.8; margin: 0; }
.panel-can { margin: 0; padding-left: 1.2em; font-size: 13px; line-height: 1.9; }
.demo-box { margin-top: 20px; border: 1px dashed #c8d6d2; border-radius: 14px; padding: 16px; background: #fbfcfa; }
.demo-box-head { display: flex; align-items: center; gap: 8px; }
.demo-box-head h3 { margin: 0; }
.demo-request { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 12px 0 !important; }
.demo-request span:first-child { font-size: 10px; font-weight: 850; letter-spacing: 1px; color: var(--muted); }
.demo-play { width: 100%; padding: 11px 18px; font-size: 13px; }
.demo-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.demo-steps li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9aa8ad; }
.demo-steps li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cfd9d6; flex-shrink: 0; box-sizing: border-box; }
.demo-steps li.is-active { color: var(--ink); font-weight: 700; }
.demo-steps li.is-active::before { border-color: var(--green); border-top-color: transparent; animation: spin .8s linear infinite; }
.demo-steps li.is-done { color: var(--ink); }
.demo-steps li.is-done::before { background: var(--green); border-color: var(--green); }
.demo-output { margin-top: 12px; background: #eaf5ef; border: 1px solid #c8e4da; border-radius: 10px; padding: 12px; }
.demo-output-label { font-size: 11px !important; font-weight: 800; color: #066e61; margin-bottom: 4px !important; }
.demo-note { font-size: 11px !important; color: var(--muted); margin-top: 10px !important; }
.panel-cta { margin-top: 18px; }
.panel-cta .pill { width: 100%; }

.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }

@media (max-width: 1000px) {
  .office-layout { grid-template-columns: minmax(0, 1fr); }
  .staff-panel { position: static; max-height: none; }
}
@media (max-width: 850px) {
  .staff-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .office-intro { padding: 36px 0 20px; }
  .office-intro h1 { font-size: 28px; letter-spacing: -1px; }
  .staff-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-panel { padding: 18px; }
  .office-foot { align-items: center; }
}
.office-col { min-width: 0; }

/* 折りたたみ（できること・依頼デモ）。スマートフォンでは閉じた状態で表示する（page.js） */
.panel-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; border-radius: 8px; }
.panel-fold > summary::-webkit-details-marker { display: none; }
.panel-fold > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 6px; transition: transform .2s; flex-shrink: 0; }
.panel-fold[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.panel-fold > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.panel-fold > summary h3 { margin: 0; }
#fold-can { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
#fold-can > summary h3 { flex: 1; }
#fold-can[open] > summary { margin-bottom: 6px; }
.demo-box > summary .sim-tag { margin-left: auto; }
.demo-box[open] > summary { margin-bottom: 0; }

@media (max-width: 540px) {
  .panel-portrait { width: 40px; height: 56px; padding: 3px 8px 0; border-radius: 10px; }
  .staff-panel h2 { font-size: 19px; }
  .panel-trait { font-size: 11px; line-height: 1.6; }
  .panel-status { margin-top: 12px; }
  .staff-panel h3 { margin-top: 14px; }
  .demo-box { margin-top: 14px; padding: 13px 14px; }
  .panel-cta { margin-top: 14px; }
}
