/* Inter（latinサブセット・可変フォント）。
   Google Fonts から直接読み込むと、閲覧者のIPアドレスが第三者に渡る。
   自前で配信して外部への通信を無くしている。
   和文は端末側のフォント（Hiragino / Noto Sans JP など）を使うため同梱しない。
   400/500/700 で配信されるファイルは実体が同一だったので1本にまとめている。 */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   スクロール連動の動き
   自動再生のループではなく、読み進めた分だけ動く。
   **基準の状態を「見えている」にしてある。** アニメーションが走らない
   環境（未対応ブラウザ・動きを減らす設定）でも内容が消えないため。
   ============================================================ */

@keyframes revealUp   { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes revealSide { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes stripSlide { from { transform: translateX(2%); } to { transform: translateX(-42%); } }
@keyframes spinScroll { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes drawRing   { from { stroke-dashoffset: 640; } to { stroke-dashoffset: 0; } }
@keyframes growBar    { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 帯 */
.strip { border-block: 1px solid var(--line); padding: 22px 0; overflow: clip; background: var(--paper-2); }
.strip-track { display: flex; width: max-content; will-change: transform; }
.strip-item {
  display: inline-flex; align-items: center; gap: 20px; padding-right: 20px;
  font-size: 15px; font-weight: 700; letter-spacing: .021em; color: var(--ink-2); white-space: nowrap;
}
.strip-item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   定期販売ラボ — デザインシステム
   ============================================================ */

:root {
  /* 実測値（ALGO ARTIS）に合わせている。
     背景は青#0031d3が57%・白42%。影は一切使わない。角丸は10/4/0。
     文字は18pxが主体で、最大でも34px。大きさではなく色面と余白で見せる構成。 */

  /* 面と文字 */
  --ink:      #2c2c2c;
  --ink-2:    #474747;
  --ink-3:    #8b8b8b;
  --paper:    #ffffff;
  --paper-2:  #f2f4f6;
  --paper-3:  #e7ecf1;
  --line:     #dfe4ea;
  --line-2:   #c4ccd6;

  /* 色面（画面の過半を占めるブロック） */
  --dark:      #0031d3;
  --dark-2:    #0d3ad1;
  --dark-line: rgba(255,255,255,.22);
  --dark-ink:  rgba(255,255,255,.78);

  /* アクセント */
  --accent:      #0031d3;
  --accent-ink:  #0d3ad1;
  --accent-lit:  #c9e1f2;
  --accent-soft: #e8eefc;
  --accent-glow: rgba(0,49,211,.16);
  --warn:        #b0402f;

  /* かたち（実測値） */
  --r-sm: 4px;
  --r:    10px;
  --r-lg: 10px;
  --wrap: 1360px;
  --gut:  40px;
  --measure: 780px;

  /* セクション余白（実測値） */
  --pad-xl: 112px;
  --pad-lg: 96px;
  --pad-md: 84px;
  --pad-sm: 64px;

  /* 影は使わない。参考実測で shadow が0件のため */
  --shadow-1: none;
  --shadow-2: none;
  --shadow-3: none;

  /* 動き */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
/* ルートに overflow-x を付けない。付けるとスクロール連動アニメーションが
   動かなくなる（scroll(root)/view() の進行度が null になる・実測で確認） */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  /* 欧文・数字だけ Rubik を当て、和文はOS標準（Hiragino/Noto Sans JP）に任せる。
     和文Webフォントは重く、長文メディアでは読み込み待ちのほうが損になる */
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: .020em;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.note { font-size: 14px; color: var(--ink-2); }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-ink); font: inherit; cursor: pointer; text-decoration: underline; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 12px 20px; z-index: 40; border-radius: var(--r-sm); box-shadow: var(--shadow-2); }

/* 微細なノイズ。面の平坦さを消す */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ モーション */
/* 基準は「見えている」。JSが動いたときだけ html に js-reveal が付き、
   そこから出し入れする。JSが動かなければ内容はそのまま見える */
[data-reveal] { opacity: 1; transform: none; }

.js-reveal [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: calc(var(--i,0) * 85ms);
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* 見出しを行ごとに立ち上げる。JSに依存させず、読み込み時にCSSだけで走らせる */
@keyframes riseIn { from { transform: translateY(108%); } to { transform: none; } }
.rise { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.rise > span { display: block; animation: riseIn 1.05s var(--ease-out) both; animation-delay: calc(var(--l, 0) * 115ms + 120ms); }

@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes spinBack { to { transform: rotate(-360deg); } }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(3%,-4%) scale(1.08); } }
@keyframes dashRun { to { stroke-dashoffset: -1000; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .rise > span { animation: none; transform: none; }
}

/* ------------------------------------------------------------ 読了バー */
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; pointer-events: none; }
.readbar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }

/* ------------------------------------------------------------ ヘッダ */
.site-head {
  position: sticky; top: 0; z-index: 25;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-head.is-stuck { border-bottom-color: var(--line); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 88px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 38px; height: 38px; flex: none; position: relative; border-radius: 12px;
  background: var(--accent);
  transition: transform .55s var(--ease-out), box-shadow .35s var(--ease);
}
.brand-mark svg { width: 100%; height: 100%; color: #fff; display: block; transition: transform .9s var(--ease-out); }
.brand:hover .brand-mark svg { transform: rotate(180deg); }
.brand:hover .brand-mark { transform: translateY(-2px); }

.brand-text { display: flex; flex-direction: column; line-height: 1.4; }
.brand-name { font-weight: 800; letter-spacing: .01em; font-size: 20px; margin: 0; }
.brand-sub { font-size: 12px; color: var(--ink-2); letter-spacing: .02em; }

.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  position: relative; text-decoration: none; color: var(--ink-2);
  font-size: 15px; font-weight: 600; padding: 11px 18px; border-radius: var(--r-sm);
  white-space: nowrap; transition: color .22s var(--ease), background .22s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--ease-out);
}
.site-nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--accent-ink); font-weight: 800; }
.site-nav .nav-cta {
  background: var(--ink); color: #fff; padding: 12px 24px; border-radius: 999px; margin-left: 10px;
  transition: background .25s var(--ease), transform .25s var(--ease-out);
}
.site-nav .nav-cta::after { content: none; }
.site-nav .nav-cta:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ------------------------------------------------------------ ヒーロー */
/* ファーストビューは青の面そのもの。白地に図を置くより印象が強い */
/* ファーストビューは青の面そのもの。画面のほとんどを占めさせる */
.hero {
  position: relative; overflow: clip;
  background: var(--accent); color: #fff;
  padding: 84px 0 92px;
  min-height: min(78vh, 780px);
  display: grid; align-items: center;
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { max-width: 46rem; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
  padding: 8px 18px 8px 13px; font-size: 12px; letter-spacing: .2em; font-weight: 800;
  color: #fff; background: rgba(255,255,255,.16); border-radius: 999px;
  animation: fadeUp .8s var(--ease-out) both;
}
.hero-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.hero h1 {
  margin: 0 0 28px; font-size: clamp(38px, 5.8vw, 86px); line-height: 1.3;
  letter-spacing: -.028em; font-weight: 700;
}
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: .06em; height: .26em;
  background: rgba(255,255,255,.22); border-radius: 3px; z-index: -1;
}
.hero-lead { margin: 0 0 36px; color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.95; animation: fadeUp .8s .5s var(--ease-out) both; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp .8s .6s var(--ease-out) both; }


