@charset "utf-8";

/* 料金表の共通スタイル（ryokin_all ほか、keihi パーシャル用） */

.keihi-page {
	font-size: 0.9rem;
	line-height: 1.4;
}

.keihi-lead {
	margin: 0 0 1rem;
	line-height: 1.6;
}

.keihi-hr {
	margin: 3rem 0 0 0;
	border-top: 2px solid #41414a;
}

.keihi-toc {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 1.2rem 0 1.6rem;
}

.keihi-toc a {
	display: inline-block;
	padding: 8px 14px;
	background: #f4f4f4;
	border: 1px solid #ccc;
	border-radius: 4px;
	color: #333;
	text-decoration: none;
	font-weight: bold;
	font-size: 0.85rem;
}

.keihi-toc a:hover,
.keihi-toc a:focus {
	background: #e8eef7;
	border-color: #7a9cc7;
	color: #1a3a6b;
}

.keihi-section {
	margin-top: 3.5rem;
	scroll-margin-top: 5.5rem;
}

.keihi-section > h2 {
	font-size: 1.3rem;
	padding: 0.1rem 0.5em;
	color: #494949;
	background: transparent;
	border-left: solid 10px #727272;
	margin: 0 0 0.4rem;
	line-height: 1.4;
}

.keihi-to-page {
	text-align: right;
	font-size: 0.75rem;
	margin: 0 0 0.8rem;
}

.keihi-to-page a {
	color: #2153a5;
	text-decoration: underline;
}

.keihi-block h3,
.keihi-sub {
	font-size: 1.1rem;
	padding: 0.15rem 0.4em;
	color: #494949;
	background: transparent;
	border-left: solid 6px #27acd9;
	margin: 1.6rem 0 0.6rem;
	line-height: 1.35;
}

.keihi-block h3:first-child,
.keihi-block .keihi-sub:first-child {
	margin-top: 0.4rem;
}

.keihi-tax {
	text-align: end;
	font-size: 0.7rem;
	margin: 0.4rem 0.2rem 0.6rem;
}

.keihi-table-wrap {
	position: relative;
	margin: 0 0 0.2rem;
}

.keihi-table-meta {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	margin: 0 0 0.35rem;
}

.keihi-table-meta .keihi-tax {
	margin: 0;
	font-size: 0.7rem;
	color: #555;
	text-align: end;
}

.keihi-bill-badge {
	display: inline-block;
	padding: 0.22em 0.75em;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: bold;
	letter-spacing: 0.04em;
	line-height: 1.3;
	color: #fff;
	white-space: nowrap;
}

.keihi-bill-prev {
	background: #3b6ea5;
}

.keihi-bill-curr {
	background: #1a8f6a;
}

.keihi-block .table-window {
	overflow-x: auto !important;
	overflow-y: hidden !important;
	width: 100%;
	-webkit-overflow-scrolling: touch;
}

.keihi-block .table-window .scroll-hint-icon-wrap {
	overflow: hidden;
}

.keihi-block .table-window table {
	margin: 0;
	border-spacing: 0;
}

.keihi-block table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
}

.keihi-block th,
.keihi-block td {
	text-align: center;
	vertical-align: middle;
	padding: 10px 8px;
	line-height: 1.25;
	border-bottom: solid 2px #fff;
}

.keihi-block thead th,
.keihi-block tbody th {
	position: relative;
	background-color: #666;
	color: #fff;
	font-weight: bold;
	border-right: 3px solid #fff;
	box-shadow: inset 0 -2px 0 #fff;
}

.keihi-block td {
	background-color: #eee;
	border-right: 3px solid #fff;
	min-width: 60px;
}

.keihi-block tbody tr:last-child th,
.keihi-block tbody tr:last-child td {
	border-bottom: none;
	box-shadow: none;
}

