@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.3.0
*/

/* ============================================================
   Web 制作実験室  —  L A B O R A T O R Y   L O G B O O K
   v1.4 / calm off-white base (#FCFBF7), soft contrast
   prefix: .lab-  /  N3 Products.
   ============================================================ */

:root {
  --paper:       #FCFBF7;
  --paper-alt:   #F3F1EB;
  --paper-warm:  #EBE8E1;
  --paper-fold:  rgba(44, 42, 38, 0.06);

  --ink:         #2C2A26;
  --ink-soft:    rgba(44, 42, 38, 0.58);
  --ink-mute:    rgba(44, 42, 38, 0.36);

  --line:        #E6E2DA;
  --line-strong: #D8D3C8;

  --dark:        #3F3C37;
  --dark-2:      #4A4640;
  --dark-paper:  #F5F2EA;
  --dark-fold:   rgba(245, 242, 234, 0.18);

  --hazard:      #C85B2C;
  --hazard-2:    #D4714A;
  --highlight:   #E8D89A;

  --shadow:      rgba(44, 42, 38, 0.08);
  --shadow-hover: rgba(200, 91, 44, 0.16);

  --graph:       rgba(44, 42, 38, 0.038);
  --graph-dark:  rgba(245, 242, 234, 0.055);
  --grid-size:   32px;

  /* Hero — soft yellow glow */
  --hero-base:       #FFFFFF;
  --hero-glow:       #FFF991;

  --ff-serif:    "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "Hiragino Mincho Pro", serif;
  --ff-sans:     "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, -apple-system, sans-serif;
  --ff-mono:     "SFMono-Regular", ui-monospace, Consolas, Menlo, monospace;

  --max-w:       1100px;
  --wl-scroll-offset: 120px;

  /* セクション背景（クリーム↔白 交互） */
  --wl-bg-cream:  #faf9f5;
  --wl-bg-white:  #ffffff;
  --wl-bg-dark:   #2a2825;
  --wl-text-on-dark: #ffffff;

  /* セクション余白 */
  --wl-section-pad-y:    clamp(48px, 7vw, 80px);
  --wl-section-pad-y-sm: clamp(24px, 3.5vw, 40px);
  --wl-hero-pad-bottom:  clamp(48px, 6vw, 72px);

  /* タイポグラフィ（本文 16px / 日本語向け行間） */
  --wl-text-base:  16px;
  --wl-leading:    1.75;
  --wl-leading-heading: 1.45;
  --wl-tracking-label: 0.06em;
  --wl-tracking-ui:    0.02em;
  --wl-type-features:  "palt" 1;

  /* バッジ — サイト色（オレンジ＋モノトーン） */
  --wl-badge-accent-bg:     rgba(200, 91, 44, 0.1);
  --wl-badge-accent-fg:     #9a451f;
  --wl-badge-accent-border: rgba(200, 91, 44, 0.28);
  --wl-badge-neutral-bg:    var(--paper-alt);
  --wl-badge-neutral-fg:    var(--ink);
  --wl-badge-neutral-border: var(--line-strong);
  --wl-badge-muted-bg:      var(--wl-bg-cream);
  --wl-badge-muted-fg:      var(--ink-soft);
  --wl-badge-muted-border:  var(--line);
  --wl-badge-ga4-bg:        rgba(43, 91, 140, 0.1);
  --wl-badge-ga4-fg:        #2b5b8c;
  --wl-badge-ga4-border:    rgba(43, 91, 140, 0.28);

  /* 記事リンク — WCAG AA（通常テキスト 4.5:1 以上） */
  --wl-link:                #7a4018;
  --wl-link-hover:          #9a451f;

  --wl-panel-hover-border:  var(--hazard);

  --wl-text-sm:    14px;
  --wl-text-xs:    12px;

  /* 見出し — Google 推奨スケール（本文 16px 基準） */
  --wl-h1-size:    clamp(24px, 3.2vw, 32px);
  --wl-h2-size:    clamp(20px, 2.4vw, 24px);
  --wl-h3-size:    clamp(18px, 2vw, 20px);
}

html {
  scroll-padding-top: var(--wl-scroll-offset);
}

/* 日本語組版 — TOP / 下層ページ共通 */
body.home,
body.front-top-page,
body.wl-blog-archive-page,
body.wl-experiment-archive-page,
body.wl-tag-archive-page,
body.wl-single-post-page,
body.wl-not-found-page,
body.wl-lp-index-page {
  font-feature-settings: var(--wl-type-features);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --wl-scroll-offset: 136px;
  }
}

/* ---- Cocoon-compliant: calm field, narrow column ---------- */
body.home,
body.page-template-front-page,
body.front-top-page {
  background-color: var(--wl-bg-white);
  overflow-x: clip;
  position: relative;
  max-width: 100%;
}

body.home #container,
body.front-top-page #container,
body.home .wrap,
body.front-top-page .wrap {
  overflow-x: clip;
  max-width: 100%;
}
body.home #main,
body.home .main,
body.home #content,
body.home .content,
body.home #content-in {
  background: transparent;
}
body.home article.front-page,
body.home .article {
  background: transparent;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}
body.home .article-header { display: none; }
body.home .entry-content { padding: 0; margin: 0; }
body.home .entry-content > p:first-child:empty { display: none; }

/* ============================================================
   MAIN CONTAINER  —  1100px column, no full bleed
   ============================================================ */
.lab {
  --gutter: clamp(20px, 4vw, 48px);
  max-width: var(--max-w);
  margin: 0 auto;
  font-family: var(--ff-sans);
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  color: var(--ink);
  background: transparent;
  position: relative;
}
.lab * { box-sizing: border-box; }
.lab a { color: inherit; }

/* セクション背景をビューポート全幅に（コンテンツは max-w 内に維持） */
.lab-fullbleed {
  width: auto;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50% + var(--gutter));
  padding-right: calc(50vw - 50% + var(--gutter));
}

