/* 共通のログイン画面（施設の共有の端末・タブレット・スマホ）。ファーストケアの名前とロゴ。色は FC Console と同じ（はちみつ色）。大きな文字とボタン */
:root {
  --bg: #f4f5f7; --surface: #ffffff; --fg: #15181e; --muted: #667085; --line: #e4e7ec;
  --honey: #f2b705; --honey-soft: #fff5cc; --honey-text: #7a5a00; --ink: #1d2027; --ink-fg: #ffffff;
  --err: #b42318; --err-bg: #fdecea; --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 16px rgb(16 24 40 / 6%);
}
:root { color-scheme: light; }   /* ダークモードの端末でも白い画面にする（共有の端末で見た目をそろえる） */
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font: 18px/1.6 "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left));
  border-top: 6px solid var(--honey); }
main { width: 100%; max-width: 28rem; min-width: 0; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; padding: 4px 2px 8px; }
.brand img { width: 76px; height: auto; flex: none; }
.product { font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; line-height: 1.2; }
h1 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--muted); }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #000; }
label { font-weight: 700; overflow-wrap: anywhere; }
input { font: inherit; font-size: 1.4rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); width: 100%; letter-spacing: .1em; }
input:focus { outline: none; border-color: var(--honey); box-shadow: 0 0 0 4px color-mix(in srgb, var(--honey) 30%, transparent); }
button { font: inherit; font-weight: 700; min-height: 56px; padding: 14px; border: 0; border-radius: 12px; background: var(--ink); color: var(--ink-fg); cursor: pointer; }
#camera { background: var(--honey); color: #15181e; font-size: 1.1rem; }
button.sub { background: transparent; color: var(--fg); border: 2px solid var(--line); }
button:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
.err { background: var(--err-bg); color: var(--err); border-radius: 10px; padding: 12px 14px; font-weight: 700; }
.hint { color: var(--muted); font-size: .9rem; margin: 0; }
.who { font-size: 1.5rem; font-weight: 700; margin: 0; padding: 10px 14px; background: var(--honey-soft); color: var(--fg); border-left: 6px solid var(--honey); border-radius: 10px; }
.who:empty { display: none; }
[hidden] { display: none !important; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 1rem; box-shadow: var(--shadow); }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
button.linkish { background: none; border: 0; min-height: 0; padding: 4px 0; color: var(--muted); font-size: .9rem; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; align-self: center; }

/* はじめての方へ（動画）の入口：文字のリンクでなく、再生の印つきの面のボタン（11/18） */
a.guide-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--honey-soft); color: var(--fg); text-decoration: none; border: 1px solid color-mix(in srgb, var(--honey) 40%, transparent); }
a.guide-btn:hover { background: color-mix(in srgb, var(--honey) 25%, var(--honey-soft)); }
a.guide-btn .play { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--ink-fg); display: grid; place-items: center; font-size: 14px; padding-left: 3px; }
a.guide-btn > span:last-child { display: flex; flex-direction: column; font-weight: 700; line-height: 1.35; }
a.guide-btn small { font-weight: 400; font-size: .85rem; color: var(--muted); }

/* はじめての方へ：右上の隅に小さく（11/18。大きなボタンはやめた） */
header.brand { position: relative; }
a.guide-pill { margin-left: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--honey-soft); color: var(--fg); font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
a.guide-pill span { font-size: .7rem; }
a.guide-pill:hover { background: color-mix(in srgb, var(--honey) 30%, var(--honey-soft)); }
body[data-mode="id"] a.guide-pill { display: none; }

/* 「ファーストケア」を折らない。狭い画面では「はじめての方へ」を次の行の右に回す（11/18） */
header.brand { flex-wrap: wrap; row-gap: 6px; }
.brand .product { white-space: nowrap; }
@media (max-width: 420px) { a.guide-pill { order: 3; margin-left: auto; } }
