@charset "utf-8";
/* 薬価サーチ用のデザイン＋スマホ対応（style.cssの後に読み込み、固定幅や配色を上書きする） */

body {
	background:#fff;
	color:#222;
	font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Meiryo",sans-serif;
	font-size:16px;
	padding:0;
	}
span {
	color:#d00;
	}

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

/* ---- 本文の幅（左右の余白つき） ---- */
div.wrap {
	max-width:960px;
	margin:0 auto;
	padding:0 16px;
	text-align:left;
	}

/* ---- 見出し（改行せず、画面幅に合わせて縮む） ---- */
h1 {
	margin:22px 0 14px;
	padding:0 8px;
	font-size:clamp(15px,5.2vw,28px);
	font-weight:bold;
	white-space:nowrap;
	text-align:center;
	color:#123;
	}

/* ---- 注意書きリスト ---- */
ul.top-note {
	list-style:none;
	padding:0 16px;
	box-sizing:border-box;
	margin:0 auto 20px;
	max-width:700px;
	font-size:15px;
	line-height:1.7;
	text-align:left;
	}
ul.top-note li {
	position:relative;
	padding-left:1.4em;
	margin-bottom:0.5em;
	}
ul.top-note li:before,
ul.a5 > li:before {
	content:"";
	position:absolute;
	left:0.2em;
	top:0.72em;
	width:0.5em;
	height:0.5em;
	border-radius:50%;
	background:#2a6ebb;
	}

/* ---- 検索窓 ---- */
div#x5 {
	width:auto;
	max-width:600px;
	margin:0 auto 24px;
	padding:20px;
	box-sizing:border-box;
	border:1px solid #cfd8e3;
	border-radius:12px;
	background:#f5f8fc;
	}
div#x5 dl {
	margin:0 0 14px;
	}
div#x5 dt {
	font-size:15px;
	margin-bottom:8px;
	font-weight:bold;
	}
div#x5 input[type="text"] {
	width:100%;
	max-width:100%;
	box-sizing:border-box;
	font-size:16px;
	padding:12px 14px;
	border:1px solid #9fb2c8;
	border-radius:8px;
	background:#fff;
	}
div#x5 input[type="submit"] {
	display:block;
	width:100%;
	box-sizing:border-box;
	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;
	}
div#x5 input[type="submit"]:hover {
	background:#1d5a9f;
	}

/* ---- 件数表示 ---- */
p.res-info {
	width:auto;
	max-width:960px;
	margin:0 auto 6px;
	padding:0 16px;
	box-sizing:border-box;
	font-size:15px;
	}

/* ---- 検索結果の表：狭いときは表の枠の中だけ横スクロール ---- */
div.tbl-scroll {
	overflow-x:auto;
	-webkit-overflow-scrolling:touch;
	}
div.tbl-scroll table {
	min-width:960px;
	}

/* ---- 前へ／次へ ---- */
ul.x3 {
	display:flex;
	justify-content:space-between;
	gap:12px;
	list-style:none;
	width:auto;
	max-width:960px;
	margin:16px auto 28px;
	padding:0 16px;
	box-sizing:border-box;
	}
ul.x3 li {
	float:none;
	display:block;
	padding:0;
	}
ul.x3 li a,
ul.x3 li.off {
	display:block;
	padding:11px 20px;
	border-radius:8px;
	font-size:16px;
	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;
	}

/* ---- 見出し・節 ---- */
div#a6,
div#a7,
div#a8 {
	width:auto;
	max-width:960px;
	margin:0 auto;
	padding:0 16px;
	box-sizing:border-box;
	text-align:left;
	}
h2 {
	margin:32px 0 14px;
	padding:6px 0 6px 12px;
	border-bottom:0;
	border-left:5px solid #2a6ebb;
	background:#f0f5fb;
	font-size:19px;
	font-weight:bold;
	}
div#a8 > h2 {
	background:#2a6ebb;
	color:#fff;
	border-left:0;
	padding:10px 14px;
	border-radius:8px;
	}
