
body{
    margin: 0;
    overflow-x: hidden;
    min-height: 100%;
    
/*            transform:translateZ(1px);/* 回避手段 //// */

.container{
            transform:translateZ(1px);/* 回避手段 //// */
}

}
input[type="text"]{
    font-size: 1.2em;
}
input[name="item_name"], input[name="recipe_name"]{
    width: 600px;

}
textarea[name="item_description"], textarea[name="recipe_content"]{
    font-size: 1.2em;
    width: 600px;
    padding: 8px;
    height: 20em;
    border-radius: 8px 0 0 8px;
    overflow-Y: scroll;
    resize: vertical;
}
input[type="file"]{
    display: none;
}
span.red{
    color: #DD0000;
}
figure{
    margin: 0;
}
.modal_white{
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: #FAFAFA;
    animation: fadeout 0.8s ease forwards;
}
@keyframes fadeout{
    0%{opacity: 1;}
    99%{opacity: 0; display: none;}
    100%{display: none;}
}

.container_admin{
    display: block;
    max-width: 800px;
    margin: 0 auto;

}
.header_tool{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    background-color: #222222;
    padding: 4px 8px;
    border-bottom: 2px solid #FAFAFA;
}
.header_tool a{
    color: #FAFAFA;
}
.header_wrap{
    max-width: 800px;
    margin: 0 auto;
}
.navigation{

}
.center{
    text-align: center;
}
.flex_container{
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 0 auto;
}
.image_top{
    height: 400px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
    background-image: url('../image/header_img.png');
    background-position: center;
    background-repeat: no-repeat;
}
.image_top img{
    margin: 0 auto;
    width: 100%;
    box-shadow: 2px 3px 12px rgba(88, 87, 87, 0.63);
}
ul#navigation{
    margin: 0 0 8px; 
    padding: 0;
}
ul#navigation li{
    font-family: "hina mincho", serif;
    font-weight: 400;
    font-style: normal;
    list-style: none;
    display: inline-block;
    position: relative;
    font-size: 1.5vw;
    padding: 0.5vw 1.2vw;
    text-decoration: none;
}
ul#navigation li:before{
    position: absolute;
    display: block;
    content: '';
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    transition: 0.2s ease;
    background-color: #FAFAFA;
}
ul#navigation li:hover:before{
    width: 100%;
}
ul#navigation li:not(:last-child){
    /*border-right: 2px solid #FAFAFA;*/
}
ul#navigation li a{
    text-decoration: none;
    color: #FAFAFA;
}
.section{
    padding: 40px 0;
    color: white;
}
.section.top{
    padding: 0 0 5vw ;
}
.section:nth-child(odd){
    background-color: #222222;
}
.section:nth-child(even){
    background-color: #555555;
}
.midashi_top{
    font-family: "hina mincho", serif;
    text-align: center;
    font-weight: 400;
    font-style: normal;
    margin: 30px auto 0;
    color: white;
}
.midashi_large{
    font-family: "DM Serif Text", serif;
    font-size: 4em;
    text-align: center;
    font-weight: 400;
    font-style: normal;
    margin: 30px auto 0;
    color: white;
}
.midashi_small{
    font-size: 1.2em;
    text-align: center;
    margin: 0 auto 30px;
    color: white;
}
.item_img_wrapper{
    display: inline-block;
    width: 250px;
    margin: 10px;
}
.item_img{
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid white;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.item_img_wrapper .item_name{
    margin: 4px;
    text-align: center;
}
.item_img_wrapper .item_desc{
    margin: 4px;
    text-align: center;
}
.item_img img{
    height: 100%;
}
.dummyimg{
    position: relative;
    display: inline-block;
    width: 250px;
    height: 250px;
    margin: 10px;
    border: 1px solid white;
}
.dummyimg:after{
    content: ':dummy';
    display: block;
    position: absolute;
    right: 5px;
    bottom: 5px;
    color: white;
}
.dummyimg_large{
    position: relative;
    display: inline-block;
    margin: 0 auto;
    width: 1200px;
    height: 600px;
    border: 1px solid white;
}
.dummyimg_large:after{
    content: ':dummy_large';
    display: block;
    position: absolute;
    right: 5px;
    bottom: 5px;
    color: white;
}
.wrapper{
    width: 75%;
    margin: 0 auto;
}
.image_container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px auto;
}
.text_container{
    margin: 0 auto;
    font-size: 1.1em;
    color: #FAFAFA;
    line-height: 2em;
}
a.map_btn{
    color:gray; 
    transition: 0.2s ease;
}
a.map_btn:hover{
    color:white; 
}
.socialbtn{
    width: 120px;
    margin: 20px auto;
    border-radius: 10px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background-color: white;
}
.facebook a{
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url('../image/facebook_bk.png');
    background-repeat: no-repeat;
    background-color: #222222;
    background-size: 100% 100%;
    border-radius: 100%;
}
.instagram a{
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url('../image/instagram.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 100%;
}
.footer{
    text-align: center;
    padding: 10px;
    background-color: #222222;
    color: white;

            transform:translateZ(1px);/* 回避手段 //// */

}
a.return{
    color: #888888;
    text-decoration: none;
}
.loginform{
    width: 300px;
    margin: 15vh auto;
    padding: 8px;
    border-radius: 8px;
    background-color: #FAFAFA;
    box-shadow: 2px 2px 4px rgba(168, 168, 168, 0.8);
}
.loginlogo{
    margin-top: 1.3em;
    margin-left: auto;
    margin-right: auto;
    width: 300px;
}
.loginlogo img{
    width: 100%;
}
.dlist{
	width: 100%;
	margin: auto;
}

.dlist dl{
  margin: 5px 0;
	border-bottom: 1px solid #253056;
  width: 100%;
	display: table;
}

.dlist dl dd, .dlist dl dt{
	text-align: left;
	display: table-cell;
  vertical-align: middle;
  padding: 4px 0;

  overflow: hidden;
}

.header{
    background-image: url('../image/header_img.png');
    width: 100%;
    aspect-ratio: 2.87;
    background-repeat: no-repeat;
    background-size: contain;
}
#ad_nav{
    padding: 0;
    margin: 0;
    border-top: 2px solid #888888;
    border-bottom: 2px solid #888888;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}
#ad_nav a{
    display: inline-block;
    background-color: #FAFAFA;
    width: 25%;
    text-align: center;
    font-size: 1.2em;
    border-left: 2px solid #888888;
    color: #555555;
    transition: 0.2s ease;
}
#ad_nav a:last-child{
    border-right: 2px solid #888888;
}
#ad_nav li{
    display: inline-block;
    list-style: none;

}
#ad_nav a:hover, #ad_nav a.active{
    background-color: #333333;
    color: #FAFAFA;
}

