:root {
  --color-text: #333;
  --main-color: #003366;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* bodyの不要な余白を消す */
body {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  background-color: #f4f6f9; /* 背景のいろ */
}

/* aタグの装飾（青文字・下線）を無効化 */
a {
  text-decoration: none;
  color: inherit;
}

/* リスト（ul, ol）の黒ポチと余白を消す */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 画像が親要素からはみ出すのを防ぐ */
img,
picture {
  max-width: 100%;
  height: auto;
}

/* フォーム部品のフォントを親と揃える */
input,
button,
textarea,
select {
  font: inherit;
}

main {
  display: flex;
}

.main {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* モーダル用 */
/* モーダルの背景（暗い部分） */
.modal_background {
  display: none; /* 最初は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /*モーダル開く時外の画面を少し暗くする*/
  z-index: 1000;

  justify-content: center; /*中央揃え*/
  align-items: center;
}

/* 新規登録モーダルの本体 */
.r_modal,
.e_modal {
  background-color: white;
  padding: 40px;
  border-radius: 12px; /*円滑*/
  width: 100%;
  max-width: 700px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  box-sizing: border-box;
  animation: fadeInModal 0.25s ease-out;
}

.modal-contents-2 {
  display: flex;
  flex-wrap: wrap; /*改行*/
}

/* 表の本体 */
.r_modal p,
.e_modal p {
  margin: 12px 0 6px 0;
  font-weight: bold;
  font-size: 14px;
  color: #555;
}

.form-group {
  width: 250px;
}

.modal_left {
  margin-right: 50px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.form-group select{
  width: 100%; /* form面積 */
  height: 50px;
  padding: 0 12px;
  border: 1px solid #999;
  border-radius: 6px; /* 円滑 */
  font-size: 14px;
  box-sizing: border-box;
  background-color: #fff;
  transition: all 0.3s;
}

/*　閉じるボタン */
.close {
  position: absolute;
  top: 10px;
  right: 18px;
  background: none;
  border: none;
  font-size: 50px;
  font-weight: 300;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

/*モーダル開く時一瞬の動画*/
@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*ボタンデザイン*/
.btn {
  background-color: var(--main-color);
  color: #fff;
  border: none;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
  white-space: nowrap;
}
.btn:hover {
    background-color: #004d99;
    color: #fff;
}
.btn:active{
	background-color: var(--main-color);
	color: #fff;
}

/*見出し*/
h1,h2,h3{
	color: var(--main-color);
}
