@charset "utf-8";

/* ======================================================
 * cookbook_recipe_detail
 * ------------------------------------------------------
 * - PageComponent
====================================================== */

/* ------------------------------------------------------
 * PageComponent (renewal)
------------------------------------------------------ */
/* ----- recipe-detail-editor ----- */
.recipe-detail-editor > *:first-child {
  margin-top: 0 !important;
}
@media print, screen and (min-width: 768px) {
  .recipe-detail-editor {
    margin-top: 2.1rem;
  }
}
@media only screen and (max-width: 767px) {
  .recipe-detail-editor {
    margin-top: 1.6rem;
  }
}

/* ------------------------------------------------------
 * PageComponent (legacy)
------------------------------------------------------ */
/* ----- elem-txt-list ----- */
.recipe-detail-editor .elem-txt-list.print-hide {
  display: none;
}

/* ----- elem-txt-list--note ----- */
.recipe-detail-editor .elem-txt-list--note {
  margin-top: 2em;
}

/* ----- txt-list--note ----- */
.recipe-detail-editor .txt-list--note {
  margin: 0;
  padding: 0;
  list-style: none;
}
.recipe-detail-editor .txt-list--note > li {
  position: relative;
  padding-left: 1.5em;
  color: #666;
}
.recipe-detail-editor .txt-list--note > li:first-child {
  margin-top: 0 !important;
}
.recipe-detail-editor .txt-list--note > li::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "*";
}
@media print, screen and (min-width: 768px) {
  .recipe-detail-editor .txt-list--note > li {
    margin: 0.8em 0 0;
    font-size: 1.4rem;
  }
}
@media only screen and (max-width: 767px) {
  .recipe-detail-editor .txt-list--note > li {
    margin: 0.4em 0 0;
    font-size: 1.2rem;
  }
}

/* ----- elem-txt-list--order ----- */
.recipe-detail-editor .elem-txt-list--order {
  margin-top: 2em;
}
.recipe-detail-editor .elem-txt-list--order a {
  text-decoration: underline;
}
@media print, screen and (min-width: 768px) {
  .recipe-detail-editor .elem-txt-list--order {
    width: 860px;
    margin-left: auto;
    margin-right: auto;
  }
  .recipe-detail-editor .elem-txt-list--order a:hover {
    opacity: .7;
  }
}
@media only screen and (max-width: 767px) {
}

/* ----- txt-list--order ----- */
.recipe-detail-editor .txt-list--order {
  margin: 0;
  padding: 0;
  counter-reset: list-number;
  list-style: none;
}
.recipe-detail-editor .txt-list--order > li {
  position: relative;
  border-bottom: 1px solid #ddd;
}
.recipe-detail-editor .txt-list--order > li:first-child {
  margin-top: 0 !important;
}
.recipe-detail-editor .txt-list--order > li::before {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 5px;
  background-color: #e96600;
  color: #fff;
  font-weight: 700;
  counter-increment: list-number;
  content: counter(list-number);
}
@media print, screen and (min-width: 768px) {
  .recipe-detail-editor .txt-list--order > li {
    margin: 3rem 0 0;
    padding: .6rem 0 3rem 60px;
  }
  .recipe-detail-editor .txt-list--order > li::before {
    width: 36px;
    height: 36px;
    font-size: 2.4rem;
  }
}
@media only screen and (max-width: 767px) {
  .recipe-detail-editor .txt-list--order > li {
    margin: 2rem 0 0;
    padding: 0 0 1.8rem 46px;
  }
  .recipe-detail-editor .txt-list--order > li::before {
    width: 32px;
    height: 32px;
    font-size: 1.7rem;
  }
}

/* ----- item--divide ----- */
.recipe-detail-editor .item--divide > div > *:first-child {
  margin-top: 0 !important;
}
@media print, screen and (min-width: 768px) {
  .recipe-detail-editor .item--divide > div::after {
    display: block;
    clear: both;
    content: "";
  }
}
@media only screen and (max-width: 767px) {
}

/* ----- ingredients ----- */
.recipe-detail-editor .ingredients > *:first-child {
  margin-top: 0 !important;
}
@media print, screen and (min-width: 768px) {
  .recipe-detail-editor .ingredients::after {
    display: block;
    clear: both;
    content: "";
  }
}
@media only screen and (max-width: 767px) {
}

/* ----- elem-heading-lv2 ----- */
.recipe-detail-editor .item--divide .elem-heading-lv2 {
  display: none;
}
.recipe-detail-editor .item--divide .elem-heading-lv2 + * {
  margin-top: 0 !important;
}

/* ----- elem-heading-lv4 ----- */
.recipe-detail-editor .elem-heading-lv4 h4 {
  margin: 0;
  font-weight: 700;
}
@media print, screen and (min-width: 768px) {
  .recipe-detail-editor .elem-heading-lv4  {
    margin-bottom: 2.2rem;
  }
  .recipe-detail-editor .ingredients .elem-heading-lv4 {
    float: none;
    width: 100%;
    padding-left: calc((100% - 36px) / 2 + 36px);
  }
  .recipe-detail-editor .ingredients .elem-heading-lv4 ~ .elem-heading-lv4 {
    margin-top: 3rem;
  }
  .recipe-detail-editor .elem-heading-lv4 h4 {
    font-size: 2rem;
  }
}
@media only screen and (max-width: 767px) {
  .recipe-detail-editor .elem-heading-lv4  {
    margin: 1.5rem 0 1.1rem;
  }
  .recipe-detail-editor .elem-heading-lv4 h4 {
    font-size: 1.6rem;
  }
}

/* ----- ingredients-form--list ----- */
.recipe-detail-editor .ingredients-form--list + .ingredients-form--list {
  margin-top: -1px;
}
@media print, screen and (min-width: 768px) {
  .recipe-detail-editor .ingredients .ingredients-form--list {
    float: left;
    width: calc((100% - 36px) / 2);
    clear: left;
  }
  .recipe-detail-editor .ingredients .elem-heading-lv4 ~ .ingredients-form--list {
    float: none;
    width: 100%;
    padding-left: calc((100% - 36px) / 2 + 36px);
    clear: none;
  }
}
@media only screen and (max-width: 767px) {
}

/* ----- ingredient ----- */
.recipe-detail-editor .ingredient {
  display: flex;
  align-items: center;
  margin: 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
}
.recipe-detail-editor .ingredient dt {
  width: 100%;
}
.recipe-detail-editor .ingredient dt input[type="checkbox"] {
  display: none;
}
.recipe-detail-editor .ingredient dt label {
  cursor: default;
  pointer-events: none;
}
.recipe-detail-editor .ingredient dt a {
  color: #e96600;
  cursor: pointer;
  pointer-events: all;
}
.recipe-detail-editor .ingredient dd {
  flex-shrink: 0;
  text-align: right;
}
.recipe-detail-editor .ingredient dd .amount {
  margin: 0;
}
@media print, screen and (min-width: 768px) {
  .recipe-detail-editor .ingredient {
    padding: 0.75em 1.125em 0.75em 1.25em;
  }
  .recipe-detail-editor .ingredient dt a:hover {
    text-decoration: underline;
  }
  .recipe-detail-editor .ingredient dd {
    width: calc(40% - 36px);
    margin: 0 0 0 36px;
  }
}
@media only screen and (max-width: 767px) {
  .recipe-detail-editor .ingredient {
    padding: .6rem 1rem;
  }
  .recipe-detail-editor .ingredient dd {
    width: calc(45% - 15px);
    margin: 0 0 0 15px;
  }
}

/* ----- elem-btn ----- */
.recipe-detail-editor .elem-btn {
  display: none;
}
