:root {
  --fr-main-color: #ffa8a8;
  --fr-main-color-vivid: #ff6b6b;
  --fr-sub-color: #fff4b1;
  --fr-accent-color: #a8e6cf;
  --fr-accent-color-vivid: #51b390;
  --fr-pastel-lavender: #cfc9ff; /* パステル紫 */
  --fr-pastel-mint: #b9f2dc; /* パステルミント */
  --fr-pastel-peach: #ffd7cc; /* パステルピーチ */
  --fr-result-color-light: #ffa8a8;
  --fr-result-color: #ff6b6b;
  --verticalPadding: 15px;
  --horizontalPadding: 20px;
}
@font-face {
    font-family: 'Natsuzemi';
    src: url('/fonts/natsuzemi-maru.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'PopRumCute';
    src: url('/fonts/PopRumCute.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body {
  font-family: "Yusei Magic", sans-serif;
  background-image: url("/images/26217267.jpg");
  background-repeat: repeat;
  background-size: 820px;
  background-position: center center;
  background-attachment: fixed;
}
.app-icon{
    display: inline-block;
    width: 100%;
    height: 65px;
}
.app-icon a{
  display:block;
  text-decoration: none;
  position:relative;
  width:100%;
  height:100%;
}
.site-title {
    font-family: "Natsuzemi", "Yusei Magic", sans-serif;
    display: inline-block;
    color: #fff;
    text-shadow: 1px 1px 0 var(--fr-main-color);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 0;
    margin-left: 5px;
    width: 200px;
    position: absolute;
    left: calc(50% - 100px);
    top: calc(50% - 0.5em);
    line-height: 1;
}
.site-title-alpha{
    display: inline-block;
    transform: scale(1.25);
    width: 1.45em;
    letter-spacing: 2px;
}
.icon{
  max-width:65px;
  max-height: 65px;
  border-radius: 40%;
}
.content {
  background-color: #fff;
  border-radius: 9em;
  padding: 1em 10px 5em;
  max-width: 998px;
  margin: 1em auto 3em;
}
.content.append-content{
  background-color: transparent;
  padding-bottom:0;
}
.append-content .result-header{
  max-width:598px;
  margin:0 auto;
}
#result-content {
  background-color: transparent;
}
.content h1,
.content h2,
.about-header h2 {
  position: relative;
  text-align: center;
  margin-bottom: 1.7em;
}
.about-header {
  background-color: #fff;
  box-shadow: 10px 10px var(--fr-main-color);
}
.btn:disabled {
  cursor: not-allowed;
}
.btn-big {
  font-size: 1.2em;
  padding: 0.6rem 1.2rem;
}
.btn-fr-primary {
  background-color: var(--fr-main-color);
  border-color: var(--fr-main-color);
}
.btn-fr-primary:hover {
  background-color: var(--fr-main-color-vivid);
  border-color: var(--fr-main-color-vivid);
}
.btn-accent {
  background-color: var(--fr-accent-color);
  border-color: var(--fr-accent-color);
}
.btn-accent:hover {
  background-color: var(--fr-accent-color-vivid);
  border-color: var(--fr-accent-color-vivid);
}
.btn-center {
  display: inline-block;
  margin-left: 50%;
  transform: translateX(-50%);
}
.btn-wide {
  min-width: 150px;
}
.ninni {
  display: inline-block;
  background-color: #efefef;
  color: #000;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}
.tegaki {
  font-family: "Caveat", sans-serif;
  font-weight: bold;
}
.menu-wrapper{
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  z-index: 998;
}
.menu-btn {
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 10px;
  background-color: #000;
  border-radius: 50%;
  border: 2px solid #888;
  width: 60px;
  height: 60px;
  z-index: 2;
}
.menu-btn-text {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 45px;
  height: 45px;
  box-shadow: 2px 2px 2px #555, -1px -1px 2px #555;
  border-radius: 50%;
  box-sizing: border-box;
  color: var(--fr-sub-color);
  line-height: 41px;
  padding: 2px;
  text-align: center;
}
.menu-btn:after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: 50px;
  transform: rotate(-45deg);
  width: 10px;
  height: 40px;
  border-radius: 5px;
  background-color: #000;
  border: 1px solid #888;
  box-sizing: border-box;
  z-index: 1;
}
.menu-btn::before {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 63px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #888;
}
.menu {
  position: absolute;
  top: 50px;
  right: 50px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.menu.menu-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 999;
}
ul.site-menu {
  list-style: none;
  width: 210px;
  perspective: 800px;
  backface-visibility: hidden;
  padding: 0;
}
ul.site-menu li {
  transition: all 0.4s linear;
}
ul.site-menu li a {
  display: block;
  min-height: 3em;
  text-decoration: none;
  color: rgba(110, 90, 80, 1);
  padding: 8px 10px;
  line-height: 2;
}
ul.site-menu li:first-child {
  position: relative;
  z-index: 2;
  background-color: white;
  padding: var(--verticalPadding) var(--horizontalPadding) 0 var(--horizontalPadding);
  box-shadow: inset rgba(139, 69, 19, 0.3) 0 0 50px, rgba(120, 100, 90, 0.4) 0 -4px 10px;
}

ul.site-menu li:nth-child(2) {
  background-color: white;
  padding: 10px var(--horizontalPadding);
  box-shadow: inset rgba(139, 69, 19, 0.2) 0 0 50px, rgba(120, 100, 90, 0.8) 0 0 10px;
}

ul.site-menu li:nth-child(3) {
  background-color: white;
  padding: 0 var(--horizontalPadding) var(--verticalPadding) var(--horizontalPadding);
  box-shadow: inset rgba(139, 69, 19, 0.3) 0 0 50px, rgba(120, 100, 90, 0.4) 0 4px 10px;
}

.menu-open-close ul.site-menu li:first-child {
  transform: rotateX(-30deg) translateY(0.65em) scale(0.98);
  transform-origin: 50% 100%;
  box-shadow: inset rgba(139, 69, 19, 0.5) 0 0 50px, rgba(120, 100, 90, 0.1) 0 -20px 10px;
}

.menu-open-close ul.site-menu li:nth-child(2) {
  transform: rotateX(30deg) scale(1);
  transform-origin: 50% 50%;
  box-shadow: inset rgba(139, 69, 19, 0.4) 0 40px 150px;
}

.menu-open-close ul.site-menu li:nth-child(3) {
  transform: rotateX(-30deg) translateY(-0.45em) scale(1.026);
  transform-origin: 50% 0%;
  box-shadow: inset rgba(139, 69, 19, 0.4) 0 40px 150px;
}
@media screen and (min-width:598px){
  .menu-btn {
      right: 15px;
      top: 15px;
      width: 75px;
      height: 75px;
  }
  .menu-btn::before {
      bottom: -26px;
      left: 83px;
      width: 7px;
      height: 7px;
  }
  .menu-btn:after {
      bottom: -35px;
      left: 65px;
      width: 12px;
      height: 55px;
  }
  .menu-btn-text {
    top: 6px;
    left: 6px;
    width: 60px;
    height: 60px;
    box-shadow: 3px 3px 3px #555, -2px -2px 3px #555;
    line-height: 55px;
    font-size:18px;
  }
  .menu{
    top: 70px;
    right: 70px;
  } 
  .app-icon{
      display: inline-block;
      height: 95px;
      padding: 15px;
  }
  .icon{
    max-width:75px;
    max-height: 75px;
  }
  .app-icon a{
    max-width: 352px;
    margin: 0 auto;
  }
  .site-title{
    font-size:42px;
    width:272px;
    left:70px;
  }
}
.hidariue-text {
  position: absolute;
  top: -1.2em;
  left: 0;
  transform: rotate(-8deg);
  font-size: 0.4em;
}
.hidariue-text + .header-text {
  position: relative;
  display: inline-block;
  z-index: 1;
  padding: 1.3em 0 0;
}
.result-header .hidariue-text  + .header-text {
  padding-bottom:1.5em;
}
.balloon {
  background: var(--fr-sub-color);
  border-radius: 40% 56% 38% / 63% 46% 64%;
  padding: 16px 12px;
  width: fit-content;
  max-width: 300px;
  font-size: 1rem;
}
.balloon::after {
  content: "";
  position: absolute;
  bottom: -9px;
  right: -4px;
  margin-top: -15px;
  border: 10px solid transparent;
  border-left: 20px solid var(--fr-sub-color);
  z-index: 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(69deg);
}
input.form-control::placeholder {
  color: #ccc;
}
/* 色 */
.btn-color,
.btn-mood {
  width: calc(25% - 0.5em);
}
.btn-color {
  height: 50px;
  background-color: var(--fr-result-color);
}
.btn-color.color-red {
  background-color: #d62828 !important; /* 赤 */
}
.color-red .btn-mood:before {
  color: #d62828;
}

.btn-color.color-pale-pink {
  background-color: #f497b6 !important; /* 薄桃 */
}
.color-pale-pink .btn-mood:before {
  color: #f497b6;
}

.btn-color.color-sandy-orange {
  background-color: #f4a261 !important; /* 黄橙 */
}
.color-sandy-orange .btn-mood:before {
  color: #f4a261;
}

.btn-color.color-medium-teal {
  background-color: #2a9d8f !important; /* グリーン */
}
.color-medium-teal .btn-mood:before {
  color: #2a9d8f;
}

.btn-color.color-sky-blue {
  background-color: #00b4d8 !important; /* 水色 */
}
.color-sky-blue .btn-mood:before {
  color: #00b4d8;
}

.btn-color.color-purple {
  background-color: #6a4c93 !important; /* 紫 */
}
.color-purple .btn-mood:before {
  color: #6a4c93;
}

.btn-color.color-magenta {
  background-color: #e639af !important; /* ショッキングピンク寄り */
}
.color-magenta .btn-mood:before {
  color: #e639af;
}

.btn-color.color-brown {
  background-color: #7b5e3b !important; /* ブラウン */
}
.color-brown .btn-mood:before {
  color: #7b5e3b;
}
/* 気分 */
.btn-mood::before {
  font-family: "Font Awesome 5 Free";
  font-size: 40px;
  line-height: 1;
  color: var(--fr-accent-color-vivid);
  font-weight: bold;
}
.mood-text {
  white-space: nowrap;
  width: 4.5em;
}
.mood-smile::before {
  content: "\f118";
} /* smile (fas fa-smile) */
.mood-not-good::before {
  content: "\f5c2";
} /* meh-rolling-eyes (far fa-meh-rolling-eyes) */
.mood-ok::before {
  content: "\f11a";
} /* meh (fas fa-meh) */
.mood-motivated::before {
  content: "\f4da";
} /* dizzy (fas fa-dizzy) */
.mood-happy::before {
  content: "\f585";
} /* grin-squint (far fa-grin-squint) */
.mood-not-easy::before {
  content: "\f5c8";
} /* tired (fas fa-tired) */
.mood-irritated::before {
  content: "\f556";
} /* angry (fas fa-angry) */
.mood-depressed::before {
  content: "\f5b4";
} /* sad-tear (far fa-sad-tear) */
/* 質問表示切替 */
.question-box {
  display: none;
}
/* 質問 */
.question {
  position: relative;
  padding-left: 3.8rem;
  display: block;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--fr-main-color);
  margin-bottom: 1.7rem;
}
.question-num {
  display: inline-block;
  font-family: serif;
  font-size: 2.4rem;
  font-weight: bold;
  letter-spacing: 0;
  font-style: italic;
  color: var(--fr-main-color);
  position: absolute;
  left: 0;
  bottom: -0.6rem;
}
.bottom-btns-wrap {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.question-return {
  position: absolute;
  right: 0;
}
/* ルーレット */
.roulette {
  position: relative;
  margin-top: 16px;
}
#canvas {
  max-width: 100%;
  aspect-ratio: 1/1;
  margin-left: 50%;
  transform: translateX(-50%);
}
.pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 20px solid var(--fr-main-color-vivid);
  z-index: 10;
}
.center-circle,
.result-num {
  display: table;
  position: absolute;
  left: 50%;
  top: calc(50% - 22px);
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1;
}
.result-num {
  font-size: 48px;
  font-weight: bold;
  color: #000;
  text-shadow: 1px 1px 0 var(--fr-main-color-vivid);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: none;
}
@keyframes resultPop {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  30% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}
.center-circle p {
  display: table-cell;
  vertical-align: middle;
  color: var(--fr-main-color-vivid);
  font-weight: bold;
  font-size: 1.85rem;
}
/** 結果 */
.result-content h1 {
  padding-left: 10px;
  padding-right: 10px;
}
.result-header-background > span:nth-child(2n) {
  margin-top: -15%;
}
.result-header-background > span:nth-child(2n + 1) {
  margin-top: 5%;
}
.result-header {
  background-color: #fff;
  box-shadow: 10px 10px var(--fr-result-color);
}
#title,
#loading-title {
  color: var(--fr-result-color);
    text-shadow:
        1.5px 1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        1.5px -1.5px 0 #000,
        -1.5px -1.5px 0 #000;
}
.selected-mood {
  padding: 34px 0;
}
.selected-mood:before {
  font-size: 40px;
  color: var(--fr-accent-color-vivid);
  font-family: "Font Awesome 5 Free";
  font-weight: 900; /* Solidアイコンを使う場合 */
  display: inline-block;
  margin-right: 6px;
}
.selected-mood:before,
.selected-number {
  color: var(--fr-result-color-light);
}
.selected-mood span {
  display: block;
  white-space: nowrap;
}
span.selected-mood:before {
  font-size: 60px;
}
span.selected-number {
  font-size: 66px;
  width: 1.4em;
  height: 100px;
  font-style: italic;
  text-align: center;
}
#selected-background-1 {
  transform: rotate(20deg);
}
#selected-background-2 {
  transform: rotate(-20deg);
}
#selected-background-3 {
  transform: rotate(20deg);
}
#selected-background-4 {
  transform: rotate(-40deg);
}
#selected-background-5 {
  transform: rotate(-40deg);
}
#selected-background-6 {
  transform: rotate(20deg);
}
#selected-background-7 {
  transform: rotate(20deg);
}
#selected-background-8 {
  transform: rotate(10deg);
}
#selected-background-9 {
  transform: rotate(-10deg);
}
#selected-background-10 {
  transform: rotate(-40deg);
}
#selected-background-11 {
  transform: rotate(20deg);
}
#selected-background-12 {
  transform: rotate(-40deg);
}
#selected-background-13 {
  transform: rotate(20deg);
}
#selected-background-14 {
  transform: rotate(20deg);
}
#selected-background-15 {
  transform: rotate(-40deg);
}
#selected-background-16 {
  transform: rotate(-20deg);
}
#selected-background-17 {
  transform: rotate(40deg);
}
#selected-background-18 {
  transform: rotate(-40deg);
}
#selected-background-19 {
  transform: rotate(20deg);
}
#selected-background-20 {
  transform: rotate(-20deg);
}
#selected-background-21 {
  transform: rotate(20deg);
}
#selected-background-22 {
  transform: rotate(-40deg);
}
#selected-background-23 {
  transform: rotate(-40deg);
}
#selected-background-24 {
  transform: rotate(20deg);
}
#selected-background-25 {
  transform: rotate(20deg);
}
#selected-background-26 {
  transform: rotate(10deg);
}
#selected-background-27 {
  transform: rotate(-10deg);
}
#selected-background-28 {
  transform: rotate(-40deg);
}
#selected-background-29 {
  transform: rotate(20deg);
}
#selected-background-30 {
  transform: rotate(-40deg);
}
@media screen and (max-width: 998px) {
  .result-header-background {
    row-gap: 0;
    column-gap: 30px;
  }
  span.selected-number {
    font-size: 50px;
    width: 1em;
    height: 60px;
  }
  span.selected-mood:before {
    font-size: 40px;
    line-height: 1;
  }
  #title,
  #loading-title {
    text-shadow: none;
    -webkit-text-stroke: 1px #000; /* 文字の縁取り */
    -webkit-font-smoothing: antialiased; /* アンチエイリアス補正 */
  }
}
.fortune-result {
  position: relative;
  padding: 0.1rem 0.5em 0.1rem;
  background-image: linear-gradient(90deg, transparent 0%, transparent 50%, #f5f2f0 50%, #f5f2f0 100%), /* 点線1の色 */ linear-gradient(180deg, #ccc 1px, #f5f2f0 1px);
  background-size: 12px 100%, 100% 2rem;
  background-position: 0px -1px;
  line-height: 2rem;
  box-shadow: 0 0 0 0.5rem #f5f2f0;
  border-left: 10px dotted #ffd7cc;
  margin: 0 auto 2rem;
  width: calc(100% - 2rem);
  max-width: 598px;
}
.fortune-result::after {
  position: absolute;
  bottom: 0.5rem;
  right: 0;
  width: 50%;
  height: 20%;
  box-shadow: 0 10px 15px #333;
  transform: rotate(4deg);
  content: "";
  z-index: -1;
}
.fortune-result p{
  margin-bottom:2em;
}
.fortune-result p:last-child{
  margin-bottom:0;
}
.recipe-card {
  position: relative;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border: 2px solid var(--fr-main-color);
}
.lucky-food-card {
  border-radius: 0;
  border: none;
  margin-left: 6px;
  margin-top: 6px;
}
.lucky-food-card::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: -6px;
  left: -6px;
  border: 2px solid var(--fr-result-color);
}
.lucky-food-card h2 {
  text-shadow: 2px 2px 0 var(--fr-result-color);
}
.recipe-title {
  background: var(--fr-main-color);
  margin: -1rem -1rem 1rem;
  padding: 1rem;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 0 #fff;
}

