/* ===========================================================
   components.css — 使い回す部品
   =========================================================== */

/* --- ボタン ------------------------------------------------ */

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 0.9em 1.8em;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.c-btn:hover {
  transform: translateY(-1px);
}

.c-btn:active {
  transform: translateY(0);
}

.c-btn--primary {
  background-color: var(--c-accent);
  color: #fff;
}

.c-btn--primary:hover {
  background-color: var(--c-accent-hover);
}

.c-btn--outline {
  border-color: var(--c-line-strong);
  color: var(--c-ink);
}

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

.c-btn--ghost {
  color: var(--c-ink);
  padding-inline: 0;
}

.c-btn--lg {
  padding: 1.1em 2.4em;
  font-size: var(--fs-body);
}

.c-btn__arrow {
  width: 1em;
  height: 1em;
  flex: none;
  transition: transform var(--dur-fast) var(--ease);
}

.c-btn:hover .c-btn__arrow {
  transform: translateX(3px);
}

/* テキストリンク型のCTA */
.c-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--ff-en);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  color: var(--c-accent);
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: gap var(--dur-fast) var(--ease);
}

.c-arrow-link:hover {
  gap: var(--sp-md);
}

/* --- タグ / バッジ ----------------------------------------- */

.c-tag {
  display: inline-block;
  padding: 0.25em 0.9em;
  border-radius: var(--r-pill);
  background-color: var(--c-accent-soft);
  color: var(--c-accent);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* --- カード（サービスなど） -------------------------------- */

.c-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  padding: var(--sp-xl);
  background-color: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  height: 100%;
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

a.c-card:hover {
  border-color: var(--c-ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.c-card__index {
  font-family: var(--ff-en);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  color: var(--c-accent);
}

.c-card__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}

.c-card__text {
  font-size: var(--fs-sm);
  color: var(--c-ink-mute);
  line-height: 1.85;
  flex: 1;
}

.c-card__foot {
  margin-top: auto;
  padding-top: var(--sp-xs);
}

/* --- 人物プロフィール（代表など） ---------------------------- */

/* 写真と経歴を1つのブロックとして扱う。
   768px以上で「写真 | 本文」の横並び、それ未満は縦積み。 */
.c-profile {
  display: grid;
  gap: var(--sp-xl);
}

@media (min-width: 768px) {
  .c-profile {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: clamp(var(--sp-2xl), 5vw, 4rem);
    align-items: center;
  }
}

/* 代表・顧問のように複数並べたときの間隔 */
.c-profile + .c-profile {
  margin-top: var(--sp-3xl);
}

.c-profile__photo {
  width: 100%;
  /* 縦積みのときに写真だけ巨大にならないよう上限を決める */
  max-width: 22rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-lg);
  background-color: var(--c-bg-sunken);
}

.c-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-profile__body {
  max-width: var(--w-prose);
}

.c-profile__name {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-heading);
}

/* 経歴。罫線は使わず、行間の余白だけで区切る。 */
.c-profile__career {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

.c-profile__career li {
  font-size: var(--fs-sm);
  color: var(--c-ink-mute);
}

/* --- お知らせカード ---------------------------------------- */

.c-news {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  height: 100%;
}

.c-news__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md);
  background-color: var(--c-bg-sunken);
}

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

.c-news:hover .c-news__thumb img {
  transform: scale(1.04);
}

.c-news__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.c-news__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  transition: color var(--dur-fast) var(--ease);
}

.c-news:hover .c-news__title {
  color: var(--c-accent);
}

.c-news__excerpt {
  font-size: var(--fs-sm);
  color: var(--c-ink-mute);
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 一覧を横並びリストで見せるバリエーション（トップページ用）。
   構成要素（画像/日付/カテゴリ/タイトル/説明文）は .c-feed-card と揃えてある
   （サムネの寸法・角丸・グリッド段組みも同じ）が、marumado のスワイプは無いので
   状態を持つのは hover だけ。線区切りの作りは .c-feed-list と同じ
   （このリスト自身が border-top、各行が border-bottom を持つ）。 */
.c-news-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: start;
  gap: var(--sp-lg);
  padding-block: var(--sp-lg);
  border-bottom: 1px solid var(--c-line);
}

.c-news-row:first-child {
  border-top: 1px solid var(--c-line);
}

@media (min-width: 640px) {
  .c-news-row {
    grid-template-columns: 9rem minmax(0, 1fr);
  }
}

@media (min-width: 768px) {
  .c-news-row {
    grid-template-columns: 9rem minmax(0, 1fr) auto;
  }
}

.c-news-row__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md);
  background-color: var(--c-bg-sunken);
}

.c-news-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-news-row__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  min-width: 0;
}

.c-news-row__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.c-news-row:hover .c-news-row__title {
  color: var(--c-accent);
}

.c-news-row__title {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  transition: color var(--dur-fast) var(--ease);
}

