@charset "UTF-8";
/* =========================================================================
   components.css — UI 部品（Figma 準拠）
   ========================================================================= */

/* -------------------------------------------------------------------------
   スキップリンク（a11y）
   ------------------------------------------------------------------------- */
.c-skip-link {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: var(--z-skiplink);
  transform: translateY(-200%);
  padding: var(--sp-3) var(--sp-5);
  background-color: var(--c-ink);
  color: var(--c-white);
  font-size: var(--fs-note);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease);
}

.c-skip-link:focus { transform: translateY(0); color: var(--c-white); }

/* -------------------------------------------------------------------------
   ボタン（Figma: 160×41 / 角丸30 / 左に 8px のドット）

   ホバーすると、ドットを中心にインクが円形に広がって塗りつぶす。
   文字とドットは、インクが通過するのに合わせて反転する。
   ------------------------------------------------------------------------- */
.c-btn {
  --btn-fg: var(--c-ink);        /* 罫・文字・ドットの色 */
  --btn-fill: var(--c-ink);      /* 広がるインクの色 */
  --btn-on-fill: var(--c-bg);    /* インクの上に乗る文字の色 */
  --btn-ease: var(--ease-btn);   /* トークン側で持つ（メニューボタンと共有） */

  position: relative;
  isolation: isolate;            /* インク（z-index:-1）をボタン内に閉じ込める */
  overflow: hidden;              /* 広がるインクをピルの形に切り抜く */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--btn-w);
  min-height: var(--btn-h);
  padding: var(--sp-2) 28px var(--sp-2) 39px;
  border: var(--bw) solid var(--btn-fg);
  border-radius: var(--btn-radius);
  background-color: transparent;
  color: var(--btn-fg);
  font-family: var(--font-mincho-b1);
  font-size: var(--fs-btn);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-base);
  line-height: var(--lh-tight);
  text-align: center;
  text-decoration: none;
  transition: color var(--dur-ink-fg) var(--btn-ease) 0.1s;
}

/* 広がるインク。ボタン幅に対する % なので、幅が変わっても必ず覆いきる。 */
.c-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-start: 23px;      /* ドットの中心（19px + 半径 4px） */
  inset-block-start: 50%;
  width: 250%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: var(--btn-fill);
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  will-change: transform;
  transition: transform var(--dur-ink) var(--btn-ease);
}

/* ドット。位置は変わらず、インクが通過したところで色が反転する。 */
.c-btn::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset-inline-start: 19px;
  inset-block-start: 50%;
  width: var(--btn-dot);
  height: var(--btn-dot);
  margin-block-start: calc(var(--btn-dot) / -2);
  border-radius: 50%;
  background-color: var(--btn-fg);
  transition: background-color var(--dur-ink-fg) var(--btn-ease) 0.15s;
}

.c-btn:hover,
.c-btn:focus-visible { color: var(--btn-on-fill); }

.c-btn:hover::before,
.c-btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }

.c-btn:hover::after,
.c-btn:focus-visible::after { background-color: var(--btn-on-fill); }

/* 暗い背景（ヒーロー・フッター）用 */
.c-btn--light {
  --btn-fg: var(--c-white);
  --btn-fill: var(--c-white);
  --btn-on-fill: var(--c-ink);
  border-width: var(--bw-strong);
}

.c-btn--block { width: 100%; }

/* 互換：旧クラス名。すべて同じピルボタンに統一 */
.c-btn--outline,
.c-btn--ghost,
.c-btn--accent { }

/* 送信ボタン。
   <input type="submit"> は疑似要素を持てないため、ドットとインクは使えない。
   代わりに背景をなめらかに反転させる（CodePen の --plain と同じ考え方）。 */
.c-submit,
.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 56px;
  padding: var(--sp-3) var(--sp-10);
  border: var(--bw) solid var(--c-ink);
  border-radius: var(--btn-radius);
  background-color: transparent;
  color: var(--c-ink);
  font-family: var(--font-mincho-b1);
  font-size: var(--fs-btn);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-base);
  line-height: var(--lh-tight);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.6s cubic-bezier(0.33, 1, 0.68, 1),
              color 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.c-submit:hover,
.c-submit:focus-visible,
.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus-visible {
  background-color: var(--c-ink);
  color: var(--c-bg);
}

.c-submit:disabled,
.wpcf7 input[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

/* -------------------------------------------------------------------------
   グローバルナビ（PC）
   ------------------------------------------------------------------------- */
.c-gnav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.c-gnav__link {
  display: inline-block;
  color: inherit;
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-base);
  line-height: var(--lh-tight);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease);
}

.c-gnav__link:hover { color: inherit; opacity: 0.65; }

.c-gnav .current-menu-item > .c-gnav__link,
.c-gnav__link[aria-current] { text-decoration: underline; text-underline-offset: 0.4em; }

/* 「お問い合わせ」はピルボタン。見た目もホバーの演出（ドットからインクが
   広がる）も .c-btn がそのまま持つので、ここで書くのは 2 つだけ。

   1. ナビのリンク用スタイルの打ち消し。
      .c-gnav__link は .c-btn より後に書かれていて詳細度が同じなので、
      display / transition / color がナビ側で上書きされてしまう。
   2. ヘッダーの地色に合わせた配色。

   以前はここにボタンを作り直していたが、インクの色に currentColor を
   使っていたため、文字色が反転するのに合わせてインクまで色が変わり、
   広がる途中で濁って見えていた。.c-btn は塗りの色を固定で持つ。 */
