@charset "utf-8";

/* 縦タイトル */

.block-recipe-header {
  position: relative;
  background-position: center top;
  background-repeat: no-repeat;
}

.block-recipe-header::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.block-recipe-header {
  .block-container {
    position: relative;
  }

  .item-comment {
    text-align: center;
  }
}

.block-recipe-header-point {
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-recipe-header-point {
  li {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
  }

  li::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background-color: rgba(234, 244, 212, 0.55);
    backdrop-filter: blur(20px);
    filter: drop-shadow(0px 0px 30px rgba(0, 0, 0, 0.2));
  }

  li > * {
    position: relative;
  }

  .list-ttl {
    font-family: var(--ff-serif);
  }
}

@media all and (min-width: 768px) {
  .block-recipe-header {
    min-height: 560px;
    background-image: url(../../img/recipe/mv.jpg);
    background-size: 1920px 560px;
  }

  .block-recipe-header::before {
    left: 50%;
    width: 1920px;
    height: 600px;
    margin-left: -960px;
    background-image: url(../../img/recipe/mv_leaf.png);
  }

  .block-recipe-header {
    .block-container {
      padding-top: 118px;
    }

    .ttl-h1 {
      margin-bottom: 15px;
    }

    .item-comment {
      font-size: 1.8rem;
      line-height: 1.666;
    }
  }

  .block-recipe-header-point {
    margin-top: 42px;

    li {
      width: 360px;
      height: 360px;
      padding-top: 92px;
    }

    li + li {
      margin-left: 40px;
    }

    li + li::after {
      content: "";
      display: block;
      position: absolute;
      top: 50%;
      left: -45px;
      width: 50px;
      height: 50px;
      margin-top: -25px;
      background-image: url(../../img/recipe/header_point.png);
      background-position: center;
      background-repeat: no-repeat;
      background-size: contain;
    }

    .list-ttl p:nth-child(1) {
      font-size: 2.2rem;
      line-height: 1;
    }

    .list-ttl p:nth-child(2) {
      margin-top: 24px;
      font-size: 3.2rem;
      line-height: 1.2;
    }

    .list-comment {
      margin-top: 38px;
      font-size: 1.8rem;
      line-height: 1.777;
    }

    :nth-child(1) .list-comment {
      margin-top: 24px;
    }
  }
}

@media all and (max-width: 767px) {
  .block-recipe-header {
    min-height: 82.05vw;
    background-image: url(../../img/recipe/sp/mv.jpg);
    background-size: 100vw 82.05vw;
  }

  .block-recipe-header::before {
    left: 0;
    width: 100vw;
    height: 120.51vw;
    background-image: url(../../img/recipe/sp/mv_leaf.png);
  }

  .block-recipe-header {
    .block-container {
      padding-top: 39px;
    }

    .ttl-h1 {
      margin-bottom: 24px;
    }

    .item-comment {
      font-size: 1.4rem;
      line-height: 1.571;
    }
  }

  .block-recipe-header-point {
    flex-wrap: wrap;
    position: relative;
    margin: 16px -10px 0;

    li {
      justify-content: center;
      width: calc((100vw - 30px) / 2);
      height: calc((100vw - 30px) / 2);
      z-index: 10;
    }

    li:nth-child(2) {
      margin-left: 10px;
      z-index: 30;
    }

    li:nth-child(3) {
      margin-top: -10vw;
      z-index: 20;
    }

    .list-ttl p:nth-child(1) {
      font-size: 1.3rem;
      line-height: 1;
    }

    .list-ttl p:nth-child(2) {
      margin-top: 6px;
      font-size: 2rem;
      line-height: 1.2;
    }

    .list-comment {
      margin-top: 7px;
      font-size: 1.2rem;
      line-height: 1.5;
    }
  }

  .block-recipe-header-point::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 25px;
    margin: -35px 0 0 -13px;
    background-image: url(../../img/recipe/sp/header_point.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 99;
  }
}

.block-common-tab {
  position: relative;
}

.block-common-tab::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--cl-gr-1);
}

.block-common-tab-items {
  display: flex;
}

.block-common-tab-item {
  flex-shrink: 0;
  position: relative;
  color: var(--cl-gr-txt);
}

.block-common-tab-item.is-active::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--cl-bk);
}

.block-common-tab-item a {
  display: block;
  color: var(--cl-gr-txt);
}

.block-common-tab-item.is-active a {
  color: var(--cl-bk);
  font-weight: 700;
}

@media all and (min-width: 768px) {
  .block-common-tab {
    margin-top: 80px;
  }

  .block-common-tab-item + .block-common-tab-item {
    margin-left: 40px;
  }

  .block-common-tab-item a {
    padding-bottom: 22px;
    font-size: 1.8rem;
  }
}