.tags {
  margin-top: 1rem;
}
.tag {
  display: inline-block;
  background: #ffb84d;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  margin: 0.2rem;
  font-size: 0.8rem;
}
.recipe-charts {
  min-height: 400px;
}
.merit-chart {
  width: 100% !important;
  max-width: 400px;
  max-height: 400px !important; /* 明示的に高さを設定 */
}
.rader-label {
  font-size: 16px;
  color: #333;
}
.recipe-meta-wrap {
  display: flex;
  gap: 1em;
  align-items:flex-start;
}
.recipe-meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items:flex-start;
}
.recipe-meta-title {
  display: inline-block;
  white-space: nowrap;
  background: #777;
  color: #fff;
  padding: 1px 10px 3px;
  border-radius: 20px;
  margin-right: 4px;
  line-height: 1.6;
}
.recipe-meta-title:after {
  font-family: "FOnt Awesome 5 Free";
  font-weight: bold;
  display: inline-block;
  margin-left: 4px;
}
.recipe-genre .recipe-meta-title:after {
  content: "\f024";
}
.recipe-time .recipe-meta-title:after {
  content: "\f2f2";
}
.recipe-calories .recipe-meta-title:after {
  content: "\f06d";
}
.recipe-tags {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0.8em;
  white-space: nowrap;
}
.recipe-tag {
  position: relative;
  background: linear-gradient(120deg, var(--fr-sub-color) 0%, var(--fr-pastel-peach) 100%);
  padding: 4px 8px;
  cursor: pointer;
  z-index: 0;
}
.recipe-tag::before {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  left: -3px;
  top: -3px;
  border: 1px solid var(--fr-main-color-vivid);
  z-index: -1;
}
.recipe-tag input {
  display: none;
}
.recipe-tag label {
  display: block;
  cursor: pointer;
  padding-bottom: 4px;
  padding-right: 4px;
  z-index: 2;
}
.recipe-tag label::before {
  content: "\f25a";
  font-family: "Font Awesome 5 Free";
  font-weight: bold;
  font-size: 1.5em;
  line-height: 1;
  transform: rotate(-15deg);
  color: var(--fr-main-color);
  display: inline-block;
  margin-right: 4px;
  margin-left: -4px;
}
.tag-description {
  display: block;
  opacity: 0;
  visibility: 0;
  min-height: 0;
  max-height: 0;
  height: 0;
  width: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out, min-height 0.5s ease-in-out, height 0.5s ease-in-out, width 0.5s ease-in-out;
  z-index: 2;
  white-space: normal;
}
.recipe-tag input:checked + label > .tag-description {
  opacity: 1;
  visibility: visible;
  min-height: 1rem;
  max-height: 5rem;
  height: auto;
  width: 100%;
}
.recipe-cooking {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1em;
}
.recipe-ingredients {
  max-width: 432px;
  min-width: 45%;
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  flex-wrap: wrap;
  border: solid 1px #e6e6e6;
  padding: 1.3em 1em 2em 1em;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}
