/* ==========================================================
   ple-cre Side CTA（保堂仕様）
   配色はすべて --psc-base から生成した変数で塗る。
   ========================================================== */

/* ---------- PC：右端の縦タブ ---------- */

.psc-pc{
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%) translateX(14px);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	max-height: 94vh;
	z-index: var(--psc-z, 900);
	opacity: 0;
	visibility: hidden;
	transition: opacity .45s ease, transform .45s ease, visibility .45s;
}

.psc-pc.is-visible{
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

.psc-pc a{
	writing-mode: vertical-rl;
	text-orientation: upright;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: var(--psc-tab-w, 56px);
	padding: var(--psc-tab-p, 22px) 0;
	border-radius: var(--psc-radius, 4px) 0 0 var(--psc-radius, 4px);
	text-decoration: none;
	font-size: var(--psc-fs-pc, 15px);
	font-weight: 600;
	letter-spacing: .16em;
	line-height: 1;
	transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}

.psc-pc a:hover{
	transform: translateX(-6px);
}

.psc-pc a:focus-visible{
	outline: 2px solid var(--psc-deep);
	outline-offset: 3px;
}

/* ---------- 配色バリエーション（PC・SP共通） ---------- */

.psc .psc-style-solid{
	background: var(--psc-base);
	color: var(--psc-on, #fff);
}
.psc .psc-style-solid:hover{
	background: var(--psc-deep);
}

.psc .psc-style-deep{
	background: var(--psc-deep);
	color: var(--psc-on, #fff);
}
.psc .psc-style-deep:hover{
	background: var(--psc-base);
}

.psc .psc-style-outline{
	background: #fff;
	color: var(--psc-deep);
	box-shadow: inset 0 0 0 1px var(--psc-line);
}
.psc .psc-style-outline:hover{
	background: var(--psc-base);
	color: var(--psc-on, #fff);
	box-shadow: inset 0 0 0 1px var(--psc-base);
}

/* ---------- アイコン ---------- */

.psc-pc .psc-ico{
	writing-mode: horizontal-tb;
	align-self: center;
	flex: 0 0 auto;
	display: block;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	letter-spacing: 0;
	line-height: 0;
}

.psc-pc .psc-ico svg,
.psc-sp .psc-ico svg{
	width: 20px;
	height: 20px;
	display: block;
}

/* ---------- バッジ ---------- */

.psc-pc .psc-tag{
	align-self: center;
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	padding: 7px 3px;
	border-radius: 2px;
	background: rgba(255,255,255,.22);
}

.psc .psc-style-outline .psc-tag{
	background: var(--psc-soft);
	color: var(--psc-deep);
}
.psc .psc-style-outline:hover .psc-tag{
	background: rgba(255,255,255,.24);
	color: inherit;
}

/* ---------- 縦中横（LINE などの半角英数字） ---------- */

.psc-pc .psc-tcy{
	-webkit-text-combine: horizontal;
	-ms-text-combine-horizontal: all;
	text-combine-upright: all;
	letter-spacing: 0;
}

.psc-sp .psc-tcy{
	text-combine-upright: none;
}

/* ---------- SP：画面下部のバー ---------- */

.psc-sp{
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: var(--psc-z, 900);
	grid-template-columns: repeat(4, minmax(0, 1fr));
	transform: translateY(100%);
	transition: transform .4s ease;
}

.psc-sp.is-visible{
	transform: translateY(0);
}

.psc-sp a{
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-decoration: none;
	text-align: center;
	padding: 12px 4px 14px;
	font-size: var(--psc-fs-sp, 12px);
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.35;
	transition: background .3s ease, color .3s ease;
}

/* タイル型：地の色の上にタイルを並べ、右下に三角を置く */

.psc-sp-tile{
	gap: var(--psc-sp-gap, 6px);
	padding: var(--psc-sp-gap, 6px);
	padding-bottom: calc(var(--psc-sp-gap, 6px) + env(safe-area-inset-bottom));
	background: var(--psc-bar-bg, #fff);
	box-shadow: 0 -1px 0 var(--psc-hair);
}

.psc-sp-tile a{
	border-radius: var(--psc-sp-radius, 3px);
}

.psc-sp-tile a::after{
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 0 11px 11px;
	border-color: transparent transparent rgba(0,0,0,.25) transparent;
}

.psc .psc-sp-tile .psc-style-outline::after{
	border-bottom-color: var(--psc-base);
}

/* フラット型：画面幅いっぱいに等分割する */

.psc-sp-flat{
	gap: 1px;
	background: var(--psc-hair);
	box-shadow: 0 -1px 0 var(--psc-hair);
	padding-bottom: env(safe-area-inset-bottom);
}

/* 枠線スタイルはSPでは面で見せたいので淡色で塗る */
.psc .psc-sp .psc-style-outline{
	background: var(--psc-soft);
	box-shadow: none;
}

.psc-sp .psc-ico{
	display: block;
	width: 20px;
	height: 20px;
	line-height: 0;
}

.psc-sp .psc-tag{
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	padding: 1px 5px;
	border-radius: 2px;
	background: rgba(255,255,255,.22);
}

.psc .psc-sp .psc-style-outline .psc-tag{
	background: var(--psc-base);
	color: #fff;
}

/* 横幅が狭い画面ではさらに詰める */
@media (max-width: 400px){
	.psc-sp a{
		font-size: 11px;
		letter-spacing: 0;
		padding-left: 2px;
		padding-right: 2px;
	}
	.psc-sp .psc-tag{
		font-size: 9px;
		padding: 1px 4px;
	}
	.psc-sp-tile a::after{
		border-width: 0 0 9px 9px;
	}
}

@media (max-width: 340px){
	.psc-sp a{
		font-size: 10px;
	}
}

/* 4ボタン構成（psc-n4）は1列あたりの幅がさらに狭いため、一段小さくする */
@media (max-width: 480px){
	.psc-sp.psc-n4 a{
		font-size: 11px;
		letter-spacing: 0;
		padding-left: 2px;
		padding-right: 2px;
	}
	.psc .psc-sp.psc-n4 .psc-tag{
		display: none;
	}
}

@media (max-width: 380px){
	.psc-sp.psc-n4 a{
		font-size: 10px;
	}
	.psc .psc-sp.psc-n4 .psc-ico,
	.psc .psc-sp.psc-n4 .psc-ico svg{
		width: 18px;
		height: 18px;
	}
}

@media (prefers-reduced-motion: reduce){
	.psc-pc,
	.psc-sp,
	.psc-pc a,
	.psc-sp a{
		transition: none;
	}
}