.lab-grid-bg {
  background-image:
    linear-gradient(to right,  var(--graph) 1px, transparent 1px),
    linear-gradient(to bottom, var(--graph) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

.lab-grid-bg--dark {
  background-image:
    linear-gradient(to right,  var(--graph-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--graph-dark) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
/* ============================================================
   SHARED — section head (just a small mono label)
   ============================================================ */
.lab-section__head {
  margin: 0 0 14px;
}
.lab-section__label {
  font-family: var(--ff-mono);
  font-size: var(--wl-text-xs);
  letter-spacing: var(--wl-tracking-label);
  font-weight: 700;
  color: var(--hazard);
  display: inline-block;
}
.lab-section__head--dark .lab-section__label { color: var(--hazard-2); }

.lab-section__title {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: var(--wl-leading-heading);
  letter-spacing: 0;
  margin: 0 0 clamp(24px, 3.5vw, 40px);
  color: var(--ink);
}

/* ============================================================
   HAZARD MARKER  (highlight on key words)
   ============================================================ */
.lab-mark {
  position: relative;
  display: inline-block;
  padding: 0 0.14em;
  z-index: 0;
  color: var(--paper);
  white-space: nowrap;
}
.lab-mark::before {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  top: 0.10em;
  bottom: 0.06em;
  background: var(--hazard);
  z-index: -1;
  transform: skew(-6deg) rotate(-1deg);
}

/* Hero — 試行錯誤: 標準マーカー色 + サイズで微強調 */
.lab-hero__title .lab-mark {
  font-weight: 700;
  font-size: 1.1em;
}

/* ============================================================
   HERO  —  soft yellow glow（Hero セクションのみ）
   ============================================================ */
.lab-hero-zone {
  position: relative;
  background-color: var(--wl-bg-white);
  overflow-x: clip;
}

.lab-hero {
  background: transparent;
  text-align: center;
  padding-top: clamp(56px, 8.5vw, 96px);
  padding-bottom: var(--wl-hero-pad-bottom);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.lab-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(900px, 100%);
  height: 120%;
  transform: translate(-50%, -50%);
  z-index: 0;
  background-image: radial-gradient(
    ellipse 58% 42% at 50% 42%,
    var(--hero-glow) 0%,
    rgba(255, 249, 145, 0.4) 34%,
    rgba(255, 249, 145, 0.1) 54%,
    transparent 72%
  );
  opacity: 0.6;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.lab-hero > * {
  position: relative;
  z-index: 1;
}

.lab-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: var(--wl-text-xs);
  letter-spacing: var(--wl-tracking-label);
  color: var(--hazard);
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-weight: 500;
}
.lab-hero__tag-bracket { color: var(--ink); font-weight: 700; }

.lab-hero__title {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(24px, 4.4vw, 44px);
  line-height: var(--wl-leading-heading);
  letter-spacing: 0;
  margin: 0 auto clamp(22px, 3vw, 32px);
  color: var(--ink);
  max-width: none;
}
.lab-hero__title-line { display: block; }

/* PC + タブレット横（900px〜）: 意図した2行 */
@media (min-width: 900px) {
  .lab-hero__title-line--2,
  .lab-hero__title-line--3 {
    display: inline;
  }
}

/* タブレット縦・SP（〜899px）: 意図した3行 */
@media (max-width: 899px) {
  .lab-hero__title-line--1,
  .lab-hero__title-line--2,
  .lab-hero__title-line--3 {
    display: block;
  }
}

.lab-hero__sub {
  font-family: var(--ff-sans);
  max-width: min(100%, 52ch);
  color: var(--ink);
  margin: 0 auto 14px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
}

.lab-hero__sub-lead {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(17px, 2.6vw, 30px);
  line-height: var(--wl-leading);
  letter-spacing: 0;
  max-width: 100%;
}

.lab-hero__sub-arrow {
  color: var(--hazard);
  font-family: var(--ff-mono);
  font-weight: 700;
  margin-right: 0.35em;
  flex-shrink: 0;
  opacity: 0;
  animation: lab-type-in 0.45s ease forwards;
  animation-delay: 0.25s;
}

.lab-hero__type {
  display: inline;
  white-space: nowrap;
}

.lab-hero__type-char {
  opacity: 0;
  display: inline-block;
  animation: lab-type-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lab-hero__type-cursor {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: -0.05em;
  background: var(--hazard);
  opacity: 0;
  animation: lab-type-cursor 0.8s step-end infinite;
}

@keyframes lab-type-in {
  from {
    opacity: 0;
    transform: translateY(0.15em);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes lab-type-cursor {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.lab-hero__sub-note {
  display: block;
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  color: var(--ink-soft);
}
.lab-hero__sub-note em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: 1px;
}
.lab-hero__cta-note {
  margin: clamp(20px, 3vw, 28px) auto 0;
  max-width: min(100%, 52ch);
  text-align: center;
  font-size: var(--wl-text-sm);
  line-height: 1.7;
}

@media (max-width: 899px) {
  .lab-hero {
    padding-top: 30px;
  }

  .lab-hero::before {
    top: 38%;
    height: 100%;
    background-image: radial-gradient(
      ellipse 72% 38% at 50% 36%,
      var(--hero-glow) 0%,
      rgba(255, 249, 145, 0.4) 34%,
      rgba(255, 249, 145, 0.1) 54%,
      transparent 72%
    );
  }

  .lab-hero__title {
    font-size: clamp(26px, 6.8vw, 32px);
    line-height: 1.52;
    margin-bottom: 24px;
  }

  .lab-hero__sub {
    gap: 16px;
    margin-bottom: 14px;
  }

  .lab-hero__sub-lead {
    font-size: clamp(21px, 5.8vw, 26px);
    line-height: 1.55;
    letter-spacing: 0;
  }

  .lab-hero__sub-arrow {
    margin-right: 0.3em;
  }

  .lab-hero__cta {
    flex-direction: column;
    gap: 16px;
    width: min(100%, 340px);
    margin: 0 auto;
  }

  .lab-btn {
    width: 100%;
    padding: 15px 28px;
  }
}

/* CTA buttons (centered) ----------------------------------- */
.lab-hero__cta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.lab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 13px 22px;
  text-decoration: none;
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: var(--wl-text-base);
  letter-spacing: var(--wl-tracking-ui);
  border: 1px solid var(--line-strong);
  position: relative;
  transition: transform 0.2s cubic-bezier(.2,.6,.2,1), box-shadow 0.2s cubic-bezier(.2,.6,.2,1), border-color 0.2s ease, background-color 0.2s ease;
  box-shadow: 3px 3px 0 var(--shadow);
  cursor: pointer;
  line-height: 1;
}
.lab-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--shadow-hover);
  border-color: var(--hazard);
}
.lab-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--shadow);
}
.lab-btn--solid {
  background: var(--hazard);
  border-color: var(--hazard);
  color: var(--wl-bg-white);
  box-shadow: 3px 3px 0 rgba(200, 91, 44, 0.22);
}
.lab-btn--solid:link,
.lab-btn--solid:visited,
.lab-btn--solid:hover,
.lab-btn--solid:active { color: var(--wl-bg-white); }
.lab-btn--solid:hover {
  background: var(--hazard-2);
  border-color: var(--hazard-2);
  box-shadow: 5px 5px 0 rgba(200, 91, 44, 0.28);
}
.lab-btn--solid .lab-btn__label { color: var(--wl-bg-white); }

.lab-btn--ghost       { background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--paper-fold); }
.lab-btn--ghost:link,
.lab-btn--ghost:visited,
.lab-btn--ghost:hover,
.lab-btn--ghost:active { color: var(--ink); }
.lab-btn--ghost:hover { box-shadow: 5px 5px 0 var(--shadow); border-color: var(--ink-soft); }
.lab-btn--ghost .lab-btn__label { color: var(--ink); }

.lab-btn__label { letter-spacing: var(--wl-tracking-ui); }

/* ============================================================
   ABOUT  —  alternating bg, single column body
   ============================================================ */
.lab-about {
  background: var(--wl-bg-white);
  position: relative;
  z-index: 1;
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: var(--wl-section-pad-y-sm);
}
.lab-about__lead {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  letter-spacing: 0;
  margin: 0 0 clamp(16px, 2vw, 20px);
  color: var(--ink);
  max-width: none;
}
.lab-about__text {
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  color: var(--ink);
  margin: 0;
  max-width: none;
}

/* ============================================================
   LANES  —  3-column equal cards with clear CTA buttons
   ============================================================ */
.lab-lanes {
  background-color: var(--wl-bg-cream);
  padding-top: var(--wl-section-pad-y);
  padding-bottom: var(--wl-section-pad-y);
}
.lab-lanes .lab-section__title {
  letter-spacing: 0;
  margin-bottom: clamp(28px, 3.8vw, 44px);
}
.lab-lanes__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.lab-lane {
  position: relative;
}
.lab-lane__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--ink);
  background: var(--wl-bg-white);
  border: 1px solid var(--line-strong);
  padding: 24px 22px 22px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 3px 3px 0 var(--shadow);
  transition: border-color 0.35s ease, box-shadow 0.22s cubic-bezier(.2,.6,.2,1);
}
.lab-lane__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--lane-sweep);
  clip-path: circle(0% at 50% 50%);
  pointer-events: none;
  transition: clip-path 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.lab-lane__link > * {
  position: relative;
  z-index: 1;
}
.lab-lane--blog .lab-lane__link {
  --lane-sweep: rgba(24, 95, 165, 0.22);
  --lane-border-hover: #185FA5;
  --lane-cta-hover: #185FA5;
}
.lab-lane--lp .lab-lane__link {
  --lane-sweep: rgba(93, 202, 165, 0.28);
  --lane-border-hover: #5DCAA5;
  --lane-cta-hover: #3da882;
}
.lab-lane--report .lab-lane__link {
  --lane-sweep: rgba(239, 159, 39, 0.28);
  --lane-border-hover: #EF9F27;
  --lane-cta-hover: #EF9F27;
}
.lab-lane__link:hover,
.lab-lane__link:focus-visible {
  border-color: var(--lane-border-hover);
  box-shadow: 5px 5px 0 var(--shadow-hover);
}
.lab-lane__link:hover::before,
.lab-lane__link:focus-visible::before {
  clip-path: circle(150% at 50% 50%);
}
.lab-lane__link:active {
  box-shadow: 1px 1px 0 var(--shadow);
}
.lab-lane__head {
  display: flex;
  align-items: baseline;
  margin-bottom: 12px;
}
.lab-lane__index {
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: var(--wl-text-sm);
  letter-spacing: var(--wl-tracking-ui);
  color: var(--ink-mute);
  line-height: 1;
}
.lab-lane__cat { display: none; }
.lab-lane__title {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: var(--wl-leading-heading);
  letter-spacing: 0;
  margin: 0 0 10px;
  color: var(--ink);
}
.lab-lane__desc {
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  color: var(--ink);
  margin: 0 0 14px;
}
.lab-lane__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lab-lane__tags li {
  font-family: var(--ff-mono);
  font-size: var(--wl-text-xs);
  letter-spacing: var(--wl-tracking-ui);
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: var(--paper-alt);
  font-weight: 500;
  line-height: var(--wl-leading-heading);
}

/* Lane CTA = visible button --------------------------------- */
.lab-lane__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-mono);
  font-size: var(--wl-text-base);
  letter-spacing: var(--wl-tracking-label);
  font-weight: 700;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  align-self: stretch;
}
.lab-lane__cta-label { color: var(--paper); }
.lab-lane__cta-arrow {
  color: var(--paper);
  font-family: var(--ff-mono);
  font-size: var(--wl-text-base);
  transition: transform 0.25s cubic-bezier(.2,.6,.2,1);
}
.lab-lane__link:hover .lab-lane__cta,
.lab-lane__link:focus-visible .lab-lane__cta {
  background: var(--lane-cta-hover, var(--hazard));
  border-color: var(--lane-cta-hover, var(--hazard));
}
.lab-lane__link:hover .lab-lane__cta-arrow { transform: translateX(6px); }

/* ============================================================
   LOG  —  card carousel (PC) / horizontal stack (SP)
   ============================================================ */