.c-news-row__excerpt {
  font-size: var(--fs-sm);
  color: var(--c-ink-mute);
  line-height: 1.8;
  /* 説明は1行まで。はみ出した分は末尾が「…」になる */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-news-row__arrow {
  display: none;
}

@media (min-width: 768px) {
  .c-news-row__arrow {
    display: block;
    align-self: center;
    width: 16px;
    height: 16px;
    color: var(--c-ink-faint);
    transition: transform var(--dur-fast) var(--ease),
      color var(--dur-fast) var(--ease);
  }

  .c-news-row:hover .c-news-row__arrow {
    transform: translateX(4px);
    color: var(--c-accent);
  }
}

/* --- 定義リスト（会社概要テーブル） ------------------------ */

.c-deflist {
  border-top: 1px solid var(--c-line);
}

.c-deflist__row {
  display: grid;
  gap: var(--sp-2xs);
  padding-block: var(--sp-lg);
  border-bottom: 1px solid var(--c-line);
}

@media (min-width: 640px) {
  .c-deflist__row {
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: var(--sp-xl);
  }
}

.c-deflist__key {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-ink-mute);
}

.c-deflist__value {
  font-size: var(--fs-body);
  line-height: 1.8;
}

/* --- ステップ（How to Play など） -------------------------- */

.c-steps {
  counter-reset: step;
  display: grid;
  gap: var(--sp-lg);
}

@media (min-width: 768px) {
  .c-steps--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .c-steps--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.c-step {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding-top: var(--sp-lg);
  border-top: 2px solid var(--c-ink);
}

.c-step::before {
  content: "0" counter(step);
  font-family: var(--ff-en);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  color: var(--c-accent);
}

.c-step__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}

.c-step__text {
  font-size: var(--fs-sm);
  color: var(--c-ink-mute);
  line-height: 1.85;
}

/* --- 特徴（大きな番号付きリスト） -------------------------- */

.c-feature {
  display: grid;
  gap: var(--sp-md);
  padding-block: var(--sp-xl);
  border-bottom: 1px solid var(--c-line);
}

@media (min-width: 768px) {
  .c-feature {
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: var(--sp-2xl);
    align-items: start;
  }
}

.c-feature:first-child {
  border-top: 1px solid var(--c-line);
}

.c-feature__num {
  font-family: var(--ff-en);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--c-ink-faint);
  line-height: 1;
}

.c-feature__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  margin-bottom: var(--sp-sm);
}

.c-feature__text {
  color: var(--c-ink-mute);
  max-width: var(--w-prose);
}

/* --- SNS -------------------------------------------------- */

.c-social {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.c-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  opacity: 0.7;
  transition: opacity var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.c-social__link:hover {
  opacity: 1;
  background-color: currentColor;
}

.c-social__link:hover svg {
  color: var(--c-bg-dark);
}

.c-social__link svg {
  width: 17px;
  height: 17px;
}

/* --- フォーム ---------------------------------------------- */

.c-form {
  display: grid;
  gap: var(--sp-lg);
}

@media (min-width: 640px) {
  .c-form__grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-lg);
  }
}

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

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

.c-field__required {
  font-size: var(--fs-xs);
  color: var(--c-accent-art);
  font-weight: var(--fw-regular);
}

.c-field__input,
.c-field__textarea {
  width: 100%;
  padding: 0.85em 1em;
  background-color: var(--c-bg);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  font-size: var(--fs-body);
  line-height: 1.6;
  transition: border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.c-field__input:focus,
.c-field__textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.c-field__textarea {
  resize: vertical;
  min-height: 10rem;
}

.c-field__note {
  font-size: var(--fs-xs);
  color: var(--c-ink-faint);
}

/* --- パンくず ---------------------------------------------- */

.c-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-xs);
  font-size: var(--fs-xs);
  color: var(--c-ink-faint);
}

.c-breadcrumb a:hover {
  color: var(--c-ink);
}

.c-breadcrumb__sep {
  opacity: 0.5;
}

/* --- ページヘッダー（下層共通） ---------------------------- */

.c-pagehead {
  padding-top: calc(var(--h-header) + var(--sp-2xl));
  padding-bottom: var(--sp-2xl);
  background-color: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-line);
}

/* --- ページ別のヘッダー背景 ---------------------------------
   ページの front matter に `pagehead: <名前>` を書いたページだけ
   絵柄が出る（layouts/page.njk が data-pagehead 属性として出力する）。
   書いていないページは無地のまま。
   種類を増やすときは、下と同じ形のブロックを1つ足すだけでよい。 */

.c-pagehead[data-pagehead] {
  position: relative;
  overflow: hidden;
}

/* 絵柄の共通の下地。右側に置いて、左へ向かって透明に溶かす。
   純粋な装飾なので疑似要素で置く（DOM にも読み上げにも出さない）。
   見出しやリード文は .c-pagehead__inner 側で前面に出している。

   狭い画面ではテキストが幅いっぱいに折り返して絵柄と重なるので、
   まず「薄く・右寄り」を既定にして、広い画面で少しだけ強める。
   画像そのものは、下のページ別ブロックが指定する。 */
