/* ==========================================================================
   議事録「作戦ノート」デザイン
   構成はマガジン型（注目ノート＋一覧）、見た目は手描きノート
   （方眼紙・マスキングテープ・ポラロイド写真・蛍光ペン）
   ========================================================================== */

.ss-notebook {
	--nb-paper: #fffefa;
	--nb-desk: #f6f4ec;
	--nb-grid: rgba(120, 150, 190, .14);
	--nb-ink: #2b2f36;
	--nb-sub: #6b6f76;
	--nb-navy: #0b1f3a;
	--nb-margin: #f3b4b4;
	--nb-marker: rgba(255, 223, 79, .6);
	--nb-green: #16a34a;
	--nb-green-d: #15803d;
	--nb-hand: "Klee One", "Noto Sans JP", sans-serif;
	--nb-sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
	--nb-shadow: 0 1px 1px rgba(60, 50, 30, .06), 0 6px 18px rgba(60, 50, 30, .08);

	/* 方眼紙の机 */
	background-color: var(--nb-desk);
	background-image:
		linear-gradient(var(--nb-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--nb-grid) 1px, transparent 1px);
	background-size: 22px 22px;
}

/* サイト全体の「太字・斜体」設定をこのページでは打ち消す */
.ss-notebook .nb,
.ss-notebook .nb * {
	font-style: normal;
	box-sizing: border-box;
}

/* サイト全体のリンク文字サイズ指定を打ち消す（個別の指定はこれより優先される） */
.ss-notebook :where(.nb) a {
	font-size: inherit;
	font-family: inherit;
	font-weight: inherit;
}

.ss-notebook .nb-pager .page-numbers {
	font-size: 15px;
}

.ss-notebook .nb {
	font-family: var(--nb-sans);
	font-weight: 400;
	color: var(--nb-ink);
	-webkit-text-size-adjust: 100%;
}

.ss-notebook .nb-wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 16px 16px 64px;
}

/* ---------- パンくず ---------- */

.ss-notebook .nb-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin: 0 0 14px;
	font-size: 12px;
	color: var(--nb-sub);
}

.ss-notebook .nb-crumb a {
	color: var(--nb-sub);
	text-decoration: none !important;
}

.ss-notebook .nb-crumb [aria-current] {
	color: var(--nb-ink);
	font-weight: 700;
}

/* ---------- 見出しまわり ---------- */

.ss-notebook .nb-head {
	margin: 0 0 18px;
}

.ss-notebook .nb-head__eyebrow {
	margin: 0 0 2px;
	font-family: var(--nb-hand);
	font-size: 14px;
	color: var(--nb-sub);
}

.ss-notebook .nb-head__title {
	display: inline;
	margin: 0;
	font-family: var(--nb-hand);
	font-size: clamp(28px, 8vw, 40px);
	font-weight: 600;
	line-height: 1.3;
	color: var(--nb-navy);
	/* 蛍光ペンを引いたような下線 */
	background: linear-gradient(transparent 62%, var(--nb-marker) 62%, var(--nb-marker) 92%, transparent 92%);
	padding: 0 4px;
}

/* 「みんなの議論から生まれたノート」をスマホでも1行に収める */
.ss-notebook .nb-head__title--sm {
	font-size: clamp(18px, 5.4vw, 30px);
	letter-spacing: 0;
	white-space: nowrap;
}

.ss-notebook .nb-head__sub {
	margin-left: 6px;
	font-size: .5em;
	font-weight: 400;
	color: var(--nb-sub);
}

.ss-notebook .nb-head__lead {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--nb-sub);
}

.ss-notebook .nb-head__lead b {
	font-family: var(--nb-hand);
	font-size: 18px;
	color: var(--nb-navy);
}

.ss-notebook .nb-section-title {
	margin: 0 0 12px;
	font-family: var(--nb-hand);
	font-size: 20px;
	font-weight: 600;
	color: var(--nb-navy);
}

