/*=====================
全体
=======================*/
html {
	box-sizing: border-box; 
	margin: 0;
	padding: 0;
} 
body{
	margin: 0;
	padding: 0;
}
#content{
    max-width: 1300px;
    margin: 0 auto;
	display: flex;
}
#l-contents {
	flex: 1;
	max-width:950px;
	margin: 0;
	padding:0 20px 20px 0;
	font-size: 17px;
	position: relative;
}
#l-contents-side{
	flex-shrink: 0;
	width: 300px;
	padding-left: 20px;
	border-left: solid 0.3px #999;
}
@media screen and (max-width:1100px) { 
	#content{
		display: block;
		max-width: 100%;
		min-width: 0;
		padding: 0;
	}
	#l-contents{
		max-width: 100%;
		flex: auto;
		padding: 0 1em 10em 1em;
	}
	#l-contents-side{
		display: none;
	}
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
	#l-contents {
		font-size: 16px;
	}
}
@media screen and (max-width:767px) { 
	#l-contents {
		font-size: 15px;
		padding: 0 0 5em 0;
	}
}
@media screen and (max-width:375px) {
	#l-contents {
		font-size: 13px;
	}
}

/*=====================
文字・タイトル
=======================*/
a{
	text-decoration: none;
	color: #000;
}
a:hover{
	text-decoration: none;
	color: #000;
}
a:active {
	color: #f18e2c;
}
#l-contents h2{
	color: #f18e2c;
	text-align: center;
	font-size: 2em;
	margin: 1em 0;
}
#l-contents h2:before {
	content: "";
	display: inline-block;  
	background-image: url('../img/titleicon.jpg');
	background-size: cover;
	background-repeat: no-repeat;
	width: 1em;
	height: 1em;
	margin-right: 0.2em;
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
	#l-contents h2{
		font-size: 1.9em;
	}
}
@media screen and (max-width:767px) { 
	#l-contents h2{
		font-size: 1.7em;
		margin: 0.3em 0 0.2em 0;
	}
}
@media screen and (max-width:375px) {
	#l-contents h2{
		font-size: 1.6em;
	}
}

/*=====================
logo
=======================*/
h1{
	margin: 0;
	padding: 0;
}
.head-flex{
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	border-bottom: 3px solid #f18e2c;
}
.logo img{
	width: 240px;
	height: auto;
	margin: 10px;
}

/*=====================
メガメニュー
=======================*/
.dropdown-arrow{
	color: #f18e2c;
	font-size: 80%;
	padding-left: 5px;
}
#gnav{
	margin: 0;
	padding: 0;
}
#gnav > ul {
	display: table;
	padding-left: 50px;
	margin: 0;
}
#gnav > ul > li {
	display: table-cell;
	margin-right: 2em;
}
#gnav > ul > li > a {
	display: block;
	padding: 1em 2em ;
}
#gnav > ul > li:hover {
	color: #000;
	background-color: antiquewhite; 
}
#gnav > ul .menu {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	visibility: hidden;
	transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
	width: 100%;
	left: 0;
	text-align: left;
	position: absolute;
	z-index: 1;
	background-color: #f6faed;
	border-top: 3px solid #f18e2c;
}
#gnav > ul .menu > .menu_inner {
	padding: 1.5em;
    font-size: 1em;
    display: block;
	max-width: 900px;
	margin: 0 auto;
}
.food-group {
    margin-bottom: 1em;
	padding-bottom: 20px;
	border-bottom: 1px #f18e2c solid;
}
.food-group-end{
	border: none;
	padding: 0;
}
.food-group-title {
    color: #f18e2c;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0.8em;
    padding: 0 0 0 33px;
}
.food-group-title::before {
		content: "";
			position: absolute;
			left: 25px;
			transform: translateY(-10%);
			width: 30px;
			height: 25px;
			background-size: contain;
			background-repeat: no-repeat;
			background-position: center;
}
.food-item-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    gap: 0.5em 1.5em;
    list-style: none;
    margin-left: 1em;
    padding: 0;
}
.food-item-list:empty {
    display: none;
}
.food-item-list li a {
    color: #000;
    text-decoration: none;
    display: block;
	position: relative;
    padding-left: 33px;
}
.food-item-list li a {
    color: #000;
    text-decoration: none;
    display: block;
	position: relative;
    padding-left: 1em;
}
.food-category-list li a {
    padding-left: 35px;
}
#category-menu .food-item-list li a {
	line-height: 3.0;
}
#food-menu .food-item-list li a {
	line-height: 1.4;
}
.food-item-list li a:hover {
    color: #f18e2c;
}
#category-menu .food-item-list li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.icon-vegetable::before {
    background-image: url('../img/icon-vegetable.svg');
}
.icon-mushroom::before {
    background-image: url('../img/icon-mushroom.svg');
}
.icon-meat::before {
    background-image: url('../img/icon-meat.svg');
}
.icon-rice::before {
    background-image: url('../img/icon-rice.svg');
}
.icon-fish::before {
    background-image: url('../img/icon-fish.svg');
}
.icon-milk::before {
    background-image: url('../img/icon-milk.svg');
}
.icon-sweets::before {
    background-image: url('../img/icon-sweets.svg');
}
.icon-otsumami::before {
    background-image: url('../img/icon-otsumami.svg');
}
.icon-time-min::before {
    background-image: url('../img/icon-time-min.svg');
}


