@charset "UTF-8";
/**
 * わかったブログ デザインシステム — トークンと土台
 *
 * スモールライフ（AI WORKS）の astra-child 2.0.6 と同じ設計思想のまま、
 * 値だけを白黒反転させています。向こうがネイビー基調、こちらが白基調。
 * 兄弟ブランドとして並べたときに同じ骨格に見えることを狙っています。
 */

:root {
  /* ---- 面 ---- */
  --wk-white: #fff;        /* ベース面 */
  --wk-paper: #f2f2f2;     /* 交互に挟む薄いグレー面 */
  --wk-ink: #0a0a0a;       /* 濃色面の地・見出し */
  --wk-black: #000;        /* フッター最下部 */

  /* ---- 文字 ---- */
  --wk-text: #1a1a1a;       /* 本文（白地 16.1:1） */
  --wk-copy: #444;          /* 補足（白地 9.7:1） */
  --wk-muted: #6e6e6e;      /* ラベル・日付（白地 5.3:1） */
  --wk-muted-dark: #a8a8a8; /* 濃色面上の補足（#0a0a0a 上 8.3:1） */

  /* ---- 罫線 ---- */
  --wk-border: #e0e0e0;
  --wk-border-strong: #c4c4c4;
  --wk-border-dark: rgba(255, 255, 255, 0.16);

  /* ---- レイアウト ---- */
  --wk-gutter: clamp(20px, 4.4vw, 56px);
  --wk-max: 1200px;
  --wk-measure: 720px;      /* 記事本文の最大幅 */
  --wk-section: clamp(64px, 8vw, 104px);
  --wk-hero-band: 230px;     /* 狭い画面でヒーロー下に作る、背景専用の帯 */

  /* ---- 書体 ---- */
  --wk-font-en: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wk-font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- 動き ---- */
  --wk-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------------------
 * 共通の部品
 * ---------------------------------------------------------------------- */

/* 英字ラベル（PROFILE / BOOKS / SINCE 2005 など） */
.wk .wk-label {
  margin: 0 0 14px;
  color: var(--wk-muted);
  font-family: var(--wk-font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
}

/* セクション見出しロックアップ：英字 → 日本語 → バー */
.wk .wk-head {
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.wk .wk-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--wk-font-en);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.wk .wk-head p {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06em;
}
.wk .wk-head > span {
  display: block;
  width: 40px;
  height: 4px;
  margin-top: 18px;
  background: currentColor;
}

/* CTA：ラベル＋四角い矢印を1つのリンクにする */
.wk .wk-button {
  display: inline-flex;
  min-height: 56px;
  align-items: stretch;
  border: 0;
  text-decoration: none;
}
.wk .wk-button span {
  display: flex;
  padding: 0 26px;
  /* 幅いっぱいに伸ばしたとき（モバイル）にラベル面が広がり、矢印が右端に付く。 */
  flex: 1 1 auto;
  align-items: center;
  background: var(--wk-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.wk .wk-button b {
  display: grid;
  width: 56px;
  place-items: center;
  background: #fff;
  color: var(--wk-ink);
  box-shadow: inset 0 0 0 1px var(--wk-ink);
  font: 400 18px/1 var(--wk-font-en);
  transition: transform 300ms var(--wk-ease);
}
.wk .wk-button:hover b,
.wk .wk-button:focus-visible b { transform: translateX(4px); }

/* 濃色面（ダークセクションとドロワー）ではCTAを反転させる */
.wk .wk-dark .wk-button span,
.wk .wk-drawer .wk-button span { background: #fff; color: var(--wk-ink); }
.wk .wk-dark .wk-button b,
.wk .wk-drawer .wk-button b { background: var(--wk-ink); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }

/* テキストリンク：下線を左から伸ばす */
.wk .wk-textlink {
  position: relative;
  display: inline-block;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}
.wk .wk-textlink::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  content: "";
  transition: transform 300ms var(--wk-ease);
}
.wk .wk-textlink:hover::after,
.wk .wk-textlink:focus-visible::after { transform: scaleX(1); }
.wk .wk-textlink::before { content: none; }

/* 出現アニメーション（スモールライフより控えめ：24px→16px / 700ms→500ms） */
.wk [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--wk-ease), transform 500ms var(--wk-ease);
}
.wk [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ヘッダーが固定なので、アンカー移動先が隠れないようにする。
   記事の目次からの見出しジャンプにも効きます。 */
.wk .wk-section,
.wk .wk-hero,
.wk-single .entry-content :is(h2, h3, h4) { scroll-margin-top: 96px; }
@media screen and (max-width: 719px) {
  .wk .wk-section,
  .wk .wk-hero,
  .wk-single .entry-content :is(h2, h3, h4) { scroll-margin-top: 80px; }
}

/* フォーカスリングは消さない */
.wk a:focus-visible,
.wk button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* -------------------------------------------------------------------------
 * 親テーマ（Cocoon）の打ち消し
 *
 * Cocoon は見出しに背景色・左ボーダー・カウンターを強く当ててきます。
 * リニューアル側のマークアップにだけ効くよう、範囲を限定して打ち消します。
 * ここを最初に用意しておかないと、あとで !important の応酬になります。
 * ---------------------------------------------------------------------- */

.wk .wk-head h2::before,
.wk .wk-head h2::after,
.wk .wk-section h3::before,
.wk .wk-section h3::after,
.wk .wk-section h4::before,
.wk .wk-section h4::after { content: none; }

.wk .wk-section :is(h1, h2, h3, h4, h5, h6) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  text-shadow: none;
}

/* 濃色面では見出しを必ず白に固定する（AI WORKS 2.0.6 と同じ対策） */
.wk .wk-dark :is(h1, h2, h3, h4, h5, h6),
.wk .wk-dark p,
.wk .wk-dark li { color: inherit; }

/* トップページはサイドバーを外して全幅にする */
.wk-front #content-in,
.wk-front .content-in {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.wk-front #main,
.wk-front .content .main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.wk-front #content { margin-top: 0; }
.wk-front #sidebar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .wk [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wk *,
  .wk *::before,
  .wk *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