.lab-log {
  background: var(--wl-bg-white);
  padding-top: var(--wl-section-pad-y);
  padding-bottom: var(--wl-section-pad-y);
}
.lab-log .lab-section__title {
  letter-spacing: 0;
  margin-bottom: clamp(28px, 3.8vw, 44px);
}
.lab-log__carousel {
  position: relative;
}
.lab-log__viewport {
  overflow: hidden;
  /* 右下の offset shadow が切れない余白（レーンカードと同じ 3px / hover 5px） */
  padding: 0 6px 6px 0;
  margin: 0 -6px -6px 0;
}
.lab-log__track {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: clamp(14px, 1.6vw, 20px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  align-items: stretch;
}
.lab-log__card {
  flex: 0 0 calc((100% - (clamp(14px, 1.6vw, 20px) * 2)) / 3);
  min-width: 0;
  display: flex;
}
.lab-log__card-inner {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  isolation: isolate;
}
.lab-log__card--pending .lab-log__card-inner {
  border-color: var(--line-strong);
  box-shadow: 3px 3px 0 var(--shadow);
}
.lab-log__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: transparent;
}
.lab-log__card-link--static {
  pointer-events: none;
}
.lab-log__card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.lab-log__card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.lab-log__card-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, var(--paper-alt) 25%, transparent 25%) -8px 0 / 16px 16px,
    linear-gradient(225deg, var(--paper-alt) 25%, transparent 25%) -8px 0 / 16px 16px,
    linear-gradient(315deg, var(--paper-alt) 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(45deg, var(--paper-alt) 25%, transparent 25%) 0 0 / 16px 16px,
    var(--paper-warm);
  opacity: 0.72;
}
.lab-log__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: clamp(14px, 1.8vw, 18px);
}

.wl-log-badge,
.wl-archive__cat {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--wl-tracking-ui);
  line-height: var(--wl-leading-heading);
  background: var(--wl-bg-cream);
  color: var(--ink-mute);
}

.wl-log-badge--ai,
.wl-archive__cat--ai {
  background: var(--wl-badge-accent-bg);
  color: var(--wl-badge-accent-fg);
  border-color: var(--wl-badge-accent-border);
}

.wl-log-badge--web,
.wl-archive__cat--web {
  background: var(--wl-badge-neutral-bg);
  color: var(--wl-badge-neutral-fg);
  border-color: var(--wl-badge-neutral-border);
}

.wl-log-badge--ga4,
.wl-archive__cat--ga4 {
  background: var(--wl-badge-ga4-bg);
  color: var(--wl-badge-ga4-fg);
  border-color: var(--wl-badge-ga4-border);
}

.wl-log-badge--default {
  background: var(--wl-bg-cream);
  color: var(--ink-mute);
  border-color: var(--line);
}

.lab-log__card-title {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: var(--wl-leading-heading);
  letter-spacing: 0;
  margin: 0 0 10px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lab-log__card-title-text {
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(var(--hazard), var(--hazard));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.lab-log__card-link:hover .lab-log__card-title-text {
  background-size: 100% 2px;
}
.lab-log__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}
.lab-log__card-tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--wl-tracking-ui);
  line-height: 1.3;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper-alt);
  color: var(--ink);
}
.lab-log__card-tag::before {
  content: "#";
  color: var(--hazard);
  margin-right: 2px;
}
.lab-log__card-excerpt {
  margin: 0;
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lab-log__card-date {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: var(--wl-text-xs);
  letter-spacing: var(--wl-tracking-ui);
  color: var(--ink);
}
.lab-log__card--pending .lab-log__card-excerpt {
  font-style: italic;
  color: var(--ink-soft);
}
.lab-log__nav {
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: var(--wl-bg-white);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--paper-fold);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.lab-log__nav:hover:not(:disabled) {
  border-color: var(--hazard);
  color: var(--hazard);
  transform: translate(-1px, -1px);
}
.lab-log__nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.lab-log__nav--prev { left: 8px; }
.lab-log__nav--next { right: 8px; }

/* ============================================================
   CREED  —  contained dark panel, warm not pure black, smaller
   ============================================================ */
.lab-creed {
  background-color: var(--wl-bg-dark);
  color: var(--dark-paper);
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(48px, 7vw, 80px);
}

.lab-creed__title {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: var(--wl-leading-heading);
  letter-spacing: 0;
  margin: 0 0 clamp(28px, 4vw, 44px);
  color: var(--wl-text-on-dark);
  max-width: none;
}
.lab-creed__title-accent { color: var(--hazard-2); }

.lab-creed__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lab-creed__list li {
  display: grid;
  grid-template-columns: clamp(54px, 6vw, 80px) 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
  padding: clamp(14px, 2vw, 22px) 0;
  border-bottom: 1px dashed var(--dark-fold);
}
.lab-creed__list li:first-child { border-top: 1px dashed var(--dark-fold); }
.lab-creed__num {
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1;
  color: var(--hazard-2);
  letter-spacing: 0;
}
.lab-creed__list p {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  margin: 0;
  color: var(--wl-text-on-dark);
  letter-spacing: 0;
  align-self: center;
}
.lab-creed__list em {
  font-style: normal;
  position: relative;
  display: inline-block;
  padding: 0 0.16em;
  color: var(--wl-bg-dark);
  font-weight: 700;
  z-index: 0;
}
.lab-creed__list em::before {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  top: 0.12em;
  bottom: 0.04em;
  background: var(--highlight);
  z-index: -1;
  transform: skew(-6deg) rotate(-0.6deg);
  opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .lab-lanes__list { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .lab-log {
    padding-bottom: calc(var(--wl-section-pad-y) + 8px);
  }

  .lab-log__carousel {
    overflow: visible;
  }

  .lab-log__viewport {
    overflow: visible;
    padding: 0 6px 8px 0;
    margin: 0;
  }
  .lab-log__track {
    flex-direction: column;
    gap: clamp(14px, 1.6vw, 20px);
    transform: none !important;
  }
  .lab-log__nav {
    display: none;
  }
  .lab-log__card {
    flex: none;
    width: 100%;
    min-width: 0;
    height: auto;
  }
  .lab-log__card-link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    overflow: visible;
  }
  .lab-log__card-media {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    align-self: stretch;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .lab-log__card-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: clamp(14px, 1.8vw, 18px);
    gap: 8px;
  }
  .lab-log__card-excerpt {
    -webkit-line-clamp: 3;
  }
  .lab-log__card-date {
    padding-top: 10px;
    margin-top: auto;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .lab-creed__list li {
    grid-template-columns: clamp(40px, 10vw, 54px) 1fr;
    gap: 8px;
  }
  .lab-creed__title {
    font-size: clamp(20px, 4.8vw, 24px);
    line-height: var(--wl-leading-heading);
  }
}

/* ============================================================
   MOTION
   ============================================================ */
@keyframes lab-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.lab-hero__tag,
.lab-hero__title,
.lab-hero__sub,
.lab-hero__cta,
.lab-hero__cta-note {
  animation: lab-rise 0.7s cubic-bezier(.2,.6,.2,1) both;
}
.lab-hero__title { animation-delay: 0.05s; }
.lab-hero__sub   { animation-delay: 0.22s; }
.lab-hero__cta   { animation-delay: 0.38s; }
.lab-hero__cta-note { animation-delay: 0.52s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lab-log__track { transform: none !important; }
  .lab-hero__sub-arrow,
  .lab-hero__type-char,
  .lab-hero__type-cursor { opacity: 1; transform: none; filter: none; }
  .lab-lane__link::before { transition: none; }
  .lab-lane__link:hover::before,
  .lab-lane__link:focus-visible::before { clip-path: circle(150% at 50% 50%); }
}

/* ============================================================
   SITE HEADER / GLOBAL NAV  —  WF配置: 左ロゴ・右メニュー
   ============================================================ */
.header-container {
  background: var(--wl-bg-white) !important;
  border-bottom: none;
}

@media (min-width: 768px) {
  .header-container {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none;
    border-bottom: none;
    transition: box-shadow 0.25s ease;
  }

  body.admin-bar .header-container {
    top: 32px;
  }

  .header-container-in.hlt-top-menu {
    transition: padding 0.25s ease, gap 0.25s ease, border-color 0.25s ease;
  }

  body.wl-header-is-scrolled .header-container {
    box-shadow: 0 1px 10px rgba(44, 42, 38, 0.05);
  }

  body.wl-header-is-scrolled .header-container-in.hlt-top-menu {
    padding-top: 6px;
    padding-bottom: 8px;
    gap: 8px;
    border-bottom: none;
  }

  body.wl-header-is-scrolled .navi-in a {
    font-size: 14px;
    padding-top: 2px;
    padding-bottom: 2px;
    transition: font-size 0.25s ease, padding 0.25s ease;
  }

  body.wl-header-is-scrolled .header-container-in.hlt-top-menu .navi-in > .menu-mobile a {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: clamp(11px, 2.6vw, 13px);
  }
}

.header-container-in,
.header,
.header-in {
  background: transparent !important;
}

.header-container-in.hlt-top-menu {
  max-width: var(--max-w, 1100px);
  width: 100%;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 28px) 10px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.header-container-in.hlt-top-menu .header {
  flex: 0 0 auto;
}

.header-container-in.hlt-top-menu .header-in {
  padding: 0;
}

.header-container-in.hlt-top-menu .navi {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  background: transparent !important;
  border: 0;
  margin: 0;
}

.header-container-in.hlt-top-menu .navi-in {
  width: 100%;
}

.header-container-in.hlt-top-menu .navi-in > ul {
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 24px);
  flex-wrap: nowrap;
}

.header-container-in.hlt-top-menu .navi-in > ul li {
  width: auto !important;
  flex: 0 0 auto;
}

.header-container-in.hlt-top-menu .tagline {
  display: none !important;
}

/* SVG ロゴ */
.wl-logo .site-name-text-link {
  display: block;
  line-height: 0;
}

.wl-logo .site-logo-image {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(220px, 48vw);
}

.logo.logo-footer.wl-logo .site-logo-image {
  height: 28px;
}

.wl-logo .site-name-text-link:hover .site-logo-image {
  opacity: 0.82;
}

.navi-in > ul li {
  border: 0;
}

.navi-in a {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-sans);
  font-size: var(--wl-text-base);
  font-weight: 700;
  letter-spacing: var(--wl-tracking-ui);
  text-transform: none;
  color: var(--ink-soft);
  padding: 4px 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wl-nav-icon {
  display: none;
}

.navi-in a .item-label {
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  border-bottom: 2px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.25s ease, color 0.2s ease;
}

.navi-in a:hover,
.navi-in a:focus-visible {
  background: transparent;
  color: var(--hazard);
}

.navi-in a:hover .item-label,
.navi-in a:focus-visible .item-label,
.navi-in a:active .item-label {
  border-bottom-color: var(--hazard);
}

/* トップページ: Cocoon 標準サイドバーを非表示 */
body.front-top-page .sidebar,
body.front-top-page #sidebar,
body.front-top-page #sidebar-scroll {
  display: none !important;
}

