:root {
  --gp-ink: #1b1710;
  --gp-sub: #8a8375;
  --gp-faint: #b3ab99;
  --gp-line: #e8e2d4;
  --gp-paper: #faf8f2;
  --gp-card: #fffefb;
  --gp-gold: #b08a3c;
  --gp-gold-deep: #8a6a2a;
  --gp-gold-grad: linear-gradient(135deg, #c9a24b 0%, #a97e2f 60%, #8a6a2a 100%);
  --gp-serif: "Cormorant Garamond", "Times New Roman", serif;
  --gp-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", Meiryo, sans-serif;
  --gp-ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--gp-ink);
  background: linear-gradient(180deg, #fffdf6 0%, var(--gp-paper) 380px);
  font-family: var(--gp-sans);
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ===== ヘッダー(単独表示時のみ / embedでは非表示) ===== */
.gp-header { padding: 46px 16px 6px; text-align: center; }
.gp-eyebrow {
  display: block; font-family: var(--gp-serif); font-size: 13px; font-weight: 600;
  letter-spacing: .42em; text-indent: .42em; color: var(--gp-gold); text-transform: uppercase;
}
.gp-header h1 {
  margin: 10px 0 0; font-size: 26px; font-weight: 700; letter-spacing: .14em; text-indent: .14em;
}
.gp-header h1::after {
  content: ""; display: block; width: 54px; height: 1px;
  background: var(--gp-gold); margin: 18px auto 0;
}
.gp-sub { margin: 14px 0 0; color: var(--gp-sub); font-size: 12.5px; letter-spacing: .08em; }
/* 見出し・リード文は意味の区切り(span)でのみ折り返す(日本語の中途半端な改行防止) */
.gp-header h1 span, .gp-sub span { display: inline-block; }
.gp-main { max-width: 1120px; margin: 0 auto; padding: 26px 20px 56px; }
.gp-footer {
  max-width: 1120px; margin: 0 auto; padding: 26px 20px 40px;
  color: var(--gp-faint); font-size: 11.5px; letter-spacing: .05em; text-align: center;
  border-top: 1px solid var(--gp-line);
}

/* embedモード(iframe内): ヘッダ・フッタを隠して本体のみ */
html.embed .gp-header, html.embed .gp-footer { display: none; }
html.embed body { background: transparent; }
html.embed .gp-main { padding-top: 6px; }

/* ===== フィルタ ===== */
.gp-filters {
  display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end;
  background: var(--gp-card);
  border: 1px solid var(--gp-line);
  border-top: 2px solid var(--gp-gold);
  border-radius: 2px;
  padding: 20px 22px 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 0 rgba(27,23,16,.02), 0 14px 34px -22px rgba(27,23,16,.18);
}
.gp-field { display: flex; flex-direction: column; gap: 7px; min-width: 158px; flex: 1 1 158px; }
.gp-field > span {
  font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gp-faint);
}
.gp-field select {
  width: 100%; padding: 9px 30px 9px 10px; font-size: 13.5px; font-family: inherit;
  color: var(--gp-ink); border: 0; border-bottom: 1px solid var(--gp-line);
  border-radius: 0; background: transparent; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%23b08a3c' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center;
  transition: border-color .25s var(--gp-ease);
}
.gp-field select:hover, .gp-field select:focus { border-bottom-color: var(--gp-gold); outline: none; }
.gp-field select:disabled { color: var(--gp-faint); cursor: default; border-bottom-color: var(--gp-line); }
.gp-field-chips { flex: 2 1 250px; }
.gp-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.gp-chip {
  padding: 6px 15px; font-size: 12px; font-family: inherit; letter-spacing: .05em; cursor: pointer;
  border: 1px solid var(--gp-line); border-radius: 999px;
  background: transparent; color: var(--gp-sub);
  transition: all .25s var(--gp-ease);
}
.gp-chip:hover { border-color: var(--gp-gold); color: var(--gp-gold-deep); }
.gp-chip.active {
  background: var(--gp-gold-grad); border-color: transparent; color: #fff;
  box-shadow: 0 5px 14px -6px rgba(138,106,42,.55);
}
.gp-reset {
  padding: 8px 16px; font-size: 11.5px; font-family: inherit; letter-spacing: .1em; cursor: pointer;
  border: 0; background: transparent; color: var(--gp-faint);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gp-line);
  transition: color .25s;
}
.gp-reset:hover { color: var(--gp-gold-deep); text-decoration-color: var(--gp-gold); }

