@charset "UTF-8";
/**
 * わかったブログ — 共通UI（ヘッダー / ドロワー / フッター / カード）
 */

/* -------------------------------------------------------------------------
 * ヘッダー
 * ---------------------------------------------------------------------- */

.wk .wk-header {
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid var(--wk-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  color: var(--wk-ink);
}
.wk.admin-bar .wk-header { top: 32px; }
.wk #container { padding-top: 80px; }

.wk .wk-header-in {
  display: flex;
  min-height: 80px;
  max-width: var(--wk-max);
  margin: 0 auto;
  padding: 10px var(--wk-gutter);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wk .wk-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.wk .wk-brand-en {
  font: 700 17px/1 var(--wk-font-en);
  letter-spacing: 0.14em;
}
.wk .wk-brand-since {
  color: var(--wk-muted);
  font: 500 10px/1 var(--wk-font-mono);
  letter-spacing: 0.14em;
}

.wk .wk-nav { display: flex; align-items: center; gap: 26px; }
.wk .wk-menu {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  list-style: none;
}
.wk .wk-menu li { margin: 0; }
.wk .wk-menu a {
  position: relative;
  display: block;
  color: inherit;
  font: 500 13px/1 var(--wk-font-en);
  letter-spacing: 0.12em;
  text-decoration: none;
}
.wk .wk-menu a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  content: "";
  transition: transform 300ms var(--wk-ease);
}
.wk .wk-menu a:hover::after,
.wk .wk-menu a:focus-visible::after { transform: scaleX(1); }

.wk .wk-header-cta {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--wk-ink);
  color: var(--wk-ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 250ms ease, color 250ms ease;
}
.wk .wk-header-cta:hover,
.wk .wk-header-cta:focus-visible { background: var(--wk-ink); color: #fff; }

.wk .wk-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 13px 6px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
/* 2本線（上が長く、下が短い）。開くと×になる。
   読み上げ用の .wk-sr も span なので、nth-of-type ではなくクラスで数える。 */
.wk .wk-toggle .wk-bar {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: currentColor;
  transition: transform 300ms ease, width 300ms ease;
}
.wk .wk-toggle .wk-bar + .wk-bar { width: 66%; margin-left: auto; }
.wk .wk-toggle[aria-expanded="true"] .wk-bar { transform: translateY(3.5px) rotate(45deg); }
.wk .wk-toggle[aria-expanded="true"] .wk-bar + .wk-bar { width: 100%; transform: translateY(-3.5px) rotate(-45deg); }

.wk .wk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
 * ドロワー（全画面メニュー）
 * ---------------------------------------------------------------------- */

.wk .wk-drawer {
  position: fixed;
  z-index: 890;
  inset: 0;
  visibility: hidden;
  transform: translateY(-100%);
  background: var(--wk-ink);
  color: #fff;
  /* 閉じるときだけ visibility の切り替えを遅らせる。開くときは即座に可視化して、
     中のリンクへすぐフォーカスを移せるようにする。 */
  transition: transform 400ms var(--wk-ease), visibility 0s linear 400ms;
}
.wk .wk-drawer.is-open {
  visibility: visible;
  transform: translateY(0);
  transition: transform 400ms var(--wk-ease), visibility 0s linear 0s;
}
.wk.admin-bar .wk-drawer { top: 32px; }
.wk-menu-open { overflow: hidden; }

.wk .wk-drawer-in {
  display: flex;
  min-height: 100%;
  padding: 110px var(--wk-gutter) 40px;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  overflow-y: auto;
}
.wk .wk-drawer-menu { margin: 0; padding: 0; list-style: none; }
.wk .wk-drawer-menu a {
  display: flex;
  padding: 18px 0;
  border-bottom: 1px solid var(--wk-border-dark);
  align-items: baseline;
  justify-content: space-between;
  color: #fff;
  font: 700 clamp(24px, 7vw, 40px)/1.2 var(--wk-font-en);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wk .wk-drawer-menu a::after { color: var(--wk-muted-dark); content: ">"; font-size: 0.6em; }

/* -------------------------------------------------------------------------
 * フッター（BLACK）
 * ---------------------------------------------------------------------- */

.wk #footer,
.wk .wk-footer {
  padding: 0;
  border: 0;
  background: var(--wk-black);
  color: #fff;
}
.wk #footer-in { width: 100%; max-width: none; margin: 0; padding: 0; }

.wk .wk-footer-mission {
  max-width: var(--wk-max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--wk-gutter);
  border-bottom: 1px solid var(--wk-border-dark);
}
.wk .wk-footer-mission .wk-label { color: var(--wk-muted-dark); }
.wk .wk-footer-mission p {
  max-width: 20em;
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.wk .wk-footer-main {
  display: grid;
  max-width: var(--wk-max);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) var(--wk-gutter);
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(40px, 7vw, 96px);
}
.wk .wk-footer-brand a {
  display: inline-block;
  color: #fff;
  font: 700 22px/1 var(--wk-font-en);
  letter-spacing: 0.14em;
  text-decoration: none;
}
/* 旧ロゴ（透過GIF）。黒地にそのまま置くと墨の線が消えてしまうので、
   白い板に載せて「保存された資料」として見せる。反転フィルターは、
   電球の白まで黒くなってしまうため使わない。 */
.wk .wk-footer-legacy { margin: 24px 0 0; }
.wk .wk-footer-mark {
  display: block;
  width: 148px;
  height: auto;
  padding: 14px 16px;
  background: #fff;
}
.wk .wk-footer-legacy figcaption {
  margin-top: 10px;
  color: var(--wk-muted-dark);
  font: 500 10px/1 var(--wk-font-mono);
  letter-spacing: 0.14em;
}
.wk .wk-footer-brand p {
  margin: 18px 0 0;
  color: var(--wk-muted-dark);
  font-size: 13px;
  line-height: 1.9;
}

.wk .wk-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.wk .wk-footer-cols h2 {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--wk-muted-dark);
  font: 500 12px/1 var(--wk-font-mono);
  letter-spacing: 0.14em;
}
.wk .wk-footer-cols ul { margin: 0; padding: 0; list-style: none; }
.wk .wk-footer-cols li { margin: 0 0 11px; }
.wk .wk-footer-cols a {
  color: var(--wk-muted-dark);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 200ms ease;
}
.wk .wk-footer-cols a:hover,
.wk .wk-footer-cols a:focus-visible { color: #fff; }

.wk .wk-footer-bottom {
  display: flex;
  max-width: var(--wk-max);
  margin: 0 auto;
  padding: 22px var(--wk-gutter) 34px;
  border-top: 1px solid var(--wk-border-dark);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--wk-muted-dark);
  font: 400 11px/1.6 var(--wk-font-mono);
  letter-spacing: 0.08em;
}
.wk .wk-footer-bottom ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}
.wk .wk-footer-bottom a { color: inherit; text-decoration: none; }
.wk .wk-footer-bottom a:hover { color: #fff; }

/* -------------------------------------------------------------------------
 * カード（トップ・一覧共通）
 * ---------------------------------------------------------------------- */

.wk .wk-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 34px);
}
.wk .wk-card { min-width: 0; }
.wk .wk-card a { display: block; color: inherit; text-decoration: none; }
.wk .wk-card-thumb {
  display: grid;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  background: var(--wk-paper);
  color: var(--wk-muted);
  font: 700 15px/1 var(--wk-font-en);
  letter-spacing: 0.14em;
}
.wk .wk-dark .wk-card-thumb { background: #1c1c1c; color: var(--wk-muted-dark); }
.wk .wk-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--wk-ease);
}
.wk .wk-card a:hover .wk-card-thumb img { transform: scale(1.035); }
.wk .wk-card-meta {
  display: flex;
  margin-top: 16px;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--wk-muted);
  font: 500 11px/1.5 var(--wk-font-mono);
  letter-spacing: 0.06em;
}
.wk .wk-dark .wk-card-meta { color: var(--wk-muted-dark); }
.wk .wk-card h3 {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.wk .wk-card a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* 番号付きリスト行（NOW / PROJECTS） */
.wk .wk-index {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--wk-border);
  list-style: none;
  counter-reset: wk-index;
}
.wk .wk-dark .wk-index,
.wk .wk-dark .wk-index > li { border-color: var(--wk-border-dark); }
.wk .wk-index > li {
  display: grid;
  padding: 26px 0;
  border-bottom: 1px solid var(--wk-border);
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  counter-increment: wk-index;
}
.wk .wk-index > li::before {
  color: var(--wk-muted);
  content: "(" counter(wk-index, decimal-leading-zero) ")";
  font: 500 12px/1.9 var(--wk-font-mono);
  letter-spacing: 0.14em;
}
.wk .wk-dark .wk-index > li::before { color: var(--wk-muted-dark); }
.wk .wk-index h3 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 700;
  line-height: 1.5;
}

