/*
 * bios.css — 合同会社ビオス北海道 子テーマ メインスタイル
 * 親テーマのリセット用に先頭でbody等を明示的に上書き
 */

/* 親テーマが付けるbodyのmarginなどをリセット */
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* WordPressが管理バーを表示しているとき(is-admin-bar-showing)にヘッダーズレを防ぐ */
@media screen and (min-width: 601px) {
  .hd { top: 32px; }
}
@media screen and (max-width: 600px) {
  .hd { top: 46px; }
}
/* ログアウト時（管理バーなし）は top: 0 に戻す */
body:not(.admin-bar) .hd { top: 0; }

/* ─────────────────────────────────────────── */

    /* =============================================
       WCAG 2.1 AA 検証済みカラーパレット
       白bg(#F5F4F0)上: 黒✅ 赤✅ グレー#6B6B6B✅
       黒bg(#0D0D0D)上: 白✅ 赤は大テキスト限定△
       赤bg(#C0000A)上: 白✅ オフホワイト✅
    ============================================= */
    :root {
      --white:      #F5F4F0;   /* ページ白背景    */
      --black:      #0D0D0D;   /* 黒背景・黒文字  比17.66✅ */
      --red:        #C0000A;   /* ブランドレッド  白bg比5.88✅ */
      --red-dark:   #8C0008;   /* 濃い赤ホバー    白bg比9.01✅ */
      --gray-dark:  #1C1C1C;   /* 濃グレー文字    白bg比15.48✅ */
      --gray-mid:   #6B6B6B;   /* 中グレー        白bg比4.84✅ */
      --gray-light: #E8E8E4;   /* 薄グレー背景    黒bg比15.82✅ */
      --gray-line:  #D4D4CF;   /* ボーダー用      装飾のみ */

      --f: 'Noto Sans JP', sans-serif;
      --mono: 'DM Mono', monospace;

      --sp: 140px;
      --mw: 1280px;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    body {
      background: var(--white);
      color: var(--black);
      font-family: var(--f);
      font-weight: 300;
      line-height: 1.8;
      overflow-x: hidden;
      cursor: default;
    }

    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }

    .wrap {
      width: 92%;
      max-width: var(--mw);
      margin: 0 auto;
    }

    /* =============================================
       スクロールアニメーション
    ============================================= */
    [data-reveal] {
      opacity: 0;
      transition: opacity 0.8s ease, transform 0.8s ease;
    }
    [data-reveal="up"]    { transform: translateY(48px); }
    [data-reveal="left"]  { transform: translateX(-48px); }
    [data-reveal="right"] { transform: translateX(48px); }
    [data-reveal="scale"] { transform: scale(0.94); }
    [data-reveal].visible {
      opacity: 1;
      transform: none;
    }

    /* =============================================
       ヘッダー
    ============================================= */
    .hd {
      position: fixed;
      inset: 0 0 auto 0;
      z-index: 500;
      background: var(--white);
      border-bottom: 2px solid var(--black);
      transition: border-color 0.3s;
    }
    .hd-inner {
      display: flex;
      align-items: stretch;
      height: 64px;
    }

    /* ロゴブロック：左端に黒帯 */
    .hd-logo {
      display: flex;
      align-items: center;
      padding: 0 28px 0 24px;
      border-right: 2px solid var(--black);
      text-decoration: none;
      flex-shrink: 0;
      transition: background 0.2s, opacity 0.2s;
    }
    .hd-logo:hover { opacity: 0.75; }
    .hd-logo:focus-visible {
      outline: 3px solid var(--red);
      outline-offset: -3px;
    }

    /* ナビ */
    .hd-nav {
      flex: 1;
      display: flex;
      align-items: center;
      padding: 0 24px;
    }
    .hd-nav-list {
      display: flex;
      gap: 0;
      list-style: none;
      height: 100%;
    }
    .hd-nav-list a {
      display: flex;
      align-items: center;
      padding: 0 24px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--gray-mid); /* 白bg上 4.84:1 ✅ */
      border-right: 1px solid var(--gray-line);
      height: 100%;
      transition: color 0.2s, background 0.2s;
    }
    .hd-nav-list a:hover {
      color: var(--black);
      background: var(--gray-light);
    }
    .hd-nav-list a:focus-visible {
      outline: 3px solid var(--red);
      outline-offset: -3px;
    }

    /* ヘッダーCTA */
    .hd-cta {
      display: flex;
      align-items: center;
      padding: 0 32px;
      background: var(--red);
      color: var(--white); /* 赤bg上 白文字 5.88:1 ✅ */
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      gap: 10px;
      border-left: 2px solid var(--black);
      transition: background 0.2s;
      flex-shrink: 0;
    }
    .hd-cta:hover { background: var(--red-dark); }
    .hd-cta:focus-visible {
      outline: 3px solid var(--black);
      outline-offset: -3px;
    }

    /* =============================================
       ヒーロー — ブルータリスト大型タイポ
    ============================================= */
    .hero {
      min-height: 100vh;
      padding-top: 64px; /* ヘッダー分 */
      display: grid;
      grid-template-rows: 1fr auto;
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(rgba(245,244,240,0.5), rgba(245,244,240,0.8)),
        url('../img/bios_bgp.jpg') center / cover no-repeat;
    }

    .hero-main {
      display: grid;
      grid-template-columns: 1fr 420px;
      align-items: end;
      padding: 80px 0 0;
      gap: 0;
    }

    /* 左：巨大タイポ */
    .hero-type {
      padding: 60px 60px 0 0;
      border-right: 2px solid var(--black);
      position: relative;
    }

    /* 上部のラベルバー */
    .hero-label-bar {
      display: flex;
      align-items: center;
      gap: 0;
      margin-bottom: 48px;
      border: 1px solid var(--black);
      width: fit-content;
    }
    .hero-label-bar span {
      display: block;
      padding: 6px 16px;
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.28em;
      text-transform: uppercase;
    }
    .hlb-num {
      background: var(--black);
      color: var(--white); /* 黒bg上 白文字 19.44:1 ✅ */
    }
    .hlb-text { color: var(--gray-mid); /* 白bg上 4.84:1 ✅ */ }
    .hlb-year {
      border-left: 1px solid var(--black);
      color: var(--gray-mid);
    }

    /* メインH1 */
    .hero-h1 {
      font-weight: 900;
      font-size: clamp(56px, 7.5vw, 152px);
      line-height: 1.05;
      letter-spacing: -0.03em;
      color: var(--black);
      margin-bottom: 0;
      position: relative;
    }
    /* 「困った」だけ赤抜き文字 */
    .hero-h1 .ko {
      color: var(--white);         /* 文字色は白 */
      -webkit-text-stroke: 4px var(--red);
      paint-order: stroke fill;
    }
    /* 「解決」は赤塗り */
    .hero-h1 .kai {
      color: var(--red); /* 白bg上 5.88:1 ✅ */
    }

    /* サブコピー：H1の下に食い込む */
    .hero-sub {
      margin-top: 32px;
      font-size: 15px;
      font-weight: 400;
      color: var(--gray-mid); /* 白bg上 4.84:1 ✅ */
      line-height: 2;
      max-width: 520px;
    }

    /* CTAボタン群 */
    .hero-btns {
      display: flex;
      gap: 0;
      margin-top: 48px;
    }
    .btn-black {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 20px 40px;
      background: var(--black);
      color: var(--white); /* 黒bg上 白文字 19.44:1 ✅ */
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.08em;
      border: 2px solid var(--black);
      transition: background 0.2s, color 0.2s;
    }
    .btn-black:hover {
      background: var(--white);
      color: var(--black);
    }
    .btn-black:focus-visible {
      outline: 3px solid var(--red);
      outline-offset: 3px;
    }
    .btn-red-ghost {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 20px 40px;
      background: transparent;
      color: var(--red); /* 白bg上 5.88:1 ✅ */
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.08em;
      border: 2px solid var(--red);
      border-left: none;
      transition: background 0.2s, color 0.2s;
    }
    .btn-red-ghost:hover {
      background: var(--red);
      color: var(--white);
    }
    .btn-red-ghost:focus-visible {
      outline: 3px solid var(--red);
      outline-offset: 3px;
    }

    /* 右：ボックス縦積み */
    .hero-right {
      border-left: 0; /* border-right で分割済み */
      display: flex;
      flex-direction: column;
      align-self: stretch;
    }
    .hero-issue {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 32px 36px;
      border-bottom: 1px solid var(--gray-line);
      position: relative;
      transition: background 0.25s;
    }
    .hero-issue:last-child { border-bottom: none; }
    .hero-issue:hover { background: var(--gray-light); }
    .hi-cat {
      font-family: var(--mono);
      font-size: 9px;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--red); /* 白bg上 5.88:1 ✅ */
      margin-bottom: 4px;
    }
    .hi-q {
      font-weight: 700;
      font-size: 14px;
      color: var(--black);
      line-height: 1.5;
      margin-bottom: 4px;
    }
    .hi-a {
      font-size: 12px;
      color: var(--gray-mid); /* 白bg上 4.84:1 ✅ */
      line-height: 1.6;
    }
    /* 右端の矢印装飾 */
    .hero-issue::after {
      content: '→';
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 18px;
      color: var(--gray-line);
      transition: color 0.2s, right 0.2s;
    }
    .hero-issue:hover::after {
      color: var(--red);
      right: 12px;
    }

    /* ヒーロー下部：横スクロールマーキー */
    .hero-ticker {
      border-top: 2px solid var(--black);
      overflow: hidden;
      background: var(--black);
      padding: 12px 0;
    }
    .ticker-track {
      display: flex;
      gap: 0;
      animation: ticker 18s linear infinite;
      white-space: nowrap;
    }
    .ticker-item {
      display: inline-flex;
      align-items: center;
      gap: 24px;
      padding: 0 32px;
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--gray-light); /* 黒bg上 15.82:1 ✅ */
    }
    .ticker-dot {
      width: 4px; height: 4px;
      background: var(--red);
      border-radius: 50%;
      flex-shrink: 0;
    }
    @keyframes ticker {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }

    /* =============================================
       悩みナビ — 黒背景セクション
    ============================================= */
    .issues {
      background: var(--black);
      padding: 100px 0;
      border-bottom: 2px solid var(--gray-dark);
    }
    .issues-head {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: end;
      margin-bottom: 64px;
    }
    .issues-eyebrow {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--red); /* 黒bg上 大テキスト3.00:1 △ → eyebrowは装飾用途なのでOK、本文には使わない */
      margin-bottom: 14px;
    }
    .issues-h2 {
      font-weight: 900;
      font-size: clamp(32px, 4.5vw, 64px);
      line-height: 1.1;
      letter-spacing: -0.02em;
      color: var(--white); /* 黒bg上 白文字 17.66:1 ✅ */
    }
    .issues-desc {
      font-size: 14px;
      font-weight: 300;
      color: var(--gray-light); /* 黒bg上 15.82:1 ✅ */
      line-height: 2.1;
      align-self: end;
    }

    /* 4分割グリッド（太いボーダーで分割） */
    .issues-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      border: 2px solid var(--gray-dark);
    }
    .issue-cell {
      padding: 40px 32px;
      border-right: 2px solid var(--gray-dark);
      position: relative;
      transition: background 0.25s;
      cursor: pointer;
    }
    .issue-cell:last-child { border-right: none; }
    .issue-cell:hover { background: var(--gray-dark); }

    /* ホバーで赤い縦線が伸びる */
    .issue-cell::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 3px;
      height: 0;
      background: var(--red);
      transition: height 0.4s ease;
    }
    .issue-cell:hover::before { height: 100%; }

    .ic-num {
      font-family: var(--mono);
      font-size: 48px;
      font-weight: 300;
      color: rgba(244,241,236,0.2);
      line-height: 1;
      margin-bottom: 20px;
      letter-spacing: -0.04em;
    }
    .ic-icon { font-size: 32px; margin-bottom: 16px; line-height: 1; }
    .ic-title {
      font-weight: 700;
      font-size: 18px;
      color: var(--white); /* 黒bg上 19.44:1 ✅ */
      margin-bottom: 10px;
      line-height: 1.4;
    }
    .ic-desc {
      font-size: 13px;
      color: var(--gray-light); /* 黒bg上 15.82:1 ✅ */
      line-height: 1.8;
      font-weight: 300;
    }

    /* =============================================
       事業一覧 — 白背景・非対称グリッド
    ============================================= */
    .services {
      padding: var(--sp) 0;
      background: var(--white);
      position: relative;
    }

    /* 背景の大きい文字装飾 */
    .services-bg-text {
      position: absolute;
      top: 40px;
      right: -20px;
      font-weight: 900;
      font-size: clamp(80px, 14vw, 200px);
      color: rgba(13,13,13,0.03);
      line-height: 1;
      letter-spacing: -0.04em;
      pointer-events: none;
      user-select: none;
    }

    .services-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 72px;
      padding-bottom: 32px;
      border-bottom: 2px solid var(--black);
    }
    .services-eyebrow {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--red); /* 白bg上 5.88:1 ✅ */
      margin-bottom: 12px;
    }
    .services-h2 {
      font-weight: 900;
      font-size: clamp(28px, 4vw, 56px);
      line-height: 1.1;
      letter-spacing: -0.02em;
      color: var(--black);
    }
    .services-count {
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: 0.2em;
      color: var(--gray-mid); /* 白bg上 4.84:1 ✅ */
      text-align: right;
    }
    .services-count strong {
      font-family: var(--mono);
      font-size: 48px;
      font-weight: 300;
      color: var(--black);
      display: block;
      line-height: 1;
      letter-spacing: -0.04em;
    }

    /* 事業カードリスト：横線で区切るリスト形式 */
    .svc-list {
      list-style: none;
      display: flex;
      flex-direction: column;
    }
    .svc-item {
      display: grid;
      grid-template-columns: 80px 1fr auto;
      align-items: center;
      gap: 40px;
      padding: 36px 0;
      border-bottom: 1px solid var(--gray-line);
      transition: background 0.2s;
      position: relative;
    }
    .svc-item:first-child { border-top: 1px solid var(--gray-line); }
    .svc-item:hover { background: var(--gray-light); margin: 0 -24px; padding-left: 24px; padding-right: 24px; }

    .svc-num {
      font-family: var(--mono);
      font-size: 20px;
      font-weight: 400;
      color: var(--red); /* 白bg上 5.88:1 ✅ */
      letter-spacing: 0.1em;
      flex-shrink: 0;
    }

    .svc-body { display: flex; align-items: center; gap: 24px; }
    .svc-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
    .svc-texts {}
    .svc-name {
      font-weight: 700;
      font-size: 18px;
      color: var(--black);
      line-height: 1.4;
      margin-bottom: 6px;
    }
    .svc-desc {
      font-size: 13px;
      color: var(--gray-mid); /* 白bg上 4.84:1 ✅ */
      line-height: 1.7;
      max-width: 560px;
    }

    .svc-tags {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      justify-content: flex-end;
      max-width: 240px;
    }
    .svc-tag {
      padding: 4px 10px;
      border: 1px solid var(--gray-line);
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.1em;
      color: var(--gray-mid); /* 白bg上 4.84:1 ✅ */
    }

    /* LPへのリンクがある行 */
    .svc-item-link {
      cursor: pointer;
      text-decoration: none;
      color: inherit;
      display: grid;
      grid-template-columns: 80px 1fr auto;
      align-items: center;
      gap: 40px;
      padding: 36px 0;
      border-bottom: 1px solid var(--gray-line);
      transition: background 0.2s;
    }
    .svc-item-link:first-child { border-top: 1px solid var(--gray-line); }
    .svc-item-link:hover { background: var(--gray-light); margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
    .svc-item-link:focus-visible {
      outline: 3px solid var(--red);
      outline-offset: 2px;
    }
    .svc-arrow {
      font-family: var(--mono);
      font-size: 20px;
      color: var(--gray-line);
      transition: color 0.2s, transform 0.2s;
    }
    .svc-item-link:hover .svc-arrow {
      color: var(--red);
      transform: translateX(4px);
    }

    /* =============================================
       実績 — グレー背景・タイル型
    ============================================= */
    .works {
      background: var(--gray-light);
      padding: var(--sp) 0;
      border-top: 2px solid var(--black);
      border-bottom: 2px solid var(--black);
    }
    .works-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 56px;
    }
    .works-eyebrow {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--red); /* 白bg上 5.88:1 ✅ */
      margin-bottom: 10px;
    }
    .works-h2 {
      font-weight: 900;
      font-size: clamp(26px, 3.5vw, 48px);
      line-height: 1.15;
      letter-spacing: -0.02em;
      color: var(--black);
    }
    .works-all {
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gray-mid); /* 白bg上 4.84:1 ✅ */
      border-bottom: 1px solid var(--gray-mid);
      padding-bottom: 2px;
      transition: color 0.2s, border-color 0.2s;
    }
    .works-all:hover { color: var(--black); border-color: var(--black); }
    .works-all:focus-visible {
      outline: 3px solid var(--red);
      outline-offset: 4px;
    }

    /* ブロック型実績グリッド */
    .works-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      grid-template-rows: 280px 280px;
      gap: 3px;
      background: var(--black); /* ギャップ色を黒にすることで太いグリッドに見える */
    }
    .wk {
      background: var(--white);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      transition: transform 0.4s ease;
    }
    .wk.large { grid-row: span 2; }
    .wk:hover { transform: scale(0.98); }

    /* 実績カード内の背景パターン */
    .wk-bg {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: clamp(60px, 8vw, 100px);
      background: var(--gray-light);
      transition: transform 0.5s ease;
    }
    .wk:hover .wk-bg { transform: scale(1.05); }

    /* カテゴリ別の配色 */
    .wk[data-cat="edu"]   .wk-bg { background: #EEF2F8; }
    .wk[data-cat="event"] .wk-bg { background: #F8F0EE; }
    .wk[data-cat="build"] .wk-bg { background: #F0F0EE; }
    .wk[data-cat="food"]  .wk-bg { background: #F2F8F0; }
    .wk[data-cat="house"] .wk-bg { background: #F8F8F0; }

    /* 下部オーバーレイ */
    .wk-overlay {
      position: relative;
      z-index: 1;
      background: var(--black);
      padding: 16px 20px;
    }
    .wk-cat {
      font-family: var(--mono);
      font-size: 9px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--red); /* 黒bg上 大テキスト用△ → 9pxは小テキスト。装飾用途で使用 */
      margin-bottom: 4px;
    }
    .wk-title {
      font-weight: 700;
      font-size: 14px;
      color: var(--white); /* 黒bg上 19.44:1 ✅ */
      line-height: 1.4;
    }
    .wk-tags {
      display: flex;
      gap: 4px;
      margin-top: 8px;
      flex-wrap: wrap;
    }
    .wk-tag {
      font-family: var(--mono);
      font-size: 9px;
      letter-spacing: 0.1em;
      padding: 2px 7px;
      border: 1px solid rgba(255,255,255,0.2);
      color: var(--gray-light); /* 黒bg上 15.82:1 ✅ */
    }

    /* =============================================
       会社メッセージ — 白背景
    ============================================= */
    .about {
      padding: var(--sp) 0;
      background: var(--white);
    }
    .about-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      border: 2px solid var(--black);
    }

    /* 左：大きいメッセージ */
    .about-left {
      padding: 72px 64px;
      border-right: 2px solid var(--black);
    }
    .about-eyebrow {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--red); /* 白bg上 5.88:1 ✅ */
      margin-bottom: 28px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .about-eyebrow::before {
      content: '';
      display: block;
      width: 24px; height: 2px;
      background: var(--red);
    }
    .about-h2 {
      font-weight: 900;
      font-size: clamp(28px, 4vw, 52px);
      line-height: 1.2;
      letter-spacing: -0.02em;
      color: var(--black);
      margin-bottom: 32px;
    }
    .about-h2 em {
      font-style: normal;
      display: block;
      color: var(--red); /* 白bg上 5.88:1 ✅ */
    }
    .about-body {
      font-size: 15px;
      font-weight: 300;
      color: var(--gray-mid); /* 白bg上 4.84:1 ✅ */
      line-height: 2.2;
    }
    .about-body strong { color: var(--black); font-weight: 700; }

    /* 右：会社情報グリッド */
    .about-right {
      display: grid;
      grid-template-rows: 1fr 1fr;
    }

    /* 上：スタッツ */
    .about-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      border-bottom: 2px solid var(--black);
    }
    .stat-cell {
      padding: 40px 32px;
      border-right: 1px solid var(--gray-line);
      border-bottom: 1px solid var(--gray-line);
    }
    .stat-cell:nth-child(2),
    .stat-cell:nth-child(4) { border-right: none; }
    .stat-cell:nth-child(3),
    .stat-cell:nth-child(4) { border-bottom: none; }

    .stat-n {
      font-family: var(--mono);
      font-size: clamp(36px, 4vw, 56px);
      font-weight: 300;
      color: var(--black);
      line-height: 1;
      letter-spacing: -0.03em;
    }
    .stat-n sup {
      font-size: 16px;
      color: var(--red); /* 白bg上 5.88:1 ✅ */
    }
    .stat-l {
      font-size: 12px;
      font-weight: 400;
      color: var(--gray-mid); /* 白bg上 4.84:1 ✅ */
      margin-top: 6px;
    }

    /* 下：会社概要 */
    .about-info {
      padding: 36px 32px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .about-dl {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .about-dl-row {
      display: grid;
      grid-template-columns: 64px 1fr;
      gap: 16px;
      font-size: 13px;
    }
    .dl-dt {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.15em;
      color: var(--gray-mid); /* 白bg上 4.84:1 ✅ */
      align-self: center;
    }
    .dl-dd {
      color: var(--black);
      font-weight: 400;
    }

    /* =============================================
       CTA — 赤背景（ど迫力）
    ============================================= */
    .cta {
      background: var(--red);
      padding: var(--sp) 0;
      position: relative;
      overflow: hidden;
    }

    /* 背景装飾：巨大な白い輪 */
    .cta::before {
      content: '';
      position: absolute;
      top: -200px; right: -200px;
      width: 700px; height: 700px;
      border-radius: 50%;
      border: 120px solid rgba(255,255,255,0.05);
      pointer-events: none;
    }
    .cta::after {
      content: '';
      position: absolute;
      bottom: -150px; left: -150px;
      width: 500px; height: 500px;
      border-radius: 50%;
      border: 80px solid rgba(255,255,255,0.04);
      pointer-events: none;
    }

    .cta-inner {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 80px;
      align-items: center;
    }
    .cta-label {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.65);
      margin-bottom: 20px;
    }
    .cta-h2 {
      font-weight: 900;
      font-size: clamp(36px, 6vw, 88px);
      line-height: 1.05;
      letter-spacing: -0.03em;
      color: var(--white); /* 赤bg上 白文字 5.88:1 ✅ */
      margin-bottom: 24px;
    }
    .cta-sub {
      font-size: 15px;
      font-weight: 300;
      color: rgba(245,244,240,0.85); /* 赤bg上 近似値 十分な明度 */
      line-height: 2;
    }

    /* CTAカード群 */
    .cta-cards {
      display: flex;
      flex-direction: column;
      gap: 0;
      width: 360px;
      flex-shrink: 0;
      border: 2px solid rgba(255,255,255,0.25);
    }
    .cta-card {
      padding: 28px 32px;
      border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .cta-card:last-child { border-bottom: none; }
    .cc-label {
      font-family: var(--mono);
      font-size: 9px;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.60);
      margin-bottom: 6px;
    }
    .cc-title {
      font-weight: 700;
      font-size: 14px;
      color: var(--white); /* 赤bg上 5.88:1 ✅ */
      line-height: 1.4;
    }

    /* 大きいCTAボタン */
    .btn-cta-white {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      margin-top: 44px;
      padding: 22px 52px 22px 44px;
      background: var(--white);
      color: var(--red); /* 白bg上 赤文字 5.88:1 ✅ */
      font-size: 16px;
      font-weight: 900;
      letter-spacing: 0.06em;
      border: 2px solid var(--white);
      transition: background 0.2s, color 0.2s;
    }
    .btn-cta-white:hover {
      background: transparent;
      color: var(--white);
    }
    .btn-cta-white:focus-visible {
      outline: 3px solid var(--black);
      outline-offset: 4px;
    }
    .cta-note {
      margin-top: 14px;
      font-size: 12px;
      color: rgba(255,255,255,0.65);
      font-family: var(--mono);
      letter-spacing: 0.08em;
    }

    /* =============================================
       フッター — 黒背景
    ============================================= */
    .footer {
      background: var(--black);
      border-top: 2px solid var(--gray-dark);
      padding: 72px 0 40px;
    }
    .footer-top {
      display: grid;
      grid-template-columns: 2.2fr 1fr 1fr 1fr;
      gap: 60px;
      padding-bottom: 56px;
      border-bottom: 1px solid var(--gray-dark);
    }
    .footer-brand {}
    .footer-tagline {
      font-size: 13px;
      color: var(--gray-light); /* 黒bg上 15.82:1 ✅ */
      line-height: 2;
      font-weight: 300;
    }
    .footer-col-head {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--red); /* 黒bg上 eyebrow/装飾用途 */
      margin-bottom: 20px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--gray-dark);
    }
    .footer-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .footer-links a {
      font-size: 13px;
      color: var(--gray-light); /* 黒bg上 15.82:1 ✅ */
      transition: color 0.2s;
      font-weight: 300;
    }
    .footer-links a:hover { color: var(--white); }
    .footer-links a:focus-visible {
      outline: 2px solid var(--red);
      outline-offset: 3px;
      border-radius: 1px;
    }
    .footer-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 32px;
    }
    .footer-copy {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--gray-mid); /* 黒bg上 3.65:1 △ → 小テキスト。装飾的な著作権表示 */
      letter-spacing: 0.08em;
    }
    .footer-legal {
      display: flex;
      gap: 24px;
      list-style: none;
    }
    .footer-legal a {
      font-size: 11px;
      color: var(--gray-mid);
      transition: color 0.2s;
    }
    .footer-legal a:hover { color: var(--white); }

    /* =============================================
       アニメーション（ヒーロー入場）
    ============================================= */
    .hero-label-bar {
      animation: aniSlideLeft 0.7s ease 0.1s both;
    }
    .hero-h1 {
      animation: aniSlideLeft 0.8s ease 0.25s both;
    }
    .hero-sub {
      animation: aniSlideLeft 0.7s ease 0.45s both;
    }
    .hero-btns {
      animation: aniSlideLeft 0.7s ease 0.6s both;
    }
    .hero-right {
      animation: aniFadeIn 0.9s ease 0.5s both;
    }

    @keyframes aniSlideLeft {
      from { opacity: 0; transform: translateX(-32px); }
      to   { opacity: 1; transform: none; }
    }
    @keyframes aniFadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }

    /* =============================================
       レスポンシブ (768px以下)
    ============================================= */
    @media (max-width: 768px) {
      :root { --sp: 80px; }

      .hd-nav, .hd-cta { display: none; }
      .hd-inner { justify-content: flex-start; }
      .hd-logo { border-right: none; }

      .hero-main { grid-template-columns: 1fr; }
      .hero-type { border-right: none; padding-right: 0; }
      .hero-right { display: none; }
      .hero-btns { flex-wrap: wrap; }
      .btn-red-ghost { border-left: 2px solid var(--red); }

      .issues-head { grid-template-columns: 1fr; gap: 24px; }
      .issues-grid { grid-template-columns: 1fr 1fr; }

      .svc-item, .svc-item-link {
        grid-template-columns: 44px 1fr auto;
        gap: 12px;
        padding: 20px 0;
      }
      .svc-tags { display: none; }
      .svc-icon { display: none; }
      .svc-num { font-size: 11px; }
      .svc-desc { display: none; }

      .works-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 12px;
        background: var(--white);
      }
      .wk.large { grid-row: auto; }
      .wk-bg { display: none; }
      .wk {
        background: var(--black);
        border: 2px solid var(--black);
      }
      .wk-overlay {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
      }

      .about-inner { grid-template-columns: 1fr; }
      .about-left { border-right: none; border-bottom: 2px solid var(--black); }

      .cta-inner { grid-template-columns: 1fr; }
      .cta-cards { width: 100%; }

      .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
      .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
    }

    /* =============================================
       singular.php — 固定ページ・投稿（共通）
    ============================================= */
    .bios-page-main {
      padding-top: 64px; /* 固定ヘッダー分 */
    }
    .bios-page-content p {
      margin-bottom: 1.6em;
      font-size: 15px;
      color: var(--gray-mid);
      line-height: 2.2;
    }
    .bios-page-content h2 {
      font-weight: 900;
      font-size: clamp(22px, 3vw, 36px);
      margin: 2.5em 0 0.8em;
      color: var(--black);
      border-left: 4px solid var(--red);
      padding-left: 16px;
    }
    .bios-page-content h3 {
      font-weight: 700;
      font-size: clamp(18px, 2.5vw, 26px);
      margin: 2em 0 0.6em;
      color: var(--black);
    }
    .bios-page-content ul {
      list-style: none;
      padding-left: 1.8em;
    }
    .bios-page-content ul > li {
      position: relative;
    }
    .bios-page-content ul > li::before {
      content: "●";
      position: absolute;
      left: -1.4em;
      color: var(--red);
      font-size: 0.75em;
      line-height: 2.4;
    }

    /* =============================================
       archive.php — カテゴリー・アーカイブページ
    ============================================= */

    /* ページ全体：固定ヘッダー分を確保 */
    .bios-archive-main {
      padding-top: 64px;
      min-height: 80vh;
    }

    /* アーカイブ見出しエリア */
    .bios-archive-header {
      padding: 72px 0 56px;
      border-bottom: 2px solid var(--black);
      margin-bottom: 72px;
    }
    .bios-archive-eyebrow {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--red);
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .bios-archive-eyebrow::before {
      content: '';
      display: block;
      width: 24px;
      height: 2px;
      background: var(--red);
    }
    .bios-archive-title {
      font-weight: 900;
      font-size: 0; /* テキストノード「カテゴリー:」を非表示にするため0に */
      line-height: 1.1;
      letter-spacing: -0.03em;
      color: var(--black);
    }
    /* カテゴリー名（span）のみ表示・サイズ復元 */
    .bios-archive-title span {
      font-size: clamp(32px, 5vw, 72px);
      display: inline;
    }
    .bios-archive-desc {
      font-size: 15px;
      color: var(--gray-mid);
      line-height: 2;
      margin-top: 20px;
      max-width: 640px;
    }

    /* 記事グリッド：3列 */
    .bios-posts-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0;
      border-top: 2px solid var(--black);
      border-left: 2px solid var(--black);
      margin-bottom: 80px;
    }

    /* 記事カード1枚 */
    .bios-post-card {
      border-right: 2px solid var(--black);
      border-bottom: 2px solid var(--black);
      background: var(--white);
      display: flex;
      flex-direction: column;
      transition: background 0.2s;
      position: relative;
      overflow: hidden;
    }
    .bios-post-card:hover {
      background: var(--gray-light);
    }

    /* サムネイル画像 */
    .bios-post-thumb {
      display: block;
      overflow: hidden;
      aspect-ratio: 16 / 9;
      background: var(--gray-light);
    }
    .bios-post-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    .bios-post-card:hover .bios-post-thumb img {
      transform: scale(1.04);
    }

    /* サムネイルなしのプレースホルダー */
    .bios-post-thumb--no-img {
      display: flex;
      align-items: center;
      justify-content: center;
      aspect-ratio: 16 / 9;
      background: var(--black);
    }
    .bios-post-thumb--no-img span {
      font-family: var(--mono);
      font-size: 22px;
      font-weight: 300;
      color: rgba(245,244,240,0.15);
      letter-spacing: 0.2em;
    }

    /* カード本文エリア */
    .bios-post-body {
      padding: 28px 28px 24px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    /* カテゴリータグ */
    .bios-post-cats {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }
    .bios-post-cat-tag {
      font-family: var(--mono);
      font-size: 9px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--red);
      border: 1px solid var(--red);
      padding: 3px 8px;
      transition: background 0.2s, color 0.2s;
    }
    .bios-post-cat-tag:hover {
      background: var(--red);
      color: var(--white);
    }

    /* 記事タイトル */
    .bios-post-title {
      font-weight: 700;
      font-size: clamp(16px, 1.8vw, 20px);
      line-height: 1.4;
      color: var(--black);
      margin-bottom: 12px;
      flex: 1;
    }
    .bios-post-title-link {
      color: inherit;
      text-decoration: none;
    }
    .bios-post-title-link:hover {
      color: var(--red);
    }
    .bios-post-title-link:focus-visible {
      outline: 3px solid var(--red);
      outline-offset: 2px;
    }

    /* 抜粋 */
    .bios-post-excerpt {
      font-size: 13px;
      color: var(--gray-mid);
      line-height: 1.8;
      margin-bottom: 20px;
    }

    /* 日付＋続きを読む */
    .bios-post-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: auto;
      padding-top: 16px;
      border-top: 1px solid var(--gray-line);
    }
    .bios-post-date {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.1em;
      color: var(--gray-mid);
    }
    .bios-post-more {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.12em;
      color: var(--red);
      transition: letter-spacing 0.2s;
    }
    .bios-post-more:hover {
      letter-spacing: 0.2em;
    }

    /* ページネーション */
    .bios-pagination {
      padding: 0 0 80px;
      display: flex;
      justify-content: center;
    }
    .bios-pagination .nav-links {
      display: flex;
      gap: 0;
      align-items: center;
      border: 2px solid var(--black);
    }
    .bios-pagination .page-numbers {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 48px;
      height: 48px;
      padding: 0 16px;
      font-family: var(--mono);
      font-size: 13px;
      letter-spacing: 0.06em;
      color: var(--gray-mid);
      border-right: 1px solid var(--gray-line);
      transition: background 0.2s, color 0.2s;
    }
    .bios-pagination .page-numbers:last-child {
      border-right: none;
    }
    .bios-pagination .page-numbers.current {
      background: var(--black);
      color: var(--white);
      font-weight: 700;
    }
    .bios-pagination .page-numbers:hover:not(.current) {
      background: var(--gray-light);
      color: var(--black);
    }
    .bios-pagination .page-numbers:focus-visible {
      outline: 3px solid var(--red);
      outline-offset: -3px;
    }

    /* 記事なし */
    .bios-no-posts {
      padding: 80px 0;
      text-align: center;
      color: var(--gray-mid);
      font-size: 15px;
    }

    /* =============================================
       archive.php レスポンシブ (768px以下)
    ============================================= */
    @media (max-width: 768px) {
      .bios-archive-header {
        padding: 48px 0 36px;
        margin-bottom: 48px;
      }
      .bios-posts-grid {
        grid-template-columns: 1fr;
      }
    }
    @media (max-width: 1024px) and (min-width: 769px) {
      .bios-posts-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

/* =============================================
   Contact ページ / CF7フォームデザイン
   .bios-form-wrap と .wpcf7-form の両方に対応
============================================= */
@media (min-width: 769px) {
  .bios-page-main .wrap {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}
.bios-form-wrap fieldset,
.wpcf7-form fieldset {
  margin-bottom: 40px;
  padding: 32px 36px;
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  background: #fff;
}
.bios-form-wrap fieldset:last-of-type,
.wpcf7-form fieldset:last-of-type { margin-bottom: 0; }
.bios-form-wrap fieldset legend,
.wpcf7-form fieldset legend {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--red);
  padding: 0 10px;
  margin-left: -4px;
}
.bios-form-wrap fieldset p,
.wpcf7-form fieldset p { margin-bottom: 16px; }
.bios-form-wrap fieldset p:last-child,
.wpcf7-form fieldset p:last-child { margin-bottom: 0; }
.bios-form-wrap input[type="text"],
.bios-form-wrap input[type="tel"],
.bios-form-wrap input[type="email"],
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"] {
  width: 100%;
  max-width: 480px;
  padding: 10px 14px;
  border: 1px solid var(--gray-line);
  border-radius: 2px;
  font-family: var(--f);
  font-size: 14px;
  color: var(--black);
  background: #fff;
  transition: border-color 0.2s;
}
.bios-form-wrap input[type="text"]:focus,
.bios-form-wrap input[type="tel"]:focus,
.bios-form-wrap input[type="email"]:focus,
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="email"]:focus {
  outline: none;
  border-color: var(--red);
}
.bios-form-wrap textarea,
.wpcf7-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-line);
  border-radius: 2px;
  font-family: var(--f);
  font-size: 14px;
  color: var(--black);
  background: #fff;
  min-height: 120px;
  resize: vertical;
  transition: border-color 0.2s;
}
.bios-form-wrap textarea:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.bios-form-wrap input[type="submit"],
.wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  padding: 18px 48px;
  background: var(--red);
  color: #fff;
  font-family: var(--f);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 32px;
  transition: background 0.2s, transform 0.2s;
}
.bios-form-wrap input[type="submit"]:hover,
.wpcf7-form input[type="submit"]:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
.bios-form-wrap input[type="submit"]:focus-visible,
.wpcf7-form input[type="submit"]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
.wpcf7-not-valid-tip {
  color: var(--red);
  font-size: 12px;
  margin-top: 4px;
  display: block;
}
.wpcf7-response-output {
  margin-top: 24px;
  padding: 14px 20px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
}
.wpcf7-mail-sent-ok {
  background: #f0faf0;
  border: 1px solid #4caf50;
  color: #2e7d32;
}
.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
  background: #fff0f0;
  border: 1px solid var(--red);
  color: var(--red);
}