.hero-art { display: grid; place-items: center; animation: fadeUp 1s .35s var(--ease-out) both; }
.cycle { width: min(100%, 420px); height: auto; overflow: visible; }
.cycle .ring-a { animation: spinSlow 38s linear infinite; transform-origin: 160px 160px; }
.cycle .ring-b { animation: spinBack 28s linear infinite; transform-origin: 160px 160px; }
.cycle .ring-c { animation: spinSlow 52s linear infinite; transform-origin: 160px 160px; }
.cycle .flow { stroke-dasharray: 5 11; animation: dashRun 26s linear infinite; }

.scroll-cue { display: flex; align-items: center; gap: 12px; margin-top: 72px; font-size: 12px; letter-spacing: .18em; font-weight: 700; color: var(--ink-3); }
.scroll-cue::after { content: "↓"; font-size: 15px; animation: nudge 2.2s ease-in-out infinite; }

/* main の内側に置きつつ画面幅いっぱいに広げる。
   body に overflow-x:hidden があるので 100vw のはみ出しは出ない */
/* 100vw はスクロールバー幅を含むため右にわずかにはみ出す。
   clip で切る（hidden にすると内側の view() が止まる） */
.bleed { margin-inline: calc(50% - 50vw); width: 100vw; max-width: 100vw; overflow-x: clip; }

/* ------------------------------------------------------------ 帯（マーキー） */

/* ------------------------------------------------------------ ボタン */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--accent); color: #fff; text-decoration: none;
  min-height: 70px; padding: 0 28px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 15px; letter-spacing: .021em;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn::after { content: "→"; transition: transform .3s var(--ease-out); }
.btn:hover { background: var(--accent-ink); }
.btn:hover::after { transform: translateX(6px); }
.btn:active { opacity: .9; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------ セクション */
.section { padding: 68px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-lead { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 32px; margin-bottom: 40px; align-items: start; }
.section-index { font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--accent); padding-top: 14px; border-top: 2px solid var(--accent); }
.section-title { margin: 0 0 20px; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: .012em; font-weight: 700; line-height: 1.7; }
.section-desc { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 36em; line-height: 2.1; }
.more { margin: 48px 0 0; }
.more a { font-weight: 800; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; font-size: 17px; }
.more a::after { content: "→"; transition: transform .3s var(--ease-out); }
.more a:hover::after { transform: translateX(6px); }

/* ------------------------------------------------------------ 暗部ブロック */
.statement { background: var(--dark-2); color: #fff; padding: 76px 0; position: relative; overflow: clip; }
.statement > * { position: relative; }
.statement-index { font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--accent-lit); margin: 0 0 28px; }
.statement h2 { margin: 0 0 48px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.9; letter-spacing: .014em; font-weight: 700; max-width: 26em; }
.statement h2 em { font-style: normal; color: var(--accent-lit); }
.statement-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--dark-line); }
.statement-col h3 { margin: 0 0 14px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.statement-col p { margin: 0; color: var(--dark-ink); font-size: 15.5px; line-height: 2; }
.statement-col b { display: block; font-size: 12px; letter-spacing: .18em; color: var(--accent-lit); font-weight: 800; margin-bottom: 18px; }

/* ------------------------------------------------------------ カテゴリ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.cat-card {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px;
  text-decoration: none; color: inherit; background: var(--paper);
  transition: transform .38s var(--ease-out), box-shadow .38s var(--ease), border-color .38s var(--ease);
}
.cat-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--cat, var(--accent));
  transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease-out);
}
.cat-card:hover { border-color: var(--accent); }
.cat-card:hover::before { transform: scaleY(1); }
.cat-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: .012em; }
.cat-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }

/* ------------------------------------------------------------ 記事カード */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { border-color: var(--accent); }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.card-thumb { position: relative; aspect-ratio: 16 / 8.5; overflow: hidden; background: var(--paper-2); }
.card-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease-out); }
.card:hover .card-thumb svg { transform: scale(1.08); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .06em;
  color: var(--cat, var(--accent-ink)); background: color-mix(in srgb, var(--cat, var(--accent)) 12%, #fff);
  padding: 6px 14px; border-radius: 999px;
}
.card-title { margin: 12px 0 8px; font-size: 18px; line-height: 1.7; font-weight: 700; letter-spacing: .012em; }
.card:hover .card-title { color: var(--accent-ink); }
.card-desc { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-2); line-height: 1.85; flex: 1; }
.card-date { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }

/* ------------------------------------------------------------ ページ見出し */
.page-head { padding: 56px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.page-head h1 { margin: 0 0 24px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.7; letter-spacing: .012em; font-weight: 700; }
.page-head > p { margin: 0; color: var(--ink-2); max-width: 44rem; font-size: 18px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.chip {
  text-decoration: none; font-size: 14.5px; font-weight: 700; padding: 10px 22px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--paper);
  transition: all .28s var(--ease);
}
.chip:hover { border-color: var(--cat, var(--accent)); color: var(--cat, var(--accent-ink)); transform: translateY(-2px); }
.chip.is-active { background: var(--cat, var(--accent)); border-color: var(--cat, var(--accent)); color: #fff; }
.empty { color: var(--ink-2); }

.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.crumbs span { margin: 0 9px; opacity: .5; }

/* ------------------------------------------------------------ 記事 */
.post-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 88px; align-items: start; padding-bottom: 32px; }
.post { padding: 48px 0 0; min-width: 0; }
.post-head { max-width: var(--measure); }
.post-cat {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; margin-bottom: 24px;
  color: var(--cat, var(--accent-ink)); background: color-mix(in srgb, var(--cat, var(--accent)) 12%, #fff);
  padding: 7px 16px; border-radius: 999px;
}
.post-head h1 { margin: 0 0 30px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.7; letter-spacing: .012em; font-weight: 700; }
.post-lead { margin: 0 0 30px; color: var(--ink-2); font-size: 18px; line-height: 2.1; }
.post-meta { margin: 0; font-size: 14px; color: var(--ink-3); padding-bottom: 40px; border-bottom: 1px solid var(--line); }

.toc-side { position: sticky; top: 124px; font-size: 14px; }
.toc-side .toc-head { margin: 0 0 18px; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--accent); }
.toc-side ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc-side a {
  display: block; padding: 10px 0 10px 20px; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--ink-2); text-decoration: none; line-height: 1.7;
  transition: color .22s var(--ease), border-color .22s var(--ease), padding-left .22s var(--ease);
}
.toc-side a:hover { color: var(--ink); padding-left: 24px; }
.toc-side a.is-current { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 800; }

.toc-inline { display: none; max-width: var(--measure); margin: 44px 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 34px; }
.toc-inline .toc-head { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--ink-2); }
.toc-inline ul { margin: 0; padding: 0; list-style: none; }
.toc-inline li { margin: 9px 0; padding-left: 19px; position: relative; }
.toc-inline li::before { content: ""; position: absolute; left: 0; top: .9em; width: 9px; height: 1px; background: var(--accent); }
.toc-inline a { color: var(--ink); text-decoration: none; }
.toc-inline a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ 本文 */
.prose { max-width: var(--measure); padding-bottom: 24px; font-size: 18px; line-height: 1.95; }
/* 実測のh2は15px/700だが、本文18pxを下回ると長文の階層が壊れるため大きさだけ上げている。
   太さ700と字間0.020emは実測どおり */