body.front-top-page.no-sidebar .content .main {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.front-top-page #container,
body.front-top-page #content,
body.front-top-page #content-in,
body.front-top-page .content,
body.front-top-page .main,
body.front-top-page .article,
body.front-top-page .entry-content {
  background: transparent !important;
  background-color: transparent !important;
}

body.front-top-page .content-in {
  max-width: none;
  width: 100%;
  padding: 0;
}

@media screen and (max-width: 1023px) {
  .header-container-in.hlt-top-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 6px clamp(16px, 4vw, 28px) 8px;
    overflow: visible;
  }

  .header-container-in.hlt-top-menu .header,
  .header-container-in.hlt-top-menu .navi {
    flex: 0 0 auto;
    width: 100%;
    overflow: visible;
  }

  .header-container-in.hlt-top-menu .header {
    display: block !important;
    visibility: visible !important;
    flex-shrink: 0;
  }

  .header-container-in.hlt-top-menu .logo,
  .header-container-in.hlt-top-menu .logo-image,
  .header-container-in.hlt-top-menu .wl-logo,
  body.no-mobile-header-logo #header .logo-header.wl-logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .header-container-in.hlt-top-menu .navi-in {
    width: 100%;
    overflow: visible;
  }

  .header-container-in.hlt-top-menu .navi-in > .menu-mobile {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
    gap: 0;
    overflow: visible;
  }

  .header-container-in.hlt-top-menu .navi-in > .menu-mobile li {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    height: auto;
    line-height: 1.3;
    text-align: center;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .header-container-in.hlt-top-menu .navi-in > .menu-mobile li + li {
    border-left: 0;
  }

  .header-container-in.hlt-top-menu .navi-in > .menu-mobile li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1em;
    background: var(--line);
    pointer-events: none;
  }

  .header-container-in.hlt-top-menu .navi-in > .menu-mobile a {
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2px 10px 4px;
    font-size: clamp(12px, 3.2vw, 15px);
    letter-spacing: 0;
    height: 100%;
    overflow: visible;
    white-space: nowrap;
    width: 100%;
  }

  /* SP ナビ：ビュレット（＞）なし・ホバーは PC と同じ赤下線 */
  #navi .navi-in > .menu-mobile li a::after,
  .header-container-in.hlt-top-menu .navi-in > .menu-mobile a::after {
    display: none !important;
    content: none !important;
  }

  .header-container-in.hlt-top-menu .navi-in > .menu-mobile .caption-wrap {
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: visible;
  }

  .wl-logo .site-logo-image {
    height: 26px;
    max-width: min(260px, 78vw);
    width: auto;
    display: block !important;
    visibility: visible !important;
  }
}

@media screen and (max-width: 834px) {
  .header-container-in.hlt-top-menu .navi-in > .menu-mobile a {
    font-size: clamp(11px, 2.9vw, 14px);
    letter-spacing: 0;
    padding: 2px 8px 4px;
    gap: 0.15em;
  }
}

/* SP フッターメニュー — 3ボタン均等配置（767px以下のみ） */
@media (max-width: 767px) {
  .wl-mobile-footer-buttons {
    justify-content: space-around;
  }

  .wl-mobile-footer-buttons .menu-button {
    flex: 1 1 0;
    min-width: 0;
  }

  .wl-mobile-footer-buttons .menu-caption {
    font-size: 10px;
    line-height: 1.25;
    white-space: nowrap;
  }
}

/* タブレット — フッターメニュー非表示 */
@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-footer-menu-buttons,
  .wl-mobile-footer-buttons {
    display: none !important;
  }

  body.mblt-footer-mobile-buttons,
  body.mblt-header-and-footer-mobile-buttons {
    margin-bottom: 0 !important;
  }
}

/* ============================================================
   BLOG ARCHIVE  —  投稿一覧（/blog/）
   prefix: .wl-archive / .wl-sidebar
   ============================================================ */

body.wl-blog-archive-page,
body.wl-experiment-archive-page,
body.wl-tag-archive-page {
  background-color: var(--wl-bg-cream);
}

body.wl-blog-archive-page #container,
body.wl-blog-archive-page #content,
body.wl-blog-archive-page #content-in,
body.wl-blog-archive-page .content,
body.wl-experiment-archive-page #container,
body.wl-experiment-archive-page #content,
body.wl-experiment-archive-page #content-in,
body.wl-experiment-archive-page .content,
body.wl-tag-archive-page #container,
body.wl-tag-archive-page #content,
body.wl-tag-archive-page #content-in,
body.wl-tag-archive-page .content {
  padding-top: 0;
  margin-top: 0;
}

body.wl-blog-archive-page #main,
body.wl-blog-archive-page .main,
body.wl-blog-archive-page .article,
body.wl-experiment-archive-page #main,
body.wl-experiment-archive-page .main,
body.wl-experiment-archive-page .article,
body.wl-tag-archive-page #main,
body.wl-tag-archive-page .main,
body.wl-tag-archive-page .article {
  background: transparent;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}

body.wl-blog-archive-page .article-header,
body.wl-blog-archive-page .entry-content > p:first-child:empty,
body.wl-experiment-archive-page .article-header,
body.wl-experiment-archive-page .entry-content > p:first-child:empty,
body.wl-tag-archive-page .article-header,
body.wl-tag-archive-page .entry-content > p:first-child:empty {
  display: none;
}

body.wl-blog-archive-page .entry-content,
body.wl-experiment-archive-page .entry-content,
body.wl-tag-archive-page .entry-content {
  padding: 0;
  margin: 0;
}

body.wl-blog-archive-page .content-in,
body.wl-experiment-archive-page .content-in,
body.wl-tag-archive-page .content-in {
  max-width: var(--max-w);
  padding-top: 0;
}

body.wl-blog-archive-page.no-sidebar .content .main,
body.wl-experiment-archive-page.no-sidebar .content .main,
body.wl-tag-archive-page.no-sidebar .content .main {
  width: 100%;
  max-width: none;
}

/* Shared panel — TOP log carousel + archive cards ---------------- */
.wl-panel,
.lab-log__card-inner,
.wl-blog-archive__item {
  background: var(--wl-bg-white);
  border: 1px solid var(--line-strong);
  box-shadow: 3px 3px 0 var(--shadow);
  transition: border-color 0.35s ease, box-shadow 0.22s cubic-bezier(.2,.6,.2,1);
}

.wl-panel:has(a:hover),
.wl-panel:has(a:focus-visible),
.lab-log__card-inner:has(.lab-log__card-link:hover),
.lab-log__card-inner:has(.lab-log__card-link:focus-visible),
.wl-blog-archive__item:has(.wl-blog-archive__link:hover),
.wl-blog-archive__item:has(.wl-blog-archive__link:focus-visible) {
  border-color: var(--wl-panel-hover-border);
  box-shadow: 5px 5px 0 var(--shadow-hover);
}

.wl-panel:has(a:active),
.lab-log__card-inner:has(.lab-log__card-link:active),
.wl-blog-archive__item:has(.wl-blog-archive__link:active) {
  box-shadow: 1px 1px 0 var(--shadow);
}

.wl-archive {
  --wl-archive-gutter: clamp(16px, 4vw, 28px);
  font-family: var(--ff-sans);
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  color: var(--ink);
  padding: clamp(8px, 1.2vw, 14px) 0 clamp(48px, 6vw, 72px);
}

.wl-archive__header {
  padding: 0 var(--wl-archive-gutter) clamp(16px, 2.5vw, 24px);
  border-bottom: 1px solid var(--line);
}

.wl-archive__title {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: var(--wl-h1-size);
  line-height: var(--wl-leading-heading);
  margin: 0 0 6px;
  color: var(--ink);
}

.wl-archive__subtitle {
  margin: 0;
  font-size: var(--wl-text-sm);
  color: var(--ink-soft);
}

.wl-archive__filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px var(--wl-archive-gutter);
  border-bottom: 1px solid var(--line);
}

.wl-archive__filter-label {
  font-family: var(--ff-mono);
  font-size: var(--wl-text-xs);
  letter-spacing: var(--wl-tracking-ui);
  color: var(--ink-mute);
  margin-right: 4px;
}

.wl-archive__filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--wl-bg-white);
  color: var(--ink-soft);
  font-size: var(--wl-text-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wl-archive__filter-tab:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.wl-archive__filter-tab--active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--wl-bg-white);
}

.wl-archive__filter-tab--active:hover {
  color: var(--wl-bg-white);
}

.wl-archive__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
  gap: 0;
  align-items: start;
}

.wl-archive__main {
  padding: clamp(16px, 2.5vw, 24px) var(--wl-archive-gutter);
  border-right: 1px solid var(--line);
  min-width: 0;
}