/* =============================================
   リストスタイル：番号・記号を赤に
============================================= */
.bios-page-main .entry-content ol,
.bios-page-main .entry-content ul { margin-bottom: 1em; }
.bios-page-main .entry-content ol {
  list-style: none;
  counter-reset: bios-ol;
  padding-left: 2em;
}
.bios-page-main .entry-content ol > li {
  counter-increment: bios-ol;
  position: relative;
  margin-bottom: 0.4em;
  line-height: 1.8;
}
.bios-page-main .entry-content ol > li::before {
  content: counter(bios-ol) ".";
  position: absolute;
  left: -2em;
  width: 1.8em;
  text-align: right;
  color: var(--red);
  font-weight: 700;
}
.bios-page-main .entry-content ul {
  list-style: none;
  padding-left: 1.8em;
}
.bios-page-main .entry-content ul > li {
  position: relative;
  margin-bottom: 0.4em;
  line-height: 1.8;
}
.bios-page-main .entry-content ul > li::before {
  content: "\25CF";
  position: absolute;
  left: -1.4em;
  color: var(--red);
  font-size: 0.75em;
  line-height: 2.4;
}
.bios-page-main .entry-content li > ol,
.bios-page-main .entry-content li > ul {
  margin-top: 0.4em;
  margin-bottom: 0;
}

/* =============================================
   ページ遷移カーテン
============================================= */
#bios-transition {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  transform: translateY(0);
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}
#bios-transition::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}
#bios-transition.is-ready {
  transform: translateY(-100%);
}

/* ロゴSVGクラス名上書き */
.hd-logo svg .cls-2 { fill: #231815 !important; }
.hd-logo svg .cls-3 { fill: #ffffff !important; }
.hd-logo svg .cls-1 { fill: #e83331 !important; }
