
@font-face {
  font-family: 'MPR-Bold'; 
  src: url('../fonts/MPLUSRounded1c-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'yu-go'; 
  src: url('../fonts/YuGothR.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  user-select: none; /* CSS3 */
  -moz-user-select: none; /* Firefox */
  -webkit-user-select: none; /* Safari、Chromeなど */
  -ms-user-select: none; /* IE10かららしい */
  touch-action: pan-x pan-y !important;
  font-family: 'yu-go'; 
  overscroll-behavior: none;
  font-size: 13px;
  line-height: 14px;
}


a{
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}
html{
  height: -webkit-fill-available;
}

body{
  margin: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  justify-content: center; /* 横中央 */
  align-items: center;     /* 縦中央 */
  overflow: hidden;
}
#fitWindow{
  position: absolute;
  width: 1280px;
  height: 830px;
  overflow:hidden;
}

img {
    user-drag: none; /* ドラッグ禁止 */
    user-select: none; /* 選択禁止 */
    -webkit-user-drag: none; /* Webkitブラウザ（ChromeやSafari）向け */
    -webkit-user-select: none;
    -moz-user-select: none; /* Firefox向け */
    -ms-user-select: none; /* IE向け */
}

img.svg-22{
  width: 22px;
}
img.svg-24{
  width: 24px;
}

/* ラジオボタン01 */
input[type=radio] {
  display: none;
}
.gender {
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    padding-left: 26px;
    position: relative;
    width: auto;
}
.gender::before {
    background: #fff;
    border: 1px solid #000;
    border-radius: 50%;
    content: '';
    display: block;
    height: 16px;
    left: 5px;
    margin-top: -8px;
    position: absolute;
    top: 50%;
    width: 16px;
}
.gender::after {
    background: #000;
    border-radius: 50%;
    content: '';
    display: block;
    height: 10px;
    left: 9px;
    margin-top: -4px;
    opacity: 0;
    position: absolute;
    top: 50%;
    width: 10px;
}
input[type=radio]:checked + .gender::after {
    opacity: 1;
}

li{
  list-style: none;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  border-bottom : 3px solid #000;
}

.header-container h1 {
  margin: 0;
  font-size: 30px;
  line-height: 30px;
  font-family:'MPR-Bold', sans-serif;
  color: #004fc1;
}

.header-right{
  display: flex;
  gap: 10px;

}
.basic-data {
  display: flex;
  gap: 20px;
  background-color: #cbe7f9;
  border-radius: 10px;
  padding: 10px 20px;
}

.basic-data select{
  width: 200px;
  height: 24px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  padding-right: 24px;
  padding-left: 5px;
  background-color: white;
  color:#000000;
  -webkit-appearance: none; /* Safari, iOS対策 */
  appearance: none;         /* Firefoxなど */
}
.basic-data .ages{
  position: relative;
}
.basic-data .ages::after {
  content: '';
  position: absolute;
  right:0;
  top: 50%;
  width: 24px; /* ← 追加 */
  height: 24px; /* ← 追加 */
  background-image: url('../imgs/list_drop_down.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: #333;
}
.reset{
  background-color: #004fc1;
  color: #fff;
  border-radius: 10px;
  padding: 10px 20px;
  line-height: 24px;
  font-size: 14px;
}
.dl-pdf{
  background-color: #297bff;
  color: #fff;
  border-radius: 10px;
  padding: 10px 20px;
  line-height: 24px;
}

.basic-data .ages,
.basic-data .sex {
  display: flex;
  align-items: center;
  gap: 5px;
}

.basic-data label {
  font-size: 14px;
}

/* チャート */
#chart{
  position: absolute;
  top:74px;
  z-index: 100;
}


/* 左下 */
.left-container{
  position: absolute;
  top: 450px;
  left: 20px;
  z-index: 10; /* 必要に応じて前面に */
  height: 360px;
  background-color: #eee;
  overflow: hidden;       /* 枠からはみ出さないように */
}
body.group6 .left-container{
  width: 482px;
}
body.group4 .left-container{
  width: 392px;
}

.menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); /* 自動で列分割 */
  list-style: none;
  padding: 10px;
  margin: 0;
  height: 100%;
  gap: 4px;
  overflow-y: auto;
  box-sizing: border-box;
}
body.group6 .tab-container .menu-container{
 gap: 4px;
 padding: 10px;
}
body.group4 .tab-container .menu-container{
 gap: 10px;
 padding: 10px 24px;
}
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0; 
  margin: 0; 
  background: #fff;
  text-align: center;
  cursor: pointer;
  width: 86px;
  height: 80px;
  border-radius: 5px;
}
.menu-item span{
    display: block;
    font-size: 10px;
    line-height:11px;
    height: 24px;
    padding-top: 2px;
    overflow: hidden;
}
.left-container .menu-item:not(.active):hover {
  outline: 2px dotted  rgb(255, 162, 0);
  outline-offset: -2px;
}
.left-container .menu-item.active {
  outline: 2px solid rgb(255, 162, 0);
  outline-offset: -2px;
}
.left-container[data-key="breakfast"] .menu-item:not(.active):hover {
  outline-color: rgb(255, 162, 0);
}
.left-container[data-key="lunch"] .menu-item:not(.active):hover {
   outline-color: rgb(255, 0, 0);
}
.left-container[data-key="lunch"] .menu-item.active {
    outline-color: rgb(255, 0, 0);
}
.left-container[data-key="dinner"] .menu-item:not(.active):hover {
  outline-color: rgb(0, 100, 255);
}
.left-container[data-key="dinner"] .menu-item.active {
  outline-color: rgb(0, 100, 255);
}