.prose h2 {
  position: relative; margin: 64px 0 22px; font-size: 24px; line-height: 1.75;
  font-weight: 700; letter-spacing: .020em; padding-top: 26px;
}
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 4px; background: var(--cat, var(--accent)); border-radius: 4px; }
.prose h3 { margin: 36px 0 14px; font-size: 18px; font-weight: 700; color: var(--accent); letter-spacing: .020em; }
.prose p { margin: 0 0 22px; }
.prose ul, .prose ol { margin: 0 0 28px; padding-left: 1.5em; }
.prose li { margin: 11px 0; }
.prose li::marker { color: var(--cat, var(--accent)); font-weight: 800; }
.prose strong { font-weight: 800; }
.prose code { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; font-size: .88em; }
.prose blockquote {
  margin: 0 0 30px; padding: 26px 32px; border-radius: var(--r-sm);
  background: var(--paper-2); border-left: 4px solid var(--cat, var(--accent)); color: var(--ink-2); font-size: 17px;
}
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 60px 0; }
.table-wrap { overflow-x: auto; margin: 0 0 34px; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 560px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 16px 22px; text-align: left; vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr { transition: background .22s var(--ease); }
.prose tbody tr:hover { background: var(--paper-2); }
.prose th { background: var(--paper-2); font-weight: 800; white-space: nowrap; font-size: 14px; letter-spacing: .03em; }

/* ------------------------------------------------------------ 関連・CTA */
.related { padding: 64px 0; border-top: 1px solid var(--line); }
.related h2 { font-size: 13px; letter-spacing: .18em; color: var(--accent); margin: 0 0 40px; font-weight: 800; padding-top: 14px; border-top: 2px solid var(--accent); display: inline-block; }

.cta {
  position: relative; overflow: hidden; margin: 8px 0 112px;
  background: var(--dark); color: #fff; border-radius: var(--r-lg); padding: 76px;
}
.cta > * { position: relative; }
.cta h2 { margin: 0 0 18px; font-size: clamp(24px, 2.9vw, 36px); font-weight: 800; letter-spacing: -.028em; line-height: 1.45; max-width: 20em; }
.cta p { margin: 0 0 36px; color: var(--dark-ink); max-width: 42rem; line-height: 2; font-size: 17px; }
.cta a:not(.btn) { color: var(--accent-lit); }
.cta .btn { background: #fff; color: var(--accent); }
.cta .btn:hover { background: var(--accent-lit); color: var(--accent-ink); }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.cta-funnel { padding: 0; }
.cta-main { padding: 76px; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ------------------------------------------------------------ トップの導線 */
.home-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.home-tool {
  position: relative; overflow: hidden; display: block; text-decoration: none; color: #fff;
  border-radius: var(--r-lg); padding: 36px 34px;
  background: var(--accent);
  transition: transform .42s var(--ease-out), box-shadow .42s var(--ease);
}
.home-tool:hover { background: var(--accent-ink); }
.home-tool:hover::after { transform: scale(1.18) rotate(28deg); }
.home-tool > * { position: relative; }
.home-tool-kicker { font-size: 12px; font-weight: 800; letter-spacing: .16em; opacity: .85; }
.home-tool h3 { margin: 18px 0 16px; font-size: 27px; font-weight: 800; letter-spacing: -.028em; line-height: 1.42; }
.home-tool p { margin: 0 0 30px; font-size: 15.5px; line-height: 2; opacity: .9; }
.home-tool-cta { font-size: 16px; font-weight: 800; }
.home-tool-alt { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.home-tool-alt::after { border-color: rgba(15,107,92,.07); }
.home-tool-alt:hover { background: var(--paper-3); color: var(--ink); }
.home-tool-alt .home-tool-kicker { color: var(--accent); opacity: 1; }
.home-tool-alt .home-tool-cta { color: var(--accent-ink); }

/* ------------------------------------------------------------ 診断 */
.shindan { max-width: 50rem; }
.sd-progress {
  position: sticky; top: 92px; z-index: 12;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  padding: 20px 0 22px; margin-bottom: 8px; display: flex; align-items: center; gap: 22px;
}
.sd-progress-bar { flex: 1; height: 9px; background: var(--paper-3); border-radius: 999px; overflow: hidden; }
.sd-progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .5s var(--ease-out); }
.sd-progress-text { margin: 0; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.sd-progress-text strong { color: var(--ink); font-size: 20px; font-weight: 800; }

.sd-block { border: 0; padding: 0; margin: 64px 0 0; }
.sd-legend { padding: 26px 0 0; display: block; border-top: 3px solid var(--ink); width: 100%; }
.sd-legend-name { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.028em; }
.sd-legend-desc { display: block; font-size: 15px; color: var(--ink-2); margin-top: 8px; }

.sd-q { margin: 44px 0 0; }
.sd-qtext { margin: 0 0 18px; font-weight: 800; line-height: 1.75; font-size: 18px; letter-spacing: -.015em; }
.sd-num { display: inline-block; font-size: 13px; font-weight: 800; color: var(--accent); margin-right: 14px; letter-spacing: .06em; }
.sd-opts { display: grid; gap: 11px; }
.sd-opt {
  display: flex; gap: 15px; align-items: flex-start; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 18px 24px; cursor: pointer; font-size: 16px;
  line-height: 1.8; background: var(--paper);
  transition: border-color .24s var(--ease), background .24s var(--ease), transform .24s var(--ease-out);
}
.sd-opt:hover { border-color: var(--accent); background: var(--paper-2); transform: translateX(5px); }
.sd-opt input { margin: 7px 0 0; accent-color: var(--accent); flex: none; width: 17px; height: 17px; }
.sd-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }

.sd-submit { margin: 64px 0 0; padding: 40px 0 8px; border-top: 1px solid var(--line); }
.sd-submit .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16.5px; }
.sd-submit .btn:disabled { background: var(--line); color: var(--ink-3); cursor: not-allowed; box-shadow: none; transform: none; }
.sd-submit .btn:disabled::after { content: none; }
.sd-submit .note { margin: 16px 0 0; }

.sd-result { max-width: 50rem; margin: 88px 0 104px; }
.sd-score { position: relative; overflow: hidden; background: var(--dark); color: #fff; border-radius: var(--r-lg); padding: 60px; }
.sd-score > * { position: relative; }
.sd-score-kicker { margin: 0; font-size: 12px; letter-spacing: .22em; font-weight: 800; color: var(--accent-lit); }
.sd-level { margin: 18px 0 0; font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.038em; line-height: 1.2; }
.sd-total { margin: 12px 0 26px; font-size: 16px; color: var(--dark-ink); }
.sd-total strong { font-size: 40px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.sd-summary { margin: 0; font-size: 17px; line-height: 2; color: var(--dark-ink); }

.sd-axes { display: grid; gap: 26px; margin: 52px 0; }
.sd-axis-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 11px; }
.sd-axis-name { font-weight: 800; font-size: 17px; letter-spacing: -.015em; }
.sd-axis-score { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 700; }
.sd-tag { display: inline-block; margin-left: 12px; font-size: 11.5px; font-weight: 800; background: var(--warn); color: #fff; padding: 4px 12px; border-radius: 999px; letter-spacing: .06em; }
.sd-axis-bar { height: 13px; background: var(--paper-3); border-radius: 999px; overflow: hidden; }
.sd-axis-bar span { display: block; height: 100%; width: 0; background: #a9c3bd; border-radius: 999px; transition: width 1s var(--ease-out); }
.sd-axis.is-weak .sd-axis-bar span { background: var(--warn); }

.sd-advice { border-top: 3px solid var(--ink); padding-top: 44px; margin-top: 60px; }
.sd-advice h2 { margin: 0 0 12px; font-size: clamp(24px, 2.9vw, 34px); font-weight: 800; letter-spacing: -.032em; }
.sd-advice-lead { margin: 0 0 40px; color: var(--ink-2); font-size: 16px; }
.sd-adv-list { margin: 0; padding: 0; list-style: none; counter-reset: adv; }
.sd-adv-list li { position: relative; margin: 0 0 34px; padding-left: 66px; counter-increment: adv; }
.sd-adv-list li::before {
  content: counter(adv, decimal-leading-zero); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.sd-adv-list p { margin: 0 0 12px; line-height: 2; font-size: 16.5px; }
.sd-adv-link { font-size: 15px; font-weight: 800; text-decoration: none; }
.sd-adv-link:hover { text-decoration: underline; }

.sd-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin: 60px 0 0; }
.sd-next-card { border: 1px solid var(--line); border-radius: var(--r); padding: 40px 36px; background: var(--paper); transition: transform .34s var(--ease-out), box-shadow .34s var(--ease); }
.sd-next-card:hover { border-color: var(--accent); }
.sd-next-card h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sd-next-card p { margin: 0 0 26px; font-size: 15px; color: var(--ink-2); line-height: 1.95; }
.sd-again { margin: 44px 0 0; font-size: 15px; }

/* ------------------------------------------------------------ 資料 */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-bottom: 56px; }
.dl-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.dl-card:hover { border-color: var(--accent); }
.dl-card a { display: flex; flex-direction: column; padding: 0 0 26px; text-decoration: none; color: inherit; height: 100%; }
.dl-cover { aspect-ratio: 16 / 7.5; background: var(--paper-2); position: relative; overflow: hidden; }
.dl-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease-out); }
.dl-card:hover .dl-cover svg { transform: scale(1.07); }
.dl-card-inner { padding: 24px 26px 0; display: flex; flex-direction: column; flex: 1; }
.dl-card-meta { font-size: 12px; font-weight: 800; letter-spacing: .09em; color: var(--accent); }
.dl-card h3 { margin: 12px 0 8px; font-size: 19px; line-height: 1.65; font-weight: 700; letter-spacing: .012em; }
.dl-card-sub { margin: 0 0 20px; font-size: 15px; color: var(--ink-2); }
.dl-card-desc { margin: 0 0 18px; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); flex: 1; }
.dl-card-cta { font-size: 15px; font-weight: 800; color: var(--accent-ink); display: inline-flex; gap: 9px; }

.dl-page { display: grid; grid-template-columns: minmax(0,1fr) 430px; gap: 80px; padding: 72px 0 104px; align-items: start; }
.dl-kicker { margin: 0 0 18px; font-size: 13px; font-weight: 800; letter-spacing: .13em; color: var(--accent); }
.dl-page h1 { margin: 0 0 20px; font-size: clamp(31px, 4.1vw, 48px); line-height: 1.38; letter-spacing: -.034em; font-weight: 800; }
.dl-subtitle { margin: 0 0 30px; font-size: 19px; color: var(--ink-2); line-height: 1.95; }
.dl-audience { margin: 0 0 44px; padding: 20px 26px; background: var(--paper-2); border-left: 4px solid var(--accent); border-radius: var(--r-sm); font-size: 15.5px; }
.dl-side { position: sticky; top: 124px; }

.lead-form { border: 1px solid var(--line); border-radius: var(--r); padding: 40px; background: var(--paper-2); }
.lead-form-head { margin: 0 0 28px; font-weight: 800; font-size: 21px; display: flex; align-items: center; gap: 13px; letter-spacing: -.02em; }
.lead-form-head::before { content: ""; width: 6px; height: 24px; background: var(--accent); border-radius: 3px; }
.lf-row { margin-bottom: 20px; }
.lf-row label { display: block; font-size: 14px; font-weight: 800; margin-bottom: 9px; }
.req { color: var(--warn); font-size: 11.5px; font-weight: 800; margin-left: 7px; }
.opt { color: var(--ink-3); font-size: 11.5px; font-weight: 700; margin-left: 7px; }
.lead-form input[type=text], .lead-form input[type=email], .lead-form input[type=tel], .lead-form select {
  width: 100%; padding: 15px 17px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font: inherit; font-size: 16px; background: #fff; color: var(--ink);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.lf-check label,
.cf-check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 13.5px; line-height: 1.8; }
.lf-check input,
.cf-check input { margin: 4px 0 0; accent-color: var(--accent); flex: none; width: 17px; height: 17px; }
.cf-check { margin: 4px 0 18px; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lf-submit { width: 100%; justify-content: center; margin-top: 14px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16.5px; }
.lf-submit:disabled { background: var(--line); color: var(--ink-3); cursor: wait; box-shadow: none; }
.lf-note { margin: 16px 0 0; }
.lf-status { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.lf-status.is-error { color: var(--warn); }
.lf-done-head { margin: 0 0 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.lf-done-text { margin: 0 0 26px; font-size: 15.5px; color: var(--ink-2); }

.dl-others { margin-top: 32px; padding: 30px 34px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); }
.dl-others-head { margin: 0 0 16px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; color: var(--ink-2); }
.dl-others ul { margin: 0; padding: 0; list-style: none; }
.dl-others li { margin: 12px 0; font-size: 15px; padding-left: 19px; position: relative; }
.dl-others li::before { content: ""; position: absolute; left: 0; top: .95em; width: 9px; height: 1px; background: var(--accent); }
.dl-others a { text-decoration: none; }
.dl-others a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ フッタ */
.site-foot { background: var(--dark); color: #fff; margin-top: 0; padding: 34px 0 18px; }
.foot-inner { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.site-foot .brand-name { font-size: 22px; font-weight: 800; margin: 0; }
.foot-tagline { margin: 8px 0 0; font-size: 14px; color: var(--dark-ink); max-width: 30rem; line-height: 1.6; }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.foot-nav a { font-size: 15.5px; text-decoration: none; color: rgba(255,255,255,.86); transition: color .22s var(--ease); }
.foot-nav a:hover { color: var(--accent-lit); }
.copy { text-align: center; font-size: 13px; color: rgba(255,255,255,.42); margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--dark-line); }

/* ------------------------------------------------------------ 可変 */
@media (max-width: 1240px) {
  :root { --gut: 32px; }
  .post-layout { grid-template-columns: minmax(0,1fr) 240px; gap: 56px; }
  .dl-page { grid-template-columns: minmax(0,1fr) 380px; gap: 56px; }
  .section-lead { grid-template-columns: 150px minmax(0,1fr); gap: 28px; }
}
@media (max-width: 1080px) {
  .post-layout { grid-template-columns: 1fr; gap: 0; }
  .toc-side { display: none; }
  .toc-inline { display: block; }
  .dl-page { grid-template-columns: 1fr; gap: 48px; }
  .dl-side { position: static; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-art { order: -1; }
  .cycle { width: min(60%, 280px); }
  .hero { padding: 72px 0 64px; }
  .section, .statement { padding: 80px 0; }
  .section-lead { grid-template-columns: 1fr; gap: 16px; margin-bottom: 44px; }
  .section-index { border-top: 0; padding-top: 0; }
  .cta, .cta-main { padding: 44px; }
  .home-tool { padding: 40px 34px; }
}
@media (max-width: 680px) {
  :root { --gut: 22px; }
  body { font-size: 16px; }
  .site-head { position: static; }
  .head-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 18px; }
  .brand-sub { display: none; }
  .site-nav { margin-left: -18px; flex-wrap: wrap; }
  .site-nav .nav-cta { margin-left: 0; }
  .hero-art { display: none; }   /* 小さい画面では本文を先に出す */
  .hero { padding: 44px 0 56px; }
  .scroll-cue { display: none; }
  .cards, .dl-grid { grid-template-columns: 1fr; gap: 20px; }
  .cta, .cta-main { padding: 32px; border-radius: var(--r); }
  .sd-progress { top: 0; }
  .sd-score { padding: 34px; border-radius: var(--r); }
  .sd-adv-list li { padding-left: 52px; }
  .sd-adv-list li::before { width: 36px; height: 36px; }
  .lead-form { padding: 26px; }
  .foot-inner { align-items: flex-start; }
  .foot-nav { gap: 14px 22px; }
  .prose { font-size: 16.5px; }
}

/* ------------------------------------------------------------ 問い合わせ */
.contact-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 72px; align-items: start; padding-bottom: 96px; }
.contact-layout .prose { max-width: none; }
.contact-side { position: sticky; top: 124px; }

.contact-form { border: 1px solid var(--line); border-radius: var(--r); padding: 44px; background: var(--paper-2); }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.cf-row.cf-wide { grid-column: 1 / -1; }
.cf-row label { display: block; font-size: 14px; font-weight: 800; margin-bottom: 9px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel],
.contact-form select, .contact-form textarea {
  width: 100%; padding: 15px 17px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font: inherit; font-size: 16px; background: #fff; color: var(--ink);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.contact-form textarea { line-height: 1.85; resize: vertical; min-height: 160px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow);
}
/* :placeholder-shown は placeholder が無い欄では常に false になり、
   未入力・未操作の必須欄が最初から赤枠になっていた。
   :user-invalid は「利用者が触った後」にだけ効くので、こちらを使う */
.contact-form input:user-invalid,
.contact-form textarea:user-invalid { border-color: var(--warn); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-submit { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.cf-submit .btn { width: 100%; justify-content: center; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 17px; }
.cf-submit .note { margin: 16px 0 0; text-align: center; }
.cf-turnstile { margin-top: 24px; }

@media (max-width: 1080px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-side { position: static; }
}
@media (max-width: 680px) {
  .contact-form { padding: 26px; }
  .cf-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ------------------------------------------------------------ トピッククラスタ */
.pillar-link {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  max-width: var(--measure); margin: 36px 0 0; padding: 20px 26px;
  background: var(--paper-2); border-left: 4px solid var(--cat, var(--accent));
  border-radius: var(--r-sm); font-size: 15px;
}
.pillar-link span { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--ink-2); white-space: nowrap; }
.pillar-link a { font-weight: 800; text-decoration: none; }
.pillar-link a:hover { text-decoration: underline; }

.pillar-index {
  max-width: var(--measure); margin: 36px 0 0; padding: 28px 32px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2);
}
.pillar-index-head { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--cat, var(--accent)); }
.pillar-index ul { margin: 0; padding: 0; list-style: none; }
.pillar-index li { margin: 10px 0; padding-left: 20px; position: relative; font-size: 15.5px; }
.pillar-index li::before { content: ""; position: absolute; left: 0; top: .9em; width: 10px; height: 1px; background: var(--cat, var(--accent)); }
.pillar-index a { text-decoration: none; font-weight: 600; }
.pillar-index a:hover { text-decoration: underline; }

/* ============================================================
   スクロール連動の動き
   自動再生のループではなく、読み進めた分だけ動く。
   **基準の状態を「見えている」にしてある。** アニメーションが走らない
   環境（未対応ブラウザ・動きを減らす設定）でも内容が消えないため。
   ============================================================ */

@keyframes revealUp   { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes revealSide { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes stripSlide { from { transform: translateX(2%); } to { transform: translateX(-42%); } }
@keyframes spinScroll { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes drawRing   { from { stroke-dashoffset: 640; } to { stroke-dashoffset: 0; } }
@keyframes growBar    { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 帯 */
.strip { border-block: 1px solid var(--line); padding: 22px 0; overflow: clip; background: var(--paper-2); }
.strip-track { display: flex; width: max-content; will-change: transform; }
.strip-item {
  display: inline-flex; align-items: center; gap: 20px; padding-right: 20px;
  font-size: 15px; font-weight: 700; letter-spacing: .021em; color: var(--ink-2); white-space: nowrap;
}
.strip-item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }



/* JSがスクロール量から更新する。CSS側は変数を使うだけ */
.strip-track { transform: translateX(var(--x, 0%)); }
.cycle-spin  { transform: rotate(var(--deg, 0deg)); transform-origin: 160px 160px; }

/* アイキャッチ。生成画像が無い記事は従来の幾何パターンにそのまま落ちる */
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.card:hover .card-thumb img { transform: scale(1.03); }
.post-eyecatch { margin: 0 0 36px; border-radius: var(--r); overflow: clip; border: 1px solid var(--line); }
.post-eyecatch img { display: block; width: 100%; height: auto; }

/* 青地の上のボタン */
.btn-onblue { background: #fff; color: var(--accent); }
.btn-onblue:hover { background: var(--accent-lit); color: var(--accent-ink); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }

/* ============================================================
   文字だけの見え方を避けるための枠と図形
   ============================================================ */

.glyph { width: 1em; height: 1em; flex: none; }

/* カテゴリカード：固有の図形を枠に入れて置く */
.cat-mark {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--cat, var(--accent)); margin-bottom: 14px;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.cat-mark .glyph { width: 20px; height: 20px; }
.cat-card:hover .cat-mark { background: var(--cat, var(--accent)); border-color: var(--cat, var(--accent)); color: #fff; }

/* 記事カードのカテゴリ表示にも図形を添える */
.card-cat { display: inline-flex; align-items: center; gap: 6px; }
.card-cat .glyph { width: 13px; height: 13px; }

/* 導線カードの通し番号 */
.home-tool { position: relative; }
.home-tool-no {
  position: absolute; top: 22px; right: 24px;
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px;
  border: 1px solid rgba(255,255,255,.4); border-radius: var(--r-sm);
  font-size: 13px; font-weight: 800; letter-spacing: .06em;
}
.home-tool-alt .home-tool-no { border-color: var(--line-2); color: var(--accent); }

/* セクション見出しを枠で締める */
.section-lead { padding-top: 20px; border-top: 2px solid var(--ink); }
.section-index { border-top: 0; padding-top: 0; }

/* 色面ブロックの3項目を枠に入れる */
.statement-col {
  border: 1px solid var(--dark-line); border-radius: var(--r); padding: 24px 26px;
  background: rgba(255,255,255,.05);
}
.statement-col b { display: inline-block; border: 1px solid var(--dark-line); border-radius: var(--r-sm); padding: 4px 10px; }

/* 本文の見出しに番号の枠を付ける。長文の区切りが目で追える */
.prose { counter-reset: h2n; }
.prose h2 { counter-increment: h2n; padding-left: 52px; }
.prose h2::before {
  content: counter(h2n, decimal-leading-zero);
  position: absolute; top: 26px; left: 0; width: 38px; height: 30px;
  display: grid; place-items: center; border-radius: var(--r-sm);
  background: var(--cat, var(--accent)); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: .04em;
}
.prose h3 { padding-left: 14px; border-left: 3px solid var(--cat, var(--accent)); }

/* よくある質問を枠でまとめる */
.prose h2:last-of-type ~ h3 { background: var(--paper-2); border-radius: var(--r-sm); padding: 12px 16px; border-left: 3px solid var(--cat, var(--accent)); }

/* 記事の導入部を枠に入れる */
.post-lead {
  border-left: 3px solid var(--cat, var(--accent));
  padding: 4px 0 4px 20px;
}

@media (max-width: 680px) {
  .prose h2 { padding-left: 44px; }
  .prose h2::before { width: 32px; height: 26px; font-size: 12px; }
  .home-tool-no { top: 18px; right: 18px; min-width: 34px; height: 34px; }
}

/* 円周に沿った文字。スクロールでリングと逆向きに回る */
.cycle-text text {
  font-size: 11px; font-weight: 700; letter-spacing: .34em;
  fill: rgba(255,255,255,.62); text-transform: uppercase;
}
.cycle-text { transform: rotate(calc(var(--deg, 0deg) * -0.7)); transform-origin: 160px 160px; }

/* ============================================================
   ファーストビュー（記事先行）
   コーポレートサイトの「左コピー＋右グラフィック」を避け、
   見出しは画面幅いっぱい、その直下に実際の記事を出す
   ============================================================ */

.hero { display: block; min-height: 0; padding: 72px 0 64px; }
.hero .wrap { max-width: var(--wrap); }
.hero h1 {
  margin: 0 0 40px; max-width: 20em;
  font-size: clamp(38px, 6.6vw, 104px); line-height: 1.22; letter-spacing: -.035em;
}
.hero-kicker {
  background: none; padding: 0; margin: 0 0 26px; border-radius: 0;
  color: rgba(255,255,255,.72); font-size: 12.5px; letter-spacing: .18em;
}
.hero-kicker::before { content: none; }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px;
  align-items: end; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.28);
}
.hero-lead { margin: 0; max-width: 40em; }
.hero-actions { margin: 0; }

/* 注目記事＋新着3本 */
.feature { padding: 52px 0 12px; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }

.feat {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--r); overflow: clip;
  transition: border-color .3s var(--ease);
}
.feat:hover { border-color: var(--cat, var(--accent)); }
.feat-thumb { display: block; aspect-ratio: 16 / 8; overflow: clip; background: var(--paper-2); }
.feat-thumb img, .feat-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease-out); }
.feat:hover .feat-thumb img { transform: scale(1.03); }
.feat-body { display: block; padding: 26px 30px 30px; }
.feat-tag {
  display: inline-block; background: var(--cat, var(--accent)); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; padding: 5px 11px; border-radius: var(--r-sm);
  margin-right: 10px;
}
.feat-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--cat, var(--accent)); }
.feat-cat .glyph { width: 13px; height: 13px; }
.feat-title { margin: 16px 0 10px; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.55; font-weight: 700; letter-spacing: .008em; }
.feat-desc { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; line-height: 1.85; }
.feat-more { font-size: 14.5px; font-weight: 800; color: var(--cat, var(--accent)); }

.sub-list { display: grid; gap: 12px; }
.sub-item {
  display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 16px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-decoration: none; color: inherit;
  transition: border-color .25s var(--ease);
}
.sub-item:hover { border-color: var(--cat, var(--accent)); }
.sub-thumb { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: clip; background: var(--paper-2); }
.sub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sub-body { display: block; min-width: 0; }
.sub-cat { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; color: var(--cat, var(--accent)); }
.sub-cat .glyph { width: 12px; height: 12px; }
.sub-title { display: block; margin-top: 6px; font-size: 15px; line-height: 1.65; font-weight: 700; }

@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hero { padding: 48px 0 44px; }
  .hero h1 { margin-bottom: 28px; }
  .hero-foot { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .feature { padding: 32px 0 8px; }
  .sub-item { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
}

/* 運営表記。ショピラボ運営であることを名前の直後に添える */
/* 「by」＋ショピラボの実ロゴ。地色に合わせて通常版と白抜き版を出し分ける */
.brand-by {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 3px 9px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--ink-2); background: var(--paper-2); border-radius: 3px;
  vertical-align: 3px; white-space: nowrap;
}
.brand-by img { height: 13px; width: auto; display: block; }
.site-foot .brand-by { color: rgba(255,255,255,.8); background: rgba(255,255,255,.16); }
.site-foot .brand-by img { height: 15px; }

@media (max-width: 680px) {
  .brand-by { margin-left: 6px; font-size: 10px; padding: 1px 6px; }
}

/* フッター最下部。青地なので白で出す。
   既定のリンク色（濃い青）のままだと青地に沈んで読めない */
.copy { color: rgba(255,255,255,.82); font-size: 13.5px; }
.copy a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.copy a:hover { color: var(--accent-lit); }

/* ------------------------------------------------------------ フッター（全ページ導線） */
.foot-head-row {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
  padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--dark-line);
}
.foot-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.foot-logo .brand-name { font-size: 21px; font-weight: 800; }
.site-foot .foot-tagline { margin: 0; max-width: none; }