.midashi{
    text-align: center;
    border-bottom: 1px solid #888888;
    padding: 4px 0;
    margin: 4px;
}
.itembox{  
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;   
}
.itembox_detail{  
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;   
}
.items{
    margin: 4px;
    padding: 4px;
    position: relative;
    display: block;
    width: 20%;
    border: 1px solid #888888;
    border-radius: 4px;
}
.items img{
    width: 100%;
}
.items.item_dummy{
    height: 110px;
}
.items.item_dummy:before{
    display: block;
    content: ':dummy';
    position: absolute;
    right: 3px;
    bottom: 3px;
}
.items.item_ad{

}
.diarybox{

}
.diarybox dl.row{
    display: block;
    padding: 4px 0; 
    border-bottom: 1px solid #888888; 
}
.diarybox dl.row dt, .diarybox dl.row dd{
    display: inline-block;
}

.diarybox dl.row dt{
    padding-right: 4px;
    border-right: 1px solid #888888; 
}
.diarybox dl.row dd{
    padding: 0 4px;
    margin: 0;
}
.diarybox dl.row dt.tools, .diarybox dl.row dt.date{
    padding: 0 8px;
}

.form_item{
    padding: 8px 0;
    margin: 4px;
    border-bottom: 1px solid #888888;
}
#dropbox{
    display: block;
    width: calc(100% - 12px);
    text-align: center;
    padding: 12px 0;
    margin: 0 auto;
    border: 2px solid #888888;
    border-radius: 8px;
    transition: 0.2s ease;
}
#dropbox:hover{
    background-color: #DDFFFF;
}
#imgPreviewField{
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
}
#imgPreviewField img{
    width: 100%;
    border-radius: 8px;
}

