/* ===== Base / Typography ===== */

html {
  font-size: 16px;
}

body {
  font-family: var(--font-sans-jp);
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.75;
  letter-spacing: 0.02em;
}

/* 見出し:全てゴシック(明るく親しみやすい印象) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans-jp);
  color: var(--color-text-strong);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-h1);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

/* Lead テキスト */
.lead {
  font-size: var(--text-lead);
  color: var(--color-text);
  font-family: var(--font-sans-jp);
  line-height: 1.85;
}

/* 英字の専用クラス(ゴシック統一) */
.en {
  font-family: var(--font-sans-en);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.en-uppercase {
  font-family: var(--font-sans-en);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  font-weight: 600;
}

/* リンク */
a {
  color: var(--color-navy);
  transition: opacity var(--transition-base);
}

a:hover,
a:focus-visible {
  opacity: 0.65;
}

a:focus-visible {
  outline: 2px solid var(--color-turquoise);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Selection */
::selection {
  background-color: var(--color-navy);
  color: var(--color-white);
}

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

/* ページ読み込み時のフェードイン(計画書6-5 唯一の許可アニメーション) */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: fadeIn 0.4s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
