/* Hallmark · page macrostructures
 *   /          → 15 Split Studio      (.diptych)
 *   /hunter/   → 14 Narrative Workflow(.stages)
 *   /hamlife/  → 04 Stat-Led          (.statlead)
 */

/* ================================================================
   15 · Split Studio — トップの二枚看板
   ================================================================ */
.opening { padding-block: var(--space-sm) var(--space-md); }
.opening h1 {
  font-size: var(--text-2xl); line-height: 1.24; margin-bottom: var(--space-xs);
  max-width: 24em;
}
.opening h1 em { font-style: normal; color: var(--accent-deep); }
.opening p { max-width: var(--measure); font-size: var(--text-sm); color: var(--ink-2); }

.diptych { display: grid; gap: var(--space-3xl); }
.panel {
  display: grid; gap: var(--space-lg);
  grid-template-columns: minmax(0, 1fr);
  padding-block: var(--space-xl);
  border-top: var(--rule-bold) solid var(--ink);
}
@media (min-width: 52rem) {
  .panel { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-2xl); }
  .panel--flip .panel__proof { order: -1; }
}
.panel__kicker {
  font-size: var(--text-xs); letter-spacing: 0.14em; color: var(--accent-deep);
  font-weight: 700; margin-bottom: var(--space-xs);
}
.panel h2 { font-size: var(--text-2xl); margin-bottom: var(--space-sm); }
.panel__lede { color: var(--ink-2); }
.panel__acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.panel__acts .btn { flex: 1 1 14rem; }

/* proof column — 数字は必ず出典のあるものだけ */
.proof { border: var(--rule-hair) solid var(--rule-strong); border-radius: var(--radius-lg); overflow: hidden; }
.proof dl { margin: 0; }
.proof__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-sm); align-items: baseline;
  padding: var(--space-sm) var(--space-md);
  border-bottom: var(--rule-hair) solid var(--rule);
}
.proof__row:last-child { border-bottom: 0; }
.proof__row dt { font-size: var(--text-sm); color: var(--ink-2); }
.proof__row dd {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-lg); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.proof__row dd small { font-family: var(--font-body); font-size: 0.62em; color: var(--ink-3); }
.proof__cap {
  padding: var(--space-xs) var(--space-md); background: var(--paper-2);
  font-size: var(--text-xs); color: var(--ink-3);
  border-top: var(--rule-hair) solid var(--rule);
}

/* ================================================================
   14 · Narrative Workflow — ハンターへの工程
   ================================================================ */
.stagehead { padding-block: var(--space-md) var(--space-md); }
.stagehead h1 { font-size: var(--text-3xl); line-height: 1.22; margin-bottom: var(--space-sm); }
.stageline {
  display: flex; flex-wrap: wrap; gap: 0.35em 0.8em;
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: var(--space-lg);
}
.stageline b { color: var(--ink); font-weight: 700; }

.stage {
  padding-block: var(--space-xl);
  border-top: var(--rule-bold) solid var(--ink);
  position: relative;
}
.stage::after {
  content: ""; position: absolute; inset-block-start: -3px; inset-inline-start: 0;
  height: 3px; width: 0; background: var(--accent);
  transition: width 700ms var(--ease-out);
}
.stage.is-seen::after { width: min(9rem, 34%); }
.stage__no {
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700;
  letter-spacing: 0.1em; color: var(--accent-deep); display: block;
  margin-bottom: var(--space-2xs);
}
.stage h2 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
.stage__grid { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) {
  .stage__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--space-2xl); }
}
.stage__body p { max-width: var(--measure); }
.facts { margin: 0; font-size: var(--text-sm); }
.facts div {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-sm);
  padding-block: var(--space-2xs);
  border-bottom: var(--rule-hair) solid var(--rule);
}
.facts dt { color: var(--ink-3); font-size: var(--text-xs); letter-spacing: 0.06em; padding-top: 0.25em; }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.facts dd b { font-family: var(--font-display); font-size: 1.08em; }
.pitfall {
  margin-top: var(--space-md); max-width: 46rem; padding: var(--space-sm) var(--space-md);
  background: var(--accent-wash); border-radius: var(--radius-md);
  font-size: var(--text-sm); line-height: 1.85;
}
.pitfall b { display: block; font-size: var(--text-xs); letter-spacing: 0.1em; color: var(--accent-deep); }

