@charset "utf-8";
/* 調剤報酬計算機（新版）のデザイン。薬価サーチ（style_responsive.css）と配色・部品をそろえる。
   rese1_new.php / rese2.php（ver=2のとき）/ rese3_new.php で読み込む。旧resestyle.cssは使わない。 */

* {
	box-sizing:border-box;
	}
body {
	margin:0;
	padding:0;
	background:#fff;
	color:#222;
	font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Meiryo",sans-serif;
	font-size:16px;
	line-height:1.7;
	}
span {
	color:#d00;
	}
a {
	color:#1a5fb4;
	}
a:hover {
	color:#d00;
	}
img {
	border:0;
	}

/* ---- 上部バナー（管理薬剤師.com） ---- */
header.site-banner {
	border-bottom:1px solid #dde3ea;
	padding:10px 16px;
	}
header.site-banner a {
	display:inline-block;
	}
header.site-banner img {
	display:block;
	width:240px;
	max-width:60vw;
	height:auto;
	}

/* ---- 本文の幅 ---- */
div#content {
	max-width:1000px;
	margin:0 auto;
	padding:0 16px 40px;
	}

/* ---- 見出し ---- */
h1 {
	margin:22px 0 14px;
	font-size:clamp(17px,5vw,28px);
	font-weight:bold;
	text-align:center;
	color:#123;
	line-height:1.4;
	}
h1 small {
	display:block;
	font-size:0.55em;
	color:#567;
	font-weight:normal;
	}
h2 {
	margin:32px 0 14px;
	padding:6px 0 6px 12px;
	border-left:5px solid #2a6ebb;
	background:#f0f5fb;
	font-size:19px;
	font-weight:bold;
	}

/* ---- 注意書きリスト（青い丸） ---- */
ul.top-note,
ul.dot {
	list-style:none;
	margin:0 0 16px;
	padding:0;
	}
ul.top-note {
	max-width:760px;
	margin:0 auto 20px;
	font-size:15px;
	}
ul.top-note li,
ul.dot > li {
	position:relative;
	padding-left:1.4em;
	margin-bottom:0.5em;
	}
ul.top-note li:before,
ul.dot > li:before {
	content:"";
	position:absolute;
	left:0.2em;
	top:0.72em;
	width:0.5em;
	height:0.5em;
	border-radius:50%;
	background:#2a6ebb;
	}

/* ---- 検索窓 ---- */
div.search-box {
	max-width:600px;
	margin:0 auto 24px;
	padding:20px;
	border:1px solid #cfd8e3;
	border-radius:12px;
	background:#f5f8fc;
	}
div.search-box label.ttl {
	display:block;
	font-size:15px;
	margin-bottom:8px;
	font-weight:bold;
	}
div.search-box input[type="text"] {
	width:100%;
	font-size:16px;
	padding:12px 14px;
	border:1px solid #9fb2c8;
	border-radius:8px;
	background:#fff;
	margin-bottom:12px;
	}
input.btn-main,
button.btn-main {
	display:block;
	width:100%;
	font-size:18px;
	font-weight:bold;
	letter-spacing:0.15em;
	padding:13px 20px;
	border:0;
	border-radius:8px;
	background:#2a6ebb;
	color:#fff;
	-webkit-appearance:none;
	appearance:none;
	cursor:pointer;
	}
input.btn-main:hover,
button.btn-main:hover {
	background:#1d5a9f;
	}

/* ---- 表（処方内容・検索結果など）：狭いときは枠の中だけ横スクロール ---- */
div.tbl-scroll {
	overflow-x:auto;
	-webkit-overflow-scrolling:touch;
	margin:0 0 8px;
	}
table.list {
	border-collapse:collapse;
	background:#fff;
	min-width:100%;
	font-size:15px;
	}
table.list th {
	background:#2a6ebb;
	color:#fff;
	font-weight:bold;
	padding:10px 8px;
	border:1px solid #9fb2c8;
	white-space:nowrap;
	}
table.list td {
	padding:6px 8px;
	border:1px solid #cfd8e3;
	vertical-align:middle;
	}
table.list tbody tr:nth-child(even) td {
	background:#f7f9fc;
	}
table.list input[type="text"],
table.list select {
	font-size:15px;
	padding:5px 6px;
	border:1px solid #9fb2c8;
	border-radius:6px;
	background:#fff;
	max-width:100%;
	}
table.list input[type="button"],
table.list input[type="submit"] {
	font-size:14px;
	padding:5px 10px;
	border:1px solid #c66;
	border-radius:6px;
	background:#fff;
	color:#c33;
	cursor:pointer;
	}
table.list input[type="button"]:hover {
	background:#c33;
	color:#fff;
	}
p.empty-note {
	color:#678;
	font-size:14px;
	margin:4px 0 0;
	}
