/* 画面内のスクロール */
html {
    scroll-behavior: smooth;
}

/* 画面全体 */
body {
    font-size: 14px;
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    background-color: #FAFAFA;
}

/* ボタン共通 */
button {
    border-radius: 4px;
    font-weight: bold;
    color: #FFFFFF;
    box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.2);
    border: none;
}
button:disabled {
    background-color: darkgray;
}

/* 通常ボタン(ボタン1) */
button.general1 {
    height: 34px;
    font-size: 14px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #008000;
}
button.general1:disabled {
    background-color: darkgray;
}

/* 通常ボタン(ボタン2) */
button.general2 {
    height: 34px;
    font-size: 14px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #FFFFFF;
    color: #008000;
    border: 1px solid #008000;
}
button.general2:disabled {
    background-color: darkgray;
}

/* 通常ボタン(削除) */
button.delete {
    height: 34px;
    font-size: 14px;
    padding-top: 8px;
    padding-bottom: 8px;
    background-color: #D60000;
}
button.delete:disabled {
    background-color: darkgray;
}

/* 大きめボタン(登録系) */
button.large-entry {
    width: 159px;
    height: 40px;
    font-size: 16px;
    padding-top: 9px;
    padding-bottom: 9px;
    background-color: #008000;
}
button.large-entry:disabled {
    background-color: darkgray;
}

/* 大きめボタン(取消系) */
button.large-cancel {
    width: 159px;
    height: 40px;
    font-size: 16px;
    padding-top: 9px;
    padding-bottom: 9px;
    background-color: #7F7F7F;
}
button.large-cancel:disabled {
    background-color: darkgray;
}

/* 小さめボタン(登録系) */
button.small-entry {
    font-size: 14px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #008000;
}
button.small-entry:disabled {
    background-color: darkgray;
}

/* 小さめボタン(取消系) */
button.small-cancel {
    font-size: 14px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #7F7F7F;
}
button.small-cancel:disabled {
    background-color: darkgray;
}

/* ヘッダ領域 */
header {
    width: 100%;
    height: 50px;
    background-color: #FFFFFF;
    border-top: 4px solid #008000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.84);
	/* 画面内の表示設定 */
	display: flex;
	justify-content: space-between;
	align-items: center;
    /* 画面上部へ固定するための設定 */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
}

/* ロゴ */
.logo {
	font-family: HelveticaNeue, Arial, sans-serif;
	font-size: 24px;
	color: #4A4A4A;
	padding-left: 20px;
}

/* メインメニュー */
.main-menu {
	padding-right: 5px;
	color: #4A4A4A;
}

.main-menu ul li img {
	width: 14px;
	height: 14px;
	margin-left: 10px;
}

.main-menu-title {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 150px;
	height: 37px;
	padding-top: 8px;
	padding-bottom: 5.4px;
	padding-right: 25px;
	cursor: pointer;
}

/* 展開時のタイトルデザイン */
.main-menu-title.open {
	margin-top: 1px;;
	border-radius: 6px 6px 0 0;
	border-bottom: 1px solid #DFDFDF;
	box-shadow: 0px 3px 6px  rgba(0, 0, 0, 0.84);
}

.userInfo {
	display: grid;
	margin-left: 10px;
	margin-right: 18px;
}

/* ヘッダ（所属） */
.affiliation {
	font-size: 10px;
	letter-spacing: .25px;
	white-space: nowrap;
}

/* ヘッダ（ユーザー名） */
.userName {
	font-size: 12px;
	font-weight: bold;
	letter-spacing: .3px;
	white-space: nowrap;
}

.main-menu-content {
	/** 展開前非表示*/
	display: none;
	width: 150px;
	height: auto;
	background-color: #FFFFFF;
	border-radius: 0 0 6px 6px;
	padding: 10px 11px 1px 11px;
	box-shadow: 0px 3px 6px  rgba(0, 0, 0, 0.84);
	/** 展開後の表示位置調整*/
	position: absolute;
}

.main-menu-content li {
	padding-bottom: 10px;
}

/* メニュー領域のボタン */
.header-menu-button {
	width: 100%;
	height: 34px;
	font-size: 14px;
	padding-top: 8px;
	padding-bottom: 8px;
	background-color: #FFFFFF;
	color: #008000;
	border: 1px solid #008000;
}

.logout-button {
	background-color: #D60000;
	color: #FFFFFF;
	border: 1px solid #D60000;
}

/* 矢印 */
.main-menu-title::after {
	border-right: solid 2px #4A4A4A;
	border-top: solid 2px #4A4A4A;
	content: "";
	display: block;
	height: 6px;
	width: 6px;
	position: absolute;
	right: 25px;
	top: 38%;
	transform: rotate(135deg);
	transition: transform .3s ease-in-out, top .3s ease-in-out;
}

.main-menu-title.open::after {
	top: 45%;
	transform: rotate(-45deg);
}

/* 画面ベース */
main {
    width: auto;
    padding: 20px 35px 0;
    background-color: #FAFAFA;
    /* ヘッダが画面上部固定なのでその分だけスペースを空ける必要あり */
    margin-top: 54px;
}

