@charset "UTF-8";

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* =========================================================
   スマホ用基本レイアウト（独立スクロール・グレー背景・アイコンあり）
   ========================================================= */
html {
	background-color: #fff5cb;
	height: 100%;
	overflow: hidden;
	margin: 0;
}

body {
	height: 100%;
	overflow: hidden;
	margin: 0;
	background: white;
}

input {
	display: none;
}

#main {
	height: calc(100dvh - 50px);
	background-color: #f7f7f7;
	display: flex;
	width: 100%;
}

#contentsHead {
	height: 120dvh;
}

/* ------------------------------------------- */
/* おすすめ（横スクロール） */
/* ------------------------------------------- */
#recommendation {
	padding: 5px 0;
	border-bottom: solid 2px #d4d4d4;
	margin-bottom: 10px;
	background:
		linear-gradient(45deg, rgb(255 255 255 / 80%), rgb(255 245 223 / 100%)),
		url(../image/osusume_back.jpg);
	background:
		linear-gradient(45deg, rgb(255 255 255 / 80%), rgb(255 245 223 / 100%)),
		url(../image/osusume_back.png);
	background-repeat: no-repeat;
	background-position: bottom;
	background-size: cover;
}

#recommendation.hidden {
	display: none;
}

#recommendation>p {
	font-weight: bold;
	display: flex;
	justify-content: space-between;
}

#recommendation>p>span {
	font-weight: 300;
	color: #002947;
	font-size: 0.8rem;
}

#recommendationContents {
	height: 250px;
	display: flex;
	overflow-x: auto;
}

#recommendationContents>a {
	height: 100%;
	font-size: 0.8rem;
	text-decoration-line: none;
}

.recitem {
	width: 150px;
	height: 100%;
	margin: 0 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.recItemName {
	margin: 0;
	color: black;
	font-size: 13px;
}

.recitem-img {
	height: 65%;
	width: 100%;
	object-fit: contain;
}

.price {
	margin: 0;
	width: 100%;
	text-align: right;
	font-size: 15px;
	font-weight: bold;
}

.searchLabel {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
}

/* ------------------------------------------- */
/* 左側：カテゴリエリア（スマホ） */
/* ------------------------------------------- */
#DaiArea {
	width: 100%;
	height: 100%;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

#DaiArea.open {
	width: 30%; 
}

#categoryArea,
#budukiArea {
	width: 100%;
	background-color: #fff;
	padding: 5px 0;
/*	border-bottom: solid 2px #d4d4d4;*/
	margin-bottom: 10px;
}

.areaTitle {
	font-size: 0.9rem;
	font-weight: bold;
	padding: 8px 10px;
	background-color: #fffdf9;
	border-left: 4px solid brown;
	margin-top: 5px;
}

.categoryitem {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	margin: 0 15px;
	padding: 0;
}

.categoryitem.open {
	flex-direction: column;
	margin-right: 0;
	margin-left: 5px;
}

.Citem {
	width: 50%;
	height: 30px;
	list-style: none;
	margin: 5px 0;
	display: flex;
	align-items: center;
}

.Citem.open {
	width: calc(100% - 10px);
	height: 40px;
	padding: 5px;
	border-bottom: solid 1px #999;
}

.Citem.open.select,
#osusumeLabel.select {
	background-color: #fff5cb !important;
	border-bottom: solid 3px #dfa94b !important;
	font-weight: bold;
}

.Cicon {
	width: 25px;
	height: 25px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	margin-right: 8px; 
}

/* スマホ用：分類名の文字設定 */
.CTitle {
	width: auto;
	margin-left: 0;
	font-size: 0.9rem;
	color: #333;
}

/* --- カテゴリアイコン --- */
#Cicon1 { background-image: url(../image/c_kome_icon.png); }
#Cicon2 { background-image: url(../image/c_amazake_icon.png); }
#Cicon3 { background-image: url(../image/c_tamago_icon.png); }
#Cicon4 { background-image: url(../image/zakkokuicon.png); }
#Cicon5 { background-image: url(../image/komeicon.png); }
#Cicon6 { background-image: url(../image/zakkokuicon.png); }
#Cicon7 { background-image: url(../image/komeicon.png); }
#Cicon8 { background-image: url(../image/zakkokuicon.png); }
#Cicon9 { background-image: url(../image/komeicon.png); }
#Cicon10 { background-image: url(../image/c_osake_icon.png); }
#Cicon11 { background-image: url(../image/c_kikan_icon.png); }
#Cicon90 { background-image: url(../image/c_kikan_icon.png); }

/* --- 分づきアイコン --- */
#Bicon1 { background-image: url(../image/hakumai_icon.png); }
#Bicon7 { background-image: url(../image/7bu_icon.png); }
#Bicon5 { background-image: url(../image/5bu_icon.png); }
#Bicon3 { background-image: url(../image/3bu_icon.png); }
#Bicon2 { background-image: url(../image/genmai_icon.png); }

/* おすすめラベル */
.osusume {
	padding: 10px 5px;
	margin: 10px 0;
	display: flex;
	background: #fffdf9;
	font-weight: bold;
}

.osusume.hidden {
	display: none;
}

/* ------------------------------------------- */
/* 右側：商品リストエリア（スマホ） */
/* ------------------------------------------- */
#ChuList {
	width: 70%;
	height: 100%;
	padding-top: 5px;
	overflow-y: auto; /* ここだけスクロール */
	-webkit-overflow-scrolling: touch;
}