div.tbl-scroll:has(tbody tr) + p.empty-note {
	display:none;
	}

/* ---- 区分ごとのカード ---- */
div.card {
	border:1px solid #cfd8e3;
	border-radius:12px;
	padding:4px 16px 14px;
	margin-bottom:18px;
	background:#fff;
	box-shadow:0 1px 3px rgba(0,0,0,.06);
	}
div.card h3 {
	margin:12px 0 10px;
	font-size:18px;
	font-weight:bold;
	color:#123;
	}
div.card h3 small {
	font-size:13px;
	font-weight:normal;
	color:#567;
	}
div.card h3 em.auto {
	display:inline-block;
	font-style:normal;
	font-size:12px;
	font-weight:bold;
	color:#456;
	background:#e6ebf1;
	border-radius:999px;
	padding:1px 10px;
	margin-left:6px;
	vertical-align:middle;
	}
div.card.auto {
	background:#fafbfd;
	}
div.item {
	padding:10px 0;
	border-top:1px dashed #dde3ea;
	}
div.card h3 + div.item {
	border-top:0;
	}
/* チェック1つだけの項目（減算・服薬管理指導料の加算など）は行の間隔を詰め、間の点線も消す */
div.item:has(> label.chk:only-child) {
	padding:3px 0;
	}
div.item:has(> label.chk:only-child) + div.item:has(> label.chk:only-child) {
	border-top:0;
	}
div.item:has(> label.chk:only-child) label.chk {
	margin:2px 0;
	}
div.item p.name {
	margin:0 0 6px;
	font-weight:bold;
	}
/* PC：項目名の下の選択肢を1段下げて、項目名との区別をつける */
@media (min-width:769px) {
	div.item > p.name {
		border-left:4px solid #2a6ebb;
		padding-left:8px;
		}
	div.item > p.name ~ *:not(p.name) {
		margin-left:24px;
		}
	}
div.item p.note {
	margin:6px 0 0;
	font-size:13px;
	color:#678;
	}
span.pt {
	color:#678;
	font-size:13px;
	}

/* ---- ラジオボタン・チェックボックス：普通の丸・四角を見せて1行に1つずつ並べる ---- */
div.opts label:after {
	content:"\A";
	white-space:pre;
	}
div.opts input[type="radio"],
div.opts input[type="checkbox"],
label.chk input[type="checkbox"] {
	width:18px;
	height:18px;
	margin:0 6px 0 0;
	vertical-align:-3px;
	accent-color:#2a6ebb;
	cursor:pointer;
	}
div.opts label,
label.chk {
	display:inline;
	font-size:15px;
	line-height:2.1;
	cursor:pointer;
	}
label.chk {
	display:block;
	padding-left:24px;
	text-indent:-24px;
	line-height:1.6;
	margin:6px 0;
	}
div.opts input:checked + label,
label.chk:has(input:checked) {
	color:#1d4f8a;
	font-weight:bold;
	}
/* 領収書フォームの負担割合など短い選択肢は横に並べる */
form.receipt-form div.opts label:after {
	content:none;
	}
form.receipt-form div.opts label {
	margin-right:18px;
	}
div.item input[type="text"].num {
	width:6em;
	font-size:16px;
	padding:6px 8px;
	border:1px solid #9fb2c8;
	border-radius:6px;
	text-align:right;
	}

/* ---- 点数表の折りたたみ ---- */
details.pt-table {
	margin:8px 0 0;
	border:1px solid #dde3ea;
	border-radius:8px;
	background:#f9fbfd;
	}
details.pt-table summary {
	cursor:pointer;
	padding:6px 12px;
	font-size:14px;
	color:#1a5fb4;
	}
details.pt-table[open] summary {
	border-bottom:1px solid #dde3ea;
	}
details.pt-table ul {
	margin:8px 12px 10px 2em;
	padding:0;
	font-size:14px;
	}
details.pt-table p {
	margin:8px 12px;
	font-size:14px;
	}

/* ---- 計算ボタン（スマホでは画面下に固定） ---- */
div.submit-bar {
	margin:24px 0;
	}
@media (max-width:768px) {
	div.submit-bar {
		position:sticky;
		bottom:0;
		z-index:10;
		margin:24px -16px 0;
		padding:10px 16px;
		background:rgba(255,255,255,.95);
		border-top:1px solid #cfd8e3;
		box-shadow:0 -2px 6px rgba(0,0,0,.06);
		}
	}

/* ---- 注意点など ---- */
div.info {
	margin-top:8px;
	}
ul.links {
	list-style:none;
	padding:0;
	margin:24px 0;
	display:flex;
	flex-wrap:wrap;
	gap:8px 20px;
	}

/* ---- 検索結果ポップアップ（rese2.php） ---- */
h1.pop {
	margin:14px 0 6px;
	font-size:20px;
	white-space:normal;
	}