.c-gnav__link.c-btn {
  display: inline-flex;
  border-width: var(--bw-strong);   /* Figma: ヘッダーのボタンは 2px */
  color: var(--btn-fg);
  transition: color var(--dur-ink-fg) var(--btn-ease) 0.1s;
}

.c-gnav__link.c-btn:hover,
.c-gnav__link.c-btn:focus-visible {
  opacity: 1;                       /* .c-gnav__link:hover の 0.65 を戻す */
  color: var(--btn-on-fill);
}

/* 現在地でも下線は引かない（ボタンの形が崩れて見えるため） */
.c-gnav__link.c-btn[aria-current] { text-decoration: none; }

/* ヒーローに重なっている間は白い罫。インクも白なので文字は濃色に反転する。
   配色は .c-btn--light と同じで、状態に応じて当てている。 */
.l-header--overlay:not(.is-scrolled) .c-gnav__link.c-btn {
  --btn-fg: var(--c-white);
  --btn-fill: var(--c-white);
  --btn-on-fill: var(--c-ink);
}

/* -------------------------------------------------------------------------
   メニューボタン（SP）— 48px の円に 4px のドット 3 つ + MENU
   Figma: 閉 28:792 / 開 207:410（× + CLOSE）

   動きの文法は .c-btn と同じで、曲線と時間はトークン
   （--ease-btn / --dur-ink-fg）を共有する。
   ただし SP 専用のボタンなので、ホバーの演出（広がるインク）は持たない。
   動くのは開閉のときだけ ―― ドットが × へ、MENU が CLOSE へ変わる。
   ------------------------------------------------------------------------- */
.c-hamburger {
  position: relative;
  z-index: calc(var(--z-drawer) + 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: var(--bw) solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  transition: color var(--dur-ink-fg) var(--ease-btn) 0.1s;
}

/* ドットの箱は × になったときの大きさ（Figma 21×8）で先に取っておく。
   中身が伸びても箱は動かないので、円の中でぶれない。 */
.c-hamburger__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 20px;
  height: 8px;
}

.c-hamburger__dot {
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: currentColor;
  transition: transform var(--dur-ink-fg) var(--ease-btn),
              opacity var(--dur-fast) var(--ease);
}

/* MENU と CLOSE は同じ升目に重ねて置き、透明度だけ入れ替える。
   （箱の幅は広いほうで決まるので、切り替えても円の中身は動かない） */
.c-hamburger__label {
  display: grid;
  place-items: center;
  font-family: var(--font-mincho-b1);
  font-size: var(--fs-menu);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-base);
  line-height: var(--lh-tight);
}

.c-hamburger__label-text {
  grid-area: 1 / 1;
  transition: opacity var(--dur-ink-fg) var(--ease-btn);
}

.c-hamburger__label-text--close { opacity: 0; }

/* PC ではグローバルナビを出すのでメニューボタンは不要。
   layout.css の .l-header__toggle と同じ詳細度なので、
   後から読み込まれるこのファイル側で消しておく。 */
@media (min-width: 1024px) {
  .c-hamburger { display: none; }
}

/* 開いているとき。
   下に敷かれるドロワーが明るい地色なので、
   ヒーローに重なって白くなっていても濃色に戻す。 */
.l-header .c-hamburger[aria-expanded="true"] { color: var(--c-ink); }

/* ドット 3 つが、平たい × に変わる（Figma 21×8・傾き ±19.3°）。
   4px の円を横 5.25 倍・縦 0.25 倍に伸ばすと 21×1 の棒になり、
   丸だったぶん両端が丸く残る＝Figma の stroke-linecap: round と同じ形。
   外側の 2 つは箱の中央（±8px）へ寄せてから、逆向きに傾ける。 */
.c-hamburger[aria-expanded="true"] .c-hamburger__dot:nth-child(1) {
  transform: translateX(8px) rotate(19.29deg) scale(5.25, 0.25);
}

.c-hamburger[aria-expanded="true"] .c-hamburger__dot:nth-child(2) { opacity: 0; }

.c-hamburger[aria-expanded="true"] .c-hamburger__dot:nth-child(3) {
  transform: translateX(-8px) rotate(-19.29deg) scale(5.25, 0.25);
}

.c-hamburger[aria-expanded="true"] .c-hamburger__label-text--open { opacity: 0; }
.c-hamburger[aria-expanded="true"] .c-hamburger__label-text--close { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .c-hamburger,
  .c-hamburger__dot,
  .c-hamburger__label-text { transition: none; }
}

/* -------------------------------------------------------------------------
   ドロワー（SP）
   Figma: nav-mobile node 207:410（375×700）
   上からロゴ（y=34）・メニュー（y=120）・ショップボタン + SNS（y=400）、
   いちばん下に写真（高さ 230）。画面の高さは端末で変わるので、
   写真だけを下端に貼り付け、余りは上の段が受け持つ。
   ------------------------------------------------------------------------- */
.c-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  background-color: var(--c-bg);
  color: var(--c-ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  /* visibility は「開くときは即座に visible」「閉じるときはフェード後に hidden」。
     こうしないと開いた直後の focus() が visibility:hidden に無視される。 */
  transition: opacity var(--dur) var(--ease),
              visibility 0s linear var(--dur);
}

.c-drawer[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur) var(--ease),
              visibility 0s linear 0s;
}

