@charset "utf-8";
/* ==========================================================================
   BENERU — design tokens
   新聞 / 金融情報端末 / リサーチ会社 の中間。
   色は 白・黒・グレー。金(#B79A60)は罫線と小さなアクセントのみ。
   ========================================================================== */

:root {
  --ink:        #1d1e20;
  --ink-80:     #3a3c40;
  --ink-60:     #5e6167;
  --ink-45:     #6d7177;
  --ink-30:     #a8abb0;
  --gold:       #b79a60;
  --gold-deep:  #876c3c;
  --gold-tint:  #f4efe3;

  --paper:      #ffffff;
  --paper-2:    #f7f6f3;
  --paper-3:    #edebe6;
  --rule:       #dfdcd6;
  --rule-soft:  #ebe8e3;

  /* nelBS 本体（tools.beneru.co.jp）の body 背景に合わせる。
     ここがずれると /tools/nelbs/ でアプリの上端に境目が出る。 */
  --app-canvas: #f1f1ef;

  --wrap:       1180px;
  --measure:    42rem;
  --gutter:     clamp(1rem, 4vw, 2.5rem);

  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP",
           "Songti SC", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN",
          "Yu Gothic", YuGothic, "Noto Sans JP", "Noto Sans CJK JP", "Segoe UI", Roboto, Arial, sans-serif;
  --num: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;

  --step-0: 1rem;
  --step-1: 1.0625rem;
  --step-2: clamp(1.25rem, 0.6rem + 1.6vw, 1.5rem);
  --step-3: clamp(1.5rem, 0.8rem + 2.2vw, 2rem);
  --step-4: clamp(1.9rem, 0.9rem + 3.4vw, 2.9rem);
  --step-5: clamp(2.2rem, 0.8rem + 5.2vw, 4rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.4; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }
/* 画面には出さず、読み上げと文書構造にだけ残す見出し。 */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 共通パーツ ---------- */
.kicker {
  font-family: var(--sans); font-size: .75rem; font-weight: 700;
  letter-spacing: .16em; color: var(--gold-deep); text-transform: uppercase;
  display: inline-block; line-height: 1.6;
}
.eyebrow {
  font-size: .75rem; letter-spacing: .16em; color: var(--ink-45);
  font-weight: 600;
}
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.lede { font-size: var(--step-1); color: var(--ink-80); line-height: 2; }
.small { font-size: .8125rem; color: var(--ink-60); line-height: 1.8; }

.section { padding-block: clamp(2.75rem, 7vw, 5rem); }
.section + .section { border-top: 1px solid var(--rule-soft); }
.section--tint { background: var(--paper-2); border-top: 1px solid var(--rule); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem;
  border-top: 2px solid var(--ink); padding-top: .75rem; margin-bottom: 1.75rem;
}
.section-head h2 { font-size: var(--step-2); }
.section-head .note { font-size: .8125rem; color: var(--ink-60); }
.section-head .more { margin-left: auto; font-size: .8125rem; white-space: nowrap; }
.section-head--gold { border-top-color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.4rem; font-size: .9375rem; font-weight: 600;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  text-decoration: none; transition: background .15s, color .15s;
}
.btn:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: .5rem 1rem; font-size: .8125rem; }

/* ---------- header ----------
   1段目: ロゴ（左） ／ 会社情報・事業者導線・メニュー（右）
   2段目: 主ナビ（黒帯）
   独立した上段バーは作らない。ロゴをページの一番左上に置く。 */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead .wrap {
  display: flex; align-items: center; gap: 1rem;
  padding-block: clamp(.9rem, 2.5vw, 1.35rem);
}
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { width: clamp(132px, 26vw, 188px); height: auto; }

/* 会社情報。ロゴと同じ行の右側に横並びで置く。
   狭い画面ではメニュー側（.menu-panel の「会社情報」）に任せて畳む。 */
.util { display: none; font-size: .8125rem; color: var(--ink-60); }
.util > ul { list-style: none; display: flex; flex-direction: row; align-items: center; margin: 0; padding: 0; }
.util > ul > li { margin: 0; padding: 0; }
.util > ul > li + li { margin-left: .85rem; padding-left: .85rem; border-left: 1px solid var(--rule-soft); }
.util a { text-decoration: none; display: inline-flex; align-items: center; min-height: 2.25rem; }
.util a:hover { color: var(--gold-deep); }
.util a[aria-current="page"] { color: var(--ink); }

.util-agent {
  display: none; font-size: .8125rem; font-weight: 600; color: var(--gold-deep);
  white-space: nowrap; text-decoration: none; align-items: center; min-height: 2.25rem;
}
.util-agent:hover { text-decoration: underline; text-decoration-color: var(--gold); }

@media (min-width: 48rem) {
  .util { display: block; }
  .util-agent { display: inline-flex; padding-left: 1.1rem; border-left: 1px solid var(--rule); }
}

.masthead .btn { display: none; }

/* 言語の切り替え（翻訳があるページだけ出る。lib/templates.mjs の langSwitch）。
   地球のアイコン＋略号を押すと一覧が開く。日本語のページは黒い帯の右端（.lang-menu--bar）、翻訳のページは1段目の右（.lang-menu--light） */
.lang-menu { position: relative; flex: none; display: flex; align-items: center; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: 0 .1rem 0 .9rem; font-size: .75rem; font-weight: 600; letter-spacing: .06em; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: .35rem; height: .35rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: .15rem; }
.lang-menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-menu--bar summary { color: rgba(255, 255, 255, .82); }
.lang-menu--bar summary:hover, .lang-menu--bar[open] summary { color: #fff; }
.lang-menu--light summary { color: var(--ink-60); }
.lang-menu--light summary:hover, .lang-menu--light[open] summary { color: var(--ink); }
.lang-menu .lang-menu__list { position: absolute; right: 0; top: 100%; z-index: 60; display: block; width: auto; min-width: 9.5rem; margin: 0; padding: .35rem 0; list-style: none; white-space: nowrap; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .35); }
.lang-menu .lang-menu__list li { margin: 0; }
.lang-menu .lang-menu__list a, .lang-menu .lang-menu__list span { display: block; padding: .55rem 1rem; border: 0; color: var(--ink); font-size: .8125rem; font-weight: 400; text-decoration: none; }
.lang-menu .lang-menu__list a:hover { background: var(--paper-2, #f4f4f2); color: var(--ink); }
.lang-menu .lang-menu__list [aria-current] { font-weight: 700; }
/* 黒い帯の「最初の項目は左の余白なし」（.sectionbar li:first-child a）が、一覧の1行目に効かないようにする（2026-11-12：翻訳版で「日本語」だけ左に寄っていた） */
.lang-menu .lang-menu__list li:first-child a { padding-left: 1rem; }
/* 翻訳版のページ（lib/i18n.mjs）。日本在住の読者向けであることの注記と、原文への案内 */
.i18n-note { margin: 0 0 1.5rem; padding: .8rem 1rem; border-left: 3px solid var(--gold); background: var(--paper-2, #f4f4f2); font-size: .875rem; line-height: 1.7; }
/* 英語の項目名（Company name 等）が単語の途中で折れないように */
.i18n-page td:first-child { white-space: nowrap; }
.i18n-list { list-style: none; margin: 0; padding: 0; }
.i18n-list li { padding: 1rem 0; border-bottom: 1px solid var(--rule-soft); }
.i18n-list a { font-weight: 600; text-decoration: none; }
.i18n-list a:hover { text-decoration: underline; }
.i18n-list p { margin: .35rem 0 0; font-size: .875rem; color: var(--ink-60); }

.sectionbar { background: var(--ink); color: #fff; }
.sectionbar .scroller { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sectionbar .scroller::-webkit-scrollbar { display: none; }
.sectionbar ul {
  display: flex; gap: 0; list-style: none; white-space: nowrap;
  width: max-content; min-width: 100%;
}
.sectionbar a {
  display: block; padding: .7rem .95rem; font-size: .8125rem; font-weight: 600;
  color: #e6e4df; text-decoration: none; border-bottom: 2px solid transparent;
}
.sectionbar a:hover { color: #fff; border-bottom-color: var(--gold); }
.sectionbar a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.sectionbar li:first-child a { padding-left: 0; }

/* メニュー（JSなし・details）。右側の並びは .brand の margin-right:auto で右へ寄せる。 */
.menu { margin-left: .6rem; }
.menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8125rem; font-weight: 600; padding: .45rem .7rem; border: 1px solid var(--rule);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: "▾"; font-size: .7em; color: var(--ink-45); }
.menu[open] > summary::after { content: "▴"; }
.menu-panel {
  position: absolute; left: 0; right: 0; z-index: 40; background: var(--paper);
  border-block: 1px solid var(--rule); box-shadow: 0 14px 28px rgba(0,0,0,.07);
}
/* .masthead .wrap の flex を継承しないよう、ここで明示的に組み直す。 */
.menu-panel .wrap { display: block; align-items: stretch; padding-block: 1.5rem 1.75rem; }
.menu-panel ul { list-style: none; }
.menu-panel li + li { border-top: 1px solid var(--rule-soft); }
.menu-panel a { display: block; padding: .7rem 0; text-decoration: none; font-weight: 600; font-size: .9375rem; }
.menu-panel li.sub a { padding: .55rem 0 .55rem 1rem; font-weight: 400; font-size: .875rem; }
.menu-panel .group-label {
  font-size: .75rem; letter-spacing: .14em; color: var(--ink-45);
  border-bottom: 1px solid var(--ink); padding-bottom: .5rem; margin-bottom: .25rem;
}
.menu-group + .menu-group { margin-top: 1.75rem; }
@media (min-width: 48rem) {
  .menu-panel .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; align-items: start; }
  .menu-group + .menu-group { margin-top: 0; }
}

@media (min-width: 62rem) {
  .masthead .btn { display: inline-flex; margin-left: .5rem; }
}
/* メニューは全幅で出す（サイトの索引として使う） */
.menu { display: block; }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--rule); padding-block: clamp(2.5rem, 8vw, 5.5rem); }
.hero-grid { display: grid; gap: clamp(1.75rem, 5vw, 3.5rem); }
.hero h1 {
  font-size: var(--step-5); line-height: 1.24; letter-spacing: -.01em;
  margin-bottom: 1.25rem;
}
/* 日本語の見出しが単語の途中で折れないようにする。
   対応していないブラウザは従来どおりの折り返しになるだけで、崩れない。 */
h1, h2, h3, .lede { word-break: auto-phrase; }
.hero h1 .bar {
  display: block; width: 3.25rem; height: 3px; background: var(--gold); margin-bottom: 1.5rem;
}
.hero p { max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-aside { border-top: 2px solid var(--ink); padding-top: 1rem; }
.hero-aside h2 { font-size: .875rem; font-family: var(--sans); letter-spacing: .1em; }
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); align-items: start; }
}

/* ---------- 思想 3本 ---------- */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.pillar { padding-block: 1.75rem; border-bottom: 1px solid var(--rule-soft); }
.pillar .n { font-family: var(--num); font-size: .75rem; color: var(--gold-deep); letter-spacing: .1em; }
.pillar h3 { font-size: 1.125rem; margin: .35rem 0 .6rem; }
.pillar p { color: var(--ink-60); font-size: .9375rem; }
@media (min-width: 48rem) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
  .pillar { border-bottom: none; padding-block: 2rem 0; }
}

