@charset "UTF-8";
/* =========================================================================
   base.css — リセット & 要素デフォルト（モバイルファースト）
   ========================================================================= */

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

/* -------------------------------------------------------------------------
   スクロールバーを全ページで非表示にする
   （表示だけを消すもので、ホイール・キーボード・タッチのスクロールは従来どおり）
   ------------------------------------------------------------------------- */
* {
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* 旧 Edge / IE */
}

*::-webkit-scrollbar {        /* Chrome / Safari / Edge */
  width: 0;
  height: 0;
  display: none;
}

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--sp-4));

  /* スクロールアンカリングを切る。
     ブラウザは「表示中の要素が動かないように」読み込み中の高さ変化を
     スクロール位置で吸収するが、トップページはリロード直後に
     GSAP がピン留め用の余白を挿し込んで版面を組み直すため、
     これが誤作動して 20〜40px ほど下がった位置で開いてしまう。
     スクロール位置は Lenis と ScrollTrigger が管理しているので、
     ブラウザ側の補正は不要。 */
  overflow-anchor: none;
}

/* Lenis が慣性スクロールを担当している間は、CSS 側の smooth を止める
   （二重に効くとアンカー移動がぎこちなくなるため）。
   .lenis は Lenis が <html> に付与するクラス。 */
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

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

body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-base);
  font-feature-settings: "palt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
}

/* ドロワー展開中のスクロールロック */
body.is-locked { overflow: hidden; }

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

/* width/height 属性で CLS を防ぎつつ、高さは CSS 側に任せる。
   ここで img[width][height] のような詳細度の高いセレクタを使うと
   部品側の height:100% を打ち消してしまうため、要素セレクタに留める。 */
img,
video { height: auto; }

input,
button,
textarea,
select {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  overflow-wrap: break-word;
}

p, li, dd, dt, figcaption, blockquote { overflow-wrap: break-word; }

/* -------------------------------------------------------------------------
   日本語の折り返し
   body の word-break: normal / line-break: strict（禁則）を土台に、
   対応ブラウザでだけ次の 2 つを足す。どちらも未対応なら宣言ごと無視され、
   従来の折り返しに戻るだけ。
     word-break: auto-phrase … 文節の切れ目で折り返す
       （「山あいの雪深い土地で／す。」のような切れ方をしなくなる）
     text-wrap: pretty       … 最終行に 1 文字だけ残さないよう行を整える
   見出しにも同じ扱いをして、<br> のない箇所の切れ方をそろえる。
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
p, li, dd, dt, figcaption, blockquote, th, td, address, label, legend {
  word-break: auto-phrase;
  text-wrap: pretty;
}

ul, ol {
  padding-inline-start: 0;
  list-style: none;
}

a {
  color: var(--c-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color var(--dur-fast) var(--ease),
              opacity var(--dur-fast) var(--ease);
}

a:hover { color: var(--c-link-hover); }

/* キーボード操作時のみ明示的なフォーカスリング */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

:target { scroll-margin-top: calc(var(--header-height) + var(--sp-4)); }

hr {
  border: 0;
  border-top: var(--bw) solid var(--c-border);
  margin-block: var(--sp-8);
}

table { border-collapse: collapse; width: 100%; }

figure { margin: 0; }
blockquote { margin: 0; }
address { font-style: normal; }

::selection {
  background-color: var(--c-ink);
  color: var(--c-bg);
}

@media print {
  .l-header, .l-footer, .c-breadcrumb, .c-pagination, .c-drawer { display: none !important; }
  body { color: #000; background: #fff; }
}