/* ---------- マスキングテープ ---------- */

.ss-notebook .nb-tape {
	display: inline-block;
	padding: 3px 12px 2px;
	background: color-mix(in srgb, var(--c) 42%, transparent);
	color: color-mix(in srgb, var(--c) 30%, #1f2328);
	font-family: var(--nb-hand);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	transform: rotate(-2deg);
	/* テープの端のギザギザ */
	clip-path: polygon(0 8%, 4% 0, 9% 10%, 14% 0, 86% 0, 91% 9%, 96% 0, 100% 10%, 100% 90%, 96% 100%, 91% 90%, 86% 100%, 14% 100%, 9% 91%, 4% 100%, 0 92%);
}

.ss-notebook .nb-tape--sm {
	padding: 1px 9px 0;
	font-size: 11px;
}

.ss-notebook .nb-no {
	font-family: var(--nb-hand);
	font-size: 13px;
	font-weight: 600;
	color: var(--nb-sub);
}

/* ---------- テーマ切り替え（横スクロールのテープ・複数選択） ---------- */

.ss-notebook .nb-chips__hint {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin: 0 0 2px;
	font-family: var(--nb-hand);
	font-size: 14px;
	font-weight: 600;
	color: var(--nb-navy);
}

.ss-notebook .nb-chips__hint span {
	font-size: 12px;
	font-weight: 400;
	color: var(--nb-sub);
}

.ss-notebook .nb-chips__clear {
	margin-left: auto;
	font-family: var(--nb-sans);
	font-size: 12px !important;
	font-weight: 700 !important;
	color: var(--nb-sub) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.ss-notebook .nb-chip i {
	font-style: normal;
	font-size: 13px;
}

.ss-notebook .nb-chips {
	margin: 0 -16px 20px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.ss-notebook .nb-chips::-webkit-scrollbar {
	display: none;
}

.ss-notebook .nb-chips ul {
	display: flex;
	gap: 10px;
	width: max-content;
	margin: 0;
	padding: 8px 16px 10px;
	list-style: none;
}

.ss-notebook .nb-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	min-height: 38px;
	padding: 8px 14px 6px;
	/* 選んでいないテーマは、どれもグレーで統一 */
	background: #e4e2dc;
	color: #7a7d83;
	font-family: var(--nb-hand);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	transform: rotate(-1.2deg);
	clip-path: polygon(0 8%, 4% 0, 9% 10%, 14% 0, 86% 0, 91% 9%, 96% 0, 100% 10%, 100% 90%, 96% 100%, 91% 90%, 86% 100%, 14% 100%, 9% 91%, 4% 100%, 0 92%);
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
	-webkit-tap-highlight-color: transparent;
}

.ss-notebook .nb-chips li:nth-child(even) .nb-chip {
	transform: rotate(1deg);
}

.ss-notebook .nb-chip span {
	font-family: var(--nb-sans);
	font-size: 11px;
	font-weight: 700;
	color: inherit;
	opacity: .75;
}

.ss-notebook .nb-chip:hover {
	background: #d9d6ce;
	color: #55585e;
}

/* 選んでいるテーマだけ、そのテーマの色をつける（文字は濃い同系色で読みやすく） */
.ss-notebook .nb-chip.is-current {
	background: color-mix(in srgb, var(--c) 62%, #fff);
	color: color-mix(in srgb, var(--c) 28%, #111);
	box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--c) 80%, #000 10%);
}

.ss-notebook .nb-chip.is-current span {
	opacity: .8;
}

/* 「すべて」を選んでいるとき */
.ss-notebook .nb-chips li:first-child .nb-chip.is-current {
	background: var(--nb-navy);
	color: #fff;
	box-shadow: none;
}

.ss-notebook .nb-chip.is-empty:not(.is-current) {
	opacity: .6;
}

/* ---------- ポラロイド写真 ---------- */

.ss-notebook .nb-photo {
	position: relative;
	display: block;
	padding: 6px 6px 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 10px rgba(0, 0, 0, .08);
}

.ss-notebook .nb-photo__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0 !important;
	border-radius: 0;
}

.ss-notebook .nb-photo__blank {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--nb-desk);
	font-size: 28px;
}

.ss-notebook .nb-photo--sm {
	flex: none;
	width: 108px;
	height: 92px;
	padding: 5px 5px 12px;
}

.ss-notebook .nb-photo--sm.is-tilt-l {
	transform: rotate(-2.5deg);
}

.ss-notebook .nb-photo--sm.is-tilt-r {
	transform: rotate(2deg);
}

.ss-notebook .nb-photo--lg {
	aspect-ratio: 4 / 3;
	margin: 6px 6px 18px;
	padding-bottom: 22px;
	transform: rotate(-1.2deg);
}

.ss-notebook .nb-photo--hero {
	aspect-ratio: 3 / 2;
	padding-bottom: 22px;
	transform: rotate(1deg);
}

/* ---------- 写真・イラストを留めるテープ（すべての画像に共通：透明なセロハンテープ） ----------
   ・うっすら青みがかった透明フィルム＋斜めの光の反射
   ・下の写真がわずかに透けて見える（backdrop-filter）
   ・テープカッターで切ったようなギザギザの両端 */

.ss-notebook .nb-photo::before,
.ss-notebook .nb-content .wp-block-image::before,
.ss-notebook .nb-content figure:not(.wp-block-embed):not(.wp-block-table)::before,
.ss-notebook .nb-content p:has(> img:only-child)::before {
	content: "";
	position: absolute;
	top: -10px;
	left: 50%;
	width: 96px;
	height: 26px;
	margin-left: -48px;
	background:
		linear-gradient(100deg, transparent 0 22%, rgba(255, 255, 255, .75) 30%, rgba(255, 255, 255, 0) 40%, transparent 100%),
		linear-gradient(180deg, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .35) 100%),
		rgba(205, 220, 232, .38);
	box-shadow: 0 1px 2px rgba(40, 50, 60, .12);
	-webkit-backdrop-filter: blur(.4px) brightness(1.06);
	backdrop-filter: blur(.4px) brightness(1.06);
	transform: rotate(var(--nb-tape-rot, -3deg));
	clip-path: polygon(
		0 0, 3% 12%, 0 25%, 3% 37%, 0 50%, 3% 62%, 0 75%, 3% 87%, 0 100%,
		100% 100%, 97% 87%, 100% 75%, 97% 62%, 100% 50%, 97% 37%, 100% 25%, 97% 12%, 100% 0
	);
	z-index: 1;
	pointer-events: none;
}

