/* ページ専用（student）。共通は app.css。11/17 1ページ1エージェントで作り直し
   GIGA端末・iPad 縦（820px前後）が主。見出し → 今やること → 中身 の順（E1〜E3）。 */

/* 使い方の質問は専用ページ（#/ask）に移したので、浮かぶチャットは出さない */
html[data-role="student"] .mchat { display: none; }

html[data-role="student"] .st-page { max-width: 720px; gap: 20px; }

/* 戻るリンク・上の小見出し */
.st-back { font-size: var(--fs-15); }
.st-back a { display: inline-flex; align-items: center; min-height: var(--ctl); }
.st-back a::before { content: "‹"; margin-right: 8px; font-size: var(--fs-20); line-height: 1; }
.st-kicker { margin-bottom: -12px; color: var(--brand-text); font-size: var(--fs-13); font-weight: 600; }

/* 会社の詳しいページ（F14） */
.st-co-head { align-items: center; flex-wrap: nowrap; }
.st-co-logo { flex: none; width: 56px; height: 56px; }
img.st-co-logo { object-fit: contain; background: var(--bg); border: 1px solid var(--line); }
.st-co-logo.logo-none { display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-26); }
.st-sec { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--sep); }
.st-sec-title { font-size: var(--fs-20); font-weight: 600; line-height: 1.4; color: var(--label); }
.st-prog-job { font-size: var(--fs-17); font-weight: 600; color: var(--label); }
.st-prog-work { font-size: var(--fs-15); color: var(--label); white-space: pre-line; }
.st-prog-a { display: flex; justify-content: flex-end; }

.st-kv { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.st-kv-row { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-15); }
.st-kv-row dt { color: var(--label2); font-weight: 600; }
.st-kv-row dd { min-width: 0; color: var(--label); overflow-wrap: anywhere; white-space: pre-line; }
.st-kv-row.is-main dd { font-size: var(--fs-17); font-weight: 600; }
.st-days { display: flex; flex-direction: column; gap: 4px; }

/* 地図（キー不要の埋め込み。従量APIは使わない） */
.st-map { margin-top: 8px; border: 1px solid var(--line); background: none; display: flex; align-items: center; gap: 12px; padding: 12px; flex-wrap: wrap; }
.st-map.is-open { display: block; padding: 0; }
.st-map iframe { display: block; width: 100%; height: 260px; border: 0; }
.st-map-link { display: inline-flex; align-items: center; min-height: var(--ctl); font-size: var(--fs-15); }

.st-from-t { font-size: var(--fs-15); color: var(--label); white-space: pre-line; }
/* 左の色線・淡い塗りはやめ、上下の罫線で区切る（11/18 Apple S） */
.st-voice { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--fs-15); }

/* 実習のあとに（L4） */
.st-after { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--sep); }
.st-after-head h2 { font-size: var(--fs-26); font-weight: 600; line-height: 1.3; color: var(--label); }
.st-after-head p { margin-top: 4px; color: var(--label2); font-size: var(--fs-13); }
.st-noname { padding: 12px 0; border-top: 2px solid var(--ink); color: var(--warn-text); font-size: var(--fs-15); font-weight: 600; }

/* 枠の箱・色の上線・淡い塗りはやめ、上に濃い罫線と余白で区切る（11/18 Apple S） */
.st-box { display: flex; flex-direction: column; gap: 16px; padding: 24px 0 0; background: none; border: 0; border-top: 2px solid var(--ink); }
.st-box-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-box-head h3 { font-size: var(--fs-20); font-weight: 600; line-height: 1.4; color: var(--label); }
.st-box-no { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-variant-numeric: tabular-nums; font-size: var(--fs-17); font-weight: 700; }
.st-box-d { color: var(--label2); font-size: var(--fs-15); }
.st-box-body { font-size: var(--fs-15); color: var(--label); white-space: pre-line; }
.st-box-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.st-box-foot .k-btn { min-width: 200px; }

.st-field { display: flex; flex-direction: column; gap: 8px; }
.st-field-label { font-size: var(--fs-15); font-weight: 600; color: var(--label); }
.st-field-hint { font-size: var(--fs-13); color: var(--label2); }
.st-field textarea, .st-ask-form textarea { width: 100%; min-height: 96px; }

/* 使い方の質問（L3） */
.st-faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.st-faq-h { padding: 8px 0; color: var(--label2); font-size: var(--fs-13); font-weight: 600; }
.st-faq-i { display: flex; align-items: center; width: 100%; min-height: var(--hit); padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--label); font: inherit; font-size: var(--fs-17); text-align: left; cursor: pointer; }
.st-faq-i::after { content: "›"; margin-left: auto; color: var(--label2); font-size: var(--fs-20); }
@media (hover: hover) { .st-faq-i:hover { background: var(--hover-bg); } }
.st-faq-i:active { background: var(--press-bg); }
.st-faq-i.is-on { font-weight: 600; }
.st-faq-i:disabled { color: var(--label2); cursor: default; }
.st-qa { display: flex; flex-direction: column; gap: 12px; }
.st-qa-i { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.st-qa-row { display: grid; grid-template-columns: 3em 1fr; gap: 8px; font-size: var(--fs-15); }
.st-qa-k { color: var(--label2); font-size: var(--fs-13); font-weight: 600; line-height: 1.8; }
.st-qa-more { padding-left: calc(3em + 8px); font-size: var(--fs-15); }
.st-ask-form { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 699px) {
  html[data-role="student"] .st-page { gap: 16px; }
  .st-kv-row { grid-template-columns: 1fr; gap: 4px; }
  .st-map iframe { height: 200px; }
  .st-box { padding: 16px 0 0; }
  .st-box-foot .k-btn { width: 100%; }
  .st-co-logo { width: 44px; height: 44px; }
}

/* 欄と欄の間をあけ、目安の文は自分の欄にくっつける */
.st-box > .st-field + .st-field { margin-top: 8px; }
/* 軽9：「1日目」と本文を2列に（間を空ける） */
.st-days > li { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 8px; align-items: baseline; }
.st-days > li > b { font-weight: 600; white-space: nowrap; }

.st-filters #st-reset { grid-column: 1 / -1; justify-self: start; }
.st-filters #st-reset[hidden] { display: none; }