p {
	width:auto;
	max-width:960px;
	margin:0 0 8px;
	line-height:1.8;
	}
p a,
li a {
	color:#1a5fb4;
	}

/* ---- 説明リスト ---- */
ul.a5 {
	list-style:none;
	margin:8px 0 8px;
	padding:0;
	}
ul.a5 > li {
	position:relative;
	padding-left:1.4em;
	margin-bottom:0.6em;
	line-height:1.8;
	}
ul.a5 ul {
	list-style-type:circle;
	margin:0.5em 0 0 1.5em;
	padding:0;
	}
ul.a5 ul ul {
	list-style-type:square;
	}
ul.a5 ul li {
	margin-bottom:0.3em;
	}

/* ---- 関連・参考情報のカード ---- */
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 div.formula {
	border:1px solid #9fb2c8;
	border-radius:8px;
	background:#f5f8fc;
	padding:10px 12px;
	margin:10px 0;
	}
@media (min-width:900px) {
	div#a8 div.cards {
		display:grid;
		grid-template-columns:1fr 1fr;
		gap:18px;
		}
	div.card {
		margin-bottom:0;
		}
	div.card.wide {
		grid-column:1 / -1;
		}
	}

p.bottom-space {
	margin-bottom:50px;
	}

/* ---- 前へ／次へ：clearfixの疑似要素がflexの中央に入り込むのを防ぐ ---- */
ul.x3:after {
	display:none;
	}

/* ---- 検索結果表の見出し行 ---- */
table th {
	padding:12px 7px;
	line-height:1.4;
	}
/* 灰色の見出しの上でも赤文字が読めるよう、白い札にする */
table th span {
	display:inline-block;
	background:#fff;
	color:#d00;
	font-weight:bold;
	padding:0 6px;
	border-radius:4px;
	line-height:1.5;
	}

/* ---- ジェネリック検索結果（別ウィンドウ） ---- */
table#a1 {
	width:100%;
	max-width:800px;
	}
table#a1 th {
	background:#666;
	}
div#a2 {
	width:auto;
	max-width:800px;
	margin:20px auto;
	padding:0 10px;
	box-sizing:border-box;
	background:#fff;
	border:0;
	overflow-x:auto;
	}
p.close-wrap {
	width:auto;
	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;
	}
button.close-btn span.x {
	color:inherit;
	margin-right:4px;
	}

/* ---- ※6 コードの順番リスト ---- */
ol.code-list {
	margin:4px 0 8px 2.2em;
	padding:0;
	line-height:1.8;
	}
ol.code-list li {
	margin-bottom:0.2em;
	padding-left:0.2em;
	}
ol.code-list li::marker {
	color:#2a6ebb;
	font-weight:bold;
	}

/* ---- 説明文の ※1〜※6 を目立たせる ---- */
div#a6 > p > span:first-child {
	display:inline-block;
	background:#fdeaea;
	color:#c00;
	font-weight:bold;
	font-size:1.05em;
	padding:0 8px;
	margin-right:2px;
	border:1px solid #f0b8b8;
	border-radius:4px;
	}
div#a6 span {
	font-weight:bold;
	}

/* ---- スマホ：表は横スクロールなので、文字を少し小さくして折り返しを減らし、行の高さを抑える ---- */
@media (max-width:960px) {
	div.tbl-scroll table {
		min-width:0;
		width:auto !important;
		font-size:13px;
		}
	div.tbl-scroll table th,
	div.tbl-scroll table td {
		white-space:nowrap;
		padding:4px 8px;
		}
	div.tbl-scroll table th {
		padding:10px 8px;
		}
	/* 薬品名・成分名だけは長いので折り返しを許可 */
	div.tbl-scroll table th:nth-child(3),
	div.tbl-scroll table th:nth-child(4),
	div.tbl-scroll table td:nth-child(3),
	div.tbl-scroll table td:nth-child(4) {
		white-space:normal;
		min-width:15em;
		}
	}
