/*
Theme Name: sebu log
Author: Claude（sebu 用）
Description: 会社員が0からAIで副業に挑戦する記録ブログ用のブロックテーマ。上部バー・中央ロゴのヘッダー・お知らせバー・大きな見出しエリア・3列の記事カード・右サイドバーのメディア型レイアウト（makusan.ne.jp の構成を参考に、配色と中身は独自）。
Version: 1.1.6
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sebu-log
*/

:root {
	--sl-navy: #1E3A8A;
	--sl-cream: #FFF4DA;
	--sl-yellow: #FFC93C;
	--sl-line: #E5E7EB;
	--sl-text: #333333;
	--sl-muted: #777777;
}

/* ============ ヘッダー ============ */
.sl-topbar {
	background: var(--sl-navy);
	color: #fff;
	padding: 0.25rem 1.25rem;
}
.sl-topbar__text {
	font-size: 0.75rem;
	margin: 0;
	letter-spacing: 0.05em;
}
.sl-topbar__sns {
	margin: 0 !important;
	gap: 0.6rem !important;
}
.sl-header {
	background: var(--sl-cream);
	padding: 1.1rem 1.25rem 0.6rem;
	border-bottom: 1px solid #F2E3BB;
}
.sl-header > .wp-block-group {
	gap: 0.5rem;
}
.sl-logo {
	margin: 0;
	font-size: 1.9rem;
	font-weight: 900;
	letter-spacing: 0.04em;
	line-height: 1.2;
}
.sl-logo a {
	color: var(--sl-navy);
	text-decoration: none;
	background: linear-gradient(transparent 62%, var(--sl-yellow) 62%);
	padding: 0 0.2em;
}
.sl-nav {
	font-size: 0.875rem;
	font-weight: 600;
	gap: 1.8rem !important;
}
.sl-nav a {
	color: var(--sl-text);
	text-decoration: none;
	padding: 0.3rem 0;
	border-bottom: 2px solid transparent;
}
.sl-nav a:hover {
	color: var(--sl-navy);
	border-bottom-color: var(--sl-yellow);
}
.sl-notice {
	background: repeating-linear-gradient(-45deg, var(--sl-yellow), var(--sl-yellow) 10px, #FFD25E 10px, #FFD25E 20px);
	padding: 0.45rem 1rem;
}
.sl-notice p {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
}
.sl-notice a {
	color: var(--sl-navy);
	text-decoration: none;
}
.sl-notice a:hover {
	text-decoration: underline;
}

/* ============ 見出しエリア（トップ） ============ */
.sl-hero {
	background: radial-gradient(circle at 20% 20%, #2C4FB3 0%, var(--sl-navy) 45%, #0F1F4D 100%);
	color: #fff;
	padding: 3rem 1.25rem !important;
	margin-top: 0 !important;
}
.sl-hero__badge {
	display: table;
	margin: 0 auto !important;
	background: var(--sl-yellow);
	color: var(--sl-navy);
	font-weight: 800;
	font-size: 0.875rem;
	padding: 0.2rem 1rem;
	border-radius: 999px;
}
.sl-hero__title {
	color: #fff !important;
	font-size: clamp(1.8rem, 4.6vw, 3rem);
	font-weight: 900;
	margin-top: 1rem !important;
	margin-bottom: 0.6rem !important;
	letter-spacing: 0.04em;
}
.sl-hero__lead {
	font-size: 0.9375rem;
	opacity: 0.92;
}
.sl-hero__btn .wp-block-button__link {
	background: var(--sl-yellow);
	color: var(--sl-navy);
	border-radius: 999px;
	padding: 0.85em 2.6em;
	box-shadow: 0 4px 0 #C99A1C;
}
.sl-hero__btn .wp-block-button__link:hover {
	transform: translateY(2px);
	box-shadow: 0 2px 0 #C99A1C;
}

/* ============ レイアウト ============ */
.sl-main {
	padding: 2.5rem 1.25rem 3.5rem;
	margin-top: 0 !important;
}
.sl-layout {
	gap: 2.75rem !important;
}
.sl-section-title {
	font-size: 1.25rem;
	font-weight: 800;
	border-left: 6px solid var(--sl-navy);
	padding: 0.1rem 0 0.1rem 0.8rem;
	margin: 0 0 1.5rem;
}

/* ============ 記事カード ============ */
.sl-cards .wp-block-post-template {
	gap: 2rem 1.5rem !important;
}
.sl-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.sl-card__thumb {
	position: relative;
	margin: 0 0 0.3rem;
}
.sl-card__thumb:not(:has(img)) {
	aspect-ratio: 16 / 9;
	background: var(--sl-cream);
	border-radius: 4px;
}
.sl-card__thumb .wp-block-post-featured-image {
	margin: 0;
	background: var(--sl-cream);
	overflow: hidden;
	border-radius: 4px;
}
.sl-card__thumb img {
	transition: transform 0.3s;
}
.sl-card:hover .sl-card__thumb img {
	transform: scale(1.05);
}
.sl-card__cat {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0 !important; /* ブロックの自動の余白（上24px）で下にずれるのを防ぐ */
	z-index: 2;
	background: var(--sl-navy);
	font-size: 0.6875rem;
	line-height: 1.6;
	padding: 0.15rem 0.6rem;
	border-bottom-left-radius: 4px;
}
.sl-card__cat a {
	color: #fff;
	text-decoration: none;
}
.sl-card__cat a ~ a,
.sl-card__cat .wp-block-post-terms__separator {
	display: none;
}
.sl-card__title {
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.55;
	margin: 0;
}
.sl-card__title a {
	color: var(--sl-text);
	text-decoration: none;
}
.sl-card__title a:hover {
	color: var(--sl-navy);
}
.sl-card__excerpt {
	font-size: 0.8125rem;
	line-height: 1.7;
	color: #555;
	margin: 0;
}
.sl-card__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
}
.sl-card__date {
	font-size: 0.75rem;
	color: var(--sl-muted);
}
.sl-card__date::before {
	content: "🕒 ";
}
.sl-pager {
	margin-top: 2.5rem;
	gap: 0.5rem;
}
.sl-pager .page-numbers {
	display: inline-block;
	min-width: 2.2rem;
	text-align: center;
	padding: 0.2rem 0.5rem;
	background: #F3F4F6;
	color: var(--sl-text);
	text-decoration: none;
	border-radius: 3px;
}
.sl-pager .page-numbers.current {
	background: var(--sl-navy);
	color: #fff;
}

/* ============ サイドバー ============ */
.sl-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.sl-search .wp-block-search__input {
	border: 1px solid #D1D5DB;
	border-radius: 0;
	padding: 0.55rem 0.8rem;
}
.sl-search .wp-block-search__button {
	background: var(--sl-navy);
	color: #fff;
	border: 0;
	border-radius: 0;
	margin-left: 0;
}
.sl-profile {
	background: var(--sl-cream);
	border-radius: 8px;
	padding: 1.25rem;
	text-align: center;
}
.sl-profile__name {
	font-size: 1.25rem;
	font-weight: 900;
	color: var(--sl-navy);
	margin: 0;
}
.sl-profile__text {
	font-size: 0.875rem;
	line-height: 1.9;
	text-align: center;
	margin: 0.5rem 0 1rem;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
.sl-btn-small .wp-block-button__link {
	font-size: 0.8125rem;
	padding: 0.5em 1.4em;
	border-radius: 999px;
}
.sl-side-title {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 1rem;
	font-weight: 800;
	margin: 0.5rem 0 0 !important;
}
.sl-side-title::before,
.sl-side-title::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--sl-text);
	max-width: 2.2rem;
}
.sl-side-title {
	justify-content: center;
}
.sl-cats {
	list-style: none;
	padding: 0;
	margin: 0 !important;
	font-size: 0.875rem;
}
.sl-cats li {
	border-bottom: 1px solid var(--sl-line);
}
.sl-cats a {
	display: inline-block;
	padding: 0.55rem 0.3rem;
	color: var(--sl-text);
	text-decoration: none;
}
.sl-cats a::before {
	content: "›";
	margin-right: 0.6rem;
	color: var(--sl-navy);
	font-weight: 700;
}
.sl-cats a:hover {
	color: var(--sl-navy);
}
.sl-latest {
	padding: 0;
	margin: 0 !important;
}
.sl-latest li {
	margin-bottom: 1.1rem;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.6;
}
.sl-latest .wp-block-latest-posts__featured-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 4px;
}
.sl-latest a {
	color: var(--sl-text);
	text-decoration: none;
}
.sl-latest .wp-block-latest-posts__post-date {
	font-weight: 400;
	color: var(--sl-muted);
	font-size: 0.75rem;
}

