@charset "UTF-8";

/* =========================================================
   BM Lab — bridal-marketing.jp
   白基調＋ピンクのアクセント / 資料請求・無料相談への導線を主軸にしたtoBメディア
   余白を広めに取り、罫線は細く。色はアクセント1色に絞る。
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg:            #ffffff;
  --bg-2:          #faf8f9;
  --surface:       #ffffff;
  --surface-2:     #f7f4f5;
  --line:          rgba(31, 26, 29, .10);
  --line-strong:   rgba(31, 26, 29, .18);

  --text:          #1f1a1d;
  --text-2:        #5f565b;
  --text-3:        #8b8288;

  /* アクセントは1色だけ。白地で読める濃さのピンクにする。 */
  --accent:        #d4738f;
  --accent-soft:   rgba(212, 115, 143, .07);
  --accent-line:   rgba(212, 115, 143, .30);

  --cta-bg:        #d4738f;
  --cta-fg:        #ffffff;
  --cta-bg-hover:  #c25f7d;

  /* リード獲得枠。広告枠(--ad)と色を分け、収益枠と一次CTAを見分けられるようにする。 */
  --lead:          #d4738f;
  --lead-bg:       rgba(212, 115, 143, .06);
  --lead-line:     rgba(212, 115, 143, .32);

  --ad:            #a8802c;
  --ad-bg:         rgba(168, 128, 44, .05);
  --ad-line:       rgba(168, 128, 44, .28);

  --radius:        10px;
  --radius-lg:     14px;

  --shell:         1200px;
  --side:          320px;
  --gap:           40px;

  --ease:          cubic-bezier(.16, 1, .3, 1);
  --font-head:     "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Noto Sans JP", sans-serif;
  --font-body:     "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Noto Sans JP", system-ui, -apple-system, sans-serif;

  --z-header:      50;
  --z-mobilecta:   60;
  --z-drawer:      70;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.4; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.hk-skip {
  position: absolute; left: -9999px;
  background: var(--cta-bg); color: var(--cta-fg);
  padding: 10px 18px; border-radius: var(--radius); font-weight: 700;
}
.hk-skip:focus { left: 12px; top: 12px; z-index: 999; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Shell ---------- */
.hk-container { width: min(100% - 40px, var(--shell)); margin-inline: auto; }

.hk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side);
  gap: var(--gap);
  align-items: start;
  padding: 40px 0 72px;
}

/* =========================================================
   Header
   ========================================================= */
.hk-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hk-header__inner {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.hk-logo { display: flex; flex-direction: column; justify-content: center; line-height: 1.25; flex-shrink: 0; }
.hk-logo__name { font-family: var(--font-head); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.hk-logo__tag { font-size: 11px; color: var(--text-3); letter-spacing: .04em; }

.hk-nav { margin-left: auto; }
.hk-nav ul { display: flex; align-items: center; gap: 26px; }
.hk-nav a {
  font-size: 14.5px; color: var(--text-2);
  transition: color .25s var(--ease);
  position: relative; padding: 4px 0;
}
.hk-nav a:hover { color: var(--text); }
.hk-nav .current-menu-item > a,
.hk-nav .current-menu-parent > a { color: var(--text); }
.hk-nav .current-menu-item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.hk-cta {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cta-bg); color: var(--cta-fg);
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 999px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.hk-cta:hover { background: var(--cta-bg-hover); transform: translateY(-1px); }

.hk-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: var(--radius); align-items: center; justify-content: center; }
.hk-burger span { display: block; width: 17px; height: 1.5px; background: var(--text); position: relative; }
.hk-burger span::before, .hk-burger span::after { content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--text); }
.hk-burger span::before { top: -5.5px; }
.hk-burger span::after { top: 5.5px; }

/* Drawer (mobile) */
.hk-drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: var(--bg); padding: 24px;
  transform: translateX(100%); transition: transform .35s var(--ease);
  overflow-y: auto;
}
.hk-drawer[data-open="true"] { transform: translateX(0); }
.hk-drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.hk-drawer__close { font-size: 26px; line-height: 1; color: var(--text-2); padding: 6px 10px; }
.hk-drawer ul { display: grid; gap: 2px; }
.hk-drawer a { display: block; padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }

/* =========================================================
   Hero (front page)
   ========================================================= */
.hk-hero { border-bottom: 1px solid var(--line); padding: 56px 0 48px; }
.hk-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px; align-items: start;
}
.hk-hero__title {
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.3;
}
.hk-hero__lead { margin-top: 18px; color: var(--text-2); font-size: 15.5px; max-width: 34em; }