.menu-item img {
  width: 82px;
  object-fit: contain;
  /* margin-bottom: 1px; */
}

/* 右側 */
.right-container{
  position: absolute;
  top: 80px;
  left: 520px;
  z-index: 10; /* 必要に応じて前面に */
}
body.group6 .right-container{
  width:746px;
  left: 520px;
}
body.group4 .right-container{
  width: 836px;
  left: 430px;
}

/* タブ切り替えエリア */
.tab-container {
  padding: 3px;
  width: 740px;
  /* font-family: sans-serif; */
}
body.group6 .tab-container{
  width: 740px;
}
body.group4 .tab-container{
  width: 830px;
}


.tabs {
  display: flex;
  width: 100%;
  gap: 5px;
}

.tab {
  display: flex;
  align-items: center;    /* ← 垂直方向に中央揃え */
  justify-content: center; /* ← 横方向も中央ならこれ */
  gap: 130px;                /* ← 画像とテキストの間隔 */
  flex: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 10px 10px 0 0;
  height: 30px;
  font-size: 14px;
    /* font-weight: bold; */
}
body.group6 .tab {
  gap: 120px; 
}
body.group4 .tab {
  gap: 150px; 
}
.tab .label {
  display: flex;
  align-items: center;    /* ← 垂直方向に中央揃え */
  justify-content: center; /* ← 横方向も中央ならこれ */
  gap: 5px;                /* ← 画像とテキストの間隔 */
  flex: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 10px 10px 0 0;
  height: 30px;
  font-size: 14px;
    /* font-weight: bold; */
}
.tab .visible {
  width: 40px;
  height: 30px;
  background-image: url('../imgs/visibility_off.svg');
  background-repeat: no-repeat;
  background-size: 24px;
  background-position: center;
}
.tab .visible.on {
  background-image: url('../imgs/visibility_on.svg');
}


.tab:nth-child(1) {
  background-color: #FFE6AD;
}
.tab:nth-child(2) {
  background-color: #FFB3C1;
}
.tab:nth-child(3) {
  background-color: #A0D0F6;
}
.tab-content {
  background-color: #FFE6AD;/* 初期色を1番目と同じに */
  transition: background-color 0.3s;
  height: 100px;
}
.tab-content .selected-list.breakfast {
  background-color: #FFE6AD;
  display: none;
}
.tab-content .selected-list.lunch {
  background-color: #FFB3C1;
  display: none;
}
.tab-content .selected-list.dinner {
  background-color: #A0D0F6;
  display: none;
}
.tab-content .selected-list.active {
  display: grid;
}

.table-container{
   height: 594px;
   overflow-y: auto;
   overflow-x: hidden;
}
body.group4 .table-container{
   width:866px;
   height: 524px;
}
body.group6 .table-container{
   width:776px;
   height: 558px;
}
table{
  border-collapse:separate;
  border-spacing: 2px;
  width: 100%;
  width:746px;
}
table tbody{
  display:none;
}

table tbody.active{
  display:table-row-group;
}

table tr.head th{
  font-size: 14px;
  font-weight: bold;
}
table tr.sub th{
  font-size: 12px;
  /* font-weight: bold; */
}

table th,table td{
  border-radius: 4px;
  text-align: center;
  padding: 1px 4px;
  font-weight: normal;
}

table th{
  color: #fff;
  height: 30px;
}


body.group4 table th.w-title,
body.group4 table td.w-title{
  min-width:200px !important;
}
body.group4 table th.w-quantity,
body.group4 table td.w-quantity{
  min-width:41px !important;
}
body.group4 table th.w-col,
body.group4 table td.w-col{
  min-width:41px !important;
}
body.group4 table th.w-edit,
body.group4 table td.w-edit{
  min-width:52px !important;
}