/* 小さい写真は小さいテープ */
.ss-notebook .nb-photo--sm {
	--nb-tape-rot: 4deg;
}

.ss-notebook .nb-photo--sm::before {
	top: -7px;
	width: 50px;
	height: 16px;
	margin-left: -25px;
}

/* 貼る角度に変化をつけて、手で貼った感じに */
.ss-notebook .nb-list > li:nth-child(3n+2) .nb-photo,
.ss-notebook .nb-content figure:nth-of-type(3n+2),
.ss-notebook .nb-content p:has(> img:only-child):nth-of-type(3n+2) {
	--nb-tape-rot: 2.5deg;
}

.ss-notebook .nb-list > li:nth-child(3n) .nb-photo,
.ss-notebook .nb-content figure:nth-of-type(3n),
.ss-notebook .nb-content p:has(> img:only-child):nth-of-type(3n) {
	--nb-tape-rot: -1.5deg;
}

/* ---------- 注目ノート ---------- */

.ss-notebook .nb-featured {
	margin: 0 0 22px;
}

.ss-notebook .nb-featured__link {
	position: relative;
	display: block;
	padding: 24px 18px 20px;
	background: var(--nb-paper);
	box-shadow: var(--nb-shadow);
	color: inherit;
	text-decoration: none !important;
}