/* ページタイトル領域 */
.page-title-area {
    width: 100%;
    height: 64px;
    /* 画面上部へ固定するための設定 */
    position: fixed;
    top: 50px;
    left: 0;
    z-index: 20;
    /* エリア内余白 */
    padding: 15px 35px 0 35px;
    /* 背景色を指定しないとスクロールしたときに下の領域が透ける */
    background-color: #FAFAFA;
}

.page-title-content-area {
    position: relative;
}

/* ページタイトル */
.page-title {
    font-size: 20px;
    color: rgb(0, 0, 0, 0.95);
}

/* ページタイトル(ID)*/
.page-title-id {
    font-size: 14px;
    color: #222222
}

/* ページタイトル領域のボタン領域 */
/* とりあえず右寄せ(中央寄せにしたいならその画面で設定を上書きする) */
.button-area {
    position: absolute;
    top: 0;
    right: 0;
}

/* コンテンツ領域 */
.content-area {
    /* ページタイトルが画面上部固定なのでその分だけスペースを空ける必要あり */
    margin-top: 54px;
    /* 下部に固定したフッタ領域と被らないようにスペースを空ける(footer:74px + 余白16px) */
    margin-bottom: 90px;
}

/* フッタ領域 */
footer {
    width: 100%;
    height: 74px;
    background-color: #FFFFFF;
    padding: 17px 35px;
    box-shadow: 0 -1px 10px rgba(146, 208, 80, 0.9);
    /* 画面下部へ固定するための設定 */
    position: fixed;
    bottom: 0;
    z-index: 50;
}

.footer-container {
    width: 100%;
    height: 100%;
    /* ボタンを横並びさせるための設定*/
    position: sticky;
}

/* フッタ領域のボタン */
.footer-button {
    padding-left: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
  }

.footer-button li {
    list-style: none;
}

/* フッタの左端へ配置 */
.footer-button-left {
    margin: 0 auto auto 0;
    /* 中央のボタン配置を調整するためだけの設定なのでボタンは表示しない */
    visibility: hidden;
}

/* フッタの中央へ配置 */
.footer-button-center {
    margin: auto;
}

/* フッタの右端へ配置 */
.footer-button-right {
  margin-left:  auto;
}

/* 入力系のフォーム共通 */
input {
    border-radius: 5px;
    color: #444444;
    padding: 10px;
    font-size: 14px;
}

/* エラー時の背景色 */
input.error {
    color: #FFFFFF;
    background-color: #D60000 !important;
}

/* エラー時の背景色 */
select.error {
    color: #FFFFFF;
    background-color: #D60000 !important;
}

/* テキスト共通 */
input[type="text"] {
    background-color: #FFFFFF;
    border: 1px solid #CED4DA;
    height: 34px;
}

/* テキスト共通 */
input[type="text"]:disabled {
    background-color: #F0F0F0;
}

/* カンマ区切り */
input.comma {
	text-align: right;
}

/* テキスト(コード+名称の名称部分のテキストボックス) */
.name-part {
    background-color: #F0F0F0 !important;
    height: 34px !important;
    font-size: 14px !important;
    border: 1px solid #CED4DA !important;
}

/* テキスト(コード+名称の名称部分のテキストボックス(入力可能) */
.name-part-inputable {
    height: 34px !important;
    font-size: 14px !important;
    border: 1px solid #CED4DA !important;
}

/* 数値入力共通 */
input[type="number"] {
    background-color: #FFFFFF;
    border: 1px solid #CED4DA;
    height: 34px;
}

/* 数値入力共通 */
input[type="number"]:disabled {
    background-color: #F0F0F0;
}

/* 数値入力の右側にあるスピンボタンは表示しない */
input[type="number"]::-webkit-outer-spin-button, 
input[type="number"]::-webkit-inner-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

/* 電話番号入力共通 */
input[type="tel"] {
    background-color: #FFFFFF;
    border: 1px solid #CED4DA;
    height: 34px;
}

/* 電話番号入力共通 */
input[type="tel"]:disabled {
    background-color: #F0F0F0;
}

