/* CSS変数設定 */
:root {
	/* 固定フッタの高さやmarginに設定する値 */
	--fixed-footer-max: 40px; /* 768px以上 */
	--safeareainsetbottom: env(safe-area-inset-bottom);
}

/* 画面幅 */
@media screen and (min-width: 768px) {
	.app.w-fixed, .header.w-fixed, .header .w-fixed, .content.w-fixed, dialog.w-fixed {
		width: 750px;
		max-width: 750px;
		margin-inline: auto;
	}
	input[type='date'], input[type='time'] {
		flex-grow: 0.3;
	}
}
@media screen and (max-width: 767px) {
	input[type='date'], input[type='time'] {
		flex-grow: 1;
	}
	input[type=text], textarea {
		font-size: 16px;
	}
}

/*==================== 
* 各要素デフォルト設定 
* ====================*/
* {
	padding: 0;
	margin: 0;
}
body {
	margin: 8px;
}

/* aタグの下線を削除 */
a {
	text-decoration:none;
}

/* ボタンデフォルト設定 */
button {
	cursor: pointer;
	color: #212529;
	border-radius: 0.5rem;
	width: 100%;
	padding: 0.5rem;
}

button:hover {
	opacity: 0.7;
	border-bottom: 2px solid #000;
}

/* リストデフォルト設定 */
ul {
	padding-left:0;
}

li{
	list-style:none;
	padding-left: 1rem;
}

/* タイトル */
h1,h2,h3,h4,h5,h6 {
	text-align: center;
	margin: 0.5rem 0;
}

/* テキストエリア */
textarea {
	height: 80px;
	padding: 8px;
}

/* paddingの初期化 */
input {
	padding: revert;
	box-sizing: border-box;
}

dialog {
	border: 0;
	border-radius: 0.6rem;
	box-shadow: 0 0 1em black;
	margin: auto;
	width: 100%;
}
 
dialog::backdrop {
  /* 背景を半透明のブラックにする */
  background-color: rgba(0, 0, 0, 0.4);
}

/* ダイアログの幅 */
dialog[open] {
	width: 100%;
}

/* 読み取り専用時 */
input[type=text]:read-only, textarea:read-only {
	background-color: #FEFEFE;
}

/* 操作不可に設定したエリア内の表示 */
[inert]:not(dialog) {
	opacity: 0.5;
}
dialog[inert] * {
	opacity: 0.8;
}

/* IFREAMEの設定 */
iframe {
	width:100%;
	border:0;
}