#ChuList.hidden {
	display: none;
}

#ChuItemListArea.hidden {
	display: none;
}

.ChuItemList {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: auto;
}

.ChuArea {
	display: flex;
	margin: 0 2% 2% 2%;
	padding: 2% 0;
	width: 96%;
	height: auto;
	align-items: center;
	border-bottom: solid 1px #999;
	background: #fff;
}

.Chuitemimg {
	width: 80px;
	height: 80px;
	margin: 0 2%;
	box-shadow: 0px 0px 1px 0px #cac0c0;
	object-fit: contain;
}

.ChuitemName {
	margin: 0 0 5px 0;
	word-break: break-word;
}

/* スマホではタイトル非表示 */
.current-category-title {
	display: none;
}

/* =========================================================
   PC用レスポンシブ対応（アイコンなし・白背景・高級感影）
   ========================================================= */
@media screen and (min-width: 768px) {
	html, body {
		height: auto;
		overflow: visible;
		background-color: #fff;
	}

	#main {
		height: auto;
		min-height: calc(100vh - 80px); /* ヘッダー分を引く */
		max-width: 1400px;
		margin: 0 auto;
		display: flex;
		flex-direction: row; /* 横並び */
		align-items: flex-start;
		padding: 10px 20px 40px 20px;
		gap: 40px;
		background-color: #fff;
	}

	.areaTitle {
		font-size: 1.2rem;
		font-weight: bold;
		padding: 0 10px;
		color: #333;
		background-color: transparent;
		border: none;
/*		margin-top: 0;*/
		border-left: 6px solid #bca27f;
	}

	.Cicon {
		display: none !important;
	}

	.CTitle {
		width: 100%;
		margin-left: 0;
		text-align: left !important;
		padding-left: 10px !important;
		font-size: 1rem !important;
/*		font-weight: bold;*/
		color: #333;
	}
	#DaiArea,
	#DaiArea.open {
		width: 250px !important;
		flex-shrink: 0;
		position: sticky;
		top: 100px;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		padding-right: 30px;
		border-right: 1px solid #f0f0f0;
		padding-bottom: 20px;

		scrollbar-width: thin;
		scrollbar-color: #ccc transparent;
	}

	#DaiArea::-webkit-scrollbar {
		display: block !important;
		width: 6px;
	}

	#DaiArea::-webkit-scrollbar-thumb {
		background-color: #ccc;
		border-radius: 3px;
	}

	#recommendation {
		display: none !important;
	}

	.osusume {
		display: flex !important;
		align-items: center;
		justify-content: center;
		background: #fff !important;
		color: #dfa94b !important;
		border: 2px solid #dfa94b !important;
		padding: 15px !important;
		border-radius: 8px;
		margin-bottom: 20px !important;
		font-size: 1.1rem !important;
		font-weight: bold;
		cursor: pointer;
		transition: all 0.3s ease;
	}

	.osusume::before {
		content: "👑";
		margin-right: 8px;
		font-size: 1.3rem;
	}

	.osusume:hover {
		background: #fef0d9 !important;
		transform: translateY(-2px);
		box-shadow: 0 4px 10px rgba(223, 169, 75, 0.3) !important;
	}

	#osusumeLabel.select {
		background: linear-gradient(135deg, #dfa94b, #edc998) !important;
		color: #fff !important;
		border: 2px solid transparent !important;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
		transform: translateY(0);
	}

	.categoryitem {
		flex-direction: column !important;
		margin: 0 !important;
	}

	.Citem,
	.Citem.open {
		width: 100% !important;
		height: auto !important;
		padding: 12px 10px !important;
		border-bottom: 1px solid #e0e0e0 !important;
		box-sizing: border-box;
		cursor: pointer;
		transition: background-color 0.2s;
	}

	.Citem:hover {
		background-color: #fef0d9 !important;
		opacity: 1 !important;
	}

	.Citem.open.select {
		background-color: #fff5cb !important;
		border-bottom: solid 3px #dfa94b !important;
		font-weight: bold;
	}

	#ChuList,
	#ChuList.hidden {
		display: block !important;
		width: 100% !important;
		flex-grow: 1;
		padding: 0 5px 5px 5px;
		height: auto !important;
		overflow-y: visible !important;
	}

	.current-category-title {
		display: block !important;
		font-size: 1.6rem;
		color: #333;
		margin: 25px 0 25px 0;
		padding-left: 15px;
		padding-bottom: 8px;
		border-left: 6px solid #bca27f;
		border-bottom: 1px solid #ddd;
		font-weight: bold;
	}

	.ChuItemList {
		display: grid !important;
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 20px;
	}

	.ChuArea {
		width: 100% !important;
		min-width: 200px;
		margin: 0 !important;
		flex-direction: column !important;
		padding: 20px 15px !important;
		box-sizing: border-box;
		border: none !important;
		border-radius: 12px;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
		cursor: pointer;
		transition: box-shadow 0.3s ease, transform 0.3s ease;
	}

	.ChuArea:hover {
		box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
		transform: translateY(-5px);
	}

	.Chuitemimg {
		width: 100% !important;
		height: 180px !important;
		margin: 0 0 15px 0 !important;
		box-shadow: none !important;
	}

	.ChuitemName {
		text-align: center;
/*		font-weight: bold;*/
		font-size: 15px;
		line-height: 1.4;
	}
}