.pic_window{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.pic_window .pics{
    width: 250px;
    border: 2px solid #888888;
    border-radius: 8px;
    text-align: center;
    transition: 0.2s ease;
    overflow: hidden;
}
.pic_window .pics#add{
    cursor: pointer;
}
.pic_window .pics .imgPreviewField img{
    width: 100%;
}
.pic_window .pics .dropbox .label{
    display: block;
    height: 100%;
}
.pic_window .pics#add:hover{
    background-color: #DDFFFF;
}
.picturebox{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.picturebox .pics{
    width: 18%;
    margin: 3px;
    border: 2px solid #888888;
    border-radius: 8px;
    text-align: center;
    transition: 0.2s ease;
    overflow: hidden;
}
.picturebox .pics img{
    width: 100%;
}
#tools{
    border-bottom: 1px solid #888888;
    padding: 4px 0;
}
button.writeTools{
    cursor: pointer;
    color: #555555;
    border: 2px solid #555555;
    font-size: 1.1em;
    margin: 1px 2px;
    padding: 2px 6px;
    border-radius: 6px;
    border-color: #555555;
    transition: 0.2s ease;
  }
  button.writeTools:hover{
    background-color: #555555;
    color: white;
  }
.pic_window .picBtn{
    cursor: pointer;
    width: 15%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #888888;
}
.pic_window .picBtn img{
    width: 100%;
}

.recipe_content {
    text-align: center;
}
.recipe_content img{
    max-width: 300px;
}

/*アニメーション*/
.is-fadeIn{
	opacity: 1 !important;
	transform: translate(0, 0) !important;
}
.fade-right{
	opacity: 0;
	transform: translate(30px, 0);
	transition: 0.8s ease;
}
.fade-up{
	opacity: 0;
	transform: translate(0, 30px);
		transition: 0.8s ease;
}
.fade-left{
	opacity: 0;
	transform: translate(-30px, 0);
		transition: 0.8s ease;
}
.pagination{
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    padding: 10px 0;
    background-color: #222222;
}
.pagination.foot{ 
    padding: 50px 0;
}
a.paging-button{
    display: inline-block;
    text-decoration: none;
    padding: 4px 8px;
    margin: 0 4px;
    transition: 0.2s ease;
    border: 2px solid #FAFAFA;
    color: #FAFAFA;
}
a.paging-button.disabled, a.paging-button:hover{
    color: #222222;
    background-color: #FAFAFA;
}

#navbtn_sp{
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    width: 50px;
    padding: 2px 8px;
    border: 2px solid #FAFAFA;
    background: transparent;
}
#navbtn_sp span{
    display: block;
    width: 100%;
    height: 2px;
    margin: 10px 0;
    background-color: #FAFAFA;
    transition: 0.4s ease;
}
#navbtn_sp:focus > span.line1{
    transform: translateY(12px) rotate(315deg);
}
#navbtn_sp:focus > span.line2{
    opacity: 0;
}
#navbtn_sp:focus > span.line3{
    transform:translateY(-12px) rotate(-315deg);
}
@media screen and (max-width: 820px){
    #navbtn_sp{
        display: block;
    }
    .text_container{
        margin: 0 auto;
        font-size: 0.9em;
        color: #FAFAFA;
        line-height: 2em;
    }
    .item_img_wrapper{
        width: 24vw;	/*width: 20vw;*/
        font-size: 2vw;
    }
    .midashi_top{
        padding:0 15px;
    }
    .midashi_large{
        font-size: 10vw;
    }
    .socialbtn{
        top: 80%;
    }
    ul#navigation li{
        font-size: 3vw;
        /*display: block;*/

        display: inline-block;
        padding: 1% 6%;
        width: 35%;
	}
	
	ul#navigation .backTop{
		width: 100px;
		text-align: center;
	}


    }
    ul#navigation li:before{
        display: none;
    }
    .wrapper{
        width: 90%;
    }
    .section{

    }
    .dummyimg_large{
        height: 400px;
    }
    .footer{
        font-size: 0.75em;
    }
    .image_top{
        height: 250px;
        margin: 0 auto;
        text-align: center;
        overflow: hidden;
        background-image: url('../image/header_img.png');
        background-position: top center;
        background-size: contain;
    }
}