/* いつもしも しおり（色はサイトに合わせる：ピンク #e37878 / うすピンク #ffe0de） */
.itn-shiori-btn {
	position: fixed;
	right: 10px;
	bottom: 142px;
	z-index: 99998;
	/* 「あとで読む」ボタンと同じ正円・枠・影 */
	width: 50px;
	height: 50px;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 50%;
	background: #fff;
	box-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
	-webkit-tap-highlight-color: transparent;
}
.itn-shiori-btn.is-show {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.itn-shiori-btn > img.itn-shiori-icon {
	/* テーマの img{height:auto; max-width:100%} に負けないよう詳しく指定 */
	width: 19px;
	height: 27px;
	max-width: none;
	display: block;
	pointer-events: none;
}
.itn-shiori-btn span {
	font-size: 9px;
	line-height: 1;
	margin-top: 1px;
	color: #333;
	letter-spacing: 0.05em;
}
.itn-shiori-btn.is-set {
	background: #ffe0de;
	border-color: #e37878;
}
.itn-shiori-btn:focus-visible {
	outline: 3px solid #e37878;
	outline-offset: 2px;
}

.itn-shiori-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100001;
	max-width: calc(100% - 32px);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px 10px 12px;
	border-radius: 12px;
	background: #fff;
	border: 2px solid #e37878;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	color: #444;
	font-size: 13px;
	line-height: 1.5;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 12px);
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
	pointer-events: none;
}
.itn-shiori-toast.is-show {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}
.itn-shiori-toast img {
	width: 34px;
	height: auto;
	flex: none;
}
.itn-shiori-toast b {
	color: #e37878;
}
.itn-shiori-toast small {
	font-size: 11px;
	color: #777;
}

.itn-shiori-banner {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 100000;
	width: 380px;
	max-width: calc(100% - 80px);
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 34px 12px 12px;
	border-radius: 14px;
	background: #fff;
	border: 2px solid #e37878;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	color: #444;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.3s, transform 0.3s;
}
.itn-shiori-banner.is-show {
	opacity: 1;
	transform: none;
}
.itn-shiori-banner > img {
	width: 42px;
	height: auto;
	flex: none;
}
.itn-shiori-banner-body {
	min-width: 0;
}
.itn-shiori-banner p {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.5;
}
.itn-shiori-banner-title {
	font-size: 13px;
	font-weight: bold;
	color: #e37878;
}
.itn-shiori-banner-where {
	font-size: 13px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.itn-shiori-banner-actions {
	margin-top: 8px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}
.itn-shiori-banner button {
	font-family: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.itn-shiori-go {
	padding: 7px 16px;
	border: 0;
	border-radius: 999px;
	background: #e37878;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.3;
}
.itn-shiori-remove {
	padding: 4px 0;
	border: 0;
	background: none;
	color: #888;
	font-size: 12px;
	text-decoration: underline;
}
.itn-shiori-close {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	color: #999;
	font-size: 22px;
	line-height: 28px;
}

/* 続きから読んだ時の「ここから」の目印（数秒で消える） */
.itn-shiori-mark {
	position: absolute;
	z-index: 9999;
	height: 28px;
	border-top: 3px solid #e37878;
	pointer-events: none;
	opacity: 0;
}
.itn-shiori-mark span {
	position: absolute;
	left: 0;
	top: -3px;
	padding: 3px 10px;
	border-radius: 0 0 8px 0;
	background: #e37878;
	color: #fff;
	font-size: 11px;
	font-weight: bold;
	line-height: 1.3;
}
.itn-shiori-mark.is-show {
	animation: itn-shiori-fade 4.5s ease forwards;
}
@keyframes itn-shiori-fade {
	0% { opacity: 0; }
	10% { opacity: 1; }
	75% { opacity: 1; }
	100% { opacity: 0; }
}

@media (max-width: 599px) {
	.itn-shiori-btn {
		width: 40px;
		height: 40px;
		bottom: 212px;
	}
	.itn-shiori-btn > img.itn-shiori-icon {
		width: 15px;
		height: 21px;
	}
	.itn-shiori-btn span {
		font-size: 8px;
	}
	.itn-shiori-banner {
		left: 10px;
		bottom: 10px;
		max-width: calc(100% - 66px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.itn-shiori-btn,
	.itn-shiori-toast,
	.itn-shiori-banner {
		transition: none;
	}
}
