/* 講師のプロフィール（案A の見た目）。動きは /shared/profile.js。色・書体は /a/style.css の :root を使う
   スマホ（〜767px）: 下から出るシート（上の角丸20px）／タブレット・PC: 画面中央（角丸16px・幅640px）
   本文は15px（PCは16px）。名前は明朝、見出しは小さな金の罫＋太字 */

/* 押す所 */
.t-prof { display: inline-flex; align-items: center; min-height: 44px; margin-right: 18px; font-size: 14px; font-weight: 400; color: var(--ink-2); text-decoration-color: var(--line-input); text-align: left; }
.t-prof:hover { color: var(--wine); text-decoration-color: currentColor; }
/* 主の動き（この講師の日程を見る）はえんじ、プロフィールは控えめな茶。2つ並べたときに日程へ進む方が先に目に入る */
.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: 8px; }
.c-tname { text-decoration: underline; text-decoration-color: var(--line-input); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { button.c-teacher:hover .c-tname { color: var(--wine); text-decoration-color: currentColor; } }
button.c-teacher:focus-visible { outline: 2px solid var(--sage-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(--surface); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-float); overflow: hidden; font-family: var(--f-body); }
.pf::backdrop { background: rgba(58, 47, 42, .5); }
.pf-in { display: flex; flex-direction: column; max-height: min(86dvh, 820px); }
.pf-bar { position: relative; flex: none; display: flex; justify-content: flex-end; align-items: center; height: 52px; padding: 0 6px; border-bottom: 1px solid transparent; }
.pf-grip { display: none; }
.pf-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); cursor: pointer; }
.pf-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pf-close:hover { background: var(--cloud); color: var(--ink); }
.pf-close:focus-visible, .pf-go:focus-visible { outline: 2px solid var(--sage-ink); outline-offset: 2px; }
.pf-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 28px 24px; }
.pf-head { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center; }
.pf-photo { width: 112px; height: 112px; border-radius: 12px; object-fit: cover; object-position: 50% 22%; background: var(--photo-bg); }
.pf-photo--ph { display: grid; place-items: center; font-family: var(--f-serif); font-weight: 700; font-size: 36px; color: var(--ink-3); }
.pf-label { font-family: var(--f-latin); font-style: italic; font-weight: 500; font-size: 15px; line-height: 1.2; letter-spacing: .06em; color: var(--gold-ink); }
.pf-name { margin-top: 4px; font-family: var(--f-serif); font-weight: 700; font-size: 26px; line-height: 1.35; letter-spacing: .06em; }
.pf-label-ja { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-kana { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--ink-3); letter-spacing: .06em; }
.pf-area { display: inline-block; margin-top: 8px; padding: 2px 12px; border-radius: 999px; background: var(--cloud); font-family: var(--f-head); font-weight: 700; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.pf-sec { margin-top: 24px; }
.pf-sec h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-family: var(--f-head); font-weight: 700; font-size: 15px; line-height: 1.5; letter-spacing: .06em; color: var(--ink); }
.pf-sec h3::before { content: ""; flex: none; width: 18px; height: 1px; background: var(--gold-line); }
.pf-sec p { min-width: 0; font-size: 16px; line-height: 1.9; letter-spacing: .02em; 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: 3px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--wine-tint); box-shadow: inset 0 0 0 1px var(--wine); }
.pf-quals { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-quals li { min-width: 0; max-width: 100%; overflow-wrap: anywhere; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 15px; line-height: 1.6; }
.pf-foot { flex: none; padding: 12px 28px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.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(--wine); border-radius: 999px; background: #fff; color: var(--wine); font-family: var(--f-head); font-weight: 700; font-size: 16px; letter-spacing: .04em; cursor: pointer; transition: background-color .12s var(--ease); }
.pf-go span { font-size: 14px; }
.pf-go:hover { background: var(--wine-tint); }
.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) scale(.98); } 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: 20px 20px 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(--line); }
  .pf-close { position: absolute; right: 6px; top: 4px; } /* キーボードで開いたときのフォーカス枠がシートの上の縁に重ならないよう、上に4px空ける */
  .pf-body { padding: 4px 20px 20px; }
  .pf-head { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .pf-photo { width: 88px; height: 88px; }
  .pf-name { font-size: 22px; }
  .pf-sec { margin-top: 20px; }
  .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; } }
