/* =========================================================
   共通設定
========================================================= */

body {
	background-color: #ffffff;
}

body,
td,
th {
	font-family: "ＭＳ Ｐゴシック", Osaka, sans-serif;
	font-size: 16px;
	color: #000000;
}

h2 {
	margin: 2em 0 0 0;
	padding: 8px 3px 8px 4px;
	background-color: #446699;
	border: 1px solid #999999;
	border-color: #435a8b #3c5488 #334c83;
	font-size: 14px;
	font-weight: bold;
	color: #ffffff;
}

.body,
#topicPath {
	margin: 1em 0;
	padding: 3px 3px 1px 4px;
}

.small {
	font-size: 11px;
}


/* =========================================================
   ヘッダー部
========================================================= */

.tool-header-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
}

.tool-header-links a {
	display: block;
	line-height: 0;
}

.tool-header-links img {
	display: block;
	height: auto;
	max-width: 100%;
}

.tool-header-links a:first-child img {
	width: 180px;
	max-width: 55vw;
}

.tool-header-links a:last-child img {
	width: 112px;
	max-width: 35vw;
}

.breadcrumb {
	margin: 1em 0;
	padding: 6px 8px;
	font-size: 13px;
	background: #f7f9fc;
	border: 1px solid #d8e0ee;
	border-radius: 4px;
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
}

.breadcrumb ol {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumb li {
	display: flex;
	align-items: center;
	color: #555555;
}

.breadcrumb li + li::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 8px;
	border-top: 1px solid #777777;
	border-right: 1px solid #777777;
	transform: rotate(45deg);
}

.breadcrumb a {
	color: #335f99;
	text-decoration: none;
}

.breadcrumb a:hover {
	text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
	color: #333333;
	font-weight: bold;
}


/* =========================================================
   フッター部
========================================================= */


.footer-tool-nav {
	margin: 50px 0 12px;
	padding: 14px;
	background: #f7f9fc;
	border: 1px solid #d8e0ee;
	border-radius: 8px;
}

.footer-tool-title {
	margin-bottom: 10px;
	padding-bottom: 6px;
	font-size: 14px;
	font-weight: bold;
	color: #334c83;
	border-bottom: 1px solid #d8e0ee;
}

.footer-tool-nav ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-tool-nav li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-tool-nav li::marker {
	content: "";
}

.footer-tool-nav a {
	display: block;
	padding: 8px 10px;
	color: #335f99;
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #dde5f2;
	border-radius: 6px;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.footer-tool-nav a:hover {
	background: #eef4ff;
	border-color: #99a9c6;
	text-decoration: none;
}

.footer-tool-nav a::before {
	content: "›";
	margin-right: 6px;
	color: #446699;
	font-weight: bold;
}

@media screen and (max-width: 640px) {
	.footer-tool-nav {
		padding: 10px;
	}

	.footer-tool-nav ul {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.footer-tool-nav a {
		padding: 9px 10px;
		font-size: 14px;
	}
}


/* =========================================================
   テーブル
========================================================= */

table {
	border-top: 1px solid #cccccc;
	border-right: 1px solid #cccccc;
	border-left: 1px solid #cccccc;
}

td {
	border-bottom: 1px solid #cccccc;
	padding:10px;
}

/* imagemontage.html 用 */
.imagemontage td {
	line-height: 180%;
}


/* =========================================================
   アップロードエリア
========================================================= */

.upload-box {
	padding: 18px;
	text-align: center;
	cursor: pointer;
	background: #f7f9fc;
	border: 2px dashed #99a9c6;
}

.upload-box.dragover {
	background: #eef4ff;
	border-color: #446699;
}

.upload-box strong {
	display: block;
	margin-bottom: 4px;
}

.upload-note,
#fileSummary,
#downloadStatus,
.preview-name,
.preview-size,
.range-value {
	font-size: 12px;
	color: #555555;
}

#downloadStatus {
	margin-top: 8px;
}

#fileList {
	margin: 10px 0 0;
	padding-left: 20px;
}

#fileList li {
	margin: 2px 0;
}

#images {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}


/* =========================================================
   プレビュー表示
========================================================= */

#previewGrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.preview-tile {
	padding: 8px;
	text-align: center;
	overflow: auto;
	background: #ffffff;
	border: 1px solid #cccccc;
}

.preview-tile img {
	display: block;
	max-width: 95%;
	max-height: 400px;
	height: auto;
	margin: 0 auto;
}

.preview-name {
	margin-top: 6px;
	word-break: break-all;
}

.range-input {
	width: 260px;
	max-width: 95%;
	vertical-align: middle;
}


/* =========================================================
   コード表示
========================================================= */

.code {
	margin: 1em 0;
	padding: 5px;
	overflow-x: auto;
	white-space: pre;
	font-family: "Meiryo UI", "メイリオ", "ＭＳ Ｐゴシック", "ヒラギノ角ゴシック", sans-serif;
	background-color: #f4f4f4;
	border: 1px solid #999999;
}


/* =========================================================
   ボタン配置
========================================================= */

#buttonContainer {
	width: 90%;
	margin: 0 auto;
	text-align: right;
}


/* =========================================================
   ラジオボタン配置
========================================================= */

.radio-wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 50px;
	max-width: 400px;
}

.radio-col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.radio-col label {
	white-space: nowrap;
}


/* =========================================================
   スマホ
========================================================= */

@media screen and (max-width: 640px) {
	.radio-wrap {
		grid-template-columns: 1fr;
		row-gap: 10px;
	}
}