/* 二本立ての図（手描きSVG） */
.trackmap { margin-block: var(--space-lg) var(--space-xl); }
.trackmap svg { width: 100%; height: auto; }
.trackmap figcaption { font-size: var(--text-xs); color: var(--ink-3); margin-top: var(--space-xs); }

/* ================================================================
   04 · Stat-Led — アマチュア無線
   ================================================================ */
.statlead { padding-block: var(--space-md) var(--space-lg); }
.statlead__fig {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-figure); line-height: 0.92;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.statlead__fig small {
  font-size: 0.26em; letter-spacing: 0.02em; color: var(--ink-3);
  font-family: var(--font-body); margin-inline-start: 0.4em;
}
.statlead h1 {
  font-size: var(--text-2xl); line-height: 1.34; margin-block: var(--space-sm) var(--space-md);
  max-width: 20em;
}
.statlead__q { max-width: var(--measure); color: var(--ink-2); }

.statstrip {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--rule-bold) solid var(--ink);
  margin-top: var(--space-xl);
}
@media (min-width: 52rem) { .statstrip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.statstrip > div {
  padding: var(--space-md) var(--space-sm) var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--rule);
  border-inline-end: var(--rule-hair) solid var(--rule);
}
.statstrip > div:last-child { border-inline-end: 0; }
.statstrip dt { font-size: var(--text-xs); color: var(--ink-3); letter-spacing: 0.06em; }
.statstrip dd {
  margin: var(--space-2xs) 0 0; font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xl); font-variant-numeric: tabular-nums;
}
.statstrip dd small { font-size: 0.55em; color: var(--ink-3); font-family: var(--font-body); }

/* ================================================================
   共通ブロック
   ================================================================ */
.cards { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.linkcard {
  display: block; padding: var(--space-lg);
  border: var(--rule-hair) solid var(--rule-strong); border-radius: var(--radius-lg);
  text-decoration: none; background: var(--paper);
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.linkcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.linkcard h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.linkcard p { font-size: var(--text-sm); color: var(--ink-2); margin: 0; }
.linkcard__n {
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent-deep);
  letter-spacing: 0.08em; display: block; margin-bottom: var(--space-2xs);
}

.faq details {
  border-bottom: var(--rule-hair) solid var(--rule);
  padding-block: var(--space-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; list-style: none;
  display: flex; gap: var(--space-sm); align-items: baseline; min-height: 2.75rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--font-display); color: var(--accent-deep); }
.faq details[open] summary { margin-bottom: var(--space-xs); }
.faq__a { padding-inline-start: 1.5em; font-size: var(--text-sm); color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .stage::after { transition: none; }
  .linkcard:hover { transform: none; }
}

/* ================================================================
   二本立ての工程図（HTML＋CSS。SVGだと320pxで文字が潰れるため）
   ================================================================ */
.ladder { margin-block: var(--space-lg) var(--space-2xl); }
.ladder__lanes { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 46rem) {
  .ladder__lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
}
.lane {
  border: var(--rule-hair) solid var(--rule-strong);
  border-top: var(--rule-bold) solid var(--ink);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: var(--space-md);
}
.lane__h { margin-bottom: var(--space-sm); }
.lane__h b { display: block; font-family: var(--font-display); font-size: var(--text-md); }
.lane__h span { font-size: var(--text-xs); color: var(--ink-3); letter-spacing: 0.06em; }
.lane ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.lane li {
  counter-increment: step; position: relative;
  padding: var(--space-xs) 0 var(--space-xs) 2.1rem;
  font-size: var(--text-sm); line-height: 1.75;
}
.lane li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0.55em;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  background: var(--ink); color: var(--paper);
}
.lane li::after {
  content: ""; position: absolute; inset-inline-start: 0.72rem; top: 2.05em; bottom: -0.3em;
  width: 1px; background: var(--rule-strong);
}
.lane li:last-child::after { display: none; }
.lane li b { font-weight: 700; }
.lane li .yen {
  font-variant-numeric: tabular-nums; color: var(--accent-deep); font-weight: 700;
  white-space: nowrap;
}
.lane--gun li::before { background: var(--accent-deep); }
.ladder__join {
  margin-top: var(--space-lg); padding: var(--space-md);
  border: var(--rule-bold) solid var(--ink); border-radius: var(--radius-lg);
  text-align: center; font-weight: 700;
}
.ladder__join span { display: block; font-size: var(--text-xs); color: var(--ink-3); font-weight: 400; }
.ladder__branch {
  margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--ink-2);
  border-inline-start: var(--rule-bold) solid var(--accent);
  padding: var(--space-xs) var(--space-md);
}

