@charset "UTF-8";
/* ==========================================================================
   Base：destyle.css でリセットした後の要素の土台
   値はすべて variables.css の変数を使う
   ========================================================================== */

html {
  scroll-padding-top: var(--header-height); /* 固定ヘッダー分のアンカー位置補正 */
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background-color: var(--color-base);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 見出し：palt は見出しのみ（本文には付けない） */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-feature-settings: "palt";
}

/* リンク：色は親から継承（destyle）
   ホバー表現（案A）は各部品で定義し、必ず @media (hover: hover) 内に書く
   - ナビ・テキストリンク：文字色 → メインカラー
   - 「一覧を見る」紺：背景 サブ → メイン／白：背景サブ・文字白に反転
   - お問い合わせ（アクセント）：opacity var(--hover-opacity)
   - ニュース行：タイトル → メインカラー、「>」を var(--hover-shift) 右へ
   - 画像カード：画像 scale(var(--hover-scale)) ＋ var(--shadow) */
a {
  cursor: pointer;
  transition:
    color var(--duration) var(--easing),
    background-color var(--duration) var(--easing),
    opacity var(--duration) var(--easing);
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    transition-duration: 0.01ms !important;
  }
}

/* hidden 属性はクラスの display 指定より優先する */
[hidden] {
  display: none !important;
}

/* 画像 */
img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* フォーカス：キーボード操作時のみ表示 */
:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* スクリーンリーダー用テキスト（WordPress標準クラス） */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed !important;
  top: var(--space-1);
  left: var(--space-1);
  z-index: 100000;
  width: auto;
  height: auto;
  padding: var(--space-1) var(--space-2);
  margin: 0;
  clip: auto;
  background-color: var(--color-white);
  color: var(--color-text);
  font-size: var(--fs-caption);
  white-space: normal;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
/* PCのみ表示（768px〜）：改行位置の調整など */
@media (max-width: 767px) {
  .u-pc-only {
    display: none;
  }
}
