:root {
  --detail-selected: #088960;
  --detail-selected-02: #28b39c;
  --detail-selected-03: #52bfa9;
  /*--detail-bg:center / cover no-repeat url(../../img/brand/tonyusoft/detail/bg-detail-frame-upper.png);*/
  --detail-bg: center / cover no-repeat url(../../img/brand/tonyusoft/detail/bg-detail-frame-upper.jpg);
}

/* slick */

.ly-tonyusoftDetail .topSlider {
  margin-left: 2px;
  margin-right: 2px;
  position: relative;
  z-index:10;
}

.ly-tonyusoftDetail .slick-active button::before {
  background-color: var(--detail-selected) !important;
}

.ly-tonyusoftDetail .slide-dots li button::before {
  background-color: #f1e173;
}

@media all and (max-width: 960px) {
  .ly-tonyusoftDetail .topSlider {
    margin-left: 1.5px;
    margin-right: 1.5px;
  }
}

/* swiper */

.ly-tonyusoftDetail .swiper-button-prev,
.ly-tonyusoftDetail .swiper-button-next {
  background-color: var(--detail-selected);
  outline: 1px solid var(--detail-selected);
}

.ly-tonyusoftDetail .swiper-button-prev::after,
.ly-tonyusoftDetail .swiper-button-next::after {
  background-color: #fff;
}

.ly-tonyusoftDetail .swiper-button-prev:hover::after,
.ly-tonyusoftDetail .swiper-button-next:hover::after {
  background-color: var(--detail-selected);
}

/* ui-color */

.ly-tonyusoftDetail .sec-recipe_ingredient-item a {
  color: var(--detail-selected);
}

.ly-tonyusoftDetail .i-fav[data-fav="on"]::after,
.ly-tonyusoftDetail .i-fav[data-fav="off"]::after {
  background-color: #ffde00;
}

.ly-tonyusoftDetail .c-button_inner {
  border-color: #000;
}

/* padding */

@media all and (max-width: 960px) {
  .ly-tonyusoftDetail .sec-recipe_title,
  .ly-tonyusoftDetail .sec-recipe_desc,
  .ly-tonyusoftDetail .sec-recipe_content,
  .ly-tonyusoftDetail .sec-recipe_annotation,
  .ly-tonyusoftDetail .sec-recipe_prepare,
  .ly-tonyusoftDetail .sec-recipe_howto {
    padding-left: min(calc((12 / var(--sp)) * 100vw), 12px);
    padding-right: min(calc((12 / var(--sp)) * 100vw), 12px);
  }
}

/* wrap */

.ly-tonyusoftDetail .c-wrapper {
  /*background: url(../../img/brand/tonyusoft/detail/bg-detail.png) top;*/
  background: url(../../img/brand/tonyusoft/detail/bg-detail.jpg) top;
  background-size: cover;
  background-position-y: -5px;
}

.ly-tonyusoftDetail .sec-recipe {
  background: var(--detail-bg);
  padding: 42px 41px 50px;
  border-radius: 30px;
}

.ly-tonyusoftDetail .sec-recipe_border-inside {
  position: relative;
}

.ly-tonyusoftDetail .sec-recipe_border-inside::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  background: linear-gradient(to right, var(--detail-selected), var(--detail-selected) 2px, transparent 2px, transparent 4px) repeat-x left bottom / 8px 2px, linear-gradient(to bottom, var(--detail-selected), var(--detail-selected) 2px, transparent 2px, transparent 4px) repeat-y left top / 2px 8px, linear-gradient(to bottom, var(--detail-selected), var(--detail-selected) 2px, transparent 2px, transparent 4px) repeat-y right top / 2px 8px;
  width: 100%;
  height: 100%;
}

.ly-tonyusoftDetail .sec-recipe_border-inside::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  border: 3px solid var(--detail-selected);
  border-radius: 10px;
  width: calc(100% + 21px);
  height: calc(100% + 20px);
  top: -11px;
  left: -10px;
}