/* メールアドレス（画像＋JSで組み立てるリンク／スパム対策） */
.mailbox { display: block; margin-bottom: var(--space-md); }
.mailbox img {
  border-radius: var(--radius-md);
  max-width: 100%; height: auto;
  margin-bottom: var(--space-sm);
}
.mailbox__ns { font-size: var(--text-sm); color: var(--ink-2); display: block; }
.mailacts { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.mailacts .btn { min-height: 2.75rem; }

/* 資格一覧のカード */
.qgrid { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 42rem) { .qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .qgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qcard {
  display: block; padding: var(--space-lg);
  background: var(--paper);
  border: var(--rule-hair) solid var(--rule-strong);
  border-top: var(--rule-bold) solid var(--accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.qcard:hover { transform: translateY(-2px); border-color: var(--accent); border-top-color: var(--accent); }
.qcard__cat {
  font-size: var(--text-xs); letter-spacing: 0.06em; color: var(--accent-deep);
  font-weight: 800; display: inline-block; margin-bottom: var(--space-2xs);
  background: var(--accent-wash); border-radius: 999px; padding: 0.22em 0.8em;
}
.qcard h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.qcard p { font-size: var(--text-sm); color: var(--ink-2); margin: 0 0 var(--space-sm); }
.qcard__n {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700;
  color: #fff; background: var(--accent); letter-spacing: 0.04em;
  display: inline-block; border-radius: 999px; padding: 0.28em 0.85em;
}
.qcard__n--soon { color: var(--ink-3); background: var(--paper-2); font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .qcard:hover { transform: none; } }

/* ================================================================
   記事（/kiji/）
   ================================================================ */
.article { max-width: 44rem; padding-block: var(--space-xl) var(--space-2xl); }
.article__head { margin-bottom: var(--space-xl); }
.article__meta {
  font-size: var(--text-xs); color: var(--ink-3); letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}
.article__meta a { color: var(--accent-deep); font-weight: 700; }
.article h1 {
  font-size: var(--text-3xl); line-height: 1.3; margin-bottom: var(--space-md);
}
.article__body { max-width: none; }
.article__body h2 {
  font-size: var(--text-xl); margin: var(--space-2xl) 0 var(--space-sm);
  padding-bottom: var(--space-xs); border-bottom: var(--rule-bold) solid var(--ink);
}
.article__body h3 { font-size: var(--text-lg); margin: var(--space-xl) 0 var(--space-xs); }
.article__body p { max-width: var(--measure); }
.article__body ul, .article__body ol { max-width: var(--measure); }
.article__body .note { max-width: var(--measure); margin-block: var(--space-md); }
.article__body .cite { max-width: var(--measure); margin-block: var(--space-sm) var(--space-lg); }

.toc {
  border: var(--rule-hair) solid var(--rule-strong); border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg); margin-bottom: var(--space-xl);
  background: var(--paper-2);
}
.toc__h {
  font-size: var(--text-xs); letter-spacing: 0.1em; color: var(--ink-3);
  font-weight: 700; margin-bottom: var(--space-xs);
}
.toc ol { margin: 0; padding-inline-start: 1.4em; font-size: var(--text-sm); }
.toc li { margin-bottom: 2px; }
.toc a { color: var(--ink-2); }

/* ================================================================
   更新フィード（トップと /kiji/）
   ================================================================ */
.feed { border-top: var(--rule-hair) solid var(--rule); }
.feed__row {
  display: grid; gap: var(--space-2xs) var(--space-md); align-items: baseline;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: var(--space-md) 0;
  border-bottom: var(--rule-hair) solid var(--rule);
  text-decoration: none;
}
@media (min-width: 44rem) {
  .feed__row { grid-template-columns: 6.5rem minmax(0, 1fr) auto; }
}
.feed__date { font-size: var(--text-xs); color: var(--ink-3); grid-row: 1; }
@media (max-width: 43.99rem) { .feed__date { grid-column: 1; } }
.feed__body { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 44rem) { .feed__body { grid-column: 2; } }
.feed__title {
  display: block; font-weight: 700; font-size: var(--text-md); line-height: 1.6;
  margin-bottom: 2px;
}
.feed__row:hover .feed__title { text-decoration: underline; text-decoration-color: var(--accent); }
.feed__desc { display: block; font-size: var(--text-sm); color: var(--ink-2); line-height: 1.7; }
.feed__tag {
  font-size: var(--text-xs); white-space: nowrap; font-weight: 700;
  color: var(--accent-deep); background: var(--accent-wash);
  border: 0; border-radius: 999px; padding: 0.25em 0.85em; justify-self: start;
}
@media (min-width: 44rem) { .feed__tag { grid-column: 3; grid-row: 1; justify-self: end; } }

/* ================================================================
   明るい面：カードは紙より明るい白面に置く
   ================================================================ */
.linkcard, .qcard, .proof, .drill__setup, .toc { background: var(--card); }
.qcard { box-shadow: 0 1px 2px oklch(24% 0.02 75 / 0.05); }
.qcard:hover { box-shadow: 0 6px 18px -10px oklch(24% 0.03 75 / 0.28); }

/* 資格カードのサムネイル */
.qcard { padding: 0; overflow: hidden; border-radius: var(--radius-lg); border-top-width: var(--rule-bold); }
.qcard__thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.qcard__in { display: block; padding: var(--space-md) var(--space-lg) var(--space-lg); }

/* トップの帯（レール） */
.rail { padding-block: var(--space-lg) 0; }
.rail__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-sm) var(--space-md);
  border-bottom: var(--rule-bold) solid var(--ink);
  padding-bottom: var(--space-xs); margin-bottom: var(--space-md);
}
.rail__head h2 { font-size: var(--text-xl); }
.rail__head h2::before {
  content: ""; display: inline-block; width: 0.5em; height: 0.5em;
  background: var(--pop); border-radius: 3px; margin-inline-end: 0.45em;
  transform: rotate(45deg) translateY(-0.04em);
}
.rail__head p { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.rail__more { margin-inline-start: auto; font-size: var(--text-sm); font-weight: 700; white-space: nowrap; }
.rail__more a { color: var(--accent-deep); }

/* トップのヒーロー */
.tophero {
  padding-block: clamp(2rem, 6vw, 3.5rem) var(--space-xl);
}
.tophero h1 {
  font-size: var(--text-display-s); line-height: 1.24;
  margin-bottom: var(--space-md); max-width: 17em;
}
.tophero h1 em { font-style: normal; color: var(--accent-deep); }
.tophero p { max-width: var(--measure); font-size: var(--text-md); color: var(--ink-2); }
.tophero__nums {
  display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-2xl);
  margin-top: var(--space-lg);
}
.tophero__nums div { }
.tophero__nums dt { font-size: var(--text-xs); color: var(--ink-3); letter-spacing: 0.06em; }
.tophero__nums dd {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-2xl); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.tophero__nums dd small { font-size: 0.45em; color: var(--ink-3); font-family: var(--font-body); font-weight: 400; }

/* ================================================================
   v2 やわらかい仕様（note寄り）
   ================================================================ */

/* --- レールの頭：太罫をやめ、大きめの見出し＋説明だけ --- */
.rail__head { border-bottom: 0; padding-bottom: 0; margin-bottom: var(--space-sm); }
.rail__head h2 { font-size: var(--text-xl); }
.rail__head p { color: var(--ink-3); }

/* --- 資格カード：枠線をやめて影で浮かせる --- */
.qcard {
  border: 0; border-top: 0; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
}
.qcard:hover { box-shadow: var(--shadow-2); border-color: transparent; }
.qcard__cat { font-size: var(--text-xs); }
.qcard__in { padding: var(--space-md) var(--space-lg) var(--space-lg); }
.qcard h3 { font-size: var(--text-md); line-height: 1.5; }

/* --- 記事フィード：行からカードへ（note のタイムライン風） --- */
.feed { border-top: 0; display: grid; gap: var(--space-sm); }
.feed__row {
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--card); border: 0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: var(--space-md) var(--space-lg);
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.feed__row:hover { box-shadow: var(--shadow-2); }
.feed__row:hover .feed__title { text-decoration: none; color: var(--accent-deep); }
.feed__date { grid-row: auto; }
.feed__body { grid-column: 1; }
.feed__title { font-size: var(--text-md); }
.feed__meta {
  display: flex; align-items: center; gap: 0.5em;
  font-size: var(--text-xs); color: var(--ink-3); margin-top: var(--space-xs);
}
.feed__meta img { width: 20px; height: 20px; border-radius: 50%; }
@media (min-width: 44rem) {
  .feed__row { grid-template-columns: minmax(0, 1fr) auto; }
  .feed__date { display: none; }   /* 日付はメタ行に出すので列を畳む */
}

/* --- トップの挨拶（人の声で始める） --- */
.hello {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: var(--text-sm); color: var(--ink-2); margin-bottom: var(--space-md);
}
.hello img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.tophero h1 { font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.6rem); }
.tophero__nums { gap: var(--space-md) var(--space-xl); }
.tophero__nums dd { font-size: var(--text-xl); }