.c-drawer__body {
  flex: 1 0 auto;              /* 余った高さはここが伸びて受ける */
  display: flex;
  flex-direction: column;
  padding-inline: var(--layout-gutter);
  padding-block-end: var(--sp-8);   /* 写真との間（Figma 30px） */
}

/* ロゴはヘッダーのロゴと同じ位置に来るように、ヘッダーと同じ高さの帯に置く。
   （開閉でロゴが動かない） */
.c-drawer__brand {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  margin: 0;
  line-height: 0;
}

.c-drawer__logo { width: clamp(180px, 42vw, 300px); height: auto; }

/* Figma y=120 ＝ ヘッダー 80 + 40。リンクの上下パディング（8px）ぶんを引く。 */
.c-drawer__nav { margin-block-start: calc(var(--sp-10) - var(--sp-2)); }

.c-drawer__list {
  display: flex;
  flex-direction: column;
  /* Figma の行間は 48px（文字 24 + 隙間 24）。
     指で押しやすいようにリンク側へ 8px ずつ持たせ、隙間を 8px に減らして
     同じ 48px に収めている。 */
  gap: var(--sp-2);
}

.c-drawer__link {
  display: inline-block;
  padding-block: var(--sp-2);
  color: var(--c-ink-strong);
  font-family: var(--font-mincho);
  font-size: var(--fs-fnav);        /* Figma 16 */
  letter-spacing: var(--ls-lead);   /* Figma 1.28px */
  line-height: var(--lh-lead);      /* Figma 1.5 */
  text-decoration: none;
  transition: opacity var(--dur) var(--ease);
}

.c-drawer__link:hover { color: var(--c-ink-strong); opacity: 0.6; }

.c-drawer__sub {
  margin-block-start: var(--sp-2);
  padding-inline-start: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.c-drawer__sub .c-drawer__link { font-size: var(--fs-body-sm); opacity: 0.85; }

/* Figma y=400。メニュー最後の行の下端（344）から 56px。 */
.c-drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-block-start: var(--sp-14);
}

/* SNS はフッター（暗い地）用に白丸で組んであるので、
   明るいドロワーでは丸と字を入れ替える。 */
.c-drawer .c-sns__link {
  background-color: var(--c-ink);
  color: var(--c-white);
}

.c-drawer .c-sns__link:hover { color: var(--c-white); }

.c-drawer__media {
  flex: 0 0 auto;
  height: 230px;                 /* Figma 230 */
}

.c-drawer__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Figma の切り取り位置（上を多めに落として器を見せる） */
  object-position: center 85%;
}

@media (min-width: 1024px) {
  .c-drawer { display: none; }
}

/* -------------------------------------------------------------------------
   背景に敷く装飾の欧文（Cinzel）— 共通の土台
   .c-section-head__en / .c-page-header__en（重ね組み）/ .p-shop__decor /
   .p-plum__decor が使う。大きさと位置はそれぞれの側で決める。

   欧文は line-height を 1 未満で組んでいるので、字の上下は箱の外へ出る。
   そのため、はみ出しを切る側（セクション）は「横だけ」を切ること。
   overflow: hidden で縦まで切ると、頭と足が欠ける。
     × overflow: hidden
     ○ overflow-x: clip; overflow-y: visible;

   スクロールに合わせて横へ流す前提の作り。動かすのは内側の
   .c-decor__text だけで、外側の箱（見出しの升目・出現アニメーションの
   transform）には触らない。JS（main.js の initDecorShift）は
   --decor-shift を書き換えるだけでよい。
   流すかどうかは js-decor クラスの有無で決まる。下層ページヘッダーの
   .c-page-header__en は和文見出しと重ねて読ませるので、あえて流さない
   （c-decor だけを付けて js-decor は付けていない）。
   トップページのセクション見出し（front/project・front/blog）も同じ扱い。
   横へ流さず、和文と同じ「ぼかし → ピントが合う」出現だけで見せる。
   ------------------------------------------------------------------------- */
/* 必ず背面に置く。
   .c-decor__text は translate を持つため、何もしないと
   「位置指定された要素」として通常フローの見出しより後（＝手前）に
   描かれてしまい、欧文が和文にかぶる。負の z-index で背面へ回す。
   重なりを外へ漏らさないよう、これを置く箱の側で isolation: isolate する。 */
.c-decor {
  position: relative;
  z-index: -1;
  white-space: nowrap;
  user-select: none;
}

.c-decor__text {
  display: inline-block;
  white-space: nowrap;
  /* 横へ流す量。既定は 0 なので、JS が無ければ今までと同じ位置に止まる。 */
  translate: var(--decor-shift, 0px);
}

@media (prefers-reduced-motion: reduce) {
  .c-decor__text { translate: none; }
}

/* -------------------------------------------------------------------------
   セクション見出し（背景の Cinzel + 和文見出し）
   ------------------------------------------------------------------------- */
.c-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  isolation: isolate;         /* 背面へ回した欧文をこの中に閉じ込める */
  margin-block-end: var(--sp-section-sm);
}

.c-section-head__en,
.c-section-head__ja { grid-column: 1; grid-row: 1; }

.c-section-head__en {
  align-self: start;
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-regular);
  line-height: 0.72;
  letter-spacing: var(--ls-display);
  color: var(--c-decor);
}

@media (min-width: 1024px) {
  .c-section-head__en { margin-inline-start: -30px; }
}