.ss-notebook .nb-featured__label {
	position: absolute;
	top: -8px;
	right: 14px;
	padding: 3px 12px 2px;
	background: var(--nb-navy);
	color: #fff;
	font-family: var(--nb-hand);
	font-size: 12px;
	font-weight: 600;
	transform: rotate(2deg);
	z-index: 2;
}

.ss-notebook .nb-featured__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 8px;
}

.ss-notebook .nb-featured__date {
	font-size: 12px;
	color: var(--nb-sub);
}

.ss-notebook .nb-featured__title {
	display: block;
	font-family: var(--nb-hand);
	font-size: clamp(21px, 5.6vw, 27px);
	font-weight: 600;
	line-height: 1.5;
	color: var(--nb-navy);
}

.ss-notebook .nb-featured__excerpt {
	display: -webkit-box;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.8;
	color: var(--nb-sub);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ss-notebook .nb-featured__more {
	display: inline-block;
	margin-top: 12px;
	font-family: var(--nb-hand);
	font-size: 15px;
	font-weight: 600;
	color: var(--nb-green-d);
	background: linear-gradient(transparent 65%, rgba(22, 163, 74, .18) 65%);
}

/* ---------- ノート一覧 ---------- */

.ss-notebook .nb-list {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ss-notebook .nb-row__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 14px 14px;
	background: var(--nb-paper);
	box-shadow: var(--nb-shadow);
	color: inherit;
	text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease;
	-webkit-tap-highlight-color: transparent;
}

.ss-notebook .nb-row__link:active {
	transform: scale(.985);
}

@media (hover: hover) {
	.ss-notebook .nb-row__link:hover,
	.ss-notebook .nb-featured__link:hover {
		transform: translateY(-2px);
		box-shadow: 0 2px 2px rgba(60, 50, 30, .06), 0 12px 24px rgba(60, 50, 30, .12);
	}
}

.ss-notebook .nb-row__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ss-notebook .nb-row__meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ss-notebook .nb-row__title {
	display: -webkit-box;
	font-family: var(--nb-hand);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--nb-navy);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ss-notebook .nb-row__sub {
	font-size: 11px;
	color: var(--nb-sub);
}

/* ---------- ページ送り ---------- */

.ss-notebook .nb-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 24px 0 0;
}

.ss-notebook .nb-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	background: var(--nb-paper);
	box-shadow: var(--nb-shadow);
	color: var(--nb-ink);
	font-family: var(--nb-hand);
	font-weight: 600;
	text-decoration: none !important;
}

.ss-notebook .nb-pager .page-numbers.current {
	background: var(--nb-navy);
	color: #fff;
}

.ss-notebook .nb-pager .page-numbers.dots {
	background: none;
	box-shadow: none;
}

/* ---------- 白紙（記事がないテーマ） ---------- */

.ss-notebook .nb-empty {
	padding: 32px 22px 28px;
	background: var(--nb-paper);
	background-image: repeating-linear-gradient(transparent 0 31px, rgba(120, 150, 190, .25) 31px 32px);
	box-shadow: var(--nb-shadow);
	text-align: center;
}

.ss-notebook .nb-empty p {
	margin: 0;
}

.ss-notebook .nb-empty__doodle {
	font-size: 34px;
	line-height: 1.4;
}

.ss-notebook .nb-empty__title {
	margin-top: 6px !important;
	font-family: var(--nb-hand);
	font-size: 20px;
	font-weight: 600;
	color: var(--nb-navy);
}

.ss-notebook .nb-empty__text {
	margin: 6px 0 18px !important;
	font-size: 14px;
	line-height: 1.8;
	color: var(--nb-sub);
}

.ss-notebook .nb-empty__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