/*==================== 
* デフォルトコンテナ 
* ====================*/
.app {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.header {
	background-color: #FFFFFF;
	width: 100%;
	z-index: 150; 
}
.main {
	display: flex;
	flex-direction: row;
}
.content {
	flex-grow: 1;
}

/*==================== 
* マージン・パディング
* ====================*/
/* 下 */
.mb-0, .f-row.mb-0 {
	margin-bottom: 0;
}
.mb-1 {
	margin-bottom: 0.25rem;
}
.mb-2 {
	margin-bottom: 0.5rem;
}
.mb-3 {
	margin-bottom: 1rem;
}
.mb-4 {
	margin-bottom: 1.5rem;
}
.mb-5 {
	margin-bottom: 2rem;
}
.pb-1 {
	padding-bottom: 0.25rem;
}

/* 左 */
.ml-1 {
	margin-left: 0.25rem;
}
.ml-2 {
	margin-left: 0.5rem;
}
.ml-3 {
	margin-left: 1rem;
}
.ml-4 {
	margin-left: 1.5rem;
}
.ml-5 {
	margin-left: 2rem;
}
.pl-1 {
	padding-left: 0.25rem;
}
.pl-2 {
	padding-left: 0.5rem;
}
.pl-3 {
	padding-left: 1rem;
}
.pl-4 {
	padding-left: 1.5rem;
}
.pl-5 {
	padding-left: 2rem;
}

/* 右 */
.mr-1 {
	margin-right: 0.25rem;
}
.mr-2 {
	margin-right: 0.5rem;
}
.mr-3 {
	margin-right: 1rem;
}
.mr-4 {
	margin-right: 1.5rem;
}
.mr-5 {
	margin-right: 2rem;
}
.pr-1 {
	padding-right: 0.25rem;
}
.pr-2 {
	padding-right: 0.5rem;
}
.pr-3 {
	padding-right: 1rem;
}
.pr-4 {
	padding-right: 1.5rem;
}
.pr-5 {
	padding-right: 2rem;
}

.mt-auto {
	margin-top: auto;
}
.m-auto {
	margin: auto;
}
.ml-auto {
	margin-left: auto;
}

/* 全方向 */
.p-0 {
	padding: 0;
}
.p-1 {
	padding: 0.25rem;
}
.p-2 {
	padding: 0.5rem;
}
.p-3 {
	padding: 1rem;
}
.p-4 {
	padding: 1.5rem;
}
.p-5 {
	padding: 2rem;
}
.m-0 {
	margin: 0;
}
.m-1 {
	margin: 0.25rem;
}
.m-2 {
	margin: 0.5rem;
}
.m-3 {
	margin: 1rem;
}
.m-4 {
	margin: 1.5rem;
}
.m-5 {
	margin: 2rem;
}

/*==================== 
* 幅設定
* ====================*/
.w-100 {
	width: 100%;
}
.w-50 {
	width: 50%;
}
.w-25 {
	width: 25%;
}
/*==================== 
* 高さ設定
* ====================*/
.h-100 {
	height: 100%;
}

/*==================== 
* ボーダー設定
* ====================*/
.border-1 {
	border: 1px solid;
}
.border-black {
	border-color: #000000;
}

/*==================== 
* 共通ヘッダー
* ====================*/
#common-header {
	background-color: #44546A;
	padding: 5px;
	font-weight: bold;
}
#common-header > .f-row {
	margin: 0;
}
#common-header, #common-header a {
	color: #FFFFFF;
}
#common-header a {
	text-decoration: underline;
}

/*==================== 
* ＋、－ボタン 
* ====================*/
button.plus-btn, button.minus-btn {
	width: 25px;
	height: 25px;
	background-color: #33CCFF;
	font-size: 1rem;
	line-height: 1rem;
	font-weight: bold;
	padding: 0;
	flex-shrink: 0;
	margin-right: 5px;
}

/*==================== 
* クラス
* ====================*/
/* 子要素を同じ行にして左右に配置する */
.child-element-line {
	display:flex;
	justify-content: space-between;
}

/*  横並び*/
.f-row {
	display: flex;
	align-items: stretch;
	margin-bottom: 5px;
}

.f-row > label:first-child, .f-row > .label:first-child {
	width: 145px;
	background-color: lightblue;
	margin-right: 5px;
	font-weight: bold;
	padding: 2px;
	flex: none;
}
/* 余白を埋める */
.f-row > .f-1 {
	flex: 1;
	width: 0;
}

/* メッセージエリア */
#message-area {
	margin-bottom: 5px;
}

#message-area:empty {
	padding: 0.8rem;	
}
/* 画面幅が最大767pxまでの場合 */
@media (max-width: 767px) {
	#message-area {
		font-size: 0.75rem;
	}
	#message-area:empty {
		padding: 0.625rem;	
	}
}

/* お知らせメッセージ */
.notice-msg {
	background-color: #FFFFFF;
	color: #000000;
}
/* 警告メッセージ */
.warn-msg {
	background-color: #FFFFCC;
	color: #FF0000;
}
/* エラーメッセージ */
.err-msg {
	background-color: #ffe5e2;
	color: #FF0000;
}

/* テキスト(赤) */
.text-red {
	color: #FF0000;
	font-weight: bold;
}

/* 画面タイトル */
#title {
	font-weight: bold;
	font-size: 25px;
	text-align: center;
}

/* サンプルテキスト */
#sample-text {
	width: 100%;
	line-height: 28px;
}

/* MENUボタン */
.menu-btn {
	text-align: center;
	margin-bottom: 5px;
}

