/* 900px以下でカテゴリ・地域・商品・店舗等のラッパーを縦並びに */
@media (max-width: 900px) {
	#category-location-row,
	#goods-main-row,
	#maker-main-row,
	#shop-main-row {
		display: block !important;
	}
	#category-location-row > div,
	#category-location-row > section,
	#goods-main-row > section,
	#maker-main-row > section,
	#shop-main-row > section {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin-bottom: 1.2rem !important;
	}
}
/* --- Home category/location area unified styles --- */
.section-heading {
	background: linear-gradient(90deg, #ffb36b 0%, #ff8c6b 100%);
	color: #fff;
	padding: 12px 8px;
	border-radius: 8px;
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 0 !important;
	margin-top: 0 !important;
	box-shadow: 0 4px 10px rgba(255, 140, 107, 0.2);
	line-height: 1.2;
}
.category-section-custom {
	/* Remove all extra padding/margin/background/shadow for flex row */
	padding: 0 !important;
	margin: 0 !important;
	background: none !important;
	box-shadow: none !important;
	max-width: 260px;
	min-width: 140px;
}
.category-item-row {
	align-items: center !important;
	display: flex;
	gap: 0.2em 0.2em;
}

.category-section > h3 {
	margin-bottom: 0 !important;
}
.location-section > h3 {
	margin-bottom: 0.18rem !important;
}
.location-btn {
	cursor: pointer;
	border: 1px solid #ffe0c6 !important;
}
.location-section .list-group-item.location-group-header {
	font-weight: 700 !important;
	font-size: 1rem !important;
	background-color: #f0f0f0 !important;
	border-top: 2px solid #ddd !important;
}
/* Align category/location section headings perfectly */
.category-section > h3,
.location-section > h3 {
	margin-bottom: 0.25rem !important;
}
/* Responsive: category/location row horizontal on wide, vertical on narrow */
#category-location-row {
	display: flex;
	gap: 18px;
}
/* Switch to vertical stacking earlier to avoid right-side content collapsing
   on narrow but not very small screens (e.g. tablets). */
@media (max-width: 900px) {
	#category-location-row {
		flex-direction: column;
		gap: 12px;
	}
	.category-section, .location-section {
		max-width: 100% !important;
		min-width: 0 !important;
		width: 100% !important;
	}
}
.location-btn:hover, .location-btn:focus {
	background: linear-gradient(90deg, #ffe0c6 0%, #ffe6d6 100%) !important;
	box-shadow: 0 2px 8px rgba(255, 140, 107, 0.13) !important;
	transform: translateY(-1px) scale(1.03);
	outline: none;
}

.category-section .list-group-item,
#pref-sidebar-wrapper .list-group-item,
.location-section .list-group-item {
	border-radius: 6px !important;
	margin-bottom: 0.13rem;
	padding: 0.22em 0.7em !important;
}

.category-section .list-group-item-action:hover,
#pref-sidebar-wrapper .list-group-item-action:hover {
	background: linear-gradient(90deg, #ffe0c6 0%, #ffe6d6 100%);
	box-shadow: 0 2px 8px rgba(255, 140, 107, 0.13);
	transform: translateY(-2px) scale(1.03);
}

.category-section .list-group-item-light,
#pref-sidebar-wrapper .list-group-item-light {
	background: #fff3e6;
}

.category-section .list-group-item svg.icon,
#pref-sidebar-wrapper .list-group-item svg.icon {
	width: 1.2em;
	height: 1.2em;
	flex-shrink: 0;
	opacity: 0.85;
}

.category-section .list-group-item-action:active,
#pref-sidebar-wrapper .list-group-item-action:active {
	background: #ffe6d6;
	box-shadow: 0 1px 2px rgba(255, 140, 107, 0.10);
}

.category-section .list-group-item a,
#pref-sidebar-wrapper .list-group-item a {
	color: inherit;
}

@media (max-width: 900px) {
	#wrapper { flex-direction: column; }
	#sidebar-wrapper, #pref-sidebar-wrapper { max-width: 100%; min-width: 0; margin-bottom: 1rem; }
}
.category-row {
	gap: 4px !important;
	padding-right: 0 !important;
}
.category-main-btn--category {
	margin-right: 0 !important;
}
/* marginは上記で一括指定済み */
.category-section {
	/* 既存ルールに加え、box-sizingを追加 */
	box-sizing: border-box !important;
}
.category-tree {
	box-sizing: border-box !important;
}
.category-main-btn,
.category-main-btn--category,
.subcategory-btn {
	width: 100% !important;
	box-sizing: border-box !important;
}
.category-row {
	width: 100% !important;
	box-sizing: border-box !important;
}
/* margin/positionは上記で一括指定済み */
body,td,th	{
	line-height: 125%;
}

