@charset "UTF-8";

/* ==========================================================================
   リセット
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

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;
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

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

/* キーボード操作時のみフォーカスリングを出す */
:focus-visible {
  outline: 3px solid var(--color-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 視覚的に隠すがスクリーンリーダーには読ませる */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 語の途中で折り返させたくない箇所に付ける（例：離職防止／躍動） */
.u-nobr {
  white-space: nowrap;
}

/* 日本語を文節の切れ目（JSが入れる <wbr>）でだけ折り返す。長い英数字は枠内で折り返す */
.u-phrase {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 画面幅で改行位置を出し分ける（u-br-sp：SPだけ改行／u-br-pc：768px以上だけ改行） */
@media (min-width: 768px) {
  .u-br-sp { display: none; }
}

@media (max-width: 767px) {
  .u-br-pc { display: none; }
  .u-hide-sp { display: none; } /* SPだけ消す区切り文字など */
}

/* アニメーションを控える設定のユーザーには動きを止める */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