.c-pagehead[data-pagehead]::after {
  content: "";
  position: absolute;
  /* 固定ヘッダーは半透明（白88%＋blur）なので、上端を 0 にすると
     ヘッダー越しに絵柄が透けて事故に見える。ヘッダーの真下から始める。 */
  inset-block: var(--h-header) 0;
  /* ページ間で見え方を揃えるため、どの絵柄も
     「ヘッダーの高さと同じ辺の正方形を右端に寄せる」形に統一する。
     幅は aspect-ratio が高さから決めるので width は指定しない。
     マスクが箱＝絵にそのまま掛かるので、左端のフェードも素直に効く。 */
  inset-inline: auto 0;
  width: auto;
  aspect-ratio: 1 / 1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.16;
  /* 左端＝完全に透明、右へ向かって元の濃さへ */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 70%);
  mask-image: linear-gradient(to right, transparent 0%, #000 70%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .c-pagehead[data-pagehead]::after {
    opacity: 0.32;
  }
}

@media (min-width: 1024px) {
  .c-pagehead[data-pagehead]::after {
    inset-block: var(--h-header-lg) 0;
  }
}

/* GraphDB × AI解析: デジタル空間（ノードと繋がり） */
.c-pagehead[data-pagehead="graphdb"]::after {
  background-image: url("../img/pagehead-bg.jpg");
}

/* marumado: プロダクトのロゴマークを傾けた透かしとして使う。
   写真ではなく図形なので cover ではなく contain。
   淡いパステルなので、他より濃度を上げないと形が読めない。 */
.c-pagehead[data-pagehead="marumado"]::after {
  background-image: url("../img/marumado.png");
  background-size: contain;
  opacity: 0.3;
  transform: rotate(-10deg) scale(1.1);
  /* 図形なので写真ほど長く引っぱらず、左端だけ軽く溶かす */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 25%);
  mask-image: linear-gradient(to right, transparent 0%, #000 25%);
}

@media (min-width: 768px) {
  .c-pagehead[data-pagehead="marumado"]::after {
    opacity: 0.55;
  }
}

@media (min-width: 1024px) {
  .c-pagehead {
    padding-top: calc(var(--h-header-lg) + var(--sp-3xl));
    padding-bottom: var(--sp-3xl);
  }
}

.c-pagehead__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.c-pagehead__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}

/* ページヘッダー直後のセクションは、上の余白が二重にならないよう詰める */
.c-pagehead + .l-section {
  padding-top: var(--sp-section-sm);
}

.c-pagehead__en {
  font-family: var(--ff-en);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-accent);
}

/* --- CTA 帯 ------------------------------------------------ */

.c-cta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  align-items: flex-start;
  padding: var(--sp-2xl);
  border-radius: var(--r-lg);
  background-color: var(--c-bg-navy);
  color: var(--c-ink-inverse);
}

@media (min-width: 768px) {
  .c-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2xl);
    padding: var(--sp-3xl);
  }
}

.c-cta__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  margin-bottom: var(--sp-xs);
}

.c-cta__text {
  font-size: var(--fs-sm);
  color: var(--c-ink-inverse-mute);
}

.c-cta .c-btn--outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.c-cta .c-btn--outline:hover {
  background-color: #fff;
  color: var(--c-bg-dark);
  border-color: #fff;
}

/* --- ページネーション -------------------------------------- */

.c-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  margin-top: var(--sp-3xl);
}

.c-pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: var(--sp-sm);
  border-radius: var(--r-md);
  font-family: var(--ff-en);
  font-size: var(--fs-sm);
  border: 1px solid var(--c-line);
  transition: background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.c-pagination__item:hover {
  border-color: var(--c-ink);
}

.c-pagination__item[aria-current="page"] {
  background-color: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-bg);
}

/* --- 記事前後ナビ ------------------------------------------ */

.c-postnav {
  display: grid;
  gap: var(--sp-md);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--c-line);
}

@media (min-width: 640px) {
  .c-postnav {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-xl);
  }
}

.c-postnav__link {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2xs);
}

.c-postnav__link--next {
  text-align: right;
}

.c-postnav__dir {
  font-family: var(--ff-en);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: var(--c-ink-faint);
}

.c-postnav__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: color var(--dur-fast) var(--ease);
}

.c-postnav__link:hover .c-postnav__title {
  color: var(--c-accent);
}

/* ===========================================================
   フィード（お知らせ/note/SNS/導入事例をまとめたスレッド）
   =========================================================== */

.c-feed-list {
  display: flex;
  flex-direction: column;
  /* 先頭の区切り線はリスト自身が持つ（.c-deflist と同じ作り）。
     タブ絞り込みで先頭のカードが hidden になっても崩れない。 */
  border-top: 1px solid var(--c-line);
}

/* カード1件の外枠。reveal の translateY を受け持ち、中のカードに
   スワイプ用 translateX を明け渡す（理由は feed-card.njk のコメント）。
   アクション表示層の位置決めの基準も兼ねる。

   ドラッグ中の状態はすべてこの要素に載る。news-feed.js が置くのは
   --swipe-x（移動量）/ data-swipe（向き）/ .is-dragging の3つで、
   カードもラベルもそれを見て動く。--swipe-x はカスタムプロパティなので
   子孫に継承される＝カードとラベルが同じ1つの値を共有できる。 */