/* 行き先があるときは、見出しそのものが押せます（PROJECTS など）。
   下線を text-decoration で引いているのは、タイトルが2行に折り返しても
   各行にきちんと下線が乗るためです。疑似要素だと最終行にしか出ません。 */
.wk .wk-index h3 a[href] {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 300ms var(--wk-ease);
}
.wk .wk-index h3 a[href]:hover,
.wk .wk-index h3 a[href]:focus-visible { text-decoration-color: currentColor; }
.wk .wk-index h3 a[href] > span {
  display: inline-block;
  margin-left: 7px;
  color: var(--wk-muted);
  font-size: 0.72em;
  transition: transform 300ms var(--wk-ease);
}
.wk .wk-dark .wk-index h3 a[href] > span { color: var(--wk-muted-dark); }
.wk .wk-index h3 a[href]:hover > span,
.wk .wk-index h3 a[href]:focus-visible > span { transform: translateX(3px); }

/* 行き先が複数あるとき（「カエレバ / ヨメレバ / トマレバ」など）。
   矢印を3つ並べるとうるさいので、常に下線を引いて押せることを示す。
   色は罫線用のトークンではなく補足色を使う。--wk-border-dark は
   rgba(255,255,255,0.16) で、1pxの下線にすると黒地でほぼ見えないため。 */
