/* ==================================
   合同会社キッチンの小物 MAIN STYLES
   ================================== */

/* Reset & Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family:
		"游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ",
		"Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
	font-size: 14px;
	line-height: 1.7;
	color: #333;
	background: #fafafa;
	-webkit-font-smoothing: antialiased;
}

a {
	color: #333;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

a:hover {
	opacity: 0.7;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ==================================
   HEADER STYLES  
   ================================== */

.ec-layoutRole__header {
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Notification Bar */
.header__notification {
	background: #fff8e1;
	border-bottom: 1px solid #ffe082;
	padding: 8px 0;
	text-align: center;
}

.header__notification p {
	font-size: 12px;
	color: #856404;
	margin: 0;
}

/* Header Top */
.header__top {
	padding: 20px 0 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #f0f0f0;
}

.header__topLeft {
	flex: 1;
}

.header__shipping {
	font-size: 12px;
	color: #666;
	margin: 0;
}

.header__freeShipping {
	color: #d32f2f;
	font-weight: 600;
	margin-left: 4px;
}

.header__logo {
	flex-shrink: 0;
	margin: 0 40px;
}

.header__logo img {
	height: 80px;
	width: auto;
	display: block;
}

.header__topRight {
	flex: 1;
	text-align: right;
}

.header__support {
	font-size: 11px;
	color: #999;
	margin: 0 0 6px 0;
}

.header__contactBtn {
	display: inline-block;
	padding: 8px 20px;
	background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 12px;
	color: #333;
	font-weight: 500;
	transition: all 0.2s ease;
}

.header__contactBtn:hover {
	background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
	border-color: #c51b1b;
	opacity: 1;
}

/* Navigation */
.header__nav {
	padding: 15px 0;
	display: flex;
	align-items: center;
	gap: 30px;
	border-bottom: 1px solid #f0f0f0;
}

.header__menuToggle {
	display: none;
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: #333;
	padding: 8px;
}

.header__categoryNav {
	display: flex;
	list-style: none;
	gap: 0;
	margin: 0;
}

.header__categoryItem {
	position: relative;
	border-right: 1px solid #e0e0e0;
}

.header__categoryItem:first-child {
	border-left: 1px solid #e0e0e0;
}

.header__categoryLink {
	display: block;
	padding: 10px 30px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	letter-spacing: 0.5px;
	transition: all 0.2s ease;
}

.header__categoryLink i {
	margin-right: 6px;
	color: #c51b1b;
	font-size: 13px;
}

.header__categoryLink:hover {
	background: #f8f8f8;
	color: #c51b1b;
	opacity: 1;
}

/* Category Dropdown */
.header__dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-top: 2px solid #c51b1b;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
}

.header__categoryItem:hover .header__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.header__dropdownList {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.header__dropdownList li {
	border-bottom: 1px solid #f5f5f5;
}

.header__dropdownList li:last-child {
	border-bottom: none;
}

.header__dropdownList a {
	display: block;
	padding: 10px 20px;
	font-size: 13px;
	color: #666;
	transition: all 0.2s ease;
}

.header__dropdownList a:hover {
	background: #f8f8f8;
	color: #c51b1b;
	padding-left: 25px;
	opacity: 1;
}

.header__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 1;
}

/* Search */
.header__search {
	display: flex;
	flex: 1;
	max-width: 420px;
}

.header__searchInput {
	flex: 1;
	padding: 10px 15px;
	border: 2px solid #e0e0e0;
	border-right: none;
	border-radius: 4px 0 0 4px;
	font-size: 13px;
	background: #fff;
	transition: border-color 0.2s ease;
}

.header__searchInput::placeholder {
	color: #999;
}

.header__searchInput:focus {
	outline: none;
	border-color: #c51b1b;
	background: #fff;
}

.header__searchSubmit {
	padding: 10px 20px;
	background: #c51b1b;
	color: #fff;
	border: none;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	transition: background 0.2s ease;
}

.header__searchSubmit:hover {
	background: #eac7aa;
}

.header__searchSubmit i {
	font-size: 16px;
}

/* User Actions */
.header__userActions {
	display: flex;
	align-items: center;
	gap: 15px;
}

.header__iconBtn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	transition: background 0.2s ease;
}

.header__iconBtn:hover {
	background: #f5f5f5;
	opacity: 1;
}

.header__iconBtn i {
	font-size: 20px;
	color: #666;
}

.header__iconBtn .badge {
	position: absolute;
	top: 5px;
	right: 5px;
	background: #d32f2f;
	color: #fff;
	border-radius: 10px;
	padding: 2px 6px;
	font-size: 10px;
	font-weight: bold;
	min-width: 18px;
	text-align: center;
}