body {
	background: linear-gradient(180deg, #fff5e6 0%, #ffe4c7 100%);
	margin: 0;
	font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	color: #3a2c1a;
}

.container {
	background: #fffaf2;
}

.site-header {
	background: linear-gradient(90deg, #ffb36b 0%, #ff8c6b 100%);
}

.banner {
	display: flex;
	align-items: center;
	padding: 16px 32px;
}

.banner-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.logo-icon {
	width: 150px;
	height: 50px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	margin-right: 20px;
	filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.banner-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.banner-title {
	font-size: 1.9em;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.banner-subtitle {
	font-size: 0.95em;
	letter-spacing: 0.2em;
}

.main-nav {
	display: flex;
	gap: 24px;
	padding: 14px 32px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(4px);
}

.main-nav a {
	color: #fffaf2;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.main-nav a:hover {
	text-decoration: underline;
}

main {
	padding: 20px 20px;
}

footer {
	background: #ffb36b;
	color: #fff;
	text-align: center;
	padding: 16px 0;
}

footer p {
	margin: 0;
	font-size: 0.85em;
	letter-spacing: 0.08em;
}


.category-section {
	display: flex;
	flex-direction: column;
}

.category-tree {
	list-style: none;
	margin: 0;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.category-tree > li {
	list-style: none !important;
	list-style-type: none !important;
}

.category-tree li::marker {
	display: none;
	content: '';
}

.category-node {
	background: linear-gradient(180deg, #fff8ed 0%, #ffe9ce 100%);
	border: 1px solid rgba(255, 179, 107, 0.45);
	border-radius: 26px;
	box-shadow: 0 14px 28px rgba(255, 140, 107, 0.18);
	padding: 18px 22px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-node--category {
	background: linear-gradient(180deg, #fffdf8 0%, #fff1de 100%);
	border: 1px solid rgba(255, 179, 107, 0.32);
	border-radius: 22px;
	box-shadow: 0 10px 22px rgba(255, 140, 107, 0.14);
	padding: 16px 20px;
}

.category-node.is-open {
	box-shadow: 0 18px 36px rgba(255, 140, 107, 0.28);
	transform: translateY(-2px);
}

.category-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.category-row--category {
	gap: 14px;
}

/* --- 上記で一括定義済みのため削除 --- */

.category-main-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: 1;
	padding: 12px 16px;
	border-radius: 999px;
	border: 2px solid #ffb36b;
	font-size: 1.08rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-decoration: none;
	box-shadow: 0 8px 16px rgba(255, 140, 107, 0.18);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	min-height: 46px;
}

.category-main-btn:hover,
.category-main-btn:focus-visible {
	text-decoration: none;
	transform: translateY(-1px);
	outline: none;
}

.category-main-btn--major {
	background: linear-gradient(90deg, #ffe082 0%, #ffb36b 100%);
	color: #6d3a00;
	border-color: #ffb36b;
}

.category-node--major .category-main-btn:hover,
.category-node--major .category-main-btn:focus-visible {
	background: linear-gradient(90deg, #ffd54f 0%, #ff8c6b 100%);
	box-shadow: 0 14px 26px rgba(255, 140, 107, 0.3);
}

.category-main-btn--category {
	background: linear-gradient(90deg, #fff3cd 0%, #ffd699 100%);
	color: #5c2a00;
	border-color: #ffc27a;
	font-size: 1rem;
	font-weight: 700;
	min-height: 44px;
	box-shadow: 0 6px 14px rgba(255, 140, 107, 0.16);
}

.category-node--category .category-main-btn:hover,
.category-node--category .category-main-btn:focus-visible {
	background: linear-gradient(90deg, #ffe8a3 0%, #ffad6b 100%);
	box-shadow: 0 12px 24px rgba(255, 140, 107, 0.22);
}

.category-name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}


.category-list {
	list-style: none;
	margin: 18px 0 0;
	padding: 0 0 0 52px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.category-list > li {
	list-style: none;
}

.category-list li::marker {
	display: none;
	content: '';
}

.subcategory-list {
	display: flex;
	flex-direction: column;
}

.subcategory-list > li {
	list-style: none !important;
	list-style-type: none !important;
}

.subcategory-list li::marker {
	display: none;
	content: '';
}

.subcategory-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* (removed) level-badge styles as descriptions are not needed */

a:link		{ text-decoration : none ; color: inherit;}
a:active	{ text-decoration : none ; color: inherit;}
a:visited	{ text-decoration : none ; color: inherit;}
/*a:hover	{ text-decoration : underline ;}*/

a.aiu:link		{
	padding: 2px;
	color: #FF9999;
}

a.aiu:active	{
	color: #FF0000;
	padding: 2px;
}

a.aiu:visited	{
	color: #FF9999;
	padding: 2px;
}

a.aiu:hover	{
	text-decoration : none;
	background-color: #FF9999;
	color: #FFFFFF;
	padding: 2px;
}

td.aiu1,th.aiu1 {
	color: #CCCCCC;
	border: 1px dashed #CCCCCC;
	text-align: center;
}

td.aiu2,th.aiu2 {
	border: 1px solid #FFCCCC;
	font-weight: bold;
	text-align: center;
}

.title1 {
	color: #999999;
	font-size: xx-small;
}

.sml {
	line-height: 125%;
	font-size: xx-small;
}

.mid {
	font-size: small;
	line-height: 125%;
	font-weight: bold;
}

.lrg {
	font-size: medium;
	line-height: 125%;
	font-weight: bold;
}

.site-title {
	display: inline-block;
	margin-left: 12px;
}

.site-title h1 {
	margin: 0;
	font-size: 1.8em;
}

.subtitle {
	margin: 0;
	font-size: small;
	color: #666666;
}

/* --- Overrides for compact buttons and reliable toggling --- */
.category-row { gap: 8px !important; }

/* --- 上記で一括定義済みのため削除 --- */

/* Unified button design for all levels */
.category-main-btn,
.category-main-btn--category,
.subcategory-btn {
  gap: 8px !important;
  flex: 0 0 auto !important;
  padding: 3px 10px !important;
  font-size: 0.9rem !important;
  min-height: 26px !important;
  width: auto !important;
  line-height: 1.2 !important;
  border-radius: 6px !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  transition: all 0.2s ease !important;
}

/* Subtle color variations for hierarchy */
.category-main-btn {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
}
.category-main-btn:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
  border-color: rgba(0,0,0,0.12) !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12) !important;
  transform: translateY(-1px) !important;
}

.category-main-btn--category {
  background: linear-gradient(135deg, #f1f3f5 0%, #e3e6e8 100%) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
}
.category-main-btn--category:hover {
  background: linear-gradient(135deg, #e3e6e8 0%, #d6d9dc 100%) !important;
  border-color: rgba(0,0,0,0.12) !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12) !important;
  transform: translateY(-1px) !important;
}

.subcategory-btn {
  background: linear-gradient(135deg, #eef0f2 0%, #dfe2e5 100%) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
}
.subcategory-btn:hover {
  background: linear-gradient(135deg, #dfe2e5 0%, #d0d3d6 100%) !important;
  border-color: rgba(0,0,0,0.12) !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12) !important;
  transform: translateY(-1px) !important;
}

.category-name { flex: 0 1 auto !important; }

.category-tree { gap: 8px !important; }
.category-list { gap: 6px !important; padding-left: 40px !important; margin-top: 8px !important; }
.category-node { padding: 8px 12px !important; }
.category-node--category { padding: 6px 10px !important; }

.subcategory-list { margin-top: 6px !important; margin-bottom: 6px !important; padding-left: 28px !important; gap: 4px !important; }
.subcategory-list[hidden] { display: none !important; }
/* Subcategory links (top page + type page) */
.subcategory-list a {
	display: inline-block;
	padding: 2px 8px !important;
	line-height: 1.2 !important;
	color: #666 !important;
	border-radius: 6px !important;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
}
.subcategory-list a:hover,
.subcategory-list a:focus-visible {
	background: linear-gradient(90deg, #ffe0c6 0%, #ffe6d6 100%) !important;
	color: #333 !important;
	text-decoration: none !important;
	box-shadow: 0 1px 6px rgba(255, 140, 107, 0.18) !important;
	outline: none;
}

/* --- Sidebar width & category button width override --- */
.category-tree {
	max-width: 200px !important;
	min-width: 160px !important;
	width: 100% !important;
}
/* --- 既存のボタン幅指定は他の場所で一括管理 --- */

/* 中分類と小分類の表示の違い */
.list-group-item.major-item {
	font-weight: 700 !important;
	font-size: 1rem !important;
	color: #222 !important;
	background-color: #f0f0f0 !important;
	border-top: 2px solid #ddd !important;
	cursor: default !important;
	margin-top: 0 !important;
}

.list-group-item.category-item {
	font-weight: 600 !important;
	font-size: 0.95rem !important;
}