/* Blog archive — text-only cards, always 1 column ---------------- */
.wl-blog-archive__list {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 18px);
  padding: 0 6px 6px 0;
  margin: 0 -6px -6px 0;
}

.wl-blog-archive__item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.wl-blog-archive__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(14px, 1.8vw, 18px);
  text-decoration: none;
  color: inherit;
}

.wl-blog-archive__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.wl-blog-archive__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wl-blog-archive__title {
  margin: 0;
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: var(--wl-leading-heading);
  color: var(--ink);
  transition: color 0.2s ease;
}

.wl-blog-archive__link:hover .wl-blog-archive__title {
  color: var(--hazard);
}

.wl-blog-archive__excerpt {
  margin: 0;
  font-size: var(--wl-text-sm);
  line-height: 1.55;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Experiment archive — TOP log card grid ------------------------- */
.wl-experiment-archive__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  padding: 0 6px 6px 0;
  margin: 0 -6px -6px 0;
}

.wl-experiment-archive__list .lab-log__card-inner {
  height: 100%;
}

.wl-archive__new {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 5px 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--wl-tracking-ui);
  line-height: 1.3;
  color: var(--wl-bg-white);
  background: var(--hazard);
  pointer-events: none;
}

.wl-single__nav-thumb.wl-archive__thumb--generated {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: clamp(52px, 12vw, 56px);
  height: auto;
}

.wl-single__nav-thumb.wl-archive__thumb--generated .wl-single__nav-thumb-img {
  object-fit: contain;
}

.wl-archive__date {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: var(--wl-text-xs);
  letter-spacing: var(--wl-tracking-ui);
  color: var(--ink);
}

.wl-log-card__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wl-experiment__status--archive {
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 2px;
}

.wl-archive__empty {
  margin: 0;
  padding: 24px 0;
  color: var(--ink-soft);
}

.wl-tag-archive__group + .wl-tag-archive__group {
  margin-top: 44px;
}

.wl-tag-archive__group-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-serif);
  font-size: var(--wl-h3-size);
  font-weight: 700;
  line-height: var(--wl-leading-heading);
  color: var(--ink);
}

.wl-archive__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 0 4px;
}

.wl-archive__pagination .wl-archive__page-num,
.wl-archive__pagination a.wl-archive__page-num,
.wl-archive__pagination span.wl-archive__page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: var(--wl-text-sm);
  text-decoration: none;
  line-height: var(--wl-leading-heading);
}

.wl-archive__pagination .wl-archive__page-num--active,
.wl-archive__pagination span.wl-archive__page-num--active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--wl-bg-white);
}

.wl-archive__pagination .dots {
  color: var(--ink-mute);
  font-size: var(--wl-text-sm);
  padding: 0 2px;
}

/* Sidebar — 一覧・記事共通 ----------------------------------- */
.wl-sidebar,
.wl-single__sidebar {
  padding: clamp(16px, 2.5vw, 24px) clamp(12px, 2vw, 16px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wl-single__sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  gap: clamp(28px, 3.5vw, 36px);
  padding: clamp(16px, 2.5vw, 24px) clamp(8px, 1.5vw, 12px) clamp(16px, 2.5vw, 24px) 0;
}

.wl-sidebar__block,
.wl-single__sidebar-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wl-sidebar__label,
.wl-single__sidebar-label {
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--wl-leading-heading);
  text-transform: none;
  color: var(--ink);
}

.wl-sidebar__about,
.wl-single__about {
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  color: var(--ink);
}

.wl-sidebar__about p,
.wl-single__about p {
  margin: 0 0 8px;
}

.wl-sidebar__about a:not(.wl-single__sidebar-btn),
.wl-single__about a:not(.wl-single__sidebar-btn),
.wl-sidebar__report-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--wl-text-sm);
  font-weight: 700;
}

.wl-sidebar__about a:not(.wl-single__sidebar-btn):hover,
.wl-single__about a:not(.wl-single__sidebar-btn):hover,
.wl-sidebar__report-link:hover {
  color: var(--hazard);
}

.wl-sidebar__report-link span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.wl-single__about-action {
  margin: 4px 0 0;
}

.wl-single__sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--ff-sans);
  font-size: var(--wl-text-sm);
  line-height: var(--wl-leading-heading);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wl-single__sidebar-btn--x {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--wl-bg-white);
  font-weight: 400;
}

.wl-single__sidebar-btn--x:hover,
.wl-single__sidebar-btn--x:focus-visible {
	background: var(--wl-bg-white);
	border-color: var(--ink);
	color: var(--ink);
}

.wl-single__sidebar-btn--report {
  background: var(--wl-bg-white);
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 700;
}

.wl-single__sidebar-btn--report:hover {
  border-color: var(--hazard);
  color: var(--hazard);
}

.wl-single__sidebar-block--toc:not([hidden]) {
  padding: clamp(14px, 2vw, 18px);
  border: 1px solid var(--line-strong);
  margin-bottom: clamp(20px, 3vw, 28px);
  gap: 12px;
}

.wl-single__sidebar-block--report {
  gap: 10px;
}

.wl-sidebar__block--report-link {
  margin-top: clamp(20px, 3vw, 32px);
}

.wl-sidebar__search {
  position: relative;
}

.wl-sidebar__search .search-form,
.wl-sidebar__search form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0;
  background: var(--wl-bg-white);
  overflow: hidden;
}

.wl-sidebar__search .widget {
  margin: 0;
  padding: 0;
  border: 0;
}

.wl-sidebar__search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wl-sidebar__search .search-field {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  font-family: var(--ff-sans);
  font-size: var(--wl-text-base);
  color: var(--ink);
  outline: none;
  padding: 8px 10px;
  margin: 0;
  float: none;
  position: static;
}

.wl-sidebar__search .search-field::placeholder {
  color: var(--ink-mute);
}

.wl-sidebar__search .search-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: auto;
  height: auto;
  min-height: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink-mute);
  font-size: var(--wl-text-sm);
  cursor: pointer;
  padding: 8px 12px;
  margin: 0;
  line-height: 1;
  float: none;
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
}

.wl-sidebar__search .search-submit:hover {
  color: var(--ink);
}

.wl-sidebar__exp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wl-sidebar__exp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--wl-text-sm);
  color: var(--ink);
  padding: 8px 10px;
  background: var(--wl-bg-white);
  border-radius: 0;
  border: 1px solid var(--line-strong);
}

.wl-sidebar__exp-dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--hazard);
  flex-shrink: 0;
}

.wl-sidebar__cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wl-sidebar__cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-radius: 0;
  font-size: var(--wl-text-sm);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease;
}

.wl-sidebar__cats > li:last-child .wl-sidebar__cat-link {
  border-bottom: 0;
}

.wl-sidebar__cat-link:hover {
  color: var(--hazard);
}

.wl-sidebar__cat-count {
  font-family: var(--ff-mono);
  font-size: var(--wl-text-xs);
  color: var(--ink-mute);
}

.wl-sidebar__widget > :first-child {
  margin-top: 0;
}

.wl-sidebar__widget > :last-child {
  margin-bottom: 0;
}

/* PC: experiment archive 2-column grid --------------------- */
@media (min-width: 768px) {
  .wl-experiment-archive__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* SP: single column ---------------------------------------- */
@media (max-width: 767px) {
  .wl-archive {
    padding-top: 24px;
  }

  .wl-archive__layout {
    grid-template-columns: 1fr;
  }

  .wl-archive__main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .wl-sidebar {
    padding-left: var(--wl-archive-gutter);
    padding-right: var(--wl-archive-gutter);
  }
}

@media (max-width: 480px) {
  .wl-archive__filter {
    gap: 6px;
  }

  .wl-archive__filter-tab {
    font-size: var(--wl-text-xs);
    padding: 4px 10px;
  }
}

/* ============================================================
   SINGLE POST  —  投稿記事ページ
   prefix: .wl-single
   ============================================================ */

body.wl-single-post-page {
  background-color: var(--wl-bg-white);
}

body.wl-single-post-page #main,
body.wl-single-post-page .main,
body.wl-single-post-page .article {
  background: transparent;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}

body.wl-single-post-page .article-header,
body.wl-single-post-page .under-entry-content,
body.wl-single-post-page .entry-content > p:first-child:empty {
  display: none;
}

body.wl-single-post-page .entry-content {
  padding: 0;
  margin: 0;
}

body.wl-single-post-page .content-in {
  max-width: var(--max-w);
}

body.wl-single-post-page.no-sidebar .content .main {
  width: 100%;
  max-width: none;
}

.wl-single {
  --wl-single-gutter: clamp(16px, 4vw, 28px);
  font-family: var(--ff-sans);
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  color: var(--ink);
  padding: clamp(20px, 3vw, 32px) 0 clamp(48px, 6vw, 72px);
}

.wl-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
  gap: clamp(32px, 4.5vw, 48px);
  align-items: start;
}

.wl-single__main {
  padding: clamp(16px, 2.5vw, 24px) var(--wl-single-gutter);
  border-right: 1px solid var(--line);
  min-width: 0;
}

.wl-single__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.wl-single__title {
  margin: 0 0 10px;
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: var(--wl-h1-size);
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink);
}

.wl-single__date {
  font-size: var(--wl-text-sm);
  color: var(--ink-mute);
}

.wl-single__eyecatch {
  margin: 0 0 clamp(24px, 3.5vw, 36px);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-alt);
}

