:root {
  --ink: #171a1c;
  --ink-soft: #555d63;
  --paper: #f8f7f2;
  --white: #ffffff;
  --blue: #3158c8;
  --blue-dark: #203e9f;
  --blue-pale: #e7ebfa;
  --coral: #e86449;
  --coral-dark: #bd432e;
  --coral-pale: #fae8e2;
  --gray: #ecedeb;
  --line: #d4d4cf;
  --line-dark: #aeb0ad;
  --content: 1280px;
  --article: 820px;
  --gutter: clamp(22px, 4.25vw, 54px);
  --section-space: clamp(76px, 8vw, 112px);
  --font-gothic: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-gothic);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.search-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
}

.section-shell {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-shell--article {
  width: min(100%, calc(var(--article) + (var(--gutter) * 2)));
}

.section-block {
  padding-block: var(--section-space);
}

.section-kicker {
  display: inline-block;
  margin: 0 0 13px;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.section-heading h2,
.problem-heading h2,
.archive-header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.section-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 34px;
}

.section-more a {
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 0.875rem;
  font-weight: 600;
}

.section-description {
  max-width: 650px;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.9;
}

.section-description--large {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  line-height: 1.55;
}

.section-numbered {
  position: relative;
  overflow: hidden;
}

.section-numbered::after {
  position: absolute;
  z-index: 0;
  top: 18px;
  right: max(28px, calc((100vw - var(--content)) / 2 + 28px));
  color: rgba(49, 88, 200, 0.065);
  font-size: clamp(7rem, 15vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}

.section-numbered > * {
  position: relative;
  z-index: 1;
}

.section-numbered--blue {
  border-top: 6px solid var(--blue);
}

.section-numbered--coral {
  border-top: 6px solid var(--coral);
}

.section-numbered--coral::after {
  color: rgba(232, 100, 73, 0.07);
}

/* 背景の連番は、トップページの表示順に合わせてセクションごとに指定する。
   セクションを並び替えたときは、ここも一緒に直す。 */
.home-problems.section-numbered::after {
  content: "02";
}

.home-interviews.section-numbered::after {
  content: "03";
}

.home-series.section-numbered::after {
  content: "04";
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid currentColor;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

.button--dark {
  border-color: var(--ink);
  border-bottom: 4px solid var(--coral);
  background: var(--ink);
  color: var(--white);
}

.button--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.editor-note,
.empty-state {
  padding: 24px;
  border: 1px dashed var(--line-dark);
  background: var(--white);
  color: var(--ink-soft);
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 242, 0.98);
	box-shadow: 0 0 0 rgba(23, 26, 28, 0);
	transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 8px 28px rgba(23, 26, 28, 0.08);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(320px, 410px) 1fr 178px;
  gap: 18px;
  align-items: center;
  width: min(100%, var(--content));
  min-height: 124px;
  margin-inline: auto;
  padding-inline: var(--gutter);
	transition: min-height 0.25s ease;
}

.site-brand {
  display: block;
  min-width: 0;
}

.site-brand img {
  width: min(100%, 385px);
  margin-left: -13px;
	transition: width 0.25s ease;
}

.site-brand__text {
  display: block;
  margin-top: 2px;
  color: #62676b;
  letter-spacing: 0.01em;
  line-height: 1.5;
  transition: margin 0.25s ease, opacity 0.2s ease;
}

.site-brand__text strong,
.site-brand__text small {
  display: block;
}

.site-brand__text strong {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.site-brand__text small {
  margin-top: 0;
  color: #62676b;
  font-size: 0.75rem;
  white-space: nowrap;
}

@media (min-width: 821px) {
	.site-header.is-scrolled .site-header__inner {
		min-height: 82px;
	}

	.site-header.is-scrolled .site-brand img {
		width: min(100%, 285px);
		margin-left: -9px;
	}

	.site-header.is-scrolled .site-brand__text {
		height: 0;
		margin-top: 0;
		opacity: 0;
		overflow: hidden;
	}
}

.primary-nav__list,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav__list {
  gap: clamp(18px, 2vw, 30px);
}

.primary-nav__list {
  justify-content: flex-end;
}

.primary-nav a {
  display: inline-block;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}

@media (min-width: 821px) {
  .primary-nav a:hover {
    color: var(--blue);
    border-bottom-color: var(--blue);
  }
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom: 2px solid currentColor;
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 43px;
  border: 1px solid #9b9da0;
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 650;
}

.search-toggle > span:first-child {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.menu-toggle {
  display: none;
}

.header-search {
  position: fixed;
  z-index: 120;
  inset: 0;
  background: rgba(23, 26, 28, 0.94);
}

.header-search__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(100% - 40px, 800px);
  min-height: 100%;
  margin: auto;
}

.search-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.search-field {
  min-width: 0;
  flex: 1;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
}

.search-submit,
.header-search__close {
  min-height: 56px;
  padding: 0 20px;
  border: 1px solid var(--white);
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}

.header-search__close {
  background: transparent;
}

/* Homepage latest */
.home-latest {
  padding-top: clamp(34px, 4vw, 48px);
  padding-bottom: clamp(72px, 8vw, 105px);
}

.editorial-news {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: 24px;
}

.lead-article,
.support-article {
  min-width: 0;
  border-top: 1px solid var(--line-dark);
  padding-top: 12px;
}

.lead-article__image,
.support-article__image,
.series-card__visual {
  display: block;
  overflow: hidden;
}

.lead-article__image {
  box-shadow: -8px 8px 0 var(--blue);
}

.lead-article__image img {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transition: transform 0.4s ease;
}

.lead-article__image:hover img,
.support-article__image:hover img,
.series-card__visual:hover img {
  transform: scale(1.02);
}

.story-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 19px 0 12px;
}

.story-labels a {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid #9aace4;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1;
}

.story-labels a:nth-child(2) {
  border-color: #e6a99c;
  color: var(--coral-dark);
}

.lead-article h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.52;
}

.lead-article > p {
  max-width: 680px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.9;
}

.lead-article footer,
.support-article footer,
.series-card footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  color: #6b7277;
  font-size: 0.8125rem;
}

.lead-article footer a,
.support-article footer a,
.series-card footer a {
  color: var(--ink);
  font-weight: 650;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 17px;
}

.support-article {
  display: flex;
  flex-direction: column;
}

.support-article__image img {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  /* 生成サムネは分類ごとの色で描いている。彩度を落とすと色分けが効かなくなるため、
     写真向けの補正はかけない。 */
  transition: transform 0.4s ease;
}

/* ------------------------------------------------------------------
   アイキャッチの枠線

   紙色を背景にしたサムネ（イラスト入りのもの）は、ページの地色と同じため
   境目が消える。枠線は画像に焼き込まず、CSSで外側に描く。
   焼き込むとテーマ側の中央クロップで端が切れてしまうため。
   ------------------------------------------------------------------ */

.lead-article__image,
.support-article__image,
.article-sidebar-card__image,
.interview-feature__image {
  border: 1px solid var(--line);
}

.support-article .story-labels {
  margin: 14px 0 9px;
}

.support-article h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.62;
}

.support-article footer {
  margin-top: auto;
  padding-top: 14px;
}

/* Interviews */
.home-interviews {
  background: var(--gray);
}

.home-interviews .section-kicker {
  color: var(--blue);
}

.interview-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 0.93fr);
  gap: clamp(38px, 5.2vw, 68px);
  align-items: center;
}

.interview-feature__image {
  box-shadow: -12px 12px 0 var(--blue);
}

