/* ==========================================================================
   全ページ共通の「枠」— ヘッダー・フッター・バッジ
   --------------------------------------------------------------------------
   2026-10-07 新設。それまでは同じ内容が9ページの <style> に別々にコピーされて
   いて、ヘッダーを1行直すのに9ファイル触る必要がありました。ここに集めたので
   以後は**このファイル1枚**を直せば全ページに反映されます。

   ■ 置き場所について
   /assets/ の下には置きません。あそこは1年間キャッシュする設定なので、
   直してもお客様のブラウザに届きません（届かせるにはファイル名の変更が必要）。
   サイト直下なら nginx が no-cache を返すため、デプロイすれば即座に反映されます。

   ■ 読み込む順番
   各ページの <style> より**前**に読み込みます。そのためページ側で同じ
   セレクタを書けば、そちらが勝ちます（ページ固有の調整は従来どおり可能）。
   ========================================================================== */

/* --- ヘッダーのロゴ -------------------------------------------------- */
.ak-logo-swapped { background: transparent !important; overflow: hidden;
  width: 3.75rem !important; height: 3.75rem !important; }
.ak-logo-swapped > * { display: none !important; }
.ak-logo-swapped .ak-logo-img { display: block !important; width: 100% !important;
  height: 100% !important; object-fit: contain; border-radius: 0.5rem; }

/* ブランド名の「キー」だけロゴと同じ青にする。
   ロゴ画像の約6割がこの青で、隣に並べると文字とマークが一つのかたまりに見える。
   金（#c9a227）は使わない。このサイトで金は「押せるもの」の合図
   （お見積りボタン・申し込みの帯）なので、ブランド名に使うとボタンが弱まる。 */
.ak-key { color: #0b4fd8; font-weight: 900; }

/* ヘッダーのロゴとブランド文字が、画面幅により2行に折れて崩れるのを防ぐ */
header a.flex.items-center.gap-2 { flex: 0 0 auto !important; }
header a.flex.items-center.gap-2 .w-10.h-10 { flex-shrink: 0 !important; }
header a.flex.items-center.gap-2 > div:last-child { white-space: nowrap !important;
  flex-shrink: 0 !important; }
header .font-bold.text-lg { white-space: nowrap !important; font-size: 20px !important; }
header .text-xs { font-size: 17px !important; }
header .text-xs.text-muted-foreground { white-space: nowrap !important; }

/* --- ヘッダー右側のリンク -------------------------------------------- */
.scs-badge { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.9rem;
  font-weight: 400; white-space: nowrap; text-decoration: none; background: none;
  border: none; padding: 0; border-radius: 0; }
.scs-badge, .scs-badge:link, .scs-badge:visited { color: #475569; font-weight: 400; }
.scs-badge:hover { text-decoration: underline; }
.plain-contact { color: #475569; font-weight: 400; font-size: 0.9rem; text-decoration: none;
  cursor: pointer; white-space: nowrap; }
.plain-contact:hover { text-decoration: underline; }
.scs-badge-footer-wrap { margin-top: 0.5rem; }
.scs-badge-footer-wrap .scs-badge { margin-left: -0.9rem; }
/* ヘッダー右側のリンクは本文より少し大きく。0.9rem だと小さすぎるというご指摘
   （2026-09）への対応。8ページに入っていたが faq.html だけ抜けていたので、
   ここに置いて全ページで揃える。 */
header nav .plain-contact, header nav .scs-badge { font-size: 1rem !important; }

/* --- フッター --------------------------------------------------------- */
/* 2026-10-07 作り直し。それまでは12本のリンクを中央寄せで1列に流していたため、
   画面幅によって折り返しがばらつき、最後の行だけ2本…という不揃いな見え方に
   なっていた。用途で4つに分けて見出しを付け、列で揃える形に変更。
   どこに何があるか一目で分かり、折り返しも崩れない。 */
footer { border-top: none !important; }

#akey-footer-links { display: block; padding: 3rem 1.25rem 2.25rem;
  font-family: 'Noto Sans JP', sans-serif; border-top: 1px solid #e8edf3; }

/* ロゴ＋製品名（中央） */
#akey-footer-links .fl-brandrow { display: flex; justify-content: center;
  margin: 0 0 2.4rem; }
#akey-footer-links .fl-brand { display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; }
#akey-footer-links .fl-logo { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
#akey-footer-links .fl-brand-text { display: inline-flex; flex-direction: column;
  line-height: 1.15; }
