@charset "utf-8";
/* =========================================================
   収益試算表（add2.png の置き換え）
   LP は max-width:500px の縦積み。表は横スクロールで閲覧。
   ========================================================= */

.sanpyo {
	--green: #21402d;
	--green-d: #1b3324;
	--gold: #bfa15e;
	--cream: #f4efe4;
	--line: #d8cfba;
	background: var(--cream);
	padding: 32px 0 34px;
	font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
	color: #2a2a2a;
	overflow: hidden;
}

/* ---- 見出し ---- */
.sanpyo__head {
	text-align: center;
	padding: 0 12px;
	margin-bottom: 22px;
}
.sanpyo__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--green);
	font-size: 15px;
	letter-spacing: 0.18em;
	font-weight: 700;
	margin-bottom: 6px;
}
.sanpyo__brand span {
	display: block;
	width: 34px;
	height: 1px;
	background: var(--gold);
}
.sanpyo__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	color: var(--green);
	line-height: 1;
}
.sanpyo__title span {
	font-size: clamp(32px, 10.6vw, 54px);
	font-weight: 900;
	letter-spacing: 0.02em;
	white-space: nowrap;
}
.sanpyo__title .lau {
	width: clamp(40px, 12.5vw, 62px);
	height: auto;
	flex: none;
}
.sanpyo__sub {
	margin-top: 12px;
	color: var(--green);
	font-size: clamp(14px, 4.4vw, 19px);
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* ---- 各院ブロック ---- */
.sanpyo__block {
	max-width: 500px;
	margin: 0 auto 26px;
	padding: 0 12px;
}
.sanpyo__store {
	position: relative;
	display: inline-block;
	color: var(--green);
	font-size: 26px;
	font-weight: 900;
	letter-spacing: 0.08em;
	margin: 6px 0 10px;
	padding-right: 22px;
}
.sanpyo__store::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 4px;
	border-style: solid;
	border-width: 10px 0 0 16px;
	border-color: transparent transparent transparent var(--gold);
}

/* ---- スクロール案内 ---- */
.sanpyo__hint {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin: 0 2px 6px;
	color: var(--green);
	font-size: 12px;
	font-weight: 700;
	font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	opacity: 0.85;
}
.sanpyo__hint::before {
	content: "";
	width: 22px;
	height: 22px;
	background: var(--green);
	border-radius: 50%;
	-webkit-mask: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	mask: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	animation: sanpyo-swipe 1.4s ease-in-out infinite;
}
@keyframes sanpyo-swipe {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
	.sanpyo__hint::before { animation: none; }
}

/* ---- 横スクロール枠 ---- */
.sanpyo__scroll {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--line);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	/* ネイティブのスクロールバーは隠し、下の常時表示バーを使う */
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.sanpyo__scroll::-webkit-scrollbar {
	display: none;
}

/* ---- 常時表示のカスタムスクロールバー ---- */
.sanpyo__bar {
	position: relative;
	height: 8px;
	margin: 9px 2px 0;
	border-radius: 8px;
	background: #e5dfce;
	touch-action: none;
}
.sanpyo__bar span {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 30%;
	border-radius: 8px;
	background: var(--green);
	cursor: grab;
}
.sanpyo__bar span:active { cursor: grabbing; }

/* ---- テーブル本体 ---- */
.sanpyo__table {
	border-collapse: collapse;
	width: max-content;
	min-width: 100%;
	background: #fff;
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	font-size: 11px;
	white-space: nowrap;
}
.sanpyo__table th,
.sanpyo__table td {
	border: 1px solid #e2ddd0;
	padding: 6px 8px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* 見出し行 */
.sanpyo__table thead th {
	background: var(--green);
	color: #fff;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
	border-color: var(--green-d);
}
.sanpyo__table thead .c-item {
	background: var(--green-d);
}

/* 項目列（左固定） */
.sanpyo__table .c-item {
	position: sticky;
	left: 0;
	z-index: 2;
	text-align: left;
	background: #f7f4ec;
	font-weight: 700;
	color: #2a2a2a;
	box-shadow: 1px 0 0 #d8cfba;
	min-width: 118px;
}
.sanpyo__table thead .c-item { z-index: 3; }

.c-total { font-weight: 700; background: #faf7ef; }
.c-ratio { color: var(--green); font-weight: 700; text-align: center; }

/* ---- 強調行 ---- */
.row--subtotal td,
.row--subtotal .c-item { background: #ececec; font-weight: 700; }

.row--sales td,
.row--sales .c-item { background: #efe6cf; font-weight: 700; }

.row--profit td,
.row--profit .c-item {
	background: var(--green);
	color: #fff;
	font-weight: 700;
}
.row--profit .c-ratio { color: #f4e3a8; }

.row--staff td { text-align: center; }
.row--staff .c-item { background: #f7f4ec; }