/* ---------- ボタン ---------- */

.ss-notebook .nb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 320px;
	min-height: 48px;
	padding: 0 20px;
	border: 1.5px solid #d6d3c8;
	border-radius: 999px;
	background: #fff;
	color: var(--nb-ink) !important;
	font-family: var(--nb-sans);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform .15s ease, background-color .15s ease;
}

.ss-notebook .nb-btn--primary {
	border-color: transparent;
	background: var(--nb-green);
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(22, 163, 74, .25);
}

.ss-notebook .nb-btn--primary:hover {
	background: var(--nb-green-d);
}

.ss-notebook .nb-btn:active {
	transform: scale(.97);
}

/* ==========================================================================
   記事ページ
   ========================================================================== */

.ss-notebook .nb-sheet {
	position: relative;
	margin: 0 0 20px;
	padding: 28px 20px 28px;
	background: var(--nb-paper);
	box-shadow: var(--nb-shadow);
}

/* 紙を留めているテープ */
.ss-notebook .nb-sheet::before {
	content: "";
	position: absolute;
	top: -11px;
	left: 50%;
	width: 120px;
	height: 26px;
	margin-left: -60px;
	background: rgba(180, 220, 200, .75);
	transform: rotate(-2deg);
	clip-path: polygon(0 10%, 5% 0, 95% 0, 100% 12%, 100% 88%, 95% 100%, 5% 100%, 0 90%);
}

.ss-notebook .nb-sheet__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 10px;
	font-size: 12px;
	color: var(--nb-sub);
}

.ss-notebook .nb-sheet__title {
	margin: 0 0 18px;
	font-family: var(--nb-hand);
	font-size: clamp(23px, 6.4vw, 32px);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .01em;
	color: var(--nb-navy);
	text-wrap: pretty;
}

.ss-notebook .nb-sheet__hero {
	margin: 14px 4px 22px;
}

/* もくじ（付箋） */
.ss-notebook .nb-toc {
	position: relative;
	margin: 0 0 26px;
	padding: 16px 16px 14px;
	background: #fff8c5;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .05), 0 6px 12px rgba(120, 100, 20, .1);
	transform: rotate(-.6deg);
}

.ss-notebook .nb-toc__title {
	margin: 0 0 6px;
	font-family: var(--nb-hand);
	font-size: 16px;
	font-weight: 600;
	color: #6b5a00;
}

.ss-notebook .nb-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: nb-toc;
}

.ss-notebook .nb-toc li {
	counter-increment: nb-toc;
	position: relative;
	padding: 5px 0 5px 26px;
	font-size: 14px;
	line-height: 1.6;
	border-bottom: 1px dashed rgba(107, 90, 0, .2);
}

.ss-notebook .nb-toc li:last-child {
	border-bottom: 0;
}

.ss-notebook .nb-toc li::before {
	content: counter(nb-toc);
	position: absolute;
	top: 5px;
	left: 2px;
	font-family: var(--nb-hand);
	font-weight: 600;
	color: #a08700;
}

.ss-notebook .nb-toc a {
	color: var(--nb-ink) !important;
	text-decoration: none !important;
}

/* ---------- 本文 ---------- */

.ss-notebook .nb-content {
	font-size: 16px;
	line-height: 2;
	letter-spacing: .02em;
	color: var(--nb-ink);
	word-break: break-word;
	overflow-wrap: anywhere;
}

.ss-notebook .nb-content > * {
	max-width: 100%;
}

.ss-notebook .nb-content p {
	margin: 0 0 1.2em;
	font-size: inherit;
	font-weight: 400;
}

.ss-notebook .nb-content h2,
.ss-notebook .nb-content h3 {
	position: relative;
	margin: 2.2em 0 .9em;
	font-family: var(--nb-hand);
	font-weight: 600;
	line-height: 1.5;
	color: var(--nb-navy);
	scroll-margin-top: 90px;
}