/* ============ 記事ページ ============ */
.sl-article__cat {
	font-size: 0.75rem;
}
.sl-article__cat a {
	display: inline-block;
	background: var(--sl-navy);
	color: #fff;
	text-decoration: none;
	padding: 0.1rem 0.7rem;
	border-radius: 3px;
}
.sl-article__title {
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	font-weight: 900;
	line-height: 1.5;
	margin: 0.6rem 0 0.4rem;
}
.sl-article__date {
	font-size: 0.8125rem;
	color: var(--sl-muted);
}
.sl-article__eyecatch {
	margin: 1.2rem 0 2rem;
}
.sl-article__nav {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--sl-line);
	font-size: 0.875rem;
}
.sl-content h2 {
	background: var(--sl-navy);
	color: #fff;
	font-size: 1.3rem;
	font-weight: 800;
	padding: 0.7rem 1rem;
	border-radius: 4px;
	margin: 3rem 0 1.4rem;
}
.sl-content h3 {
	font-size: 1.125rem;
	font-weight: 800;
	border-bottom: 3px solid var(--sl-yellow);
	padding-bottom: 0.3rem;
	margin: 2.2rem 0 1rem;
}
.sl-content pre,
.sl-content .wp-block-code {
	background: #111827;
	color: #F9FAFB;
	border-radius: 8px;
	padding: 1.1rem 1.3rem;
	font-size: 0.875rem;
	line-height: 1.8;
	white-space: pre-wrap;
	border: 0;
}
.sl-content .wp-block-code code {
	color: inherit;
}
.sl-content ul li,
.sl-content ol li {
	margin-bottom: 0.3rem;
}
.sl-box {
	background: var(--sl-cream);
	border-left: 5px solid var(--sl-yellow);
	border-radius: 4px;
	padding: 1rem 1.3rem;
}
.sl-box > :first-child {
	margin-top: 0;
}
.sl-box > :last-child {
	margin-bottom: 0;
}
.sl-box-title {
	font-weight: 800;
	color: var(--sl-navy);
}
.sl-content table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.875rem;
}
.sl-content th,
.sl-content td {
	border: 1px solid var(--sl-line);
	padding: 0.5rem 0.7rem;
}
.sl-content th {
	background: var(--sl-cream);
}