.header__cart {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	background: #f8f8f8;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.header__cart:hover {
	background: #fff;
	border-color: #c51b1b;
	opacity: 1;
}

.header__cart i {
	font-size: 20px;
	color: #c51b1b;
}

.cart-badge {
	background: #d32f2f;
	color: #fff;
	border-radius: 10px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: bold;
	min-width: 20px;
	text-align: center;
}

.cart-price {
	color: #333;
	font-weight: 600;
	font-size: 14px;
}

/* Account Bar */
.header__accountBar {
	background: #fafafa;
	padding: 10px 0;
	text-align: center;
	border-bottom: 1px solid #e0e0e0;
}

.header__accountBar a {
	display: inline-block;
	margin: 0 15px;
	font-size: 12px;
	color: #666;
	padding: 5px 0;
	border-bottom: 1px solid transparent;
	transition: all 0.2s ease;
}

.header__accountBar a i {
	margin-right: 4px;
	font-size: 11px;
}

.header__accountBar a:hover {
	color: #c51b1b;
	border-bottom-color: #c51b1b;
	opacity: 1;
}

/* ==================================
   PAGE CONTAINER & LAYOUT
   ================================== */

.page-container {
	background: #fafafa;
	min-height: calc(100vh - 400px);
	padding: 25px 0;
}

.page-wrap {
	display: flex;
	gap: 25px;
}

/* ==================================
   SIDEBAR STYLES
   ================================== */

.sidebar {
	width: 220px;
	flex-shrink: 0;
}

.sidebar__inner {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
}

