@charset "UTF-8";

/* =========================================================
   Product List Page Styles (Color Me Shop)
   ========================================================= */

/* Variables matching Tsubakino style */
:root {
  --color-primary: #8F2A2A;
  --color-text: #333333;
  --color-bg: #fdfcf6;
  --color-border: #E5E5E5;
  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", sans-serif;
  --font-en: "Lato", sans-serif;
  --content-width: 1200px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
}

/* =========================================================
   Global Header Override (For List Page Only)
   ========================================================= */
/* ヒーローFVの上にヘッダーを重ねるため、common.cssのpadding-topをリセット */
.l-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* =========================================================
   FV Background Area
   ========================================================= */
.p-list-fv {
  position: relative;
  width: 100%;
  height: 500px;
  background-image: url('https://img14.shop-pro.jp/PA01076/334/etc_base64/cHJvZHVjdC1saXN0LWltZw.jpg?cmsp_timestamp=20260303171309');
  background-size: cover;
  background-position: center;
}

.p-list-fv::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
  /* 少し暗くする用 */
}

.p-list-fv__title {
  position: absolute;
  z-index: 2;
  bottom: 50px;
  right: 50px;
  color: #fff;
  font-family: var(--font-en);
  font-size: 28px;
  letter-spacing: 0.15em;
  font-weight: 300;
}

@media (max-width: 768px) {
  .p-list-fv {
    height: 300px;
  }

  .p-list-fv__title {
    bottom: 30px;
    right: 30px;
    font-size: 20px;
  }
}

/* =========================================================
   Layout
   ========================================================= */
.p-list-container {
  max-width: var(--content-width);
  margin: 60px auto 120px;
  padding: 0 20px;
  display: flex;
  gap: 80px;
  box-sizing: border-box;
}

/* 左サイドバー */
.p-list-sidebar {
  width: 200px;
  flex-shrink: 0;
}

.p-list-sidebar__title {
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.1em;
  margin: 0 0 30px;
  font-weight: 500;
}

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

.p-list-sidebar__menu li {
  margin-bottom: 25px;
}

.p-list-sidebar__menu a {
  color: #999999;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  /* default invisible border */
}

.p-list-sidebar__menu a:hover {
  opacity: 0.7;
}

/* Active State Design */
.p-list-sidebar__menu a.is-active {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
}

/* 右メインコンテンツ */
.p-list-main {
  flex-grow: 1;
}

.p-list-category {
  margin-bottom: 80px;
}

.p-list-category__header {
  margin-bottom: 40px;
}

.p-list-category__title {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.1em;
  margin: 0 0 15px;
  font-weight: normal;
}

.p-list-category__desc {
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  margin: 0;
}

/* 商品グリッド */
.p-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

/* プロダクトカード */
.c-product {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.c-product:hover {
  transform: translateY(-5px);
}

.c-product__img {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #EFEFEF;
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.c-product:hover .c-product__img img {
  transform: scale(1.05);
}

.c-product__brand {
  font-size: 10px;
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  margin-bottom: 5px;
  opacity: 0.6;
}

.c-product__name {
  font-size: 14px;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  margin: 0 0 15px;
  font-weight: 500;
  line-height: 1.4;
}

.c-product__line {
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  border: none;
  margin: 0 0 15px;
}

.c-product__desc {
  font-size: 11px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-product__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.c-product__price {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.c-product__price span {
  font-size: 10px;
  font-family: var(--font-sans);
}

.c-product__btn {
  background-color: var(--color-primary);
  color: #fff;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.1em;
}

/* ページネーション */
.p-list-pager {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.p-list-pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s;
}

.p-list-pager__link:hover,
.p-list-pager__link.is-current {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

@media (max-width: 768px) {
  .p-list-container {
    flex-direction: column;
    gap: 40px;
    margin: 40px auto 80px;
  }

  .p-list-sidebar {
    width: 100%;
  }

  .p-list-sidebar__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .p-list-sidebar__menu li {
    margin: 0;
  }

  .p-list-sidebar__menu a {
    padding: 8px 15px;
    border: 1px solid var(--color-border);
    font-size: 12px;
  }

  .p-list-grid {
    grid-template-columns: repeat(1, 1fr);
    padding-inline: 40px;
    gap: 30px 15px;
  }
}