.interview-feature__image img {
  width: 100%;
  aspect-ratio: 1.27 / 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.interview-feature__type {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.interview-feature h3 {
  margin: 0 0 20px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.46;
}

.interview-feature__copy > p:not(.interview-feature__type) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 2;
}

.interview-feature__person {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #c8c9c7;
}

.interview-feature__person span,
.interview-feature__person strong {
  display: block;
}

.interview-feature__person span {
  color: var(--blue);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.interview-feature__person strong {
  margin-top: 4px;
  font-size: 1.25rem;
}

.circle-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 27px;
  font-size: 0.875rem;
  font-weight: 650;
}

.circle-link span {
  display: grid;
  width: 40px;
  height: 40px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  place-items: center;
}

.interview-list,
.article-grid,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 20px;
  margin-top: 58px;
  padding-top: 34px;
  border-top: 1px solid #c9cac8;
}

/* Series */
.home-series {
  background: var(--white);
}

.home-series .section-kicker {
  color: var(--coral-dark);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.series-card {
  border: 1px solid var(--line);
  background: var(--paper);
}

.series-card__visual {
  position: relative;
}

.series-card__visual img {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.8);
  transition: transform 0.4s ease;
}

.series-card__number {
  position: absolute;
  top: 18px;
  left: 20px;
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.series-card__copy {
  padding: 25px 23px 23px;
}

.series-card h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.45;
}

.series-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.85;
}

.series-card footer {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

/* Problem finder */
.home-problems {
  background: var(--white);
}

.problem-heading {
  margin-bottom: 40px;
}

.problem-heading > div {
  max-width: 760px;
}

.problem-heading h2 + p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.9;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.problem-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 24px;
  border-top: 4px solid var(--blue);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.problem-card:nth-child(even) {
  background: #f4f4f0;
}

.problem-card:hover {
  background: var(--blue-pale);
}

.problem-card--pricing,
.problem-card--profit,
.problem-card--workstyle {
  border-top-color: var(--coral);
}

.problem-card > span {
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.problem-card--pricing > span,
.problem-card--profit > span,
.problem-card--workstyle > span {
  color: var(--coral-dark);
}

.problem-card h3 {
  margin: 45px 0 12px;
  font-size: 1.45rem;
  font-weight: 650;
  line-height: 1.45;
}

.problem-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.8;
}

.problem-card strong {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.problem-card i {
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-style: normal;
  place-items: center;
}

/* Books homepage panel */
.home-books {
  border-top: 6px solid var(--coral);
  background: var(--gray);
}

.books-panel {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
  min-height: 520px;
  border: 1px solid #c9cac7;
  background: var(--paper);
}

.books-panel__visual {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 520px;
  padding: 46px;
  background: radial-gradient(circle at 30% 20%, #4a72e0 0%, var(--blue) 45%, var(--blue-dark) 100%);
  place-items: center;
}

.books-panel__visual::after {
  content: "4 BOOKS";
  position: absolute;
  bottom: 20px;
  right: 24px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.22em;
}

.books-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 420px;
  place-items: center;
}

.books-stack img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  transition: transform 0.25s ease;
}

/* 4冊を少しずつ重ねて回転させ、平積みの「束」に見せる */
.books-stack img:nth-child(1) { transform: rotate(-6deg) translate(6px, 10px); z-index: 1; }
.books-stack img:nth-child(2) { transform: rotate(4deg) translate(-8px, -6px); z-index: 2; }
.books-stack img:nth-child(3) { transform: rotate(3deg) translate(10px, -10px); z-index: 3; }
.books-stack img:nth-child(4) { transform: rotate(-4deg) translate(-6px, 4px); z-index: 4; }

.books-panel__visual:hover .books-stack img:nth-child(1) { transform: rotate(-8deg) translate(2px, 12px); }
.books-panel__visual:hover .books-stack img:nth-child(2) { transform: rotate(6deg) translate(-12px, -8px); }
.books-panel__visual:hover .books-stack img:nth-child(3) { transform: rotate(5deg) translate(14px, -12px); }
.books-panel__visual:hover .books-stack img:nth-child(4) { transform: rotate(-6deg) translate(-10px, 6px); }

.books-panel__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 62px);
}

.books-panel__copy .section-kicker {
  align-self: flex-start;
  color: var(--coral-dark);
}

.books-panel__copy h2 {
  margin: 6px 0 18px;
  font-size: clamp(1.65rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.4;
  white-space: nowrap;
}

.books-panel__copy > p:not(.section-kicker) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.95;
}

.books-panel__copy > strong {
  margin-top: 18px;
  font-size: 0.875rem;
}

.books-panel__copy .button {
  align-self: flex-start;
  margin-top: 28px;
}

/* 起点価格。記事末の .article-next__book-price と同じ見え方に揃える。
   .books-panel__copy > p:not(.section-kicker) と同じ詳細度なので、必ずこの順序を保つこと。 */
.books-panel__copy > p.books-panel__price {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.7;
}

/* 署名ブロック（WRITTEN BY）。仕様は ドキュメント/商材セクション_署名ブロック実装仕様.md
   淡いブルーは仕様書では #eef1fb 直値だったが、既存の --blue-pale(#e7ebfa) を使う。 */
.books-byline {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 30px;
  padding: 0 22px 0 18px;
  background: var(--blue-pale);
  border-left: 5px solid var(--blue);
  min-height: 112px;
  overflow: hidden;
}

.books-byline img {
  width: 146px;
  height: auto;
  flex: 0 0 auto;
  margin: -26px 0 0;          /* 上にはみ出させて平板さを消す */
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.16));
}

.books-byline__text {
  padding: 16px 0 18px;
  min-width: 0;
}

.books-byline__text em {
  display: block;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 5px;
}

.books-byline__text b {
  display: block;
  font-size: 16px;
  letter-spacing: 0.02em;
  white-space: nowrap;         /* 名前を折り返させない */
}

.books-byline__text b i {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-soft, #555d63);
  font-weight: 600;
  margin-left: 8px;
}

.books-byline__text span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft, #555d63);
  font-size: 12.5px;
  line-height: 1.65;
}

/* 狭い幅。横並びのままだと本文が幅134pxまで潰れて7行になる（375pxで実測）。
   人物を回り込みにして、顔と名前の並びは保ちつつ説明文を全幅に流す。
   ふりがなは名前と同じ行だと溢れるので下の行へ落とす。 */
@media (max-width: 560px) {
  .books-byline {
    display: block;
    padding: 0 16px 16px 14px;
  }

  .books-byline img {
    float: left;
    width: 96px;
    margin: -14px 12px 0 0;
  }

  .books-byline__text {
    padding: 14px 0 0;
  }

  .books-byline__text b i {
    display: block;
    margin-left: 0;
    margin-top: 2px;
  }
}

/* 教材ブロック直下の固定3本（買う前に読む）。カードは .support-article を使い回す。
   表示する記事は front-page.php の $books_read_slugs で固定している。 */
.books-reads {
  margin-top: 34px;
}

.books-reads__label {
  display: inline-block;
  margin: 0 0 16px;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  color: var(--coral);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.books-reads__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px 17px;
}

@media (max-width: 820px) {
  .books-reads__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .books-reads__grid {
    grid-template-columns: 1fr;
  }
}