.sidebar__title {
	background: linear-gradient(180deg, #f8f8f8 0%, #efefef 100%);
	padding: 15px 20px;
	font-size: 15px;
	font-weight: 600;
	color: #333;
	border-bottom: 1px solid #e0e0e0;
	margin: 0;
}

.sidebar__nav {
	padding: 0;
}

.sidebar__categoryList {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Main Category Items */
.sidebar__categoryItem--main {
	border-bottom: 1px solid #f0f0f0;
}

.sidebar__categoryItem--main.active {
	background: #f8f8f8;
}

.sidebar__categoryLink--main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	transition: all 0.2s ease;
	background: linear-gradient(180deg, #fff 0%, #f9f9f9 100%);
}

.sidebar__categoryIcon {
	margin-right: 10px;
	color: #c51b1b;
	font-size: 15px;
	width: 20px;
	text-align: center;
}

.sidebar__categoryLink--main:hover {
	background: #f5f5f5;
	color: #c51b1b;
	opacity: 1;
}

.sidebar__categoryLink--main:hover .sidebar__categoryIcon {
	transform: scale(1.1);
	transition: transform 0.2s ease;
}

.sidebar__categoryName {
	flex: 1;
}

.sidebar__productCount {
	color: #999;
	font-size: 12px;
	font-weight: normal;
	margin-left: 8px;
}

/* Subcategory List */
.sidebar__subcategoryList {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	background: #fafafa;
	border-top: 1px solid #f0f0f0;
}

.sidebar__subcategoryItem {
	border-bottom: 1px solid #f5f5f5;
}

.sidebar__subcategoryItem:last-child {
	border-bottom: none;
}

.sidebar__subcategoryItem.active .sidebar__subcategoryLink {
	background: #fff;
	color: #c51b1b;
	font-weight: 600;
	border-left: 3px solid #c51b1b;
}

.sidebar__subcategoryLink {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px 10px 30px;
	font-size: 13px;
	color: #666;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

.sidebar__subcategoryLink:hover {
	background: #fff;
	color: #c51b1b;
	padding-left: 33px;
	opacity: 1;
}

.sidebar__subCount {
	color: #aaa;
	font-size: 11px;
	margin-left: 8px;
}

/* Quick Links Section */
.sidebar__quickLinks {
	border-top: 1px solid #e8e8e8;
	padding: 20px;
	background: #fafafa;
}

.sidebar__sectionTitle {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin: 0 0 12px 0;
	padding-bottom: 8px;
	border-bottom: 1px solid #e0e0e0;
}

.sidebar__linkList {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar__linkList li {
	margin-bottom: 8px;
}

.sidebar__linkList a {
	display: block;
	padding: 6px 10px;
	font-size: 12px;
	color: #666;
	border-radius: 3px;
	transition: all 0.2s ease;
}

.sidebar__linkList a i {
	margin-right: 8px;
	color: #c51b1b;
	font-size: 11px;
	width: 14px;
	text-align: center;
}

.sidebar__linkList a:hover {
	background: #fff;
	color: #c51b1b;
	padding-left: 15px;
	opacity: 1;
}

.sidebar__inner {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	padding: 0;
	position: sticky;
	top: 130px;
}

.sidebar__title {
	font-size: 14px;
	font-weight: 600;
	padding: 15px 18px;
	border-bottom: 1px solid #e8e8e8;
	background: #f9f9f7;
	margin: 0;
}

.sidebar__categoryList {
	list-style: none;
	padding: 8px 0;
}

.sidebar__categoryItem {
	border-bottom: 1px solid #f5f5f5;
}

.sidebar__categoryItem:last-child {
	border-bottom: none;
}

.sidebar__categoryLink {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 11px 18px;
	color: #333;
	font-size: 13px;
	transition: all 0.2s ease;
}

.sidebar__categoryLink:hover,
.sidebar__categoryLink.active {
	background: #f9f9f7;
	color: #c51b1b;
}

.sidebar__productCount {
	color: #999;
	font-size: 11px;
}

/* ==================================
   MAIN CONTENT STYLES
   ================================== */

.main-contents {
	flex: 1;
	background: #fff;
	border-radius: 4px;
	padding: 25px 30px;
	border: 1px solid #e8e8e8;
}

.category-header {
	margin-bottom: 25px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e8e8e8;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.category-title {
	font-size: 20px;
	font-weight: 600;
	color: #333;
	letter-spacing: 0.5px;
}

.category-count {
	color: #999;
	font-size: 13px;
}

/* ==================================
   PRODUCT CARD LIST
   ================================== */

.itemCardList {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	list-style: none;
}

.itemCard--L {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 3px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.itemCard--L:hover {
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
	border-color: #ddd;
}

.itemCard__link {
	display: block;
	color: inherit;
}

.itemCard__thumb {
	position: relative;
	background: #fafafa;
	padding: 18px;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid #f0f0f0;
}

.itemCard__figure {
	margin: 0;
	text-align: center;
	width: 100%;
}

.itemCard__figure img {
	max-height: 180px;
	object-fit: contain;
	width: 100%;
}

.itemCard__soldOut {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #c70f0f;
	color: #fff;
	padding: 4px 12px;
	font-weight: 600;
	border-radius: 2px;
	font-size: 11px;
	letter-spacing: 0.3px;
}

.itemCard__body {
	padding: 15px;
}

.itemCard__category {
	color: #999;
	font-size: 10px;
	text-transform: uppercase;
	margin-bottom: 6px;
	letter-spacing: 0.5px;
}

.itemCard__title {
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 8px;
	line-height: 1.5;
	color: #333;
	min-height: 38px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.itemCard__description {
	color: #999;
	font-size: 12px;
	line-height: 1.6;
	margin-bottom: 12px;
	min-height: 54px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.itemCard__price {
	display: flex;
	align-items: baseline;
	padding-top: 12px;
	border-top: 1px solid #f5f5f5;
}

.itemCard__priceLabel {
	font-size: 11px;
	color: #999;
	margin-right: 4px;
}

.itemCard__priceValue {
	font-size: 16px;
	font-weight: 600;
	color: #c70f0f;
	letter-spacing: 0.3px;
}

/* ==================================
   FOOTER STYLES
   ================================== */

.ec-layoutRole__footer {
	background: #333;
	color: #ccc;
	margin-top: 50px;
}

.footer__top {
	padding: 35px 0;
	border-bottom: 1px solid #444;
}

.footer__logo img {
	height: 20px;
	margin-bottom: 12px;
	filter: brightness(0) invert(1);
	opacity: 0.8;
}

.footer__description {
	font-size: 12px;
	line-height: 1.8;
	max-width: 600px;
	color: #999;
}

.footer__nav {
	padding: 25px 0;
	display: flex;
	gap: 50px;
}

.footer__navTitle {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 12px;
	color: #fff;
}

.footer__navShopping ul,
.footer__navInfo ul {
	list-style: none;
	display: flex !important;
	flex-wrap: wrap;
	gap: 15px 20px;
	flex-direction: row !important;
}

.footer__navShopping li,
.footer__navInfo li {
	margin-bottom: 0;
	display: inline-block;
}

.footer__navShopping a,
.footer__navInfo a {
	color: #999;
	font-size: 12px;
}

.footer__navShopping a:hover,
.footer__navInfo a:hover {
	color: #fff;
}

.footer__bottom {
	padding: 18px 0;
	text-align: center;
	border-top: 1px solid #444;
}

.footer__copyright {
	font-size: 11px;
	color: #777;
}

/* ==================================
   HOME PAGE STYLES
   ================================== */

.home-main {
	width: 100%;
}

.home-hero {
	background: linear-gradient(135deg, #c51b1b 0%, #c51b1b 100%);
	color: #fff;
	padding: 50px 35px;
	text-align: center;
	border-radius: 4px;
	margin-bottom: 40px;
}

.home-hero__title {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 12px;
	letter-spacing: 1px;
}

.home-hero__subtitle {
	font-size: 14px;
	opacity: 0.9;
	letter-spacing: 0.5px;
}

.home-category {
	margin-bottom: 45px;
}

.home-category__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e8e8e8;
}

.home-category__title {
	font-size: 20px;
	font-weight: 600;
	color: #333;
	letter-spacing: 0.5px;
}

.home-category__link {
	color: #c51b1b;
	font-weight: 600;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.home-category__link:hover {
	gap: 10px;
}

.home-productList {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	list-style: none;
}

.home-productCard {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 3px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.home-productCard:hover {
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
	border-color: #ddd;
}

.home-productCard a {
	display: block;
	color: inherit;
}

.home-productCard__image {
	position: relative;
	padding: 18px;
	background: #fafafa;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid #f0f0f0;
}

.home-productCard__image img {
	max-height: 160px;
	object-fit: contain;
}

.home-productCard__soldOut {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #c4c70f;
	color: #fff;
	padding: 4px 12px;
	border-radius: 2px;
	font-size: 11px;
	font-weight: 600;
}

.home-productCard__info {
	padding: 15px;
}

.home-productCard__name {
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 8px;
	line-height: 1.5;
	min-height: 38px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home-productCard__price {
	font-size: 16px;
	font-weight: 600;
	color: #c70f0f;
	padding-top: 8px;
	border-top: 1px solid #f5f5f5;
}

/* ==================================
   RESPONSIVE DESIGN
   ================================== */

@media (max-width: 1024px) {
	.itemCardList,
	.home-productList {
		grid-template-columns: repeat(3, 1fr);
	}

	.sidebar {
		width: 200px;
	}
}

@media (max-width: 768px) {
	.header__top {
		flex-wrap: wrap;
		gap: 10px;
	}

	.header__meta {
		width: 100%;
		text-align: center;
	}

	.header__logo {
		margin: 10px auto;
	}

	.header__account {
		justify-content: center;
		width: 100%;
	}

	.header__nav {
		flex-direction: column;
		gap: 12px;
	}

	.header__categoryNav {
		width: 100%;
		justify-content: space-around;
	}

	.header__search {
		max-width: 100%;
		margin: 0;
	}

	.page-wrap {
		flex-direction: column;
	}

	.sidebar {
		width: 100%;
	}

	.sidebar__inner {
		position: static;
	}

	.itemCardList,
	.home-productList {
		grid-template-columns: repeat(2, 1fr);
	}

	.main-contents {
		padding: 20px 15px;
	}

	.footer__nav {
		flex-direction: column;
		gap: 25px;
	}
}

@media (max-width: 480px) {
	.itemCardList,
	.home-productList {
		grid-template-columns: 1fr;
	}

	.home-hero {
		padding: 35px 20px;
	}

	.home-hero__title {
		font-size: 22px;
	}
}

/* ==================================
   HOME PAGE STYLES
   ================================== */

.home-main {
	width: 100%;
}

.home-hero {
	background: linear-gradient(135deg, #c69595 0%, #c51b1b 100%);
	color: #fff;
	padding: 60px 40px;
	text-align: center;
	border-radius: 12px;
	margin-bottom: 50px;
}

.home-hero__title {
	font-size: 32px;
	font-weight: bold;
	margin-bottom: 15px;
}

.home-hero__subtitle {
	font-size: 16px;
	opacity: 0.9;
}

.home-category {
	margin-bottom: 50px;
}

.home-category__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e0e0e0;
}

.home-category__title {
	font-size: 24px;
	font-weight: bold;
	color: #333;
}

.home-category__link {
	color: #c51b1b;
	font-weight: bold;
	display: flex;
	align-items: center;
	gap: 8px;
}

.home-category__link:hover {
	gap: 12px;
}

.home-productList {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	list-style: none;
}

.home-productCard {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.home-productCard:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
}

.home-productCard a {
	display: block;
	color: inherit;
}

.home-productCard__image {
	position: relative;
	padding: 20px;
	background: #f9f9f9;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.home-productCard__image img {
	max-height: 160px;
	object-fit: contain;
}

.home-productCard__soldOut {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #e74c3c;
	color: #fff;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: bold;
}

.home-productCard__info {
	padding: 15px;
}

.home-productCard__name {
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 8px;
	line-height: 1.4;
	min-height: 40px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home-productCard__price {
	font-size: 16px;
	font-weight: bold;
	color: #c51b1b;
}

@media (max-width: 1024px) {
	.home-productList {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.home-hero {
		padding: 40px 20px;
	}

	.home-hero__title {
		font-size: 24px;
	}

	.home-productList {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.home-productList {
		grid-template-columns: 1fr;
	}
}