.c-section-head__ja {
  align-self: end;
  margin-inline-start: 8px;
  font-family: var(--font-mincho-b1);
  font-size: var(--fs-section);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--c-ink-strong);
}

.c-section-head__lead {
  grid-column: 1;
  grid-row: 2;
  margin-block-start: var(--sp-4);
  margin-inline-start: 8px;
  font-size: var(--fs-body-sm);
  color: var(--c-ink-muted);
}

.c-section-head--center { justify-items: center; text-align: center; }
.c-section-head--center .c-section-head__ja { margin-inline-start: 0; }

/* 下層ページの大きな見出し（Figma: 記事詳細の MORE / その他の投稿）。
   トップページより欧文が大きく、コンテナの左端に揃える。
   和文の内側への寄せ幅はページヘッダーと同じ。 */
.c-section-head--display .c-section-head__en {
  margin-inline-start: 0;
  font-size: var(--fs-display);
}

.c-section-head--display .c-section-head__ja {
  margin-inline-start: clamp(0.625rem, 2.723vw, 2.4375rem);
  font-size: var(--fs-lead);      /* 24 → 40 */
}

/* 出現アニメーション（ぼかし → ピントが合う）
   セクション見出し（.c-section-head）と下層ページヘッダー（.c-page-header）で
   同じ文法を使う。js-reveal / is-revealed の書き方はそのままだが、コンテナごと
   動かすと英字と和文が固まりで上下してしまうため、コンテナ自身の動きは打ち消し、
   背景の英字 → 和文 → リードの順に少しずつ遅らせて立ち上げる。
   見せ方はスライドではなく、ぼけた状態から輪郭が定まっていく「ピントが合う」
   動きだけに寄せる（バンドのテキスト切り替え＝main.js の TEXT_BLUR と同じ考え方）。
   （.js .js-reveal より詳細度が高いので、記述位置によらずこちらが勝つ） */
.js .c-section-head.js-reveal,
.js .c-page-header__inner.js-reveal { opacity: 1; filter: none; transform: none; }

.js .c-section-head.js-reveal .c-section-head__en,
.js .c-section-head.js-reveal .c-section-head__ja,
.js .c-section-head.js-reveal .c-section-head__lead,
.js .c-page-header__inner.js-reveal .c-page-header__en,
.js .c-page-header__inner.js-reveal .c-page-header__title,
.js .c-page-header__inner.js-reveal .c-page-header__lead {
  opacity: 0;
  /* 拡大は左端を軸に。中央から広げると左揃えの行頭が動いて、
     ピントではなく「滑り込み」に見えてしまう。 */
  transform-origin: 0 50%;
  will-change: opacity, filter, transform;
  transition: opacity var(--dur-slow) var(--ease),
              filter var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}

/* 装飾の英字は和文より先に。大きな字なのでぼかしを深めに取り、
   ごくわずかに広がった状態から輪郭が締まっていく。 */
.js .c-section-head.js-reveal .c-section-head__en,
.js .c-page-header__inner.js-reveal .c-page-header__en {
  filter: blur(18px);
  transform: scale(1.04);
}

.js .c-section-head--center.js-reveal .c-section-head__en,
.js .c-section-head--center.js-reveal .c-section-head__ja,
.js .c-section-head--center.js-reveal .c-section-head__lead { transform-origin: 50% 50%; }

/* 和文はぼかしを浅く、少し遅れて合焦する。 */
.js .c-section-head.js-reveal .c-section-head__ja,
.js .c-page-header__inner.js-reveal .c-page-header__title {
  filter: blur(10px);
  transform: scale(1.015);
  transition-delay: 0.14s;
}

/* リードは小さい字なので、拡大は付けずぼかしだけで最後に立ち上げる。 */
.js .c-section-head.js-reveal .c-section-head__lead,
.js .c-page-header__inner.js-reveal .c-page-header__lead {
  filter: blur(6px);
  transition-delay: 0.28s;
}

/* 出し終わったら合成レイヤーを手放す */
.js .c-section-head.js-reveal.is-revealed .c-section-head__en,
.js .c-section-head.js-reveal.is-revealed .c-section-head__ja,
.js .c-section-head.js-reveal.is-revealed .c-section-head__lead,
.js .c-page-header__inner.js-reveal.is-revealed .c-page-header__en,
.js .c-page-header__inner.js-reveal.is-revealed .c-page-header__title,
.js .c-page-header__inner.js-reveal.is-revealed .c-page-header__lead {
  opacity: 1;
  filter: blur(0);
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .js .c-section-head.js-reveal .c-section-head__en,
  .js .c-section-head.js-reveal .c-section-head__ja,
  .js .c-section-head.js-reveal .c-section-head__lead,
  .js .c-page-header__inner.js-reveal .c-page-header__en,
  .js .c-page-header__inner.js-reveal .c-page-header__title,
  .js .c-page-header__inner.js-reveal .c-page-header__lead {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* 互換：旧 .c-heading */
.c-heading { display: flex; flex-direction: column; gap: var(--sp-2); margin-block-end: var(--sp-10); }
.c-heading__en {
  font-family: var(--font-display);
  font-size: var(--fs-body-sm);
  letter-spacing: var(--ls-wide);
  color: var(--c-ink-muted);
  line-height: var(--lh-none);
}
.c-heading__ja { font-size: var(--fs-section); font-weight: var(--fw-regular); color: var(--c-ink-strong); }
.c-heading__lead { margin-block-start: var(--sp-2); color: var(--c-ink-muted); font-size: var(--fs-body-sm); }
.c-heading--center { align-items: center; text-align: center; }

/* -------------------------------------------------------------------------
   下層ページヘッダー
   ------------------------------------------------------------------------- */
.c-page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--sp-16) var(--sp-12);
  background-color: var(--c-bg-subtle);
}