.recipe-ingredients li {
  display: inline-block;
  background-color: #fff;
  background-image: linear-gradient(90deg, rgba(237, 119, 128, 0) 0%, rgba(237, 119, 128, 0) 50%, #fff 0%, #fff 100%),
    linear-gradient(180deg, rgba(100, 100, 100, 0) 0%, rgba(100, 100, 100, 0) 97.5%, #646464 100%);
  background-size: 8px 100%, 100% 2em;
  line-height: 2em;
  padding: 0 1rem 0.2rem 1rem;
}
.recipe-ingredients-title {
  font-size: 1.2em;
}
.recipe-steps {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  min-width: 45%;
  max-width: 432px;
  position: relative;
  margin: 2em auto;
  background-color: #e6ecf2;
  padding: 2em 2em;
}
.recipe-steps .recipe-steps-title {
  background-color: rgb(255 255 255 / 0.1);
  border-left: 2px dotted rgb(0 0 0 / 0.1);
  border-right: 2px dotted rgb(0 0 0 / 0.1);
  box-shadow: 0 0 5px rgb(0 0 0 / 0.12);
  transform: rotate(-2deg);
  color: #666;
  padding: 10px 20px;
  line-height: 1;
  position: absolute;
  top: -1em;
  left: 1em;
  display: inline-block;
  font-size: 1.2em;
  width: auto;
  max-width: calc(100% - 2em);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-label {
  font-family: Arial, Helvetica, sans-serif;
  width: 78px;
  white-space: break-spaces;
  text-align: center;
  font-weight:bold;
}
.show-cooking-check {
  display: none;
}
.recipe-cooking {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  height: 0;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out, max-height 0.5s ease-in-out, height 0.5s ease-in-out;
}
.show-cooking {
  cursor: pointer;
  margin-bottom: 1rem;
}
.show-cooking-check:checked + .show-cooking {
  color: #fff;
  background-color: #fff;
  border: 1px solid #999;
}
.show-cooking-check:checked + .show-cooking::before {
  content: "閉じる";
  color: #999;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.show-cooking-check:checked + label + .recipe-cooking {
  opacity: 1;
  visibility: visible;
  max-height: 1000px;
  height: auto;
}
#luckyFoods {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  list-style: none;
  padding: 4em 0;
}
.lucky-food-name,
.lucky-food-description {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 2/1;
  z-index: 1;
}
.lucky-food-name {
  width: 40%;
  background-color: #fff;
  z-index: 2;
  max-width: 10em;
  margin-top: -10%;
}
.lucky-food-name::before {
  content: "";
  width: 100%;
  height: 100%;
  border: 1px solid var(--fr-result-color-light);
  position: absolute;
  top: -5px;
  left: -5px;
  z-index: -1;
}
#luckyFoods li:nth-child(odd) .lucky-food-name {
  margin-left: 0;
  margin-right: 20%;
}
#luckyFoods li:nth-child(even) .lucky-food-name {
  margin-left: 60%;
  margin-right: 0;
}
.lucky-food-description {
  width: 80%;
  max-width: 400px;
  margin-top: -25%;
  background: #efefef;
  padding: 1rem;
}
#luckyFoods li:nth-child(odd) .lucky-food-description {
  margin-left: 20%;
  margin-right: 0;
}
#luckyFoods li:nth-child(even) .lucky-food-description {
  margin-left: 0;
  margin-right: 20%;
}
.lucky-food-description::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--fr-result-color-light);
}
@media screen and (min-width: 992px) {
  #luckyFoods li:nth-child(even) {
    margin-left: 20px;
    margin-right: 10%;
  }
  #luckyFoods li:nth-child(odd) {
    margin-left: 10%;
    margin-right: 20px;
  }
}
@media screen and (max-width: 998px) {
  .recipe-charts {
    padding: 0 20px;
  }
  .btn-right {
    float: right;
  }
}
.loading-box {
  margin-bottom: -5em !important;
  border-radius: 9em;
}
.loading-dot {
  display: inline-block;
  animation: loading 1.5s ease-in infinite;
  -webkit-animation: loading 1.5s ease-in infinite;
  margin-left: 2px;
}
#dot-1 {
  animation-delay: 0.1s;
  -webkit-animation-delay: 0.1s;
}
#dot-2 {
  animation-delay: 0.3s;
  -webkit-animation-delay: 0.3s;
}
#dot-3 {
  animation-delay: 0.5s;
  -webkit-animation-delay: 0.5s;
}
#dot-4 {
  animation-delay: 0.7s;
  -webkit-animation-delay: 0.7s;
}
#dot-5 {
  animation-delay: 0.8s;
  -webkit-animation-delay: 0.8s;
}
#dot-6 {
  animation-delay: 1s;
  -webkit-animation-delay: 1s;
}
/* ローディング */
@keyframes loading {
  0%,
  20%,
  100% {
    transform: translate(0);
  }
  10% {
    transform: translateY(-10px);
  }
}
.loading-box .selected-number {
  position: relative;
  transition: unset;
}
.loading-box .selected-number {
  color: rgba(214, 40, 40, 0.3);
  animation: change-light-color 62s steps(31, start) infinite;
  -webkit-animation: change-light-color 62s steps(31, start) infinite;
}
#loading-title {
  color: rgba(214, 40, 40, 1);
  animation: change-color 62s steps(31, start) infinite;
  -webikit-animation: change-color 62s steps(31, start) infinite;
}