.foot-cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 9px 0; }
.foot-col a {
  font-size: 14px; line-height: 1.6; text-decoration: none;
  color: rgba(255,255,255,.82); transition: color .2s var(--ease);
}
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-foot .foot-head {
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--dark-line);
  font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #fff;
}

@media (max-width: 900px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr; }
  .foot-head-row { gap: 10px; }
}

/* ------------------------------------------------------------ パートナー */
.partners { background: var(--paper-2); border-block: 1px solid var(--line); padding: 44px 0; }
.partners-head {
  margin: 0 0 26px; text-align: center;
  font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--ink-3);
}
.partners-row {
  display: flex; align-items: center; justify-content: center;
  gap: 56px; flex-wrap: wrap;
}
.partner { display: inline-flex; align-items: center; opacity: .85; transition: opacity .25s var(--ease); }
.partner:hover { opacity: 1; }
.partner img { width: auto; display: block; }   /* 高さはロゴごとに指定 */
.partners-note {
  margin: 26px 0 0; text-align: center; font-size: 14.5px; color: var(--ink-2);
}
@media (max-width: 680px) {
  .partners { padding: 32px 0; }
  .partners-row { gap: 32px; }
  .partner img { height: 48px; }
}

/* パートナーを2段に分ける。上段はプラットフォームの認定、下段は取引先 */
.partners-row.is-platform { gap: 52px; }
.partners-row.is-company {
  gap: 40px 44px; margin-top: 26px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.partners-row.is-company .partner { opacity: .62; }
.partners-row.is-company .partner:hover { opacity: .9; }
.partners-note { margin: 24px 0 0; }
@media (max-width: 680px) {
  .partners-row.is-platform { gap: 28px; }
  .partners-row.is-company { gap: 24px 26px; }
}

/* 主となる2つを大きく、それ以外はまとめて小さく */
.partners-row.is-lead { gap: 72px; margin-bottom: 4px; }
.partners-row.is-lead .partner { opacity: 1; }
.partners-row.is-platform { gap: 36px 40px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.partners-row.is-platform .partner { opacity: .6; }
.partners-row.is-platform .partner:hover { opacity: .9; }
@media (max-width: 680px) {
  .partners-row.is-lead { gap: 36px; }
  .partners-row.is-lead .partner img { height: 66px !important; }
}

/* ---------------------------------------------------------------- 記事内CTA
   記事ごとに行き先が変わる。本文の途中・記事の終わり・画面下の固定バーの
   3か所に出す。末尾だけだと、読み切らなかった人に何も渡せないため。 */

.cta-card {
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2);
  padding: 30px 32px; margin: 46px 0;
}
.cta-card .cta-label {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--accent); background: var(--paper); border: 1px solid var(--line-2);
  border-radius: 4px; padding: 5px 10px; margin: 0 0 14px;
}
.cta-card .cta-title { font-size: 21px; font-weight: 700; line-height: 1.45; margin: 0 0 10px; letter-spacing: .01em; color: var(--ink); }
.cta-card .cta-desc { font-size: 15px; line-height: 1.85; color: var(--ink-2); margin: 0 0 22px; }
.cta-card .btn { margin: 0; }