/* --- 記事ページ：note の読み味 --- */
.article h1 { font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.1rem); line-height: 1.45; }
.article__body { font-size: 1.0625rem; }
.byline {
  display: flex; align-items: center; gap: var(--space-sm);
  margin-top: var(--space-md); font-size: var(--text-sm);
}
.byline img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.byline b { display: block; line-height: 1.4; }
.byline span { color: var(--ink-3); font-size: var(--text-xs); }
.article__body h2 { border-bottom: 0; padding-bottom: 0; }
.article__body h2::before {
  content: ""; display: inline-block; width: 0.55em; height: 0.55em;
  border-radius: 3px; background: var(--accent); margin-inline-end: 0.4em;
}
.toc { border: 0; background: var(--paper-2); }

/* --- 書いている人（記事末尾のプロフィール） --- */
.author {
  display: flex; gap: var(--space-md); align-items: flex-start;
  background: var(--card); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1); padding: var(--space-lg);
  max-width: var(--measure); margin-top: var(--space-2xl);
}
.author img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.author b { display: block; margin-bottom: var(--space-2xs); }
.author p { font-size: var(--text-sm); color: var(--ink-2); margin: 0; }
.author a { color: var(--accent-deep); }

/* --- 重い黒罫の撤去（工程・パネル・統計） --- */
.panel { border-top: var(--rule-hair) solid var(--rule); }
.stage { border-top: var(--rule-hair) solid var(--rule); }
.statstrip { border-top: 0; gap: var(--space-sm); }
.statstrip > div {
  border: 0; background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1); padding: var(--space-md);
}
.proof { border: 0; box-shadow: var(--shadow-1); border-radius: var(--radius-lg); }
.linkcard { border-color: var(--rule); box-shadow: var(--shadow-1); border-radius: var(--radius-lg); }
.linkcard:hover { box-shadow: var(--shadow-2); }
.drill__setup { border-color: var(--rule); box-shadow: var(--shadow-1); border-radius: var(--radius-xl); }
.card { border-color: var(--rule); box-shadow: var(--shadow-2); }
.lane { border-color: var(--rule); }
.ladder__join { border-width: var(--rule-hair); border-color: var(--rule-strong); border-radius: var(--radius-lg); }