@media (min-width: 768px) {
  .c-page-header { padding-block: var(--sp-20) var(--sp-16); }
}

.c-page-header--has-image { background-color: var(--c-ink); color: var(--c-white); }

.c-page-header__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-page-header--has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--veil-band-dark);
}

.c-page-header__en {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.62rem + 3.756vw, 5rem);
  line-height: 0.8;
  letter-spacing: var(--ls-display);
  color: var(--c-decor);
}

.c-page-header--has-image .c-page-header__en { color: rgba(255, 255, 255, 0.35); }

.c-page-header__title {
  margin-block-start: var(--sp-2);
  font-size: var(--fs-section);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-tight);
}

.c-page-header__lead {
  margin-block-start: var(--sp-4);
  max-width: 60ch;
  font-size: var(--fs-body-sm);
  color: var(--c-ink-muted);
}

.c-page-header--has-image .c-page-header__lead { color: rgba(255, 255, 255, 0.9); }

/* 背景に大きな欧文を敷き、その手前に和文見出しを重ねる形。
   トップページの .c-section-head と同じ組み方で、寸法だけ大きい。
   Figma: Blog PC 88:323 / SP 88:531 */
.c-page-header--overlay {
  overflow: visible;          /* 欧文がガターへはみ出すのを許す */
  isolation: isolate;         /* 背面へ回した欧文をこの中に閉じ込める */
  padding-block: var(--sp-10) var(--sp-16);
  background-color: transparent;
}

@media (min-width: 1024px) {
  .c-page-header--overlay { padding-block: var(--sp-10) var(--sp-20); }
}

.c-page-header--overlay .c-page-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.c-page-header--overlay .c-page-header__en,
.c-page-header--overlay .c-page-header__title { grid-column: 1; grid-row: 1; }

.c-page-header--overlay .c-page-header__en {
  align-self: start;
  font-size: var(--fs-display);
  line-height: 0.72;
}

.c-page-header--overlay .c-page-header__title {
  align-self: end;
  /* Figma: 欧文の左端から SP 10px / PC 39px 内側 */
  margin-block-start: 0;
  margin-inline-start: clamp(0.625rem, 2.723vw, 2.4375rem);
  font-size: var(--fs-page-title);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-base);
  line-height: var(--lh-tight);
}

.c-page-header--overlay .c-page-header__lead {
  grid-column: 1;
  grid-row: 2;
  margin-block-start: var(--sp-6);
  margin-inline-start: clamp(0.625rem, 2.723vw, 2.4375rem);
}

/* -------------------------------------------------------------------------
   パンくずリスト
   置き場所は footer.php の </main> 直前（＝本文の最後）。
   前のセクションから少し離し、フッターの手前で止める。
   ------------------------------------------------------------------------- */
.c-breadcrumb { padding-block: var(--sp-10) var(--sp-8); }

.c-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-size: var(--fs-note);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--c-ink-muted);
}

.c-breadcrumb__list::-webkit-scrollbar { display: none; }

.c-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  white-space: nowrap;
}

.c-breadcrumb__item + .c-breadcrumb__item::before {
  content: "／";
  color: var(--c-border-strong);
}

.c-breadcrumb__link { color: var(--c-ink-muted); text-decoration: none; }
.c-breadcrumb__link:hover { color: var(--c-ink); text-decoration: underline; }
.c-breadcrumb__item--current { color: var(--c-ink); }

/* -------------------------------------------------------------------------
   記事カード
   ------------------------------------------------------------------------- */
.c-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.c-card__thumb {
  position: relative;
  aspect-ratio: var(--card-ratio);
  overflow: hidden;
  background-color: var(--c-bg-sunken);
}

.c-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.c-card:hover .c-card__img { transform: scale(1.03); }

.c-card__body { display: flex; flex-direction: column; gap: 14px; }

.c-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-note);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--c-ink-muted);
}

.c-card__title {
  font-family: var(--font-mincho-b1);
  font-size: var(--fs-card-title);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--c-ink);
}

@media (min-width: 768px) {
  .c-card__title { line-height: var(--lh-body); }
}

.c-card__title a { color: inherit; text-decoration: none; }

/* カード全体をクリック領域にする */
.c-card__title a::after { content: ""; position: absolute; inset: 0; }

.c-card:hover .c-card__title a { color: var(--c-ink-muted); }

.c-card__excerpt {
  font-size: var(--fs-body-sm);
  color: var(--c-ink-muted);
  line-height: var(--lh-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-card__noimage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12%;
  background-color: var(--c-bg-sunken);
}

.c-card__noimage-img { width: 100%; height: auto; }

/* 横並びカード */
.c-card--row { flex-direction: row; gap: var(--sp-4); align-items: flex-start; }
.c-card--row .c-card__thumb { flex: 0 0 40%; max-width: 160px; }

/* -------------------------------------------------------------------------
   日付・ターム
   ------------------------------------------------------------------------- */
.c-date {
  font-family: var(--font-mincho-b1);
  font-size: var(--fs-note);
  letter-spacing: var(--ls-tight);
  color: var(--c-ink-muted);
}

.c-term {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-inline: var(--sp-3);
  border: var(--bw) solid var(--c-border-strong);
  border-radius: var(--radius-full);
  color: var(--c-ink);
  font-size: var(--fs-note);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-none);
  text-decoration: none;
  white-space: nowrap;
}