.home-about {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.home-about__inner {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 36px;
  align-items: center;
  min-height: 150px;
  padding-block: 32px;
}

.home-about h2 {
  margin: 0;
  font-size: 1.25rem;
}

.home-about p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.home-about a {
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 0.875rem;
  font-weight: 650;
  white-space: nowrap;
}

/* About */
.about-page__hero {
  padding-top: clamp(72px, 9vw, 132px);
  padding-bottom: clamp(74px, 10vw, 142px);
}

.about-page__hero .section-kicker,
.about-page__definition .section-kicker,
.about-page__operator .section-kicker {
  color: var(--blue);
}

.about-page__hero h1 {
  max-width: 920px;
  margin: 16px 0 24px;
  font-size: clamp(1.6rem, 3vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.about-page__hero > p:last-child {
  max-width: 780px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.9;
}

.about-page__definition {
  border-top: 6px solid var(--blue);
  background: var(--white);
}

.about-page__definition-grid,
.about-page__editorial-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 8vw, 120px);
}

.about-page__definition h2,
.about-page__editorial h2,
.about-page__operator h2 {
  margin: 10px 0 0;
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.about-page__definition-copy p,
.about-page__editorial-grid > div:last-child > p,
.about-page__operator p {
  color: var(--ink-soft);
  line-height: 2;
}

.about-page__definition-copy .about-page__lead {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  font-weight: 700;
  line-height: 1.8;
}

.about-page__words {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(54px, 8vw, 96px);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line);
}

.about-page__words article {
  min-height: 300px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-page__words span {
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 750;
}

.about-page__words h3 {
  margin: 54px 0 14px;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  letter-spacing: -0.01em;
}

.about-page__words p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.9;
}

.about-page__editorial {
  border-top: 6px solid var(--coral);
  background: var(--gray);
}

.about-page__editorial .section-kicker {
  color: var(--coral-dark);
}

.about-page__editorial ul {
  display: grid;
  gap: 10px;
  padding: 22px 0 0;
  margin: 26px 0 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.about-page__editorial li::before {
  content: "—";
  margin-right: 10px;
  color: var(--coral-dark);
}

.about-page__operator {
  background: var(--white);
}

.about-page__operator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: clamp(45px, 9vw, 140px);
  align-items: end;
}

.about-page__operator-grid > div {
  max-width: 720px;
}

.about-page__operator .button {
  margin-top: 20px;
}

.about-page__operator-grid > strong {
  color: var(--blue);
  font-size: clamp(4.5rem, 9vw, 8rem);
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.about-page__operator-grid > strong span {
  display: block;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.5;
}

.about-page__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-block: 30px;
  border-top: 1px solid var(--line);
}

.about-page__policies a {
  border-bottom: 1px solid currentColor;
  font-size: 0.875rem;
  font-weight: 650;
}

/* Footer */
.site-footer {
  border-top: 6px solid var(--blue);
  background: var(--gray);
  color: var(--ink);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(560px, 1.1fr);
  gap: clamp(50px, 8vw, 110px);
  width: min(100%, var(--content));
  margin-inline: auto;
  padding: clamp(64px, 8vw, 104px) var(--gutter);
}

.site-footer__brand img {
  width: min(100%, 420px);
  margin-left: -13px;
}

.site-footer__brand strong {
  display: block;
  margin-top: 22px;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.site-footer__brand p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.site-footer__navigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.site-footer__navigation nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__navigation p {
  width: 100%;
  margin: 0 0 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.site-footer__navigation a {
  padding: 6px 0;
  font-size: 0.9375rem;
  font-weight: 650;
  transition: color 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) {
  .site-footer__navigation a:hover {
    color: var(--blue);
    transform: translateX(3px);
  }
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  width: min(100%, var(--content));
  margin-inline: auto;
  padding: 22px var(--gutter) 26px;
  border-top: 1px solid var(--line-dark);
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.site-footer__bottom a {
  border-bottom: 1px solid transparent;
}

.site-footer__bottom a:hover {
  border-bottom-color: currentColor;
}

/* Archives */
.archive-header {
  padding-top: clamp(70px, 8vw, 110px);
  padding-bottom: 45px;
  border-bottom: 1px solid var(--line);
}

.archive-header--blue {
  border-top: 6px solid var(--blue);
}

.archive-header--coral {
  border-top: 6px solid var(--coral);
}

.archive-description {
  max-width: 680px;
  margin-top: 18px;
  color: var(--ink-soft);
}

.archive-header .search-form {
  max-width: 680px;
  margin-top: 30px;
}

.archive-header .search-submit,
.empty-state .search-submit {
  border-color: var(--ink);
  background: var(--ink);
}

.archive-layout {
  padding-top: 56px;
  padding-bottom: var(--section-space);
}

.archive-grid,
.article-grid {
  margin-top: 0;
  padding-top: 0;
  border: 0;
}

.archive-grid .support-article__image img,
.article-grid .support-article__image img {
  aspect-ratio: 1.35 / 1;
}

.navigation.pagination,
.page-numbers {
  margin-top: 50px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid var(--line-dark);
  background: var(--white);
  place-items: center;
}

.page-numbers.current {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

/* Article detail */
.article-hero {
  padding-top: clamp(56px, 7vw, 90px);
  padding-bottom: 45px;
}

.breadcrumbs {
  display: flex;
  overflow: hidden;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  color: #6d7479;
  font-size: 0.75rem;
  white-space: nowrap;
}

.breadcrumbs > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.9vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.article-summary {
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 2;
}

.sponsor-notice {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-left: 5px solid var(--coral);
  background: var(--coral-pale);
}

.sponsor-notice p {
  margin: 5px 0 0;
  font-size: 0.875rem;
}

.article-byline {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-byline__author {
  display: flex;
  gap: 12px;
  align-items: center;
}

.article-byline__author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.article-byline__author span,
.article-byline__author strong {
  display: block;
}

.article-byline__author span,
.article-byline__dates {
  color: #6d7479;
  font-size: 0.75rem;
}

.article-byline__author strong {
  font-size: 0.875rem;
}

.article-byline__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: flex-end;
}

.article-eyecatch {
  padding-bottom: 40px;
}

.article-eyecatch img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, var(--article)) minmax(240px, 300px);
  gap: clamp(34px, 4.4vw, 72px);
  align-items: start;
  justify-content: center;
  padding-bottom: var(--section-space);
}

/* 見出し・アイキャッチ・本文・記事末CTAをすべて同じ幅の左カラムに置き、
   目次と関連記事は右のレールにまとめる。
   （以前は見出しと本文で横幅が変わり、二段構成に見えていた） */
.article-main {
  min-width: 0;
}

.article-rail {
  min-width: 0;
}

.article-toc {
  padding: 17px 0 20px;
  border-top: 4px solid var(--blue);
  border-bottom: 1px solid var(--line);
}

.article-toc > p {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 750;
}

.article-toc ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.article-toc li + li {
  margin-top: 9px;
}

.article-toc a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.article-toc li.is-sub a {
  padding-left: 12px;
}

.entry-content {
  min-width: 0;
  font-size: 1rem;
  line-height: 2.05;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2 {
  margin: 3.5em 0 1em;
  padding-top: 0.7em;
  border-top: 4px solid var(--blue);
  font-size: clamp(1.1875rem, 1.9vw, 1.4375rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.6;
}

.entry-content h3 {
  margin: 2.6em 0 0.8em;
  padding-left: 13px;
  border-left: 4px solid var(--coral);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.65;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-block: 1.35em;
}

.entry-content a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content blockquote {
  margin: 2.2em 0;
  padding: 22px 24px;
  border-left: 6px solid var(--coral);
  background: var(--coral-pale);
}

/* 本文中の表。狭い画面でははみ出させず、表自体を横スクロールさせる。 */
.entry-content table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 2.2em 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}

.entry-content th,
.entry-content td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: var(--gray);
  font-weight: 700;
  white-space: nowrap;
}

/* 1列目が項目名として機能する表が多いため、行頭セルは軽く色を敷く。 */
.entry-content tbody th {
  background: var(--paper);
}

.entry-content tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.6);
}

/* 左上が空欄の対比表。灰色の塗りだけ外す。罫線は残す（消すと枠が欠けて崩れて見える）。 */
.entry-content thead th:empty {
  background: transparent;
}

.entry-content figure {
  margin-block: 2.4em;
}

.entry-content figcaption {
  margin-top: 8px;
  color: #6d7479;
  font-size: 0.75rem;
  text-align: left;
}

.article-video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 38px;
  background: var(--ink);
}

