html[lang="ja"] {
  font-family: YakuHanJP, helvetica, ヒラギノ角ゴ Pro, Hiragino Kaku Gothic Pro, Hiragino Sans, arial, メイリオ, sans-serif;
}

body, .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: YakuHanJP, helvetica, ヒラギノ角ゴ Pro, Hiragino Kaku Gothic Pro, Hiragino Sans, arial, メイリオ, sans-serif;
}

html, body {
  margin: 0;
  height: 100%;
  background-color: var(--bg-color);
}

input::-ms-reveal {
  display:none;
}

.table td, .table th {
    vertical-align: middle;
}

.pagination {
    justify-content: center;
}

form, input, div, button {
    font-size: 1rem;
}

.font-8 {
  font-size: 0.5rem !important;
}

.font-10 {
  font-size: 0.625rem !important;
}

.font-11 {
  font-size: 0.688rem !important;
}

.font-12 {
  font-size: 0.75rem !important;
}

.font-14 {
    font-size: 14px !important;
}

.font-16 {
    font-size: 16px !important;
}

.font-18 {
    font-size: 18px !important;
}

.error-msg{
  width: 100%;
  font-size: 0.75rem !important;
  font-weight: 400;
  color: #F32858;
  padding-top: 5px;
  text-align: start;
}

.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
}

.model-inner {
  background-color: white;
  border-radius: 0.625rem;
  max-width: 20.625rem;
  width: 85%;
  padding: 1.25rem;
  margin: auto;
  opacity: 1;
}

.modal-header {
  display: flex;
  justify-content: center;
  border-bottom: 0;
}

[x-cloak] {
  display: none !important;
}

.overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: black;
  opacity: 0.75;
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 400;
  color: #000 !important;
  text-align: center;
  line-height: inherit;
}

.form-switch {
  display: inline-block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.form-switch i {
  position: relative;
  display: inline-block;
  margin-right: 0;
  width: 51px;
  height: 30px;
  background-color: #e6e6e6;
  border-radius: 15px;
  vertical-align: text-bottom;
}
.form-switch i::before {
  content: "";
  position: absolute;
  left: 0;
  width: 51px;
  height: 30px;
  background-color: #e6e6e6;
  border-radius: 15px;
}
.form-switch i::after {
  content: "";
  position: absolute;
  left: 1px;
  width: 26px;
  height: 26px;
  background-color: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.24);
  transform: translate3d(2px, 2px, 0);
  transition: all 0.2s ease-in-out;
}
.form-switch:active i::after {
  width: 28px;
  transform: translate3d(2px, 2px, 0);
}
.form-switch:active input:checked + i::after { transform: translate3d(16px, 2px, 0); }
.form-switch input { display: none; }
.form-switch input:checked + i { background-color: var(--primary-color); }
.form-switch input:checked + i::before { transform: translate3d(18px, 2px, 0) scale3d(0, 0, 0); }
.form-switch input:checked + i::after { transform: translate3d(22px, 2px, 0); }

.ios13-segmented-control {
  --background: rgba(239, 239, 240, 1);
  background: var(--background);
  border-radius: 9px;
  margin: 0;
  padding: 2px;
  border: none;
  outline: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ios13-segmented-control .option {
  position: relative;
  cursor: pointer;
}

.ios13-segmented-control .option:hover input:not(:checked) + label span,
.ios13-segmented-control .option:active input:not(:checked) + label span,
.ios13-segmented-control .option:focus input:not(:checked) + label span {
//opacity: 0.2;
}

.ios13-segmented-control .option:active input:not(:checked) + label span {
  transform: scale(0.95);
}

.ios13-segmented-control .option label {
  position: relative;
  display: flex;
  padding: 3px 0.75rem;
  background: rgba(255, 255, 255, 0);
  font-weight: 600;
  color: rgba(0, 0, 0, 1);
  font-size: 0.813rem;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.ios13-segmented-control .option label::before,
.ios13-segmented-control .option label::after {
  content: "";
  width: 1px;
  background: rgba(142, 142, 147, 0.15);
  position: absolute;
  top: 14%;
  bottom: 14%;
  border-radius: 10px;
  will-change: background;
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
}

.ios13-segmented-control .option label::before {
  left: 0;
  transform: translateX(-0.5px);
}

.ios13-segmented-control .option label::after {
  right: 0;
  transform: translateX(0.5px);
}

.ios13-segmented-control .option label span {
  line-height: 1rem;
}

.ios13-segmented-control .option:first-of-type {
  grid-column: 1;
  grid-row: 1;
  box-shadow: none;
}

.ios13-segmented-control .option:first-of-type label::before {
  opacity: 0;
}

.ios13-segmented-control .option:last-of-type label::after {
  opacity: 0;
}

.ios13-segmented-control .option input {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  border: none;
  opacity: 0;
}

.ios13-segmented-control .selection {
  background: rgba(255, 255, 255, 1);
  border: 0.5px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.12), 0 3px 1px 0 rgba(0, 0, 0, 0.04);
  border-radius: 7px;
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
  will-change: transform;
  -webkit-transition: transform 0.2s ease;
  transition: transform 0.2s ease;
}

.ios13-segmented-control .option label span {
  display: block;
  position: relative;
  z-index: 2;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  will-change: transform;
  padding: 0;
}

.ios13-segmented-control .option input:checked + label::before,
.ios13-segmented-control .option input:checked + label::after {
  background: var(--background);
  z-index: 1;
}

.ios13-segmented-control .option input:checked + label {
  cursor: default;
}

:root {
  --sheet-background: #fff;
  --sheet-foreground: #000;
  --sheet-divider: #dcdcdc;
  --sheet-overlay: #888;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sheet-background: #000;
    --sheet-foreground: #fff;
    --sheet-divider: #333;
  }
}

.sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  visibility: visible;
  transition: opacity 0.5s, visibility 0.5s;
}

.sheet[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sheet .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  background: var(--sheet-overlay);
  opacity: 0.5;
}

.sheet .contents {
  display: flex;
  flex-direction: column;

  border-radius: 1rem 1rem 0 0;

  background: var(--sheet-background);

  overflow-y: hidden;

  --default-transitions: transform 0.5s, border-radius 0.5s;

  transition: var(--default-transitions);
  transform: translateY(0);

  max-width: 24.375rem;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  height: -webkit-fill-available;

  box-sizing: border-box;

  z-index: 202;
}

.sheet .contents:not(.not-selectable) {
  transition: var(--default-transitions), height 0.5s;
}

.sheet .contents.fullscreen {
  border-radius: 0;
}

.sheet[aria-hidden="true"] .contents {
  transform: translateY(100%);
}

.sheet .controls {
  display: flex;
  z-index: 203;
}

.sheet .draggable-area {
  width: 4.063rem;
  margin: auto;
  padding: 0.5rem 1rem 0.5rem 1rem;
  cursor: grab;
  position: relative;
  z-index: 204;
}

.sheet .draggable-thumb {
  width: 2.063rem;
  height: 0.125rem;
  background: var(--sheet-divider);
  border-radius: 0.063rem;
}

.sheet .close-sheet {
  border: none;
  padding: 0.2rem 0.7rem;
}

.sheet .body {
  flex-grow: 1;
  height: 100%;

  display: flex;
  flex-direction: column;

  overflow-y: auto;

  padding: 0 1rem 4.75rem 1rem;
  box-sizing: border-box;

  scroll-behavior:smooth
}

.sheet button,
[contenteditable="true"] {
  box-sizing: border-box;
  padding: 1rem;

  border-radius: 1rem;
  border: 0.0625rem solid var(--divider);

  font-family: inherit;
  font-size: 1rem;

  background: var(--sheet-background);
  color: var(--sheet-foreground);
}

.sheet button {
  cursor: pointer;
}

/*----- Tabs -----*/
.tabs {
  width:100%;;
  display:inline-block;
}

/*----- Tab Links -----*/
/* Clearfix */
.tab-links:after {
  display:block;
  clear:both;
  content:'';
}

.tab-links {
  margin: 0;
  padding: 0;
}

.tab-links li {
  margin:0;
  padding: 0.5rem 0.75rem;
  float:left;
  list-style:none;
}

.tab-links li.tab-first {
  width: 100%;
  border-top-left-radius: 0.6rem;
  border-top-right-radius: 0.6rem;
}

.tab-links li.tab-second {
  width: 20%;
  border-top-left-radius: 0.6rem;
  border-top-right-radius: 0.6rem;
  text-align: center;
}

.tab-links .tab-first span,
.tab-links .tab-second span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  transition:all linear 0.15s;
}
/*----- Content of Tabs -----*/
.tab-content #tab1 .goal {
  background-color: #FFFFFF;
  padding: 0.375rem;
  row-gap: 0.375rem;
  border-radius: 0.3rem;
  min-height: 4.125rem;
}

.tab-content #tab1 .goal div {
  width: calc(100%/10);
  text-align: center;
}

.tab-content #tab1 .goal-input {
  padding-top: 0.5rem;
}

.tab-content #tab1 .goal-input .goal-count {
  width: 5.5rem;
  height: 2.063rem;
  margin: 0 0.5rem;
  border-radius: 0.3rem;
  background-color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: end;
}

.tab-content #tab1 .goal-input .goal-count .count {
  font-size: 1.75rem;
  line-height: normal;
  font-weight: 500;
  color: #000;
}

.tab-content #tab1 .goal-input .goal-count .label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.1rem;
}

.tab-content #tab2 .guide {
  padding: 0.35rem;
  background-color: #FFFFFF;
}

.tab-content #tab2 .guide .goal-area {
  min-width: 3.75rem;
}

.tab-content #tab2 .guide .first{
  border-bottom: 1px solid #E0E0E0;
}

.tab-content #tab2 .guide .second{
  padding-top: 0.5rem;
}

.tab-content #tab2 .guide .goal {
  column-gap: 0.06rem;
}

.tab-content #tab2 .guide span.count {
  font-size: 0.5rem;
  font-weight: 600;
  color: #000000;
}