/*==JavaScriptの部分とバツマーク===============*/
.close-menu-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 0.1em 0.5em;
	font-size: 1.5em;
	cursor: pointer;
	color: #333;
	z-index: 1;
}
.close-menu-btn:hover {
	color: #f18e2c;
	border-color: #f18e2c;
	background-color: #fdfdfd;
}
.close-menu-btn-inline {
    display: none;
}
#gnav > ul .menu.is-open {
	max-height: 100%;
	opacity: 1;
	visibility: visible;
}

/*==スマホ用===============*/
@media screen and (max-width:767px) {
	.head-flex{
		display: block;
		margin: 0 auto;
		padding-bottom: 0;
	}
	.logo img{
		display: block;
		margin: 0 auto;
	}
	#gnav{
		margin-top: 10px;
		width: 100%;
	}
	#gnav  > ul{
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		height: auto;
		min-height: 60px;
		padding: 0;
		align-items: flex-end;
	}
	#gnav > ul > li {
		width: 100%;
		margin: 0;
		padding: 0;
		text-align: center;
	}
	#gnav > ul > li > a {
		padding: 0.5em 2em;
		text-align: center;
	}
    #gnav > ul .menu > .menu_inner {
        font-size: 0.85em;
    }
    #category-menu .food-group-title {
        font-size: 1.1em;
        margin-bottom: 0.6em;
    }
    #category-menu .food-item-list {
        grid-template-columns: repeat(2, minmax(70px, 1fr));
        gap: 0.4em 0.8em;
    }
	#category-menu .food-item-list li a::before {
		width: 25px;
		height: 20px;
	}
	#category-menu .food-category-list li a {
		padding-left: 30px;
	}

	.food-group-title::before {
		left: 15px;
		transform: translateY(-18%);
	}
}

@media screen and (max-width: 480px) {
    .close-menu-btn-inline {
        display: block;
        position: static;
        margin: 1em auto;
		padding: 0.5em 1.5em;
        border: 1px solid #ccc;
        background-color: #fff;
        color: #333;
        font-size: 0.9em;
        border-radius: 5px;
    }
}
@media screen and (max-width:375px) {
	#gnav > ul .menu > .menu_inner {
	padding: 0.5em;
	}
	.food-item-list {
    margin-left: 0;
	}
	.logo img{
		width: 65%;
	}

	.food-group-title::before {
		left: 8px;
		transform: translateY(-20%);
	}
}

/*=====================
リード
=======================*/
.lead {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
 }
.lead p{
	margin: 0 auto;
	padding: 0.5em;
	color: #888;
	font-size: 0.9em;
}
@media screen and (max-width:767px) {
	.lead p{
		padding: 0.5em 1em;
	}
}

/*=====================
新着動画
=======================*/
.new-top{
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	text-align: center;
	line-height: 1.4;
}
.new-top img{
	max-width: 75%;
	height: auto;
	margin: 0 auto;
}
.new-top h3{
	max-width: 75%;
	display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto 3em;
    padding: 0.6em 1em 0 1em;
	box-sizing: border-box;
    font-size: 1.1em;
    font-weight: bold;
}
.new-top a{
	display: block;
    color: #000;
    text-decoration: none;
}
@media screen and (max-width:767px) { 
	.new-top img{
	max-width: 100%;
	}
}
/*---------------------*/
.new-flex{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 0;
	padding: 0;
}
.new-flex li{
	list-style: none;
	width: 48%;
	padding: 0;
	margin: 0;
	text-align: center;
}
.new-flex img{
	width: 100%;
	height: auto;
}
.new-flex h3{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto 3em;
    padding: 0.6em 1em 0 1em;
	font-size: 1.1em;
    font-weight: bold;
}
.new-flex a{
	display: block;
    color: #000;
    text-decoration: none;
}
@media screen and (max-width:767px) { 
	.new-flex{
		display: block;
		flex-wrap: nowrap;
		margin: 0;

	}
	.new-flex li{
		list-style: none;
		width: 100%;
		padding: 0;
		margin: 0;
		text-align: center;
	}
	.new-top{
		margin-bottom: 0;
	}
	.sp{
		display: none;
	}
	.new-top h3{
		max-width: 100%;
		margin: 0 auto 1em;
	}
}
@media screen and (max-width: 480px) {
	#new h3{
		font-size: 1em;
	}
	.new-top{
		padding: 0;
	}
	.new-flex{
		padding: 0;
	}
} 