.article-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.update-note,
.article-sources {
  margin-top: 56px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.update-note p {
  margin-bottom: 0;
}

.article-sources h2 {
  margin-top: 0;
  padding: 0;
  border: 0;
  font-size: 1.25rem;
}

.article-sources ul {
  margin-bottom: 0;
  padding-left: 1.25em;
}

.article-sidebar {
  position: static;
}

.article-sidebar__section {
  padding-top: 17px;
  border-top: 4px solid var(--blue);
}

.article-sidebar__kicker {
  margin: 0 0 3px;
  color: var(--blue);
  font-size: 0.6875rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.article-sidebar__section > h2,
.article-sidebar__book h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.45;
}

.article-sidebar__stories {
  margin-top: 18px;
}

.article-sidebar-card + .article-sidebar-card {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-sidebar-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: 10px;
  background: var(--gray);
}

.article-sidebar-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-sidebar-card h3 {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
}

@media (hover: hover) {
  .article-sidebar-card:hover img {
    transform: scale(1.025);
  }

  .article-sidebar-card:hover h3 {
    color: var(--blue);
  }
}

.article-sidebar__book {
  margin-top: 32px;
  padding: 21px;
  border-top: 5px solid var(--coral);
  background: var(--gray);
}

.article-sidebar__book p,
.article-sidebar__book span {
  display: block;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.7;
}

.article-sidebar__book h2 {
  margin: 7px 0;
}

.article-sidebar__book a {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 0.8125rem;
  font-weight: 700;
}

.article-book-cta {
  padding-block: 52px;
  border-top: 6px solid var(--coral);
  background: var(--gray);
}

.article-book-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.article-book-cta p {
  margin: 0;
  color: var(--coral-dark);
  font-size: 0.8125rem;
  font-weight: 750;
}

.article-book-cta h2 {
  margin: 5px 0;
  font-size: 2rem;
}

.article-book-cta span {
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.article-related {
  background: var(--white);
}

.author-profile {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: var(--section-space);
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line);
}

.author-profile img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.author-profile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.author-profile h2 {
  margin: 3px 0 8px;
  font-size: 1.35rem;
}

.author-profile a {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 1px solid currentColor;
  font-size: 0.8125rem;
  font-weight: 650;
}

.standard-page,
.not-found {
  padding-top: clamp(70px, 8vw, 110px);
  padding-bottom: var(--section-space);
}

/* Contact */
.contact-page {
  padding-top: clamp(70px, 8vw, 110px);
  padding-bottom: var(--section-space);
}

.contact-page__header {
  padding-bottom: clamp(45px, 6vw, 76px);
  border-bottom: 1px solid var(--line-dark);
}

.contact-page__header h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.15;
}

.contact-page__header > p:last-child {
  max-width: 720px;
  margin: 23px 0 0;
  color: var(--ink-soft);
}

.contact-page__layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(48px, 9vw, 130px);
  padding-top: clamp(55px, 7vw, 90px);
}

.contact-page__guide h2,
.contact-form-panel > h2 {
  margin: 0 0 25px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.contact-page__guide ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-page__guide li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-page__guide li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-page__guide strong,
.contact-page__guide span {
  display: block;
}

.contact-page__guide span,
.contact-page__guide > p {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.75;
}

.contact-page__guide > p {
  margin: 22px 0 0;
}

.contact-form-panel {
  padding: clamp(25px, 4vw, 44px);
  background: var(--white);
}

.contact-form {
  display: grid;
  gap: 24px;
}

.contact-form > label:not(.contact-form__consent) {
  display: grid;
  gap: 7px;
}

.contact-form label > span {
  font-size: 0.875rem;
  font-weight: 700;
}

.contact-form label b {
  margin-left: 6px;
  color: var(--coral-dark);
  font-size: 0.6875rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--paper);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select {
  min-height: 52px;
  padding: 10px 13px;
}

.contact-form textarea {
  min-height: 220px;
  padding: 13px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--blue-pale);
  border-color: var(--blue);
}

.contact-form__consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.contact-form__consent input {
  width: 18px;
  height: 18px;
  margin-top: 5px;
}

.contact-form__consent a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form .button {
  justify-self: start;
  border: 0;
}

.contact-form__honeypot {
  position: absolute;
  left: -10000px;
}

.form-notice {
  margin-bottom: 25px;
  padding: 18px 20px;
  border-left: 5px solid var(--blue);
  background: var(--blue-pale);
}

.form-notice--error {
  border-left-color: var(--coral);
  background: var(--coral-pale);
}

.form-notice p {
  margin: 3px 0 0;
  font-size: 0.875rem;
}

.standard-page > header h1,
.not-found h1 {
  margin: 0 0 42px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.35;
}

.not-found .search-form {
  margin: 35px 0 24px;
}

/* Books page */
.books-hero {
  position: relative;
  overflow: hidden;
  min-height: min(760px, calc(100svh - 124px));
  background: var(--blue);
  color: var(--white);
}

.books-hero__rail {
  position: absolute;
  inset: -8% -10%;
  display: grid;
  gap: 22px;
  align-content: center;
  transform: rotate(-4deg) scale(1.06);
  opacity: 0.42;
}

.books-hero__row {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: bookRail 46s linear infinite;
}

.books-hero__row--2 {
  animation-direction: reverse;
  animation-duration: 54s;
  transform: translateX(-18%);
}

.books-hero__row img {
  width: clamp(150px, 16vw, 240px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

@keyframes bookRail {
  to { transform: translateX(-50%); }
}

.books-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 27, 60, 0.86), rgba(31, 58, 151, 0.48) 56%, rgba(49, 88, 200, 0.3));
}