/* ============ フッター ============ */
.sl-footer {
	background: #F7F7F7;
	padding: 2.5rem 1.25rem 2rem;
	margin-top: 0 !important;
}
.sl-footer__nav {
	font-size: 0.8125rem;
	gap: 0 !important;
}
.sl-footer__nav .wp-block-navigation-item {
	padding: 0 0.8rem;
	border-left: 1px solid #999;
}
.sl-footer__nav .wp-block-navigation-item:last-child {
	border-right: 1px solid #999;
}
.sl-footer__nav a {
	color: var(--sl-text);
	text-decoration: none;
}
.sl-footer__copy {
	font-size: 0.75rem;
	color: var(--sl-muted);
	margin-top: 1.2rem;
}

/* ============ TOPへボタン ============ */
.sl-to-top {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid var(--sl-navy);
	background: #fff;
	color: var(--sl-navy);
	font-size: 0.75rem;
	line-height: 1.1;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
	z-index: 60;
}
.sl-to-top span {
	font-size: 0.625rem;
}
.sl-to-top.is-show {
	opacity: 1;
	pointer-events: auto;
}

/* ============ スマホ ============ */
@media (max-width: 781px) {
	.sl-topbar__text {
		display: none;
	}
	.sl-topbar > .wp-block-group {
		justify-content: center;
	}
	.sl-header {
		padding: 0.8rem 1rem 0.4rem;
	}
	.sl-logo {
		font-size: 1.5rem;
	}
	.sl-hero {
		padding: 2.2rem 1rem !important;
		min-height: 320px !important;
	}
	.sl-main {
		padding: 1.8rem 1rem 3rem;
	}
	.sl-cards .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
	.sl-footer__nav .wp-block-navigation-item {
		border: 0 !important;
		padding: 0.2rem 0.6rem;
	}
}
@media (min-width: 782px) and (max-width: 1024px) {
	.sl-cards .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* =====================================================
   記事の部品（作成の手引き：.claude/rules/blog.md）
   ===================================================== */

/* ---------- 目次（article.js が自動で作る） ---------- */
.sl-toc {
	position: relative;
	background: #F8FAFC;
	border: 1px solid var(--sl-line);
	border-top: 4px solid var(--sl-navy);
	border-radius: 6px;
	padding: 1.2rem 1.6rem 1rem;
	margin: 2rem 0;
}
.sl-toc__title {
	text-align: center;
	font-weight: 800;
	margin: 0 0 0.6rem !important;
}
.sl-toc__title::before {
	content: "☰ ";
	color: var(--sl-navy);
}
.sl-toc ol {
	list-style: none;
	padding: 0;
	margin: 0;
}
.sl-toc__list > li {
	margin: 0.35rem 0;
	font-weight: 700;
	font-size: 0.9375rem;
}
.sl-toc__child li {
	margin: 0.15rem 0 0.15rem 1.4rem;
	font-weight: 400;
	font-size: 0.875rem;
}
.sl-toc a {
	color: var(--sl-text);
	text-decoration: none;
}
.sl-toc a:hover {
	color: var(--sl-navy);
	text-decoration: underline;
}
.sl-toc__num {
	display: inline-block;
	min-width: 2.2em;
	color: var(--sl-navy);
	font-weight: 700;
}
.sl-toc.is-folded .sl-toc__list {
	max-height: 15rem;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 70%, transparent);
	mask-image: linear-gradient(#000 70%, transparent);
}
.sl-toc__more {
	display: block;
	margin: 0.6rem auto 0;
	background: #fff;
	border: 1px solid #CBD5E1;
	border-radius: 999px;
	padding: 0.3rem 1.4rem;
	font-size: 0.8125rem;
	cursor: pointer;
}
.sl-to-toc {
	position: fixed;
	right: 1.5rem;
	bottom: 5.2rem;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid var(--sl-navy);
	background: #fff;
	color: var(--sl-navy);
	font-size: 1rem;
	line-height: 1.1;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
	z-index: 60;
}
.sl-to-toc span {
	font-size: 0.625rem;
}
.sl-to-toc.is-show {
	opacity: 1;
	pointer-events: auto;
}

/* ---------- シェアボタン ---------- */
.sl-share {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
	margin: 1rem 0 1.5rem;
}
.sl-share:empty {
	display: none;
}
.sl-share a,
.sl-share button {
	display: block;
	text-align: center;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.5rem 0;
	border: 0;
	border-radius: 3px;
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
}
.sl-share__x { background: #000; }
.sl-share__th { background: #333; }
.sl-share__fb { background: #3b5998; }
.sl-share__line { background: #06C755; }
.sl-share__copy { background: #6B7280; }

/* ---------- この記事を書いた人 ---------- */
.sl-author {
	display: flex;
	gap: 1.2rem;
	align-items: flex-start;
	border: 1px solid var(--sl-line);
	border-radius: 8px;
	padding: 1.3rem;
	margin: 1.5rem 0;
}
.sl-author__icon {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	flex: none;
	border: 3px solid var(--sl-cream);
}
.sl-author p {
	margin: 0;
}
.sl-author__label {
	font-size: 0.75rem;
	color: var(--sl-muted);
}
.sl-author__name {
	font-weight: 900;
	font-size: 1.125rem;
	color: var(--sl-navy);
}
.sl-author__text {
	font-size: 0.875rem;
	line-height: 1.9;
	word-break: keep-all;
	overflow-wrap: anywhere;
	margin-top: 0.3rem !important;
}
.sl-author__links {
	margin-top: 0.6rem !important;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.sl-author__links a {
	font-size: 0.75rem;
	border: 1px solid var(--sl-navy);
	border-radius: 999px;
	padding: 0.1rem 0.8rem;
	text-decoration: none;
}

/* ---------- タイトル付きの囲み（ポイント・注意・メモ） ---------- */
.sl-capbox {
	border: 2px solid var(--sl-navy);
	border-radius: 6px;
	padding: 1.6rem 1.3rem 1rem;
	margin: 2rem 0 1.5rem;
	position: relative;
}
.sl-capbox__title {
	position: absolute;
	top: -0.85rem;
	left: 1rem;
	background: var(--sl-navy);
	color: #fff;
	font-weight: 800;
	font-size: 0.875rem;
	padding: 0.1rem 0.9rem;
	border-radius: 4px;
	margin: 0 !important;
}
.sl-capbox > :last-child { margin-bottom: 0; }
.sl-capbox.is-point { border-color: var(--sl-yellow); background: #FFFBEF; }
.sl-capbox.is-point .sl-capbox__title { background: var(--sl-yellow); color: var(--sl-navy); }
.sl-capbox.is-point .sl-capbox__title::before { content: "💡 "; }
.sl-capbox.is-caution { border-color: #DC2626; background: #FEF2F2; }
.sl-capbox.is-caution .sl-capbox__title { background: #DC2626; }
.sl-capbox.is-caution .sl-capbox__title::before { content: "⚠️ "; }
.sl-capbox.is-memo { border-color: #93C5FD; background: #EFF6FF; }
.sl-capbox.is-memo .sl-capbox__title { background: #3B82F6; }
.sl-capbox.is-memo .sl-capbox__title::before { content: "📝 "; }

/* ---------- 吹き出し ---------- */
.sl-balloon {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin: 1.5rem 0;
}
.sl-balloon.is-right {
	flex-direction: row-reverse;
}
.sl-balloon__who {
	flex: none;
	width: 72px;
	text-align: center;
	font-size: 0.6875rem;
	color: var(--sl-muted);
	margin: 0 !important;
}
.sl-balloon__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 0.2rem;
	border-radius: 50%;
	border: 2px solid var(--sl-line);
	background: #fff;
	font-size: 2rem;
	overflow: hidden;
}
.sl-balloon__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sl-balloon__text {
	position: relative;
	background: #F3F4F6;
	border-radius: 10px;
	padding: 0.9rem 1.1rem;
	font-size: 0.9375rem;
	line-height: 1.8;
	margin: 0.4rem 0 0 !important;
}
.sl-balloon__text::before {
	content: "";
	position: absolute;
	top: 1.1rem;
	left: -8px;
	border: 8px solid transparent;
	border-left: 0;
	border-right-color: #F3F4F6;
}
.sl-balloon.is-right .sl-balloon__text {
	background: var(--sl-cream);
}
.sl-balloon.is-right .sl-balloon__text::before {
	left: auto;
	right: -8px;
	border: 8px solid transparent;
	border-right: 0;
	border-left-color: var(--sl-cream);
}

/* ---------- 手順（番号つきステップ） ---------- */
.sl-content ol.sl-steps {
	list-style: none;
	counter-reset: slstep;
	padding: 0;
	margin: 1.5rem 0;
}
.sl-content ol.sl-steps > li {
	counter-increment: slstep;
	position: relative;
	padding: 0 0 1.4rem 3.2rem;
	margin: 0;
}
.sl-content ol.sl-steps > li::before {
	content: counter(slstep);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	background: var(--sl-navy);
	color: #fff;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sl-content ol.sl-steps > li::after {
	content: "";
	position: absolute;
	left: 1.07rem;
	top: 2.4rem;
	bottom: 0.2rem;
	border-left: 2px dashed #CBD5E1;
}
.sl-content ol.sl-steps > li:last-child::after {
	display: none;
}
.sl-content ol.sl-steps > li > strong:first-child {
	display: block;
	font-size: 1.0625rem;
	margin-bottom: 0.2rem;
}

/* ---------- チェックリスト ---------- */
.sl-content ul.sl-check {
	list-style: none;
	padding: 1rem 1.3rem;
	background: #F8FAFC;
	border-radius: 6px;
}
.sl-content ul.sl-check > li {
	position: relative;
	padding-left: 1.7rem;
}
.sl-content ul.sl-check > li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: #16A34A;
	font-weight: 900;
}

/* ---------- 図解・画像 ---------- */
.sl-content .sl-figure img {
	border: 1px solid var(--sl-line);
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.sl-content .sl-figure figcaption {
	text-align: center;
	font-size: 0.8125rem;
	color: var(--sl-muted);
}

/* ---------- プロンプト（コードブロックの上に見出し） ---------- */
.sl-content .wp-block-code.sl-prompt {
	position: relative;
	padding-top: 2.3rem;
}
.sl-content .wp-block-code.sl-prompt::before {
	content: "● ● ●　プロンプト";
	position: absolute;
	top: 0.7rem;
	left: 1.3rem;
	font-size: 0.75rem;
	color: #9CA3AF;
	letter-spacing: 0.05em;
}

/* ---------- マーカー ---------- */
.sl-content .sl-marker,
.sl-content mark {
	background: linear-gradient(transparent 60%, #FFE38A 60%);
	color: inherit;
	font-weight: 700;
	padding: 0 0.1em;
}

@media (max-width: 781px) {
	.sl-share {
		grid-template-columns: repeat(3, 1fr);
	}
	.sl-author {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.sl-author__links {
		justify-content: center;
	}
	.sl-balloon__who {
		width: 56px;
	}
	.sl-balloon__icon {
		width: 50px;
		height: 50px;
	}
}
.sl-capbox__title + * {
	margin-top: 0 !important;
}
.sl-capbox {
	padding-top: 1.4rem;
}
.sl-footer__policy {
	font-size: 0.8125rem;
	margin-top: 1rem;
}
.sl-footer__policy a {
	color: var(--sl-text);
}

/* ---------- 写真（縦長の写真が大きくなりすぎないように） ---------- */
.sl-content .wp-block-image.sl-figure img {
	max-height: 560px;
	width: auto;
	max-width: 100%;
	margin: 0 auto;
	display: block;
}
.sl-content .wp-block-gallery.sl-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 1.5rem 0;
}
.sl-content .wp-block-gallery.sl-gallery .wp-block-image {
	margin: 0;
	width: 100% !important;
}
.sl-content .wp-block-gallery.sl-gallery .wp-block-image img {
	width: 100%;
	height: 320px;
	max-height: none;
	object-fit: cover;
}
@media (max-width: 781px) {
	.sl-content .wp-block-gallery.sl-gallery .wp-block-image img {
		height: 200px;
	}
}

/* ---------- タブ（.sl-tabs の中の .sl-tab-panel を切り替える。見出しは .sl-tab-label） ---------- */
.sl-tabs__nav {
	display: flex;
	gap: 6px;
	margin: 0 0 1.5rem;
	border-bottom: 3px solid #1E3A8A;
	position: sticky;
	top: 0;
	z-index: 5;
	background: #fff;
	padding-top: 6px;
}
.sl-tabs__nav button {
	flex: 1;
	padding: 12px 8px;
	border: 0;
	border-radius: 8px 8px 0 0;
	background: #FFF4DA;
	color: #1E3A8A;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}
.sl-tabs__nav button.is-active {
	background: #1E3A8A;
	color: #fff;
}
.sl-tabs.is-ready .sl-tab-label {
	display: none;
}
.sl-tabs.is-ready .sl-tab-panel:not(.is-active) {
	display: none;
}
.sl-tab-label {
	font-weight: 700;
	color: #1E3A8A;
}

/* 写真一覧（3列。押すと大きく見られる） */
.sl-content .wp-block-gallery.has-nested-images.sl-gallery--all {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}
.sl-content .wp-block-gallery.has-nested-images.sl-gallery--all figure.wp-block-image:not(#individual-image) img {
	flex: 0 0 auto;
	height: 220px !important;
	width: 100%;
	object-fit: cover;
}
@media (max-width: 781px) {
	.sl-content .wp-block-gallery.has-nested-images.sl-gallery--all {
		gap: 4px;
	}
	.sl-content .wp-block-gallery.has-nested-images.sl-gallery--all figure.wp-block-image:not(#individual-image) img {
		height: 120px !important;
	}
	.sl-content .wp-block-gallery.has-nested-images.sl-gallery--all figcaption {
		font-size: 0.65rem;
	}
}

/* 改行させたくない1行（プロフィール文など） */
.sl-nowrap {
	white-space: nowrap;
}

/* サイドバーの幅を固定（プロフィール文が1行に収まる幅）。狭い画面では本文の下に回す */
@media (min-width: 1025px) {
	.sl-layout > .wp-block-column:first-child {
		flex: 1 1 0 !important;
		min-width: 0;
	}
	.sl-layout > .wp-block-column:last-child {
		flex: 0 0 336px !important;
	}
}
@media (max-width: 1024px) {
	.sl-layout {
		flex-wrap: wrap !important;
	}
	.sl-layout > .wp-block-column {
		flex-basis: 100% !important;
	}
}
.sl-profile {
	padding: 1.25rem 1rem;
}
/* とても狭い画面では、1行の文字を少し小さくして収める */
.sl-profile,
.sl-author {
	container-type: inline-size;
}
.sl-profile .sl-nowrap,
.sl-author .sl-nowrap {
	font-size: min(1em, calc(100cqi / 21.5));
}