.wl-single__eyecatch-img {
  display: block;
  width: 100%;
  height: auto;
}

.wl-single__content {
  margin-bottom: clamp(20px, 2.5vw, 28px);
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  color: var(--ink);
}

.wl-single__content > :first-child {
  margin-top: 0;
}

.wl-single__content > :last-child {
  margin-bottom: 0;
}

.wl-single__content h2 {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: var(--wl-h2-size);
  line-height: var(--wl-leading-heading);
  margin: clamp(32px, 4vw, 44px) 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  scroll-margin-top: var(--wl-scroll-offset);
}

.wl-single__content h3 {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: var(--wl-h3-size);
  line-height: var(--wl-leading);
  margin: clamp(24px, 3vw, 32px) 0 12px;
  color: var(--ink);
  scroll-margin-top: var(--wl-scroll-offset);
}

.wl-single__content h2 [id],
.wl-single__content h3 [id] {
  scroll-margin-top: var(--wl-scroll-offset);
}

.wl-single__content p,
.wl-single__content ul,
.wl-single__content ol,
.wl-single__content li {
  color: var(--ink);
}

.wl-single__content p,
.wl-single__content ul,
.wl-single__content ol {
  margin: 0 0 1.2em;
  font-size: var(--wl-text-base);
}

.wl-single__content ul,
.wl-single__content ol {
  padding-left: 1.4em;
}

.wl-single__content li + li {
  margin-top: 0.35em;
}

.wl-single__content a {
  color: var(--wl-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wl-single__content a:hover {
	color: var(--wl-link-hover);
}

/* 本文目次 — 黒＋下線（本文と同系、hover のみリンク色） */
.wl-single__content .toc a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wl-single__content .toc a:hover,
.wl-single__content .toc a:focus-visible {
	color: var(--wl-link-hover);
}

.wl-single__content blockquote {
  margin: 1.6em 0;
  padding: 14px 18px;
  background: var(--paper-alt);
  color: var(--ink);
  font-size: var(--wl-text-base);
}

.wl-single__content pre,
.wl-single__content code {
  font-family: var(--ff-mono);
  font-size: 0.92em;
}

.wl-single__content pre {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 6px;
  background: #2a2825;
  color: var(--wl-text-on-dark);
}

.wl-single__content :not(pre) > code {
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: var(--paper-alt);
}

.wl-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* マーカー装飾 — ブログ・実験ログ本文（Cocoon 拡張スタイル推奨） */
.wl-single__content .marker {
  background-color: rgba(240, 160, 40, 0.22);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.wl-single__content .marker-under {
  background: linear-gradient(transparent 62%, rgba(240, 160, 40, 0.32) 62%);
  color: inherit;
  padding: 0 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.wl-single__content .marker-red,
.wl-single__content .marker-blue,
.wl-single__content .marker-under-red,
.wl-single__content .marker-under-blue {
  color: inherit;
}

/* WordPress 標準ハイライト（水滴）— 文字色が付くため非推奨。使った場合の可読性担保 */
.wl-single__content .wp-block-paragraph mark,
.wl-single__content .wp-block-list mark,
.wl-single__content p mark,
.wl-single__content mark {
  background: rgba(240, 160, 40, 0.2) !important;
  color: var(--ink) !important;
  padding: 0 2px;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Share ------------------------------------------------------ */
.wl-single__share {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: clamp(28px, 4vw, 40px);
  margin-bottom: clamp(32px, 4vw, 48px);
  padding-top: 0;
}

.wl-single__share-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.wl-single__share-item {
  position: relative;
  display: inline-flex;
}

.wl-single__share-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--wl-bg-white);
  font-size: 11px;
  line-height: var(--wl-leading-heading);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 3;
}

.wl-single__share-item[data-tooltip]:hover::after,
.wl-single__share-item[data-tooltip]:focus-within::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wl-single__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--wl-bg-white);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.wl-single__share-btn:hover {
  color: var(--ink);
  border-color: var(--ink-mute);
  background: var(--paper-alt);
}

.wl-single__share-btn.is-copied {
  color: var(--hazard);
  border-color: var(--hazard);
}

.wl-single__share-feedback {
  font-size: var(--wl-text-xs);
  color: var(--ink-mute);
}

.wl-single__share-feedback[hidden] {
  display: none;
}

.wl-single__footer {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 32px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}

.wl-single__tags,
.wl-single__sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wl-single__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  background: var(--paper-alt);
  font-size: var(--wl-text-sm);
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.wl-single__tag:hover {
  border-color: var(--hazard);
  color: var(--hazard);
}

.wl-single__nav {
  padding: clamp(16px, 2.5vw, 24px) clamp(14px, 2.5vw, 20px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--wl-bg-cream);
}

.wl-single__nav-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.wl-single__nav-grid--split {
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  column-gap: clamp(16px, 2.5vw, 24px);
}

.wl-single__nav-cell {
  min-width: 0;
}

.wl-single__nav-cell--prev {
  padding-right: clamp(4px, 1vw, 8px);
}

.wl-single__nav-cell--next {
  padding-left: clamp(4px, 1vw, 8px);
}

.wl-single__nav-divider {
  width: 1px;
  background: var(--line);
  align-self: stretch;
}

.wl-single__nav-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.wl-single__nav-link:hover .wl-single__nav-title {
  color: var(--hazard);
}

.wl-single__nav-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: var(--wl-text-xs);
  font-weight: 700;
  letter-spacing: var(--wl-tracking-ui);
  color: var(--ink);
}

.wl-single__nav-cell--next .wl-single__nav-heading {
  justify-content: flex-end;
}

.wl-single__nav-icon {
  font-family: var(--ff-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--ink);
}

.wl-single__nav-card {
  display: grid;
  grid-template-columns: clamp(52px, 12vw, 56px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.wl-single__nav-cell--next .wl-single__nav-card {
  grid-template-columns: minmax(0, 1fr) clamp(52px, 12vw, 56px);
}

.wl-single__nav-cell--next .wl-single__nav-thumb {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.wl-single__nav-cell--next .wl-single__nav-title {
  grid-column: 1;
  grid-row: 1;
}

.wl-single__nav-thumb {
  display: block;
  overflow: hidden;
  background: var(--paper-alt);
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: clamp(52px, 12vw, 56px);
}

.wl-single__nav-thumb:not(.wl-archive__thumb--generated) .wl-single__nav-thumb-img {
  object-fit: cover;
  object-position: center;
}

.wl-single__nav-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wl-single__nav-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, var(--paper-alt) 25%, transparent 25%) -8px 0 / 16px 16px,
    linear-gradient(225deg, var(--paper-alt) 25%, transparent 25%) -8px 0 / 16px 16px,
    var(--paper-warm);
}

.wl-single__nav-title {
  min-width: 0;
  font-size: var(--wl-text-sm);
  font-weight: 700;
  line-height: var(--wl-leading-heading);
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wl-single__nav-cell--next .wl-single__nav-title {
  text-align: right;
}

.wl-single__nav--no-thumb .wl-single__nav-card,
.wl-single__nav--no-thumb .wl-single__nav-cell--next .wl-single__nav-card {
  grid-template-columns: minmax(0, 1fr);
}

.wl-single__nav--no-thumb .wl-single__nav-cell--next .wl-single__nav-title {
  grid-column: auto;
  grid-row: auto;
}

.wl-single__related-title {
  margin: 0 0 12px;
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink);
}

.wl-single__related-list {
  padding: 0 6px 6px 0;
  margin: 0 -6px -6px 0;
}

.wl-single__related-list.wl-blog-archive__list {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 18px);
}

.wl-single__related-list.wl-experiment-archive__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.wl-single__related-list .lab-log__card-inner {
  height: auto;
}

@media (min-width: 768px) {
  .wl-single__related-list.wl-experiment-archive__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Sidebar — 記事詳細（TOC 等） -------------------------------- */
.wl-single__sidebar-block--toc[hidden] {
  display: none !important;
}

/* TOC+ ウィジェットはテーマ側タイムラインと重複するため非表示 */
.wl-single__sidebar .toc_widget,
.wl-single__sidebar .widget_toc,
.wl-single__sidebar .widget_toc-widget,
.wl-single__sidebar .wl-single__sidebar-block:has(.toc_widget_list) {
  display: none !important;
}

.wl-toc-timeline {
  --wl-toc-rail-w: 2px;
  --wl-toc-marker-size: 10px;
  --wl-toc-track-col: 22px;
  --wl-toc-marker-idle: #d8d3c8;
  --wl-toc-marker-passed: #ecc9b5;
  --wl-toc-marker-active: var(--hazard);
  position: relative;
}

.wl-toc-timeline__rail {
  position: absolute;
  left: calc((var(--wl-toc-track-col) - var(--wl-toc-rail-w)) / 2);
  top: 0;
  width: var(--wl-toc-rail-w);
  height: 0;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.wl-toc-timeline__progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  border-radius: inherit;
  background: var(--hazard);
  transition: height 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.wl-toc-timeline__list,
.wl-single__sidebar .toc_widget_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

.wl-toc-timeline__item {
  display: grid;
  grid-template-columns: var(--wl-toc-track-col) minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  padding: 6px 0;
}

.wl-toc-timeline__marker {
  display: block;
  width: var(--wl-toc-marker-size);
  height: var(--wl-toc-marker-size);
  justify-self: center;
  align-self: start;
  margin-top: 0.38em;
  border-radius: 50%;
  border: none;
  background: var(--wl-toc-marker-idle);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.wl-toc-timeline__item--h3 .wl-toc-timeline__marker {
  --wl-toc-marker-size: 8px;
  margin-top: 0.42em;
}

.wl-toc-timeline__item--h3 .wl-toc-timeline__link {
  padding-left: 2px;
  font-size: var(--wl-text-xs);
  line-height: 1.55;
}

.wl-toc-timeline__link,
.wl-single__sidebar .toc_widget_list a {
	display: block;
	padding: 0;
	border-radius: 0;
	color: var(--ink-soft);
	text-decoration: none;
	line-height: var(--wl-leading);
	font-size: var(--wl-text-sm);
	transition: color 0.2s ease, font-weight 0.2s ease;
}

.wl-toc-timeline__link:hover,
.wl-toc-timeline__link:focus-visible,
.wl-single__sidebar .toc_widget_list a:hover,
.wl-single__sidebar .toc_widget_list a:focus-visible {
	color: var(--ink);
	background: transparent;
}

.wl-toc-timeline__item.is-passed .wl-toc-timeline__marker {
  background: var(--wl-toc-marker-passed);
}

.wl-toc-timeline__item.is-active .wl-toc-timeline__marker {
  background: var(--wl-toc-marker-active);
  box-shadow: 0 0 0 3px rgba(200, 91, 44, 0.18);
}

.wl-toc-timeline__item.is-active .wl-toc-timeline__link,
.wl-toc-timeline__link.is-active {
  color: var(--ink);
  font-weight: 700;
}

.wl-toc-timeline__item.is-passed .wl-toc-timeline__link {
  color: var(--ink-soft);
}

.wl-toc-timeline__item:not(.is-passed):not(.is-active) .wl-toc-timeline__link {
	color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .wl-toc-timeline__progress {
    transition: none;
  }

  .wl-toc-timeline__marker {
    transition: none;
  }
}

@media (max-width: 767px) {
  .wl-single__layout {
    grid-template-columns: 1fr;
  }

  .wl-single__main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .wl-single__sidebar {
    position: static;
    padding-left: var(--wl-single-gutter);
    padding-right: var(--wl-single-gutter);
  }

  .wl-single__nav-grid--split {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .wl-single__nav-divider {
    width: 100%;
    height: 1px;
  }

  .wl-single__nav-cell--next .wl-single__nav-heading {
    justify-content: flex-start;
  }

  .wl-single__nav-cell--next .wl-single__nav-title {
    text-align: left;
  }

  .wl-single__nav-cell--prev,
  .wl-single__nav-cell--next {
    padding-left: 0;
    padding-right: 0;
  }

  /* SP: ページ内サイドバーはドロワー経由。本文下の重複表示を防ぐ */
  body.wl-custom-sidebar-layout:not(.wl-sidebar-drawer-open) .wl-sidebar,
  body.wl-custom-sidebar-layout:not(.wl-sidebar-drawer-open) .wl-single__sidebar {
    display: none;
  }
}

/* Cocoon モバイルドロワー内のカスタムサイドバー */
body.wl-custom-sidebar-layout .sidebar-menu-content > .widget,
body.wl-custom-sidebar-layout .sidebar-menu-content #slide-in-sidebar,
body.wl-custom-sidebar-layout .sidebar-menu-content #sidebar.wl-sidebar-shell {
  display: none !important;
}

.sidebar-menu-content .wl-sidebar,
.sidebar-menu-content .wl-single__sidebar,
#slide-in-sidebar .wl-sidebar,
#slide-in-sidebar .wl-single__sidebar {
  display: flex !important;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 16px 20px 24px;
  -webkit-overflow-scrolling: touch;
}

.sidebar-menu-content .wl-sidebar--in-drawer,
.sidebar-menu-content .wl-single__sidebar.wl-sidebar--in-drawer {
  width: 100%;
}

.sidebar-menu-content .wl-toc-timeline {
  max-height: none;
}

/* ============================================================
   EXPERIMENT REPORT  —  実験ログ（/report/）
   prefix: .wl-experiment-* / .wl-experiment-summary
   ============================================================ */

.wl-experiment__metric {
  margin: 0;
  font-family: var(--ff-mono);
  font-size: var(--wl-text-sm);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--hazard);
  line-height: var(--wl-leading-heading);
}

.wl-experiment__header-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.wl-experiment__status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 2px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--wl-tracking-ui);
  line-height: var(--wl-leading);
  border: 1px solid transparent;
}