/* ================================================================
   スマホ圧縮パス：読む系以外は縦を徹底的に詰める
   ================================================================ */
@media (max-width: 47.99rem) {
  /* セクション余白を半分に */
  .section { padding-block: var(--space-xl); }
  .rail { padding-block: var(--space-lg) 0; }
  .rail__head { margin-bottom: var(--space-sm); }

  /* トップ：挨拶＋見出しをコンパクトに、数字は1行帯 */
  .tophero { padding-block: var(--space-md) var(--space-sm); }
  .tophero h1 { font-size: 1.35rem; margin-bottom: var(--space-xs); }
  .tophero > p { font-size: var(--text-sm); margin-bottom: var(--space-sm); }
  .tophero > p br { display: none; }
  .hello { margin-bottom: var(--space-xs); }
  .hello img { width: 30px; height: 30px; }
  .tophero__nums { gap: var(--space-lg); margin-top: var(--space-xs); }
  .tophero__nums dt { font-size: 0.6875rem; }
  .tophero__nums dd { font-size: var(--text-md); }

  /* 資格カード：サムネをやめて1行リストに（縦コスト1/4） */
  .qgrid { gap: var(--space-xs); }
  .qcard__thumb { display: none; }
  .qcard { border-radius: var(--radius-lg); border-inline-start: 4px solid var(--accent); }
  .qcard__in { padding: var(--space-sm) var(--space-md); }
  .qcard__cat { margin-bottom: 0; font-size: 0.6875rem; }
  .qcard h3 { font-size: var(--text-base); margin-bottom: 2px; }
  .qcard p { display: none; }
  .qcard__n { font-size: 0.6875rem; }

  /* 記事フィード：説明文を1行に */
  .feed__row { padding: var(--space-sm) var(--space-md); }
  .feed__desc { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

  /* ガイドページの頭 */
  .stagehead, .statlead, .opening { padding-block: var(--space-lg) var(--space-md); }
  .statlead__fig { font-size: clamp(2.6rem, 14vw, 4rem); }
}

@media (max-width: 47.99rem) {
  /* トップ：思想セクションはPCだけ。フィードは3本まで */
  .rail--pc { display: none; }
  body.is-home .feed .feed__row:nth-child(n+4) { display: none; }

  /* フッターを名刺サイズに（出典列は隠し、サイト内はインラインに） */
  .colophon { padding-block: var(--space-lg); font-size: 0.6875rem; }
  .colophon__grid { gap: var(--space-sm); }
  .colophon__grid > div:nth-child(2) { display: none; }
  .colophon__grid > div:first-child p:last-of-type { display: none; }
  .colophon__grid > div:nth-child(3) h2 { display: none; }
  .colophon__grid > div:nth-child(3) ul {
    display: flex; flex-wrap: wrap; gap: 2px 14px;
  }
  .colophon__meta { margin-top: var(--space-sm); padding-top: var(--space-xs); }
  .colophon__meta br { display: none; }
}

/* ================================================================
   トップ v3 — きょうの一問ヒーロー＋写真モザイク＋白帯
   ================================================================ */
.home-hero { padding-block: clamp(0.9rem, 2.2vw, 1.5rem) clamp(1rem, 2.4vw, 1.75rem); }
.home-hero__grid {
  display: grid; gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 56rem) {
  .home-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-xl); }
}
.home-hero__copy h1 {
  font-size: clamp(1.55rem, 1.05rem + 2.6vw, 2.7rem);
  line-height: 1.3; letter-spacing: 0.005em;
  margin-bottom: var(--space-xs); max-width: 15em;
}
.home-hero__copy h1 em {
  font-style: normal; color: var(--pop-deep);
  background: linear-gradient(transparent 62%, var(--mark) 62%);
  padding-inline: 0.04em;
}
.home-hero__lede { color: var(--ink-2); max-width: 30em; margin-bottom: var(--space-xs); }
.home-facts { font-size: var(--text-sm); color: var(--ink-3); margin-bottom: var(--space-sm); }
.home-hero__acts { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-sm); }
.home-sig {
  display: flex; align-items: center; gap: 0.5em;
  font-size: var(--text-xs); color: var(--ink-3); margin: 0;
}
.home-sig img { border-radius: 50%; }
.home-sig a { color: var(--accent-deep); }