@media all and (max-width: 767px) {
  .block-common-tab {
    margin: 64px -20px 0;
  }

  .block-common-tab-items {
    padding: 0 20px;
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .block-common-tab-items::-webkit-scrollbar {
    display: none;
  }

  .block-common-tab-item + .block-common-tab-item {
    margin-left: 24px;
  }

  .block-common-tab-item a {
    padding-bottom: 15px;
  }
}

.block-recipe-list-items {
  display: flex;
  flex-wrap: wrap;
}

.block-recipe-list-item {
  position: relative;
  background-color: var(--cl-gn-bg);

  .list-img img {
    display: block;
    width: 100%;
    height: auto;
  }

  .list-time_calorie {
    font-family: var(--ff-num);
  }

  .list-time,
  .list-calorie {
    display: flex;
    align-items: center;
    position: relative;
    height: 21px;
    padding-left: 20px;
    line-height: 1;
  }

  .list-time::before,
  .list-calorie::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    background-position: center left;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .list-time::before {
    width: 14px;
    height: 14px;
    margin-top: -8px;
    background-image: url(../../img/recipe/icon_time.png);
  }

  .list-calorie::before {
    width: 12px;
    height: 16px;
    margin-top: -9px;
    background-image: url(../../img/recipe/icon_calorie.png);
  }

  .list-time::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    right: -17px;
    width: 1px;
    height: 16px;
    margin-top: -8px;
    background-color: var(--cl-gr-1);
  }

  .list-ttl {
    display: -webkit-box;
    font-size: 1.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  .list-tag {
    position: absolute;
    top: 0;
    right: 0;
  }

  .list-tag span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 7px 0 8px;
    font-size: 1.3rem;
    font-family: var(--ff-num);
    line-height: 1;
  }

  .list-tag span.tag-new {
    background-color: var(--cl-rd);
    color: #ffffff;
  }
}

@media all and (min-width: 768px) {
  .block-recipe-list {
    margin-top: 64px;
  }

  .block-recipe-list-item {
    width: calc((100% - 72px) / 4);
  }

  .block-recipe-list-item:not(:nth-child(4n)) {
    margin-right: 24px;
  }

  .block-recipe-list-item:not(:nth-child(-n + 4)) {
    margin-top: 40px;
  }

  .block-recipe-list-item {
    .list-img {
      overflow: hidden;
    }

    .list-img img {
      transition: transform 0.3s;
    }

    a:hover .list-img img {
      transform: scale(1.07);
    }

    .list-detail {
      padding: 24px;
    }

    .list-time_calorie {
      display: flex;
      align-items: center;
    }

    .list-calorie {
      margin-left: 33px;
    }

    .list-ttl {
      margin-top: 18px;
      line-height: 1.555;
    }
  }
}

@media all and (max-width: 767px) {
  .block-recipe-list {
    margin-top: 40px;
  }

  .block-recipe-list-items {
    justify-content: space-between;
  }

  .block-recipe-list-item {
    width: calc((100% - 10px) / 2);
  }

  .block-recipe-list-item:not(:nth-child(-n + 2)) {
    margin-top: 10px;
  }

  .block-recipe-list-item {
    .list-detail {
      padding: 16px;
    }

    .list-time_calorie {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
    }

    .list-calorie {
      margin-top: 3px;
    }

    .list-ttl {
      margin-top: 11px;
      line-height: 1.444;
      line-clamp: 3;
      -webkit-line-clamp: 3;
    }
  }
}

.block-recipe-nav {
  ul {
    display: flex;
    justify-content: space-between;
  }

  a {
    width: 100%;
  }

  span {
    position: relative;
    font-size: 1.8rem;
    line-height: 1;
  }

  .nav-prev span::before,
  .nav-next span::after {
    content: "";
    display: inline-block;
    position: relative;
    width: 7px;
    height: 11px;
    background-image: url(../../img/common/arw_topics_nav.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .nav-prev span::before {
    margin-right: 19px;
  }

  .nav-next span::after {
    margin-left: 19px;
    transform: rotate(180deg);
  }
}

@media all and (min-width: 768px) {
  .block-recipe-nav {
    margin-top: 64px;

    li {
      width: 260px;
    }
  }
}

@media all and (max-width: 767px) {
  .block-recipe-nav {
    margin-top: 40px;

    li {
      width: calc((100% - 10px) / 2);
    }

    a {
      height: 70px;
    }

    span {
      line-height: 1.333;
    }

    .nav-prev span::before {
      margin-right: 16px;
    }

    .nav-next span::after {
      margin-left: 16px;
    }
  }
}

.block-recipe-dietitian-list-items {
  li {
    display: flex;
    justify-content: space-between;
    background-color: var(--cl-gn-bg);
    font-size: 1.8rem;
  }

  .list-img img {
    display: block;
    width: 100%;
    height: auto;
  }

  .list-ttl {
    line-height: 1;
  }

  .list-name {
    font-weight: 700;
  }
}

@media all and (min-width: 768px) {
  .block-recipe-dietitian {
    margin-top: 100px;
  }

  .block-recipe-dietitian-list-items {
    display: flex;
    justify-content: space-between;

    li {
      width: calc((100% - 40px) / 2);
      padding: 40px;
    }

    .list-img {
      width: 200px;
    }

    .list-detail {
      width: calc(100% - 240px);
    }

    .list-name {
      margin-top: 10px;
      font-size: 2.4rem;
    }

    .list-comment {
      margin-top: 20px;
      line-height: 1.666;
    }
  }
}

@media all and (max-width: 767px) {
  .block-recipe-dietitian {
    margin-top: 80px;
  }

  .block-recipe-dietitian-list-items {
    li {
      padding: 16px;
    }

    li + li {
      margin-top: 16px;
    }

    .list-img {
      width: 100px;
    }

    .list-detail {
      width: calc(100% - 116px);
    }

    .list-name {
      margin-top: 7px;
      font-size: 2.2rem;
    }

    .list-comment {
      margin-top: 9px;
      line-height: 1.444;
    }
  }
}