.wl-experiment__status--prep {
  color: var(--ink-soft);
  background: var(--wl-bg-cream);
  border-color: var(--line);
}

.wl-experiment__status--active {
  color: var(--hazard);
  background: rgba(200, 91, 44, 0.08);
  border-color: rgba(200, 91, 44, 0.25);
}

.wl-experiment__status--done {
  color: var(--ink-soft);
  background: var(--wl-badge-muted-bg);
  border-color: var(--wl-badge-muted-border);
}

.wl-experiment__status-counts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wl-experiment__status-count + .wl-experiment__status-count {
  margin-top: 4px;
}

.wl-experiment__status-count a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-size: var(--wl-text-sm);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease;
}

.wl-experiment__status-label::after {
  content: ':';
  margin-left: 2px;
}

.wl-experiment__status-value {
  min-width: 2.75em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wl-experiment__status-count:last-child a {
  border-bottom: 0;
}

.wl-experiment__status-count a:hover {
  color: var(--hazard);
}

.wl-experiment__status-count strong {
  font-family: var(--ff-mono);
  font-weight: 700;
  color: var(--ink);
}

/* 詳細 — 実験サマリーボックス */
.wl-experiment-summary {
  margin: clamp(24px, 4vw, 36px) 0 0;
  padding: clamp(16px, 2.5vw, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wl-bg-cream);
}

.wl-experiment-summary__title {
  margin: 0 0 14px;
  font-family: var(--ff-serif);
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 700;
  line-height: var(--wl-leading-heading);
  color: var(--ink);
}

.wl-experiment-summary__list {
  margin: 0;
  display: grid;
  gap: 0;
}

.wl-experiment-summary__row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.wl-experiment-summary__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.wl-experiment-summary__row:first-child {
  padding-top: 0;
}

.wl-experiment-summary__row dt {
  margin: 0;
  font-family: var(--ff-mono);
  font-size: var(--wl-text-xs);
  font-weight: 700;
  letter-spacing: var(--wl-tracking-ui);
  color: var(--ink-mute);
  line-height: 1;
  white-space: nowrap;
}

.wl-experiment-summary__row dd {
  margin: 0;
  min-width: 0;
  min-height: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  color: var(--ink);
}

.wl-experiment-summary__row--multiline {
  align-items: start;
}

.wl-experiment-summary__row--multiline dt {
  padding-top: 0.2em;
}

.wl-experiment-summary__row--multiline dd {
  display: block;
  min-height: 0;
}

.wl-experiment-summary__metric {
  font-family: var(--ff-mono);
  font-weight: 700;
  line-height: var(--wl-leading);
  color: var(--hazard);
}

@media (max-width: 480px) {
  .wl-experiment-summary__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }

  .wl-experiment-summary__row dt {
    line-height: var(--wl-leading-heading);
  }

  .wl-experiment-summary__row dd {
    min-height: 0;
  }

  .wl-experiment-summary__row--multiline dt {
    padding-top: 0;
  }
}

/* ============================================================
   SITE FOOTER  —  免責 / コピーライト
   ============================================================ */
#footer.footer-container {
  background: var(--wl-bg-white) !important;
  border-top: 0;
  margin-top: 0;
}

#footer-in.footer-in {
  max-width: var(--max-w);
  padding: 0;
}

.wl-footer-bottom {
  margin-top: 0;
  padding: 10px clamp(16px, 4vw, 28px) 12px;
}

.wl-footer-bottom.footer-bottom {
  margin-top: 0;
}

.wl-footer-bottom__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.75em 1.25em;
  text-align: right;
}

.wl-footer-bottom__link {
  font-family: var(--ff-sans);
  font-size: var(--wl-text-xs);
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: underline dotted var(--line-strong);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.wl-footer-bottom__link:hover,
.wl-footer-bottom__link:focus-visible {
  color: var(--hazard);
  text-decoration-color: var(--hazard);
}

.wl-footer-bottom__credit {
  font-family: var(--ff-mono);
  font-size: var(--wl-text-xs);
  letter-spacing: var(--wl-tracking-ui);
  color: var(--ink-mute);
  white-space: nowrap;
}


/* ============================================================
   404 NOT FOUND
   prefix: .wl-not-found
   ============================================================ */

body.wl-not-found-page {
  background-color: var(--wl-bg-white);
}

body.wl-not-found-page #container,
body.wl-not-found-page #content,
body.wl-not-found-page #content-in,
body.wl-not-found-page .content {
  padding-top: 0;
  margin-top: 0;
}

body.wl-not-found-page #main,
body.wl-not-found-page .main,
body.wl-not-found-page .article,
body.wl-not-found-page .entry-content {
  background: transparent;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}

body.wl-not-found-page .article-header,
body.wl-not-found-page .breadcrumb {
  display: none;
}

body.wl-not-found-page .content-in {
  max-width: var(--max-w);
}

body.wl-not-found-page.no-sidebar .content .main {
  width: 100%;
  max-width: none;
}

.wl-not-found {
  font-family: var(--ff-sans);
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  color: var(--ink);
  padding: clamp(12px, 2vw, 20px) 0 clamp(64px, 8vw, 96px);
}

.wl-not-found__inner {
  padding: 0 clamp(16px, 4vw, 28px);
  max-width: 560px;
}

.wl-not-found__code {
  margin: 0 0 10px;
  font-family: var(--ff-mono);
  font-size: var(--wl-text-xs);
  font-weight: 700;
  letter-spacing: var(--wl-tracking-label);
  color: var(--hazard);
}

.wl-not-found__title {
  margin: 0 0 12px;
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: var(--wl-h1-size);
  line-height: var(--wl-leading-heading);
  color: var(--ink);
}

.wl-not-found__message {
  margin: 0 0 clamp(24px, 3vw, 32px);
  color: var(--ink);
}

.wl-not-found__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: clamp(16px, 2.5vw, 24px);
  border-top: 1px solid var(--line);
}