h1.pop small {
	display:inline;
	font-size:14px;
	margin-left:6px;
	}
p.pop-note {
	font-size:14px;
	color:#456;
	margin:0 0 10px;
	}
table.pop-list {
	width:100%;
	}
table.list td.r {
	text-align:right;
	white-space:nowrap;
	}
table.list input.pick {
	border:0;
	background:#2a6ebb;
	color:#fff;
	font-weight:bold;
	padding:6px 14px;
	white-space:nowrap;
	}
table.list input.pick:hover {
	background:#1d5a9f;
	color:#fff;
	}
span.sen-tag {
	display:inline-block;
	font-size:12px;
	color:#8a5a00;
	background:#fff4dc;
	border:1px solid #f0d08a;
	border-radius:4px;
	padding:0 6px;
	margin-top:2px;
	}
p.res-info {
	font-size:14px;
	margin:4px 0 0;
	}
ul.x3 {
	display:flex;
	justify-content:space-between;
	gap:12px;
	list-style:none;
	margin:16px 0 8px;
	padding:0;
	}
ul.x3 li a,
ul.x3 li.off {
	display:block;
	padding:9px 16px;
	border-radius:8px;
	font-size:15px;
	border:1px solid #2a6ebb;
	text-decoration:none;
	}
ul.x3 li a {
	color:#2a6ebb;
	background:#fff;
	}
ul.x3 li a:hover {
	background:#2a6ebb;
	color:#fff;
	}
ul.x3 li.off {
	color:#aab;
	border-color:#dde;
	background:#f5f5f8;
	}
p.close-wrap {
	text-align:center;
	margin:16px 0;
	}
button.close-btn {
	font-size:16px;
	font-weight:bold;
	padding:10px 26px;
	border:1px solid #2a6ebb;
	border-radius:999px;
	background:#fff;
	color:#2a6ebb;
	cursor:pointer;
	}
button.close-btn:hover {
	background:#2a6ebb;
	color:#fff;
	}

/* ---- 計算結果（rese3_new.php） ---- */
div.total-box {
	max-width:760px;
	margin:0 auto 16px;
	padding:18px 20px;
	border:1px solid #cfd8e3;
	border-radius:12px;
	background:#f5f8fc;
	text-align:center;
	}
div.total-box strong {
	display:block;
	font-size:24px;
	font-weight:bold;
	color:#123;
	line-height:1.3;
	}
div.total-box strong small {
	font-size:14px;
	margin-left:2px;
	color:#456;
	}
div.total-main {
	font-size:15px;
	color:#456;
	margin-bottom:12px;
	}
div.total-main strong {
	font-size:40px;
	color:#2a6ebb;
	}
div.total-grid {
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
	gap:10px;
	}
div.total-grid > div {
	background:#fff;
	border:1px solid #dde3ea;
	border-radius:8px;
	padding:10px 8px;
	font-size:14px;
	color:#456;
	}
div.total-grid.sen {
	margin-top:10px;
	}
div.total-grid.sen > div {
	border-color:#f0d08a;
	background:#fffaf0;
	}
table.list.result {
	width:100%;
	}
table.list td.memo {
	font-size:13px;
	color:#456;
	}
/* 点数表の体系ごとのまとめ：小見出し・小計・合計 */
h3 span.h-total {
	float:right;
	font-size:18px;
	color:#2a6ebb;
	}
table.list.result tr.sub th {
	background:#e8f0fa;
	color:#1d4f8a;
	text-align:left;
	padding:7px 8px;
	border-color:#cfd8e3;
	}
table.list.result tbody tr.subtotal td {
	background:#f3f6fa;
	font-weight:bold;
	border-top:2px solid #9fb2c8;
	}
table.list.result tfoot tr.total td {
	background:#dfe9f6;
	font-weight:bold;
	font-size:16px;
	border-top:3px double #2a6ebb;
	}
p.total-break {
	font-size:13px;
	color:#456;
	margin:12px 0 0;
	line-height:1.7;
	}
input.wide {
	width:100%;
	max-width:420px;
	font-size:16px;
	padding:8px 10px;
	border:1px solid #9fb2c8;
	border-radius:6px;
	}

/* ---- 2カラム（PCで区分カードを並べる場合用） ---- */
@media (min-width:900px) {
	div.cards2 {
		display:grid;
		grid-template-columns:1fr 1fr;
		gap:18px;
		}
	div.cards2 div.card {
		margin-bottom:0;
		}
	}

/* 外用薬の「前の外用薬と混合（1調剤）」チェック（rese1_new.php の処方内容） */
table.list label.mix {
	display:inline-flex;
	align-items:center;
	gap:4px;
	font-size:13px;
	white-space:nowrap;
	cursor:pointer;
	}
