@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* 料理名(料金)青線追加 */
.line-under-blue {	
    position: relative;
    padding: 0.7rem 0;
    margin-bottom: 0.2rem;
    background-image: repeating-linear-gradient(45deg, transparent 0 3px, #bee0e1 3px 6px);
    background-repeat: no-repeat;
    background-size: 100% 15px;
    background-position: left 0 bottom 7px;
    color: #353535;
    font-weight: bold;
}



/* 文章内黄色マークアップ */
.marker-under-yellow {
    background: linear-gradient(transparent 60%, #ff9 60%);
	font-weight : bold;
}



/* 料理画像サイズ調整 */
.img-control {
	width : 60%;
	margin: 0 auto;
}



/* 料理名(料金)ポジション調整 */
.center-control {
	text-align : center;
}



/* リンクボタンデザイン */
a.button-normal {
	display: block;
	text-align: center;
	vertical-align: middle;
	text-decoration: none;
	margin: auto;
	padding: 1rem 1rem;
	font-weight: bold;
	border: 2px solid #27acd9;
	background: #27acd9;
	color: #fff;
	border-radius: 100vh;
	transition: 0.5s;
	font-size: 25px;
}

a.button-normal:hover {
	color: #27acd9;
	background: #fff;
}



/* 星評価デザイン */
.star5_rating{
	position: relative;
	z-index: 0;
	display: inline-block;
	white-space: nowrap;
	color: #CCCCCC; /* グレーカラー 自由に設定化 */
	/*font-size: 30px; フォントサイズ 自由に設定化 */
}

.star5_rating:before, .star5_rating:after{
	content: '★★★★★';
}

.star5_rating:after{
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #ffcf32; /* イエローカラー 自由に設定化 */
}

.star5_rating[data-rate="5"]:after{ width: 100%; } /* 星5 */
.star5_rating[data-rate="4"]:after{ width: 80%; } /* 星4 */
.star5_rating[data-rate="3"]:after{ width: 60%; } /* 星3 */
.star5_rating[data-rate="2"]:after{ width: 40%; } /* 星2 */
.star5_rating[data-rate="1"]:after{ width: 20%; } /* 星1 */
.star5_rating[data-rate="0"]:after{ width: 0%; } /* 星0 */



/* タイル型検索セクション（料理から探す／こだわり条件から探す 共通） */
.cuisine-search__title {
	display: flex;
	align-items: center;
	font-size: 21px;
	font-weight: 700;
	border-left: 5px solid #d64332;
	padding-left: 12px;
	margin: 0 0 6px;
}

/* 見出しを背景ボックス付きにする場合の修飾クラス（こだわり条件から探す で使用） */
.cuisine-search__title--box {
	background: #e8f2fb;
	border-left-color: #1565c0;
	padding: 16px 18px;
	border-radius: 2px;
}

.cuisine-search__note {
	font-size: 12.5px;
	color: #8c867e;
	margin: 0 0 22px;
}

.cuisine-search__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}

.cuisine-search__grid br {
	display: none;
}

.cuisine-search__item {
	position: relative;
	display: block;
	aspect-ratio: 350 / 500;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(43,41,38,.12);
	background-size: cover;
	background-position: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cuisine-search__item:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 18px rgba(43,41,38,.12);
}

.cuisine-search__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.68) 0%, rgba(0,0,0,0) 50%);
}

.cuisine-search__label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 9px;
	z-index: 1;
	text-align: center;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-shadow: 0 1px 4px rgba(0,0,0,.55);
}



/* エリア別おすすめ居酒屋（cuisine-search の枠組みを流用した横長タイル） */
.cuisine-search__grid--area {
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.cuisine-search__item--area {
	aspect-ratio: 16 / 9;
	background-color: #23283a;
}

/* エリア画像（HTML側の <img class="cuisine-search__img"> を敷き詰め表示） */
.cuisine-search__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cuisine-search__item--area::after {
	background:
		linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.15) 60%, rgba(0,0,0,.55) 100%),
		rgba(0,0,0,.25);
}

.cuisine-search__label--area {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-align: center;
	color: #fff;
	text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

.cuisine-search__area-name {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: .03em;
}

.cuisine-search__area-sub {
	font-size: 14px;
	font-weight: 500;
}



/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
	/* 料理画像サイズ調整 */
	.img-control {
		width : 100%;
	}



	/* リンクボタンデザイン */
	a.button-normal {
		font-size: 18px;
	}



	/* 料理から探す タイルグリッド */
	.cuisine-search__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	/* エリア別おすすめ居酒屋 タイルグリッド */
	.cuisine-search__grid--area {
		grid-template-columns: repeat(2, 1fr);
	}
}

/*600px以下*/
@media screen and (max-width: 600px){
	/* 料理から探す タイルグリッド */
	.cuisine-search__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	.cuisine-search__label {
		font-size: 12.5px;
	}

	/* エリア別おすすめ居酒屋 タイルグリッド */
	.cuisine-search__area-name {
		font-size: 24px;
	}

	.cuisine-search__area-sub {
		font-size: 12.5px;
	}
}

/*480px以下*/
@media screen and (max-width: 480px){
	/* エリア別おすすめ居酒屋 タイルグリッド */
	.cuisine-search__grid--area {
		grid-template-columns: repeat(1, 1fr);
	}
}