/* ==========================================================================
   Base — リセット・Fluid Typography・body基本スタイル
   ========================================================================== */

/* リセット */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Fluid Typography PC基準: デザイン幅 1440px */
html {
  font-size: calc(var(--vw, 100vw) / 144);
}

body {
  font-family: var(--font-family-base);
  color: var(--color-base);
  background: var(--color-bg);
  letter-spacing: var(--tracking-none);
  line-height: var(--leading-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

fieldset {
  border: none;
}

/* スクロールバー幅考慮のための非表示 */
html {
  scrollbar-gutter: stable;
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* フォーカスリング */
:focus-visible {
  outline: 2px solid var(--color-01);
  outline-offset: 2px;
}

/* テキスト選択色 — 桜 (Sakura) */
::selection {
  background: var(--color-05);
  color: var(--color-white);
}
::-moz-selection {
  background: var(--color-05);
  color: var(--color-white);
}

/* スキップナビゲーション */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 10000;
  padding: .5rem 1rem;
  background: var(--color-primary, #333);
  color: #fff;
}
.skip-to-content:focus {
  left: 1rem;
  top: 1rem;
}

/* スクリーンリーダー専用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
