/* =========================================================
   商品：カテゴリーページ・一覧・詳細
   ========================================================= */

/* ---------- 共通 ---------- */
.product-label {
  align-self: flex-start; margin-bottom: 10px; display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  background: var(--c-maroon); color: var(--c-white); font-size: 12px; line-height: 1; letter-spacing: 0.1em;
}
.product-label--new { background: #b8862d; }
.product-label--compact { background: #5a6b4a; }
.product-label--limited { background: #1d1d1d; }
.product-label--original { background: #2d3a5c; }
.product-label--recommend { background: #c8442c; }
.price { color: var(--c-maroon); font-weight: 600; letter-spacing: 0.02em; }
.price__num { font-size: 1.35em; }
.price small { margin-left: 2px; font-size: 11px; font-weight: 400; color: #666; }
.price--hidden { color: #666; font-size: 12px; font-weight: 400; letter-spacing: 0.05em; }

/* =========================================================
   カテゴリーページ（雛人形ページなど）
   ========================================================= */
.lp { overflow: hidden; }
.lp-head { position: relative; height: 320px; overflow: hidden; }
.lp-head__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.lp-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.95) 30%, rgba(255,255,255,.6) 45%, rgba(255,255,255,0) 62%);
}
.lp-head__cloud { position: absolute; z-index: 1; left: 0; top: -4px; width: 470px; height: auto; pointer-events: none; opacity: .85; }
.lp-head__inner {
  position: relative; z-index: 2; max-width: var(--content); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  box-sizing: content-box; display: flex; flex-direction: column; justify-content: center;
}
.lp-head__title { font-size: 30px; line-height: 1.4; font-weight: 600; letter-spacing: 0.15em; }
.lp-head__lead { margin-top: 36px; font-size: 16px; line-height: 1.85; letter-spacing: 0.1em; font-weight: 600; }
.lp .breadcrumb { position: relative; z-index: 2; padding-top: 28px; }

.lp-intro { position: relative; z-index: 1; padding: 56px var(--gutter) 24px; text-align: center; }
.lp-intro__kiku { display: block; margin: 0 auto 28px; }
.lp-intro p { font-size: 15px; line-height: 1.9; letter-spacing: 0.12em; }

.lp-sections { position: relative; max-width: 1000px; margin: 0 auto; padding: 48px var(--gutter) 112px; box-sizing: content-box; }
.lp-deco { position: absolute; pointer-events: none; }
.lp-deco--wave1 { right: calc(50% - 720px); top: 40px; width: 380px; transform: scaleX(-1); }
.lp-deco--wave2 { left: calc(50% - 720px); bottom: 32%; width: 380px; }
.lp-deco--circle { left: calc(50% - 1010px); top: 22%; width: 420px; opacity: .9; }

.lp-sec {
  position: relative; z-index: 1; display: grid; grid-template-columns: 56px minmax(0, 560px) 1fr; align-items: end; gap: 0 48px;
  margin-top: 96px;
}
.lp-sec:first-of-type { margin-top: 32px; }
.lp-sec__title {
  grid-column: 1; grid-row: 1; align-self: start; margin-top: -24px;
  writing-mode: vertical-rl; font-size: 28px; line-height: 1.3; font-weight: 600; letter-spacing: 0.25em;
}
.lp-sec__photo { grid-column: 2; grid-row: 1; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #f3f0ea; }
.lp-sec__photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s ease; }
.lp-sec__photo:hover img { transform: scale(1.04); }
.lp-sec__body { grid-column: 3; grid-row: 1; padding-bottom: 32px; }
.lp-sec__text { font-size: 14px; line-height: 1.9; letter-spacing: 0.08em; }
.lp-sec__types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.lp-sec__types a { display: inline-flex; height: 28px; align-items: center; padding: 0 10px; border: 1px solid #e6dcc9; font-size: 12px; letter-spacing: 0.05em; transition: background-color .2s; }
.lp-sec__types a:hover { background: #faf6ee; }
.lp-sec__btn { width: 100%; max-width: 260px; margin-top: 24px; }

.lp-sec--rev { grid-template-columns: 1fr minmax(0, 560px) 56px; }
.lp-sec--rev .lp-sec__title { grid-column: 3; }
.lp-sec--rev .lp-sec__body { grid-column: 1; }

.lp-others { border-top: 1px solid #e6dcc9; max-width: 840px; margin: 0 auto 104px; padding: 64px var(--gutter) 0; box-sizing: content-box; }
.lp-others ul { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.lp-others li { width: calc((100% - 48px) / 3); max-width: 250px; }
.lp-others a { display: block; text-align: center; }
.lp-others__photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #f3f0ea; }
.lp-others__photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s ease; }
.lp-others a:hover img { transform: scale(1.05); }
.lp-others__name { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; line-height: 1.5; letter-spacing: 0.1em; }

/* =========================================================
   商品一覧
   ========================================================= */
.products-page__sub { display: block; margin-top: 8px; font-size: 16px; letter-spacing: 0.15em; color: var(--c-maroon); }
.products-page__body {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start;
  max-width: 1040px; margin: 0 auto; padding: 56px var(--gutter) 112px; box-sizing: content-box;
}

.pfilter { position: sticky; top: calc(var(--header-h, 80px) + 16px); }
.pfilter__box { background: #faf8f4; border: 1px solid #e6dcc9; }
.pfilter__head {
  display: block; padding: 18px 20px 14px; margin: 0 20px; border-bottom: 1px solid var(--c-maroon);
  font-size: 16px; font-weight: 600; letter-spacing: 0.1em; list-style: none; cursor: default;
}
.pfilter__head::-webkit-details-marker { display: none; }
.pfilter__form { padding: 8px 20px 20px; }
.pfilter__group { margin-top: 18px; border: 0; padding: 0; min-width: 0; }
.pfilter__group legend { margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; }
.pfilter__sub { margin: 10px 0 4px; font-size: 11px; color: var(--c-maroon); letter-spacing: 0.1em; }
.pfilter__check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; line-height: 1.4; cursor: pointer; }
.pfilter__check input { accent-color: var(--c-maroon); width: 14px; height: 14px; margin: 0; flex-shrink: 0; }
.pfilter__note { font-size: 12px; color: #777; line-height: 1.6; }
.pfilter__actions { margin-top: 20px; display: grid; gap: 10px; }
.pfilter__submit { width: 100%; height: 40px; font-size: 13px; }
.pfilter__clear { display: flex; align-items: center; justify-content: center; height: 36px; background: #ece6da; font-size: 13px; letter-spacing: 0.08em; }
.pfilter__clear:hover { background: #e2d9c7; }

.ptabs ul { display: flex; flex-wrap: wrap; gap: 6px; }
.ptabs a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; background: #f2ede3;
  font-size: 13px; letter-spacing: 0.08em; transition: background-color .2s, color .2s;
}
.ptabs a:hover, .ptabs a[aria-current="page"] { background: var(--c-maroon); color: var(--c-white); }

.pbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding-bottom: 16px; border-bottom: 1px solid #e6dcc9; }
.pbar__count { font-size: 13px; letter-spacing: 0.05em; }
.pbar__count strong { color: var(--c-maroon); font-size: 16px; }
.pbar__sort select { height: 36px; padding: 0 32px 0 12px; border: 1px solid #ccc; background: #fff; font: inherit; font-size: 13px; }

.product-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.product-card { background: var(--c-white); border: 1px solid #e6dcc9; transition: box-shadow .3s, transform .3s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(80, 50, 20, .1); transform: translateY(-2px); }
.product-card__link { display: flex; flex-direction: column; height: 100%; }
.product-card__photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #f3f0ea; }
.product-card__photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s ease; }
.product-card:hover .product-card__photo img { transform: scale(1.04); }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.product-card__cat { font-size: 11px; color: #777; letter-spacing: 0.08em; }
.product-card__title { margin-top: 6px; font-size: 16px; line-height: 1.6; font-weight: 600; letter-spacing: 0.05em; }
.product-card__size { margin-top: 6px; font-size: 12px; color: #555; letter-spacing: 0.03em; }
.product-card__text { margin-top: 4px; font-size: 12px; line-height: 1.7; color: #555; }
.product-card__price { margin-top: auto; padding-top: 12px; font-size: 15px; }
.products-page .pagination { margin-top: 48px; }

.product-empty { margin-top: 48px; padding: 48px 24px; text-align: center; background: #faf8f4; font-size: 14px; line-height: 1.9; }
.product-empty .btn { margin: 24px auto 0; width: 260px; }

/* =========================================================
   商品詳細
   ========================================================= */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1000px; margin: 0 auto; padding: 48px var(--gutter) 80px; box-sizing: content-box; }
.pd__main { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #f3f0ea; border: 1px solid #e6dcc9; }
.pd__main img { width: 100%; height: 100%; object-fit: contain; }
.pd__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd__thumb { width: 72px; height: 72px; padding: 0; border: 1px solid #e6dcc9; background: #fff; cursor: pointer; overflow: hidden; }
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumb.is-current { border: 2px solid var(--c-maroon); }

.pd__cat { display: inline-flex; padding: 3px 8px; background: #faf0f0; color: var(--c-maroon); font-size: 12px; letter-spacing: 0.08em; }
.pd__title { margin-top: 12px; font-size: 24px; line-height: 1.5; font-weight: 600; letter-spacing: 0.06em; }
.pd__code { margin-top: 8px; font-size: 12px; color: #777; }
.pd__price { margin-top: 20px; padding: 18px 20px; background: #faf8f4; border: 1px solid #e6dcc9; }
.pd__price-label { font-size: 12px; color: #666; letter-spacing: 0.08em; }
.pd__price-value { margin-top: 6px; font-size: 22px; }
.pd__price-value .price--hidden { font-size: 13px; }
.pd__spec { margin-top: 16px; padding: 8px 20px; border: 1px solid #e6dcc9; }
.pd__spec div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 8px 0; font-size: 13px; line-height: 1.6; }
.pd__spec div + div { border-top: 1px dashed #e6dcc9; }
.pd__spec dt { color: #666; }
.pd__spec dd { font-weight: 600; }
.pd__btns { display: grid; gap: 12px; margin-top: 24px; }
.pd__btn { width: 100%; height: 56px; font-size: 14px; letter-spacing: 0.06em; gap: 10px; }
.pd__btn--dark { background: #3a3a3a; color: var(--c-white); }
.pd__btn--dark:hover { background: #222; }
.pd__note { margin-top: 14px; font-size: 11px; line-height: 1.8; color: #666; }

.pd-detail { background: #f7f5f1; padding: 64px var(--gutter) 80px; }
.pd-detail__inner { max-width: 840px; margin: 0 auto; }
.pd-tabs { display: flex; border-bottom: 1px solid #d8cfbd; overflow-x: auto; scrollbar-width: none; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tabs button {
  flex: 1 0 auto; padding: 16px 18px; border: 0; border-bottom: 3px solid transparent; background: none;
  font: inherit; font-size: 14px; letter-spacing: 0.06em; color: #555; cursor: pointer; white-space: nowrap;
}
.pd-tabs button[aria-selected="true"] { border-bottom-color: var(--c-maroon); background: #fff; color: var(--c-maroon); font-weight: 600; }
.pd-panel { margin-top: 32px; padding: 40px; background: #fff; border: 1px solid #e6dcc9; }
.pd-panel__title { font-size: 20px; line-height: 1.5; font-weight: 600; letter-spacing: 0.06em; color: var(--c-maroon); }
.pd-panel__text { margin-top: 16px; font-size: 14px; line-height: 2; letter-spacing: 0.05em; }
.pd-panel__text p + p { margin-top: 1em; }
.pd-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pd-point { padding: 20px; background: #faf8f4; border: 1px solid #e6dcc9; }
.pd-point h3 { font-size: 15px; line-height: 1.6; font-weight: 600; }
.pd-point p { margin-top: 8px; font-size: 13px; line-height: 1.8; color: #444; }
.pd-table { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 13px; line-height: 1.7; }
.pd-table th, .pd-table td { padding: 14px 16px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.pd-table th { width: 32%; background: #faf8f4; font-weight: 600; }
.pd-set { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: 14px; }
.pd-set li { padding-left: 1.2em; text-indent: -1.2em; }
.pd-set li::before { content: "・"; color: var(--c-maroon); }

.pd-related { max-width: 1040px; margin: 0 auto; padding: 72px var(--gutter) 104px; box-sizing: content-box; }
.pd-related__title { text-align: center; font-size: 22px; font-weight: 600; letter-spacing: 0.1em; }
.pd-related__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.pd-related .product-card__text, .pd-related .product-card__size { display: none; }
.pd-related .product-card__title { font-size: 14px; }

/* =========================================================
   タブレット・スマホ
   ========================================================= */
@media (max-width: 1199px) {
  .lp-sec { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 300px); gap: 0 32px; }
  .lp-sec--rev { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) 48px; }
  .lp-deco--circle { display: none; }
}
@media (max-width: 1023px) {
  .products-page__body { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
  .pfilter { position: static; }
  .pfilter__head { cursor: pointer; position: relative; margin: 0; padding: 16px 20px; border-bottom: 0; }
  .pfilter__head::after { content: "＋"; position: absolute; right: 20px; color: var(--c-maroon); }
  .pfilter__box[open] .pfilter__head::after { content: "－"; }
  .pfilter__box[open] .pfilter__head { border-bottom: 1px solid var(--c-maroon); margin: 0 20px; padding: 16px 0; }
  .pfilter__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
  .pfilter__actions { grid-column: 1 / -1; }
  .pd { grid-template-columns: 1fr; gap: 32px; }
  .pd-related__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .lp-head { height: auto; padding-top: 170px; }
  .lp-head::after { display: none; }
  .lp-head__bg { height: 170px; bottom: auto; object-position: right center; }
  .lp-head__cloud { top: 140px; width: 260px; }
  .lp-head__inner { height: auto; padding: 24px var(--gutter) 0; }
  .lp-head__title { font-size: 22px; }
  .lp-head__lead { margin-top: 12px; font-size: 13px; line-height: 1.9; font-weight: 500; }
  .lp-head__lead br { display: none; }
  .lp .breadcrumb { padding-top: 16px; }
  .lp-intro { padding-top: 40px; }
  .lp-intro__kiku { width: 44px; height: 44px; margin-bottom: 20px; }
  .lp-intro p { font-size: 13px; text-align: left; }
  .lp-intro p br { display: none; }
  .lp-sections { padding: 24px var(--gutter) 72px; }
  .lp-deco--wave1, .lp-deco--wave2 { width: 200px; }
  .lp-deco--wave1 { right: -40px; top: 0; }
  .lp-sec, .lp-sec--rev { grid-template-columns: 1fr 36px; gap: 0 12px; margin-top: 56px; align-items: start; }
  .lp-sec__title, .lp-sec--rev .lp-sec__title { grid-column: 2; grid-row: 1; margin-top: 0; font-size: 20px; }
  .lp-sec__photo, .lp-sec--rev .lp-sec__photo { grid-column: 1; grid-row: 1; }
  .lp-sec__body, .lp-sec--rev .lp-sec__body { grid-column: 1 / -1; grid-row: 2; padding: 20px 0 0; }
  .lp-sec__text { font-size: 13px; }
  .lp-sec__btn { max-width: none; }
  .lp-others { margin-bottom: 72px; padding-top: 48px; }
  .lp-others ul { gap: 12px; }
  .lp-others li { width: calc((100% - 24px) / 3); }
  .lp-others__name { font-size: 12px; gap: 4px; }
  .lp-others__name svg { display: none; }

  .products-page__sub { font-size: 13px; }
  .products-page__body { padding: 24px var(--gutter) 72px; }
  .pfilter__form { grid-template-columns: 1fr; }
  .ptabs ul { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .ptabs ul::-webkit-scrollbar { display: none; }
  .ptabs a { white-space: nowrap; height: 34px; padding: 0 12px; font-size: 12px; }
  .pbar { flex-wrap: wrap; }
  .product-list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card__body { padding: 12px 12px 14px; }
  .product-card__title { font-size: 13px; }
  .product-card__text { display: none; }
  .product-card__size { font-size: 11px; }
  .product-card__price { font-size: 13px; }
  .price--hidden { font-size: 11px; }

  .pd { padding: 24px var(--gutter) 56px; }
  .pd__title { font-size: 19px; }
  .pd__thumb { width: 60px; height: 60px; }
  .pd__btn { height: 52px; font-size: 13px; }
  .pd-detail { padding: 40px var(--gutter) 56px; }
  .pd-tabs { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .pd-tabs button { padding: 12px 12px; font-size: 12px; }
  .pd-panel { margin-top: 20px; padding: 24px 18px; }
  .pd-panel__title { font-size: 17px; }
  .pd-points { grid-template-columns: 1fr; }
  .pd-table th { width: 38%; }
  .pd-table th, .pd-table td { padding: 10px; font-size: 12px; }
  .pd-set { grid-template-columns: 1fr; }
  .pd-related { padding: 48px var(--gutter) 72px; }
  .pd-related__title { font-size: 17px; }
  .pd-related__list { gap: 12px; }
}

/* さらに細かい種類（段飾り → 七段飾り など） */
.pfilter__check--sub { padding-left: 22px; font-size: 13px; }

/* 長いカテゴリー名（名前入り旗（女の子向けデザイン）など）のボタンは折り返す */
.lp-sec__btn { white-space: normal; height: auto; min-height: 56px; padding-top: 12px; padding-bottom: 12px; line-height: 1.5; text-align: center; }
.lp-sec__btn--long { max-width: 340px; font-size: 14px; letter-spacing: 0.04em; }
.lp-sec__btn--long span { white-space: nowrap; }
@media (max-width: 767px) { .lp-sec__btn--long { max-width: none; } }
