/* 講師のプロフィール（案B の見た目）。動きは /shared/profile.js。色・書体は /b/style.css の :root を使う
   紙の白（--sheet）に、こげ茶の罫。角は紙と同じ3px、押して進むボタンだけ丸（--r-press）
   スマホ（〜767px）: 下から出るシート（上の角6px）／タブレット・PC: 画面中央（幅640px）。本文は15px（PCは16px） */

/* 押す所 */
.t-prof { display: inline-flex; align-items: center; min-height: 44px; margin: 6px 18px 0 0; font-size: 14px; font-weight: 400; color: var(--ink-2); text-decoration-color: var(--rule-2); }
.t-prof:hover { color: var(--ink); text-decoration-color: currentColor; }
.t-prof + .t-link { margin-top: 6px; }
.t-photo[data-profile] { cursor: pointer; }
button.c-teacher { appearance: none; -webkit-appearance: none; background: none; border: 0; margin: -6px 0; padding: 6px 4px 6px 0; min-height: 44px; font: inherit; letter-spacing: inherit; text-align: left; color: var(--ink-2); cursor: pointer; border-radius: var(--r-paper); }
.c-tname { text-decoration: underline; text-decoration-color: var(--rule-2); text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (hover: hover) { button.c-teacher:hover .c-tname { color: var(--ink); text-decoration-color: currentColor; } }
button.c-teacher:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ダイアログ */
html.pf-open { overflow: hidden; }
.pf { padding: 0; border: 0; margin: auto; width: min(640px, calc(100% - 48px)); max-width: none; max-height: min(86dvh, 820px); background: var(--sheet); color: var(--ink); border-radius: var(--r-board); box-shadow: var(--sh-paper); overflow: hidden; font-family: var(--f-jp); }
.pf::backdrop { background: rgba(59, 44, 40, .5); }
.pf-in { display: flex; flex-direction: column; max-height: min(86dvh, 820px); border-top: 3px solid var(--ink); }
.pf-bar { position: relative; flex: none; display: flex; justify-content: flex-end; align-items: center; height: 52px; padding: 0 6px; }
.pf-grip { display: none; }
.pf-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-paper); background: none; color: var(--ink-2); cursor: pointer; }
.pf-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pf-close:hover { background: var(--hover); color: var(--ink); }
.pf-close:focus-visible, .pf-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pf-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 32px 24px; }
.pf-head { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 20px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.pf-photo { width: 104px; height: 122px; padding: 4px; background: var(--sheet); border-radius: var(--r-paper); box-shadow: 0 0 0 1px var(--rule); object-fit: cover; object-position: 50% 20%; }
.pf-photo--ph { display: grid; place-items: center; font-family: var(--f-serif); font-weight: 600; font-size: 34px; color: var(--ink-3); background: var(--paper); }
.pf-label-en { display: none; }
.pf-label { font-weight: 700; font-size: 13px; line-height: 1.5; letter-spacing: .12em; color: var(--ink-3); }
.pf-name { margin-top: 4px; font-family: var(--f-serif); font-weight: 600; font-size: 26px; line-height: 1.35; letter-spacing: .08em; }
.pf-kana { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--ink-3); letter-spacing: .08em; }
.pf-area { display: inline-block; margin-top: 8px; padding: 1px 10px; border-radius: var(--r-paper); background: var(--paper-2); font-weight: 700; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.pf-sec { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.pf-sec:last-child { border-bottom: 0; padding-bottom: 4px; }
.pf-sec h3 { margin: 0 0 8px; font-family: var(--f-serif); font-weight: 600; font-size: 17px; line-height: 1.5; letter-spacing: .08em; }
.pf-sec p { min-width: 0; font-size: 16px; line-height: 1.9; letter-spacing: .04em; overflow-wrap: anywhere; }
.pf-sec p + p { margin-top: 6px; }
.pf-ul { margin: 2px 0 0; padding: 0; list-style: none; }
.pf-ul li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.8; }
.pf-ul li + li { margin-top: 4px; }
.pf-ul li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 7px; height: 7px; border-radius: 50%; background: var(--mark); }
.pf-quals { margin: 0; padding: 0; list-style: none; }
.pf-quals li { min-width: 0; max-width: 100%; overflow-wrap: anywhere; position: relative; padding: 6px 0 6px 18px; font-size: 15px; line-height: 1.6; border-bottom: 1px dashed var(--rule); }
.pf-quals li:last-child { border-bottom: 0; }
.pf-quals li::before { content: ""; position: absolute; left: 2px; top: calc(6px + .8em); width: 8px; height: 1px; background: var(--ink-3); }
.pf-foot { flex: none; padding: 12px 32px 16px; border-top: 1px solid var(--rule-2); background: var(--sheet); }
.pf-go { display: flex; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 52px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: var(--r-press); background: var(--sheet); color: var(--ink); font-family: var(--f-jp); font-weight: 700; font-size: 16px; letter-spacing: .06em; cursor: pointer; transition: background-color .12s var(--ease); }
.pf-go span { font-size: 14px; }
.pf-go:hover { background: var(--hover); }
.pf-none { text-align: center; font-size: 15px; color: var(--ink-3); padding: 8px 0; }
.pf[open] { animation: pf-in .22s var(--ease); }
.pf[open]::backdrop { animation: pf-fade .22s var(--ease); }
@keyframes pf-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pf-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 767px) {
  .pf { width: 100%; max-height: 90dvh; margin: auto 0 0; border-radius: var(--r-board) var(--r-board) 0 0; }
  .pf-in { max-height: 90dvh; }
  .pf-bar { justify-content: center; height: 52px; }
  .pf-grip { display: block; width: 40px; height: 4px; border-radius: 999px; background: var(--rule-2); }
  .pf-close { position: absolute; right: 6px; top: 4px; } /* キーボードで開いたときのフォーカス枠がシートの上の縁に重ならないよう、上に4px空ける */
  .pf-body { padding: 4px 20px 20px; }
  .pf-head { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
  .pf-photo { width: 84px; height: 100px; }
  .pf-name { font-size: 22px; }
  .pf-sec p, .pf-ul li { font-size: 15px; }
  .pf-foot { padding: 10px 20px calc(12px + env(safe-area-inset-bottom)); }
  .pf[open] { animation: pf-up .28s var(--ease); }
  @keyframes pf-up { from { transform: translateY(100%); } to { transform: none; } }
}
/* ×のフォーカス枠はボタンの内側に描く（シートの上の縁・角丸に枠が切られないように） */
.pf-close:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .pf[open], .pf[open]::backdrop { animation: none; } }
