@charset "utf-8";
/* ============================================================
   base.css — A案・B案で共通の土台（リセットとアクセシビリティのみ）
   見た目・レイアウトは theme.css 側が全部持つ。ここに色や装飾は書かない。
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 固定ヘッダー分のアンカーずれ防止 */
  scroll-padding-top: 5rem;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

body {
  min-height: 100vh;
  line-height: 1.8;
  font-feature-settings: "palt";
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img, svg, video { height: auto; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

table { border-collapse: collapse; width: 100%; }
caption, th, td { text-align: left; }

/* ---- アクセシビリティ用ユーティリティ ---- */

/* 画面に出さず読み上げには残す */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* キーボード操作でヘッダーを飛ばすリンク */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  padding: .6em 1.2em;
  background: #fff;
  color: #111;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* フォーカスリングは消さない。テーマ側で色だけ差し替える */
:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

/* 横に溢れうるもの（表・地図）は自前でスクロールさせ、body は横スクロールさせない。
   position:relative は必須。これが無いと中の .visually-hidden（position:absolute）の
   包含ブロックが html になり、スクロール枠の外へ抜け出してページ全体を
   横スクロールさせてしまう（スマホで実際に発生した）。 */
.scroll-x {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 「動きを減らす」設定の人向け */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 印刷時はナビ等を落とす */
@media print {
  .site-header, .site-footer, .skip-link, .nav-toggle, .gnav { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}