/* --- きょうの一問カード --- */
.daily {
  background: var(--card); border-radius: var(--radius-xl);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-2);
  padding: var(--space-lg);
  max-width: 26rem; width: 100%;
  justify-self: center;
}
@media (min-width: 56rem) {
  .daily { transform: rotate(-1.2deg); justify-self: end; }
}
.daily__k {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm);
  font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.08em;
  color: var(--accent-deep); margin-bottom: var(--space-sm);
}
.daily__k span { font-weight: 400; letter-spacing: 0.02em; color: var(--ink-3); }
.daily__q {
  font-size: var(--text-md); line-height: 1.85; font-weight: 500;
  margin-bottom: var(--space-md); min-height: 4.6em;
}
.daily__acts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.daily__acts .btn[data-v="o"] { border-color: var(--ok); color: var(--ok); }
.daily__acts .btn[data-v="x"] { border-color: var(--ng); color: var(--ng); }
.daily__verdict { font-size: var(--text-md); margin-bottom: var(--space-xs); }
.daily__verdict .dv-ok { color: var(--ok); margin-inline-end: 0.4em; }
.daily__verdict .dv-ng { color: var(--ng); margin-inline-end: 0.4em; }
.daily__ex {
  font-size: var(--text-sm); color: var(--ink-2); line-height: 1.85;
  margin-bottom: var(--space-md);
  max-height: 11em; overflow-y: auto;
}
@media (prefers-reduced-motion: reduce) { .daily { transform: none; } }