/* --- 色を順番に変える --- */
@keyframes change-light-color {
  0%,
  25.8%,
  51.61%,
  77.41%,
  100% {
    color: rgba(214, 40, 40, 0.3);
  } /* smile */
  3.22%,
  29.03%,
  54.83%,
  80.64% {
    color: rgba(244, 151, 182, 0.3);
  } /* meh-rolling-eyes */
  6.45%,
  32.25%,
  58.06%,
  83.87% {
    color: rgba(244, 162, 97, 0.3);
  } /* meh */
  9.67%,
  35.48%,
  61.29%,
  87.09% {
    color: rgba(42, 157, 143, 0.3);
  } /* dizzy */
  12.9%,
  38.7%,
  64.51%,
  87.09% {
    color: rgba(0, 180, 216, 0.3);
  } /* grin-squint */
  16.12%,
  41.93%,
  67.74%,
  90.32% {
    color: rgba(106, 76, 147, 0.3);
  } /* tired */
  19.35%,
  45.16%,
  70.96%,
  93.54% {
    color: rgba(230, 57, 175, 0.3);
  } /* angry */
  22.58%,
  48.38%,
  74.19%,
  96.77% {
    color: rgba(123, 94, 59, 0.3);
  } /* sad-tear */
}
@keyframes change-color {
  0%,
  25.8%,
  51.61%,
  77.41%,
  100% {
    color: rgba(214, 40, 40, 1);
  } /* smile */
  3.22%,
  29.03%,
  54.83%,
  80.64% {
    color: rgba(244, 151, 182, 1);
  } /* meh-rolling-eyes */
  6.45%,
  32.25%,
  58.06%,
  83.87% {
    color: rgba(244, 162, 97, 1);
  } /* meh */
  9.67%,
  35.48%,
  61.29%,
  87.09% {
    color: rgba(42, 157, 143, 1);
  } /* dizzy */
  12.9%,
  38.7%,
  64.51%,
  87.09% {
    color: rgba(0, 180, 216, 1);
  } /* grin-squint */
  16.12%,
  41.93%,
  67.74%,
  90.32% {
    color: rgba(106, 76, 147, 1);
  } /* tired */
  19.35%,
  45.16%,
  70.96%,
  93.54% {
    color: rgba(230, 57, 175, 1);
  } /* angry */
  22.58%,
  48.38%,
  74.19%,
  96.77% {
    color: rgba(123, 94, 59, 1);
  } /* sad-tear */
}
.loading-box .selected-mood::before {
  content: "\f118";
  animation: moodChange 62s steps(31, start) infinite;
  -webikit-animation: moodChange 62s steps(31, start) infinite;
}

