/* 全ページ共通のヘッダーとフッター。色は site.css / shindan.css の変数を使う。
   スマホの幅を基本に書き、広い画面は下の @media で整える。 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}
.site-header-inner,
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.logo {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.header-nav { display: flex; gap: 8px; }
/* 指で押しやすいよう、高さは40px以上にする。 */
.header-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 0;
  box-shadow: inset 0 0 0 1.5px var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-button.primary { background: var(--accent); color: var(--accent-fg); }
.header-button:focus-visible,
.logo:focus-visible,
.footer-nav a:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }

/* 質問ページの進み具合は、ヘッダーのすぐ下に貼り付ける。 */
.progress-head { top: 57px; }

.site-footer {
  margin-top: 48px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  margin: 0 0 16px;
}
.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--fg);
  text-decoration: none;
}
.footer-note { margin: 0 0 6px; }
.copyright { margin: 16px 0 0; }

@media (min-width: 760px) {
  .site-header-inner,
  .site-footer-inner { padding: 0 32px; }
  .site-header-inner { min-height: 64px; }
  .progress-head { top: 65px; }
  .header-button { padding: 0 18px; }
  .footer-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
}
