@charset "UTF-8";
/* ========== 基本設定 ========== */

@import url("https://fonts.googleapis.com/earlyaccess/notosansjp.css");

/* ---------- 1. 変数 ---------- */

:root {
  /* システム設定 */
  color-scheme: light dark;

  /* 色（デフォルト：ライトモード） */
  --clr-primary: #1a1a1a;
  --clr-accent: #2563eb;
  --clr-bg: #ffffff;
  --clr-text: #334155;

  /* フォントサイズ */
  --fs-h1: clamp(1.25rem, 2vw, 1.5rem);
  --fs-h2: clamp(1.125rem, 2vw, 1.25rem);
  --fs-h3: clamp(1rem, 2vw, 1.125rem);
  --fs-body: 0.875rem;

  /* フォントウェイト */
  --fw-normal: 400;
  --fw-bold: 700;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* 色（ダークモード） */
    --clr-primary: #ffffff;
    --clr-accent: #60a5fa;
    --clr-bg: #0f172a;
    --clr-text: #e2e8f0;
  }
}

/* ---------- 2. リセット＆ベース ---------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family:
  "Noto Sans JP","Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: var(--fs-body);
  font-weight: var(--fw-normal);
  line-height: 1.6;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 古いブラウザ対策 */
  min-height: 100svh;
}

main {
  flex: 1;
}

header, footer {
  flex-shrink: 0;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  vertical-align: middle;
}

svg {
  fill: currentColor;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- 3. 要素別設定 ---------- */
h1, h2, h3 {
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.1em;
  font-weight: var(--fw-bold);
  font-feature-settings: "palt" 1; /* 日本語対応 */
  font-kerning: normal;
  color: var(--clr-primary);
  overflow-wrap: break-word;
}
h1 {
  line-height: 1.2;
  font-size: var(--fs-h1);
}
h2 {
  line-height: 1.25;
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:not([class]) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (hover: hover) {
  a:hover {
    opacity: 0.7;
  }
}

p, ul, ol {
  margin: 0;
}

p {
  overflow-wrap: break-word;
  word-break: auto-phrase; /* 日本語対応 */
}

ul {
  list-style: none;
}

strong, b {
  font-weight: var(--fw-bold);
}