.ddc-classic{
  --paper: #f2e8d3;
  --ink: #26231c;
  --green: #1e4638;
  --green-light: #3d6a56;
  --green-pale: #e4ece5;
  --gold: #a97c2f;
  --gold-bright: #c99a3d;
  --maroon: #7a2e2e;
  --rule: rgba(38,35,28,0.35);
  --font-jp: 'Shippori Mincho', serif;
  --font-en: 'Cinzel', serif;
  --font-body: 'Noto Sans JP', sans-serif;

  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
.ddc-classic *{ box-sizing: border-box; }

.ddc-wrap{ max-width: 960px; margin: 0 auto; padding: 0 24px 100px; }

.ddc-guilloche{ display:block; width:100%; height:14px; }
.ddc-guilloche path{ fill:none; stroke:var(--green); stroke-width:1; opacity:0.55; }

.ddc-hero{ padding: 56px 0 30px; text-align:center; }
.ddc-hero .ddc-eyebrow{
  font-family: var(--font-en);
  letter-spacing: 0.3em;
  font-size: 11px;
  color: var(--gold);
  text-transform:uppercase;
}
.ddc-hero h1{
  font-family: var(--font-jp);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight:700;
  color: var(--green);
  margin: 14px 0 10px;
  letter-spacing: 0.03em;
}
.ddc-hero p.ddc-lead{
  max-width: 560px;
  margin: 0 auto;
  color: rgba(38,35,28,0.78);
  font-size: 14.5px;
}

/* filter bar */
.ddc-filterbar{
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--rule);
  margin-top: 20px;
}
.ddc-filter-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ddc-filter-row input[type="text"],
.ddc-filter-row select{
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(38,35,28,0.3);
  border-radius: 3px;
  padding: 9px 12px;
}
.ddc-filter-row input[type="text"]{ flex: 1 1 220px; }
.ddc-filter-row select{ flex: 0 1 150px; }
.ddc-count{
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(38,35,28,0.6);
}
.ddc-count b{ color: var(--green); font-weight:700; font-family: "Noto Sans JP", sans-serif;
  font-variant-numeric: tabular-nums; }

