/* 上のヘッダー（サイト名とメニュー）と、きほんの印。site.css が読み込むほか、見た目が別の故障探しの画面（trainer.html）もこのファイルだけを読む
   色と字体の名前（--ink・--f-display など）は、読む側のページで決めておく */
.site-head{border-bottom:1px solid var(--line);background:var(--surface)}
.site-head .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;padding-top:10px;padding-bottom:10px}
.brand{font-family:var(--f-display);font-weight:700;font-size:19px;color:var(--ink);text-decoration:none;letter-spacing:.04em}
.brand small{display:block;font-size:12px;font-weight:500;color:var(--muted);letter-spacing:.02em}
/* ヘッダーの「設備ジム」の左に、案内役のせつびロボの顔（2026-10-24 T46）。全ページ共通なので、ここで絵を付ける */
.brand{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center}
.brand::before{content:"";grid-row:1 / span 2;width:40px;height:40px;background:url("mascot/robo-face.webp") center / contain no-repeat}
.nav{display:flex;flex-wrap:wrap;gap:4px 14px;margin-left:auto;font-size:14px}
.nav a{color:var(--ink);text-decoration:none;padding:2px 0;border-bottom:2px solid transparent}
.nav a:hover,.nav a[aria-current="page"]{border-bottom-color:var(--live)}
@media (max-width:560px){.nav{margin-left:0;width:100%;gap:4px 11px;font-size:13px}}   /* 2026-10-24 メニューに「事故事例」を足したので、スマホ（幅360px以上）で1行に収まるよう少し詰める */

/* 明るい・暗いの切り替えボタン（2026-10-27。assets/site-theme.js がメニューの右端に足す）。押せる範囲は高さ36px以上 */
.theme-btn{display:inline-flex;align-items:center;gap:5px;font:inherit;font-size:13px;color:var(--muted);background:none;border:1px solid var(--line);border-radius:999px;padding:2px 11px;min-height:32px;cursor:pointer}
.site-head .wrap{position:relative}
@media (max-width:560px){.theme-btn{position:absolute;top:12px;right:16px;min-height:36px}}   /* スマホ：メニューの下に1行増やさず、ロゴの行の右端に置く */
@media (max-width:430px){.theme-btn{width:36px;padding:0;justify-content:center}.theme-btn .tl{display:none}}   /* 幅が狭いときは丸い印だけ（名前は aria-label と title で伝える） */
.theme-btn:hover{border-color:var(--muted);color:var(--ink)}
.theme-btn:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.tm{display:inline-block;width:12px;height:12px;border-radius:50%;border:1.5px solid currentColor;flex:none}
.tm-light{background:currentColor}
.tm-dark{background:linear-gradient(90deg,transparent 50%,currentColor 50%)}   /* 右半分だけ塗る＝暗い */
.tm-auto{background:linear-gradient(90deg,currentColor 50%,transparent 50%)}   /* 左半分だけ塗る＝端末まかせ */

/* きほんの印（初心者マークの形を簡単にしたもの）。<i class="wakaba" aria-hidden="true"></i> */
.wakaba{display:inline-block;width:.8em;height:.96em;vertical-align:-.12em;margin-right:.3em;flex:none;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M10 5 L0 0 V15 L10 24 Z' fill='%23F2C200'/%3E%3Cpath d='M10 5 L20 0 V15 L10 24 Z' fill='%231E9447'/%3E%3C/svg%3E")}

/* 分野のアイコン（2026-10-26 T59）。トップ・一覧・各ページの分類で同じ形を使う。<i class="fi fi-water" aria-hidden="true"></i>
   water＝給排水・衛生（給水・排水・衛生設備も）／air＝空調／power＝電気設備・きほんの電気／panel＝電気・制御盤。色は文字の色（currentColor） */
.fi{display:inline-block;width:1.15em;height:1.15em;vertical-align:-.2em;margin-right:.3em;flex:none;background:currentColor;-webkit-mask:no-repeat center/contain var(--fi);mask:no-repeat center/contain var(--fi)}
.fi-water{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c3.5 4.4 6 7.8 6 11a6 6 0 0 1-12 0c0-3.2 2.5-6.6 6-11z'/%3E%3Cpath d='M9.5 15a2.5 2.5 0 0 0 2.5 2.5'/%3E%3C/svg%3E")}   /* 給排水・衛生 */
.fi-air{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M4.2 7.5l15.6 9M4.2 16.5l15.6-9'/%3E%3Cpath d='M10 5l2 2 2-2M10 19l2-2 2 2'/%3E%3C/svg%3E")}   /* 空調 */
.fi-power{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2.5L5 13.5h6l-1 8 8-11h-6l1-8z'/%3E%3C/svg%3E")}   /* 電気設備・電気 */
.fi-panel{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2.5' width='14' height='19' rx='1.5'/%3E%3Ccircle cx='9' cy='7' r='1.3'/%3E%3Ccircle cx='12' cy='7' r='1.3'/%3E%3Ccircle cx='15' cy='7' r='1.3'/%3E%3Cpath d='M8 12h8M8 15.5h8'/%3E%3C/svg%3E")}   /* 電気・制御盤 */
/* スマホで指で押しやすく（2026-10-29 T68）。押せる範囲は高さ44px以上 */
@media (max-width:560px){
  .nav a{display:inline-flex;align-items:center;min-height:44px;padding:0}
  .theme-btn{top:8px;min-height:44px}
}
@media (max-width:430px){.theme-btn{width:44px}}