.c-feed-item {
  /* marumado の色面のうち「文字を置く幅」。PC でカーソルを載せたときに
     色面が出てくる量でもあるので、この1つの値を両方が見ている。 */
  --marumado-peek: 132px;
  /* 色面の位置。既定ではカードと一緒に動く（＝スワイプ中はカードの裏から覗く）が、
     PC のホバーではこの値だけを動かして、カードは止めたまま色面を出す。 */
  --marumado-x: var(--swipe-x, 0px);
  position: relative;
  /* カードっぽい箱ではなく、トップページの .c-news-row と同じ「線区切り」。
     スワイプで隠れているアクション表示は、この要素の overflow: hidden で
     見えない範囲にクリップしている。 */
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}

/* カードの裏側に敷くアクション表示。カードが動いた分だけ端から覗く。 */
.c-feed-item__actions {
  position: absolute;
  inset: 0;
  /* カードより前面に出す。ホバーのときは色面がカードの右側に重なるため
     （カードは不透明なので、重ねないと後ろに隠れてしまう）。 */
  z-index: var(--z-base);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  pointer-events: none;
}

/* ラベルはカードの動く辺にぴったり貼り付けて一緒に動かす。
   こうすると語の「先頭」から順に現れる。端に固定してしまうと、
   しきい値付近の浅いスワイプでは末尾しか見えず「…do →」と読めてしまう。 */
.c-feed-item__action {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  white-space: nowrap;
  opacity: 0;
  transform: translate(var(--swipe-x, 0px), -50%);
  transition: opacity var(--dur-fast) var(--ease),
    transform var(--dur) var(--ease);
}

/* 左スワイプ時に右端から出てくる marumado 側。
   文字だけだと、スマホでは指に隠れて読めない。行の高さいっぱいの色面にして、
   わずかに覗いただけでも「何か出てきた」と分かるようにしている。

   右方向は画面幅ぶん padding を足して伸ばしてある。カードをどれだけ深く
   動かしても色面が途切れず、はみ出した分は .c-feed-item の
   overflow: hidden が切り落とす。 */
.c-feed-item__action--marumado {
  left: 100%;
  top: 0;
  bottom: 0;
  /* 文字は --marumado-peek の幅の中央に置く。padding は面を伸ばすためだけに
     使うので、幅の計算に含めない content-box にしている。 */
  box-sizing: content-box;
  width: var(--marumado-peek);
  justify-content: center;
  padding-right: 100vw;
  background-color: var(--c-accent);
  color: var(--c-ink-inverse);
  /* 色面はカードの外側（左端が 100% の位置）にあり、動かすまでは
     overflow: hidden に隠れている。だから常に不透明でよい。 */
  opacity: 1;
  transform: translateX(var(--marumado-x));
}

/* 右スワイプ時に左端から出てくる側。開く先は同じ marumado なので、
   見た目も右側と同じにする（向きが違うだけで、意味は同じ操作）。
   こちらは左へ向かって面を伸ばすので padding の向きが逆になる。 */
.c-feed-item__action--marumado-start {
  right: 100%;
  top: 0;
  bottom: 0;
  box-sizing: content-box;
  width: var(--marumado-peek);
  justify-content: center;
  padding-left: 100vw;
  background-color: var(--c-accent);
  color: var(--c-ink-inverse);
  opacity: 1;
  transform: translateX(var(--swipe-x, 0px));
}

/* 色面が「ひょこっと」出て戻る動き。
   出したままにせず戻すのは、記事の文字に長く重ねないため。
   出す量（--marumado-peek）はカード側の1つの値を見ている。 */
@keyframes arttra-marumado-peek {
  0% {
    transform: translateX(0);
  }
  30%,
  60% {
    transform: translateX(calc(var(--marumado-peek) * -1));
  }
  100% {
    transform: translateX(0);
  }
}

/* PC: カーソルを載せた瞬間に1回だけ出て戻る。
   スワイプできることを、説明文ではなく動きで伝えるため。
   カード自体は動かさない（動かすとサムネイルが画面の外へ出てしまう）。
   ドラッグ中（.is-dragging）は、指の動きに合わせる本来の挙動に戻す。 */
@media (hover: hover) and (pointer: fine) {
  .c-feed-item:hover:not(.is-dragging) .c-feed-item__action--marumado {
    /* 終わったあとの状態を固定しない（fill を付けない）。固定すると、
       そのあとスワイプしても指に追従しなくなる。 */
    animation: arttra-marumado-peek 1.1s var(--ease);
  }
}

/* スマホ（カーソルが無い環境）: ページを開いた直後に、
   一覧の先頭の記事だけで1回出して戻す。
   最初の1件で操作を見せれば、残りも同じだと伝わる。 */
@media (hover: none) {
  .c-feed-list > .c-feed-item:first-child .c-feed-item__action--marumado {
    animation: arttra-marumado-peek 1.6s var(--ease) 0.5s;
  }
}