.gp-count {
  display: flex; align-items: center; gap: 14px;
  margin: 4px 2px 18px; color: var(--gp-sub); font-size: 12.5px; letter-spacing: .1em;
}
.gp-count::after { content: ""; flex: 1; height: 1px; background: var(--gp-line); }

/* ===== カードグリッド ===== */
.gp-grid {
  display: grid; gap: 22px 18px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
@keyframes gp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.gp-card {
  display: block; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--gp-card);
  border: 1px solid var(--gp-line);
  border-radius: 2px;
  animation: gp-rise .55s var(--gp-ease) both;
  transition: box-shadow .4s var(--gp-ease), transform .4s var(--gp-ease), border-color .4s;
}
.gp-card:nth-child(2) { animation-delay: .04s; }
.gp-card:nth-child(3) { animation-delay: .08s; }
.gp-card:nth-child(4) { animation-delay: .12s; }
.gp-card:nth-child(5) { animation-delay: .16s; }
.gp-card:hover {
  transform: translateY(-4px);
  border-color: #ddd3bd;
  box-shadow: 0 22px 44px -20px rgba(27,23,16,.28);
}
.gp-card .gp-thumb-wrap, .gp-card img.gp-thumb { display: block; }
.gp-card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  background: #efece3;
  transition: transform .8s var(--gp-ease), filter .8s var(--gp-ease);
}
.gp-card:hover img { transform: scale(1.045); filter: saturate(1.06); }
.gp-thumb-missing {
  width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  background: #f1eee5; color: var(--gp-faint);
  font-family: var(--gp-serif); font-size: 12px; letter-spacing: .3em; text-indent: .3em;
  text-transform: uppercase;
}
.gp-card-body { padding: 12px 14px 13px; border-top: 1px solid var(--gp-line); }
.gp-card-model {
  font-weight: 700; font-size: 13.5px; letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gp-card-series {
  color: var(--gp-gold-deep); font-size: 11.5px; letter-spacing: .06em; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gp-card-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 9px;
}
.gp-badge {
  font-family: var(--gp-serif); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  background: none; padding: 0; border-radius: 0; color: var(--gp-sub);
  position: relative; padding-left: 12px;
}
.gp-badge::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 999px; background: currentColor; opacity: .85;
}
.gp-badge-refinad { color: #8a6a2a; }
.gp-badge-sandii  { color: #a8794e; }
.gp-badge-ixus    { color: #46597a; }
.gp-badge-dotty   { color: #5c6068; }
.gp-date { color: var(--gp-faint); font-size: 10.5px; letter-spacing: .06em; }

.gp-more-wrap { text-align: center; margin-top: 34px; }
.gp-more {
  padding: 13px 52px; font-size: 12px; font-family: inherit; font-weight: 700;
  letter-spacing: .3em; text-indent: .3em; cursor: pointer;
  border: 1px solid var(--gp-gold); border-radius: 999px;
  background: transparent; color: var(--gp-gold-deep);
  transition: all .35s var(--gp-ease);
}
.gp-more:hover {
  background: var(--gp-gold-grad); border-color: transparent; color: #fff;
  box-shadow: 0 10px 24px -10px rgba(138,106,42,.6);
}

@media (max-width: 480px) {
  .gp-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .gp-field { min-width: 46%; }
  .gp-filters { padding: 14px 14px 12px; gap: 10px 12px; }
  /* スマホ: 見出しの字間・サイズを詰めて不自然な折り返しを防ぐ */
  .gp-header { padding: 34px 14px 4px; }
  .gp-header h1 { font-size: 20px; letter-spacing: .1em; text-indent: .1em; }
  .gp-sub { font-size: 11.5px; letter-spacing: .05em; }
}

/* ===== ライトボックス(詳細表示) ===== */
#gp-lb { display: none; }
#gp-lb.open { display: block; }
.gp-lb-backdrop {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(20, 17, 11, .62);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.gp-lb-wrap { position: fixed; inset: 0; z-index: 901; display: flex; align-items: center;
  justify-content: center; padding: 16px; pointer-events: none; }
@keyframes gp-lb-in {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.gp-lb-panel {
  pointer-events: auto; position: relative; display: grid; grid-template-columns: 1.3fr 1fr;
  width: 100%; max-width: 960px; max-height: 88vh; overflow: hidden;
  background: var(--gp-card); border-radius: 4px;
  box-shadow: 0 30px 90px -20px rgba(15, 12, 6, .55);
  animation: gp-lb-in .4s var(--gp-ease) both;
}
.gp-lb-close {
  position: absolute; top: 10px; right: 10px; z-index: 5; width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  background: rgba(15,12,6,.45); color: #fff;
  font-size: 19px; line-height: 1; cursor: pointer;
  transition: background .25s, transform .25s;
}
.gp-lb-close:hover { background: rgba(15,12,6,.75); transform: rotate(90deg); }
/* min-width:0 が無いとグリッド子が min-content(写真の固有幅)までしか縮まず、
   横長写真でパネル幅を突き破って右矢印が画面外に出る(スマホで顕在化) */
.gp-lb-media { position: relative; background: #14110b; display: flex; flex-direction: column; min-height: 300px; min-width: 0; }
.gp-lb-info { min-width: 0; }
.gp-lb-img { width: 100%; flex: 1; object-fit: contain; min-height: 0; max-height: 70vh; }
.gp-lb-prev, .gp-lb-next {
  position: absolute; top: 42%; width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: rgba(250, 248, 242, .92); color: var(--gp-ink);
  font-size: 21px; cursor: pointer; z-index: 4;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  transition: background .25s, transform .25s;
}
.gp-lb-prev:hover, .gp-lb-next:hover { background: #fff; transform: scale(1.08); }
.gp-lb-prev { left: 12px; } .gp-lb-next { right: 12px; }
.gp-lb-strip { display: flex; gap: 7px; padding: 10px; overflow-x: auto; background: #1d1911; }
.gp-lb-strip img {
  width: 66px; height: 50px; object-fit: cover; border-radius: 2px; cursor: pointer;
  opacity: .45; border: 1px solid transparent;
  transition: opacity .25s, border-color .25s;
}
.gp-lb-strip img:hover { opacity: .8; }
.gp-lb-strip img.active { opacity: 1; border-color: var(--gp-gold); }
.gp-lb-info { padding: 30px 26px 22px; overflow-y: auto; }
.gp-lb-title { font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.gp-lb-series {
  color: var(--gp-gold-deep); font-size: 12.5px; letter-spacing: .08em; margin: 3px 0 0;
}
.gp-lb-series::after {
  content: ""; display: block; width: 34px; height: 1px; background: var(--gp-gold);
  margin: 14px 0 16px;
}
.gp-lb-spec { width: 100%; border-collapse: collapse; font-size: 13px; }
.gp-lb-spec th {
  text-align: left; white-space: nowrap; color: var(--gp-faint); font-weight: 600;
  font-size: 11px; letter-spacing: .12em;
  padding: 7px 14px 7px 0; vertical-align: top; border-bottom: 1px solid var(--gp-line);
}
.gp-lb-spec td { padding: 7px 0; border-bottom: 1px solid var(--gp-line); letter-spacing: .02em; }
.gp-lb-review {
  margin: 16px 0 0; padding: 12px 14px;
  background: #f7f3e8; border-left: 2px solid var(--gp-gold);
  font-size: 12.5px; line-height: 1.9; color: #55503f; border-radius: 0 4px 4px 0;
}
.gp-lb-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.gp-lb-buy {
  display: block; text-align: center; padding: 13px 10px; border-radius: 2px;
  background: var(--gp-gold-grad); color: #fff; font-weight: 700; font-size: 13.5px;
  letter-spacing: .18em; text-indent: .18em; text-decoration: none;
  box-shadow: 0 10px 22px -10px rgba(138,106,42,.65);
  transition: filter .25s, transform .25s var(--gp-ease);
}
.gp-lb-buy:hover { filter: brightness(1.09); transform: translateY(-1px); }
.gp-lb-buy.is-soldout {
  background: var(--gp-faint, #b3ab99); box-shadow: none; cursor: default; pointer-events: none;
}
.gp-lb-buy.is-soldout:hover { filter: none; transform: none; }
.gp-lb-src {
  display: block; text-align: center; font-size: 11.5px; letter-spacing: .06em;
  color: var(--gp-faint);
  text-underline-offset: 3px;
}
.gp-lb-src:hover { color: var(--gp-gold-deep); }
@media (max-width: 700px) {
  .gp-lb-panel { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .gp-lb-img { max-height: 46vh; }
  .gp-lb-info { padding: 20px 18px 16px; }
}
/* embedモード(iframe内): クリック位置にパネルを出す */
html.embed .gp-lb-backdrop { position: absolute; inset: auto; top: 0; left: 0; right: 0; }
html.embed .gp-lb-wrap { position: absolute; inset: auto; left: 0; right: 0; align-items: flex-start; }
html.embed .gp-lb-panel { max-height: 640px; }
html.embed .gp-lb-img { max-height: 380px; }