/* --- 白帯 --- */
.band {
  background: linear-gradient(180deg, var(--mint-wash), var(--card) 62%);
  padding-block: clamp(1.1rem, 2.5vw, 1.6rem);
  border-block: var(--rule-hair) solid var(--rule);
}
.band .qcard { box-shadow: var(--shadow-1); background: var(--paper); }

/* --- 写真モザイク（PCのみ。スマホは既存の行リストに畳まれる） --- */
@media (min-width: 56rem) {
  .qgrid--mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
  }
  .qgrid--mosaic .qcard--big { grid-row: span 2; display: flex; flex-direction: column; }
  .qgrid--mosaic .qcard--big .qcard__thumb {
    aspect-ratio: auto; flex: 1; min-height: 14rem; height: auto; object-fit: cover;
  }
  .qgrid--mosaic .qcard--big .qcard__in { flex: none; }
  .qgrid--mosaic .qcard--big h3 { font-size: var(--text-lg); }
}
.qcard--soonbox { cursor: default; }
.qcard--soonbox:hover { transform: none; box-shadow: var(--shadow-1); }
.qcard--soonbox .qcard__cat { color: var(--ink-3); }

/* --- 思想は1行だけ --- */
.home-phil {
  margin-top: var(--space-lg);
  font-size: var(--text-sm); color: var(--ink-3);
  max-width: var(--measure);
}
.home-phil a { color: var(--accent-deep); }

/* --- スマホ --- */
@media (max-width: 47.99rem) {
  .home-hero { padding-block: var(--space-md) var(--space-lg); }
  .home-hero__grid { gap: var(--space-md); }
  .home-hero__lede { display: none; }
  .home-facts { margin-bottom: var(--space-sm); }
  .home-hero__acts { display: none; }   /* 一問カードと下部タブがCTAを兼ねる */
  .daily { max-width: none; padding: var(--space-md); box-shadow: var(--shadow-1); }
  .daily__q { min-height: 0; font-size: var(--text-base); }
  .qgrid--mosaic .qcard__thumb { display: none; }
  .home-phil { display: none; }
  .band { padding-block: var(--space-lg); }
}


/* ================================================================
   ポップ化 2026-08-26（参照: brush-up.jp の2トーン, jpsk.jp のチップ物量）
   ================================================================ */
.factchips {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-xs);
  margin: 0 0 var(--space-sm); padding: 0;
  font-variant-numeric: tabular-nums;
}
.factchips li {
  font-size: var(--text-xs); font-weight: 700; color: var(--ink-2);
  background: var(--card); border-radius: 999px; padding: 0.34em 0.95em;
  box-shadow: var(--shadow-1);
}
.factchips li b { color: var(--pop-deep); font-size: 1.2em; margin-inline-end: 1px; }