.hk-leadbanner {
  display: inline-flex; align-items: center; gap: 12px;
  width: fit-content; max-width: 100%;
  margin-top: 28px;
  background: var(--lead-bg); border: 1px solid var(--lead-line);
  border-radius: var(--radius); padding: 15px 24px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.hk-leadbanner::after {
  content: "→"; font-size: 15px; color: var(--lead); flex-shrink: 0;
}
.hk-leadbanner:hover { background: rgba(212, 115, 143, .14); transform: translateY(-1px); }
.hk-leadbanner__label {
  flex-shrink: 0;
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  padding: 3px 10px; border-radius: 999px;
  background: var(--lead); color: var(--cta-fg);
}
.hk-leadbanner__text { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; }

.hk-hero__featured { display: grid; gap: 12px; }
.hk-feat {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; background: var(--surface);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.hk-feat:hover { border-color: var(--line-strong); background: var(--surface-2); }
.hk-feat__thumb { aspect-ratio: 16 / 11; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.hk-feat__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hk-feat__body { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; }
.hk-feat__cat { font-size: 11px; color: var(--accent); letter-spacing: .04em; }
.hk-feat__title { font-family: var(--font-head); font-size: 14px; font-weight: 700; line-height: 1.55; }

/* =========================================================
   Section heading
   ========================================================= */
.hk-sec { margin-bottom: 56px; }
.hk-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.hk-sec__title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.hk-sec__more { font-size: 13px; color: var(--text-2); transition: color .25s var(--ease); }
.hk-sec__more:hover { color: var(--accent); }

/* ---------- Tabs ---------- */
.hk-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hk-tab {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 20px; font-size: 13.5px; color: var(--text-2);
  transition: all .25s var(--ease);
}
.hk-tab:hover { color: var(--text); border-color: var(--accent-line); }
.hk-tab[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }

/* ---------- Card grid ---------- */
.hk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hk-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.hk-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.hk-card__thumb { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.hk-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hk-card:hover .hk-card__thumb img { transform: scale(1.03); }
.hk-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.hk-card__cat { font-size: 11.5px; color: var(--accent); letter-spacing: .04em; }
.hk-card__title { font-family: var(--font-head); font-size: 15.5px; font-weight: 700; line-height: 1.6; }
.hk-card__date { font-size: 12px; color: var(--text-3); margin-top: auto; padding-top: 4px; }

.hk-noimg {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(-45deg, rgba(212, 115, 143, .06) 0 6px, transparent 6px 12px),
    var(--surface-2);
  display: grid; place-items: center;
  color: var(--text-3); font-size: 11px; letter-spacing: .08em;
}

/* ---------- Ad slot ---------- */
.hk-ad {
  border: 1px solid var(--ad-line); background: var(--ad-bg);
  border-radius: var(--radius); padding: 20px 22px; margin: 28px 0;
}
.hk-ad__label {
  display: inline-block; background: var(--ad); color: #241b05;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  padding: 3px 11px; border-radius: 999px; margin-bottom: 12px;
}
.hk-ad__body { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.hk-ad__note { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }

/* ---------- PR枠（TOP）：アフィリエイト収益枠。メイン導線から視線を奪わない密度に抑える ---------- */
.hk-prgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hk-prcard {
  border: 1px solid var(--ad-line); border-radius: var(--radius);
  background: var(--ad-bg); overflow: hidden;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.hk-prcard:hover { background: rgba(168, 128, 44, .10); transform: translateY(-2px); }
.hk-prcard--empty { opacity: .72; }
.hk-prcard__logo { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); }
.hk-prcard__logo img, .hk-prcard__logo svg { width: 100%; height: 100%; object-fit: cover; }
.hk-prcard__body { display: block; padding: 14px 18px 18px; }
.hk-prcard__title { display: block; margin-top: 10px; font-family: var(--font-head); font-size: 15px; font-weight: 700; line-height: 1.55; }
.hk-prgrid__note { margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.hk-note { font-size: 13px; color: var(--text-3); margin-top: 18px; }

/* =========================================================
   Archive — list layout (not cards)
   ========================================================= */
.hk-breadcrumb { font-size: 12.5px; color: var(--text-3); padding: 22px 0 0; }
.hk-breadcrumb a { color: var(--text-2); transition: color .25s var(--ease); }
.hk-breadcrumb a:hover { color: var(--accent); }
.hk-breadcrumb span { margin: 0 7px; opacity: .5; }

.hk-archive__head { margin-bottom: 30px; }
.hk-archive__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.hk-archive__desc { margin-top: 12px; color: var(--text-2); font-size: 14.5px; }
.hk-archive__count { color: var(--text-3); }

.hk-list { display: grid; gap: 14px; }
.hk-listitem {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; background: var(--surface);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.hk-listitem:hover { border-color: var(--accent-line); background: var(--surface-2); }
.hk-listitem__thumb { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.hk-listitem__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hk-listitem__body { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.hk-listitem__title { font-family: var(--font-head); font-size: 17px; font-weight: 700; line-height: 1.55; }
.hk-listitem__meta { font-size: 12.5px; color: var(--text-3); }
.hk-listitem__meta span { margin: 0 6px; opacity: .5; }

/* リードCTA（＼煽り文／＋大ボタン）
   冒頭（目次の直前）・読了率50%・記事末の3か所で同じ形を使う。
   囲み枠にすると広告枠に見えて押されないので、上下の細い罫線だけで本文と切る。 */
.hk-leadcta {
  margin: 32px 0; padding: 26px 16px; text-align: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hk-leadcta--top { margin: 24px 0 28px; }
.hk-leadcta--article { margin: 40px 0 0; }
.hk-leadcta__lead {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; line-height: 1.6;
  font-size: clamp(14px, 1.5vw, 16px); color: var(--text);
}
.hk-leadcta__lead::before,
.hk-leadcta__lead::after { color: var(--text-3); flex: none; }
.hk-leadcta__lead::before { content: "＼"; }
.hk-leadcta__lead::after  { content: "／"; }
.hk-leadcta__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 16px; padding: 17px 40px; border-radius: 999px;
  background: var(--cta-bg); color: var(--cta-fg); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 18px rgba(212, 115, 143, .26);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.hk-leadcta__btn:hover { background: var(--cta-bg-hover); transform: translateY(-1px); color: var(--cta-fg); }
.hk-leadcta__arrow { font-size: 15px; }
.hk-leadcta__note { margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.hk-leadcta__sub {
  display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--text-2);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: color .25s var(--ease);
}
.hk-leadcta__sub:hover { color: var(--accent); }

@media (max-width: 600px) {
  .hk-leadcta { padding: 22px 0; }
  .hk-leadcta__lead { gap: 2px; font-size: 14px; }
  .hk-leadcta__btn { display: flex; width: 100%; padding: 16px 18px; font-size: 15px; }
}

/* Pagination */
.hk-pagination { margin-top: 40px; display: flex; justify-content: center; }
.hk-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hk-pagination .page-numbers {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 14px; color: var(--text-2);
  transition: all .25s var(--ease);
}
.hk-pagination a.page-numbers:hover { color: var(--text); border-color: var(--accent-line); }
.hk-pagination .page-numbers.current { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); font-weight: 700; }
.hk-pagination .page-numbers.dots { border-color: transparent; }

/* =========================================================
   Single
   ========================================================= */
.hk-article__head { margin-bottom: 28px; }
.hk-article__cat {
  display: inline-block; font-size: 11.5px; color: var(--accent);
  border: 1px solid var(--accent-line); border-radius: 999px;
  padding: 3px 13px; margin-bottom: 16px;
}
.hk-article__title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.45; }
.hk-article__meta { margin-top: 16px; font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 16px; }
.hk-article__eyecatch { margin: 28px 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }

/* TOC */
.hk-toc {
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--radius); padding: 22px 24px; margin: 32px 0;
}
.hk-toc__title { font-family: var(--font-head); font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.hk-toc ol { counter-reset: toc; display: grid; gap: 9px; }
.hk-toc li { counter-increment: toc; font-size: 14.5px; line-height: 1.6; }
.hk-toc li::before { content: counter(toc) "."; color: var(--accent); margin-right: 9px; font-weight: 700; }
.hk-toc li.is-h3 { counter-increment: none; margin-left: 22px; font-size: 13.5px; }
.hk-toc li.is-h3::before { content: "–"; }
.hk-toc a { color: var(--text-2); transition: color .25s var(--ease); }
.hk-toc a:hover { color: var(--accent); }

/* Article body */
.hk-body { font-size: 16.5px; line-height: 2; }
.hk-body > * + * { margin-top: 1.5em; }
.hk-body h2 {
  font-size: 23px; font-weight: 700; margin-top: 2.6em; margin-bottom: .9em;
  padding: 14px 0 14px 18px; border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
  border-radius: 0 var(--radius) var(--radius) 0; scroll-margin-top: 88px;
}
.hk-body h3 {
  font-size: 19px; font-weight: 700; margin-top: 2.2em; margin-bottom: .7em;
  padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); scroll-margin-top: 88px;
}
.hk-body h4 { font-size: 17px; margin-top: 2em; margin-bottom: .6em; }
.hk-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.hk-body a:hover { color: var(--cta-bg-hover); }
.hk-body ul, .hk-body ol { padding-left: 1.4em; }
.hk-body ul { list-style: disc; }
.hk-body ol { list-style: decimal; }
.hk-body li { margin-bottom: .5em; }
.hk-body li::marker { color: var(--accent); }
.hk-body blockquote {
  border-left: 3px solid var(--line-strong); padding: 4px 0 4px 20px;
  color: var(--text-2); font-style: normal;
}
.hk-body img { border-radius: var(--radius); }
.hk-body figure { margin: 2em 0; }
.hk-body figcaption { font-size: 13px; color: var(--text-3); margin-top: 10px; text-align: center; }
.hk-body code { background: var(--surface-2); padding: 2px 7px; border-radius: 4px; font-size: .9em; }
.hk-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.hk-body th, .hk-body td { border: 1px solid var(--line-strong); padding: 12px 14px; text-align: left; }
.hk-body th { background: var(--surface-2); font-weight: 700; }
.hk-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* Related */
.hk-related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.hk-related__title { font-size: 19px; font-weight: 700; margin-bottom: 22px; }
.hk-related .hk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Page (fixed pages) */
.hk-page__title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin-bottom: 28px; letter-spacing: -.02em; }

/* =========================================================
   Sidebar
   ========================================================= */
.hk-side { display: grid; gap: 22px; align-content: start; }
/* 中身をまとめて追従させる箱。個別のウィジェットは sticky にしない（重なるため）。 */
.hk-side__sticky { display: grid; gap: 22px; align-self: start; }

.hk-widget {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 20px;
}
.hk-widget--lead { border-color: var(--lead-line); background: var(--lead-bg); }
.hk-widget--lead .hk-widget__label { background: var(--lead); color: var(--cta-fg); }
.hk-widget__note { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }
.hk-catlist li { font-size: 13.5px; line-height: 2.1; border-bottom: 1px solid var(--line); }
.hk-catlist li:last-child { border-bottom: 0; }
.hk-catlist a { color: var(--text-2); transition: color .25s var(--ease); }
.hk-catlist a:hover { color: var(--accent); }
.hk-sidemail { display: grid; gap: 8px; }
.hk-widget--ad { border-color: var(--ad-line); background: var(--ad-bg); }
.hk-widget__label {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .12em;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 14px;
  background: var(--surface-2); color: var(--text-2);
}
.hk-widget--ad .hk-widget__label { background: var(--ad); color: #241b05; }
.hk-widget__title { font-family: var(--font-head); font-size: 15px; font-weight: 700; margin-bottom: 14px; }

.hk-ranklist { display: grid; gap: 12px; }
.hk-ranklist__item {
  display: grid; grid-template-columns: 30px 64px minmax(0, 1fr); gap: 11px; align-items: center;
  padding: 9px; border-radius: 8px;
  transition: background .25s var(--ease);
}
.hk-ranklist__item:hover { background: rgba(255, 255, 255, .04); }
.hk-ranklist__num {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
  background: var(--surface-2); color: var(--text-2);
}
.hk-ranklist__item:nth-child(1) .hk-ranklist__num { background: var(--cta-bg); color: var(--cta-fg); }
.hk-ranklist__item:nth-child(2) .hk-ranklist__num,
.hk-ranklist__item:nth-child(3) .hk-ranklist__num { background: rgba(143, 199, 154, .3); color: var(--text); }
.hk-ranklist__thumb { aspect-ratio: 4 / 3; border-radius: 5px; overflow: hidden; background: var(--surface-2); }
.hk-ranklist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hk-ranklist__title { display: block; font-size: 13px; line-height: 1.55; }
.hk-ranklist__cat { display: block; font-size: 11px; color: var(--text-3); margin-top: 3px; }

.hk-catlist { display: grid; gap: 2px; }
.hk-catlist a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14px;
  transition: color .25s var(--ease);
}
.hk-catlist a:hover { color: var(--accent); }
.hk-catlist li:last-child a { border-bottom: 0; }
.hk-catlist__count { font-size: 12px; color: var(--text-3); }

.hk-mail__note { font-size: 13px; color: var(--text-2); margin-bottom: 14px; line-height: 1.7; }
.hk-mail__form { display: grid; gap: 10px; }
.hk-mail__input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 11px 14px; font-size: 14px; color: var(--text);
}
.hk-mail__input::placeholder { color: var(--text-3); }
.hk-mail__submit {
  background: var(--cta-bg); color: var(--cta-fg); font-family: var(--font-head);
  font-weight: 700; font-size: 14px; padding: 11px; border-radius: 8px;
  transition: background .25s var(--ease);
}
.hk-mail__submit:hover { background: var(--cta-bg-hover); }

/* =========================================================
   Footer
   ========================================================= */
.hk-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 52px 0 40px; }
.hk-footer__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.hk-footer__title { font-family: var(--font-head); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.hk-footer__list { display: grid; gap: 10px; }
.hk-footer__list a { font-size: 13.5px; color: var(--text-2); transition: color .25s var(--ease); }
.hk-footer__list a:hover { color: var(--accent); }
.hk-footer__bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12.5px; color: var(--text-3);
}
.hk-footer__acc-toggle { display: none; }

/* Mobile sticky CTA */
.hk-mobilecta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobilecta);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.hk-mobilecta a {
  display: block; text-align: center;
  background: var(--cta-bg); color: var(--cta-fg);
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 14px; border-radius: 999px;
}

/* =========================================================
   404 / search
   ========================================================= */
.hk-empty { padding: 60px 0; text-align: center; }
.hk-empty__title { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.hk-empty__text { color: var(--text-2); font-size: 14.5px; margin-bottom: 26px; }

.hk-searchform { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.hk-searchform input[type="search"] {
  flex: 1; background: var(--bg-2); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 11px 14px; color: var(--text); font-size: 14px;
}
.hk-searchform button {
  background: var(--cta-bg); color: var(--cta-fg); font-weight: 700;
  padding: 11px 20px; border-radius: 8px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  :root { --side: 300px; --gap: 32px; }
  .hk-nav ul { gap: 18px; }
  .hk-nav a { font-size: 13.5px; }
}

@media (max-width: 900px) {
  .hk-layout { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
  
  .hk-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hk-grid, .hk-prgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk-related .hk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk-nav { display: none; }
  .hk-cta { display: none; }
  .hk-burger { display: flex; margin-left: auto; }
  .hk-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hk-footer__col { border-bottom: 1px solid var(--line); }
  .hk-footer__title {
    display: flex; justify-content: space-between; align-items: center;
    margin: 0; padding: 17px 2px; cursor: pointer;
  }
  .hk-footer__title::after { content: "+"; font-size: 18px; color: var(--text-3); font-weight: 400; }
  .hk-footer__col[data-open="true"] .hk-footer__title::after { content: "−"; }
  .hk-footer__list { display: none; padding: 0 2px 20px; }
  .hk-footer__col[data-open="true"] .hk-footer__list { display: grid; }
  .hk-mobilecta { display: block; }
  body { padding-bottom: 78px; }
}

@media (max-width: 600px) {
  .hk-container { width: calc(100% - 32px); }
  .hk-hero { padding: 36px 0 32px; }
  .hk-grid, .hk-prgrid { grid-template-columns: minmax(0, 1fr); }
  .hk-related .hk-grid { grid-template-columns: minmax(0, 1fr); }
  .hk-listitem { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .hk-listitem__title { font-size: 15px; }
  .hk-body { font-size: 16px; }
  .hk-body h2 { font-size: 20px; }
  .hk-body h3 { font-size: 17.5px; }
  .hk-sec { margin-bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Single 追加パーツ（監修者 / 記事末CTA / 追従目次）
   ========================================================= */
.hk-main { min-width: 0; }

/* 監修者プロフィール（E-E-A-T） */
.hk-supervisor {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 18px; align-items: center;
  margin-top: 48px; padding: 20px 22px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--surface);
}
.hk-supervisor__photo {
  width: 62px; height: 62px; border-radius: 50%; overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center;
}
.hk-supervisor__photo img { width: 100%; height: 100%; object-fit: cover; }
.hk-supervisor__initial { font-size: 12px; color: var(--text-3); }
.hk-supervisor__name { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.hk-supervisor__role { font-weight: 400; font-size: 12.5px; color: var(--text-3); margin-left: 10px; }
.hk-supervisor__bio { font-size: 13.5px; color: var(--text-2); line-height: 1.75; margin-top: 6px; }

/* 記事末CTA（大）。フォーム直行と資料DLの二択にして、読了後の離脱を回収する */
.hk-endcta {
  margin-top: 36px; padding: 28px;
  border: 1px solid var(--lead-line); background: var(--lead-bg);
  border-radius: var(--radius-lg);
}
.hk-endcta__label {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .12em;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 14px;
  background: var(--lead); color: var(--cta-fg);
}
.hk-endcta__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; }
.hk-endcta__note { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.hk-endcta__actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hk-endcta__primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--cta-bg); color: var(--cta-fg);
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px;
  padding: 15px 26px; border-radius: 999px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.hk-endcta__primary:hover { background: var(--cta-bg-hover); transform: translateY(-1px); }
.hk-endcta__arrow { font-size: 15px; }
.hk-endcta__secondary {
  font-size: 14px; color: var(--text-2);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: color .25s var(--ease);
}
.hk-endcta__secondary:hover { color: var(--accent); }

/* サイドバー追従目次 */
.hk-toc-side ol { counter-reset: stoc; display: grid; gap: 8px; max-height: 44vh; overflow-y: auto; }
.hk-toc-side li { counter-increment: stoc; font-size: 13px; line-height: 1.55; }
.hk-toc-side li::before { content: counter(stoc) "."; color: var(--accent); margin-right: 7px; font-weight: 700; }
.hk-toc-side li.is-h3 { counter-increment: none; margin-left: 16px; font-size: 12.5px; }
.hk-toc-side li.is-h3::before { content: "–"; }
.hk-toc-side a { color: var(--text-2); transition: color .25s var(--ease); }
.hk-toc-side a:hover, .hk-toc-side a.is-current { color: var(--accent); }
.hk-toc-side a.is-current { font-weight: 700; }

@media (max-width: 900px) {
  .hk-toc-side { display: none; }
  .hk-supervisor { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .hk-supervisor__photo { width: 52px; height: 52px; }
  .hk-endcta { padding: 20px; }
}

/* =========================================================
   サイドバー
   記事より背が低いと、スクロールした先で右側が空白になる。
   そこで列自体を記事と同じ高さまで伸ばし（align-self: stretch）、
   ウィジェット群を包んだ .hk-side__sticky ごと追従させる。
   個別のウィジェットを sticky にすると、1カラムの縦積みなので
   スクロール中に下のウィジェットへ必ず重なる。ここは触らないこと。
   ========================================================= */
.hk-side {
  align-self: stretch;   /* .hk-layout の align-items: start を打ち消す */
  max-height: none;
  overflow: visible;
}
.hk-side__sticky {
  position: sticky;
  top: 84px;             /* 追従ヘッダー68px＋余白16px */
  /* ウィジェットの合計が画面より高いときだけ、この箱の中でスクロールさせる */
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/*
 * サイドバーのCTAは短い枠にする。入力フォームをそのまま置くと700px超になり、
 * 下の人気記事・広告・メルマガが押し出されて回遊の妨げになるため、
 * ここはボタン1つで /contact/ へ送るだけにする。
 */
.hk-widget--lead { position: static; }
.hk-widget__cta {
  display: block; margin-top: 14px; text-align: center;
  background: var(--cta-bg); color: var(--cta-fg);
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  padding: 13px 16px; border-radius: 999px;
  transition: background .25s var(--ease);
}
.hk-widget__cta:hover { background: var(--cta-bg-hover); }

.hk-side__sticky::-webkit-scrollbar { width: 6px; }
.hk-side__sticky::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.hk-side__sticky::-webkit-scrollbar-track { background: transparent; }
/* 追従中は目次自体のスクロールを殺し、サイドバー側でまとめて送る */
.hk-toc-side ol { max-height: none; overflow: visible; }

/* フッターのメルマガ帯（サイドバーから移設） */
.hk-newsletter {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 28px; align-items: center;
  padding: 26px 28px; margin-bottom: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface);
}
.hk-newsletter__title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.hk-newsletter__note { font-size: 13.5px; color: var(--text-2); margin-top: 8px; }
.hk-newsletter__form { display: flex; gap: 10px; }
.hk-newsletter__form .hk-mail__input { flex: 1; }
.hk-newsletter__form .hk-mail__submit { padding: 11px 24px; white-space: nowrap; }

@media (max-width: 900px) {
  .hk-side {
    position: static;
    align-self: start;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  /* 縦積みになるので追従は解除する */
  .hk-side__sticky {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .hk-newsletter { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px; }
}
@media (max-width: 600px) {
  .hk-newsletter__form { flex-direction: column; }
}

/* =========================================================
   タグ
   ========================================================= */
.hk-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hk-tags__label { font-size: 12.5px; color: var(--text-3); letter-spacing: .04em; }
.hk-tags__list { display: flex; flex-wrap: wrap; gap: 8px; }
.hk-tags__list a {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 15px; font-size: 13px; color: var(--text-2);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.hk-tags__list a:hover {
  color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft);
}
.hk-tags__hash { color: var(--accent); margin-right: 3px; font-weight: 700; }

.hk-tagcloud { margin-top: 40px; }
.hk-tagcloud .hk-widget { padding: 22px 24px; }
.hk-tagcloud .hk-tags__list { gap: 9px; }

@media (max-width: 600px) {
  .hk-tags { margin-top: 32px; padding-top: 20px; }
  .hk-tags__list a { padding: 5px 13px; font-size: 12.5px; }
}

/* =========================================================
   ヒーロー背景画像（未設定なら従来どおり無地）
   ========================================================= */
.hk-hero--image {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
}
/* 背景画像。白地に馴染ませるため、上から白いベールをかけて文字を読ませる。 */
.hk-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hk-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hk-hero--image::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.45) 42%, rgba(255,255,255,0) 72%);
}
.hk-hero--image .hk-hero__inner { position: relative; z-index: 2; }
.hk-hero--image .hk-slide { box-shadow: 0 18px 44px rgba(31, 26, 29, .16); }

@media (max-width: 900px) {
  /* モバイルは縦積みになるので、白ベールを均一にかけて文字を確実に読ませる */
  .hk-hero--image::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .80) 0%, rgba(255, 255, 255, .68) 60%, rgba(255, 255, 255, .55) 100%);
  }
  .hk-hero--image { padding: 44px 0 40px; }
}

/* =========================================================
   お問い合わせフォーム
   ========================================================= */
.hk-form { display: grid; gap: 26px; max-width: 640px; margin-top: 8px; }
.hk-form__row { display: grid; gap: 10px; }
.hk-form__label { font-family: var(--font-head); font-size: 14.5px; font-weight: 700; }
.hk-form__req { color: var(--accent); margin-left: 2px; }
.hk-form__input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 13px 15px;
  font-family: inherit; font-size: 15px; line-height: 1.7;
  color: var(--text);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.hk-form__input:focus {
  outline: none;
  border-color: var(--accent-line);
  background: var(--surface);
}
.hk-form__input::placeholder { color: var(--text-3); }
.hk-form__textarea { resize: vertical; min-height: 200px; }

.hk-form__submit {
  justify-self: start;
  background: var(--cta-bg); color: var(--cta-fg);
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 14px 40px; border-radius: 999px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.hk-form__submit:hover { background: var(--cta-bg-hover); transform: translateY(-1px); }

/* ハニーポット：人には見せず、スクリーンリーダーからも外す */
.hk-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hk-form__notice {
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px;
  font-size: 14.5px; line-height: 1.75;
}
.hk-form__notice--ok { border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--text); }
.hk-form__notice--ng { border: 1px solid rgba(224, 122, 95, .5); background: rgba(224, 122, 95, .08); color: #edc4b6; }

@media (max-width: 600px) {
  .hk-form { gap: 20px; }
  .hk-form__submit { justify-self: stretch; text-align: center; }
}

/* =========================================================
   アイキャッチ未設定時のSVGプレースホルダ
   ========================================================= */
.hk-ph { display: block; width: 100%; height: 100%; }
/* 画像と同じ挙動にする（カードのホバーで少し寄る） */
.hk-card:hover .hk-ph { transform: scale(1.03); transition: transform .5s var(--ease); }

/* 記事冒頭のアイキャッチ枠：SVGのときは16:9で高さを確保する */
.hk-article__eyecatch .hk-ph { aspect-ratio: 16 / 9; }
/* SVG内のテキストは見出しフォントに揃える */
.hk-ph text { font-family: var(--font-head); }
/* プレースホルダが白背景になったので、カード内で浮かないよう境界を締める */
.hk-card__thumb .hk-ph,
.hk-listitem__thumb .hk-ph,
.hk-ranklist__thumb .hk-ph,
.hk-feat__thumb .hk-ph { box-shadow: inset 0 0 0 1px rgba(31, 26, 29, .10); }

/* =========================================================
   フォーム（資料請求・無料相談）
   項目は4つ＋任意1つ。入力負荷を下げてフォーム到達後の離脱を防ぐ。
   ========================================================= */
.hk-form { display: grid; gap: 18px; }
.hk-form__row { display: grid; gap: 8px; }
.hk-form__fieldset { border: 0; padding: 0; margin: 0; }
.hk-form__label { font-size: 13.5px; font-weight: 700; font-family: var(--font-head); }
.hk-form__req { color: var(--lead); font-size: 12px; margin-left: 4px; }
.hk-form__opt { color: var(--text-3); font-size: 11.5px; font-weight: 400; margin-left: 6px; }
.hk-form__input {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 13px 15px;
  transition: border-color .25s var(--ease);
}
.hk-form__input::placeholder { color: var(--text-3); }
.hk-form__input:focus { border-color: var(--lead-line); outline: none; }
.hk-form__textarea { line-height: 1.75; resize: vertical; }
.hk-form__choices { display: flex; flex-wrap: wrap; gap: 10px; }
.hk-form__choice {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 16px; font-size: 14px; cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.hk-form__choice:hover { border-color: var(--lead-line); background: var(--lead-bg); }
.hk-form__submit {
  width: 100%; background: var(--cta-bg); color: var(--cta-fg);
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  padding: 16px 20px; border-radius: 999px;
  transition: background .25s var(--ease);
}
.hk-form__submit:hover { background: var(--cta-bg-hover); }
.hk-form__privacy { font-size: 12px; color: var(--text-3); text-align: center; }
.hk-form__privacy a { color: var(--text-2); border-bottom: 1px solid var(--line-strong); }
.hk-form__notice { border-radius: var(--radius); padding: 16px 18px; font-size: 14.5px; margin-bottom: 18px; }
.hk-form__notice--ok { border: 1px solid var(--lead-line); background: var(--lead-bg); }
.hk-form__notice--ng { border: 1px solid var(--ad-line); background: var(--ad-bg); }
/* 画面から隠すが、スクリーンリーダーとボットには見える囮の項目 */
.hk-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* サイドバー用の詰めた体裁 */
.hk-form--compact { gap: 12px; }
.hk-form--compact .hk-form__input { font-size: 14px; padding: 11px 13px; }
.hk-form--compact .hk-form__submit { font-size: 14.5px; padding: 14px 16px; }
.hk-form--compact .hk-form__choice { padding: 7px 13px; font-size: 13px; }

/* =========================================================
   資料請求LP（1カラム）
   コンバージョン直前のページ。回遊リンクと広告枠を出さず、フォームへ一直線にする。
   ========================================================= */
.hk-header--lp .hk-header__inner { grid-template-columns: auto 1fr auto; gap: 20px; }
.hk-header__back { font-size: 13.5px; color: var(--text-2); }
.hk-header__back:hover { color: var(--accent); }
.hk-header__close { display: none; font-size: 26px; line-height: 1; color: var(--text-2); }

.hk-lp { max-width: 860px; padding-top: 48px; padding-bottom: 72px; }
.hk-lp__article .hk-body > h1 { font-size: clamp(24px, 3.4vw, 36px); text-align: center; line-height: 1.45; }
.hk-lp__article .hk-body > h2 { text-align: center; }
.hk-lp .hk-body > p { text-align: center; color: var(--text-2); }
.hk-lp .hk-lp__cols > p { text-align: left; }

/* LP内の3カラム（課題・サービス内容・導入事例） */
.hk-lp__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 8px; }
.hk-lp__col {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 20px;
}
.hk-lp__col h3 { font-size: 15.5px; margin-bottom: 8px; }
.hk-lp__col p { font-size: 13.5px; color: var(--text-2); line-height: 1.8; }

.hk-lp__form {
  border: 1px solid var(--lead-line); background: var(--lead-bg);
  border-radius: var(--radius-lg); padding: 30px; margin: 40px 0;
  scroll-margin-top: 90px;
}
.hk-lp__form h2 { text-align: center; font-size: 20px; margin-bottom: 6px; }
.hk-lp__form > p { text-align: center; color: var(--text-2); font-size: 14px; margin-bottom: 22px; }

/* FAQ */
.hk-faq { display: grid; gap: 10px; margin: 8px 0 0; }
.hk-faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 16px 20px;
}
.hk-faq summary { font-family: var(--font-head); font-weight: 700; font-size: 15px; cursor: pointer; }
.hk-faq p { margin-top: 10px; font-size: 14px; color: var(--text-2); }

/* 記事の目次（アコーディオン） */
.hk-toc summary { cursor: pointer; }
.hk-toc summary::-webkit-details-marker { display: none; }
.hk-toc summary::after { content: "▾"; margin-left: 8px; font-size: 12px; color: var(--text-3); }
.hk-toc[open] summary::after { content: "▴"; }

@media (max-width: 900px) {
  .hk-lp__cols { grid-template-columns: minmax(0, 1fr); }
  .hk-lp__form { padding: 22px 18px; }
  .hk-header--lp .hk-header__inner { grid-template-columns: 1fr auto; }
  .hk-header--lp .hk-header__back, .hk-header--lp .hk-cta { display: none; }
  .hk-header__close { display: block; }
}

/* =========================================================
   本文内に置いたCTAの見え方を直す
   .hk-body a の色指定が後から効いてボタン文字が背景色と同化するため、
   ボタン系だけ明示的に上書きする。
   ========================================================= */
.hk-body a.hk-endcta__primary { color: var(--cta-fg); text-decoration: none; }
.hk-body a.hk-endcta__primary:hover { color: var(--cta-fg); }
.hk-body a.hk-endcta__secondary { color: var(--text-2); text-decoration: none; }
.hk-body a.hk-endcta__primary { margin-top: 8px; }
.hk-body a.hk-leadcta__btn { color: var(--cta-fg); text-decoration: none; }
.hk-body a.hk-leadcta__btn:hover { color: var(--cta-fg); }
.hk-body a.hk-leadcta__sub { color: var(--text-2); text-decoration: none; }
/* 本文の p の余白がCTA内にも効くので、枠の中だけ打ち消す */
.hk-body .hk-leadcta p { margin: 0; }
.hk-body .hk-leadcta__btn { margin-top: 16px; }
.hk-body .hk-leadcta__note { margin-top: 12px; }

/* LPの見出しは中央寄せなので、記事用の左バー装飾は外す */
.hk-lp .hk-body h1 { margin-top: 0; }
.hk-lp .hk-body h2 {
  padding: 0; border-left: 0; background: none; border-radius: 0;
  margin-top: 3em; margin-bottom: 1.2em;
}
.hk-lp .hk-body h3 { border-bottom: 0; padding-bottom: 0; margin-top: 0; }
.hk-lp .hk-lp__form h2 { margin-top: 0; }
.hk-lp .hk-body p + .hk-lp__cols { margin-top: 20px; }
/* CTAボタンを含む段落は中央に置く */
.hk-lp .hk-body p:has(> a.hk-endcta__primary) { text-align: center; margin: 26px 0 0; }

/* 一覧の「もっと見る」（モバイルのみ・JSで差し込む） */
.hk-more {
  display: block; width: 100%; margin-top: 24px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 14px; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  color: var(--text-2); background: var(--surface);
}
.hk-more:hover { color: var(--text); border-color: var(--accent-line); }


/* =========================================================
   TOPヒーロー
   ワイヤーどおりの2カラム。左に見出し＋リード＋LEADバナー、
   右カラムに注目記事を横3枠で並べる。
   ========================================================= */
.hk-hero__title { max-width: 16em; }
.hk-hero__lead { max-width: 34em; }

/* LEADバナーは左カラム内の箱。ラベルを上、文言を下の2段にする */
.hk-leadbanner {
  display: block; width: 100%;
  border-radius: var(--radius); padding: 18px 22px;
}
.hk-leadbanner::after { content: none; }
.hk-leadbanner__label { display: inline-block; margin-bottom: 10px; }
.hk-leadbanner__text { display: block; }

/* 右カラムの注目記事は横3枠 */
.hk-hero__featured {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; align-content: start;
}
.hk-feat { display: block; }
.hk-feat__thumb { display: block; margin-bottom: 10px; }
.hk-feat__title { font-size: 13.5px; line-height: 1.55; }
.hk-feat--empty {
  display: grid; place-items: center;
  min-height: 96px; padding: 16px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--text-3); font-size: 13px;
}

@media (max-width: 900px) {
  .hk-hero__featured { gap: 10px; }
  .hk-feat--empty { min-height: 72px; font-size: 12px; padding: 10px; }
}

/* 見出しは読み上げにだけ残す */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* PR枠の見出しは、記事セクションより一段小さい小見出しにする */
.hk-sec__subtitle {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  margin-bottom: 16px;
}
.hk-sec--pr { margin-top: 8px; }

/* =========================================================
   サムネ枠
   span のままだと display:inline で aspect-ratio が効かず、
   自動生成のSVGプレースホルダが縦に伸びてカードを壊す。
   ========================================================= */
.hk-card__thumb,
.hk-feat__thumb,
.hk-listitem__thumb,
.hk-ranklist__thumb,
.hk-prcard__logo { display: block; overflow: hidden; }
.hk-card__thumb { aspect-ratio: 16 / 10; }
.hk-feat__thumb { aspect-ratio: 16 / 10; }
.hk-ranklist__thumb { aspect-ratio: 4 / 3; }
.hk-card__thumb > svg,
.hk-card__thumb > img,
.hk-feat__thumb > svg,
.hk-feat__thumb > img,
.hk-listitem__thumb > svg,
.hk-listitem__thumb > img,
.hk-ranklist__thumb > svg,
.hk-ranklist__thumb > img,
.hk-prcard__logo > svg,
.hk-prcard__logo > img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* =========================================================
   ヒーロー（左：テキスト＋CTA ／ 右：メインビジュアル）
   ========================================================= */
.hk-hero__inner { align-items: center; }
.hk-hero__body { min-width: 0; }
/*
 * スライダーの器。背景も切り抜きも持たせない。
 * 地を敷くとヒーローの背景写真の上に灰色の板が乗って見えるため。
 * overflow は visible のまま（切り抜くと3D配置が平坦化する）。
 */
.hk-hero__visual {
  background: none;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
}
.hk-hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hk-hero__visual-empty {
  color: var(--text-3); font-size: 13.5px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 14px 22px;
}

@media (max-width: 900px) {
  .hk-hero__visual { aspect-ratio: 16 / 9; }
}

/* =========================================================
   ヒーローの注目記事スライダー
   3枚を三角形に置く。表示中は中央の手前、残り2枚は左奥と右奥。
   4秒ごとに3つの位置を巡回させ、右奥のカードが中央へ出てくる。
   ========================================================= */
.hk-slider {
  position: relative; width: 100%; height: 100%;
  perspective: 1300px;
}
.hk-slider__track {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
}
.hk-slide {
  /* 左右に奥のカードを逃がす余白を取るため、中央のカードは幅いっぱいにしない */
  position: absolute; left: 72px; right: 72px; bottom: 34px;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  height: calc(100% - 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(31, 26, 29, .12);
  transform-origin: 50% 50%;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
  will-change: transform, opacity;
}

/* 中央・手前。原寸で正面を向く。 */
.hk-slide.is-active {
  transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
  opacity: 1; z-index: 3;
}
/* 右奥。次に中央へ出てくるカード。 */
.hk-slide.is-right {
  transform: translate3d(150px, -16px, -300px) rotateY(-16deg) scale(.8);
  opacity: .5; z-index: 2;
}
/* 左奥。中央から退いたカードが回り込む位置。 */
.hk-slide.is-left {
  transform: translate3d(-150px, -16px, -300px) rotateY(16deg) scale(.8);
  opacity: .5; z-index: 2;
}

.hk-slide__thumb { display: block; overflow: hidden; background: var(--surface-2); }
.hk-slide__thumb > svg, .hk-slide__thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hk-slide__body { display: block; padding: 16px 20px 20px; }
.hk-slide__cat { display: block; font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.hk-slide__title {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 16.5px; line-height: 1.55;
}
.hk-slide.is-active:hover { transform: translate3d(0, -5px, 24px) rotateY(0deg) scale(1.015); }
.hk-slide.is-active:hover .hk-slide__title { color: var(--accent); }

.hk-slider__dots {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; gap: 8px;
  z-index: 5;
}
.hk-slider__dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0;
  background: var(--line-strong);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.hk-slider__dot.is-active { background: var(--accent); transform: scale(1.25); }

/* 動きを減らす設定では、奥行きを使わず淡く切り替えるだけにする */
@media (prefers-reduced-motion: reduce) {
  .hk-slider { perspective: none; }
  .hk-slide { transition: opacity .3s linear; transform: none !important; opacity: 0; }
  .hk-slide.is-active { opacity: 1; }
}
}

/* LEADラベルを廃止したぶんの余白調整 */
.hk-leadbanner { display: flex; align-items: center; gap: 0; }
.hk-leadbanner__text { display: block; }
.hk-endcta__title { margin-top: 0; }
.hk-widget--lead .hk-widget__title { margin-top: 0; }