a.c-term:hover { background-color: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }

.c-term--accent { border-style: dashed; }

.c-term-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }

/* -------------------------------------------------------------------------
   カテゴリー絞り込み
   ------------------------------------------------------------------------- */
.c-filter {
  margin-block-end: var(--sp-10);
  margin-inline: calc(var(--layout-gutter) * -1);
  padding-inline: var(--layout-gutter);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.c-filter::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .c-filter { margin-inline: 0; padding-inline: 0; overflow-x: visible; }
}

.c-filter__list { display: flex; gap: var(--sp-2); width: max-content; min-width: 100%; }

@media (min-width: 768px) {
  .c-filter__list { flex-wrap: wrap; width: auto; }
}

.c-filter__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 40px;
  padding-inline: var(--sp-5);
  border: var(--bw) solid var(--c-border-strong);
  border-radius: var(--radius-full);
  color: var(--c-ink);
  font-size: var(--fs-body-sm);
  letter-spacing: var(--ls-base);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.6s cubic-bezier(0.33, 1, 0.68, 1),
              border-color 0.6s cubic-bezier(0.33, 1, 0.68, 1),
              color 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.c-filter__link:hover,
.c-filter__link:focus-visible {
  background-color: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-bg);
}

.c-filter__link.is-current {
  background-color: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-bg);
}

.c-filter__count { font-size: var(--fs-2xs); opacity: 0.7; }

/* -------------------------------------------------------------------------
   件数 / 空状態
   ------------------------------------------------------------------------- */
.c-result-count { margin-block-end: var(--sp-8); color: var(--c-ink-muted); font-size: var(--fs-body-sm); }
.c-result-count strong { color: var(--c-ink); font-weight: var(--fw-medium); }

.c-empty { display: flex; flex-direction: column; gap: var(--sp-8); }
.c-empty__search { max-width: 480px; margin-inline: auto; width: 100%; }

.c-notice {
  padding: var(--sp-8);
  border: var(--bw) solid var(--c-border);
  color: var(--c-ink-muted);
  font-size: var(--fs-body-sm);
  text-align: center;
}

/* -------------------------------------------------------------------------
   ページネーション
   ------------------------------------------------------------------------- */
.c-pagination { margin-block-start: var(--sp-16); }

.c-pagination__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;                     /* Figma */
}

/* 数字と「…」は罫を持たない素の文字。SP 32px / PC 40px の正方形。 */
.c-pagination__list .page-numbers {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  color: var(--c-ink-strong);
  font-family: var(--font-mincho-b1);
  font-size: 1.125rem;          /* 18 */
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-base);
  line-height: var(--lh-tight);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease);
}

@media (min-width: 1024px) {
  .c-pagination__list .page-numbers {
    min-width: 40px;
    height: 40px;
    font-size: 1.25rem;         /* 20 */
  }
}

.c-pagination__list a.page-numbers:hover,
.c-pagination__list a.page-numbers:focus-visible { opacity: 0.55; }

/* 現在のページ。デザインに指定は無いが、どこに居るか分からないと困るので
   グローバルナビの現在地と同じ下線で示す。 */
.c-pagination__list .page-numbers.current {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

/* 「前へ」「次へ」はピルボタン。Figma: 罫 1px / 角丸 30 / 上下 10・左右 20 */
.c-pagination__list .page-numbers.prev,
.c-pagination__list .page-numbers.next {
  min-width: 0;
  height: auto;
  padding: 10px 20px;
  border: var(--bw) solid var(--c-line);
  border-radius: var(--btn-radius);
  color: var(--c-ink);
  font-size: var(--fs-btn);
  white-space: nowrap;
}

/* SP はデザインどおりの左右 20px だと 375px 幅で 1 行に収まらず
   「次へ」だけが折り返す。罫の 1px と字間のぶんが Figma の実測を上回るため、
   ここだけ詰めて 1 行を保つ。 */
@media (max-width: 1023px) {
  .c-pagination__list .page-numbers.prev,
  .c-pagination__list .page-numbers.next { padding-inline: 16px; }
}

.c-pagination__list .page-numbers.prev:hover,
.c-pagination__list .page-numbers.next:hover,
.c-pagination__list .page-numbers.prev:focus-visible,
.c-pagination__list .page-numbers.next:focus-visible {
  opacity: 1;
  background-color: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-bg);
}

/* 前後記事 */
.c-post-nav {
  display: grid;
  gap: var(--sp-4);
  margin-block-start: var(--sp-16);
  padding-block-start: var(--sp-10);
  border-block-start: var(--bw) solid var(--c-border);
}

@media (min-width: 768px) {
  .c-post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8); }
}

.c-post-nav__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  border: var(--bw) solid var(--c-border);
  color: var(--c-ink);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease);
}

.c-post-nav__item:hover { border-color: var(--c-ink); color: var(--c-ink); }
.c-post-nav__item--next { text-align: right; }

.c-post-nav__label {
  font-family: var(--font-display);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-wide);
  color: var(--c-ink-muted);
  line-height: var(--lh-none);
}

.c-post-nav__title {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   フォーム
   ------------------------------------------------------------------------- */
.c-form { display: flex; flex-direction: column; gap: var(--sp-8); }
.c-form__row { display: flex; flex-direction: column; gap: var(--sp-2); }

.c-form__label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
}