/* 前画面に戻るボタンの設定 */
.return-back-btn {
	width: 40px;
	position:fixed;
	right:70px;
	bottom:20px;
	transition:1s;
	opacity:0.7;
}
.return-back-btn:hover {
	opacity:1;
}

/* ダイアログを閉じるボタン */
.dialog-close-header {
	text-align: right;
	margin-right: 3rem;
	height: 30px;
}
.dialog-close-btn {
	background-color: #C0C0C0;
	padding: 0;
	width: 50px;
	height: 25px;
	text-align: center;
	position:fixed;
	opacity: 0.7;
	border-radius: 0;
	border: none;
	font-size: 1.5em;
}
.dialog-close-btn:hover {
	color: #FFFFFF;
	background-color: #FF0000;
}

/* データリストで表示するボタン群 */
.data-list a {
    border-radius: 3px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 25px;
    color: #313131;
    transition: 0.3s ease-in-out;
    font-weight: 500;
}
.data-list a:after {
	content: "";
	position: absolute;
	top: 50%;
	bottom: 0;
	right: 2rem;
	font-size: 90%;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: right 0.3s;
	width: 6px;
	height: 6px;
	border-top: solid 2px currentColor;
	border-right: solid 2px currentColor;
	transform: translateY(-50%) rotate(45deg);
}
.data-list a:hover {
	background: #6bb6ff;
	color: #FFF;
}
.data-list a:hover:after {
	right: 1.4rem;
}

.data-list-color-add a {
	background-color: #FFFFEE;
}
/* マニュアル表示PDFの高さ設定 */
.manual-pdf {
	height: 60vh
}
/* 注釈(登録時) */
.register-annotation-msg {
	margin-left: 158px;
}
/* 右寄せリンク */
.right-link {
	text-align: right;
    margin-top: 30px;
}
/* ＋－ボタン */
button[name=minus], button[name=plus] {
    font-weight: bold;
    font-size: 1.5em;
    padding: 0;
	background-color: #FFFFFF;
}
button[name=minus] {
	color: #FF0000;
	border: 2px solid #FF0000;
	margin-right: 4px;
}
button[name=plus] {
	color: #00AEEF;
	border: 2px solid #00AEEF;
}
button[name=minus]:hover {
	color: #FFFFFF;
	border: 2px solid #FFFFFF;
	background-color: #FF0000;
}
button[name=plus]:hover {
	color: #FFFFFF;
	border: 2px solid #FFFFFF;
	background-color: #00AEEF;
}

/* メニュー画面のボタンエリア */
.menu-btn-area > button {
	margin-bottom: 0.5rem;
}

/* スクロールテキストを表示するエリア */
.scroll-text-area {
	overflow-y: scroll;
	height: 150px;
	background-color: #EEEEEE;
}

/*==================== 
* 戻るボタン 
* ====================*/
/* 戻るボタンの設定 */
.back-btn-area > button {
	width: 40px;
	height: 40px;
	position: fixed;
	right: 10px;
	bottom: calc(var(--safeareainsetbottom) + var(--fixed-footer-max));
	transition: 1s;
	opacity: 0.7;
	z-index: 10;
}
.back-btn-area > button:hover {
	opacity:1;
}
.back-btn-area > button > img {
	width: 16px;
	height: 16px;
}

/*==================== 
* フッター 
* ====================*/
.footer {
	margin-bottom: 0;
	height: var(--fixed-footer-max);
}
.footer > .f-row {
	justify-content: space-between;
}
.footer-icon > button, .footer-icon > a {
	display: flex;
	align-items: center;
	justify-content: center;
}
.footer-icon > button > img, .footer-icon > a > img {
	--footer-icon-size: 36px;
	height: var(--footer-icon-size);
	width: var(--footer-icon-size);
}
.footer-icon > button {
	padding: 0;
	border: none;
	background-color: #FFFFFF;
	outline: none;
}
/* 固定フッター */
.app.fixed-footer .footer {
	position: fixed;
	bottom: 0;
	left: 0;
	background-color: #FFFFFF;
}
.app.fixed-footer {
	margin-bottom: var(--fixed-footer-max);
}