.c-feed-card {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: var(--sp-lg);
  align-items: start;
  /* 箱ではなく行。トップページの .c-news-row と同じ padding-block のみ。
     背景色は、スワイプで下に隠れているアクション表示を隠すために要る
     （区切り線の見た目自体には無関係）。 */
  padding-block: var(--sp-lg);
  background-color: var(--c-bg);
  /* 横スワイプ用。--swipe-x は .c-feed-item から継承する */
  position: relative;
  touch-action: pan-y;
  transform: translateX(var(--swipe-x, 0px));
  transition: transform var(--dur) var(--ease);
  user-select: none;
  -webkit-user-select: none;
  /* ブラウザ標準のリンクドラッグ/長押しメニューがジェスチャーを奪うのを防ぐ */
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* ドラッグ中はスナップバックの遅延を作らない（カードもラベルも指に直結させる） */
.c-feed-item.is-dragging .c-feed-card,
.c-feed-item.is-dragging .c-feed-item__action {
  transition: none;
}

/* トップページの .c-news-row:hover と同じ、タイトルの色替えだけのフィードバック */
.c-feed-card:hover .c-feed-card__title {
  color: var(--c-accent);
}

@media (min-width: 640px) {
  .c-feed-card {
    grid-template-columns: 9rem minmax(0, 1fr);
  }
}

.c-feed-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md);
  background-color: var(--c-bg-sunken);
}

.c-feed-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

.c-feed-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  min-width: 0;
}

.c-feed-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.c-feed-card__title {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  transition: color var(--dur-fast) var(--ease);
}

.c-feed-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--c-ink-mute);
  line-height: 1.8;
  /* 説明は1行まで。はみ出した分は末尾が「…」になる */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- ソース種別チップ（色は tokens.css の --c-source-*） ---
   余白・角丸・文字は絞り込みタブ（.c-feed-tabs__item）と同じ値にそろえる。
   同じ語が一覧の上（タブ）と記事の横（チップ）の両方に出るので、
   形が違うと別物に見えてしまう。違うのは横幅（＝語の長さ）だけ。

   line-height: 1 にしているのは、行間ぶんの余白を持ち込ませないため。
   文字の仮想ボディが座布団の中央に来る。 */

.c-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1.1em;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: 1;
}

.c-chip--hp-news {
  background-color: color-mix(in srgb, var(--c-source-hp-news) 12%, transparent);
  color: var(--c-source-hp-news);
}

.c-chip--note {
  background-color: color-mix(in srgb, var(--c-source-note) 14%, transparent);
  color: var(--c-source-note);
}

.c-chip--sns {
  background-color: color-mix(in srgb, var(--c-source-sns) 16%, transparent);
  color: var(--c-source-sns);
}

.c-chip--case-study {
  background-color: color-mix(in srgb, var(--c-source-case-study) 12%, transparent);
  color: var(--c-source-case-study);
}

/* --- 絞り込みタブ（ALL / お知らせ / note / SNS / 導入事例） ---
   アクティブなタブの色（＝下線の色でもある）は、そのタブ自身の
   ソース種別カラーに切り替わる。切り替えは news-feed.js が
   [data-feed-tabs] に置く data-active-tab 属性だけで駆動していて、
   実際の色は下の属性セレクタで --tabs-accent に流し込んでいるだけ。
   ソース種別を増やしても、対応する1行を足すだけで済む。 */

.c-feed-tabs-wrap {
  margin-bottom: var(--sp-xl);
}

.c-feed-tabs {
  --tabs-accent: var(--c-source-all);
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  overflow-x: auto;
  padding-bottom: 0;
  border-bottom: 2px solid var(--tabs-accent);
  scrollbar-width: none;
  transition: border-color var(--dur) var(--ease);
}

.c-feed-tabs::-webkit-scrollbar {
  display: none;
}

.c-feed-tabs[data-active-tab="hp-news"] { --tabs-accent: var(--c-source-hp-news); }
.c-feed-tabs[data-active-tab="note"] { --tabs-accent: var(--c-source-note); }
.c-feed-tabs[data-active-tab="sns"] { --tabs-accent: var(--c-source-sns); }
.c-feed-tabs[data-active-tab="case-study"] { --tabs-accent: var(--c-source-case-study); }

.c-feed-tabs__item {
  flex: none;
  padding: 0.5em 1.1em;
  /* 下2つの角は丸めない＝下線とタブがそのまま繋がって見えるように */
  border-radius: var(--r-md) var(--r-md) 0 0;
  background-color: transparent;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-ink);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.c-feed-tabs__item:not(.is-active):hover {
  background-color: var(--c-bg-alt);
}

.c-feed-tabs__item.is-active {
  background-color: var(--tabs-accent);
  color: #fff;
  font-weight: var(--fw-bold);
}

.c-feed-hint {
  margin-top: var(--sp-sm);
  font-size: var(--fs-xs);
  color: var(--c-ink-faint);
  text-align: center;
}

/* マウスのある環境では、カーソルを載せるとカードがずれて色面が覗くので、
   文章での操作説明は要らない。hover の無いスマホには残す。 */
@media (hover: hover) and (pointer: fine) {
  .c-feed-hint {
    display: none;
  }
}