/* ---------- 導線 ---------- */
.flow { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.flow-step { background: var(--paper); padding: 1.1rem 1.25rem; }
.flow-step .n { font-family: var(--num); font-size: .75rem; color: var(--gold-deep); }
.flow-step strong { display: block; font-size: 1rem; margin-top: .15rem; }
.flow-step span { font-size: .8125rem; color: var(--ink-60); }
@media (min-width: 55rem) { .flow { grid-auto-flow: column; grid-auto-columns: 1fr; } }

/* ---------- 記事 ---------- */
.press-layout { display: grid; gap: clamp(2rem, 5vw, 3rem); }
@media (min-width: 62rem) {
  .press-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .press-aside { border-left: 1px solid var(--rule); padding-left: clamp(1.5rem, 3vw, 2.5rem); }
}

/* linkcard: 見出しだけをリンクにし、::after のオーバーレイでカード全体を
   クリック可能にする。カテゴリーリンクを内包してもHTMLがネストしない。 */
.linkcard { position: relative; }
.linkcard__title { margin: .3rem 0 0; }
.linkcard__title a { text-decoration: none; }
.linkcard__title a::after { content: ""; position: absolute; inset: 0; }
.linkcard:hover .linkcard__title a { text-decoration: underline; text-decoration-color: var(--gold); }
.linkcard .meta .cat { position: relative; z-index: 1; text-decoration: none; }
.linkcard .meta .cat:hover { text-decoration: underline; }

.lead-story { border-bottom: 1px solid var(--rule); padding-bottom: 1.75rem; margin-bottom: 1.5rem; }
.lead-story .linkcard__title { font-size: var(--step-3); line-height: 1.35; margin: .5rem 0 .75rem; }
.lead-story p { color: var(--ink-60); font-size: .9375rem; }

/* 記事のアイキャッチ（frontmatter の image）。ストック画像は 16:9 */
.lead-story__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1.1rem; }
.linkcard--thumb { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: .9rem; align-items: start; }
.linkcard__thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: .2rem; }
@media (min-width: 48rem) { .linkcard--thumb { grid-template-columns: minmax(0, 1fr) 9.5rem; gap: 1.25rem; } }
.article-hero { max-width: var(--measure); margin: 0 0 2rem; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article-list { list-style: none; }
.article-list > li { border-bottom: 1px solid var(--rule-soft); padding: 1rem 0; }
.article-list > li:first-child { border-top: 1px solid var(--rule-soft); }
.lead-story + .article-list > li:first-child { border-top: 0; }
/* 次に考えること（記事末）と、問いから探す（コラム一覧） */
.next-steps { max-width: var(--measure); margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--gold); }
.next-steps .link-list { margin-top: .75rem; }
.question-shelves__grid { display: grid; gap: 1.75rem 2.5rem; }
@media (min-width: 48rem) { .question-shelves__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.question-shelf { border-top: 1px solid var(--rule); padding-top: 1rem; }
.question-shelf h3 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: .6rem; }
.question-shelf ul { list-style: none; }
.question-shelf li + li { margin-top: .45rem; }
.question-shelf a { font-size: .875rem; }
.article-list .linkcard__title { font-size: 1.0625rem; line-height: 1.55; }
.article-list p { font-size: .8125rem; color: var(--ink-60); margin-top: .35rem; }

/* 説明つきリンク一覧（カテゴリー、今後の構想） */
.link-list { list-style: none; margin-top: .75rem; }
.link-list > li { border-bottom: 1px solid var(--rule-soft); }
.link-list > li:first-child { border-top: 1px solid var(--rule-soft); }
.link-list a { display: block; padding: .85rem 0; text-decoration: none; }
.link-list strong { display: block; font-family: var(--serif); font-size: .9375rem; font-weight: 600; }
.link-list span { display: block; font-size: .8125rem; color: var(--ink-60); margin-top: .15rem; }
.link-list a:hover strong { text-decoration: underline; text-decoration-color: var(--gold); }

/* 今後の構想（TOPで面積を取らせない） */
.upcoming .link-list { max-width: 46rem; }

/* 準備中ページの箇条書き */
.fact-list { list-style: none; }
.fact-list > li { padding: 1rem 0; border-bottom: 1px solid var(--rule-soft); }
.fact-list > li:first-child { border-top: 1px solid var(--rule-soft); }
.fact-list h2 { font-size: 1rem; }
.fact-list p { font-size: .875rem; color: var(--ink-60); margin-top: .3rem; }

/* 余白ユーティリティ（テンプレートからインラインstyleを排除するための最小限） */
.notice--lead { margin-bottom: 2rem; }
.notice--tail { margin-top: 2.5rem; }
.deftable--spaced { margin-top: 3rem; }
.note-under { margin-top: 1.5rem; }
.aside-gap { margin-top: 2rem; }
.article-extra { margin-top: 2.5rem; }
.article-extra .eyebrow + * { margin-top: .75rem; }
.h1-under-status { margin-top: 1rem; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: .75rem; color: var(--ink-45); }
.meta time { font-family: var(--num); }
.meta .cat {
  color: var(--gold-deep); font-weight: 700; letter-spacing: .08em;
  border-left: 2px solid var(--gold); padding-left: .45rem;
}
.tag-sample {
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em;
  background: var(--paper-3); color: var(--ink-60); padding: .1rem .45rem;
}

/* ---------- 記事本文 ---------- */
.article-head { border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.article-head h1 { font-size: var(--step-4); line-height: 1.35; margin: .6rem 0 .9rem; }
.prose { max-width: var(--measure); font-size: var(--step-1); line-height: 2.05; }
.prose > * + * { margin-top: 1.5rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.75rem; padding-top: .85rem; border-top: 1px solid var(--rule); }
/* 区切り線（---）の直後の見出しは、見出し側の罫線を出さない（二重線になるため） */
.prose hr { margin-block: 2.25rem; border: 0; border-top: 1px solid var(--rule); }
.prose hr + h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1.1875rem; margin-top: 2.25rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: .5rem; }
.prose blockquote {
  border-left: 2px solid var(--gold); padding: .25rem 0 .25rem 1.15rem;
  color: var(--ink-60); font-size: 1rem;
}
.prose blockquote > * + * { margin-top: .75rem; }
.prose code { font-family: var(--num); font-size: .875em; background: var(--paper-2); padding: .1em .35em; }
.prose pre { background: var(--paper-2); border: 1px solid var(--rule); padding: 1rem; overflow-x: auto; font-size: .875rem; }
.prose pre code { background: none; padding: 0; }
.prose img { margin-inline: auto; }
.prose .fig-zoom { display: block; text-decoration: none; }
.prose .fig-zoom__hint { display: none; }
@media (max-width: 767px) {
  .prose .fig-zoom__hint { display: block; margin-top: .5rem; text-align: center; font-size: .875rem; text-decoration: underline; text-decoration-color: var(--gold); }
}
.prose a { text-decoration: underline; text-decoration-color: var(--gold); }

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); }
.table-scroll table { min-width: 22rem; font-size: .875rem; }
th, td { text-align: left; padding: .65rem .85rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
th { background: var(--paper-2); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }

.byline { border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .8125rem; }
.byline ul { list-style: none; }
.byline li { font-weight: 600; }
.byline .note { color: var(--ink-60); margin-top: .5rem; font-size: .75rem; line-height: 1.75; }
.byline__inner { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.byline__avatar { width: 4.75rem; height: 4.75rem; border-radius: 50%; object-fit: cover; object-position: 50% 26%; border: 1px solid var(--rule); }
.byline__label { margin: 0 0 .18rem; font-size: .6875rem; letter-spacing: .14em; color: var(--gold-deep); font-weight: 700; }
.byline__name { margin: 0; font-family: var(--serif); font-size: 1.05rem; font-weight: 700; }
.byline__name a { text-decoration: none; }
.byline__name a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.byline__role { margin: .12rem 0 .45rem; color: var(--ink-60); }
.byline__body ul { margin: 0; padding: 0; }
.byline__more { margin-top: .55rem; font-size: .75rem; }
.byline__more a { text-decoration: underline; text-decoration-color: var(--gold); }

.sources { margin-top: 2rem; border: 1px solid var(--rule); padding: 1.1rem 1.25rem; background: var(--paper-2); }
.sources h2 { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; color: var(--ink-45); }
.sources ul { list-style: none; margin-top: .6rem; font-size: .875rem; }
.sources li + li { margin-top: .4rem; }
.updates time { font-size: .8125rem; color: var(--ink-45); }
.updates__kind { display: inline-block; margin: 0 .35rem; padding: 0 .4rem; border: 1px solid var(--rule); font-size: .75rem; }
.updates__reviewed { color: var(--ink-45); }
.meta__updated { margin-left: .35rem; font-size: .8125rem; color: var(--ink-45); }
/* 公開 ／ 更新 ／ 内容確認。折り返しても1項目の中では切らない */
.dates { display: inline-flex; flex-wrap: wrap; gap: .15rem .9rem; }
.dates__i { white-space: nowrap; }
.dates__i time { margin-left: .15rem; }

.notice {
  border-left: 3px solid var(--gold); background: var(--gold-tint);
  padding: .9rem 1.1rem; font-size: .8125rem; line-height: 1.8; color: var(--ink-80);
}
.notice strong { display: block; margin-bottom: .2rem; }

/* ---------- 動画 ---------- */
.video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  border: 1px dashed var(--rule); background: var(--paper-2);
  display: grid; place-items: center; text-align: center; padding: 2rem 1.25rem;
  color: var(--ink-45); font-size: .8125rem;
}
.video-placeholder.ratio { aspect-ratio: 16 / 9; }

/* 別オリジンのアプリ埋め込み枠（nelBS）。高さは読み込み後にスクリプトが調整する。 */
/* ---------- アプリ埋め込み（/tools/nelbs/） ----------
   「上はBENERUのサイト、その下からアプリ」という関係だけを見せる。
   枠線で囲わない。囲むと別サービスを貼り付けたように見える。
   iframe は全幅に置く。nelBS 側も 1180px の .wrap を持つので、
   全幅にしたほうが本体サイトの本文幅と列がそろう。 */
.appstage { background: var(--app-canvas); }
.appstage > iframe { display: block; width: 100%; min-height: 60vh; border: 0; }
.appstage .note-box { margin-block: 1.5rem; }
.app-foot { padding-block: 1.25rem clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--rule); }
.app-foot .small { color: var(--ink-60); }

/* ---------- ツール ---------- */
/* nelOS 公開ハブのプロダクト枠。nelBS は別URLで開く（埋め込みではない）。 */
.product { border: 1px solid var(--rule); border-top: 2px solid var(--ink); display: grid; gap: 1.25rem; padding: 1.5rem; margin-top: .25rem; }
.product-body h3 { font-size: 1.125rem; }
.product-lead { font-size: .9375rem; margin-top: .35rem; }
.product-body p + p { margin-top: .5rem; font-size: .875rem; color: var(--ink-60); }
.product-act { display: grid; gap: .6rem; justify-items: start; align-content: start; }
.product-act .small { color: var(--ink-60); }
.product + .product { margin-top: 1.5rem; }
.product-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
@media (min-width: 800px) {
  .product { grid-template-columns: 1fr 15rem; gap: 2rem; align-items: start; }
  .product-act { border-left: 1px solid var(--rule-soft); padding-left: 2rem; }
  .product--img { grid-template-columns: 17rem 1fr 15rem; }
}