/* moodごとのアイコン変化 */
@keyframes moodChange {
  0%,
  25.8%,
  51.61%,
  77.41%,
  100% {
    content: "\f118";
    color: rgba(214, 40, 40, 0.3);
  } /* smile */
  3.22%,
  29.03%,
  54.83%,
  80.64% {
    content: "\f5c2";
    color: rgba(244, 151, 182, 0.3);
  } /* meh-rolling-eyes */
  6.45%,
  32.25%,
  58.06%,
  83.87% {
    content: "\f11a";
    color: rgba(244, 162, 97, 0.3);
  } /* meh */
  9.67%,
  35.48%,
  61.29%,
  87.09% {
    content: "\f4da";
    color: rgba(42, 157, 143, 0.3);
  } /* dizzy */
  12.9%,
  38.7%,
  64.51%,
  87.09% {
    content: "\f585";
    color: rgba(0, 180, 216, 0.3);
  } /* grin-squint */
  16.12%,
  41.93%,
  67.74%,
  90.32% {
    content: "\f5c8";
    color: rgba(106, 76, 147, 0.3);
  } /* tired */
  19.35%,
  45.16%,
  70.96%,
  93.54% {
    content: "\f556";
    color: rgba(230, 57, 175, 0.3);
  } /* angry */
  22.58%,
  48.38%,
  74.19%,
  96.77% {
    content: "\f5b4";
    color: rgba(123, 94, 59, 0.3);
  } /* sad-tear */
}
/* --- 数字を順番に見せる --- */
.loading-box .selected-number > span {
  opacity: 0;
  position: absolute;
  top: calc(50% - 0.5em);
  left: calc(50% - 0.5em);
  width: 1em;
  height: 1em;
  line-height: 1;
  transition: unset;
  animation: number-fade 62s steps(31, start) infinite;
  -webikit-animation: number-fade 62s steps(31, start) infinite;
}
@keyframes number-fade {
  /*
   * 0%から約3.22%（62秒のうちの2秒間に相当）まで opacity: 1 を維持する
   * 数字が消えると同時に次の数字が表示されるようになります。
   */
  0%,
  3.22% {
    opacity: 1;
  }
  3.23%,
  100% {
    opacity: 0;
  }
}
.selected-number > span:nth-child(1) {
  animation-delay: 0s;
  -webikit-animation-delay: 0s;
}
.selected-number > span:nth-child(2) {
  animation-delay: 2s;
  -webikit-animation-delay: 2s;
}
.selected-number > span:nth-child(3) {
  animation-delay: 4s;
  -webkit-animation-delay: 4s;
}
.selected-number > span:nth-child(4) {
  animation-delay: 6s;
  -webkit-animation-delay: 6s;
}
.selected-number > span:nth-child(5) {
  animation-delay: 8s;
  -webkit-animation-delay: 8s;
}
.selected-number > span:nth-child(6) {
  animation-delay: 10s;
  -webkit-animation-delay: 10s;
}
.selected-number > span:nth-child(7) {
  animation-delay: 12s;
  -webkit-animation-delay: 12s;
}
.selected-number > span:nth-child(8) {
  animation-delay: 14s;
  -webkit-animation-delay: 14s;
}
.selected-number > span:nth-child(9) {
  animation-delay: 16s;
  -webkit-animation-delay: 16s;
}
.selected-number > span:nth-child(10) {
  animation-delay: 18s;
  -webkit-animation-delay: 18s;
}
.selected-number > span:nth-child(11) {
  animation-delay: 20s;
  -webkit-animation-delay: 20s;
}
.selected-number > span:nth-child(12) {
  animation-delay: 22s;
  -webkit-animation-delay: 22s;
}
.selected-number > span:nth-child(13) {
  animation-delay: 24s;
  -webkit-animation-delay: 24s;
}
.selected-number > span:nth-child(14) {
  animation-delay: 26s;
  -webkit-animation-delay: 26s;
}
.selected-number > span:nth-child(15) {
  animation-delay: 28s;
  -webkit-animation-delay: 28s;
}
.selected-number > span:nth-child(16) {
  animation-delay: 30s;
  -webkit-animation-delay: 30s;
}
.selected-number > span:nth-child(17) {
  animation-delay: 32s;
  -webkit-animation-delay: 32s;
}
.selected-number > span:nth-child(18) {
  animation-delay: 34s;
  -webkit-animation-delay: 34s;
}
.selected-number > span:nth-child(19) {
  animation-delay: 36s;
  -webkit-animation-delay: 36s;
}
.selected-number > span:nth-child(20) {
  animation-delay: 38s;
  -webkit-animation-delay: 38s;
}
.selected-number > span:nth-child(21) {
  animation-delay: 40s;
  -webkit-animation-delay: 40s;
}
.selected-number > span:nth-child(22) {
  animation-delay: 42s;
  -webkit-animation-delay: 42s;
}
.selected-number > span:nth-child(23) {
  animation-delay: 44s;
  -webkit-animation-delay: 44s;
}
.selected-number > span:nth-child(24) {
  animation-delay: 46s;
  -webkit-animation-delay: 46s;
}
.selected-number > span:nth-child(25) {
  animation-delay: 48s;
  -webkit-animation-delay: 48s;
}
.selected-number > span:nth-child(26) {
  animation-delay: 50s;
  -webkit-animation-delay: 50s;
}
.selected-number > span:nth-child(27) {
  animation-delay: 52s;
  -webkit-animation-delay: 52s;
}
.selected-number > span:nth-child(28) {
  animation-delay: 54s;
  -webkit-animation-delay: 54s;
}
.selected-number > span:nth-child(29) {
  animation-delay: 56s;
  -webkit-animation-delay: 56s;
}
.selected-number > span:nth-child(30) {
  animation-delay: 58s;
  -webkit-animation-delay: 58s;
}
.selected-number > span:nth-child(31) {
  animation-delay: 60s;
  -webkit-animation-delay: 60s;
}
@media screen and (max-width: 998px) {
  .loading-box {
    min-height: 320px;
  }
}
