/* ============================================================
   商品一覧専用（products.html だけが読む）
   白・銀・ガラス。トップ（top.css）と同じ世界観。完成図＝便BT（2026-11-29）
   共通部品（ヘッダー・カート・告知バー・フッター）は style.css 側のまま
   ============================================================ */
.list {
  --paper: #fbfbf9;
  --glass: #eef1f1;
  --ink: #1c1c1b;
  --sub: #5f5f5c;
  --mute: #737370; /* 完成図より濃い。小さい字が読めるように */
  --line: #e3e3df;
  --en: "Cormorant Garamond", serif;
  --jp: "Shippori Mincho B1", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  display: block;
  padding-top: calc(72px + var(--promo-h, 0px));
  background: var(--paper);
  color: var(--ink);
  letter-spacing: .04em;
  font-variant-numeric: lining-nums;
}
.list img { display: block; width: 100%; height: auto; }
.list ol { list-style: none; margin: 0; padding: 0; }
.list-jp { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.list-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: clamp(20px, 7vw, 110px);
  padding-right: clamp(20px, 7vw, 110px);
}
.list-eyebrow { font-family: var(--en); font-size: 13px; letter-spacing: .36em; color: var(--mute); text-transform: uppercase; }
.list-sec { padding-top: clamp(80px, 9vw, 130px); }
.list-h2 { font-family: var(--jp); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.8; letter-spacing: .14em; margin-top: 12px; }
.list-sub { font-size: 14px; color: var(--sub); margin-top: 2px; }
.list-more { font-size: 13px; letter-spacing: .24em; border-bottom: 1px solid currentColor; padding-bottom: 4px; white-space: nowrap; }

/* ---- ヒーロー ---- */
.list-hero { position: relative; display: flex; align-items: flex-end; height: clamp(300px, 34vw, 420px); overflow: hidden; }
.list .list-hero > img { position: absolute; inset: 0; height: 100%; object-fit: cover; transform: scale(1.08); animation: list-zoom 3.2s var(--ease) forwards; }
@keyframes list-zoom { to { transform: scale(1); } }
.list-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251, 251, 249, .94) 0%, rgba(251, 251, 249, .7) 42%, rgba(251, 251, 249, .25) 100%); }
.list-hero__tx { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(36px, 4vw, 56px); }
.list-hero .list-eyebrow { color: var(--sub); }
.list-hero h1 { font-family: var(--jp); font-weight: 400; font-size: clamp(25px, 2.8vw, 38px); line-height: 1.7; letter-spacing: .14em; margin-top: 14px; }

/* ---- まずは、この1本から ---- */
.list-first { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(32px, 6vw, 100px); margin-top: 44px; }
.list-first__ph { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: #fff; overflow: hidden; }
.list .list-first__ph img { width: 74%; mix-blend-mode: multiply; }
.list-first__ph::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 26%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent); transform: skewX(-14deg); animation: list-sheen 7s var(--ease) 1.5s infinite; pointer-events: none; }
@keyframes list-sheen { 0% { left: -40%; } 35%, 100% { left: 130%; } }
.list-first__name { font-family: var(--en); font-weight: 300; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: .01em; margin: 0 0 10px; }
.list-first__name i { font-style: italic; }
.list-first__namejp { font-family: var(--jp); font-size: 13px; letter-spacing: .2em; color: var(--sub); }
.list-first__copy { font-family: var(--jp); font-size: clamp(16px, 1.4vw, 19px); letter-spacing: .12em; margin: 28px 0; }
.list-first__row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.list-first__price { font-family: var(--en); font-size: 26px; white-space: nowrap; }