.wk .wk-index h3.wk-index-multi a[href] {
  text-decoration-color: var(--wk-muted);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.wk .wk-dark .wk-index h3.wk-index-multi a[href] { text-decoration-color: var(--wk-muted-dark); }
.wk .wk-index h3.wk-index-multi a[href]:hover,
.wk .wk-index h3.wk-index-multi a[href]:focus-visible { text-decoration-color: currentColor; }

.wk .wk-index p {
  margin: 10px 0 0;
  color: var(--wk-copy);
  font-size: 15px;
  line-height: 1.9;
}
.wk .wk-dark .wk-index p { color: var(--wk-muted-dark); }

/* -------------------------------------------------------------------------
 * セクションの土台
 *
 * トップページだけでなく、カテゴリー・タグ・月別・検索の一覧ページでも
 * 同じ骨格を使います。だからトップ専用の wk-front.css ではなく、
 * どのページでも読み込まれるこちらに置いています。
 * ---------------------------------------------------------------------- */

.wk .wk-section {
  padding: var(--wk-section) 0;
  background: var(--wk-white);
  color: var(--wk-text);
}
.wk .wk-section.wk-paper-bg { background: var(--wk-paper); }
.wk .wk-section.wk-dark { background: var(--wk-ink); color: #fff; }
.wk .wk-inner {
  width: 100%;
  max-width: var(--wk-max);
  margin: 0 auto;
  padding: 0 var(--wk-gutter);
}
.wk .wk-narrow { max-width: 760px; }

.wk .wk-section h3 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.6;
}
.wk .wk-section p {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}
.wk .wk-section .wk-lead { max-width: 46em; color: var(--wk-copy); }
.wk .wk-dark .wk-lead { color: var(--wk-muted-dark); }

.wk .wk-section-foot { margin-top: clamp(30px, 4vw, 44px); }

/* -------------------------------------------------------------------------
 * 記事リスト（FIRST HAND / LATEST）
 *
 * AI ARTICLES はサムネイル付きカードで主役にし、こちらは行だけの一覧にして
 * 情報密度と軽さを優先します。
 * ---------------------------------------------------------------------- */

.wk .wk-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--wk-border);
  list-style: none;
}
.wk .wk-list li { margin: 0; border-bottom: 1px solid var(--wk-border); }
.wk .wk-list a {
  display: grid;
  padding: 18px 0;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 20px;
  color: inherit;
  text-decoration: none;
}
.wk .wk-list time {
  color: var(--wk-muted);
  font: 500 12px/1.7 var(--wk-font-mono);
  letter-spacing: 0.06em;
}
.wk .wk-list .wk-list-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}
.wk .wk-list a:hover .wk-list-title,
.wk .wk-list a:focus-visible .wk-list-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wk .wk-list em {
  color: var(--wk-muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
 * ページ送り（/page/2 以降への入口）
 * ---------------------------------------------------------------------- */

.wk .wk-pager { margin-top: clamp(28px, 4vw, 40px); }
.wk .wk-pager .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.wk .wk-pager .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wk .wk-pager .page-numbers {
  display: inline-grid;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  place-items: center;
  border: 1px solid var(--wk-border-strong);
  color: inherit;
  font: 500 13px/1 var(--wk-font-mono);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.wk .wk-pager a.page-numbers:hover,
.wk .wk-pager a.page-numbers:focus-visible {
  border-color: var(--wk-ink);
  background: var(--wk-ink);
  color: #fff;
}
.wk .wk-pager .page-numbers.current {
  border-color: var(--wk-ink);
  background: var(--wk-ink);
  color: #fff;
}
.wk .wk-pager .page-numbers.dots { border-color: transparent; }

@media screen and (max-width: 719px) {
  .wk .wk-list a { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .wk .wk-list em { display: none; }
}

/* -------------------------------------------------------------------------
 * レスポンシブ
 * ---------------------------------------------------------------------- */

@media screen and (max-width: 1079px) {
  .wk .wk-nav { display: none; }
  .wk .wk-toggle { display: block; }
}

@media screen and (max-width: 900px) {
  .wk .wk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk .wk-footer-main { grid-template-columns: 1fr; }
}

@media screen and (max-width: 781px) {
  .wk.admin-bar .wk-header,
  .wk.admin-bar .wk-drawer { top: 46px; }
}

@media screen and (max-width: 719px) {
  .wk #container { padding-top: 64px; }
  .wk .wk-header-in { min-height: 64px; }
  .wk .wk-brand-en { font-size: 14px; letter-spacing: 0.1em; }
  .wk .wk-brand-since { display: none; }
  .wk .wk-cards { grid-template-columns: 1fr; }
  .wk .wk-footer-cols { grid-template-columns: 1fr; gap: 30px; }
  .wk .wk-footer-bottom { flex-direction: column; align-items: flex-start; }
  .wk .wk-index > li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
}