/* チェックボックス共通 */
input[type="checkbox"] {
    /* 一旦、設定をすべてリセット */
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* チェックボックス共通 */
input[type="checkbox"] {
    padding-left: 32px; /* 枠線表示用の領域を開ける */
    cursor: pointer;
    vertical-align: middle;
    position: relative;
}

/* チェックボックス共通 */
input[type="checkbox"]::before, input[type="checkbox"]::after {
    content: "";
    display: block; 
    position: absolute;
}

/* チェックボックス共通(枠線のデザイン・チェックあり) */
input[type="checkbox"]::before {
    width: 22px;
    height: 22px;
    background-color: #FFFFFF;
    border-radius: 2px;
    border: 2px solid #7F7F7F;
    transform: translateY(-50%);
    top: 50%;
    left: 0;
}

/* チェックボックス共通(枠線のデザイン・チェックあり) */
input[type="checkbox"]:checked::before {
    width: 22px;
    height: 22px;
    background-color: #008000;
    border-radius: 2px;
    border: 2px solid #008000;
    transform: translateY(-50%);
    top: 50%;
    left: 0;
}

/* チェックボックス共通(チェックマークのデザイン) */
input[type="checkbox"]::after {
  border-bottom: 3px solid #FFFFFF;
  border-left: 3px solid #FFFFFF;
  opacity: 0; /* 非表示 */
  height: 8px;
  width: 14px;
  transform: rotate(-45deg);
  top: -6px;
  left: 5px;
}

input[type="checkbox"]:checked::after {
  opacity: 1; /* 表示 */
}

/* 日付選択共通 */
input[type="date"], input[type="time"] {
    background-color: #FFFFFF;
    border: 1px solid #CED4DA;
    height: 34px;
}

/* パスワード共通 */
input[type="password"] {
    background-color: #FFFFFF;
    border: 1px solid #CED4DA;
    height: 34px;
}

/* テキスト共通 */
input:read-only {
    background-color: #F0F0F0;
    outline: none;
}

/* セレクトボックス共通 */
select {
    background-color: #FCFCFC;
    border: 1px solid #BBBBBB;
    height: 34px;
    font-size: 16px;
    box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.15);
    /* 入力系のフォーム共通と同じ設定 */
    border-radius: 5px;
    color: #444444;
    cursor : pointer;
}

/* ラベル共通 */
label {
    text-align: right;
    margin-right: 10px;
}

/* 必須ラベル */
.required::after {
    content: "必須";
    display: block;
    background-color: #D60000;
    width: 36px;
    height: 14px;
    border-radius: 2px;
    font-size: 10px;
    color: #FFFFFF;
    font-weight: bold;
    line-height: 1;
    padding: 3px 0px;
    white-space: nowrap;
    text-align: center;
    margin-left: auto;
}

/* テーブル */
table {
    width: 100%;
    table-layout: fixed;
    border-spacing: 0;
    border-collapse: separate;
}

/* テーブルヘッダ */
th {
    width: 100%;
    height: 43px;
    background-color: #F0F0F0;
    font-size: 12px;
    color: #000000;
    padding-left: 10px;
    padding-right: 10px;
    border: 1px solid #DDE1E6;
    border-bottom: 2px solid #707070;
    text-align: center;
    vertical-align: middle;
}

/* テーブルボディ */
td {
    width: 100%;
    height: 50px;
    background-color: #FFFFFF;
    font-size: 14px;
    color: #000000;
    padding-left: 10px;
    padding-right: 10px;
    border: 1px solid #DDE1E6;
}

/* セルの中央揃え */
th.c, td.c {
    text-align: center;
}

/* セルの右揃え */
th.r, td.r {
    text-align: right;
}

/* ツールチップ表示の設定 */
.tooltip1 {
    display: inline-block;
    position: relative;
}

.description1 {
    display: none;
    position: absolute;
    padding: 10px;
    font-size: 12px;
    line-height: 1.6em;
    color: #FFFFFF;
    border-radius: 5px;
    background: #000000;
}

.description1:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border: 10px solid transparent;
    border-top: 10px solid #000000;
    margin-left: -15px;
}

.tooltip1:hover .description1 {
    display: inline-block;
    top: -215%;
    left: -50%;
    z-index: 100;
}

/* === ポップアップ（モーダル） ============================ */
/* モーダル全体(背景＋本体) */
.modal {
	display: none;
	position: fixed;
	top: 0;
	height: 100vh;
	width: 100%;
}

/* モーダル背景 */
.modal-bg {
	position: absolute;
	height: 100vh;
	width: 100%;
	background: #00000066;
}

/* モーダル本体 */
.modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #FFFFFF;
	border-radius: 8px;
	width: auto;
	min-width: 700px;
}

/* ポップアップ（モーダル）タイトル */
.modal-title {
	font-size: 20px;
}

/* ポップアップ（モーダル）「×」 */
.modal-batu {
	font-size: 28px;
	color: #4A4A4A;
	cursor: default;
	text-align: right;
}

/* ポップアップ（モーダル）本文_タイトルなし */
.no-title-modal-body {
	padding: 0 30px 30px 30px;
	clear: right;
	height: 100%
}

/* ポップアップ（モーダル）本文 */
.modal-body {
	padding-top: 36px;
	padding-bottom: 40px;
	padding-right: 68px;
	padding-left: 61px;
	clear: right;
}

/* ポップアップ（モーダル）ヘッダ */
.modal-header  {
/*	display: inline;*/
}

/* ポップアップ（モーダル）タイトル部 */
.modal-header .col1 {
	width: 91%;
	float: left;
}

/* ポップアップ（モーダル）「×」部 */
.modal-header .col2 {
	width: 9%;
}

/* モーダルウィンドウ表示中に記事本体を固定 */
body.fixed {
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
}

/* ポップアップ（モーダル））_パスワード変更画面_本文 */
.modal-body .item {
	padding-bottom: 16px;
	text-align: right;
}

.modal-body .password {
	width: 350px;
	margin-left: 13px;
}

.modal-body .submitBtn {
	text-align: center;
	padding-top: 18px;
}