/* ===========================================================
   marumado パネル（関連コンテンツ）

   モバイル: 下からのボトムシート
   1024px以上: 右半分にドッキング

   レイアウトの切り替えはこの下の @media ブロックだけで完結させている。
   JS（marumado.js）は is-open クラスの付け外ししかしないので、
   ボトムシートに戻したくなったら @media ブロックを消すだけでよい。
   =========================================================== */

.c-marumado {
  position: fixed;
  inset: 0;
  z-index: var(--z-marumado);
}

.c-marumado__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 15, 20, 0.4);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.c-marumado.is-open .c-marumado__backdrop {
  opacity: 1;
}

.c-marumado__panel {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  padding: var(--sp-xl) var(--sp-gutter) var(--sp-2xl);
  background-color: var(--c-bg);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  /* パネルの端まで来ても背面のページへスクロールを渡さない */
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease);
}

/* marumado を開いている間は背面のページを固定し、スクロールをパネル側に集約する。
   ドロワーの body.is-drawer-open（layout.css）と同じ扱い。
   クラスの付け外しは marumado.js の openSheet/closeSheet が行う。 */
body.is-marumado-open {
  overflow: hidden;
}

.c-marumado.is-open .c-marumado__panel {
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .c-marumado__panel {
    inset-inline: auto 0;
    /* 上下を固定して高さをビューポートに収める。
       ここで bottom を auto に戻すと高さが中身なりに伸びてしまい、
       画面外へはみ出した分がスクロールできなくなるので注意。 */
    inset-block: var(--h-header-lg) 0;
    inline-size: min(560px, 45vw);
    max-height: none;
    border-radius: 0;
    transform: translateX(100%);
  }

  .c-marumado.is-open .c-marumado__panel {
    transform: translateX(0);
  }

  /* パネルが開いている間、一覧側フィードを左半分に詰める */
  body.is-marumado-open .p-news__feed {
    max-width: 50vw;
  }
}

.c-marumado__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-md);
}

.c-marumado__eyebrow {
  font-family: var(--ff-en);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-accent);
}

.c-marumado__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* 記事本体への導線（キーボード操作での唯一の経路）。
   表示/非表示は marumado.js が hidden 属性で切り替える。 */
.c-marumado__source {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  margin-top: var(--sp-xs);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-accent);
  transition: opacity var(--dur-fast) var(--ease);
}

.c-marumado__source:hover {
  opacity: 0.7;
}

.c-marumado__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--r-pill);
  color: var(--c-ink-mute);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.c-marumado__close:hover {
  background-color: var(--c-bg-alt);
  color: var(--c-ink);
}

.c-marumado__lead {
  font-size: var(--fs-sm);
  color: var(--c-ink-mute);
}

.c-marumado__status {
  font-size: var(--fs-sm);
  color: var(--c-ink-mute);
}

.c-marumado__status p {
  margin-bottom: var(--sp-sm);
}

.c-marumado__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
}

/* --- 絞り込みピル（ALL / お知らせ / note / SNS / 導入事例） ---
   カード端のカラーバーと同じ「ソース種別」の軸で絞り込む。
   選択時の色はその種別の色。marumado.js が置く [data-source] から
   --chip-accent を引いているだけなので、種別が増えても1行足せば済む
   （タブの --tabs-accent と同じ作り）。 */

.c-marumado__chip {
  /* ALL は data-source を持たないので、この既定値で塗られる。
     お知らせ一覧のタブ（.c-feed-tabs の --tabs-accent）と同じ色にそろえる。 */
  --chip-accent: var(--c-source-all);
  padding: 0.25em 0.9em;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--c-line-strong);
  background-color: transparent;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--c-ink-mute);
  transition: background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.c-marumado__chip[data-source="hp-news"] { --chip-accent: var(--c-source-hp-news); }
.c-marumado__chip[data-source="note"] { --chip-accent: var(--c-source-note); }
.c-marumado__chip[data-source="sns"] { --chip-accent: var(--c-source-sns); }
.c-marumado__chip[data-source="case-study"] { --chip-accent: var(--c-source-case-study); }

.c-marumado__chip[aria-pressed="true"] {
  background-color: var(--chip-accent);
  border-color: transparent;
  color: var(--c-ink-inverse);
  font-weight: var(--fw-bold);
}

/* --- モザイクグリッド（marumado の「丸窓」レイアウト） ---
   6列のグリッドの中央（3-4列目の2行目）を「いま見ている記事」の
   画像タイルが占め、その四辺を関連カード4枚が風車状に囲む。
   5枚目以降は下に続く全幅の横長カード。

   どのカードがどのスロットに入るかは marumado.js が data-slot で決める。
   絞り込みのたびにグリッドを描き直すので、件数が減ってもスロットは
   振り直され、モザイクに穴が空かない。 */

.c-marumado__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 115px;
  gap: var(--sp-sm);
}