.ss-notebook .nb-content h2 {
	font-size: 22px;
}

/* 蛍光ペンで線を引いたような見出し（複数行でも各行に引かれる） */
.ss-notebook .nb-content h3 {
	font-size: 20px;
	text-decoration: underline;
	text-decoration-color: var(--nb-marker);
	text-decoration-thickness: .5em;
	text-underline-offset: -.3em;
	text-decoration-skip-ink: none;
}

.ss-notebook .nb-content > :first-child {
	margin-top: 0;
}

.ss-notebook .nb-content h4 {
	margin: 1.6em 0 .6em;
	padding-left: 10px;
	border-left: 4px solid var(--nb-green);
	font-size: 17px;
	font-weight: 700;
}

.ss-notebook .nb-content strong,
.ss-notebook .nb-content b {
	font-weight: 700;
	background: linear-gradient(transparent 60%, rgba(255, 223, 79, .45) 60%);
}

.ss-notebook .nb-content a {
	color: var(--nb-green-d) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.ss-notebook .nb-content ul,
.ss-notebook .nb-content ol {
	margin: 0 0 1.4em;
	padding: 14px 16px 14px 36px;
	background: rgba(22, 163, 74, .06);
	border-radius: 4px;
}

.ss-notebook .nb-content li {
	margin: 0 0 .3em;
	padding-left: 2px;
}

.ss-notebook .nb-content ul li::marker {
	content: "✓  ";
	color: var(--nb-green);
	font-weight: 700;
}

.ss-notebook .nb-content ol li::marker {
	font-family: var(--nb-hand);
	font-weight: 600;
	color: var(--nb-green-d);
}

.ss-notebook .nb-content hr,
.ss-notebook .nb-content .wp-block-separator {
	width: 60%;
	max-width: 200px;
	margin: 2.4em auto;
	border: 0;
	border-top: 2px dashed #d6d3c8;
	background: none;
	opacity: 1;
}

/* 本文の手描きイラスト：白い紙に描いてテープで貼ったように */
.ss-notebook .nb-content figure:not(.wp-block-embed):not(.wp-block-table),
.ss-notebook .nb-content .wp-block-image,
.ss-notebook .nb-content p:has(> img:only-child) {
	position: relative;
	width: fit-content;
	max-width: 100%;
	margin: 2em auto !important;
	padding: 8px 8px 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .07), 0 6px 14px rgba(60, 50, 30, .1);
	text-align: center;
	transform: rotate(-.8deg);
}

.ss-notebook .nb-content figure:nth-of-type(even),
.ss-notebook .nb-content p:has(> img:only-child):nth-of-type(even) {
	transform: rotate(.9deg);
}

.ss-notebook .nb-content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.ss-notebook .nb-content figcaption {
	margin-top: 6px;
	font-family: var(--nb-hand);
	font-size: 13px;
	color: var(--nb-sub);
}

.ss-notebook .nb-content blockquote {
	margin: 0 0 1.4em;
	padding: 12px 16px;
	border-left: 4px solid var(--nb-margin);
	background: rgba(243, 180, 180, .1);
	font-family: var(--nb-hand);
	color: var(--nb-ink);
}

.ss-notebook .nb-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.ss-notebook .nb-tags a {
	display: inline-block;
	padding: 2px 10px;
	border: 1px solid #e2ded2;
	border-radius: 999px;
	font-size: 12px;
	color: var(--nb-sub) !important;
	text-decoration: none !important;
}

/* ---------- 議論への導線 ---------- */

.ss-notebook .nb-talk {
	margin: 0 0 28px;
	padding: 20px 18px;
	background: #fff;
	border: 2px dashed #cfe7d6;
	border-radius: 14px;
	text-align: center;
}

.ss-notebook .nb-talk__label {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--nb-sub);
}