/* ledger */
.ddc-ledger-wrap{
  margin-top: 22px;
  background: var(--green);
  border-radius: 4px;
  padding: 8px 22px 10px;
}
.ddc-ledger-row{
  display:grid;
  grid-template-columns: 60px 62px 90px 1fr 80px 100px 110px;
  gap: 14px;
  align-items:center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(242,232,211,0.18);
  font-size: 13px;
}
.ddc-ledger-row:last-child{ border-bottom:none; }
.ddc-ledger-row .yr{ font-family:var(--font-en); color: var(--gold-bright); font-weight:700; }
.ddc-ledger-row .svc{
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--green);
  background: var(--gold-bright);
  border-radius: 2px;
  padding: 3px 6px;
  text-align:center;
  white-space:nowrap;
}
.ddc-ledger-row .svc.pmg{ background: #cfe0d6; }
.ddc-ledger-row .grade{
  font-family: var(--font-en);
  font-weight:700;
  color:#f7efd9;
  white-space:nowrap;
}
.ddc-ledger-row .grade small{
  font-family: var(--font-body);
  font-weight:400;
  color: rgba(242,232,211,0.6);
  margin-left:4px;
}
.ddc-ledger-row .idcell{ color: rgba(242,232,211,0.92); }
.ddc-ledger-row .idcell .bill-name{
  font-weight: 600;
  color: #f7efd9;
}
.ddc-ledger-row .idcell .bill-sub{
  color: rgba(242,232,211,0.65);
  font-size: 12px;
  margin-top: 2px;
}
.ddc-ledger-row .idcell .bill-ids{
  color: rgba(242,232,211,0.45);
  font-size: 10.5px;
  margin-top: 2px;
  font-family: var(--font-en);
  letter-spacing: 0.02em;
}
.ddc-ledger-row .venue{
  font-size: 12px;
  color: rgba(242,232,211,0.7);
  white-space: nowrap;
}
.ddc-ledger-row .venue a{
  color: var(--gold-bright);
  text-decoration:none;
  border-bottom: 1px dotted rgba(242,232,211,0.5);
}
.ddc-ledger-row .venue a:hover{ color:#fff; }
.ddc-ledger-row .price{
  font-family: var(--font-en);
  font-weight:700;
  font-size:14.5px;
  text-align:right;
  color:#f7efd9;
  white-space:nowrap;
}
.ddc-ledger-row .price .jpy{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: rgba(242,232,211,0.55);
  margin-top: 2px;
  white-space: nowrap;
}
.ddc-fx-note{
  margin-top: 8px;
  font-size: 11px;
  color: rgba(38,35,28,0.5);
}
.ddc-empty{
  color: rgba(242,232,211,0.7);
  text-align:center;
  padding: 40px 0;
  font-size: 13px;
}

.ddc-note{
  margin-top: 22px;
  font-size: 12px;
  color: rgba(38,35,28,0.55);
  line-height:1.8;
}

footer.ddc-footer{
  margin-top: 60px;
  text-align:center;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(38,35,28,0.45);
}

@media (max-width: 720px){
  .ddc-ledger-row{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "yr svc"
      "idcell thumb"
      "grade venue"
      "price price";
    row-gap: 6px;
  }
  .ddc-ledger-row .yr{ grid-area: yr; }
  .ddc-ledger-row .svc{ grid-area: svc; justify-self: end; }
  .ddc-ledger-row .idcell{ grid-area: idcell; }
  .ddc-ledger-row .thumb{ grid-area: thumb; justify-self: end; }
  .ddc-ledger-row .grade{ grid-area: grade; }
  .ddc-ledger-row .venue{ grid-area: venue; justify-self:end; }
  .ddc-ledger-row .price{ grid-area: price; text-align:left; padding-top:4px; border-top: 1px dashed rgba(242,232,211,0.2); }
  .ddc-filter-row select{ flex: 1 1 140px; }
}


/* 「もっと見る」ボタン */
.ddc-load-more{
  display:block;
  width:100%;
  margin-top: 8px;
  padding: 12px 0;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #f7efd9;
  background: transparent;
  border: 1px solid rgba(242,232,211,0.4);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ddc-load-more:hover{
  background: rgba(242,232,211,0.12);
}
.ddc-ledger-row .thumb{
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  max-height: 80px !important;
  border-radius: 4px;
  overflow: hidden !important;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  align-self: center;
}
.ddc-ledger-row .thumb img{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
}

/* ===== 単品/セット タブ ===== */
.ddc-tabs{
  display:flex;
  gap: 4px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--rule);
}
.ddc-classic .ddc-tab{
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 0 -1px;
  padding: 8px 18px 9px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: rgba(38,35,28,0.45);
  cursor: pointer;
}
.ddc-classic .ddc-tab:hover{ color: var(--green); }
.ddc-classic .ddc-tab.is-active{
  color: var(--green);
  border-bottom-color: var(--gold) !important;
}
.ddc-tab .n{
  display:inline-block;
  margin-left: 8px;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.ddc-tab.has-hit .n{
  color: #fff;
  background: var(--gold-bright);
  border-radius: 9px;
  padding: 0 7px;
}

/* ===== セット行 ===== */
.ddc-ledger-row.ddc-set-row{
  --st: 72px;   /* セット画像1枚の大きさ */
  grid-template-columns: 1fr calc(var(--st) * 4 + 18px) 100px 110px;
  align-items: center;
}
.ddc-set-row .set-head{
  display:flex;
  align-items:center;
  gap: 6px;
  margin-bottom: 4px;
}
.ddc-set-row .set-qty{
  font-weight: 700;
  color: #f7efd9;
  font-size: 12.5px;
  margin-right: 2px;
}
.ddc-set-row .svc-mini{
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--green);
  background: var(--gold-bright);
  border-radius: 2px;
  padding: 3px 5px;
}
.ddc-set-row .svc-mini.pmg{ background: #cfe0d6; }

.ddc-classic .ddc-set-row ul.set-notes{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ddc-classic .ddc-set-row li.set-note{
  display: grid;
  grid-template-columns: 38px 32px 58px 1fr;
  gap: 4px;
  margin: 0 !important;
  padding: 0 4px !important;
  list-style: none !important;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(242,232,211,0.85);
  border-radius: 2px;
  white-space: nowrap;
}
.ddc-classic .ddc-set-row li.set-note::before,
.ddc-classic .ddc-set-row li.set-note::marker{ content: none; display:none; }
.ddc-set-row .set-note .n-yr{ font-family: var(--font-en); color: var(--gold-bright); font-weight: 700; }
.ddc-set-row .set-note .n-den{ font-family: var(--font-en); }
.ddc-set-row .set-note .n-id{ font-family: var(--font-en); letter-spacing: 0.02em; color: rgba(242,232,211,0.7); }
.ddc-set-row .set-note .n-gr{ font-family: var(--font-en); font-weight: 700; color: #f7efd9; }
.ddc-set-row .set-note .n-gr small{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10.5px;
  color: rgba(242,232,211,0.6);
  margin-left: 2px;
}
.ddc-classic .ddc-set-row li.set-note.hit{
  background: rgba(201,154,61,0.28);
  color: #fff;
}
.ddc-set-row .set-note.hit .n-id{ color: #fff; }

/* 画像(最大4枠・固定幅) */
.ddc-set-row .set-thumbs{
  display: flex;
  gap: 6px;
  width: calc(var(--st) * 4 + 18px);
}
.ddc-classic .ddc-set-row .set-thumb{
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: var(--st) !important;
  height: var(--st) !important;
  border-radius: 4px;
  overflow: hidden !important;
  background: rgba(255,255,255,0.08);
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 0 0 1px rgba(242,232,211,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ddc-classic .ddc-set-row .set-thumb img{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
}
.ddc-set-row .set-thumb .ph{
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family: var(--font-en);
  font-size: 10px;
  color: rgba(242,232,211,0.5);
}
.ddc-set-row .set-thumb.is-more .more{
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  color: #f7efd9;
}
.ddc-set-row a.set-thumb::after{
  content: "\2197";
  position: absolute;
  right: 3px;
  bottom: 2px;
  font-size: 10px;
  line-height: 1;
  color: #fff;
  background: rgba(30,70,56,0.8);
  border-radius: 2px;
  padding: 2px 3px;
  opacity: 0.85;
}
.ddc-set-row a.set-thumb:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--gold-bright), 0 4px 10px rgba(0,0,0,0.3);
}
.ddc-set-row .set-thumb.hit{
  box-shadow: 0 0 0 2px var(--gold-bright);
}

.ddc-set-row .venue .lot{
  font-family: var(--font-en);
  font-size: 10.5px;
  color: rgba(242,232,211,0.45);
}
.ddc-set-row .price .per{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10.5px;
  color: rgba(242,232,211,0.55);
  margin-top: 4px;
  white-space: nowrap;
}

@media (max-width: 900px){
  .ddc-ledger-row.ddc-set-row{ --st: 56px; }
}
@media (max-width: 720px){
  .ddc-ledger-row.ddc-set-row{
    --st: 60px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "notes notes"
      "thumbs thumbs"
      "venue price";
    row-gap: 10px;
  }
  .ddc-ledger-row.ddc-set-row .set-notes-wrap{ grid-area: notes; }
  .ddc-ledger-row.ddc-set-row .set-thumbs{ grid-area: thumbs; justify-self: start; }
  .ddc-ledger-row.ddc-set-row .venue{ grid-area: venue; justify-self: start; }
  .ddc-ledger-row.ddc-set-row .price{
    grid-area: price;
    text-align: right;
    border-top: none;
    padding-top: 0;
  }
  .ddc-classic .ddc-tab{ padding: 8px 14px 9px; font-size: 13px; }
}

/* ===== 単品:画像リンク(URLがある行のみ) ===== */
.ddc-classic .ddc-ledger-row a.thumb{
  position: relative;
  display: block;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 0 0 1px rgba(242,232,211,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ddc-ledger-row a.thumb::after{
  content: "\2197";
  position: absolute;
  right: 3px;
  bottom: 2px;
  font-size: 10px;
  line-height: 1;
  color: #fff;
  background: rgba(30,70,56,0.8);
  border-radius: 2px;
  padding: 2px 3px;
  opacity: 0.85;
}
.ddc-ledger-row a.thumb:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--gold-bright), 0 4px 10px rgba(0,0,0,0.3);
}

/* ===== 金額非公開(Heritage):落札ページへのリンク ===== */
.ddc-ledger-row .price.price-hidden{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1.5;
  white-space: normal;
}
.ddc-classic .ddc-ledger-row .price.price-hidden a{
  color: var(--gold-bright);
  text-decoration: none !important;
  border-bottom: 1px dotted rgba(201,154,61,0.6);
}
.ddc-ledger-row .price.price-hidden a:hover{ color: #fff; }
.ddc-ledger-row .price.price-hidden .arr{ margin-left: 2px; font-size: 10px; }

/* Heritage $1,000以上:伏せ字の価格 */
.ddc-ledger-row .price.price-hidden .masked{
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14.5px;
  color: #f7efd9;
  white-space: nowrap;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
