/*
* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f8f8f8;
}
*/

.modal-container__main {
  width: 800px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.modal-container__top, .modal-container__down {
  width: 800px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  align-items: center;
  margin: 0;
}

.modal-header__small{
  display: flex;
  justify-content: center;
  position: relative;
  text-align: center;
  font-size: 20px;
  margin-bottom: 10px;
}
.modal-data{
  line-height: 50px;
  font-size: 16px;
  position: absolute;
  right: 0;  
}
.m-title{
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  font-weight: bold;
}
hr.border-style1 {
	border-top: 3px solid #c5c2c2;
}
.modal-body{
  /*background-color: #c5c2c2;*/
  margin-top: 32px;

}


.grid-section{
  display: grid;

}
.grid-header{
  display: grid;
  gap: 1px;
	grid-template-columns: 50% 15% 15% 20%;
  text-align: center;
}
.grid-input{
  display: grid;
  gap: 1px;
	grid-template-columns: 50% 15% 15% 20%;
  text-align: center;
  justify-items: center;
  align-items: center;
  margin-top: 10px;
}
.input-item{
  display: grid;
  gap: 1px;
  grid-auto-flow: column;
  align-items: center;
}

.m-button{
  display: grid;
  gap: 1px;
	grid-auto-flow: column;
  place-content: center;
  margin-top: 32px;
  padding: 20px;
}
.add-button2{
  width: 200px;
  margin: 10px 5px;
  padding: 8px 0;
  background: #f2f2f2;
  color: black;
  border: 1px solid;
  border-color: white #f7f7f7 #f5f5f5;
  border-radius: 4px;
  background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.06));
  background-image: -moz-linear-gradient(top, transparent, rgba(0, 0, 0, 0.06));
  background-image: -o-linear-gradient(top, transparent, rgba(0, 0, 0, 0.06));
  background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.06));
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

/*モーダル表示非表示*/
#modal{
  /*display:none;
  */
  width: 800px;
  margin: 0 auto;
}
.modal-container__top{
  /*display: none;*/
}
.modal-container__down{
  /*display: none;*/
}
.search-header{
  display: grid;
  grid-template-columns: 50% 30% auto;
  gap: 0 5px;
  align-items: center;
  text-align: center;
  margin-bottom: -10px;
}
.wrapper-content{
  display: grid;
  grid-template-columns: 50% auto;
  gap: 0 5px;
  height: 360px;
}
.search-label{
  margin-bottom: 10px;
}
.search-section{
  width: auto;
  margin-top: 20px;
  text-align: center;
}
.search-box input{
  width: 80%;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid;
  border-color: #c5c2c2;
}
.result-section{
  width: 100%;
  text-align: center;
}
.result-wrapper{
  margin-top: 20px;
  height: 280px; /*=スクロールバー調整*/
  display: grid;
  grid-template-columns: 70% auto;
  overflow-x: hidden;
  overflow-y: auto;
}
.result-box{
  padding: 5px 20px;
  text-align: left;
  align-items: center;
  border: none;
}
.result-input{
  border: none;
}
.gram-section{
  width: auto;
  text-align: center;
}
.amount-box{
  width: 80px;
  padding: 5px 0;
  text-align: right;
}

/*
.modalClose{
  display: inline-block;
  width: 80px;
  height: 80px;
  text-align: center;
  line-height: 80px;

}
*/

.modal-header {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}
.modal-header .arrow {
  margin: 0 20px;
  font-size: 18px;
  cursor: pointer;
}
.arrow{
  width: 20px;
  height: 20px;
}
.a-left img{
  transform: scale(-1);
}

.m-content {
  display: flex;
  justify-content: space-between;
}
.m-section, .recipe-list-section {
  width: 48%;
}
.m-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.m-dropdowns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}
.m-dropdowns select {
  padding: 5px;
}
.radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  width: 100%;
}
.search-bar input[type="text"] {
  padding: 5px;
  width: 80%;
  font-size: 16px;
  border: 1px solid #333;
  border-radius: 4px;
}
.search-icon {
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
}
.error-message {
  color: red;
  font-size: 12px;
  margin-bottom: 10px;
}
.back-button {
  padding: 8px 20px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.back-button:hover {
  background-color: #555;
}
.recipe-list-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.recipe-list-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 14px;
  margin-bottom: 5px;
}
.item-count {
  font-size: 12px;
}
.recipe-list {
  border: 2px solid #333;
  padding: 10px;
  width: 100%;
  height: 150px;
  overflow-y: auto;
  font-size: 16px;
  text-align: left;
}
.recipe-list .red {
  color: red;
}
.add-button {
  margin-top: 10px;
  padding: 8px 20px;
  background-color: #ddd;
  color: black;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.add-button:hover {
  background-color: #ccc;
}