/* ---- カートに入れるボタン ---- */
.list-add { width: 100%; min-height: 44px; margin-top: 12px; padding: 0 8px; background: none; border: 1px solid var(--line); border-radius: 0; font: inherit; font-size: 13px; letter-spacing: .18em; color: var(--sub); white-space: nowrap; cursor: pointer; transition: background .4s, color .4s, border-color .4s; }
.list-add:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.list-add--main { width: auto; min-height: 48px; margin: 0; padding: 0 28px; background: var(--ink); border-color: var(--ink); color: #fff; }
.list-add:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* ---- なりたい肌から選ぶ ---- */
.list-want { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: 44px; }
.list-want__card { background: var(--glass); padding: 30px clamp(18px, 2vw, 30px) 26px; }
.list-want h3 { font-family: var(--jp); font-weight: 400; font-size: 17px; letter-spacing: .14em; }
.list-want p { font-size: 13px; color: var(--sub); margin-top: 2px; }
.list-want__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.list-want__items a { display: block; background: #fff; aspect-ratio: 1; overflow: hidden; }

/* ---- 写真の共通：白地に乗せ、マウスを乗せると少し寄る ---- */
.list .list-want__items img,
.list .list-series__ph img,
.list .list-order__ph img,
.list .list-card__ph img { height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 1.2s var(--ease); }
.list-want__items a:hover img,
.list-series__card:hover .list-series__ph img,
.list .list-order__ph:hover img,
.list-card:hover .list-card__ph img { transform: scale(1.04); }

/* ---- シリーズで選ぶ ---- */
.list-series { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(30px, 3.4vw, 48px) clamp(14px, 2vw, 28px); margin-top: 44px; }
.list-series__card { display: flex; flex-direction: column; }
.list-series__ph { display: block; background: #fff; aspect-ratio: 1; overflow: hidden; }
.list-series h3 { font-family: var(--en), var(--jp); font-weight: 400; font-size: 19px; line-height: 1.4; letter-spacing: .08em; margin-top: 16px; }
.list-series p { font-family: var(--jp); font-size: 13px; line-height: 1.8; letter-spacing: .08em; margin-top: 6px; }
.list-series p b { display: block; font-family: var(--font-sans); font-weight: 300; font-size: 13px; letter-spacing: .16em; color: var(--mute); }
.list-series__go { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 14px; font-size: 13px; letter-spacing: .16em; color: var(--sub); }
.list-series__go a { padding: 6px 0 3px; border-bottom: 1px solid currentColor; letter-spacing: .24em; color: var(--ink); }

/* ---- 毎日の、使う順番 ---- */
.list-order { position: relative; margin-top: 44px; }
.list .list-order ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.list-order li { text-align: center; }
.list-order__ph { display: block; background: #fff; aspect-ratio: 1; overflow: hidden; }
.list-order em { display: block; margin-top: 12px; font-family: var(--en); font-style: italic; font-size: 22px; color: var(--mute); }
.list-order li span { display: block; font-family: var(--jp); font-size: 13px; letter-spacing: .12em; }
.list-order__sample { position: absolute; right: 0; top: -34px; padding: 0 8px; border: 1px solid var(--line); font-size: 13px; letter-spacing: .1em; color: var(--mute); }

/* ---- すべての商品 ---- */
.list-all { scroll-margin-top: calc(72px + var(--promo-h, 0px)); }
.list-all.list-sec { padding-top: clamp(80px, 9vw, 130px); }
.list-cats { position: sticky; top: calc(72px + var(--promo-h, 0px)); z-index: 10; margin-top: 36px; background: var(--paper); border-bottom: 1px solid var(--line); }
.list-cats__in { display: flex; gap: 0 22px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.list-cats__in::-webkit-scrollbar { display: none; }
/* main.js の絞り込みが使う .category-tab を、下線だけの見た目にする */
.list-cats .category-tab { flex: none; padding: 20px 0 16px; background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0; font-size: 13px; letter-spacing: .08em; color: var(--sub); white-space: nowrap; cursor: pointer; transition: color .4s, border-color .4s; }
.list-cats .category-tab:hover { background: none; color: var(--ink); }
.list-cats .category-tab.active { background: none; border-bottom-color: var(--ink); color: var(--ink); }
.list-cats .category-tab:focus-visible { outline: 1px solid var(--ink); outline-offset: -2px; }
.list-shop { padding-top: 28px; padding-bottom: clamp(90px, 10vw, 150px); }
.list-count { font-family: var(--en); font-size: 14px; letter-spacing: .2em; color: var(--mute); }
/* minmax(0,…)＝中身が長くても列を押し広げない（769〜850px で右が切れた直し：T-08690） */
.list-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(14px, 2vw, 28px); margin-top: 22px; }
.list-card { display: flex; flex-direction: column; animation: list-up .9s var(--ease) both; }
.list-card[hidden] { display: none; }
@keyframes list-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.list-card__ph { display: block; background: #fff; aspect-ratio: 1; overflow: hidden; }
.list-card__name { font-family: var(--jp); font-size: 13px; line-height: 1.7; letter-spacing: .1em; margin-top: 16px; }
.list-card__vol { font-size: 13px; letter-spacing: .1em; color: var(--mute); margin-top: 2px; }
.list-card__price { font-family: var(--en); font-size: 17px; margin-top: 4px; }
.list-card__price small { font-family: var(--jp); font-size: 13px; letter-spacing: .1em; color: var(--mute); margin-left: 4px; }
/* 名前の行数が違っても、ボタンの高さをそろえる */
.list-card .list-add { margin-top: auto; }
.list-card__price { margin-bottom: 12px; }

/* ---- LINE ---- */
.list-line { background: var(--glass); padding: clamp(80px, 9vw, 130px) 0; text-align: center; }
.list-line .list-eyebrow { color: var(--sub); }
.list-line h2 { font-family: var(--jp); font-weight: 400; font-size: clamp(21px, 2vw, 28px); line-height: 1.8; letter-spacing: .14em; margin-top: 16px; }
.list-line p.list-jp { font-size: 14px; color: var(--sub); margin-top: 14px; }
.list-btn { display: inline-flex; align-items: center; gap: 18px; min-height: 54px; margin-top: 36px; padding: 0 34px; background: var(--ink); color: #fff; font-size: 13px; letter-spacing: .24em; white-space: nowrap; }
.list-btn::after { content: ""; width: 26px; height: 1px; background: #fff; }
.list-btn, .list-more { transition: opacity .3s; }
.list-btn:hover, .list-more:hover { opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  .list .list-hero > img { animation: none; transform: none; }
  .list-first__ph::after { display: none; }
  .list-card { animation: none; }
  .list img, .list-add { transition: none !important; }
}

/* PC は横に送る手がかりが無くマウスで届かないので、入りきらない時は2段に折り返す */
@media (min-width: 821px) {
  .list-cats__in { flex-wrap: wrap; overflow: visible; }
}

/* ---- タブレット・スマホ ---- */
@media (max-width: 1023px) {
  .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .list-hero { height: 280px; }
  .list-hero::after { background: linear-gradient(0deg, rgba(251, 251, 249, .95) 0%, rgba(251, 251, 249, .7) 50%, rgba(251, 251, 249, .25) 100%); }
  .list-first, .list-want { grid-template-columns: minmax(0, 1fr); }
  .list-series { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .list-series h3 { font-size: 17px; }
  .list .list-order ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .list-order__sample { top: -30px; }
  .list-grid { gap: 32px 12px; }
  .list-card__name { letter-spacing: 0; }
  .list-cats__in { gap: 0 20px; }
  .list-add { letter-spacing: .08em; }
  .list-add--main { letter-spacing: .18em; }
  .list-btn { padding: 0 26px; letter-spacing: .18em; }
}