body.group6 table th.w-title,
body.group6 table td.w-title{
  min-width:200px !important;
}
body.group6 table th.w-quantity,
body.group6 table td.w-quantity{
  min-width:50px !important;
}
body.group6 table th.w-col,
body.group6 table td.w-col{
  min-width:50px !important;
}
body.group6 table th.w-edit,
body.group6 table td.w-edit{
  min-width:80px !important;
}


body.group4 table th.group1,
body.group4 table th.group2{
  background-color: #f36b74;
}
body.group4 table th.group3,
body.group4 table th.group4{
  background-color: #eb882b;
}
body.group4 table th.group5,
body.group4 table th.group6,
body.group4 table th.group7{
  background-color: #5ab548;
}
body.group4 table th.group8,
body.group4 table th.group9,
body.group4 table th.group10{
  background-color: #d7b000;
}

body.group6 table th.group1,
body.group6 table th.group2{
  background-color: #f36b74;
}
body.group6 table th.group3,
body.group6 table th.group4{
  background-color: #5ab548;
}
body.group6 table th.group5,
body.group6 table th.group6{
  background-color: #d7b000;
}



table tbody tr.hide{
  display:none;
}

table tr td{
  position: relative;
  background-color: #eeeeee;
  /* border:solid 1px #af9d85; */
  text-align: right;
  height: 30px;
}

table thead th{
    background-color: #999999;

}
table tfoot td{
  background-color: #e3e3e3;
}

table tfoot tr.spacer,
table tfoot tr.spacer-top{
    height: 0px;
}
table tfoot tr.spacer td,
table tfoot tr.spacer-top td{
    height: 0px;
    background-color: #FFF;
}
table tfoot tr.spacer td:before{
  content: "";
  position: absolute;
  top: -1.5px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #333;
}

table tr.menu-title td{
  background-color: #e3e3e3;
}

table tr td.menu{
  text-align: left;
  font-size: 14px;
  line-height: 14px;
  font-weight: bold;
  padding-left: 8px;
  padding-top: 2px;
  padding-bottom: 2px;
}
table tr td.menu img{
  position: absolute;
  right:0;
  top:3px;
  opacity: 0.5;
  transition:transform 0.3s;
  transform: rotate(-90deg);
}
table tr td.menu.open img{
  transform: rotate(0deg);
  transition:transform 0.3s;
}
table tr td.menu:hover img{
  opacity: 1;
}
table tr td.menu.menu-disable img{
  opacity: 0.2;
}
table tr td.menu.menu-disable{
  pointer-events: none;
}



table tr td.material{
  text-align: left;
  font-size: 13px;
  padding-left: 14px;
}
/* table tr td.material::before {
  content: "・";
} */

body.group6 table tr td.group1-c,
body.group6 table tr td.group2-c{
  background-color: #F7E4E5;
}
body.group6 table tr td.group3-c,
body.group6 table tr td.group4-c{
  background-color: #DFF2DC;
}
body.group6 table tr td.group5-c,
body.group6 table tr td.group6-c{
  background-color: #FDF7DA; 
}

body.group4 table tr td.group1-c,
body.group4 table tr td.group2-c{
  background-color: #F7E4E5;
}
body.group4 table tr td.group3-c,
body.group4 table tr td.group4-c{
  background-color: #f6ece3;
}
body.group4 table tr td.group5-c,
body.group4 table tr td.group6-c,
body.group4 table tr td.group7-c{
  background-color: #DFF2DC;
}
body.group4 table tr td.group8-c,
body.group4 table tr td.group9-c,
body.group4 table tr td.group10-c{
  background-color: #FDF7DA; 
}


body.group6 table tfoot tr td.group1-c,
body.group6 table tfoot tr td.group2-c,
body.group6 table tr.menu-title td.group1-c,
body.group6 table tr.menu-title td.group2-c{
  background-color: #f7c8ca;
}
body.group6 table tfoot tr td.group3-c,
body.group6 table tfoot tr td.group4-c,
body.group6 table tr.menu-title td.group3-c,
body.group6 table tr.menu-title td.group4-c{
  background-color: #bbecb5;
}
body.group6 table tfoot tr td.group5-c,
body.group6 table tfoot tr td.group6-c,
body.group6 table tr.menu-title td.group5-c,
body.group6 table tr.menu-title td.group6-c{
  background-color: #f4e7ad; 
}


