@import url(./styles.css);

/* シングルページの固定ヘッダー用CSS */
@media screen and (min-width: 750px) {
    .ly_header_inner {
        height: 90px;
        background-color: var(--red);
        padding-top: 0;
        opacity: 1;
        z-index: 10000;

        animation: unset !important;
    }

    .el_header_logo {
        opacity: 1;
    }
    
}

/* =========================================== */
/* メイン */

.making {
    color: white;
    background-color: var(--bg-color-verydark);    
}

.making_wrapper {
    margin-top: 50px;
    padding-bottom: 50px;
}

@media screen and (min-width: 750px){
    .making_wrapper {
        margin-top: 90px;
    }
}

/* ============================= */
/* メイキングの上側 */

.ly_makingtop {
    padding: 0 1em;
}

/* ページタイトル */
.el_making_toptitle_wrapper {
    text-align: center;
    padding: 40px 2em;
}

.el_making_toptitle_wrapper p {
    margin-top: 50px;
    line-height: 1.7em;
}

.el_making_toptitle {
    font-size: 3em;
    font-weight: 500;
}


@media screen and (min-width: 750px){

    /* メイキングの上側 */
    .ly_makingtop {
        padding: 0 4em;
    }
    
    /* ページタイトル */
    .el_making_toptitle_wrapper {
        text-align: center;
        padding: 50px 6em;
    }
}

/* ============================= */
/* 素材解説わく囲い */
.bl_material_desc {
    border: 1px solid white;
    position: relative;
    padding: 1em;
	margin: 0 auto;
}

.el_yasukidesc_wrapper {
    display: block;
}

/* 金床のアイコン */
.el_yasukidesc_icon img {
    width: 15vw;
    height: auto;
    position: absolute;
    right: 7px;
    top: -10px;
    z-index: 1;
}

/* 素材の断面写真 */
.el_yasukidesc_image {
    content: "";
    display: inline-block;
    background-image: url(https://otsukihamono.jp/wp-content/uploads/2022/04/making_top_innner_image.webp);
    width: 80vw;
    height: 37vw;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    grid-row: 1 / 1;
    grid-column: 1 / 1;
}

.el_yasukidesc_wrapper {
    padding-left: 0em;
}

.el_yasukidesctop_wrapper {
    line-height: 2em;
    margin-bottom: 30px;
    margin-top: 20px;
}

/* 素材名のフォント設定 */
.el_yasukidesctop_wrapper h1 {
    font-size: 1.7em;
    font-weight: 500;
}

/* 素材解説タイトルフォント */
.el_yasukititle {
    font-size: 1.4em;
}

/* 包丁の小さいアイコン */
.el_yasukititle::before {
    content: "";
    display: inline-block;
    background-image: url(../images/icon_knife.png);
    width: 1em;
    height: 1em;
    background-size: cover;
    background-repeat: no-repeat;
    margin-right: 10px;
    box-sizing: border-box;
}

.el_yasukitext {
    width: 100%;
    padding: 20px 0;
    grid-row: 2 / 2;
    grid-column: 2 / 2;
}

/* PCタブレット用メディアクエリ */
@media screen and (min-width: 750px) {

    .bl_material_desc {
        padding-bottom: 1em;
		max-width: 1200px;
    }

    /*  PCタブレットのグリッドデザイン */
    .el_yasukidesc_wrapper {
        display: grid;
        grid-template-columns: 40% 60%;
        grid-template-rows:30% 70%;
        justify-content: space-between;
    }

    .el_yasukidesctop_wrapper {
        grid-row: 1 / 2;
        grid-column: 2 / 3;       
    }
    
    /* 素材の断面写真 */
    .el_yasukidesc_image {
        background-image: url(../images/making_top_innner_image.webp);
        width: 30vw;
        height: 50vw;
        grid-row: 1 / 3;
        grid-column: 1 / 2;
    }

    /* 金床のアイコン */
    .el_yasukidesc_icon img {
        width: 8vw;
        height: auto;
        position: absolute;
        right: 7px;
        top: -10px;
        z-index: 1;
    }

    .el_yasukitext {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
        padding: 0;
    }
        
}

/* ============================= */
/* メイキングボックス */

.bl_makingbox {
    margin-top: 50px;
}

.el_makingbox_image {
    display: inline-block;
    width: 100%;
    height: 54vw;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.el_youtube_icon {
    width: 70px;
    height: 40px;
    border: 2px solid var(--red);
    background-color: white;
    border-radius: 10px;
    position: relative;
    position: absolute;
    bottom: 20px;
    right: 30px;
}

.el_youtube_icon::after {
    display: inline-block;
    content: "▲";
    color: var(--red);
    transform: rotate(90deg);
    position: absolute;
    top: 25%;
    left: 40%;
    z-index: 1;
}

/* 画像の説明タイトル */
.el_makingbox_title {
    color: var(--yellow);
    text-align: left;
    padding-bottom: 1em;
}

/* 説明 */
.bl_makingbox_desc {
    background-color: none;
    padding: 1em 2em;
    line-height: 1.5em;
    transform: none;

}


.kiridasi {
    background-image: url(../images/making_01.webp);
}

.tanzo {
    background-image: url(../images/making_02.webp); 
}

.namauchi {
    background-image: url(../images/making_03.webp); 
}

.setsudan {
    background-image: url(../images/making_04.webp); 
}

.yakiire {
    background-image: url(../images/making_05.webp); 
}

.yakimodosi {
    background-image: url(../images/making_06.webp); 
}

.togi {
    background-image: url(../images/making_07.webp); 
}

.etuke {
    background-image: url(../images/making_08.webp); 
}

/* モーダルウインドウ */
#modal-video {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 8;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgb(0, 0, 0, .75);
    transition: .5s;
}

#modal-video.open {
    filter: opacity(1);
    visibility: visible;
}

#modal-video.close {
    filter: opacity(0);
    visibility: hidden;
}

#modal-video iframe {
    width: 64vw;
    height: 36vw;
}

.bodystop {
    overflow: hidden;
}

@media screen and (min-width: 750px){

    /* 画像の説明タイトル */
    .el_makingbox_title {
        text-align: center;
    }
    
    /* 説明 */
    .bl_makingbox_desc {
        background-color: var(--bg-color-verydark);
        width: 40vw;
        transform: translate(20px, -50px);
        box-shadow: 0 0 5px rgba(97, 97, 97, 0.8);
    }


}