.books-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: min(760px, calc(100svh - 124px));
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.books-hero__copy > p {
  margin: 0 0 15px;
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.books-hero__copy h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.books-hero__copy > span {
  margin-top: 24px;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.books-hero__copy .button {
  margin-top: 35px;
}

.books-founder {
  background: var(--white);
}

.books-founder__grid {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.books-founder__photo {
  position: sticky;
  top: 28px;
}

.books-founder__photo img {
  width: 100%;
  aspect-ratio: 0.86 / 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.books-founder__copy h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.books-founder__lead {
  margin: 16px 0 0;
  color: var(--coral-dark);
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  font-weight: 700;
  line-height: 1.7;
}

.books-founder__role {
  margin: 7px 0 30px;
  font-size: 0.875rem;
  font-weight: 650;
}

.books-founder__copy h3 {
  margin: 0 0 25px;
  padding-left: 18px;
  border-left: 6px solid var(--blue);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.6;
}

.books-founder__copy > p:not(.section-kicker):not(.books-founder__lead):not(.books-founder__role) {
  margin: 1.3em 0;
  color: var(--ink-soft);
  line-height: 2;
}

.company-proof {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 30px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.company-proof p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.company-proof strong {
  color: var(--blue);
  font-size: 2.5rem;
  line-height: 1;
}

.company-proof strong span {
  display: block;
  max-width: 170px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.5;
}

.company-proof a {
  grid-column: 1 / -1;
  justify-self: start;
  border-bottom: 1px solid currentColor;
  font-size: 0.8125rem;
  font-weight: 650;
}

.book-catalog {
  border-top: 6px solid var(--blue);
  background: var(--paper);
}

.book-detail {
  padding-block: clamp(56px, 7vw, 90px);
  border-top: 1px solid var(--line-dark);
}

.book-detail__grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(35px, 6vw, 80px);
  align-items: start;
}

.book-detail__cover {
  position: sticky;
  top: 28px;
  width: 100%;
  box-shadow: 0 18px 34px rgba(23, 26, 28, 0.13);
}

.book-detail__number {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.book-detail h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.book-detail__summary {
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 2;
}

.book-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.book-detail__meta span {
  padding: 5px 9px;
  border: 1px solid var(--line-dark);
  background: var(--white);
  font-size: 0.75rem;
}

.book-detail__inside {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(200px, 0.7fr);
  gap: 0;
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.book-detail__inside > div,
.book-detail__inside > aside {
  padding: 25px;
}

.book-detail__inside > aside {
  border-left: 1px solid var(--line);
  background: var(--gray);
}

.book-detail__inside h4 {
  margin: 0 0 15px;
  color: var(--coral-dark);
  font-size: 0.875rem;
}

.book-detail__inside ol,
.book-detail__inside ul {
  padding-left: 1.25em;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.8;
}

.book-detail__inside li + li {
  margin-top: 8px;
}

.book-detail__buy {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 25px;
}

.book-detail__buy span {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.bundle-heading {
  margin: 30px 0 22px;
  font-size: 1.7rem;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bundle-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.6fr) minmax(0, 1.4fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
}

.bundle-card h4 {
  margin: 0;
  font-size: 1.35rem;
}

.bundle-card p {
  margin: 8px 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.bundle-card strong,
.bundle-card a {
  display: block;
}

.bundle-card strong {
  color: var(--blue);
  font-size: 1.35rem;
}

.bundle-card a {
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.discord-benefit {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 35px;
  align-items: center;
  margin-top: 55px;
  padding: 30px;
  border: 1px solid var(--blue);
  background: var(--blue-pale);
}

.discord-benefit h3 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.discord-benefit p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.purchase-flow {
  border-top: 6px solid var(--coral);
  background: var(--gray);
}

.purchase-flow h2,
.books-faq h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.purchase-flow > div > p:not(.section-kicker) {
  color: var(--ink-soft);
}

.purchase-flow aside {
  margin: 30px 0;
  padding: 24px;
  background: var(--ink);
  color: var(--white);
}

.purchase-flow aside h3,
.purchase-flow aside p {
  margin: 0;
}

.purchase-flow aside p {
  margin-top: 8px;
  color: #c9cccf;
}

.purchase-flow ol {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: flow;
}

.purchase-flow li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
  counter-increment: flow;
}

.purchase-flow li::before {
  content: "0" counter(flow);
  color: var(--coral-dark);
  font-weight: 800;
}

.purchase-flow li strong,
.purchase-flow li span {
  display: block;
  grid-column: 2;
}

/* 番号は左列に固定する。指定しないと説明文が54pxの番号列へ落ちて崩れる。 */
.purchase-flow li::before {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.purchase-flow li span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.books-faq {
  background: var(--white);
}

.faq-list {
  margin-top: 30px;
  border-top: 1px solid var(--line-dark);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 24px 46px 24px 0;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 8px;
  color: var(--blue);
  font-size: 1.6rem;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 50px 24px 0;
  color: var(--ink-soft);
}

/* Compact desktop */
@media (max-width: 1350px) and (min-width: 1101px) {
  .site-header__inner {
    grid-template-columns: minmax(285px, 335px) 1fr 150px;
    gap: 14px;
  }

  .site-brand img {
    width: min(100%, 330px);
    margin-left: -10px;
  }

  .site-brand__text strong,
  .site-brand__text small {
    font-size: 0.7rem;
  }

  .primary-nav__list {
    gap: 14px;
  }

  .primary-nav a {
    font-size: 0.8125rem;
  }

  .search-toggle {
    font-size: 0.75rem;
  }
}

/* Tablet */
@media (max-width: 1100px) {
  .site-header__inner {
    grid-template-columns: minmax(280px, 350px) 1fr auto;
    min-height: 108px;
  }

  .site-brand__text strong,
  .site-brand__text small {
    font-size: 0.7rem;
  }

  .primary-nav__list {
    gap: 13px;
  }

  .primary-nav a {
    font-size: 0.8125rem;
  }

  .search-toggle {
    width: 44px;
    padding: 0;
  }

  .search-toggle > span:last-child {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
  }

  .editorial-news {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .support-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .support-article h3 {
    font-size: 0.95rem;
  }

  .support-article footer > span:first-child {
    display: none;
  }

  .support-article footer {
    justify-content: flex-end;
  }

  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .books-panel__copy h2 {
    white-space: normal;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__navigation {
    max-width: 720px;
  }

  .article-shell {
    display: block;
  }

  .article-rail {
    position: static;
    margin-top: 56px;
  }

  .article-toc {
    position: static;
    margin-bottom: 45px;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.5fr);
    gap: 36px;
    margin-top: 64px;
  }

  .article-sidebar__stories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .article-sidebar-card + .article-sidebar-card {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .article-sidebar__book {
    align-self: start;
    margin-top: 0;
  }
}

/* Mobile navigation and layouts */
@media (max-width: 820px) {
  html {
    scroll-padding-top: 90px;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto auto;
    min-height: 86px;
  }

  .site-brand img {
    width: min(62vw, 285px);
    margin-left: -8px;
  }

  .site-brand__text {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line-dark);
    background: var(--paper);
  }

  .menu-toggle__label {
    font-size: 0.625rem;
    font-weight: 700;
  }

  .menu-toggle__lines,
  .menu-toggle__lines::before,
  .menu-toggle__lines::after {
    display: block;
    width: 21px;
    height: 2px;
    background: var(--ink);
  }

  .menu-toggle__lines {
    position: relative;
  }

  .menu-toggle__lines::before,
  .menu-toggle__lines::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .menu-toggle__lines::before { top: -6px; }
  .menu-toggle__lines::after { top: 6px; }

  .primary-nav {
    position: fixed;
    z-index: 110;
    top: 86px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 28px var(--gutter);
    background: var(--paper);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav__list {
    display: block;
  }

  .primary-nav li {
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a {
    display: block;
    padding: 18px 0;
    border: 0 !important;
    font-size: 1rem;
  }

  .search-toggle {
    width: 46px;
    height: 46px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    justify-content: flex-start;
  }

  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .interview-feature,
  .books-panel,
  .books-founder__grid,
  .book-detail__grid {
    grid-template-columns: 1fr;
  }

  .interview-feature__image {
    width: calc(100% - 12px);
  }

  .interview-list,
  .article-grid,
  .archive-grid,
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .books-panel__visual,
  .books-panel {
    min-height: auto;
  }

  .books-panel__visual {
    padding: 36px 22px;
  }

  .home-about__inner {
    grid-template-columns: 1fr;
    gap: 13px;
    align-items: start;
  }

  .about-page__definition-grid,
  .about-page__editorial-grid,
  .about-page__operator-grid {
    grid-template-columns: 1fr;
  }

  .about-page__operator-grid > strong {
    margin-top: 20px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__navigation {
    max-width: 620px;
  }

  .site-footer__bottom {
    display: block;
  }

  .site-footer__bottom nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .contact-page__layout {
    grid-template-columns: 1fr;
  }

  .contact-page__guide {
    max-width: 720px;
  }

  .article-sidebar {
    display: block;
  }

  .article-sidebar__book {
    margin-top: 38px;
  }

  .article-byline {
    display: block;
  }

  .article-byline__dates {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .article-book-cta__inner {
    grid-template-columns: 1fr;
  }

  .books-founder__photo,
  .book-detail__cover {
    position: static;
  }

  .books-founder__photo {
    max-width: 520px;
  }

  .book-detail__cover {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .book-detail__inside {
    grid-template-columns: 1fr;
  }

  .book-detail__inside > aside {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .bundle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
    --section-space: 72px;
  }

  body {
    font-size: 15px;
  }

  .about-page__words {
    grid-template-columns: 1fr;
  }

  .about-page__words article {
    min-height: 250px;
  }

  .about-page__words h3 {
    margin-top: 52px;
  }

  .site-footer__navigation {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-sidebar__stories {
    grid-template-columns: 1fr;
  }

  .article-sidebar-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .article-sidebar-card + .article-sidebar-card {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .article-sidebar-card__image {
    margin-bottom: 0;
  }

  .contact-form-panel {
    padding-inline: 20px;
  }

  .contact-form .button {
    width: 100%;
  }

  .site-header__inner {
    gap: 7px;
  }

  .site-brand img {
    width: min(58vw, 230px);
  }

  .menu-toggle,
  .search-toggle {
    width: 42px;
    height: 42px;
  }

  .header-search__inner {
    display: block;
    padding-top: 28vh;
  }

  .header-search__close {
    width: 100%;
    margin-top: 12px;
  }

  .search-form {
    display: block;
  }

  .search-submit {
    width: 100%;
    margin-top: 10px;
  }

  .lead-article__image {
    width: calc(100% - 8px);
  }

  .lead-article h2 {
    font-size: 1.8rem;
    line-height: 1.5;
  }

  .lead-article > p {
    font-size: 0.875rem;
  }

  .support-grid,
  .interview-list,
  .article-grid,
  .archive-grid,
  .series-grid,
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .support-article h3 {
    font-size: 1.1rem;
  }

  .interview-feature h3 {
    font-size: 1.3rem;
  }

  .interview-list {
    margin-top: 42px;
  }

  .problem-card {
    min-height: 250px;
  }

  .problem-card h3 {
    margin-top: 30px;
  }

  .books-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 430px;
  }

  .books-stack img:nth-child(2),
  .books-stack img:nth-child(3),
  .books-stack img:nth-child(4) {
    transform: none;
  }

  .books-panel__copy {
    padding: 34px 24px 38px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .article-hero h1 {
    font-size: clamp(1.85rem, 7.5vw, 2rem);
    line-height: 1.4;
  }

  .article-eyecatch {
    padding-inline: 0;
  }

  .entry-content h2 {
    font-size: 1.25rem;
  }

  .author-profile {
    grid-template-columns: 70px 1fr;
  }

  .author-profile img {
    width: 70px;
    height: 70px;
  }

  .books-hero,
  .books-hero__copy {
    min-height: 640px;
  }

  .books-hero__copy h1 {
    font-size: 1.75rem;
  }

  .books-hero__rail {
    inset: -3% -80%;
  }

  .company-proof,
  .discord-benefit,
  .bundle-card {
    grid-template-columns: 1fr;
  }

  .company-proof strong {
    justify-self: start;
  }

  .book-detail__buy {
    display: block;
  }

  .book-detail__buy .button {
    width: 100%;
  }

  .book-detail__buy span {
    display: block;
    margin-top: 10px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   v0.2.4 追加分
   1. トップページのヒーロー（初見の訪問者への説明）
   2. 課題別アーカイブ（taxonomy-primary_topic.php）
   3. 記事末の次の一手ブロック（single.php）
   ========================================================================== */

/* --- 1. トップページ ヒーロー --- */

.home-hero {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.home-hero__inner {
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(40px, 5vw, 68px);
  max-width: 900px;
}

.home-hero__kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.home-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.home-hero__lead {
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.95;
}

.home-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-hero__proof span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.home-hero__proof strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.home-hero__secondary {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 2px;
}

.home-hero__secondary:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* --- 2. 課題別アーカイブ --- */

.topic-hero {
  padding-top: 34px;
  padding-bottom: clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  max-width: var(--article);
}

.topic-hero__number {
  margin: 22px 0 10px;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.topic-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.topic-hero__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.95;
}

.topic-hero__count {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.topic-layout {
  padding-top: clamp(36px, 4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 56px);
}

/* 課題別ページの教材モジュール（意図の高い訪問者への提案） */
.topic-book {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.topic-book__panel {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.topic-book__visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.topic-book__copy h2 {
  margin: 12px 0 16px;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.5;
}

.topic-book__tagline {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  line-height: 1.9;
}

.topic-book__note {
  margin: 0 0 26px;
  padding-left: 14px;
  border-left: 3px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.85;
}

.topic-book__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.topic-book__price {
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

/* 他の課題への回遊 */
.topic-others__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.topic-others__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  background: var(--white);
  text-decoration: none;
  transition: background 0.2s ease;
}

.topic-others__card:hover {
  background: var(--blue-pale);
}

.topic-others__card.problem-card--pricing,
.topic-others__card.problem-card--profit,
.topic-others__card.problem-card--workstyle {
  border-top-color: var(--coral);
}

.topic-others__card > span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.topic-others__card.problem-card--pricing > span,
.topic-others__card.problem-card--profit > span,
.topic-others__card.problem-card--workstyle > span {
  color: var(--coral-dark);
}

.topic-others__card strong {
  font-size: 1.0625rem;
  font-weight: 650;
}

.topic-others__card em {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-style: normal;
  line-height: 1.75;
}

/* --- 3. 記事末の次の一手 --- */

/* v1.1.0：見出し（READ NEXT／この記事を読んだ方へ）と課題リンクを削除した。
   カードが本文の直後に来るため、2pxの区切り線も外している。
   カード自身が枠線と白背景を持つので、線が2本重なって見えるのを避ける。
   __kicker / h2 / __topic / __link の定義も、使う場所が無くなったので削除した。 */
.article-next {
  margin-top: clamp(48px, 6vw, 72px);
}

.article-next__book {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.article-next__book img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.article-next__book-label {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.article-next__book h3 {
  margin: 0 0 10px;
  font-size: 1.1875rem;
  font-weight: 700;
}

.article-next__book-tagline {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.85;
}

.article-next__book-price {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .topic-book__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-book__visual {
    max-width: 260px;
  }
}

@media (max-width: 600px) {
  .home-hero__proof {
    flex-direction: column;
    gap: 12px;
  }

  .article-next__book {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-next__book img {
    max-width: 180px;
  }
}

/* ==========================================================================
   v0.2.5 タイポグラフィと余白の調整
   見出しがヒーローより大きく、余白が詰まって落ち着かない状態を整える。
   ========================================================================== */

/* トップのヒーロー：ローカランスの語義を一行だけ添える */
.home-hero__note {
  margin: 0 0 30px;
  padding: 12px 16px;
  border-left: 3px solid var(--line-dark);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.home-hero__note strong {
  color: var(--ink);
}

/* トップページではヘッダーのタグラインを隠す（直下のヒーローと重複するため）。
   記事・課題別ページでは、そこが唯一の説明なので残す。 */
body.home .site-brand__text small {
  display: none;
}

/* 本文の行間と段落間を少し広げる */
.entry-content p {
  line-height: 2.05;
}

.entry-content h2 {
  margin-top: 3em;
}

/* 記事末CTA：痛みを言葉にしてから教材を出す */
.article-next__book-pitch {
  margin: 0 0 8px;
  color: var(--coral-dark);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.7;
}

.article-next__book-covers {
  margin: 0 0 20px;
  padding-left: 18px;
}

.article-next__book-covers li {
  margin: 5px 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.75;
}

/* 記事末CTAのボタンは本文リンクの色を継がせない */
.article-next .button--dark,
.article-next .button--dark span {
  color: var(--white);
  text-decoration: none;
}

/* 課題別ページの教材モジュール */
.topic-book__covers {
  margin: 0 0 18px;
  padding-left: 18px;
}

.topic-book__covers li {
  margin: 6px 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.8;
}

.topic-book__copy h2 {
  color: var(--coral-dark);
}

/* 記事下の新着記事 */
.article-recent {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.article-recent__all {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.875rem;
  white-space: nowrap;
}

.article-recent__all:hover {
  color: var(--blue);
}

@media (max-width: 600px) {
  .article-recent .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* アイキャッチは記事幅に寄せて、主役をテキストに戻す */
.article-eyecatch {
  max-width: calc(var(--article) + 120px);
}

.article-eyecatch img {
  max-height: 340px;
}

/* ==========================================================================
   販売ページ：目次＋各章で得られること／付属資料／セットの内訳
   ========================================================================== */

.book-detail__pitch {
  margin: 0 0 14px;
  color: var(--coral-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.75;
}

.book-detail__chapters {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.book-detail__chapters h4,
.book-detail__extras h4 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.book-detail__gaincount {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 500;
}

.chapter-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: chapter;
}

.chapter-list__item {
  padding: 14px 0;
  border-bottom: 1px solid var(--paper);
}

.chapter-list__item:last-child {
  border-bottom: none;
}

.chapter-list__title {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.7;
}

.chapter-list__gains {
  margin: 0;
  padding-left: 18px;
}

.chapter-list__gains li {
  margin: 4px 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.book-detail__extras {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.book-detail__extras ul {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 28px;
}

.book-detail__extras li {
  margin: 5px 0;
  font-size: 0.8125rem;
  line-height: 1.8;
  break-inside: avoid;
}

.book-detail__extras-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.7;
}

.bundle-card__pitch {
  color: var(--coral-dark);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.7;
}

.bundle-card__covers {
  margin: 10px 0 14px;
  padding-left: 18px;
}

.bundle-card__covers li {
  margin: 4px 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.75;
}

.bundle-card__save {
  display: block;
  margin-top: 6px;
  color: var(--coral-dark);
  font-size: 0.8125rem;
  font-weight: 700;
}

@media (max-width: 600px) {
  .book-detail__extras ul {
    columns: 1;
  }
}

/* ==========================================================================
   v0.2.6
   ・記事：見出しと本文の幅をそろえた2カラム、アイキャッチを16:9に
   ・販売ページ：見出し縮小、代表セクションを縮小、最後の一押しCTA
   ・トップ：いま読まれています
   ========================================================================== */

/* 記事のアイキャッチは16:9（YouTubeサムネもそのまま使える比率） */
.article-eyecatch {
  max-width: none;
  margin: 0;
  padding: 8px 0 44px;
}

.article-eyecatch img {
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* 右レール内の並び */
.article-rail .article-sidebar {
  margin-top: 36px;
}

.article-rail .article-toc[hidden] + .article-sidebar {
  margin-top: 0;
}

/* サイドバーの小カードにも課題タグを出す */
.story-labels--compact {
  margin: 10px 0 6px;
}

.story-labels--compact a {
  font-size: 0.6875rem;
  padding: 3px 8px;
}

/* 販売ページ：代表セクションは写真を小さく、メッセージを主役に */
.books-founder__photo {
  max-width: 200px;
}

.books-founder__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.books-founder__grid {
  align-items: start;
}

/* 販売ページ：最後の一押し */
.books-lastcall {
  border-top: 6px solid var(--coral);
  background: var(--ink);
  color: var(--white);
}

.books-lastcall__inner {
  max-width: 760px;
  text-align: center;
}

.books-lastcall h2 {
  margin: 0 0 18px;
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.5;
}

.books-lastcall p {
  margin: 0 0 14px;
  color: #c9cccf;
  font-size: 0.9375rem;
  line-height: 1.95;
}

.books-lastcall__note {
  margin-bottom: 28px !important;
  font-size: 0.8125rem !important;
}

.books-lastcall .button {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

/* トップ：いま読まれています */
.home-reading {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.home-reading__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

@media (max-width: 900px) {
  .home-reading__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-reading__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .books-founder__photo {
    max-width: 140px;
  }
}

/* 代表セクションの写真：列幅に合わせて余白の破綻をなくし、細い縁で締める */
.books-founder__photo {
  position: static;
  max-width: none;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.books-founder__photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.books-founder__copy h3 {
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.7;
}

/* 教材パネルの見出しも他ページとそろえる */
.books-panel__copy h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.55;
}

.books-panel__copy strong {
  display: block;
  margin: 18px 0 24px;
  padding: 14px 16px;
  border-left: 3px solid var(--coral);
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.9;
}

/* ==========================================================================
   v0.2.8
   ・記事本文の強調を教材と同じ「太字＋黄色マーカー」にそろえる
   ・著者プロフィールを本文カラムに寄せる／記事末に悩み別の回遊を追加
   ・販売ページに商品早見ナビ、Discordの初月無料を強調
   ========================================================================== */

/* 記事本文の強調。教材（LOCALANCE BOOKS）と同じあしらいにして、
   読み物としてのリズムとブランドのトンマナをそろえる。
   UI（ボタン・ラベル等）には効かせないよう entry-content に限定する。 */
.entry-content strong {
  font-weight: 700;
  background: linear-gradient(to bottom, transparent 62%, #ffe066 62%);
  padding: 0 1px;
}

/* 本文中のリンクは下線を保ちつつ、マーカーと干渉させない */
.entry-content a strong {
  background: none;
}

/* 著者プロフィール：本文と左端をそろえる */
.article-main .author-profile {
  grid-template-columns: 84px 1fr;
  gap: 20px;
  margin-bottom: 0;
  margin-top: 48px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.article-main .author-profile img {
  width: 84px;
  height: 84px;
}

.article-main .author-profile h2 {
  font-size: 1.125rem;
}

/* 記事末：悩み別の回遊（売り込みではなく導線で受ける） */
.article-topics {
  border-top: 1px solid var(--line);
  background: var(--white);
}

/* 販売ページ：商品早見ナビ */
.book-nav {
  margin-bottom: clamp(36px, 4vw, 56px);
  padding: 20px 22px;
  border: 1px solid var(--line-dark);
  background: var(--white);
}

.book-nav__label {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 650;
}

.book-nav__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.book-nav__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--book-color, var(--blue));
  background: var(--paper);
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.book-nav__item:hover {
  background: var(--white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09);
}

/* セットは点線で「まとめ買い」だと分かるようにする */
.book-nav__item--set {
  border-style: dashed;
  border-top-style: solid;
}

.book-nav__sub {
  color: var(--ink-soft);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.book-nav__item strong {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.book-nav__price {
  color: var(--book-color, var(--blue-dark));
  font-size: 0.8125rem;
  font-weight: 750;
}

/* 販売ページ：Discordの初月無料を強調 */
.discord-benefit__free {
  margin: 4px 0 12px !important;
  font-size: 1rem;
  font-weight: 700;
}

.discord-benefit__free strong {
  display: inline-block;
  margin-right: 8px;
  padding: 5px 14px;
  border-radius: 30px;
  background: var(--coral);
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 800;
}

.discord-benefit__price {
  margin-top: 12px !important;
  font-size: 0.8125rem !important;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .book-nav__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .book-nav__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   v0.2.9
   ・サイト全体で使える強調（太字＋黄色マーカー）
   ・商品早見ナビを教材の配色にそろえる
   ========================================================================== */

/* 記事本文以外でも使える強調。要所に手で付ける。
   ボタンやラベルには使わない（ノイズになるため）。 */
.mark {
  font-weight: 700;
  background: linear-gradient(to bottom, transparent 62%, #ffe066 62%);
  padding: 0 1px;
}

/* 暗い背景の上で使う場合 */
.mark--dark {
  color: var(--white);
  background: linear-gradient(to bottom, transparent 60%, rgba(255, 224, 102, 0.42) 60%);
}

/* 見出しの中で使うときは、線を少し下げて字を潰さない */
h1 .mark,
h2 .mark,
h3 .mark {
  background: linear-gradient(to bottom, transparent 72%, #ffe066 72%);
}

/* ==========================================================================
   v0.3.0 ヘッダーの整理
   ・サイト名／カタカナ／タグラインの間隔を詰める
   ・メニューは字間と余白で整え、教材だけ行き先として少し立たせる
   ========================================================================== */

/* 各項目のあいだに同じ区切り線を入れて、一つずつ独立して読めるようにする */
@media (min-width: 821px) {
  .primary-nav__list {
    gap: 0;
  }

  .primary-nav__list > li {
    position: relative;
    padding: 0 clamp(11px, 1.2vw, 17px);
  }

  .primary-nav__list > li:first-child {
    padding-left: 0;
  }

  .primary-nav__list > li:last-child {
    padding-right: 0;
  }

  .primary-nav__list > li + li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 14px;
    background: var(--line);
    transform: translateY(-50%);
  }

  /* 教材は購入につながる行き先なので、字面だけ少し強くする（枠は付けない） */
  .primary-nav a[href*="/books"] {
    font-weight: 750;
  }
}

/* ==========================================================================
   SNS・YouTubeリンク
   URLを入れたときだけ表示される（inc/helpers.php の localance_social_links）
   ========================================================================== */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.18s ease;
}

.social-links a:hover {
  color: var(--blue);
}

.social-links svg {
  flex: 0 0 auto;
}

/* ヘッダー用（アイコンのみ） */
.social-links--compact {
  margin: 0;
  gap: 12px;
}

.social-links--compact a {
  width: 34px;
  height: 34px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.social-links--compact a:hover {
  border-color: var(--blue);
}

/* ------------------------------------------------------------------
   v0.3.6 ランキングバッジ（今月No.1 / 急上昇中）
   実際の閲覧数が下限を超えたときだけ出る。データがない間は描画されない。
   ------------------------------------------------------------------ */

.support-article__image {
  position: relative;
}

.rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-block;
  padding: 6px 12px 7px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--white);
  background: var(--ink);
}

/* 急上昇は「今の動き」なのでブランドの青。目を引かせる */
.rank-badge--trending {
  background: var(--blue);
}

/* 今月No.1は実績なので黒。落ち着かせて信頼側に寄せる */
.rank-badge--top {
  background: var(--ink);
}

@media (max-width: 600px) {
  .rank-badge {
    padding: 5px 10px 6px;
    font-size: 0.66rem;
  }
}

/* ------------------------------------------------------------------
   v0.3.8 「ここだけの話」
   記事末に置く、素の言葉のブロック。
   本文は数字と事実で信用を担保し、ここだけ人柄を出す。
   本文と地続きに見えると信用のトーンが混ざるため、明確に切り離す。
   ------------------------------------------------------------------ */

.entry-content .off-record {
  margin: 3.4em 0 0;
  padding: 26px 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* 本文との境目を作る。ここから先は温度が変わる、という合図 */
.entry-content .off-record::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--coral);
  margin-bottom: 16px;
}

/* p.off-record__label と書いているのは、後続の `.off-record p` に色を奪われるため。 */
.entry-content .off-record p.off-record__label {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--coral-dark);
}

.entry-content .off-record p {
  margin: 0 0 0.9em;
  font-size: 0.9375rem;
  line-height: 1.95;
  color: var(--ink-soft);
}

.entry-content .off-record p:last-child {
  margin-bottom: 0;
}

/* 本文のリンク色（青）をそのまま持ち込むと硬いので、ここでは控えめに */
.entry-content .off-record a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .entry-content .off-record {
    margin-top: 2.8em;
    padding: 22px 20px 20px;
  }
  .entry-content .off-record p {
    font-size: 0.9rem;
  }
}

/* ------------------------------------------------------------------
   v1.0.9 教材CTA（.books-cta）
   記事本文の末尾に、Bチャットの 教材CTA.py が本文の一部として書き出すブロック。
   **テーマ側では出力しない。**ここはCSSだけ。
   single.php に別枠を作ると本文のCTAと二重に出る（2026-08-02 Bからの依頼）。

   それまで各記事に直書きされていた inline style と同じ見た目にしてある。
   色は直値ではなく既存の変数を使った（#f8f7f2＝--paper は完全一致、
   枠線 #d8d4c8→--line #d4d4cf、ラベル #7a7468→--ink-soft #555d63 はわずかに違う）。

   ⚠️ inline style が残っているうちは、そちらが勝つのでこのCSSは効かない。
   テーマを上げたあとに記事側の inline を外すこと。
   ------------------------------------------------------------------ */

.entry-content .books-cta {
  margin: 3rem 0 0;
  padding: 1.6rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

/* p.books-cta__label と書いているのは、後続の `.books-cta p` に
   margin と色を奪われるため（.off-record と同じ理由）。 */
.entry-content .books-cta p.books-cta__label {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.entry-content .books-cta p {
  margin: 0 0 0.9rem;
}

/* 最後の段落＝教材へのリンク。手前を少し空けて、本文と地続きに見せない。
   直前の p の margin-bottom と相殺されて 1.2rem になる。 */
.entry-content .books-cta p:last-child {
  margin: 1.2rem 0 0;
}

@media (max-width: 600px) {
  .entry-content .books-cta {
    margin-top: 2.6rem;
    padding: 1.4rem 1.15rem;
  }
}

/* 記事末尾の質問受付。読み終わった直後にしか出ない疑問を、その場で受ける。
   教材への導線（.article-next）より控えめにする。売る場所ではないため。 */
.article-ask {
  margin-bottom: var(--section-space);
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  background: var(--paper);
}

.article-ask__kicker {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.article-ask h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.5;
}

.article-ask p {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .article-ask {
    padding: 22px 20px;
  }
}