body.group4 table tfoot tr td.group1-c,
body.group4 table tfoot tr td.group2-c,
body.group4 table tr.menu-title td.group1-c,
body.group4 table tr.menu-title td.group2-c{
  background-color: #f7c8ca;
}
body.group4 table tfoot tr td.group3-c,
body.group4 table tfoot tr td.group4-c,
body.group4 table tr.menu-title td.group3-c,
body.group4 table tr.menu-title td.group4-c{
  background-color: #f6dfce;
}
body.group4 table tfoot tr td.group5-c,
body.group4 table tfoot tr td.group6-c,
body.group4 table tfoot tr td.group7-c,
body.group4 table tr.menu-title td.group5-c,
body.group4 table tr.menu-title td.group6-c,
body.group4 table tr.menu-title td.group7-c{
  background-color: #bbecb5;
}
body.group4 table tfoot tr td.group8-c,
body.group4 table tfoot tr td.group9-c,
body.group4 table tfoot tr td.group10-c,
body.group4 table tr.menu-title td.group8-c,
body.group4 table tr.menu-title td.group9-c,
body.group4 table tr.menu-title td.group10-c{
  background-color: #f4e7ad; 
}




table tr td{
  position:relative;
}
table tr td input{
  position: absolute;
  right:3px;
  top:5px;
  height: 18px;
  text-align: right;
  width: 80%;
  display: none;
  /* border: none; */
}
table tr.input td input{
  display: block;
}
table tr td input.title{
  position: absolute;
  left:11px;
  top:5px;
  text-align: left;
  width: 90%;
  font-size: 13px;
}
table tr td.buttons .btn-group{
  display: flex;
  align-items: center;    /* ← 垂直方向に中央揃え */
  justify-content: center; /* ← 横方向も中央ならこれ */
}
body.group6 table tr td.buttons .btn-group{
  gap: 10px;
}
body.group4 table tr td.buttons .btn-group{
  gap: 0px;
}


table tr td.buttons .btn-group div{
  display: flex;
  align-items: center; 
  justify-content: center; 
  width: 24px;
  opacity: 0.5;
}
table tr td.buttons .btn-group div:hover{
  opacity: 1;
}
table tr td.buttons .btn-group div.hide{
  display:none;
}
table tr td.buttons .btn-group div.disable{
  opacity: 0.2;
}
/* 復活しない */
table tr td.buttons .btn-group div.disable-must{ 
  opacity: 0.2;
  pointer-events: none;
}

table tr td.buttons .btn-group div img{
  pointer-events:none;
}



/* 吹き出し */
.balloon {
  position: relative;
  top: 100px;
  left: 50px;
  display: inline-block;
  margin: 20px;
  padding: 15px;
  width: 170px;
  /* height: 50px; */
  color: #000000;
  background: #cbe7f9;
  border-radius: 8px;
  z-index: 1000;
  text-align: center;
  opacity: 1;
  transition:transform 0.3s;
}
.balloon.del-mess {
  width: 170px;
  height: 38px;
}
.balloon.add-menu {
  width: 260px;
  height: 40px;
}
.balloon.hide{
  opacity: 0;
  transition:transform 0.3s;
  display: none;
}
.balloon.left:before {
  content: "";
  position: absolute;
  top: 51px;
  left:0;
  margin-left: 0;
  border: 16px solid transparent;
  border-top: 16px solid #cbe7f9;
  transform: rotate(90deg);
}
.balloon.right:before {
  content: "";
  position: absolute;
  top: 49px;
  right:0;
  margin-left: -16px;
  border: 16px solid transparent;
  border-top: 16px solid #cbe7f9;
  transform: rotate(-90deg);
}
.balloon.center:before {
  content: "";
  position: absolute;
  top: 55px;
  left: 50%;
  margin-left: -8px;
  border: 16px solid transparent;
  border-top: 16px solid #cbe7f9;
  transform: rotate(-110deg);
}
.balloon p {
  margin: 0;
  padding: 0;
  font-size: 12px;
}
.balloon .group{
  display: flex;
  align-items: center;    /* ← 垂直方向に中央揃え */
  justify-content: center; /* ← 横方向も中央ならこれ */
  gap:3px;
}
.balloon .group input{
  width: 200px;
}
.balloon .buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
}
.balloon .buttons .button {
  color: #000;
  background: #ffffff;
  font-size: 12px;
  border-radius: 5px;
  padding: 2px 5px;
}
.balloon .buttons .button.ok {
  color: #ffffff;
  background: #297bff;
}
 

.disable{
  opacity: 0.3;
  pointer-events: none;
}

.lock-screen{
  position: absolute;
  top:0;
  width: 1280px;
  height: 830px;
  background-color: #fff;
  opacity: 0.2;
  z-index: 999;
}

.lock-screen.hide{
  display: none;
}