.vchips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 var(--space-md); }
.vchips a {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: var(--text-xs); font-weight: 800; text-decoration: none;
  color: var(--accent-deep); background: var(--accent-wash);
  border-radius: 999px; padding: 0.4em 0.9em;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.vchips a::before {
  content: ""; width: 0.55em; height: 0.55em; border-radius: 50%;
  background: var(--accent); flex: none;
}
.vchips a:hover { background: var(--accent); color: #fff; }
.vchips a:hover::before { background: #fff; }

.daily__badge {
  background: var(--pop); color: #fff; border-radius: 999px;
  padding: 0.32em 0.9em; letter-spacing: 0.08em; font-weight: 800;
}

body.is-home .btn--primary { background: var(--pop); border-color: var(--pop); color: #fff; }
body.is-home .btn--primary:hover { background: var(--pop-deep); }

/* 記事フィードのサムネイル（読みもの欄のメディア感） */
.feed__thumb {
  width: 76px; height: 76px; object-fit: cover;
  border-radius: var(--radius-md); align-self: center;
}
.feed--thumbs .feed__row { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--space-md); }
.feed--thumbs .feed__body { grid-column: 2; }
.feed--thumbs .feed__tag { grid-column: 3; grid-row: 1; align-self: start; }
@media (max-width: 43.99rem) {
  .feed__thumb { width: 56px; height: 56px; }
  .feed--thumbs .feed__tag { display: none; }
}


/* --- 資格カード: タイトル=ガイドへ（カード全面クリック）、右下=問題集へ直行 --- */
.qcard { position: relative; }
.qcard__t { color: inherit; text-decoration: none; }
.qcard__t::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.qcard__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-xs); flex-wrap: wrap;
  position: relative; z-index: 2;
}
.qcard__go {
  font-size: var(--text-xs); font-weight: 800; text-decoration: none; white-space: nowrap;
  color: var(--accent-deep); background: var(--card);
  border: 1.5px solid var(--accent); border-radius: 999px; padding: 0.24em 0.85em;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.qcard__go:hover { background: var(--accent); color: #fff; }


/* --- 「AI時代に残る、100の資格。」プロジェクトバー --- */
.proj100 {
  display: grid; gap: 0.35rem; text-decoration: none;
  margin: 0 0 var(--space-sm); max-width: 27rem;
}
.proj100__k { font-weight: 800; color: var(--ink); font-size: var(--text-sm); letter-spacing: 0.02em; }
.proj100__k b { color: var(--pop-deep); }
.proj100__bar { height: 8px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.proj100__bar i {
  display: block; height: 100%; border-radius: inherit; min-width: 2.5rem;
  background: linear-gradient(90deg, var(--mint), var(--pop));
}
.proj100__n { font-size: var(--text-xs); color: var(--ink-3); font-weight: 700; }
.proj100:hover .proj100__k { color: var(--pop-deep); }

/* --- ヒーローのスワイプ3問デモ --- */
.demo__stack { position: relative; height: 13.5rem; margin-bottom: var(--space-sm); }
.demo__stack .card { padding: var(--space-md); }
.demo__stack .card__q { font-size: var(--text-base); line-height: 1.8; font-weight: 500; }
.demo__stack .card__foot { margin-top: auto; }
.demo__dots { display: inline-flex; gap: 0.35em; margin-inline-start: auto; }
.demo__dot { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--paper-3); }
.demo__dot.is-now { background: var(--pop); }
.demo__dot.is-done { background: var(--mint); }
.demo__r { font-size: var(--text-sm); line-height: 1.8; margin: 0 0 var(--space-sm); }
.demo__r.is-ok b { color: var(--ok); }
.demo__r.is-ng b { color: var(--ng); }
.demo__score { font-weight: 800; font-size: var(--text-md); margin: 0 0 var(--space-sm); }
.demo__acts { margin-bottom: 0; }
@media (max-width: 47.99rem) {
  .demo__stack { height: 12.5rem; }
}


/* --- デモ: 解答後にカード面へ出す判定スタンプ --- */
.demo__vc {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  border: var(--rule-hair) solid var(--rule-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 var(--rule), 0 14px 30px -18px oklch(21% 0.03 70 / 0.5);
}
.demo__vc b {
  font-size: 2.4rem; font-weight: 900; letter-spacing: 0.08em; line-height: 1.3;
  transform: rotate(-7deg);
  border: 5px solid currentColor; border-radius: var(--radius-md);
  padding: 0.08em 0.45em;
  animation: vc-pop 240ms var(--ease-out);
}
.demo__vc.is-ok b { color: var(--ok); }
.demo__vc.is-ng b { color: var(--ng); }
@keyframes vc-pop {
  from { transform: rotate(-7deg) scale(1.3); opacity: 0; }
  to   { transform: rotate(-7deg) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .demo__vc b { animation: none; } }