.c-marumado__card[data-slot="h1"] { grid-column: 1 / span 4; grid-row: 1; }
.c-marumado__card[data-slot="v2"] { grid-column: 5 / span 2; grid-row: 1 / span 2; }
.c-marumado__card[data-slot="v1"] { grid-column: 1 / span 2; grid-row: 2 / span 2; }
.c-marumado__card[data-slot="center"] { grid-column: 3 / span 2; grid-row: 2; }
.c-marumado__card[data-slot="h2"] { grid-column: 3 / span 4; grid-row: 3; }

/* 5枚目以降。2枚並びに戻したいときは span 3 にする */
.c-marumado__card[data-slot="m"] { grid-column: span 6; }

/* 件数が4件未満で四辺が埋まらなくても風車は崩さない（参考実装と同じ挙動）。
   空いたスロットはそのまま余白になる。 */

/* --- カード面 ---
   周囲のカードは角を落とし、中央カードだけ角を丸める。
   この対比が「窓」の見え方を作っている。 */

.c-marumado__card {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-sm);
  background-color: var(--c-bg);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

a.c-marumado__card:hover {
  border-color: var(--c-ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.c-marumado__card[data-slot="center"] {
  padding: 0;
  border-radius: var(--r-lg);
  cursor: default;
}

/* 横組み（上辺・下辺・全幅のカード）: 画像は 80px 角 */
.c-marumado__card[data-slot="h1"],
.c-marumado__card[data-slot="h2"],
.c-marumado__card[data-slot="m"] {
  flex-direction: row;
  align-items: center;
}

.c-marumado__card[data-slot="h1"] .c-marumado__card-thumb,
.c-marumado__card[data-slot="h2"] .c-marumado__card-thumb,
.c-marumado__card[data-slot="m"] .c-marumado__card-thumb {
  flex: none;
  width: 80px;
  height: 80px;
}

/* 縦組み（左辺・右辺のカード）: 画像は幅いっぱい × 80px */
.c-marumado__card[data-slot="v1"],
.c-marumado__card[data-slot="v2"] {
  flex-direction: column;
}

.c-marumado__card[data-slot="v1"] .c-marumado__card-thumb,
.c-marumado__card[data-slot="v2"] .c-marumado__card-thumb {
  flex: none;
  width: 100%;
  height: 80px;
}

/* --- カラーバー（中央に面する辺に5px） ---
   グラデーションの2色はソース種別の修飾子で流し込み、
   どの辺に出すかはスロットで決める。 */

.c-marumado__card--hp-news {
  --bar-from: var(--c-source-hp-news);
  --bar-to: var(--c-source-hp-news-deep);
}
.c-marumado__card--note {
  --bar-from: var(--c-source-note);
  --bar-to: var(--c-source-note-deep);
}
.c-marumado__card--sns {
  --bar-from: var(--c-source-sns);
  --bar-to: var(--c-source-sns-deep);
}
.c-marumado__card--case-study {
  --bar-from: var(--c-source-case-study);
  --bar-to: var(--c-source-case-study-deep);
}

/* 既定は上辺（h1 / m）。帯と中身が重ならないよう、その辺だけ余白を足す。 */
.c-marumado__card:not([data-slot="center"])::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(to right, var(--bar-from), var(--bar-to));
}

.c-marumado__card[data-slot="h1"],
.c-marumado__card[data-slot="m"] {
  padding-top: 18px;
}

.c-marumado__card[data-slot="h2"]::before {
  inset: auto 0 0 0;
}

.c-marumado__card[data-slot="h2"] {
  padding-bottom: 18px;
}

.c-marumado__card[data-slot="v1"]::before {
  inset: 0 auto 0 0;
  width: 5px;
  height: auto;
  background: linear-gradient(to bottom, var(--bar-from), var(--bar-to));
}

.c-marumado__card[data-slot="v1"] {
  padding-left: 18px;
}

.c-marumado__card[data-slot="v2"]::before {
  inset: 0 0 0 auto;
  width: 5px;
  height: auto;
  background: linear-gradient(to bottom, var(--bar-from), var(--bar-to));
}

.c-marumado__card[data-slot="v2"] {
  padding-right: 18px;
}

/* --- カードの中身 --- */

.c-marumado__card-thumb {
  overflow: hidden;
  background-color: var(--c-bg-sunken);
}

.c-marumado__card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-marumado__card[data-slot="center"] .c-marumado__card-thumb {
  width: 100%;
  height: 100%;
  border-radius: var(--r-lg);
}

.c-marumado__card-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2xs);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

/* カード内の文字はトークンの下限（--fs-xs = 12px）より小さい階層が必要なため、
   ここだけ直値を使う。tokens.css の「生の値を書かない」方針の例外。 */