.c-form__required,
.c-form__optional {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding-inline: var(--sp-2);
  font-size: var(--fs-2xs);
  line-height: var(--lh-none);
}

.c-form__required { background-color: var(--c-error); color: var(--c-white); }
.c-form__optional { background-color: var(--c-bg-sunken); color: var(--c-ink-muted); }
.c-form__help { font-size: var(--fs-note); color: var(--c-ink-muted); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  border: var(--bw) solid var(--c-border-strong);
  border-radius: 0;
  background-color: var(--c-white);
  font-family: var(--font-mincho-b1);
  font-size: 1rem; /* iOS のズーム防止 */
  line-height: 1.6;
  transition: border-color var(--dur-fast) var(--ease);
}

textarea { min-height: 12rem; resize: vertical; }

input:focus,
select:focus,
textarea:focus { border-color: var(--c-ink); outline: none; }

input[aria-invalid="true"],
.wpcf7-not-valid { border-color: var(--c-error); }

::placeholder { color: var(--c-ink-muted); opacity: 1; }

.wpcf7 form .wpcf7-response-output {
  margin: var(--sp-6) 0 0;
  padding: var(--sp-4) var(--sp-5);
  border-width: var(--bw);
  font-size: var(--fs-body-sm);
}

.wpcf7-not-valid-tip { margin-block-start: var(--sp-2); color: var(--c-error); font-size: var(--fs-note); }
.wpcf7-spinner { margin-inline-start: var(--sp-3); }


/* 検索フォーム */
.c-searchform { display: flex; gap: var(--sp-2); }
.c-searchform__input { flex: 1 1 auto; }

.c-searchform__submit {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  border: var(--bw) solid var(--c-ink);
  background-color: var(--c-ink);
  color: var(--c-bg);
  transition: opacity var(--dur-fast) var(--ease);
}

.c-searchform__submit:hover { opacity: 0.8; }

/* -------------------------------------------------------------------------
   目次
   ------------------------------------------------------------------------- */
.c-toc {
  margin-block: var(--sp-10);
  padding: var(--sp-6);
  border: var(--bw) solid var(--c-border);
  background-color: var(--c-bg-subtle);
}

.c-toc__title { margin-block-end: var(--sp-3); font-size: var(--fs-body-sm); font-weight: var(--fw-medium); }
.c-toc__list { display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-body-sm); list-style: none; counter-reset: kmkm-toc; }
.c-toc__list .c-toc__list { margin-block-start: var(--sp-2); padding-inline-start: var(--sp-5); }
.c-toc__item { display: flex; gap: var(--sp-2); }
.c-toc__item::before {
  counter-increment: kmkm-toc;
  content: counter(kmkm-toc) ".";
  flex-shrink: 0;
  color: var(--c-ink-muted);
  font-family: var(--font-display);
}
.c-toc__item--h3 { padding-inline-start: var(--sp-4); }
.c-toc__item--h3::before { content: "—"; }
.c-toc__link { color: var(--c-ink); text-decoration: none; }
.c-toc__link:hover { color: var(--c-ink-muted); text-decoration: underline; }

/* -------------------------------------------------------------------------
   SNS / シェア
   ------------------------------------------------------------------------- */
.c-sns { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }

.c-sns__link {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--c-white);
  color: var(--c-ink);
  transition: opacity var(--dur-fast) var(--ease);
}

.c-sns__link:hover { opacity: 0.7; color: var(--c-ink); }
.c-sns__icon { width: 14px; height: 14px; }

.c-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-block-start: var(--sp-12);
}

.c-share__label { font-size: var(--fs-note); color: var(--c-ink-muted); }

.c-share__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: var(--bw) solid var(--c-border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--c-ink);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.c-share__link:hover { background-color: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }
.c-share__icon { width: 18px; height: 18px; }
.js-copy-url.is-copied { background-color: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }

/* -------------------------------------------------------------------------
   フッターナビ
   ------------------------------------------------------------------------- */
/* 行送りは li の行ボックスが決めるので、リンク側ではなくリストに置く
   （Figma: 18px × 1.4、項目間 20px）。 */
.c-fnav__list { display: flex; flex-direction: column; gap: var(--sp-5); line-height: var(--lh-tight); }

.c-fnav__link {
  font-family: var(--font-mincho-b1);
  font-size: var(--fs-fnav);
  letter-spacing: var(--ls-base);
  line-height: var(--lh-tight);
}

.c-fnav__sub { margin-block-start: var(--sp-3); padding-inline-start: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.c-fnav__sub .c-fnav__link { font-size: var(--fs-note); opacity: 0.85; }

.c-unav__list { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); }
.c-unav__link { font-size: var(--fs-note); letter-spacing: var(--ls-base); }

.l-footer__copyright { font-size: var(--fs-note); letter-spacing: var(--ls-base); }

/* -------------------------------------------------------------------------
   ウィジェット
   ------------------------------------------------------------------------- */
.c-widget + .c-widget { margin-block-start: var(--sp-12); }

.c-widget__title {
  margin-block-end: var(--sp-5);
  padding-block-end: var(--sp-2);
  border-block-end: var(--bw) solid var(--c-border);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
}

.c-widget ul { display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-body-sm); }
.c-widget a { color: var(--c-ink); text-decoration: none; }
.c-widget a:hover { color: var(--c-ink-muted); text-decoration: underline; }

