/* 料金表ページ（/price/）
--------------------- */
.price-page {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 0 20px 4rem;
	overflow-x: hidden; /* ページ全体の横スクロール防止 */
}

/* ページ見出し（PRICE / 料金表）— #philosophy と同系統・中央揃え */
#main > .subpage.price-page > section.concept_top {
	text-align: center;
}

#main > .subpage.price-page > section.concept_top > .heading-sub {
	font-family: "Roboto", sans-serif;
	font-size: 20px;
	font-weight: bold;
	color: #f29c91;
}

#main > .subpage.price-page > section.concept_top > h2 {
	font-family: "Zen Maru Gothic", sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: #333;
	letter-spacing: 0;
}

@media all and (max-width: 769px) {
	#main > .subpage.price-page > section.concept_top > .heading-sub {
		font-size: 18px;
	}

	#main > .subpage.price-page > section.concept_top > h2 {
		font-size: 26px;
	}
}

.price-page__intro {
	text-align: center;
	margin: 1.5rem 0 2rem;
	line-height: 1.7;
}

.price-panel__title {
	text-align: center;
	margin: 0 0 2rem;
	line-height: 1.7;
	font-weight: 600;
	color: #333;
}

.price-tabs__nav {
	display: flex;
	justify-content: stretch;
	align-items: stretch;
	gap: 4px;
	margin: 0 auto 2rem;
	max-width: 560px;
	padding: 4px;
	background: #ececec;
	border-radius: 10px;
	border-bottom: none;
	box-sizing: border-box;
}