/* 記事の終わりは本文と切り離して、色面で受ける */
.cta-end {
  background: var(--accent); border-color: var(--accent); color: #fff;
  margin-top: 56px; margin-bottom: 0;
}
.cta-end .cta-label { color: #fff; background: rgba(255,255,255,.14); border-color: var(--dark-line); }
.cta-end .cta-title { color: #fff; }
.cta-end .cta-desc { color: rgba(255,255,255,.82); }
.cta-end .btn { background: #fff; color: var(--accent); }
.cta-end .btn:hover { background: var(--paper-3); }

@media (max-width: 700px) {
  .cta-card { padding: 24px 20px; margin: 34px 0; }
  .cta-card .cta-title { font-size: 18px; }
}

/* ------------------------------------------------------------ 固定CTAバー
   読み進めてから出す。記事末のCTAが見えている間は引っ込める（同じ行き先が
   2つ並ぶため）。閉じたらその記事では二度と出さない。 */

.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--ink); color: #fff;
  border-top: 1px solid rgba(255,255,255,.14);
  transform: translateY(100%); transition: transform .32s var(--ease-out);
  padding-bottom: env(safe-area-inset-bottom);
}
.cta-bar.is-in { transform: translateY(0); }
.cta-bar-in {
  max-width: var(--wide, 1180px); margin: 0 auto;
  display: flex; align-items: center; gap: 18px; padding: 13px 24px;
}
.cta-bar-text {
  margin: 0; flex: 1; min-width: 0; font-size: 14px; font-weight: 700; letter-spacing: .01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cta-bar-btn {
  flex: none; background: var(--accent); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 700; padding: 11px 22px; border-radius: 999px;
  transition: background .2s var(--ease-out);
}
.cta-bar-btn::after { content: "→"; margin-left: 8px; }
.cta-bar-btn:hover { background: var(--accent-ink); }
.cta-bar-close {
  flex: none; background: none; border: 0; color: rgba(255,255,255,.55);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 6px 2px;
}
.cta-bar-close:hover { color: #fff; }

@media (max-width: 700px) {
  .cta-bar-in { gap: 10px; padding: 10px 14px; }
  .cta-bar-text { font-size: 13px; white-space: normal; line-height: 1.4;
                  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .cta-bar-btn { font-size: 13px; padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { .cta-bar { transition: none; } }

/* 画面には出さないが読み上げには渡す見出し。
   一覧ページは h1 の直下にカード（h3）が並び、h2 が無いまま階層が飛ぶ。
   見える見出しを足すと h1 と重複するので、こちらで階層だけ埋める。 */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