#akey-footer-links .fl-brand-name { font-size: 1.4rem; font-weight: 800; color: #0f172a;
  letter-spacing: 0.01em; font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; }
#akey-footer-links .fl-brand-sub { font-size: 16px; font-weight: 400; color: #64748b; }

/* リンクの4列 */
#akey-footer-links .fl-cols { display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem; max-width: 980px; margin: 0 auto; }
#akey-footer-links .fl-col h2 { font-size: 15px; font-weight: 800; color: #0f172a;
  margin: 0 0 0.9rem; letter-spacing: 0.04em;
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; }
#akey-footer-links .fl-col ul { list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.62rem; }
#akey-footer-links .fl-col li { margin: 0; }
#akey-footer-links a { color: #475569; font-size: 15.5px; font-weight: 400;
  letter-spacing: 0.01em; text-decoration: none; transition: color 0.15s; line-height: 1.6; }
#akey-footer-links a:hover { color: #015beb; text-decoration: underline;
  text-underline-offset: 3px; }
#akey-footer-links .fl-brand:hover { text-decoration: none; }

/* 製品の説明文と著作権表示 */
#akey-footer-links .fl-about { max-width: 860px; margin: 2.6rem auto 0;
  padding-top: 1.8rem; border-top: 1px solid #eef2f7; text-align: center;
  font-size: 14px; font-weight: 400; color: #64748b; line-height: 1.9; }
#akey-footer-links .fl-copy { margin: 1.4rem 0 0; text-align: center; font-size: 14px;
  font-weight: 400; color: #94a3b8; }
/* フッターの注意書き（いまは /2fa-scs の JIPDEC の一文だけが使っています） */
#akey-footer-links .fl-notice { max-width: 720px; margin: 2.4rem auto 0; text-align: center;
  font-size: 15px; line-height: 1.85; font-weight: 400; color: #64748b; }
#akey-footer-links .fl-notice + .fl-about { margin-top: 1.6rem; }

@media (max-width: 860px) {
  #akey-footer-links .fl-cols { grid-template-columns: repeat(2, 1fr); gap: 1.9rem 1.2rem;
    max-width: 460px; }
}
@media (max-width: 420px) {
  #akey-footer-links { padding: 2.4rem 1.1rem 2rem; }
  #akey-footer-links .fl-cols { gap: 1.7rem 1rem; }
  #akey-footer-links .fl-col h2 { font-size: 14px; margin-bottom: 0.7rem; }
  #akey-footer-links a { font-size: 15px; }
}

/* --- サイトマップのページ（/sitemap） -------------------------------- */
.sm-lead { margin: 0 0 2.2rem; font-size: 17px; color: #475569; line-height: 1.9; }
.sm-sec { margin: 0 0 2.6rem; }
.sm-sec h2 { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0 0 1rem;
  padding-left: 11px; border-left: 3px solid #c9a227; line-height: 1.5;
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; }
.sm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
  background: #e8edf3; border: 1px solid #e8edf3; border-radius: 6px; overflow: hidden; }
.sm-list li { margin: 0; }
.sm-list a { display: block; background: #fff; padding: 15px 18px; text-decoration: none;
  transition: background 0.12s; }
.sm-list a:hover { background: #f6f9fd; }
.sm-t { display: block; font-size: 16.5px; font-weight: 700; color: #0b4fd8; line-height: 1.6; }
.sm-list a:hover .sm-t { text-decoration: underline; text-underline-offset: 3px; }
.sm-d { display: block; margin-top: 3px; font-size: 14.5px; font-weight: 400; color: #64748b;
  line-height: 1.8; }
.sm-ext { font-size: 12px; color: #94a3b8; margin-left: 4px; font-weight: 400; }
/* sitemap.xml と llms.txt への案内は載せない（2026-10-07 arita様よりご指示）。
   機械向けのファイルを人が見るページから案内すると、検索結果にそれ自体が
   出てしまう。最後のセクションの下は何も置かないこと。 */
@media (max-width: 480px) {
  .sm-sec h2 { font-size: 18px; }
  .sm-list a { padding: 13px 14px; }
  .sm-t { font-size: 16px; }
}