.price-tabs__btn {
	appearance: none;
	flex: 1 1 50%;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0.95rem 1rem;
	font-size: 1.05em;
	font-weight: bold;
	color: #777;
	text-align: center;
	position: relative;
	border-radius: 8px;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.price-tabs__btn.is-active {
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.price-tabs__btn[data-price-tab="care"].is-active {
	background: #608FB1;
}

.price-tabs__btn[data-price-tab="medical"].is-active {
	background: #F29C91;
}

.price-tabs__btn:not(.is-active):hover {
	background: rgba(255, 255, 255, 0.65);
	color: #444;
}

.price-tabs__btn.is-active::after {
	display: none;
}

.price-tabs__panel[hidden] {
	display: none !important;
}

.price-tabs__panel {
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.price-block {
	margin-bottom: 2.5rem;
}

.price-block__title {
	font-size: 1.2em;
	text-align: left;
	margin-bottom: 1rem;
	padding-left: 12px;
	border-left: 5px solid #608FB1;
	line-height: 1.4;
}

#price-panel-medical .price-block__title {
	border-left-color: #F29C91;
}

.price-block__note {
	font-size: 0.9em;
	color: #666;
	line-height: 1.7;
	margin: 0 0 1rem;
	padding: 0 0.5rem;
}

.price-block__lead {
	margin: 0 0 1rem;
	padding: 0 0.5rem;
	line-height: 1.6;
	color: #555;
}

/* --------------------------------------------------
   .price-list 内テーブル共通
   TablePress (.tablepress) にも同じ見た目を適用
   ※トップは横線のみ / 料金ページはセル枠線
-------------------------------------------------- */
.price-list {
	background: #fff;
	border-radius: 12px;
	padding: 30px 20px;
	overflow-x: auto; /* 狭い幅ではこの中で横スクロール */
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
}

/* 管理画面ログイン時に出る「編集」リンクは非表示 */
.price-list .tablepress > caption {
	display: none !important;
}

.price-list table,
.price-list .tablepress {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: auto;
	text-align: left;
	margin: 0 !important;
	background: transparent !important;
}

/* --- トップ用：横ラインのみ --- */
.pr-tb .price-list thead,
.pr-tb .price-list .tablepress thead {
	border-bottom: 1px solid rgba(120, 120, 120, 0.3);
}

.pr-tb .price-list th,
.pr-tb .price-list .tablepress th {
	padding: 1rem 0.5rem 1rem 0 !important;
	font-size: inherit !important;
	font-weight: 600 !important;
	color: rgba(80, 80, 80, 0.75) !important;
	background: transparent !important;
	border: none !important;
	text-align: left !important;
	vertical-align: middle;
	line-height: 1.4;
}

.pr-tb .price-list th:last-child,
.pr-tb .price-list .tablepress th:last-child {
	text-align: right !important;
	padding-right: 0 !important;
	padding-left: 0.5rem !important;
}

.pr-tb .price-list td,
.pr-tb .price-list .tablepress td {
	padding: 1rem 0.5rem 1rem 0 !important;
	font-size: inherit !important;
	font-weight: 400 !important;
	color: #333 !important;
	background: transparent !important;
	border: none !important;
	border-top: 1px solid rgba(120, 120, 120, 0.1) !important;
	text-align: left !important;
	vertical-align: middle;
	line-height: 1.5;
}

.pr-tb .price-list tbody tr:first-child td,
.pr-tb .price-list .tablepress tbody tr:first-child td {
	border-top: none !important;
}

.pr-tb .price-list td:last-child,
.pr-tb .price-list .tablepress td:last-child {
	text-align: right !important;
	font-weight: 700 !important;
	color: #222 !important;
	padding-right: 0 !important;
	padding-left: 0.5rem !important;
	white-space: nowrap;
}

/* --- 料金ページ用：各セルに枠線 --- */
.price-page .price-list {
	padding: 16px;
}

.price-page .price-list table,
.price-page .price-list .tablepress {
	/* パネル1000px − .price-list 左右padding 16px×2 */
	min-width: calc(1000px - 32px);
	border: 1px solid #ddd !important;
}

/* その他の料金（id=6）は幅を抑える */
.price-page .price-list .tablepress-id-6 {
	width: 500px !important;
	min-width: 500px !important;
	max-width: 500px !important;
}

.price-page .price-list th,
.price-page .price-list .tablepress th {
	padding: 10px 12px !important;
	font-size: inherit !important;
	font-weight: 600 !important;
	color: #555 !important;
	background: #f7f7f7 !important;
	border: 1px solid #ddd !important;
	text-align: center !important;
	vertical-align: middle;
	line-height: 1.4;
}

.price-page .price-list td,
.price-page .price-list .tablepress td {
	padding: 10px 12px !important;
	font-size: inherit !important;
	font-weight: 400 !important;
	color: #333 !important;
	background: #fff !important;
	border: 1px solid #ddd !important;
	text-align: left !important;
	vertical-align: middle;
	line-height: 1.5;
}

/* 左端列・先頭2行を見出し扱い（背景色＋中央揃え）
   ※ id=6（その他の料金）は thead のみ見出し。左端列・2行目は対象外 */
.price-page .price-list .tablepress thead th,
.price-page .price-list .tablepress thead td,
.price-page .price-list .tablepress:not(.tablepress-id-6) .column-1,
.price-page .price-list .tablepress:not(.tablepress-id-6) .row-1 th,
.price-page .price-list .tablepress:not(.tablepress-id-6) .row-1 td,
.price-page .price-list .tablepress:not(.tablepress-id-6) .row-2 th,
.price-page .price-list .tablepress:not(.tablepress-id-6) .row-2 td {
	background: #f7f7f7 !important;
	font-weight: 600 !important;
	color: #555 !important;
	text-align: center !important;
}

/* 単位数・1割〜3割（column-4〜7）の本文セルは右揃え
   ※ 見出し行（row-1 / row-2）は上の中央揃えを優先
   ※ :last-child は rowspan 行で誤適用されるため使わない */
.price-page .price-list .tablepress:not(.tablepress-id-6) td.column-4,
.price-page .price-list .tablepress:not(.tablepress-id-6) td.column-5,
.price-page .price-list .tablepress:not(.tablepress-id-6) td.column-6,
.price-page .price-list .tablepress:not(.tablepress-id-6) td.column-7,
.price-page .price-list .tablepress-id-6 td:last-child {
	text-align: right !important;
	letter-spacing: 0.05em;
}

.price-page .price-list .tablepress:not(.tablepress-id-6) .row-1 td.column-4,
.price-page .price-list .tablepress:not(.tablepress-id-6) .row-1 td.column-5,
.price-page .price-list .tablepress:not(.tablepress-id-6) .row-1 td.column-6,
.price-page .price-list .tablepress:not(.tablepress-id-6) .row-1 td.column-7,
.price-page .price-list .tablepress:not(.tablepress-id-6) .row-2 td.column-4,
.price-page .price-list .tablepress:not(.tablepress-id-6) .row-2 td.column-5,
.price-page .price-list .tablepress:not(.tablepress-id-6) .row-2 td.column-6,
.price-page .price-list .tablepress:not(.tablepress-id-6) .row-2 td.column-7 {
	text-align: center !important;
}

/* 医療保険（基本料金 id=7 / 各種加算 id=8）
   左端の背景色セルは左揃え（「分類」見出しのみ中央）
   ※ 共通の .column-1 中央揃えより詳細度を上げて上書き */
.price-page .price-list .tablepress.tablepress-id-7 .column-1,
.price-page .price-list .tablepress.tablepress-id-8 .column-1 {
	text-align: left !important;
}

.price-page .price-list .tablepress.tablepress-id-7 .row-1 .column-1,
.price-page .price-list .tablepress.tablepress-id-7 .row-2 .column-1,
.price-page .price-list .tablepress.tablepress-id-8 .row-1 .column-1,
.price-page .price-list .tablepress.tablepress-id-8 .row-2 .column-1 {
	text-align: center !important;
}

/* 医療保険：料金列（column-3）の本文は右揃え（見出しは中央のまま） */
.price-page .price-list .tablepress.tablepress-id-7 td.column-3,
.price-page .price-list .tablepress.tablepress-id-8 td.column-3 {
	text-align: right !important;
	letter-spacing: 0.05em;
}

.price-page .price-list .tablepress.tablepress-id-7 .row-1 td.column-3,
.price-page .price-list .tablepress.tablepress-id-7 .row-2 td.column-3,
.price-page .price-list .tablepress.tablepress-id-8 .row-1 td.column-3,
.price-page .price-list .tablepress.tablepress-id-8 .row-2 td.column-3 {
	text-align: center !important;
}

/* 医療保険：料金・1〜3割は金額が折り返さない幅を確保 */
.price-page .price-list .tablepress.tablepress-id-7 .column-3,
.price-page .price-list .tablepress.tablepress-id-7 .column-4,
.price-page .price-list .tablepress.tablepress-id-7 .column-5,
.price-page .price-list .tablepress.tablepress-id-7 .column-6,
.price-page .price-list .tablepress.tablepress-id-8 .column-3,
.price-page .price-list .tablepress.tablepress-id-8 .column-4,
.price-page .price-list .tablepress.tablepress-id-8 .column-5,
.price-page .price-list .tablepress.tablepress-id-8 .column-6 {
	white-space: nowrap;
	min-width: 6.5em;
}

/* 各種加算：④の算定要件2行間、⑭の時間帯2行間の区切りを点線に */
.price-page .price-list .tablepress-id-8 .row-6 .column-2,
.price-page .price-list .tablepress-id-8 .row-17 .column-2 {
	border-bottom-style: dashed !important;
}

.price-page .price-list .tablepress-id-8 .row-7 .column-2,
.price-page .price-list .tablepress-id-8 .row-18 .column-2 {
	border-top-style: dashed !important;
}

/* 縦書きテキスト（TablePressセル内の span.vertical-text） */
.price-page .vertical-text {
	display: inline-block;
	writing-mode: vertical-rl;
	text-orientation: upright;
	letter-spacing: 0.1em;
	line-height: 1.4;
	white-space: nowrap;
	vertical-align: middle;
}

/* TablePress の縞模様・ホバーは完全オフ */
.price-page .price-list .tablepress {
	--odd-bg-color: #fff;
	--even-bg-color: #fff;
	--hover-bg-color: #fff;
	--hover-text-color: inherit;
}

.price-page .price-list .tablepress > .row-hover > tr:hover > *,
.price-page .price-list .tablepress > .row-hover > tr:has(+ .child:hover) > *,
.price-page .price-list .tablepress > .row-hover > tr:hover + :where(.child) > * {
	background-color: #fff !important;
	background: #fff !important;
	color: inherit !important;
}

/* 見出しセルはホバー時も見出し色を維持 */
.price-page .price-list .tablepress:not(.tablepress-id-6) > .row-hover > tr:hover > .column-1,
.price-page .price-list .tablepress:not(.tablepress-id-6) > .row-hover > .row-1:hover > *,
.price-page .price-list .tablepress:not(.tablepress-id-6) > .row-hover > .row-2:hover > *,
.price-page .price-list .tablepress thead tr:hover > * {
	background-color: #f7f7f7 !important;
	background: #f7f7f7 !important;
}

.price-list .tablepress .odd td,
.price-list .tablepress .even td {
	background: transparent !important;
}

.price-page .price-list .tablepress .odd td,
.price-page .price-list .tablepress .even td {
	background: #fff !important;
}

.price-page .price-list .tablepress:not(.tablepress-id-6) .odd .column-1,
.price-page .price-list .tablepress:not(.tablepress-id-6) .even .column-1,
.price-page .price-list .tablepress:not(.tablepress-id-6) .odd.row-1 td,
.price-page .price-list .tablepress:not(.tablepress-id-6) .even.row-1 td,
.price-page .price-list .tablepress:not(.tablepress-id-6) .odd.row-1 th,
.price-page .price-list .tablepress:not(.tablepress-id-6) .even.row-1 th,
.price-page .price-list .tablepress:not(.tablepress-id-6) .odd.row-2 td,
.price-page .price-list .tablepress:not(.tablepress-id-6) .even.row-2 td,
.price-page .price-list .tablepress:not(.tablepress-id-6) .odd.row-2 th,
.price-page .price-list .tablepress:not(.tablepress-id-6) .even.row-2 th {
	background: #f7f7f7 !important;
}

@media screen and (max-width: 769px) {
	.price-tabs__btn {
		flex: 1;
		padding: 0.9rem 0.5rem;
		font-size: 0.95em;
	}

	.price-list {
		padding: 20px 12px;
	}

	.price-page .price-list {
		padding: 12px;
	}

	.price-page .price-list th,
	.price-page .price-list .tablepress th,
	.price-page .price-list td,
	.price-page .price-list .tablepress td {
		padding: 8px 10px !important;
	}

	.pr-tb .price-list th,
	.pr-tb .price-list .tablepress th,
	.pr-tb .price-list td,
	.pr-tb .price-list .tablepress td {
		padding-top: 0.85rem !important;
		padding-bottom: 0.85rem !important;
	}
}