@media all and (max-width: 960px) {
  .ly-tonyusoftDetail .sec-recipe_border-inside {
    margin-top: -20px;
  }
  .ly-tonyusoftDetail .sec-recipe {
    /* background: center / cover no-repeat url(../../img/brand/tonyusoft/detail/bg-detail-frame-upper_sp.png); */
  }

  .ly-tonyusoftDetail .sec-recipe_border-inside::before {
    background: linear-gradient(to right, var(--detail-selected) 50%, transparent 50%) repeat-x left top / 4px 2px, linear-gradient(to right, var(--detail-selected) 50%, transparent 50%) repeat-x left bottom / 4px 2px, linear-gradient(to bottom, var(--detail-selected) 50%, transparent 50%) repeat-y left top / 2px 4px, linear-gradient(to bottom, var(--detail-selected) 50%, transparent 50%) repeat-y right top / 2px 4px;
    border-radius: 4px;
  }
  .ly-tonyusoftDetail .sec-recipe_border-inside::after {
    border-width: 2px;
    width: calc(100% + 9px);
    height: calc(100% + 8px);
    top: -5px;
    left: -4px;
  }
  .ly-tonyusoftDetail .sec-recipe {
    padding: 30px 9px 8px !important;
    border-radius: 1em;
  }
}

/* top */

.ly-tonyusoftDetail .sec-recipe_howto {
  padding-bottom: 83px;
}

.ly-tonyusoftDetail .sec-recipe_pill {
  background: #f1e173;
}

.ly-tonyusoftDetail .sec-recipe_heading {
  top: 0;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 24px;
  background-size: auto;
  z-index: 10;
  width: 100%;
}

.ly-tonyusoftDetail .sec-recipe_logo {
  background: var(--detail-bg);
  max-width: 210px;
  width: 100%;
  height: 106px;
  margin-left: auto;
  margin-right: auto;
}

.ly-tonyusoftDetail .sec-recipe_heading::before {
  content: "";
  width: calc(50% - 146px);
  height: 12px;
  background: linear-gradient(to right, var(--detail-selected), var(--detail-selected) 2px, transparent 2px, transparent 4px) repeat-x left top / 8px 2px;
  position: absolute;
  top: 42px;
  left: 41px;
}

.ly-tonyusoftDetail .sec-recipe_heading::after {
  content: "";
  width: calc(50% - 148px);
  height: 12px;
  background: linear-gradient(to right, var(--detail-selected), var(--detail-selected) 2px, transparent 2px, transparent 4px) repeat-x left top / 8px 2px;
  position: absolute;
  top: 42px;
  right: 41px;
}

.ly-tonyusoftDetail .sec-recipe_title {
  padding-top: 124px;
}

.ly-tonyusoftDetail .sec-recipe__deco {
  background-image: url(../../img/brand/tonyusoft/detail/ico_leaf_01.svg);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  max-width: 151px;
  width: 100%;
  height: 156px;
  position: absolute;
  top: -17px;
  left: 75px;
  z-index: 5;
}
.ly-tonyusoftDetail .sec-recipe__deco.--deco02 {
  background-image: url(../../img/brand/tonyusoft/detail/ico_leaf_02.svg);
  max-width: 136px;
  height: 180px;
  top: -56px;
  left: auto;
  right: -71px;
  z-index: 5;
}
.ly-tonyusoftDetail .sec-recipe__deco.--deco03 {
  background-image: url(../../img/brand/tonyusoft/detail/ico_leaf_03.svg);
  max-width: 160px;
  height: 162px;
  top: auto;
  bottom: 22px;
  left: 62px;
  z-index: 5;
}

