body {
  opacity: 0;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

body.is-loaded,
body[data-element-id] {
  opacity: 1 !important;
}

/* ------------------------------
 背景画像の調整
------------------------------ */
.show\@pc {
    display: block;
}

.hide\@pc {
    display: none;
}

@media (max-width: 767px) {
    .show\@tb {
        display: block;
    }

    .hide\@tb {
        display: none;
    }

    .hide\@pc {
        display: block;
    }
}

/* ------------------------------
 背景画像の調整
------------------------------ */
.bg-parent {
    position: relative;
}

.bg-content {
    position: relative;
    z-index: 1;
}

.bg-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.bg-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center center;
    object-position: center center;
}

.background-container {
    position: relative;
}

.background-container .background-image {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.background-container .content {
    position: relative;
    z-index: 2;
}

/* ------------------------------
 画像の調整
------------------------------ */
.imgwrap01 {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    height: 310px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.imgwrap02 {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    height: 332px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.imgwrap04 {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    height: 278px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.imgwrap05 {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    height: 189px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.imgwrap06 {
    width: 378px;
    height: 378px;
    display: block;
    overflow: hidden;
    border-radius: 100%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    position: absolute;
    top: -150px;
    left: 50%;
    z-index: 2;
}

.imgwrap07 {
    width: 352px;
    height: 428px;
    display: block;
    position: absolute;
    top: 134px;
    left: 35px;
    z-index: 1;
}

.imgwrap08 {
    width: 407px;
    height: 572px;
    display: block;
    position: absolute;
    top: 101px;
    right: 0;
    z-index: 1;
}


@media(max-width:767px) {
    .imgwrap06 {
        width: 150px;
        height: 150px;
        top: -75px;
    }

    .imgwrap07 {
        width: 176px;
        height: 214px;
        top: 30px;
        left: 10px;
    }

    .imgwrap08 {
        width: 204px;
        height: 286px;
        top: auto;
        bottom: 0;
    }
}

/* ------------------------------
 アレルギー成分表
------------------------------ */
.allergen-table {
    width: 100%;
    table-layout: fixed;
    font-family: sans-serif;
    font-size: 16px;
    border: 1px solid #f93;
    border-collapse: collapse;
}

.allergen-table td {
    padding: 12px 8px;
    font-size: 12px;
    color: #f93;
    text-align: center;
    border: 1px solid #f93;
    background-color: #fff;
}

.allergen-table td.allergens-item {
    color: #fff;
    background-color: #f93;
}

@media (max-width: 767px) {
    .allergen-table td {
        font-size: 10px;
    }
}

.mt1em {
    margin-top: 1em;
}

/* ------------------------------
 全ぺージ共通
------------------------------ */
.header {
    height: auto;
    position: relative;
}

/* ------------------------------
 レシピぺージ（一覧・詳細）
------------------------------ */
.newtitle01 {
    margin-bottom: 1em;
    padding-bottom: 1em;
    font-weight: 700;
    /* clamp 375px 24px 2000px 32px */
    font-size: clamp(1.5rem, 1.3846rem + 0.4923vw, 2rem);
    color: #666;
    letter-spacing: 0.1em;
    border-bottom: 3px solid #f93;
}

.newtitle02 {
    padding-top: 1em;
    padding-bottom: 1em;
    font-weight: 700;
    /* clamp 375px 20px 2000px 24px */
    font-size: clamp(1.25rem, 1.1923rem + 0.2462vw, 1.5rem);
    color: #f93;
    line-height: 1.5;
    letter-spacing: 0.1em;
}

.newtitle02 a {
    color: #f93;
}

.newtitle02 a:hover {
    text-decoration: none;
    opacity: 0.5;
}

.newtitle03 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -ms-flex-align: center;
    margin-bottom: 2em;
    padding-bottom: 1em;
    font-weight: 700;
    font-size: 16px;
    color: #ffc857;
    line-height: 1.5;
    border-bottom: 1px solid #ffc857;
}

.newtitle03::before {
    content: "";
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    margin-right: 0.5em;
    background-image: url("/upload/tenant_1/icon_product.webp");
    background-repeat: no-repeat;
    background-position: center;
}

.newtitle04 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -ms-flex-align: center;
    margin-bottom: 1.5em;
    font-weight: 700;
    font-size: 18px;
}

.newtitle04::before {
    content: "";
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    margin-right: 0.5em;
    background-image: url("/upload/tenant_1/icon_product.webp");
    background-repeat: no-repeat;
    background-position: center;
}

.newtitle04.-ver02::before {
    background-image: url("/upload/tenant_1/icon_aside_spoon.webp");
}

.newtitle05 {
    margin-bottom: 0.5em;
    font-weight: bold;
    font-size: 18px;
    color: #f93;
    letter-spacing: 0.1em;
}

.newtitle06 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -ms-flex-align: center;
    margin-bottom: 1em;
    font-size: 16px;
}

.newtitle06::before {
    content: "";
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    margin-right: 0.5em;
    background-image: url("/upload/tenant_1/icon_product.webp");
    background-repeat: no-repeat;
    background-position: center;
}

.newtitle07 {
    margin-top: 1em;
    padding: 0.5em;
    padding-left: 1em;
    font-weight: 700;
    /* clamp 375px 18px 2000px 24px */
    font-size: clamp(1.125rem, 1.0385rem + 0.3692vw, 1.5rem);
    letter-spacing: 0.1em;
    border-left: 3px solid #f93;
}

.newtitle07.-mb1em {
    margin-bottom: 1em;
}

.newtitle08 {
    margin-top: 1em;
    padding: 0.5em;
    font-weight: 700;
    /* clamp 375px 18px 2000px 24px */
    font-size: clamp(1.125rem, 1.0385rem + 0.3692vw, 1.5rem);
    color: #fff;
    letter-spacing: 0.1em;
    text-align: center;
    background-color: #ffc857;
}

.newbtn01 {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

.newbtn01.-m {
    margin: 50px auto;
}

.newbtn01 a {
    max-width: 100% !important;
    height: 100%;
    display: block;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -ms-flex-align: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0.8em;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-weight: 700;
    font-size: 1.5em;
    color: #f93;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 1px solid #f93;
}

.newbtn01 a::after {
    content: "";
    width: 1em;
    height: 1em;
    display: inline-block;
    margin-left: 0.5em;
    background-image: url("/upload/tenant_1/icon_newwindow.webp");
    background-repeat: no-repeat;
    background-position: center;
}

.newbtn01 a:hover {
    color: #fff;
    background-color: #f93;
}

.newbtn01 a:hover::after {
    background-image: url("/upload/tenant_1/icon_newwindow_on.webp");
}

.newbtn01.-small a {
    font-size: 1.25em;
}

.newbtnwrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;

    gap: 10px;
}

.newbtnwrap>.newbtn01 {
    width: calc((100% - 20px) / 3);
}

@media (max-width: 767px) {
    .newbtnwrap>.newbtn01 {
        width: 100%;
    }
}

.newsection {
    padding: 100px 0;
}

.newsection .inner {
    width: 96%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.recipe-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.recipe-container .left {
    width: 70%;
}

.recipe-container .right {
    width: 25%;
}

.categorywrap+.categorywrap {
    margin-top: 80px;
}

@media (max-width: 767px) {
    .newsection {
        padding: 50px 0;
    }

    .recipe-container .left {
        width: 100%;
    }

    .recipe-container .right {
        width: 100%;
        margin-top: 80px;
    }
}

/* フィルタリングしたカテゴリの表示 */
.filtering-recipe {
    margin: 1rem 0 2rem;
    padding: 1rem;
    font-size: 1.8em;
    background-color: #fffbe9;
}

.filtering-recipe .filtering-recipe-name {
    font-weight: bold;
    line-height: 1.3;
    text-decoration: underline;
}

.filtering-recipe:not(:has(.filtering-recipe-name:not(:empty))) {
    display: none;
}

[data-element-id] .filtering-recipe:not(:has(.filtering-recipe-name:not(:empty))) {
    display: block;
}

/* list-recipe */
.list-recipe li {
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.list-recipe li+li {
    margin-top: 30px;
}

.list-recipe li .list-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.list-recipe li .list-inner .imgwrap {
    width: 25%;
}

.list-recipe li .list-inner .contentwrap {
    width: 70%;
}

.list-recipe li .list-inner .contentwrap .comment {
    margin-bottom: 1em;
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .list-recipe li .list-inner .imgwrap {
        width: 100%;
    }

    .list-recipe li .list-inner .contentwrap {
        width: 100%;
    }
}

/* list-latest-recipe */
.list-latest-recipe li {
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.list-latest-recipe li+li {
    margin-top: 30px;
}

.list-latest-recipe li .list-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.list-latest-recipe li .list-inner .imgwrap {
    width: 25%;
}

.list-latest-recipe li .list-inner .contentwrap {
    width: 70%;
}

/* list-category */
.category-parent {
    margin: 1em 0;
    font-weight: bold;
    font-size: 1.5em;
    color: #f93;
    line-height: 2;
}

.list-category li a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -ms-flex-align: center;
    font-weight: 500;
    font-size: 1.5em;
    color: #f93;
    line-height: 2;
    text-decoration: none;
}

.list-category li a::before {
    content: "└";
    margin-right: 0.5em;
    font-size: 0.5em;
    color: #f93;
}

/* list-howtomake */
.list-howtomake li {
    padding-bottom: 1em;
    padding-left: 1.5em;
    font-size: 16px;
    line-height: 1.5;
    text-indent: -1.5em;
    border-bottom: 1px solid #ddd;
}

.list-howtomake li::before {
    content: "01.";
}

.list-howtomake li:nth-child(2)::before {
    content: "02.";
}

.list-howtomake li:nth-child(3)::before {
    content: "03.";
}

.list-howtomake li:nth-child(4)::before {
    content: "04.";
}

.list-howtomake li:nth-child(5)::before {
    content: "05.";
}

.list-howtomake li:nth-child(6)::before {
    content: "06.";
}

.list-howtomake li:nth-child(7)::before {
    content: "07.";
}

.list-howtomake li:nth-child(8)::before {
    content: "08.";
}

.list-howtomake li:nth-child(9)::before {
    content: "09.";
}

.list-howtomake li:nth-child(10)::before {
    content: "10.";
}

.list-howtomake li:nth-child(11)::before {
    content: "11.";
}

.list-howtomake li:nth-child(12)::before {
    content: "12.";
}

.list-howtomake li:nth-child(13)::before {
    content: "13.";
}

.list-howtomake li:nth-child(14)::before {
    content: "14.";
}

.list-howtomake li:nth-child(15)::before {
    content: "15.";
}

.list-howtomake li+li {
    margin-top: 1em;
}

.list-howtomake li::marker {
    font-weight: bold;
}

/* pagenation */
.newpager {
    margin-top: 50px;
}

.pagenation {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.pagenation li {
    width: 50px;
    height: 50px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-right: 10px;
}

.pagenation li a,
.pagenation li .now {
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
    -ms-flex-align: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    text-align: center;
    border: 1px solid #ddd;
}

.pagenation li.prev a::before,
.pagenation li.next a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #473d2f;
}

.pagenation li.prev a::before {
    content: "\f104";
}

.pagenation li a:hover {
    color: #fff;
    text-decoration: none;
    background-color: #f93;
}

.pagenation li.prev a:hover::before,
.pagenation li.next a:hover::before {
    color: #fff;
}

@media (max-width: 767px) {
    .pagenation {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
}

/* recipe-detail-container */
.recipe-detail-container .cookingtime {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -ms-flex-align: center;
    margin-top: 1em;
    font-size: 16px;
    color: #ffc857;

    gap: 10px;
}

.recipe-detail-container .cookingtime::before {
    content: "\f2f2";
    width: 1.5em;
    height: 1.5em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -ms-flex-align: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.25em;
    color: #fff;
    border-radius: 100%;
    background-color: #ffc857;
}

.recipe-detail-container .product-thumbnail {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;

    gap: 10px;
}

.recipe-detail-container .product-thumbnail li {
    width: calc((100% - 20px) / 3);
}

.recipe-detail-container .product-thumbnail a {
    width: 100%;
    height: 100%;
    display: block;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-decoration: none;
}

.recipe-detail-container .product-thumbnail .product-name {
    margin-top: 0.5em;
    font-size: 16px;
    color: #f93;
}

.recipe-detail-container .text {
    font-size: 16px;
    line-height: 1.5;
}

.recipe-detail-container .youtube {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;

    gap: 10px;
}

.recipe-detail-container .youtube .youtube-item {
    width: calc((100% - 10px) / 2);
}

.recipe-detail-container .youtube iframe {
    max-width: 100%;
    height: 100%;
    margin: 1em 0;

    aspect-ratio: 16 / 9;
}

@media(max-width:767px) {
    .recipe-detail-container .youtube .youtube-item {
        width: 100%;
    }

    .recipe-detail-container .product-thumbnail li {
        width: 100%;
    }
}

/* material-table */
.material-table-wrap {
    padding: 50px;
    background-color: #fffbe8;
}

.material-table {
    width: 100%;
    font-size: 16px;
    color: #333;
    border-spacing: 0;
    border-collapse: collapse;
}

.material-table tbody tr {
    border-bottom: 1px dotted #ddd;
}

.material-table tbody tr:last-child {
    border-bottom: none;
}

.material-table tbody td {
    vertical-align: top;
    padding: 14px 5px;
}

.material-table tbody td:first-child {
    text-align: left;
}

.material-table tbody td:last-child {
    text-align: right;
    white-space: nowrap;
}

.material-table-wrap .ingredient-list li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px dotted #ddd;
}

.material-table-wrap .ingredient-list li:last-child {
    border-bottom: none;
}

.material-table-wrap .ingredient-list li:has(bdi:empty) {
    margin-top: 14px;
    border-bottom: none;
}

.material-table-wrap .ingredient-list li:has(bdi:empty) span {
    font-weight: bold;
}

.material-table-wrap .ingredient-list span {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    padding-left: 5px;
    padding-right: 10px;
    text-align: left;
}

.material-table-wrap .ingredient-list bdi {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    padding-left: 10px;
    padding-right: 5px;
    text-align: right;
}

.material-table-wrap .ingredient-list span a {
    color: inherit;
    cursor: -webkit-grab;
    cursor: grab;
    pointer-events: none;
}

@media(max-width:767px) {
    .material-table-wrap {
        padding: 10px;
    }
}

/* ------------------------------
 見たまま編集画面用
------------------------------ */

[data-element-id]#M_slider {
    border: solid 5px blue;
}

[data-element-id]#M_slider:before {
    content: "スライダー";
    display: block;
    padding: 5px;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    text-align: center;
    background: blue;
}

[data-element-id]#M_slider li {
    display: block !important;
}

[data-element-id].hide\@pc {
    display: block;
}

[data-element-id].background-container .background-image.hide\@pc {
    max-width: 767px;
    margin: 0 auto;
    border: 2px solid #000;
    position: relative;
}

[data-element-id].background-container .background-image.hide\@pc::before {
    content: "モバイル用背景画像";
    width: 100%;
    padding: 1em 0;
    color: #fff;
    text-align: center;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

[data-element-id].imgwrap03 .sp-only-block {
    display: block;
}

[data-element-id].imgwrap03 {
    max-width: 767px;
    margin: 0 auto;
    border: 2px solid #000;
    position: relative;
}

[data-element-id].imgwrap03::before {
    content: "モバイル用画像";
    width: 100%;
    padding: 1em 0;
    color: #fff;
    text-align: center;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