/* プレミアム料金表の2行目（月額）だけ高くして、横スクロールヒントが収まるようにする */
.keihi-block .keihi-table-premium tbody tr th,
.keihi-block .keihi-table-premium tbody tr td {
	padding-top: 16px;
	padding-bottom: 16px;
	line-height: 2;
}

.keihi-block .keihi-kome,
.keihi-block .kome {
	font-size: 0.6rem;
	line-height: 1;
	margin: 0;
	padding: 0 2px;
}

.keihi-block .nw,
.keihi-block td span,
.keihi-block th span {
	white-space: nowrap;
}

/* 集団表：列見出し行 */
.keihi-block tr.keihi-colhead th {
	background-color: #fff;
	color: #fff;
}

.keihi-block tr.keihi-colhead td {
	background-color: #bbb;
	font-weight: bold;
	color: #333;
}

.keihi-block .keihi-table-group th {
	width: 17vw;
	max-width: 200px;
	min-width: 65px;
}

.keihi-block .table-window .keihi-table-group th {
	position: sticky;
	left: 0;
	top: 0;
	z-index: 2;
	line-height: 1rem;
	font-size: 0.8rem;
}

.keihi-block .table-window .keihi-table-group td:nth-child(2):not(.keihi-exclude) {
	position: sticky;
	left: 65px;
	z-index: 1;
	background-color: #ccc;
	width: 19vw;
	min-width: 50px;
	max-width: 200px;
	line-height: 1rem;
	font-size: 0.8rem;
}

.keihi-block .table-window .keihi-table-group tr:first-child th:first-child {
	z-index: 3;
}

.keihi-block td.keihi-stay span {
	position: sticky;
	left: 225px;
}

@media (max-width: 500px) {
	.keihi-block td.keihi-stay {
		text-align: left;
	}
}

.keihi-block .bg-pink {
	color: #fff;
	background: #fb37f9;
}

/* 注釈ジャンプ（表内） */
.keihi-block .table-window th a[href^="#"] {
	color: #fff;
	text-decoration: none;
}

.keihi-block .table-window th a[href^="#"]:hover,
.keihi-block .table-window th a[href^="#"]:focus {
	text-decoration: underline;
}

.keihi-block .table-window td a[href^="#"] {
	color: inherit;
	text-decoration: none;
}

.keihi-block .table-window td a[href^="#"]:hover,
.keihi-block .table-window td a[href^="#"]:focus {
	text-decoration: underline;
}

.keihi-notes {
	padding: 8px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #666;
	text-indent: -1em;
	padding-left: 1em;
	margin: 0 0 0.4rem;
}

.keihi-notes li {
	list-style-type: none;
	margin: 0 0 0.35rem;
	scroll-margin-top: 5.5rem;
}

.keihi-notes a {
	color: #2153a5;
	text-decoration: underline;
}

.keihi-opt {
	margin: 1rem 0 0.4rem;
	padding: 1rem 1.1rem;
	background: #f7faf8;
	border: 1px solid #c5ddd0;
	border-left: 8px solid #059669;
	border-radius: 6px;
}

.keihi-opt h4 {
	margin: 0 0 0.4rem;
	font-size: 1rem;
	color: #1f4d3a;
	padding: 0;
}

.keihi-opt p {
	margin: 0 0 0.35rem;
	line-height: 1.55;
	font-size: 0.85rem;
}

.keihi-opt p:last-child {
	margin-bottom: 0;
}

.keihi-pace {
	margin: 0 0 0.7rem;
	font-size: 0.85rem;
	color: #555;
	line-height: 1.5;
}

@keyframes keihi-anchor-flash {
	0%, 100% {
		background-color: transparent;
		box-shadow: none;
	}
	50% {
		background-color: rgba(255, 236, 160, 0.92);
		box-shadow: 0 0 0 2px rgba(255, 200, 80, 0.55);
	}
}

.keihi-notes li.keihi-jump-highlight {
	border-radius: 6px;
	animation: keihi-anchor-flash 0.55s ease-in-out 2;
}