@media all and (max-width: 960px) {
  .ly-tonyusoftDetail .sec-recipe_title {
    padding-top: 89px;
  }
  .ly-tonyusoftDetail .sec-recipe_heading {
    top: 0px;
    padding-top: 0;
    padding-left: 12px;
    padding-right: 12px;
  }
  .ly-tonyusoftDetail .sec-recipe_heading::before {
    content: "";
    width: calc(50% - 66px);
    height: 4px;
    background: linear-gradient(to right, var(--detail-selected), var(--detail-selected) 1.5px, transparent 1.5px, transparent 3px) repeat-x left top / 6px 1.5px;
    top: 12px;
    left: 9px;
    display: none;
  }

  .ly-tonyusoftDetail .sec-recipe_heading::after {
    content: "";
    width: calc(50% - 66px);
    height: 4px;
    background: linear-gradient(to right, var(--detail-selected), var(--detail-selected) 1.5px, transparent 1.5px, transparent 3px) repeat-x left top / 6px 1.5px;
    top: 12px;
    right: 9px;
    display: none;
  }
  .ly-tonyusoftDetail .sec-recipe_heading img {
    width: 95px;
  }
  .ly-tonyusoftDetail .sec-recipe_logo {
    max-width: 110px;
    width: 100%;
    height: 79px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .ly-tonyusoftDetail .sec-recipe__deco {
    max-width: 75.5px;
    height: 78px;
    top: -20px;
    left: 20px;
    z-index: 5;
  }
  .ly-tonyusoftDetail .sec-recipe__deco.--deco02 {
    max-width: 68px;
    height: 90px;
    top: 6px;
    left: auto;
    right: -22px;
    z-index: 5;
  }
  .ly-tonyusoftDetail .sec-recipe__deco.--deco03 {
    max-width: 80px;
    height: 81px;
    top: auto;
    bottom: -14px;
    left: 19px;
    z-index: 10;
  }
  .ly-tonyusoftDetail .sec-recipe_howto {
    padding-bottom: 24px;
  }
  .ly-tonyusoftDetail .sec-recipe_howto-chunk.sec-recipe_box{
    padding-bottom: 40px;
  }
}

@media (max-width: 960px) and (min-width: 640px) {
  .ly-tonyusoftDetail .sec-recipe_heading::before,
  .ly-tonyusoftDetail .sec-recipe_heading::after {
    width: calc(50% - 130px);
  }
  .ly-tonyusoftDetail .sec-recipe_heading::before {
    left: 24px;
  }
  .ly-tonyusoftDetail .sec-recipe_heading::after {
    right: 24px;
  }
}

/* content */

.ly-tonyusoftDetail .sec-recipe_box {
  background-image: url(../../img/brand/tonyusoft/detail/bg-recipe-box.png);
  background-size: cover;
  background-position: center center;
  background-repeat: repeat;
  position: relative;
  z-index: 10;
}

@media all and (min-width: 961px) {
  .ly-tonyusoftDetail .sec-recipe_nutrition-heading {
    padding: 6px 26px;
  }
}

/* howtomake */

.ly-tonyusoftDetail .sec-recipe_howto-title img {
  width: 160px;
  position: relative;
  top: -20px;
}

.ly-tonyusoftDetail .sec-recipe_howto-title::before,
.ly-tonyusoftDetail .sec-recipe_howto-title::after {
  border-top: 2px solid var(--detail-selected);
  margin-top: -22px;
}

@media all and (min-width: 961px) {
  .ly-tonyusoftDetail .sec-recipe_howto-title::before,
  .ly-tonyusoftDetail .sec-recipe_howto-title::after {
    width: calc(50% - 115px);
  }
}

@media all and (max-width: 960px) {
  .ly-tonyusoftDetail .sec-recipe_howto-title img {
    width: 93px;
    top: -8px;
  }
  .ly-tonyusoftDetail .sec-recipe_howto-title::before,
  .ly-tonyusoftDetail .sec-recipe_howto-title::after {
    background: #000;
    width: calc(50% - 69px);
    margin-top: 0;
    height: 1px;
  }
}

/* Rank */

.ly-tonyusoftDetail .c-ranking {
  /*background: center / cover no-repeat url(../../img/brand/tonyusoft/detail/bg-detail-frame-lower.png);*/
  background: center / cover no-repeat url(../../img/brand/tonyusoft/detail/bg-detail-frame-lower.jpg);
  background-size: 100% 100%;
  border-radius: 30px;
}

.ly-tonyusoftDetail .sec-recipe_return .c-button-arrow-left:hover::before {
  background: var(--detail-selected-03);
}

.ly-tonyusoftDetail .sec-recipe_return .c-button_inner:hover {
  background-color: var(--detail-selected-03);
  color: #fff;
  border-color: var(--detail-selected-03);
}

.ly-tonyusoftDetail .sec-recipe_return .c-button_inner:hover::before {
  background-color: #fff;
}

.ly-tonyusoftDetail .c-ranking h2 {
  padding-right: min(calc((64 / var(--pc)) * 100vw), 64px);
}

@media all and (max-width: 960px) {
  .ly-tonyusoftDetail .c-ranking {
    background: center / cover no-repeat url(../../img/brand/tonyusoft/detail/bg-detail-frame-lower_sp.png);
    border-radius: 1em;
  }

  .ly-tonyusoftDetail .c-ranking h2 {
    padding-right: 0;
  }
}

.ly-tonyusoftDetail .c-rank_flag {
  background-color: #f1e173;
}

.ly-tonyusoftDetail .c-rank_flag::before,
.ly-tonyusoftDetail .c-rank_flag::after {
  border-top: 8px solid #f1e173;
}