.ss-notebook .nb-talk__topic {
	display: block;
	margin: 0 0 16px;
	padding: 10px 12px;
	background: var(--nb-desk);
	border-radius: 8px;
	font-family: var(--nb-hand);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--nb-navy) !important;
	text-decoration: none !important;
}

.ss-notebook .nb-talk__today {
	margin: 0 0 12px;
	font-family: var(--nb-hand);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--nb-navy);
}

.ss-notebook .nb-talk__lead {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.8;
	color: var(--nb-sub);
}

/* ---------- 広告枠 ----------
   ・「スポンサーリンク」表記で記事と明確に区別（AdSense ポリシー対応）
   ・上下に十分な余白をとり、ボタンやリンクの誤タップを防ぐ
   ・読み込み前に高さを確保して、表示時のガタつき（CLS）を抑える */

.ss-notebook .nb-ad {
	display: block;
	margin: 28px 0;
	padding: 10px 0 0;
	border-top: 1px dashed #d6d3c8;
	text-align: center;
	min-height: 110px;
	overflow: hidden;
}

/* 広告の中身には本文のリンク・画像・マーカーの装飾をかけない */
.ss-notebook .nb-ad a {
	color: inherit !important;
	text-decoration: none !important;
}

.ss-notebook .nb-ad strong,
.ss-notebook .nb-ad b {
	background: none;
}

.ss-notebook .nb-ad img {
	display: inline-block;
	margin: 0;
}

.ss-notebook .nb-ad__label {
	display: block;
	margin: 0 0 8px;
	font-size: 10px;
	letter-spacing: .12em;
	text-align: left;
	color: #9a968b;
}

/* AdSense の記事内広告は高さが出るので、先に場所を確保してガタつきを防ぐ */
.ss-notebook .nb-ad--article.nb-ad--adsense {
	min-height: 280px;
}

.ss-notebook .nb-content .nb-ad {
	margin: 2.4em 0;
}

.ss-notebook .nb-list__ad {
	list-style: none;
}

.ss-notebook .nb-list__ad .nb-ad {
	margin: 4px 0;
	padding: 10px 12px 12px;
	border: 1px dashed #d6d3c8;
	background: rgba(255, 255, 255, .6);
}

@media (min-width: 640px) {
	/* 2列の一覧では広告を横いっぱいに */
	.ss-notebook .nb-list__ad {
		grid-column: 1 / -1;
	}
}

.ss-notebook .nb-related__all {
	margin: 14px 0 0;
	text-align: right;
}

.ss-notebook .nb-related__all a {
	font-family: var(--nb-hand);
	font-size: 15px;
	font-weight: 600;
	color: var(--nb-green-d) !important;
	text-decoration: none !important;
}

/* ---------- タブレット・PC ---------- */

@media (min-width: 640px) {
	.ss-notebook .nb-wrap {
		padding: 28px 24px 80px;
	}

	.ss-notebook .nb-chips {
		margin-left: 0;
		margin-right: 0;
		overflow: visible;
	}

	.ss-notebook .nb-chips ul {
		width: auto;
		flex-wrap: wrap;
		padding-left: 0;
		padding-right: 0;
	}

	.ss-notebook .nb-featured__link {
		display: grid;
		grid-template-columns: 1.1fr 1fr;
		grid-template-rows: auto auto auto 1fr auto;
		column-gap: 24px;
		padding: 28px 26px 24px;
	}

	.ss-notebook .nb-featured .nb-photo--lg {
		grid-row: 1 / -1;
		margin: 0;
	}

	.ss-notebook .nb-list {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	.ss-notebook .nb-row__link {
		height: 100%;
	}

	.ss-notebook .nb-sheet {
		padding: 44px 52px 40px;
	}

	.ss-notebook .nb-content {
		font-size: 17px;
	}

	.ss-notebook .nb-empty__actions {
		flex-direction: row;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ss-notebook .nb * {
		transition: none !important;
	}
}