.c-marumado__card-title {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.c-marumado__card-desc {
  font-size: 0.625rem;
  line-height: 1.5;
  color: var(--c-ink-mute);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.c-marumado__card-meta {
  font-size: 0.5625rem;
  line-height: 1.4;
  color: var(--c-ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* スマホ幅ではボトムシートの中に収めるので、行高と画像を詰める。
   列比率（6列）はそのまま保つ＝モザイクの形は崩さない。 */
@media (max-width: 639px) {
  .c-marumado__grid {
    grid-auto-rows: 96px;
    gap: var(--sp-xs);
  }

  .c-marumado__card[data-slot="h1"] .c-marumado__card-thumb,
  .c-marumado__card[data-slot="h2"] .c-marumado__card-thumb,
  .c-marumado__card[data-slot="m"] .c-marumado__card-thumb {
    width: 56px;
    height: 56px;
  }

  .c-marumado__card[data-slot="v1"] .c-marumado__card-thumb,
  .c-marumado__card[data-slot="v2"] .c-marumado__card-thumb {
    height: 56px;
  }
}

/* ===========================================================
   スクロール表示アニメーション（reveal.js が制御）
   =========================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* 子要素を順番に出す */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
}

[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.4s; }

/* JS 無効時 / reduced-motion では常に表示 */
.no-js [data-reveal],
.no-js [data-reveal-stagger] > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
  }
}

/* --- marumado の実績数値（KPI） ------------------------------
   数字は「大きな数字 → 説明 → 前月比 → 推移 → 目標」の順に、
   上から下へ1本の流れで読める並びにしている。
   タイルは箱で囲わず、上の罫線だけで区切る（.c-feature と同じ考え方）。 */

.c-kpi {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--c-line);
}

.c-kpi__label {
  font-family: var(--ff-en);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-ink-faint);
}

.c-kpi__value {
  font-family: var(--ff-en);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

/* 「万」「億」は日本語書体で、数字より一段小さく */
.c-kpi__suffix {
  font-family: var(--ff-jp);
  font-size: 0.45em;
  font-weight: var(--fw-medium);
  margin-left: 0.15em;
}

.c-kpi__note {
  font-size: var(--fs-sm);
  color: var(--c-ink-mute);
}

/* 増減は色だけに頼らず、符号で読めるようにしてある（色は補助） */
.c-kpi__delta {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--c-ink-mute);
}

.c-kpi__delta[data-dir="up"] {
  color: var(--c-accent);
}

/* 推移グラフ。線と塗りの色は currentColor なので、ここで決める */
.c-kpi__chart {
  color: var(--c-accent);
  margin-top: var(--sp-2xs);
}

.c-kpi__spark {
  display: block;
  width: 100%;
  height: auto;
}

.c-kpi__caption,
.c-kpi__growth,
.c-kpi__target {
  font-size: var(--fs-xs);
  color: var(--c-ink-faint);
}

.c-kpi__bar {
  height: 4px;
  border-radius: var(--r-pill);
  background-color: var(--c-bg-sunken);
  overflow: hidden;
}

.c-kpi__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background-color: var(--c-accent);
}

/* 丸めた数字の裏づけとして、実数値の表を折りたたんで置く */
.c-kpi-details {
  margin-top: var(--sp-2xl);
  font-size: var(--fs-sm);
}

.c-kpi-details > summary {
  cursor: pointer;
  color: var(--c-ink-mute);
}

.c-kpi-table-wrap {
  margin-top: var(--sp-md);
  overflow-x: auto;
}

.c-kpi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.c-kpi-table th,
.c-kpi-table td {
  padding: var(--sp-xs) var(--sp-sm);
  border-bottom: 1px solid var(--c-line);
  text-align: right;
}

.c-kpi-table thead th {
  color: var(--c-ink-mute);
  font-weight: var(--fw-medium);
}

.c-kpi-table tbody th {
  text-align: left;
  font-weight: var(--fw-medium);
}

/* --- 大きな1つの数字で押す帯（c-statband） --------------------
   ページの早い位置に置く「主張」。月次KPI（.c-kpi）が実績の積み上げなのに対し、
   こちらは1本の数字だけを大きく見せる。
   紺地はフッター／CTA帯と同じ色、数字はトップの見出しと同じグラデーションで、
   サイトの中で一番強い表現にそろえている。 */

.c-statband {
  background-color: var(--c-bg-navy);
  padding-block: var(--sp-section-sm);
}

.c-statband__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  text-align: center;
}

/* 数字の上に置く、調査の種別と条件。主役の数字より先に読ませない明るさにする */
.c-statband__eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: var(--c-ink-inverse-mute);
}

.c-statband__value {
  font-family: var(--ff-en);
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  /* トップのヒーロー見出し（.p-hero__title em）と同じグラデーション */
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--c-accent) 55%, #fff) 0%,
    var(--c-accent-art) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.c-statband__suffix {
  font-size: 0.55em;
  margin-left: 0.05em;
}

.c-statband__headline {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  color: var(--c-ink-inverse);
  text-wrap: balance;
}

.c-statband__note {
  max-width: var(--w-prose);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--c-ink-inverse-mute);
}

/* グラフ両端の目盛り（いつ・いくつ）。グラフだけだと期間が読み取れないため */
.c-kpi__scale {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-sm);
  font-size: var(--fs-xs);
  color: var(--c-ink-faint);
}

.c-kpi__scale-point {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.c-kpi__scale-point--end {
  text-align: right;
  color: var(--c-ink-mute);
}

.c-kpi__scale-value {
  font-family: var(--ff-en);
  font-weight: var(--fw-medium);
}
