@charset "UTF-8";
/* =========================================================
   記事ページ 追従目次（h2のみ）＋ 左側 縦SNSシェア
   by Claude 2026.06.20
   - 目次：右側レール（SWELLウィジェットの位置）
   - シェア：左側に縦並び（カード無し・素アイコン）
   ========================================================= */

/* --- レール幅などの基準値 --- */
:root {
	--ust-share-w: 40px;    /* シェアの幅（左側・1アイコン分） */
	--ust-share-gap: 32px;  /* シェアと本文の間隔 */
}

/* === PC：本文左側にシェア用レールを確保（右側はSWELLサイドバーが担当） === */
@media (min-width: 1200px) {
	body.single-post .l-article {
		margin-left: calc(var(--ust-share-w) + var(--ust-share-gap) + 24px);
	}
}

/* === 目次本体（SWELLサイドバーのウィジェット内に sticky 配置） === */
.ust-toc {
	position: sticky;
	top: calc(var(--swl-fix_headerH, 90px) + 20px);
	z-index: 1;
	width: 100%;
	max-height: calc(100vh - var(--swl-fix_headerH, 90px) - 40px);
	padding: 18px 20px 20px;
	background: #fff;
	border: 1px solid #e3e8ef;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(13, 48, 88, 0.08);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	font-feature-settings: "palt";
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease;
}
.ust-toc.is-ready {
	opacity: 1;
	visibility: visible;
}

/* 見出し「目次」 */
.ust-toc__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eef1f5;
	font-size: 15px;
	font-weight: 700;
	color: #0D3058;
	letter-spacing: .02em;
}
.ust-toc__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: #2571d8;
}

/* リスト本体（縦の接続線） */
.ust-toc__list {
	position: relative;
	margin: 0;
	padding: 2px 0;
	list-style: none;
}
.ust-toc__list::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 10px;
	bottom: 10px;
	width: 2px;
	background: #e7ecf2;
}

.ust-toc__item {
	position: relative;
	padding-left: 22px;
}
.ust-toc__item + .ust-toc__item {
	margin-top: 4px;
}
.ust-toc__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 12px;
	height: 12px;
	background: #fff;
	border: 2px solid #cdd5df;
	border-radius: 50%;
	box-sizing: border-box;
	transition: border-color .15s ease, background-color .15s ease;
}

.ust-toc__link {
	display: block;
	padding: 5px 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: #5b6573;
	text-decoration: none;
	transition: color .15s ease;
	cursor: pointer;
	word-break: break-word;
}
.ust-toc__link:hover {
	color: #2571d8;
}

/* アクティブ状態 */
.ust-toc__item.is-active::before {
	background: #2571d8;
	border-color: #2571d8;
}
.ust-toc__item.is-active > .ust-toc__link {
	color: #2571d8;
	font-weight: 700;
}

/* スクロールバーを控えめに */
.ust-toc::-webkit-scrollbar { width: 6px; }
.ust-toc::-webkit-scrollbar-thumb { background: #d7dee6; border-radius: 3px; }

/* === 左側 縦シェアボタン（カード無し・素アイコン縦並び） === */
/* SWELLの .-fix.c-shareBtns（詳細度3）に勝つため .ust-share を加えて詳細度4で上書き */
.c-shareBtns.-fix.ust-share {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}
.ust-share__label { display: none !important; }

.c-shareBtns.-fix.ust-share .c-shareBtns__list {
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
}
.c-shareBtns.-fix.ust-share .c-shareBtns__item {
	flex: 0 0 auto;
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: none;
	margin: 0;
}
.c-shareBtns.-fix.ust-share .c-shareBtns__btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	padding: 0;
	transition: transform .15s ease, opacity .15s ease;
}
.c-shareBtns.-fix.ust-share .c-shareBtns__btn:hover {
	transform: translateY(-2px);
	opacity: .85;
}
.c-shareBtns.-fix.ust-share .c-shareBtns__icon {
	font-size: 18px;
}
/* 幅広のURLコピーボタンは縦並びに馴染まないので非表示（小さいコピーアイコンは残す） */
.c-shareBtns.-fix.ust-share .c-big-urlcopy {
	display: none !important;
}

/* SP/タブレットは非表示（SWELLの本文内目次／既定シェアを使用） */
@media (max-width: 1199px) {
	.ust-toc { display: none !important; }
	body.single-post .l-article {
		margin-left: auto;
	}
}