.tab-content #tab2 .guide span.description {
  font-size: 0.375rem;
  font-weight: 600;
  color: #000000;
}

.tab-content #tab2 .guide .food {
  margin-left: 0.5rem;
  column-gap: 0.4rem;
  min-height: 3.6rem;
}

.tab-content #tab2 .guide .food .name {
  font-size: 0.563rem;
  font-weight: 600;
  color: #000000;
}

.tab-content #tab2 .guide .food .description {
  font-size: 0.438rem;
  font-weight: 600;
  color: #000000;
}

.tab-content #tab2 .guide .memo {
  font-size: 0.5rem;
  font-weight: 600;
  color: #000000;
}

.tab-content #tab2 .guide .last-description {
  background-color: #D0AF57;
  padding: 0.438rem 0.688rem;
  border-radius: 0.625rem;
  margin: 0.813rem 1rem;
}

.tab-content #tab2 .guide .last-description span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #000000;
}

.tab-content #tab2 .guide .last-memo span {
  font-size: 0.625rem;
  font-weight: 600;
  color: #000000;
}

.tab {
  display:none;
}

tab-content {
  padding: 0;
  margin: 0;
}

#tab1 {
  padding: 0.5rem;
  background-color: #F19CA7;
}

#tab2 {
  padding: 0rem 0.125rem 0.125rem 0.125rem;
  background-color: #F19CA7;
}

#tab3 .row div span {
  padding: 0.188rem;
  font-size: 0.75rem !important;
  font-weight: bold;
  color: #FFFFFF;
}

#tab3 i {
  margin-left: 0.563rem;
  color: #FFFFFF;
}

#input-first #tab1.active {
  display:block;
  background-color: #F19CA7;
}

#input-first #tab2.active {
  display:block;
  background-color: #C36372;
}

#input-first #tab3.active {
  display:block;
  background-color: #C36372;
}

#input-first .tab-links li.tab-first {
  background-color: #F19CA7;
}

#input-first .tab-links li.tab-second {
  background-color: #C36372;
}

#input-second #tab1.active {
  display:block;
  background-color: #54A5DE;
}

#input-second #tab2.active {
  display:block;
  background-color: #0073B0;
}

#input-second #tab3.active {
  display:block;
  background-color: #0073B0;
}

#input-second .tab-links li.tab-first {
  background-color: #54A5DE;
}

#input-second .tab-links li.tab-second {
  background-color: #0073B0;
}

#input-third #tab1.active {
  display:block;
  background-color: #FFC700;
}

#input-third #tab2.active {
  display:block;
  background-color: #BC9344;
}

#input-third #tab3.active {
  display:block;
  background-color: #BC9344;
}

#input-third .tab-links li.tab-first {
  background-color: #FFC700;
}

#input-third .tab-links li.tab-second {
  background-color: #BC9344;
}

#input-firth #tab1.active {
  display:block;
  background-color: #93BD00;
}

#input-firth #tab2.active {
  display:block;
  background-color: #6D822A;
}

#input-firth #tab3.active {
  display:block;
  background-color: #6D822A;
}

#input-firth .tab-links li.tab-first {
  background-color: #93BD00;
}

#input-firth .tab-links li.tab-second {
  background-color: #6D822A;
}

#input-fifth #tab1.active {
  display:block;
  background-color: #A36FB4;
}

#input-fifth #tab2.active {
  display:block;
  background-color: #6A466A;
}

#input-fifth #tab3.active {
  display:block;
  background-color: #6A466A;
}

#input-fifth .tab-links li.tab-first {
  background-color: #A36FB4;
}

#input-fifth .tab-links li.tab-second {
  background-color: #6A466A;
}

#input-sixth #tab1.active {
  display:block;
  background-color: #88A0B8;
}

#input-sixth #tab2.active {
  display:block;
  background-color: #466F87;
}

#input-sixth #tab3.active {
  display:block;
  background-color: #466F87;
}

#input-sixth .tab-links li.tab-first {
  background-color: #88A0B8;
}

#input-sixth .tab-links li.tab-second {
  background-color: #466F87;
}

#input-seventh #tab1.active {
  display:block;
  background-color: #FFAB3C;
}

#input-seventh #tab2.active {
  display:block;
  background-color: #BF7A3A;
}

#input-seventh #tab3.active {
  display:block;
  background-color: #BF7A3A;
}

#input-seventh .tab-links li.tab-first {
  background-color: #FFAB3C;
}

#input-seventh .tab-links li.tab-second {
  background-color: #BF7A3A;
}

#input-eighth #tab1.active {
  display:block;
  background-color: #DA81B2;
}

#input-eighth #tab2.active {
  display:block;
  background-color: #AD467F;
}

#input-eighth #tab3.active {
  display:block;
  background-color: #AD467F;
}

#input-eighth .tab-links li.tab-first {
  background-color: #DA81B2;
}


#input-eighth .tab-links li.tab-second {
  background-color: #AD467F;
}

#input-eighth .tabs .tab-content #tab1 .title {
  font-size: 0.625rem;
  font-weight: 600;
  color: #FFF;
  margin-bottom: 0.5rem;
}

