/* アプリのページ(LP・プライバシー・規約・サポートなど)に共通のヘッダとフッタの寸法。
   色・書体・背景は各アプリの CSS が決める。各アプリの CSS の後に読み込む。 */

/* ---- ヘッダ: 高さ 56px、左にアイコン 28px とアプリ名(トップへのリンク) ---- */
.topbar{position:sticky;top:0;z-index:50;box-sizing:border-box;height:56px;display:flex;align-items:center;gap:12px;padding-top:0;padding-bottom:0;font-size:14px}
.topbar-inner{flex:1;min-width:0;box-sizing:border-box;height:100%;padding-top:0;padding-bottom:0}
.topbar .brand{display:inline-flex;align-items:center;gap:10px;font-size:18px;line-height:1.2;white-space:nowrap;text-decoration:none}
.topbar .brand img{display:block;flex:none;width:28px;height:28px;border-radius:7px}

/* ---- フッタ: リンクの寸法をそろえる(sokone・stresscheck の .row 型は各アプリのまま) ---- */
footer:not(:has(.row)){box-sizing:border-box;padding-top:32px;padding-bottom:32px;font-size:13px}
footer:not(:has(.row))>a,footer:not(:has(.row)) nav a{display:inline-block;margin:0 8px;padding:4px 0;border-bottom:1px solid transparent;font-size:13px;line-height:1.6}
footer:not(:has(.row)) nav{display:flex;flex-wrap:wrap;justify-content:center;gap:0;margin-bottom:12px}
footer:not(:has(.row)) .copy{margin-top:12px;font-size:12px}
footer a[aria-current="page"]{font-weight:700}

/* ---- 右側のボタン(ダウンロード)は折り返さない ---- */
.topbar .topbar-cta{flex:none;white-space:nowrap;line-height:1.3}

/* ---- スマホ幅: 右側の言語切替やボタンと重ならないよう、名前を少し小さくする ---- */
@media (max-width:480px){
  .topbar{gap:8px}
  .topbar .brand{gap:8px;font-size:16px}
  .langs{font-size:13px}
  .langs a,.langs span{padding:6px 5px}
}
@media (max-width:360px){
  .topbar .brand{font-size:15px}
  .langs{font-size:12px}
  .langs a,.langs span{padding:6px 3px}
  .topbar .topbar-cta{padding:8px 10px;font-size:12px}
}

/* ---- ストアバッジ: App Store・Google Play の公式画像を、見える部分の高さ 48px にそろえる ----
   画像は /assets/badges/ の公式のものをそのまま使う(色の変更・反転・加工をしない)。
   バッジの周りの余白は高さの 1/4(12px)以上あける。 */
.store-badges{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
a.store-badge{display:inline-block;line-height:0;border-radius:8px;transition:transform .15s}
a.store-badge:hover{transform:translateY(-2px)}
a.store-badge:focus-visible{outline:2px solid currentColor;outline-offset:3px}
a.store-badge img{display:block;height:48px;width:auto}
/* 公開前のストア(例: App Store は準備中)。バッジと同じ高さの文字の板で、公式バッジは出さない */
.store-soon{display:inline-flex;align-items:center;box-sizing:border-box;height:48px;padding:0 18px;border-radius:8px;background:#6b6b76;color:#fff;font-size:14px;font-weight:700;line-height:1.2}