/*=====================
レシピ一覧・トップページボタン
=======================*/
#next-btn{
	width: 250px;
	margin: 0px auto 40px;
	border: #f18e2c 2px solid;
	border-radius:100px;
}
#next-btn a{
	display: flex;
	justify-content: center;
	padding: 15px;
	color: #f18e2c;
	text-decoration: none;
	border-radius: 100px;
	transition: background-color 0.3s;

}
#next-btn a:hover{
	background-color: antiquewhite;
}
#category-btn .btn{
	width: 250px;
	margin: 40px auto;
	border: #f18e2c 2px solid;
	border-radius:100px;
}
#category-btn .btn a{
	display: flex;
	justify-content: center;
	padding: 15px;
	color: #f18e2c;
	text-decoration: none;
	border-radius: 100px;
	transition: background-color 0.3s;

}
#category-btn .btn a:hover{
	background-color: antiquewhite;
}
@media screen and (max-width:767px) { 
	#next-btn{
		max-width: 250px;
		width: 60%;
		margin: 20px auto;
		font-size: 0.9em;
	}
}
@media screen and (max-width: 480px) {
    #next-btn {
        width: 80%;
    }
} 
#category-btn {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
    max-width: 600px;
}
#category-btn .btn {
    margin: 0;
    flex-shrink: 0;
}
@media screen and (max-width:767px) { 
    #category-btn {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin: 20px auto;
        max-width: 100%;
    }
}
@media screen and (max-width: 480px) {
    #category-btn .btn {
        width: 80%;
    }
} 
/*=====================
栄養士・JA
=======================*/
.comment-title-drug{
	padding-top: 0;
}
.comment-title-agri{
	padding-top: 1.5em;
}
#comment {
	width: 100%;
	height: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2.5em 2.5em;
	box-sizing: border-box;
}
.comment-drug{
	background-color: antiquewhite;
}
.comment-agri{
	background-color: #e1eecf;
}
.comment-photo{
	width: 46%;
}
.comment-photo img{
	width: 100%;
	height: auto;
}
.comment-txt{
	width: 51%;
	line-height: 1.4;
	text-align: justify;
	text-justify: inter-ideograph;
	word-break: break-all;
	overflow-wrap: break-word;
}
.comment-position{
		margin: 0;
		padding-bottom: 0.5em;
}
.comment-drug .comment-position{
	border-bottom: #f18e2c 1.5px solid;
}
.comment-agri .comment-position{
	border-bottom: #7ec04d 1.5px solid;
}
.comment-company{
	margin: 0;
	padding: 0.5em 0;
	font-size: 1.2em;
	font-weight: bold;
}
.comment-name{
	font-size: 1.2em;
	font-weight: bold;
	padding: 0 0.3em;
}
.comment-content{
	margin: 0;
	padding-top: 1em;
	line-height: 1.6;
	word-break: break-all;
}
.comment-lead{
	font-size: 1.2em;
	padding-top: 1.5em;
	font-weight: bold;
	text-align: center;
	color: #7ec04d;
}
@media screen and (max-width:767px) { 
	#comment {
		display: block;
	}
	.comment-photo{
		width:  100%;
	}
	.comment-txt{
		width: 100%;
	}
	.comment-company{
		margin: 0.5em auto 0;
		padding: 0;
	}
	.comment-content{
		font-size: 0.9em;
	}
}
@media screen and (max-width: 480px) {
	#comment {
		padding: 1.5em;
		display: block;
	}
} 
/*=====================
カテゴリーページと一覧ページ
=======================*/
.related-recipes,
.category-full-list {
	text-align: center;
	line-height: 1.4;
	padding-bottom:50px;
}
.related-recipes ul,
.category-full-list ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em 1em;
    list-style: none;
    padding: 0;
	margin: 0;
}
.related-recipes ul li a,
.category-full-list ul li a {
    display: block;
    color: #000;
    text-decoration: none;
}
.related-recipes ul li a:hover,
.category-full-list ul li a:hover {
    opacity: 0.8;
}
.related-recipes ul li img,
.category-full-list ul li img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 0.3em;
}
.related-recipes ul li h3,
.category-full-list ul li h3 {
	font-size: 1em;
    padding: 0 0.5em;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media screen and (max-width:767px) {
    .related-recipes{
		padding: 0 2em;
		font-size: 1.1em;
	}
	.related-recipes ul,
    .category-full-list ul {
        grid-template-columns: 1fr;
        gap: 1em 0;
    }
}
@media screen and (max-width: 480px) {
    .related-recipes{
		padding: 0;
		font-size: 1em;
	}
} 

/*===============================================
サイド
===============================================*/
#l-contents-side h2{
	position: relative;
	font-size: 14px;
	line-height: 36px;
	font-weight: normal;
	padding: 0px 5px;
	margin-bottom: 15px;
 	text-align: center;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	background: #eee;
}

#side-recipe-new{
	margin-top: 30px;
}

#side-bnr-link{
	margin-top: 30px;
	margin-bottom: 30px;
}

/*---------------------------------
関連リンク
---------------------------------*/

#side-recipe-links ul{
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9em;
}

#side-recipe-links ul li a{
	margin-left: 2em;
	line-height: 3;
	color: #000;
	text-decoration: none;
	position: relative;
	display: block;
	padding-left: 25px;
}
#side-recipe-links ul li a::before {
    content: ""; 
    position: absolute;
    left: 0; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 15px; 
    height: 15px; 
    background-image: url('../img/links.svg'); 
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center; 
}