.c-widget__list li + li { border-block-start: var(--bw) solid var(--c-border); }

.c-widget__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 44px;
  padding-block: var(--sp-2);
}

.c-widget__count { flex-shrink: 0; font-size: var(--fs-2xs); color: var(--c-ink-muted); }

.c-widget__posts { display: flex; flex-direction: column; gap: var(--sp-5); }

.c-widget__post-link { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--sp-3); align-items: start; }

.c-widget__post-thumb {
  display: block;
  aspect-ratio: var(--card-ratio);
  overflow: hidden;
  background-color: var(--c-bg-sunken);
}

.c-widget__post-img { width: 100%; height: 100%; object-fit: cover; }
.c-widget__post-body { display: flex; flex-direction: column; gap: var(--sp-1); }

.c-widget__post-title {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   スクロール出現アニメーション
   ------------------------------------------------------------------------- */
/* JavaScript が有効なときだけ隠す。
   スクリプトが読み込めなかった場合でも内容が必ず表示されるようにするため、
   <html class="js"> を前提にする。 */
/* 見出しと同じ「ぼけた状態から輪郭が定まる」出し方に揃える。
   上下のスライドは使わない（同じ画面に複数出たときに、
   ページ全体がずり上がって見えるため）。 */
.js .js-reveal {
  opacity: 0;
  filter: blur(6px);
  transition: opacity var(--dur-slow) var(--ease),
              filter var(--dur-slow) var(--ease);
}

.js .js-reveal.is-revealed { opacity: 1; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  .js .js-reveal,
  .js .js-reveal.is-revealed { opacity: 1; filter: none; transition: none; }
}

/* -------------------------------------------------------------------------
   写真の出現アニメーション（墨がにじむように広がるマスク）
   写真を包む箱に .c-img-reveal と .js-reveal を付けると、画面に入ったときに
   にじんだ縁のマスクが広がりながら写真が現れる。中の写真はわずかに寄って
   ぼけた状態から、等倍・ピントの合った状態へ戻る。
   合図は他と同じ is-revealed（main.js の IntersectionObserver）なので、
   JavaScript 側に手を入れる必要はない。
   汎用の .js .js-reveal より詳細度が高いので、上下移動はここで打ち消す。
   ------------------------------------------------------------------------- */
.js .c-img-reveal.js-reveal {
  opacity: 0;
  filter: none;               /* ぼかしは中の img が持つ（汎用 .js-reveal の打ち消し） */
  overflow: hidden;           /* 寄った写真がはみ出さないように */
  -webkit-mask-image: var(--mask-wash);
          mask-image: var(--mask-wash);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  /* 始点：箱の上、画面の外側に、縦へ引き伸ばしたマスクを逃がしておく。
     ここから下へ降りてきて写真を覆っていく。 */
  -webkit-mask-size: 100% 300%;
          mask-size: 100% 300%;
  -webkit-mask-position: 60% 140%;
          mask-position: 60% 140%;
  transition: opacity 1.5s linear,
              -webkit-mask-size var(--dur-wash) var(--ease-wash),
              -webkit-mask-position var(--dur-wash) var(--ease-wash),
              mask-size var(--dur-wash) var(--ease-wash),
              mask-position var(--dur-wash) var(--ease-wash);
}

.js .c-img-reveal.js-reveal img {
  display: block;
  transform: scale(1.1);
  filter: blur(3px);
  transition: transform var(--dur-wash-img) var(--ease-wash),
              filter var(--dur-wash-img) linear;
}

/* 終点：マスクを大きく広げて箱を覆いきる */
.js .c-img-reveal.js-reveal.is-revealed {
  opacity: 1;
  -webkit-mask-size: 300% 200%;
          mask-size: 300% 200%;
  -webkit-mask-position: 0% 15%;
          mask-position: 0% 15%;
}

.js .c-img-reveal.js-reveal.is-revealed img {
  transform: none;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .c-img-reveal.js-reveal,
  .js .c-img-reveal.js-reveal.is-revealed {
    opacity: 1;
    -webkit-mask-image: none;
            mask-image: none;
    transition: none;
  }

  .js .c-img-reveal.js-reveal img,
  .js .c-img-reveal.js-reveal.is-revealed img {
    transform: none;
    filter: none;
    transition: none;
  }
}

/* -------------------------------------------------------------------------
   写真のパララックス
   写真の枠ごと、スクロール位置を少しずらして流す。
   周りの文字より遅れて動くので、写真だけ奥にあるように見える。

   動かすのは translate（個別プロパティ）で、位置は JS が --parallax に
   px で渡す。transform ではないので、出現アニメーションが使う
   transform とはぶつからない（適用順は translate → scale → transform）。
   レイアウトそのものは動かないので、周りの組みは崩れない。

   対象の指定は main.js の initParallax。
     .c-img-reveal       … サイト共通の写真枠。ここが主役
     .js-parallax        … 上記以外で個別に効かせたいとき
     data-parallax="off" … 効かせたくないとき（見出し直下の全幅帯など、
                           上下がぴったり詰まっていて動かせない場所）
     data-parallax="0.06"… ずらす量を変えたいとき（画面の高さに対する割合）
   ------------------------------------------------------------------------- */
.js .is-parallax {
  translate: 0 var(--parallax, 0px);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .js .is-parallax {
    translate: none;
    will-change: auto;
  }
}

/* 横スクロールできる表 */
.c-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: var(--sp-8); }
.c-table-scroll:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