.status { justify-self: start;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--gold-deep);
  border: 1px solid var(--gold); padding: .12rem .55rem; display: inline-block;
}

/* ---------- カード列 ---------- */
.cards { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.card { background: var(--paper); padding: 1.35rem 1.4rem; display: grid; gap: .4rem; align-content: start; text-decoration: none; }
.card h3 { font-size: 1.0625rem; }
.card p { font-size: .8125rem; color: var(--ink-60); }
a.card:hover { background: var(--paper-2); }
@media (min-width: 48rem) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 会社概要テーブル ---------- */
.deftable { border-top: 2px solid var(--ink); }
.deftable dl { display: grid; margin: 0; }
.deftable dt { font-size: .8125rem; color: var(--ink-60); padding-top: 1rem; font-weight: 600; }
.deftable dd { margin: 0; padding-bottom: 1rem; border-bottom: 1px solid var(--rule-soft); }
@media (min-width: 40rem) {
  .deftable dl { grid-template-columns: 12rem 1fr; }
  .deftable dt { padding-block: 1rem; border-bottom: 1px solid var(--rule-soft); }
  .deftable dd { padding-block: 1rem; }
}

/* ---------- フォーム ---------- */
.form { max-width: 36rem; display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .8125rem; font-weight: 700; }
.field .req { color: var(--gold-deep); font-size: .75rem; margin-left: .35rem; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink); width: 100%; border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: none; }
.field textarea { min-height: 9rem; resize: vertical; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: #fff; }
.cta .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 1.5rem; }
.cta h2 { font-size: var(--step-3); color: #fff; }
.cta p { color: #c9c7c2; max-width: 36rem; font-size: .9375rem; }
.cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.cta .btn--ghost { background: transparent; color: #fff; border-color: #5a5c60; }
.cta .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cta .actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #b9b7b2; border-top: 3px solid var(--gold); }
.footer .wrap { padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.footer-top { display: grid; gap: 2rem; }
.footer .brand { color: #fff; }
.footer .brand img { width: 156px; }
.footer h2 { font-family: var(--sans); font-size: .6875rem; letter-spacing: .16em; color: #85888d; font-weight: 700; }
.footer ul { list-style: none; margin-top: .7rem; font-size: .875rem; }
.footer li + li { margin-top: .45rem; }
.footer a { color: #d6d4cf; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.footer address { font-style: normal; font-size: .8125rem; line-height: 1.9; color: #9b9ea3; margin-top: .9rem; }
/* SNS のアイコン（lib/templates.mjs の socialLinks）。白・グレーだけ。押せる大きさは 2.5rem 四方 */
.footer .social { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 1.1rem 0 0; padding: 0; max-width: 18rem; }
.footer .social li { margin: 0; }
.footer .social a { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; color: #9b9ea3; text-decoration: none; transition: color .15s, border-color .15s; }
.footer .social a:hover, .footer .social a:focus-visible { color: #fff; border-color: var(--gold); }
.footer .social svg { width: 18px; height: 18px; }
.footer .social .social__text { width: auto; padding: 0 .8rem; border-radius: 1.25rem; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #34363a;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .75rem; color: #85888d;
}
@media (min-width: 55rem) {
  .footer-top { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}

/* ---------- 準備中 ---------- */
.stub { text-align: left; max-width: var(--measure); }
.stub h1 { font-size: var(--step-4); margin-bottom: 1rem; }
.stub .status { margin-bottom: 1.25rem; }

/* ---------- パンくず ---------- */
.crumbs { font-size: .75rem; color: var(--ink-45); padding-block: .9rem; border-bottom: 1px solid var(--rule-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li::after { content: "／"; margin-left: .4rem; color: var(--ink-30); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- ページ送り・その他 ---------- */
.page-head { padding-block: clamp(2rem, 6vw, 3.25rem); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: var(--step-4); }
.page-head p { margin-top: .9rem; max-width: var(--measure); color: var(--ink-60); }

.catnav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.catnav a {
  font-size: .8125rem; padding: .35rem .8rem; border: 1px solid var(--rule);
  text-decoration: none; color: var(--ink-80);
}
.catnav a:hover, .catnav a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff; }

.related { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.related h2 { font-family: var(--sans); font-size: .8125rem; letter-spacing: .14em; margin-bottom: .5rem; }

@media print {
  .sectionbar, .cta, .menu, .util, .util-agent, .footer { display: none; }
  body { font-size: 11pt; }
}

/* 横スクロール可能であることの視覚ヒント（セクションバー） */
.sectionbar .wrap { position: relative; display: flex; align-items: stretch; }
.sectionbar .scroller { flex: 1 1 auto; min-width: 0; }
/* 言語の切り替えがあるときは、横スクロールのぼかしをその左に置く */
.sectionbar .wrap:has(.lang-menu)::after { right: 4.6rem; }
.lang-menu--bar { z-index: 2; background: var(--ink); }
.sectionbar .wrap::after {
  content: ""; position: absolute; top: 0; right: 0; width: 2.5rem; height: 100%;
  background: linear-gradient(to right, rgba(29,30,32,0), var(--ink) 85%);
  pointer-events: none;
}
@media (min-width: 62rem) { .sectionbar .wrap::after { display: none; } }

/* 送信先が未設定のあいだのフォーム（準備中表示） */
.form--pending { opacity: .55; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-size: .8125rem; font-weight: 700; margin-bottom: .4rem; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.choice { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; white-space: nowrap; }
.choice--wrap { white-space: normal; align-items: flex-start; }
.choice--wrap input { margin-top: .3rem; }
.choice input, .field .choice input { width: auto; padding: 0; margin: 0; border: 0; min-height: 0; }
.private-teaser { max-width: 42rem; border: 1px solid var(--rule); padding: 1.1rem 1.25rem; display: grid; gap: .45rem; }
.private-teaser__label { font-size: .75rem; color: var(--ink-60); letter-spacing: .04em; }
.private-teaser__row { font-weight: 700; }
.private-teaser__tag { color: var(--gold-deep); }
.form--pending input, .form--pending select, .form--pending textarea { background: var(--paper-2); cursor: not-allowed; }
.form--pending .btn { background: var(--ink-30); border-color: var(--ink-30); cursor: not-allowed; }

/* 通常の注記（警告ではない）。.notice より控えめに扱う。 */
.note-box {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: .85rem 1.05rem;
  font-size: .875rem;
  line-height: 1.85;
  color: var(--ink-80);
  max-width: var(--measure);
  margin-bottom: 2rem;
}
/* 会社概要の補足行 */
.dd-note { display: block; font-size: .8125rem; color: var(--ink-60); margin-top: .35rem; }

/* ==========================================================================
   長文ページのセクション分割（Markdown中の <!-- section: name | ラベル --> ）
   ========================================================================== */
.page-block + .page-block {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--rule-soft);
}
.page-block > .kicker { display: block; margin-bottom: .5rem; }
/* ブロック先頭の見出しは、ブロック自体の罫線と重ならないようにする */
.page-block .prose > h2:first-child {
  margin-top: 0; padding-top: 0; border-top: none;
}

/* 代表者挨拶：本文幅を少し狭め、行間を広めに */
.page-block--greeting .prose { max-width: 36rem; }
.page-block--greeting .prose p { line-height: 2.15; }

/* 署名 */
.page-block + .page-block--signature {
  margin-top: 2.25rem; padding-top: 0; border-top: none;
}
.page-block--signature { max-width: 36rem; }
.page-block--signature .prose {
  text-align: right; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.9;
}

/* 企業理念：2行のステートメントを視覚的に強くする */
.page-block + .page-block--creed { border-top: 2px solid var(--gold); }
.page-block--creed .prose > h2 {
  font-size: var(--step-3); line-height: 1.45; letter-spacing: .005em;
  margin: 0; padding: 0; border-top: none;
}
.page-block--creed .prose > h2 + h2 { margin-top: .15rem; }
.page-block--creed .prose > h2 + h2 + * { margin-top: 2rem; }

/* 採用：会社の前提4点をカード状に並べる */
.page-block--core .prose { max-width: none; }
.page-block--core .prose ul {
  list-style: none; padding: 0; margin-top: .5rem;
  display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.page-block--core .prose li {
  margin: 0; background: var(--paper); padding: 1.15rem 1.25rem;
  font-size: .9375rem; line-height: 1.85; color: var(--ink-60);
}
.page-block--core .prose li strong {
  display: block; font-family: var(--serif); font-size: 1.0625rem; color: var(--ink);
  margin-bottom: .2rem;
}
@media (min-width: 48rem) {
  .page-block--core .prose ul { grid-template-columns: repeat(2, 1fr); }
}

/* 採用：勤務条件の表。左列は折り返さない */
.page-block--conditions td:first-child {
  white-space: nowrap; width: 1%; font-weight: 600; color: var(--ink-60);
}

/* 記事がまだ1本もないときのBENERU PRESS */
.pressempty { border-top: 2px solid var(--ink); padding-top: 1.1rem; max-width: 34rem; }
.pressempty__lead { font-family: var(--serif); font-size: 1.125rem; line-height: 1.7; }
.pressempty .small { margin-top: .7rem; }
.pressempty__links { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 1.1rem; font-size: .875rem; }
.pressempty__links a { text-decoration: underline; text-decoration-color: var(--gold); }

/* ==========================================================================
   トップページ（編集面）とガイドシリーズ
   ========================================================================== */
.hero--lead .lede { max-width: 38rem; }
.hero--lead .actions { margin-top: 2rem; }
.hero-video { margin-top: 2.5rem; max-width: 46rem; }
.guide-lead { max-width: 42rem; margin-bottom: 1.75rem; }

/* ステップ一覧 */
.steps { list-style: none; counter-reset: none; }
.steps__item { border-bottom: 1px solid var(--rule-soft); }
.steps__item:first-child { border-top: 1px solid var(--rule-soft); }
.steps__item > a, .steps__link {
  display: grid; grid-template-columns: 3rem 1fr; align-items: baseline; gap: .25rem 1rem;
  padding: 1rem 0; text-decoration: none; position: relative;
}
.steps__n { font-size: .8125rem; color: var(--gold-deep); letter-spacing: .04em; }
.steps__body strong { display: block; font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; }
.steps__body span { display: block; font-size: .8125rem; color: var(--ink-60); margin-top: .2rem; }
.steps__item > a:hover .steps__body strong { text-decoration: underline; text-decoration-color: var(--gold); }
.steps__item--pending .steps__body strong { color: var(--ink-45); }
.steps__status {
  position: absolute; right: 0; top: 1.1rem;
  font-size: .75rem; letter-spacing: .08em; color: var(--ink-45);
  border: 1px solid var(--rule); padding: .08rem .5rem;
}

/* 目的から探す */
.needs { list-style: none; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.needs > li { background: var(--paper); }
.needs a, .needs > li > span { display: block; padding: .95rem 1.1rem; text-decoration: none; }
.needs strong { display: block; font-size: .9375rem; }
.needs span span, .needs a span { display: block; font-size: .75rem; color: var(--ink-45); margin-top: .15rem; }
.needs a:hover { background: var(--paper-2); }
.needs a:hover strong { text-decoration: underline; text-decoration-color: var(--gold); }
.needs__pending strong { color: var(--ink-45); }
@media (min-width: 40rem) { .needs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .needs { grid-template-columns: repeat(4, 1fr); } }

/* 動画の2カラム */
.media-grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .media-grid { grid-template-columns: repeat(2, 1fr); } }

/* シリーズ内の前後移動 */
.pager {
  display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  margin-top: 3rem;
}
.pager a { background: var(--paper); padding: 1rem 1.15rem; text-decoration: none; display: block; }
.pager span:not(.pager__prev):not(.pager__next) { background: var(--paper); }
.pager a span { display: block; font-size: .75rem; letter-spacing: .1em; color: var(--ink-45); }
.pager a strong { display: block; font-family: var(--serif); font-size: .9375rem; margin-top: .25rem; }
.pager a:hover { background: var(--paper-2); }
.pager__next { text-align: right; }
@media (min-width: 40rem) { .pager { grid-template-columns: 1fr 1fr; } }
/* ガイド：続けて読む人のために、スマホでは「次の記事」を上に置く */
@media (max-width: 39.99rem) {
  .pager--series .pager__next { order: -1; }
  .pager--series > span:empty { display: none; }
}


/* ==========================================================================
   まだ中身が無いセクション（物件など）
   ========================================================================== */
.emptyslot { border-top: 2px solid var(--ink); padding-top: 1.1rem; max-width: 40rem; }
.emptyslot__lead { font-family: var(--serif); font-size: 1.125rem; line-height: 1.7; }
.emptyslot .small { margin-top: .7rem; }
.emptyslot__links { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 1.1rem; font-size: .875rem; }
.emptyslot__links a { text-decoration: underline; text-decoration-color: var(--gold); }

/* 目的から探す：4列 */
@media (min-width: 48rem) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.guide-group + .guide-group { margin-top: 2rem; }
.guide-group__title { margin: 0 0 .75rem; font-size: 1.1rem; }

/* メディア案内（/media/）。上部は将来の広告枠。いまは余白だけを取る */
.media-slot--top { min-height: clamp(2.5rem, 8vw, 5.5rem); }
.media-hub { padding-top: 0; display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.media-block .lede { max-width: var(--measure); margin-top: 1rem; }
.media-block__cta { margin-top: 1.5rem; }
.media-video { max-width: 48rem; }

/* 編集者紹介 */
.editors { display: grid; gap: 3rem; }
.editor-profile { display: grid; gap: 1.5rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; scroll-margin-top: 7rem; }
.editor-profile__visual img { display: block; width: min(100%, 22rem); aspect-ratio: 1 / 1.08; object-fit: cover; object-position: 50% 22%; }
/* 2枚目の画像は段違い（PC：左右を入れ替えたジグザグ／スマホ：右寄せ） */
.editor-profile__visual--alt img { margin-left: auto; }
.editor-profile__body--alt > h3:first-child { margin-top: 0; }
.editor-profile__body { max-width: 44rem; }
.editor-profile__body h2 { margin: .2rem 0 .15rem; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.editor-profile__role { margin: 0 0 1.25rem; color: var(--gold-deep); font-weight: 700; }
.editor-profile__body > p:not(.eyebrow):not(.editor-profile__role):not(.editor-profile__meta):not(.note):not(.editor-profile__works) { margin-top: 1rem; line-height: 1.95; }
.editor-profile__meta { margin-top: 0; color: var(--ink-60); font-size: .875rem; line-height: 1.8; }
.editor-profile__body h3 { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: 1.15rem; }
.editor-profile .note { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--ink-60); font-size: .8125rem; line-height: 1.8; }
.editor-profile--text { grid-template-columns: 1fr; }
@media (min-width: 48rem) {
  .editor-profile:not(.editor-profile--text) { grid-template-columns: minmax(14rem, 20rem) 1fr; gap: 2.25rem; align-items: start; }
  .editor-profile:has(.editor-profile__visual--alt) { grid-template-columns: minmax(12rem, 20rem) 1fr minmax(12rem, 20rem); row-gap: 3.5rem; }
  .editor-profile:has(.editor-profile__visual--alt) > .editor-profile__visual:not(.editor-profile__visual--alt) { grid-column: 1; }
  .editor-profile:has(.editor-profile__visual--alt) > .editor-profile__body:not(.editor-profile__body--alt) { grid-column: 2 / 4; }
  .editor-profile__body--alt { grid-column: 1 / 3; grid-row: 2; }
  .editor-profile__visual--alt { grid-column: 3; grid-row: 2; }
}
/* ---------- 右下の問い合わせハブ（相談・会員登録） ----------
 * 静かに常駐する。派手なポップアップやチャットボット風にしない。
 * スマホではパネルを画面下のシートにし、キーボードが出ても中でスクロールできるようにする。 */
.hub__fab {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.05rem .7rem .9rem; min-height: 2.75rem;
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  border: 1px solid var(--ink); border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.hub__fab:hover { background: #000; }
.hub__fab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hub__icon { flex: none; }
/* ページ末尾のフッター文言にボタンが重ならないよう、下に余白を足す */
body:has(.hub__fab) .footer-bottom { padding-bottom: 4.5rem; }

.hub__panel {
  position: fixed; inset: auto max(1rem, env(safe-area-inset-right)) calc(max(1rem, env(safe-area-inset-bottom)) + 3.6rem) auto;
  margin: 0; padding: 0; width: min(24rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 6.5rem); overflow: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-top: 2px solid var(--gold);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .14);
}
.hub__panel::backdrop { background: rgba(29, 30, 32, .18); }
.hub__head {
  position: sticky; top: 0; z-index: 1; background: var(--paper);
  display: grid; grid-template-columns: 2.25rem 1fr 2.25rem; align-items: center;
  padding: .55rem .5rem; border-bottom: 1px solid var(--rule-soft);
}
.hub__title:focus { outline: none; }
.hub__title { margin: 0; text-align: center; font-family: var(--serif); font-size: .9375rem; font-weight: 700; }
.hub__back, .hub__close {
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  background: none; border: 0; color: var(--ink-60); font-size: 1.15rem; cursor: pointer;
}
.hub__back[hidden] { display: grid; visibility: hidden; }
.hub__close { grid-column: 3; }
.hub__back:hover, .hub__close:hover { color: var(--ink); }
.hub__back:focus-visible, .hub__close:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.hub__body { padding: 1rem 1.15rem 1.25rem; }
/* 各画面の display 指定より hidden を優先する（隠した画面が見えてしまわないように） */
.hub__body [hidden] { display: none; }
.hub__menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.hub__menu a {
  position: relative; display: block; padding: .9rem 2rem .9rem .25rem; border-bottom: 1px solid var(--rule);
  color: var(--ink); text-decoration: none;
}
.hub__menu a::after { content: "→"; position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); color: var(--gold-deep); }
.hub__menu strong { display: block; font-family: var(--serif); font-size: 1rem; }
.hub__menu span { display: block; margin-top: .15rem; font-size: .8125rem; color: var(--ink-60); }
.hub__menu a:hover { background: var(--paper-2); }
.hub__menu a:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.hub__note, .hub__lead { margin: .85rem 0 0; font-size: .75rem; line-height: 1.75; color: var(--ink-60); }
.hub__lead { margin: 0 0 1rem; font-size: .8125rem; }
.hub__form { display: grid; gap: 1rem; }
.hub__form .field textarea { min-height: 7rem; }
.hub__count { color: var(--ink-45); font-size: .6875rem; justify-self: end; }
.hub__pending {
  margin: 0; padding: .6rem .75rem; font-size: .75rem; line-height: 1.7;
  background: var(--gold-tint); border-left: 2px solid var(--gold);
}
.hub__actions { display: grid; gap: .5rem; }
.hub__actions .btn { justify-content: center; }
.hub__actions .btn[disabled] { opacity: .55; cursor: not-allowed; }
.hub__status { margin: 0; font-size: .75rem; line-height: 1.7; color: var(--ink-60); min-height: 1em; }
.hub__status.is-error { color: #9b2c2c; }
.hub__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hub__done { display: grid; gap: 1rem; justify-items: start; }
.hub__done:focus { outline: none; }
.hub__done-title { margin: 0; font-size: .9375rem; line-height: 1.8; }

@media (max-width: 39.99rem) {
  .hub__fab { padding: .65rem .85rem; }
  /* スマホは画面下のシート。左右いっぱい・上は少し空ける */
  .hub__panel {
    inset: auto 0 0 0; width: 100%; max-width: none;
    max-height: calc(100dvh - 2.5rem);
    border-left: 0; border-right: 0; padding-bottom: env(safe-area-inset-bottom);
  }
  /* 入力欄は16px未満だと iOS が拡大してレイアウトが崩れる */
  .hub__form input, .hub__form select, .hub__form textarea { font-size: 16px; }
}
@media (max-width: 22rem) {
  .hub__fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- 不動産業者向け登録LP（/for-agents/。active のときだけ） ---------- */
.agent-head .prose { margin-top: 1rem; }
.agent-cta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.agent-cta .small { color: var(--ink-60); }
.agent-point {
  max-width: var(--measure); margin-top: 1.5rem; padding: .9rem 1rem;
  background: var(--gold-tint); border-left: 2px solid var(--gold); font-size: .9375rem; line-height: 1.85;
}
.agent-form { margin-top: 1rem; }
.field .opt { color: var(--ink-45); font-size: .75rem; margin-left: .35rem; font-weight: 400; }
.choice .req { color: var(--gold-deep); font-size: .75rem; margin-left: .35rem; }
.agent-done { max-width: 36rem; margin-top: 1rem; padding: 1rem 1.15rem; border: 1px solid var(--rule); border-top: 2px solid var(--gold); }
.agent-done:focus { outline: none; }
.agent-close { padding-top: 1.25rem; border-top: 1px solid var(--rule); }

/* ---------- トップ（ホームフィード） ----------
 * 会社案内の表紙ではなく、コンテンツへ最短で入るための面。上部は小さく、すぐ棚が始まる。
 * 棚は横スクロール（スマホ）／グリッド（PC）。カードはサムネイル16:9＋種類＋題名＋日付。 */
.home-top { border-bottom: 1px solid var(--rule); padding-block: clamp(1.1rem, 3vw, 1.75rem); }
.home-top__inner { display: grid; gap: 1rem; }
.home-top__title { margin: 0; font-family: var(--serif); font-size: clamp(1.05rem, 2.4vw, 1.4rem); font-weight: 700; line-height: 1.5; }
.home-top__title .bar { display: inline-block; width: 1.5rem; height: 2px; background: var(--gold); vertical-align: middle; margin-right: .6rem; }
.chip {
  display: inline-block; padding: .35rem .8rem; border: 1px solid var(--rule); border-radius: 999px;
  font-size: .8125rem; color: var(--ink); text-decoration: none; background: var(--paper);
}
.chip:hover { border-color: var(--ink); }
button.chip { cursor: pointer; font: inherit; font-size: .8125rem; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.feed-shelf { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.feed-chips { margin-top: 1.25rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.feed-row {
  list-style: none; margin: 1rem 0 0; padding: 0 0 .5rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
}
.feed-row > li { scroll-snap-align: start; min-width: 0; }
@media (min-width: 64rem) {
  .feed-row { grid-auto-columns: calc((100% - 3rem) / 4); }
  .feed-row--grid { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
}
@media (max-width: 39.99rem) {
  .feed-row { grid-auto-columns: 78%; }
}
.feed-card a { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.feed-card__media {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--paper-3); border: 1px solid var(--rule-soft);
}
.feed-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.feed-card a:hover .feed-card__media img { transform: scale(1.03); }
.feed-card__noimg {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: .9375rem; color: var(--ink-60); background: var(--paper-2);
}
.feed-card__play {
  position: absolute; right: .6rem; bottom: .6rem; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: rgba(29, 30, 32, .82);
}
.feed-card__play::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-left: .7rem solid #fff; border-top: .45rem solid transparent; border-bottom: .45rem solid transparent;
}
.feed-card__body { display: grid; gap: .3rem; padding-top: .6rem; }
.feed-card__chip { font-size: .6875rem; letter-spacing: .08em; color: var(--gold-deep); font-weight: 700; }
.feed-card__title {
  font-family: var(--serif); font-size: .9375rem; line-height: 1.55; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-card a:hover .feed-card__title { text-decoration: underline; text-underline-offset: 3px; }
.feed-card__facts { font-size: .8125rem; color: var(--ink-80); }
.feed-card__date { font-family: var(--num); font-size: .6875rem; color: var(--ink-45); }
.feed-card a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.feed-card--skeleton .feed-card__media { background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 8px, var(--paper-3) 8px, var(--paper-3) 16px); }
.feed-card--skeleton .feed-card__title { font-family: var(--sans); font-weight: 400; font-size: .75rem; color: var(--ink-45); }

.tool-cards { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .tool-cards { grid-template-columns: repeat(3, 1fr); } }
.tool-cards a {
  display: grid; gap: .4rem; height: 100%; padding: 1.1rem 1.15rem; background: var(--paper);
  border: 1px solid var(--rule); border-top: 2px solid var(--ink); color: var(--ink); text-decoration: none;
}
.tool-cards a:hover { border-top-color: var(--gold); }
.tool-cards strong { font-family: var(--serif); font-size: 1.05rem; }
.tool-cards span { font-size: .8125rem; color: var(--ink-60); line-height: 1.75; }

.home-about__lead { max-width: var(--measure); margin-top: .75rem; font-size: .9375rem; color: var(--ink-80); line-height: 1.9; }
.home-about__links { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .875rem; }

/* 検索窓（トップ・/search/） */
.search-box { display: flex; gap: .5rem; max-width: 44rem; }
.search-box input {
  flex: 1; min-width: 0; padding: .8rem 1rem; font-size: 16px;
  border: 1px solid var(--ink-30); background: var(--paper); color: var(--ink); border-radius: 0;
}
.search-box input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.search-box .btn { flex: none; }
.page-head .search-box { margin-top: 1rem; }
.search-filters { margin-top: 1rem; }
/* 目的入口（3枚） */
.home-entries { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 48rem) { .home-entries { grid-template-columns: repeat(3, 1fr); } }
.home-entries a {
  display: grid; gap: .25rem; height: 100%; padding: .85rem 1rem; color: var(--ink); text-decoration: none;
  border: 1px solid var(--rule); border-left: 2px solid var(--gold); background: var(--paper);
}
.home-entries a:hover { border-color: var(--ink); border-left-color: var(--gold); }
.home-entries strong { font-family: var(--serif); font-size: 1.05rem; }
.home-entries span { font-size: .8125rem; color: var(--ink-60); }
/* 検索結果 */
.search-status { font-size: .875rem; color: var(--ink-60); }
.search-hits { list-style: none; margin: 1rem 0 0; padding: 0; max-width: var(--measure); }
.search-hit { border-top: 1px solid var(--rule-soft); }
.search-hit a { display: grid; gap: .3rem; padding: 1rem 0; color: var(--ink); text-decoration: none; }
.search-hit__meta { display: flex; gap: .75rem; align-items: baseline; font-size: .6875rem; color: var(--ink-45); font-family: var(--num); }
.search-hit__title { font-family: var(--serif); font-size: 1.05rem; line-height: 1.55; }
.search-hit a:hover .search-hit__title { text-decoration: underline; text-underline-offset: 3px; }
.search-hit__snippet { font-size: .8125rem; color: var(--ink-60); line-height: 1.8; }
.search-hit mark { background: var(--gold-tint); color: inherit; padding: 0 .1em; }

/* ---------- AI検討用データ（記事・ガイドの末尾。小さく置く） ---------- */
.ai-handoff { max-width: var(--measure); margin-top: 2rem; padding: .9rem 1rem; border: 1px solid var(--rule); background: var(--paper-2); }
.ai-handoff__head { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; }
.ai-handoff__lead { margin: .2rem 0 0; font-size: .75rem; line-height: 1.7; color: var(--ink-60); }
.ai-handoff__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .7rem; }
.ai-handoff__status { margin: .4rem 0 0; color: var(--ink-60); min-height: 1em; }

/* 記事・ガイドの詳細ページは一つの読む列にする（見出し・画像・本文・署名・前後ナビを同じ幅で中央に）。
 * 本文だけ行長を絞って左に寄ると、広い画面で右側が「空いたサイドバー」に見えるため（2026-10-07 ナタ指摘） */
.wrap--read { max-width: calc(var(--measure) + var(--gutter) * 2); }
body:has(.wrap--read) .crumbs .wrap { max-width: calc(var(--measure) + var(--gutter) * 2); }

/* スタートガイド一覧: セクションで使う道具の案内（見出しの下に小さく） */
.guide-group__tools { margin: -.25rem 0 .75rem; font-size: .8125rem; color: var(--ink-60); }

/* ---------- BENERU Q&A（/qa/） ---------- */
.qa-search { margin-top: 1.1rem; }
/* Q&A のカード：画像なし、問いが主役（記事のカードと種類がひと目で分かるように） */
.qa-cards { list-style: none; margin: 0; padding: 0; }
.qa-card { padding: 1.25rem 0 1.1rem; border-top: 1px solid var(--rule); }
.qa-card:last-child { border-bottom: 1px solid var(--rule); }
.qa-card__who { margin-bottom: .6rem; }
.qa-card__who .qa-who__img { width: 32px; height: 32px; }
.qa-card__who .qa-who__text strong { font-size: .875rem; }
.qa-card__who .qa-who__text span { font-size: .75rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.qa-card__q { font-size: var(--step-2); line-height: 1.5; margin: 0; }
.qa-card__q a { color: var(--ink); text-decoration: none; }
.qa-card__q a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.qa-card__q .tag-sample { margin-left: .5rem; vertical-align: middle; }
.qa-card__excerpt { margin: .55rem 0 0; color: var(--ink); line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.qa-card__excerpt--none { color: var(--ink-60); font-size: .875rem; }
.qa-card__more { display: inline-block; margin-top: .25rem; font-size: .8125rem; }
.qa-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: .75rem; font-size: .8125rem; color: var(--ink-60); }
.qa-card__foot .cat { color: var(--ink); }
.qa-card__foot .qa-helpful { margin-left: 0; }
.qa-card__count { margin-left: auto; }
.qa-related__list { list-style: none; margin: 0; padding: 0; }
.qa-related__list li { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; padding: .7rem 0; border-top: 1px solid var(--rule); }
.qa-related__list span { flex: none; font-size: .8125rem; color: var(--ink-60); }
.qa-head h1 { margin-top: .35rem; }
/* 元の質問：読者から来た質問文。回答の直前に、文脈として置く */
.qa-head .meta time { font-size: .8125rem; color: var(--ink-60); }
.qa-original { margin: 1.75rem 0 0; padding: 1rem 1.1rem; background: var(--paper-2); border-left: 2px solid var(--gold); }
.qa-original h2 { font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-60); margin: 0 0 .4rem; }
.qa-original p { margin: 0; line-height: 1.85; }
.qa-count { font-size: .875rem; color: var(--ink-60); margin: 1.5rem 0 .5rem; }
.qa-answer { border-top: 1px solid var(--rule); padding: 1.5rem 0 1.25rem; }
.qa-answer + .qa-answer { border-top-color: var(--rule); }
.qa-answer__head { margin-bottom: 1rem; }
.qa-who { display: flex; gap: .75rem; align-items: center; text-decoration: none; color: inherit; }
.qa-who:hover strong { text-decoration: underline; text-decoration-color: var(--gold); }
.qa-who__img { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.qa-who__img--text { display: grid; place-items: center; background: var(--paper-2, #f4f4f2); border: 1px solid var(--rule); font-weight: 700; }
.qa-who__text { display: flex; flex-direction: column; min-width: 0; }
.qa-who__text strong { font-size: 1rem; }
.qa-who__text span { font-size: .8125rem; color: var(--ink-60); overflow-wrap: anywhere; }
.qa-answer__sources { margin-top: 1.25rem; }
.qa-answer__sources h3 { font-size: .875rem; }
.qa-answer__foot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-top: 1.1rem; font-size: .8125rem; color: var(--ink-60); }
.qa-helpful { margin-left: auto; font: inherit; font-size: .8125rem; border: 1px solid var(--rule); background: transparent; color: var(--ink); padding: .35rem .8rem; border-radius: 999px; cursor: pointer; }
.qa-helpful[aria-pressed="true"] { border-color: var(--gold); color: var(--ink); background: rgba(183, 154, 96, .08); }
.qa-none { margin-top: 1.5rem; }
.qa-related { margin-top: 2.5rem; }
.qa-all { margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.qa-all > summary { padding: 1rem 0; cursor: pointer; font-size: .9375rem; color: var(--ink-60); }
.qa-all[open] > summary { color: inherit; }
.qa-links { display: flex; flex-wrap: wrap; gap: .75rem; }
/* 編集者ページ: 人数が増えたときの見出し下の目次と、人と人の間隔 */
.editors-hero { padding-top: 1.25rem; }
.editors-hero img { display: block; width: 100%; height: auto; max-width: 60rem; }
.editors-index { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.editors-index a { display: inline-block; padding: .35rem .85rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .8125rem; color: var(--ink); text-decoration: none; }
.editors-index a:hover { border-color: var(--ink); }
.editors .editor-profile + .editor-profile { margin-top: 4rem; }

/* ============ 縦フィード（/media/・/qa/）。流れてくる問いから読み始める。探すのは補助（2026-10-08 六太郎） ============ */
.mfeed-page { padding-top: 1.25rem; }
.mfeed-head { max-width: var(--measure); margin-bottom: 1.25rem; }
.mfeed-head h1 { font-size: var(--step-2); line-height: 1.55; margin-top: .35rem; }
.mfeed-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .mfeed-layout { grid-template-columns: minmax(0, var(--measure)) 12rem; justify-content: space-between; }
  .mfeed-aside { position: sticky; top: 6rem; align-self: start; }
  .mfeed-find { display: none; }
}
.mfeed-main { min-width: 0; max-width: var(--measure); }
.mfeed-find { margin: 0 0 .5rem; text-align: right; font-size: .8125rem; }
.mfeed-find a { color: var(--ink-60); }
.mfeed { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gold); }
.mfeed > li { border-bottom: 1px solid var(--rule); }
.mfeed-more { min-height: 3rem; margin: 0; padding: 1rem 0; text-align: center; font-size: .8125rem; color: var(--ink-45); }
.mfeed-more__retry { font: inherit; color: var(--ink); background: none; border: 1px solid var(--rule); padding: .5rem 1.25rem; cursor: pointer; }
.mfeed > .qa-card { border-top: 0; }
.mfeed > .qa-card:last-child { border-bottom: 1px solid var(--rule); }
.mfeed-tail { margin-top: 1.25rem; font-size: .875rem; color: var(--ink-60); }
/* PRESS・動画のカード。Q&A と同じ使い勝手：題 → 要約（右に画像）→「続きを読む」でその場に全文 → 記事のページへ */
.pcard { padding: 1.25rem 0 1.1rem; }
.pcard__meta { display: flex; gap: .75rem; align-items: baseline; margin: 0 0 .4rem; font-size: .8125rem; color: var(--ink-60); }
.pcard__chip { font-size: .6875rem; letter-spacing: .08em; color: var(--gold-deep); font-weight: 700; }
.pcard__title { font-size: var(--step-2); line-height: 1.5; margin: 0; }
.pcard__title a { color: var(--ink); text-decoration: none; }
.pcard__title a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.pcard__lead { display: flex; gap: 1rem; align-items: flex-start; margin-top: .55rem; }
.pcard__lead .qa-card__excerpt { flex: 1; min-width: 0; margin-top: 0 !important; }
.pcard__img { order: 2; flex: none; width: 96px; height: 72px; object-fit: cover; background: var(--paper-2); }
@media (min-width: 640px) { .pcard__img { width: 168px; height: 105px; } }
.qa-read[open] .pcard__lead { display: none; }
.qa-read__hero { display: block; width: 100%; max-width: 36rem; height: auto; margin-top: .75rem; }
a.qa-card__count { color: var(--ink-60); }
/* Q&A の「続きを読む」：その場で全文を開く。開いても読み疲れしない幅・行間・段落間隔 */
.qa-read > summary { display: block; list-style: none; cursor: pointer; }
.qa-read > summary::-webkit-details-marker { display: none; }
.qa-read > summary .qa-card__excerpt { margin-top: .55rem; }
.qa-read__toggle { display: inline-block; margin-top: .35rem; font-size: .8125rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.qa-read__less { display: none; }
.qa-read[open] .qa-read__more, .qa-read[open] > summary .qa-card__excerpt { display: none; }
.qa-read[open] .qa-read__less { display: inline; }
.qa-read[open] > summary { margin-bottom: .25rem; }
.qa-read__body { max-width: 36rem; margin-top: .75rem; font-size: 1rem; line-height: 2; }
.qa-read__body > * + * { margin-top: 1.25rem; }
.qa-read__src { max-width: 36rem; margin-top: 1.4rem; font-size: .8125rem; line-height: 1.8; color: var(--ink-60); }
.qa-read__src a { color: var(--ink-60); text-decoration: none; }
.qa-read__src a:hover { color: var(--ink); text-decoration: underline; }
.qa-read__end { margin-top: .6rem; font-size: .875rem; }
/* 右の「探す」：補助。細く・小さく・色を抑える */
.mfeed-aside { font-size: .8125rem; color: var(--ink-60); }
.mfeed-aside h2 { font-size: .6875rem; letter-spacing: .1em; font-weight: 700; color: var(--ink-45); margin: 0 0 .5rem; }
.mfeed-aside ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.mfeed-aside li a { display: block; padding: .2rem 0; color: var(--ink-60); text-decoration: none; }
.mfeed-aside li a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
.mfeed-aside__search { margin: 0 0 1.4rem; }
.mfeed-aside__search input { width: 100%; font: inherit; font-size: .875rem; padding: .45rem .6rem; border: 1px solid var(--rule); border-radius: 0; background: transparent; color: var(--ink); }
@media (max-width: 1023px) {
  .mfeed-aside { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
  .mfeed-aside ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
}
/* 本文がほかの回答者に触れているときの、その回答へのリンク（脚注の位置） */
.qa-mention { max-width: 36rem; margin-top: 1.1rem; padding-top: .6rem; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--ink-60); }
.qa-mention a { color: var(--ink); }
/* 編集者ページから、その人の回答・記事へ */
.editor-profile__works { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; padding-top: .9rem; border-top: 1px solid var(--gold); font-size: .875rem; font-weight: 700; }
.editor-profile__works a { color: var(--ink); text-decoration: none; }
.editor-profile__works a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
/* Q&A → コラム（もう少し深く読む）。フィードのカードでは末尾に1件だけ */
.qa-read__deeper { display: block; margin-top: .4rem; color: var(--ink-60); }
.qa-deeper { margin-top: 2.5rem; }

/* トップ：量（2026-10-14） */
.home-counts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.home-counts a { display: grid; gap: .1rem; padding: .6rem .8rem; background: var(--paper-2); color: var(--ink); text-decoration: none; border-top: 1px solid var(--gold); }
.home-counts a:hover { background: var(--paper-3); }
.home-counts span { font-size: .75rem; color: var(--ink-60); }
.home-counts strong { font-family: var(--num); font-size: 1.25rem; font-weight: 700; }
.home-counts small { font-family: var(--sans); font-size: .75rem; font-weight: 400; margin-left: .15rem; }
@media (max-width: 39.99rem) { .home-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* トップ：今日の一問 */
.home-spot__q { margin: 1rem 0 0; font-family: var(--serif); font-size: var(--step-2); line-height: 1.5; }
.home-spot__q a { color: var(--ink); text-decoration: none; }
.home-spot__q a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-spot__answers { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .home-spot__answers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-spot__answers a { display: grid; gap: .6rem; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-top: 2px solid var(--ink); color: var(--ink); text-decoration: none; background: var(--paper); }
.home-spot__answers a:hover { border-top-color: var(--gold); }
.home-spot__who { display: flex; align-items: center; gap: .6rem; }
.home-spot__who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.home-spot__who strong { font-size: .9375rem; }
.home-spot__who span { font-size: .75rem; color: var(--ink-60); }
.home-spot__text { font-size: .875rem; line-height: 1.85; color: var(--ink-80); }
.home-spot__more { margin: 1rem 0 0; font-size: .875rem; }
/* トップ：問いから探す */
.topic-cards { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 40rem) { .topic-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .topic-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.topic-cards a { display: grid; gap: .35rem; height: 100%; padding: .95rem 1.1rem; background: var(--paper); border: 1px solid var(--rule); border-left: 2px solid var(--ink); color: var(--ink); text-decoration: none; }
.topic-cards a:hover { border-left-color: var(--gold); }
.topic-cards strong { font-family: var(--serif); font-size: 1.0625rem; }
.topic-cards span { font-size: .8125rem; color: var(--ink-60); }
.topic-qa { list-style: none; margin: 1rem 0 0; padding: 0; columns: 2 20rem; column-gap: 2rem; }
.topic-qa li { break-inside: avoid; padding: .5rem 0; border-bottom: 1px solid var(--rule-soft); font-size: .9375rem; }
/* トップ・問いのページ：画像つきツール */
/* 列数はツールの数から出す（lib/pages.mjs の toolCols。2026-10-29：数を固定しない） */
@media (min-width: 64rem) { .tool-cards--img { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } }
.tool-cards--img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; margin-bottom: .35rem; }
.tool-step { font-size: .6875rem; letter-spacing: .08em; color: var(--gold-deep); font-weight: 700; }
/* トップ：新着（先頭を大きく） */
@media (min-width: 64rem) { .feed-row--lead > li:first-child { grid-column: span 2; grid-row: span 2; } .feed-row--lead > li:first-child .feed-card__title { font-size: 1.25rem; -webkit-line-clamp: 4; } }
.feed-card__faces { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.feed-card__faces img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.feed-card a:hover .feed-card__faces img { transform: none; }
/* トップ：始め方の帯 */
.guide-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; gap: 3px; }
.guide-steps li { flex: 1; }
.guide-steps a { display: block; height: 8px; background: var(--paper-3); }
.guide-steps li:first-child a { background: var(--ink); }
.guide-steps a:hover { background: var(--gold); }
.guide-first { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .25rem; }
.guide-first a { display: flex; gap: .75rem; padding: .45rem 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-soft); font-size: .9375rem; }
.guide-first a span { font-family: var(--num); color: var(--gold-deep); font-size: .8125rem; }
.guide-first a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* トップ：書いている人 */
.writer-row { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 1rem; }
.writer-row a { display: grid; justify-items: center; gap: .3rem; text-align: center; color: var(--ink); text-decoration: none; }
.writer-row img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); }
.writer-row a:hover img { border-color: var(--gold); }
.writer-row strong { font-size: .875rem; }
.writer-row span { font-size: .6875rem; color: var(--ink-60); }

/* BENERUの使い方（/how-to-use/） */
.usage-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .usage-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.usage-points li { display: grid; gap: .4rem; padding: 1rem 1.1rem; border-top: 2px solid var(--ink); background: var(--paper-2); }
.usage-points strong { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.55; }
.usage-points span { font-size: .875rem; color: var(--ink-80); line-height: 1.8; }
.usage-paths { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .usage-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.usage-paths > li { padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--rule); border-top: 2px solid var(--gold); }
.usage-paths h3 { margin: 0; font-family: var(--serif); font-size: 1.0625rem; }
.usage-paths ol { margin: .75rem 0 0; padding-left: 1.25rem; display: grid; gap: .5rem; font-size: .9375rem; line-height: 1.7; }
.usage-io { display: block; font-size: .8125rem; color: var(--ink-80); line-height: 1.7; }
.usage-io b { display: block; font-size: .6875rem; color: var(--ink-60); font-weight: 700; letter-spacing: .04em; }
.usage-text { max-width: var(--measure); margin: 1rem 0 0; font-size: .9375rem; line-height: 1.9; color: var(--ink-80); }
.usage-reads { margin: 1rem 0 0; display: grid; gap: .25rem 1.5rem; }
@media (min-width: 48rem) { .usage-reads { grid-template-columns: 12rem 1fr; } }
.usage-reads dt { font-family: var(--serif); font-weight: 700; padding-top: .6rem; }
.usage-reads dd { margin: 0; padding: .6rem 0; border-bottom: 1px solid var(--rule-soft); font-size: .9375rem; color: var(--ink-80); line-height: 1.8; }

/* 広告（/ads/、メディアのカード）2026-10-15 */
.ad-label { display: inline-block; padding: .1rem .5rem; border: 1px solid var(--ink); font-size: .6875rem; font-weight: 700; letter-spacing: .12em; color: var(--ink); background: var(--paper); margin-right: .5rem; }
.ad-note { margin: .75rem 0 0; font-size: .8125rem; color: var(--ink-60); }
.ad-cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.75rem 0; }
.ad-cta--big { padding: 1.5rem; background: var(--paper-2); border-top: 2px solid var(--gold); justify-content: center; }
.ad-cta--big .btn { padding: .95rem 1.75rem; font-size: 1rem; }
.ad-related { margin-top: 2.5rem; }
.ad-related h2 { font-size: var(--step-1); font-family: var(--serif); }
.pcard--ad { border-left: 2px solid var(--gold); padding-left: 1rem; }
.pcard--ad .ad-cta { margin: 1rem 0 0; }
.pcard--ad .btn { padding: .55rem 1rem; font-size: .8125rem; }
/* ツールの使い方（LP） */
.talk { display: grid; grid-template-columns: 56px 1fr; gap: .9rem; align-items: start; margin-top: 1rem; }
.talk img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); }
.talk p { margin: 0; padding: .85rem 1rem; background: var(--paper); border: 1px solid var(--rule); font-size: .9375rem; line-height: 1.9; }
.talk p strong { display: block; font-size: .75rem; color: var(--ink-60); margin-bottom: .2rem; }
.talk--rita p { background: var(--paper-2); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.75rem; max-width: 46rem; }
.lp-steps h2 { display: flex; gap: .75rem; align-items: baseline; font-size: var(--step-2); padding-top: .85rem; border-top: 1px solid var(--rule); }
.lp-steps h2 span { font-family: var(--num); font-size: .9375rem; color: var(--gold-deep); }
.lp-shot { margin: 1.25rem 0 0 calc(56px + .9rem); max-width: 20rem; border: 1px solid var(--rule); background: var(--paper); }
.lp-shot figcaption { padding: .4rem .6rem; font-size: .6875rem; color: var(--ink-60); border-top: 1px solid var(--rule-soft); }
@media (max-width: 39.99rem) { .lp-shot { margin-left: 0; max-width: 100%; } }
.lp-shot img { width: 100%; height: auto; display: block; }
@media (min-width: 48rem) { .tool-cards--few { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; } }

/* nelBS の使い方：キャラ｜説明｜画面（2026-10-15。吹き出しは使わない） */
.lp-scenes { list-style: none; margin: 0; padding: 0; display: grid; gap: 3.5rem; }
.lp-scene { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem 1.25rem; align-items: start; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.lp-scene__char { width: 100%; height: auto; display: block; }
.lp-scene__body h2 { display: flex; gap: .75rem; align-items: baseline; margin: .25rem 0 0; font-size: var(--step-2); }
.lp-scene__body h2 span { font-family: var(--num); font-size: .9375rem; color: var(--gold-deep); }
.lp-scene__text { margin: .9rem 0 0; font-size: 1rem; line-height: 2; color: var(--ink-80); max-width: 36rem; }
.lp-scene .lp-shot { grid-column: 1 / -1; margin: 0 auto; max-width: 18rem; }
.lp-aside { display: grid; grid-template-columns: 4.5rem 1fr; gap: .75rem; align-items: end; margin-top: 1.25rem; max-width: 34rem; }
.lp-aside__img { width: 100%; height: auto; display: block; }
.lp-aside p { margin: 0; padding: .75rem 1rem; border-left: 2px solid var(--gold); background: var(--paper-2); font-size: .9375rem; line-height: 1.85; }
.lp-aside strong { display: block; font-size: .6875rem; letter-spacing: .08em; color: var(--gold-deep); margin-bottom: .15rem; }
.lp-next { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; align-items: start; }
@media (min-width: 64rem) {
  .lp-scene { grid-template-columns: 15rem 1fr 17rem; gap: 2.5rem; }
  .lp-scene--noshot { grid-template-columns: 15rem 1fr; }
  .lp-scene .lp-shot { grid-column: auto; margin: 0; max-width: none; }
  .lp-aside { grid-template-columns: 6.5rem 1fr; }
  .lp-next { grid-template-columns: 15rem 1fr; gap: 2.5rem; }
}

@media (max-width: 63.99rem) {
  .lp-scene { grid-template-columns: 6.5rem 1fr; align-items: end; }
  .lp-scene__body { display: contents; }
  .lp-scene__body h2 { align-self: end; margin-bottom: .5rem; }
  .lp-scene__text, .lp-aside { grid-column: 1 / -1; }
  .lp-scene__text { margin-top: 0; }
  .lp-aside { margin-top: 0; }
}

@media (min-width: 64rem) {
  /* PC：段の高さを画面写真の縦長に引っぱられないよう、写真は上の一部だけ見せ、ネルは段の下端（区切り線）に立たせる */
  .lp-scenes { gap: 0; }
  .lp-scene { align-items: stretch; padding: 2rem 0 0; border-top: 0; border-bottom: 1px solid var(--rule); }
  .lp-scene__char { align-self: end; max-height: 22rem; width: auto; margin: 0 auto; }
  .lp-scene__body { align-self: center; padding-bottom: 2rem; }
  .lp-scene .lp-shot { align-self: center; margin-bottom: 2rem; }
  .lp-scene .lp-shot img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
  .lp-scene__text { font-size: 1.0625rem; }
  .lp-next .lp-scene__char { max-height: 20rem; }
}

/* キャラは薄いグレーの枠に入れ、枠の下端で切れるようにする（宙に浮いて見えないように。2026-10-15） */
.lp-frame { background: var(--paper-2); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; align-self: stretch; padding-top: .75rem; }
.lp-frame .lp-scene__char { width: 100%; max-height: none; margin: 0; }
.lp-frame--next { background: var(--paper); }
.lp-aside { grid-template-columns: 5.5rem 1fr; gap: 0; align-items: stretch; background: var(--paper-2); border-left: 2px solid var(--gold); overflow: hidden; }
.lp-aside__img { align-self: end; margin-top: .5rem; }
.lp-aside p { background: none; border-left: 0; align-self: center; }
.lp-hero { display: grid; gap: 1.5rem; }
.lp-hero__img { width: 100%; height: auto; display: block; }
@media (min-width: 64rem) {
  .lp-hero { grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: center; }
  .lp-frame { min-height: 20rem; }
  .lp-frame .lp-scene__char { width: 88%; }
  .lp-aside { grid-template-columns: 7rem 1fr; }
  .lp-next { align-items: stretch; }
}
@media (max-width: 63.99rem) {
  .lp-frame { align-self: end; }
}

@media (min-width: 64rem) {
  /* 枠は画像の高さだけにして、段の下端に置く（上に空いた枠を作らない） */
  .lp-frame { align-self: end; min-height: 0; padding-top: 1rem; }
  .lp-frame .lp-scene__char { width: 100%; }
}

/* 広告の書き手と「この広告を表示しない」（2026-10-15） */
.pcard--ad .pcard__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.ad-who { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--ink-80); }
.ad-who img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.ad-hide { margin-left: auto; background: none; border: 0; padding: 0; font: inherit; font-size: .75rem; color: var(--ink-45); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ad-hide:hover { color: var(--ink); }

/* 使い方ページ：目指すもの・用意しているもの・始め方（2026-10-15） */
.usage-aim { margin: 1rem 0 0; max-width: var(--measure); font-family: var(--serif); font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); line-height: 1.7; }
.usage-services { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0; counter-reset: svc; }
@media (min-width: 48rem) { .usage-services { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
.usage-services li { border-top: 1px solid var(--gold); }
.usage-services a { display: grid; grid-template-columns: 7.5rem 1fr; gap: .25rem 1rem; padding: .9rem 0; color: inherit; text-decoration: none; }
.usage-services a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.usage-services strong { font-family: var(--serif); font-size: 1.0625rem; }
.usage-services span { font-size: .9375rem; line-height: 1.7; color: var(--ink-80); }
.usage-services small { grid-column: 2; font-size: .8125rem; color: var(--ink-45); }
.usage-start { text-align: center; }
.usage-start p { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.125rem; }
.usage-start .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.usage-hero { margin-top: 0; margin-bottom: 0; }
.usage-hero img { width: 100%; height: auto; display: block; }

/* トップ：はじめての方への入口（2026-10-15） */
.home-first { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; padding: .85rem 1.1rem; border: 1px solid var(--rule); border-left: 3px solid var(--gold); color: inherit; text-decoration: none; background: var(--paper); }
.home-first__tag { font-size: .75rem; letter-spacing: .08em; color: var(--gold-deep); }
.home-first strong { font-family: var(--serif); font-size: 1.0625rem; }
.home-first__desc { font-size: .875rem; color: var(--ink-80); }
@media (min-width: 48rem) { .home-first__desc { margin-left: auto; } }
.home-first:hover { border-color: var(--ink); border-left-color: var(--gold); }
.home-first:hover strong { text-decoration: underline; text-underline-offset: 3px; }
/* 広告カードの「続きを読む」（Q&A と同じ見た目。広告のページへ飛ぶ。2026-10-15） */
.ad-more { display: inline-block; margin-top: .35rem; font-size: .8125rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.usage-hero figcaption { margin-top: .75rem; text-align: center; font-family: var(--serif); font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); }
/* 画像の無い Q&A：回答者2人の写真を左右に（2026-10-15） */
.feed-card__duo { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--paper); }
.feed-card__media .feed-card__duo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
/* スタートガイド一覧：ネルの案内（2026-10-16 六太郎）。写真は大きく。スマホは写真を上に、文は下に */
.guide-hello { display: grid; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.guide-hello__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; display: block; }
.guide-hello__name { font-size: .75rem; letter-spacing: .08em; color: var(--gold-deep); }
.guide-hello p { margin: 0; padding: 1rem 1.2rem; border-left: 2px solid var(--gold); background: var(--paper-2); font-size: 1rem; line-height: 1.95; }
/* BENERUについての末尾の案内（mediaInvite）。あいさつの下に行き先のボタン */
.guide-hello--invite { border-bottom: 0; padding-bottom: 0; }
.guide-hello__cta { justify-self: start; }
@media (min-width: 48rem) {
  .guide-hello { grid-template-columns: minmax(16rem, 22rem) 1fr; grid-template-rows: 1fr auto auto 1fr; column-gap: 2.5rem; row-gap: .5rem; }
  .guide-hello__img { grid-row: 1 / -1; aspect-ratio: auto; height: auto; }
  .guide-hello__name { grid-column: 2; grid-row: 2; }
  .guide-hello p { grid-column: 2; grid-row: 3; font-size: 1.0625rem; max-width: 38rem; }
  .guide-hello--invite { grid-template-rows: 1fr auto auto auto 1fr; }
  .guide-hello__cta { grid-column: 2; grid-row: 4; margin-top: .75rem; }
}

/* ツールの更新情報（2026-10-16） */
.upd-month + .upd-month { margin-top: 2.5rem; }
.upd-month__h { margin: 0 0 .5rem; font-size: 1.25rem; padding-bottom: .5rem; border-bottom: 1px solid var(--gold); }
.upd-list { list-style: none; margin: 0; padding: 0; }
.upd { padding: 1.1rem 0; border-bottom: 1px solid var(--rule-soft); scroll-margin-top: 5rem; }
.upd__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin: 0; font-size: .8125rem; color: var(--ink-60); }
.upd__meta time { font-family: var(--num); }
.upd-tool { font-weight: 600; color: var(--ink); }
.upd-kind { font-size: .75rem; padding: .05rem .5rem; border: 1px solid var(--rule); color: var(--ink-80); }
.upd-kind--fix { border-color: var(--ink); color: var(--ink); }
.upd__title { margin: .35rem 0 0; font-size: 1.0625rem; line-height: 1.6; }
.upd__body { margin-top: .35rem; font-size: .9375rem; color: var(--ink-80); }
.upd__body p { margin: .25rem 0; }
.upd__link { margin: .35rem 0 0; font-size: .875rem; }
.upd-entry { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; margin: 1.5rem 0 0; font-size: .9375rem; }
.upd-entry span { color: var(--ink-60); font-size: .875rem; }
.pcard--upd .pcard__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
/* ツールのページの更新情報（最新3件を1行ずつ。2026-10-16） */
.upd-mini { margin: 2rem 0 0; border-top: 1px solid var(--gold); }
.upd-mini__head { display: flex; justify-content: space-between; align-items: baseline; margin: .75rem 0 .25rem; font-size: .9375rem; }
.upd-mini__head a { font-size: .875rem; }
.upd-mini ul { list-style: none; margin: 0; padding: 0; }
.upd-mini li { display: flex; flex-wrap: wrap; gap: .15rem .75rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--rule-soft); font-size: .9375rem; }
.upd-mini time { font-family: var(--num); font-size: .8125rem; color: var(--ink-60); }
.upd-mini .upd-tool { font-size: .8125rem; }
.upd-mini li a { color: var(--ink); }
/* お問い合わせフォームのボット対策の欄（人には見せない。2026-10-19） */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 仲介サービスの LP（/service/。2026-10-20）。ブランドの色のまま、料金と CTA だけははっきり */
.svc-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--rule); }
.svc-hero h1 { margin: .5rem 0 0; font-size: clamp(2rem, 1.2rem + 4vw, 3.5rem); line-height: 1.25; }
.svc-hero__lead { margin: 1.25rem 0 0; font-family: var(--serif); font-size: clamp(1.0625rem, 1rem + .5vw, 1.375rem); line-height: 1.8; }
.svc-hero__steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .35rem; font-size: 1rem; color: var(--ink-80); }
.svc-hero__steps li:last-child { color: var(--ink); font-weight: 600; }
.svc-cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.svc-cta .btn { padding: .95rem 1.75rem; font-size: 1rem; }
.btn--disabled { background: var(--rule); border-color: var(--rule); color: var(--ink-60); cursor: not-allowed; }
.svc-fee__big { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; margin: .5rem 0 1rem; }
.svc-fee__big span { font-size: 1rem; color: var(--ink-80); }
.svc-fee__big strong { font-family: var(--num); font-size: clamp(3rem, 2rem + 5vw, 5rem); line-height: 1; }
.svc-fee__big small { color: var(--ink-60); }
.svc-bars { list-style: none; margin: 1.5rem 0 1rem; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 64rem) { .svc-bars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.svc-bars li { padding-top: .75rem; border-top: 1px solid var(--gold); }
.svc-bars__price { margin: 0 0 .5rem; font-weight: 600; }
.svc-bar { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: .5rem; align-items: center; margin: .35rem 0; font-size: .8125rem; }
.svc-bar__track { height: .75rem; background: var(--paper-2); }
.svc-bar__fill { display: block; height: 100%; background: var(--ink); }
.svc-bar__fill--cap { background: var(--ink-45, #9a9a96); }
.svc-bar__val { font-family: var(--num); white-space: nowrap; }
.svc-bars__diff { margin: .4rem 0 0; font-family: var(--num); font-weight: 600; text-align: right; }
.svc-lead { margin: .5rem 0 1rem; max-width: var(--measure); font-family: var(--serif); font-size: 1.125rem; line-height: 1.8; }
.svc-list { margin: 0; padding-left: 1.25rem; display: grid; gap: .4rem; font-size: 1rem; line-height: 1.8; }
.svc-list--check { list-style: none; padding-left: 0; }
.svc-list--check li::before { content: "✓"; color: var(--gold-deep); margin-right: .5rem; }
.svc-quote { margin: 1.5rem 0 0; padding: 1rem 1.25rem; border-left: 2px solid var(--gold); background: var(--paper); font-family: var(--serif); font-size: 1.125rem; line-height: 1.8; }
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 48rem) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc-grid li { padding: .9rem 1rem; background: var(--paper); border-top: 2px solid var(--ink); font-size: .9375rem; line-height: 1.6; }
.svc-fit { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .svc-fit { grid-template-columns: 3fr 2fr; } }
.svc-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.svc-flow li { display: flex; gap: .9rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.svc-flow span { font-family: var(--num); color: var(--gold-deep); min-width: 1.5rem; }
.svc-faq dt { margin-top: 1.25rem; font-weight: 600; }
.svc-faq dd { margin: .35rem 0 0; color: var(--ink-80); line-height: 1.8; }
.svc-close { text-align: center; }
.svc-close__title { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); margin: 0 0 1rem; }
.svc-close p { line-height: 2; }
.svc-close .svc-cta { justify-content: center; }
@media (min-width: 48rem) { .svc-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc-hero__sub { margin: .75rem 0 0; font-size: .9375rem; color: var(--ink-80); }
.svc-fee__rule { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 0 0 1rem; font-size: 1rem; }
.svc-fee__rule dt { color: var(--ink-80); }
.svc-fee__rule dd { margin: 0; font-weight: 600; }
/* フッター下段の関連サイト（2026-10-26） */
.footer-related a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ツールの使い方：AI向けの説明書のダウンロード（2026-10-27） */
.ai-guide p { max-width: var(--measure); }
.ai-guide p + p { margin-top: 1rem; }
.ai-guide .small { margin-left: .5rem; }
/* ページの一番上に置く形（2026-10-27 六太郎：AI に聞いてほしい）。細い金の枠で囲み、見出しは小さめ */
.ai-guide--top { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--gold); }
.ai-guide--top h2 { margin: 0 0 .5rem; font-size: 1.125rem; }
.ai-guide--top .btn { flex-wrap: wrap; }
@media (max-width: 600px) { .ai-guide--top { padding: 1rem; } .ai-guide--top .small { display: block; margin: .5rem 0 0; } }

/* ---------- トップの CM スライダー（lib/cm.mjs・/cm.js。2026-11-12） ----------
 * トップの自社広告枠。黒い主ナビの直下、検索欄の上。
 * PC: 横長の画像を背景に敷き、画像の空いている側（side: left / right）に文字を重ねる。tone は文字の色（light＝明るい壁に濃い字、dark＝暗い壁に白い字）。
 * スマホ: 画像は 16:9 のまま全体を見せ、文字は画像の下の黒地に置く。
 * 操作の帯は画像の下（明るい画像の上に白いボタンを重ねない）。スライド全体が行き先へのリンク。
 * 全スライドを1マスに重ねる（高さが揃い、切り替えで下が動かない）。 */
.cm { padding-top: clamp(.75rem, 2vw, 1.25rem); }
.cm__frame { position: relative; background: var(--ink); color: #fff; border-top: 2px solid var(--gold); overflow: hidden; }
.cm__track { display: grid; }
.cm__slide {
  grid-area: 1 / 1; position: relative; display: grid; grid-template-columns: 1fr; aspect-ratio: 10 / 3; min-height: 16rem;
  visibility: hidden; opacity: 0; transition: opacity .7s ease, visibility 0s linear .7s;
}
.cm__slide.is-on { visibility: visible; opacity: 1; transition: opacity .7s ease; }
.cm__media { position: absolute; inset: 0; background: #2a2b2e; }
.cm__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 文字の側だけ、読みやすさのために画像を少し沈める（装飾のグラデーションではない） */
.cm__media::after { content: ''; position: absolute; inset: 0; }
.cm--left .cm__media::after { background: linear-gradient(90deg, var(--cm-scrim) 0, var(--cm-scrim) 30%, transparent 62%); }
.cm--right .cm__media::after { background: linear-gradient(270deg, var(--cm-scrim) 0, var(--cm-scrim) 30%, transparent 62%); }
.cm--light { --cm-scrim: rgba(250, 248, 244, .72); --cm-fg: var(--ink); --cm-sub: var(--ink-80); --cm-who: var(--gold-deep); }
.cm--dark { --cm-scrim: rgba(20, 20, 22, .55); --cm-fg: #fff; --cm-sub: #d9dadc; --cm-who: var(--gold); }
.cm__body {
  position: relative; align-self: center; width: min(44%, 30rem); min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; padding: 1.5rem clamp(1.25rem, 3vw, 2.5rem);
  color: var(--cm-fg);
}
.cm--right .cm__body { justify-self: end; }
.cm__who { margin: 0; font-size: .75rem; letter-spacing: .14em; color: var(--cm-who); }
.cm__line { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.65rem); font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.cm__desc { margin: 0; font-size: .875rem; line-height: 1.7; color: var(--cm-sub); }
/* 掛け合い（二人以上のセリフ）。名前を行の頭に小さく */
.cm__talk { display: grid; gap: .45rem; }
.cm__line--talk { font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.cm__line--talk .cm__who { display: block; margin-bottom: .1rem; font-family: var(--sans, inherit); font-weight: 400; }
.cm__cta {
  margin-top: .3rem; display: inline-block; padding: .5rem .95rem; border: 1px solid var(--gold);
  color: var(--cm-fg); font-size: .875rem; text-decoration: none; line-height: 1.5;
}
.cm--light .cm__cta { background: var(--ink); color: #fff; border-color: var(--ink); }
.cm__cta::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.cm__slide.is-on:hover .cm__cta, .cm__cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.cm__cta:focus-visible, .cm__btn:focus-visible, .cm__dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cm__controls { position: relative; z-index: 2; display: flex; align-items: center; justify-content: flex-end; gap: .35rem; padding: .2rem .75rem; }
.cm__controls[hidden] { display: none; }
.cm__btn {
  width: 2.25rem; height: 2.25rem; display: inline-grid; place-items: center; padding: 0;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: transparent; color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.cm__btn:hover { border-color: var(--gold); }
.cm__icon--pause { width: .6rem; height: .7rem; border-inline: 3px solid #fff; }
.cm__toggle.is-paused .cm__icon--pause { width: 0; height: 0; border: 0; border-left: .6rem solid #fff; border-block: .38rem solid transparent; margin-left: .15rem; }
.cm__dots { display: flex; gap: .1rem; margin: 0 .15rem; padding: 0; list-style: none; }
.cm__count { min-width: 4.5em; text-align: center; font-size: .75rem; letter-spacing: .08em; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
/* どの CM を出すかを JS が選ぶまで中身を見せない（入れ替わりのちらつきを防ぐ）。JS が無いときは 1.2 秒後に build の1枚目を見せる。枠の高さは最初から決まっているので下は動かない */
.cm:not(.is-js) .cm__track { opacity: 0; animation: cm-reveal .3s ease 1.2s forwards; }
@keyframes cm-reveal { to { opacity: 1; } }
.cm__dot { width: 1.5rem; height: 2.25rem; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.cm__dot::before { content: ''; position: absolute; left: 50%; top: 50%; width: .5rem; height: .5rem; margin: -.25rem 0 0 -.25rem; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.cm__dot[aria-current="true"]::before { background: var(--gold); width: .6rem; height: .6rem; margin: -.3rem 0 0 -.3rem; }
@media (max-width: 760px) {
  /* 画像は 16:9 で全体を見せ、文字はその下の黒地へ（tone に関係なく白い字） */
  .cm__slide { aspect-ratio: auto; min-height: 0; grid-template-rows: auto 1fr; }
  .cm__media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .cm__media::after { display: none; }
  .cm__img { object-position: 50% 50% !important; }
  .cm__body, .cm--right .cm__body { width: auto; justify-self: stretch; align-self: start; padding: .9rem 1rem 1rem; gap: .45rem; color: #fff; }
  .cm__who { color: var(--gold); }
  .cm__line { font-size: 1.1rem; line-height: 1.55; }
  :lang(en) .cm__line, .cm__line--talk { font-size: 1rem; line-height: 1.5; }
  .cm__desc { font-size: .8125rem; line-height: 1.65; color: #d9dadc; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .cm__cta, .cm--light .cm__cta { font-size: .8125rem; padding: .45rem .75rem; background: transparent; color: #fff; border-color: var(--gold); }
  .cm__controls { gap: .2rem; padding: .25rem .5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
  .cm__dot { width: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cm__slide, .cm__slide.is-on { transition: none; }
}