.wl-not-found__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--wl-text-sm);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.wl-not-found__link::after {
  content: "\203A";
  font-family: var(--ff-mono);
  color: var(--ink-mute);
}

.wl-not-found__link:hover,
.wl-not-found__link:hover::after {
  color: var(--hazard);
}


/* ============================================================
 * 固定ページ — 日付メタ情報を非表示
 * body.page クラスで固定ページのみに限定し、投稿記事には影響しない
 * ============================================================ */
.page .article-header-metadata-wrap,
.page .article-header-metadata,
.page .post-date,
.page .post-update,
.page .date,
.page time.updated,
.page time.entry-date {
  display: none !important;
}

/* ============================================================
 * 固定ページ — パンくずリストを非表示
 * ブログ記事のパンくずには影響しない
 * ============================================================ */
.page .breadcrumb {
  display: none !important;
}

/* ============================================================
 * お問い合わせ（/contact/）
 * ============================================================ */
.wl-contact__body {
  padding: clamp(32px, 6vw, 60px) var(--wl-archive-gutter);
  max-width: 680px;
}

.wl-contact__body p,
.wl-contact__body li,
.wl-contact__body a {
  font-family: var(--ff-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
}

.wl-contact__body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.wl-contact__body a:hover {
  color: var(--hazard);
}

/* ============================================================
 * 実験 LP インデックス（/lp/）
 * prefix: .wl-lp-index
 * ============================================================ */

body.wl-lp-index-page {
  background-color: var(--wl-bg-cream);
}

body.wl-lp-index-page #container,
body.wl-lp-index-page #content,
body.wl-lp-index-page #content-in,
body.wl-lp-index-page .content {
  padding-top: 0;
  margin-top: 0;
}

body.wl-lp-index-page #main,
body.wl-lp-index-page .main,
body.wl-lp-index-page .article {
  background: transparent;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}

body.wl-lp-index-page .article-header,
body.wl-lp-index-page .entry-content > p:first-child:empty {
  display: none;
}

body.wl-lp-index-page .entry-content {
  padding: 0;
  margin: 0;
}

body.wl-lp-index-page .content-in {
  max-width: var(--max-w);
  padding-top: 0;
}

body.wl-lp-index-page.no-sidebar .content .main {
  width: 100%;
  max-width: none;
}

.wl-lp-index__header {
  margin-bottom: 0;
}

.wl-lp-index__about {
  margin: 24px var(--wl-archive-gutter) clamp(28px, 4vw, 40px);
  padding: 0;
}

.wl-lp-index__about p {
  margin: 0;
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  color: var(--ink);
}

.wl-lp-index__list {
  padding: 0 var(--wl-archive-gutter);
}

.wl-lp-index__section-heading {
  margin: 0 0 20px;
  font-family: var(--ff-serif);
  font-size: var(--wl-h2-size);
  font-weight: 700;
  line-height: var(--wl-leading-heading);
  color: var(--ink);
}

.wl-lp-index__cards {
  display: grid;
  gap: clamp(14px, 1.6vw, 20px);
}

.wl-lp-index__card {
  background: var(--wl-bg-white);
}

.wl-lp-index__name[id] {
  scroll-margin-top: var(--wl-scroll-offset);
}

.wl-lp-index__card-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.wl-lp-index__media {
  min-width: 0;
  padding-top: 60px;
  padding-left: clamp(18px, 2.5vw, 24px);
  padding-bottom: clamp(18px, 2.5vw, 24px);
}

.wl-lp-index__thumbnail {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-alt);
}

.wl-lp-index__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.wl-lp-index__thumbnail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(44, 42, 38, 0.025) 10px,
      rgba(44, 42, 38, 0.025) 11px
    ),
    var(--paper-alt);
}

.wl-lp-index__thumbnail-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: var(--wl-tracking-ui);
  color: var(--ink-mute);
}

.wl-lp-index__thumbnail-name {
  font-family: var(--ff-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.wl-lp-index__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wl-lp-index__meta {
  --wl-lp-index-inset: clamp(18px, 2.5vw, 24px);
  padding: var(--wl-lp-index-inset);
}

.wl-lp-index__status-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.wl-lp-index .wl-experiment__status {
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 2px;
}

.wl-lp-index .wl-experiment__status--prep {
  color: var(--ink-soft);
  background: var(--wl-badge-muted-bg);
  border-color: var(--wl-badge-muted-border);
}

.wl-log-badge--report {
  background: var(--wl-badge-neutral-bg);
  color: var(--wl-badge-neutral-fg);
  border-color: var(--wl-badge-neutral-border);
}

.wl-log-badge--article {
  background: var(--wl-badge-accent-bg);
  color: var(--wl-badge-accent-fg);
  border-color: var(--wl-badge-accent-border);
}

.wl-lp-index__name {
  margin: 0 0 10px;
  font-family: var(--ff-serif);
  font-size: var(--wl-h2-size);
  font-weight: 700;
  line-height: var(--wl-leading-heading);
  letter-spacing: 0;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wl-lp-index__desc {
  margin: 0 0 14px;
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  color: var(--ink);
}

.wl-lp-index__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.wl-lp-index__view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 0;
  background: var(--hazard);
  color: var(--wl-bg-white);
  font-family: var(--ff-sans);
  font-size: var(--wl-text-base);
  font-weight: 700;
  line-height: var(--wl-leading);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wl-lp-index__view-btn-icon {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  opacity: 0.92;
}

.wl-lp-index__view-btn:hover,
.wl-lp-index__view-btn:focus-visible {
  background: var(--hazard-2);
}

.wl-lp-index__blog-link {
  margin: 0;
  font-size: var(--wl-text-base);
  font-weight: 700;
  color: var(--ink);
}

.wl-lp-index__blog-link--disabled,
.wl-lp-index__measure-link--disabled {
  color: var(--ink-soft);
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

.wl-lp-index__measure-link--disabled .wl-log-badge {
  opacity: 0.65;
}

.wl-lp-index__measures {
  padding: 0 clamp(18px, 2.5vw, 24px) clamp(18px, 2.5vw, 24px);
}

.wl-lp-index__measures-heading {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-sans);
  font-size: var(--wl-h3-size);
  font-weight: 700;
  line-height: var(--wl-leading);
  color: var(--ink);
}

.wl-lp-index__measure.wl-experiment-summary {
  margin: 0 0 14px;
}

.wl-lp-index__measure.wl-experiment-summary:last-child {
  margin-bottom: 0;
}

.wl-lp-index__measure-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.wl-lp-index__measure-head .wl-experiment-summary__title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.wl-lp-index__measure-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.wl-lp-index__measure-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--wl-text-base);
  line-height: var(--wl-leading);
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wl-lp-index__measure-link .wl-log-badge {
  flex-shrink: 0;
}

.wl-lp-index__measure-link:hover,
.wl-lp-index__measure-link:focus-visible {
  color: var(--hazard);
}

.wl-lp-index__past {
  margin-top: clamp(8px, 1.5vw, 14px);
  padding: 0 clamp(18px, 2.5vw, 24px) clamp(18px, 2.5vw, 24px);
}

.wl-lp-index__past-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--ff-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: var(--wl-leading-heading);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.wl-lp-index__past-toggle:hover,
.wl-lp-index__past-toggle:focus-visible {
  color: var(--hazard);
}

.wl-lp-index__past-toggle:hover .wl-lp-index__past-icon,
.wl-lp-index__past-toggle:focus-visible .wl-lp-index__past-icon {
  color: var(--hazard);
}

.wl-lp-index__past-icon {
  font-family: var(--ff-sans);
  font-size: var(--wl-text-base);
  font-weight: 400;
  line-height: 1;
  color: var(--ink-mute);
}

.wl-lp-index__past-body {
  padding: 14px 0 0;
  background: transparent;
}

@media (max-width: 767px) {
  .wl-lp-index__card-grid {
    grid-template-columns: 1fr;
  }

  .wl-lp-index__media {
    padding-top: clamp(18px, 2.5vw, 24px);
    padding-left: clamp(18px, 2.5vw, 24px);
    padding-right: clamp(18px, 2.5vw, 24px);
  }

  .wl-lp-index__thumbnail {
    max-height: 280px;
    aspect-ratio: auto;
  }

  .wl-lp-index__name {
    white-space: normal;
  }

  .wl-lp-index__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: calc(100% + 2 * var(--wl-lp-index-inset));
    margin-left: calc(-1 * var(--wl-lp-index-inset));
    margin-right: calc(-1 * var(--wl-lp-index-inset));
    padding-left: 18px;
    padding-right: 18px;
  }

  .wl-lp-index__view-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .wl-lp-index__blog-link {
    padding-left: 0;
  }
}
