:root {
  color-scheme: dark;
  --bg: #08080b;
  --panel: #12131a;
  --panel-2: #191b25;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: rgba(255,255,255,.1);
  --gold: #f7c66b;
  --coal: #050505;
  --red: #ff5f57;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% -10%, rgba(247,198,107,.18), transparent 30%), var(--bg);
}
a { color: inherit; }
.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,8,11,.82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display:flex; gap:12px; align-items:center; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, #f7c66b, #6f4b12);
  color: #111; font-weight: 900;
  box-shadow: 0 0 30px rgba(247,198,107,.25);
}
.brand strong { display:block; letter-spacing:.04em; }
.brand small { color: var(--muted); }
.doc-link { color: var(--gold); text-decoration: none; }
.layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 24px;
  padding: 24px;
}
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.32);
}
.control-panel { padding: 28px; align-self: start; position: sticky; top: 96px; }
.eyebrow { color: var(--gold); text-transform: uppercase; font-size: 12px; letter-spacing:.18em; }
h1 { margin: 10px 0 12px; font-size: 30px; line-height: 1.15; }
.desc { color: var(--muted); line-height: 1.8; }
.tabs { display:flex; gap:8px; margin: 24px 0 14px; }
.tab, button, .ghost {
  border: 0; border-radius: 12px; padding: 11px 14px; color: var(--text); background: var(--panel-2); cursor: pointer;
}
.tab.active, button[type="submit"] { background: var(--gold); color: #111; font-weight: 800; }
.form-block { display: none; }
.form-block.active { display:block; }
label { display:block; margin: 14px 0; color: var(--muted); font-size: 13px; }
input, select {
  width:100%; margin-top: 8px; padding: 13px 14px; border-radius: 14px;
  border:1px solid var(--line); background:#0b0c11; color:var(--text); outline:none;
}
input:focus, select:focus { border-color: rgba(247,198,107,.8); }
.actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.ghost { border:1px solid var(--line); background:transparent; }
.hint-card {
  margin-top: 22px; padding: 16px; border:1px dashed rgba(247,198,107,.35); border-radius: 16px; background: rgba(247,198,107,.06);
}
.hint-card p { color: var(--muted); margin-bottom:0; line-height:1.7; }
.viewer-panel { min-height: calc(100vh - 120px); overflow:hidden; }
.viewer-topbar {
  display:flex; align-items:center; justify-content:space-between; gap: 16px;
  padding: 18px 22px; border-bottom:1px solid var(--line); background: rgba(18,19,26,.9);
}
.viewer-topbar small { display:block; color:var(--muted); margin-top:4px; max-width: 760px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#sourceLink { color: var(--gold); text-decoration:none; white-space:nowrap; }
.status { margin: 18px 22px; padding: 12px 14px; border-radius: 14px; background: #0b0c11; color: var(--muted); border:1px solid var(--line); }
.status.error { color:#ffd0d0; border-color: rgba(255,95,87,.4); background: rgba(255,95,87,.08); }
.status.ok { color:#e5ffc8; border-color: rgba(148,255,100,.35); background: rgba(148,255,100,.08); }
.page-content {
  padding: 8px 22px 40px;
  line-height: 1.75;
  color: #e7e7ec;
}
.page-content img { max-width: 220px; max-height: 220px; object-fit: contain; border-radius: 12px; background: white; padding: 4px; margin: 8px; vertical-align: middle; }
.page-content a { color: var(--gold); text-decoration: none; }
.page-content table { width:100%; border-collapse:collapse; margin: 16px 0; }
.page-content td, .page-content th { border: 1px solid var(--line); padding: 8px; }
.page-content div, .page-content p { max-width: 100%; }
dialog {
  border:1px solid var(--line); border-radius: 20px; background: var(--panel); color:var(--text); width:min(720px, 92vw);
}
dialog::backdrop { background: rgba(0,0,0,.68); }
.dialog-close { float:right; border-radius: 999px; padding: 6px 10px; background:#222; color:#fff; }
pre { white-space: pre-wrap; background:#08080b; padding: 16px; border-radius: 14px; color:#ddd; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; padding: 14px; }
  .control-panel { position: static; }
  .site-header { padding: 0 14px; }
}

.screenshot-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: #111;
}

.viewer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.viewer-actions .small {
  padding: 8px 10px;
  font-size: 12px;
}
button:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.current-url {
  color: #8f929f !important;
  font-size: 11px;
}
.hm-cny-price {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(247,198,107,.14);
  border: 1px solid rgba(247,198,107,.32);
  color: #ffd98a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.page-content a[data-preview-url] {
  cursor: pointer;
  outline: 1px solid transparent;
}
.page-content a[data-preview-url]:hover {
  outline-color: rgba(247,198,107,.35);
  background: rgba(247,198,107,.06);
  border-radius: 8px;
}
@media (max-width: 900px) {
  .viewer-topbar { align-items: flex-start; flex-direction: column; }
  .viewer-actions { justify-content: flex-start; }
}

/* v6: Mercari-like rebuilt preview UI. Not official CSS; own layout inspired by marketplace patterns. */
.inline-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hm-mercari-page {
  color: #222;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  min-height: 640px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.hm-mercari-page a { color: inherit; }
.hm-mercari-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
}
.hm-mercari-header h1,
.hm-detail-info h1 {
  margin: 4px 0 8px;
  color: #222;
  font-size: 26px;
  line-height: 1.35;
}
.hm-mercari-kicker {
  margin: 0;
  color: #e60012;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hm-mercari-sub {
  color: #666;
  margin: 0;
  line-height: 1.6;
}
.hm-source-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e60012;
  color: #e60012 !important;
  background: #fff5f5;
  text-decoration: none !important;
  font-weight: 800;
  white-space: nowrap;
}
.hm-mercari-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.hm-segmented,
.hm-sort-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hm-segmented a,
.hm-sort-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
}
.hm-segmented a.active,
.hm-sort-tabs a.active {
  border-color: #e60012;
  background: #e60012;
  color: #fff !important;
}
.hm-mercari-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}
.hm-mercari-card {
  display: block;
  text-decoration: none !important;
  color: #222 !important;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}
.hm-mercari-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.hm-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f5;
}
.hm-card-image-wrap img,
.hm-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  border-radius: 0;
  background: transparent;
}
.hm-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #999;
  background: #f1f1f1;
  font-weight: 800;
}
.hm-sold-ribbon {
  position: absolute;
  left: 0;
  top: 0;
  width: 82px;
  height: 82px;
  background: linear-gradient(135deg, #e60012 0 50%, transparent 50% 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 14px 0 0 8px;
  letter-spacing: .04em;
}
.hm-sold-ribbon.big {
  width: 120px;
  height: 120px;
  font-size: 18px;
  padding: 20px 0 0 12px;
}
.hm-card-title {
  margin-top: 8px;
  color: #333;
  font-size: 14px;
  line-height: 1.45;
  height: 40px;
  overflow: hidden;
}
.hm-card-price {
  margin-top: 3px;
  color: #222;
  font-weight: 900;
  font-size: 16px;
}
.hm-mercari-detail {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 440px);
  gap: 34px;
  align-items: start;
}
.hm-detail-gallery {
  min-width: 0;
}
.hm-main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  border-radius: 18px;
  overflow: hidden;
}
.hm-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.hm-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
  max-width: none;
  max-height: none;
}
.hm-thumbs img.active { border-color: #e60012; }
.hm-detail-info {
  position: sticky;
  top: 92px;
  background: #fff;
}
.hm-detail-price {
  color: #222;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
  margin: 18px 0;
}
.hm-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.hm-detail-actions button {
  background: #e60012;
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
}
.hm-note {
  color: #666;
  background: #f8f8f8;
  border-radius: 12px;
  padding: 12px;
  line-height: 1.7;
}
.hm-spec-table {
  margin-top: 18px;
  border-top: 1px solid #eee;
}
.hm-spec-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.hm-spec-row dt {
  color: #777;
  font-weight: 700;
}
.hm-spec-row dd {
  margin: 0;
  color: #222;
  font-weight: 700;
}
.hm-description-block {
  grid-column: 1 / -1;
  border-top: 1px solid #eee;
  margin-top: 10px;
  padding-top: 22px;
}
.hm-description-block h2 {
  color: #222;
  margin: 0 0 12px;
}
.hm-description-block p {
  white-space: pre-wrap;
  color: #333;
  line-height: 1.9;
}
.hm-empty {
  grid-column: 1 / -1;
  background: #fff7f7;
  border: 1px dashed #ffb4b4;
  color: #444;
  border-radius: 14px;
  padding: 18px;
}
.hm-empty p { color: #666; margin-bottom: 0; }
@media (max-width: 900px) {
  .inline-controls { grid-template-columns: 1fr; }
  .hm-mercari-page { padding: 14px; }
  .hm-mercari-detail { grid-template-columns: 1fr; }
  .hm-detail-info { position: static; }
  .hm-mercari-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 14px; }
}

/* v7: closer Mercari-style search/detail layout. */
.hm-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hm-copy-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #333;
  font-weight: 700;
  cursor: pointer;
}
.hm-copy-source:hover { background: #f7f7f7; }
.hm-card-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 18px 16px;
  align-items: start;
}
.hm-card-row-grid .hm-mercari-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 10px;
}
.hm-card-row-grid .hm-card-image-wrap {
  border-radius: 8px;
}
.hm-card-body {
  padding: 7px 2px 0;
}
.hm-card-row-grid .hm-card-title {
  height: 38px;
  font-size: 13px;
  line-height: 1.45;
  color: #333;
}
.hm-card-row-grid .hm-card-price {
  font-size: 15px;
  line-height: 1.35;
}
.hm-mercari-detail-page {
  padding: 18px 22px 36px;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}
.hm-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: #0073cc;
  font-size: 13px;
  margin: 0 0 30px;
}
.hm-breadcrumbs b { color: #aaa; font-weight: 500; }
.hm-detail-official-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(360px, 474px);
  gap: 40px;
  align-items: start;
}
.hm-detail-photo-area {
  display: grid;
  grid-template-columns: 76px minmax(360px, 1fr);
  gap: 24px;
  align-items: start;
}
.hm-thumb-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 2px;
}
.hm-thumb-button {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 1px solid #d4d4d4;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
.hm-thumb-button.active { border: 2px solid #333; }
.hm-thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  border-radius: 0;
  background: #fff;
}
.hm-official-main-image {
  border-radius: 0;
  background: #f6f6f6;
  min-height: 520px;
  max-height: 640px;
}
.hm-official-main-image img {
  object-fit: contain;
  background: #f6f6f6;
}
.hm-image-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.hm-detail-side {
  color: #333;
  background: #fff;
}
.hm-detail-side h1 {
  margin: 0 0 14px;
  color: #333;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
}
.hm-detail-side .hm-detail-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 18px;
  color: #333;
  font-size: 30px;
  font-weight: 500;
}
.hm-detail-side .hm-detail-price small {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}
.hm-action-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.hm-action-icons button {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #333;
  font-weight: 600;
}
.hm-action-icons button:disabled { opacity: 1; color: #333; }
.hm-purchase-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  margin: 16px 0 28px;
}
.hm-purchase-row button {
  min-height: 46px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 900;
}
.hm-pay-later {
  border: 1px solid #ff3347 !important;
  background: #fff !important;
  color: #ff3347 !important;
}
.hm-buy-button {
  border: 1px solid #ff3347 !important;
  background: #ff3347 !important;
  color: #fff !important;
}
.hm-official-section {
  margin-top: 26px;
}
.hm-official-section h2 {
  margin: 0 0 14px;
  color: #666;
  font-size: 22px;
  font-weight: 800;
}
.hm-description-block {
  grid-column: auto;
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.hm-description-block p {
  margin: 0;
  white-space: pre-wrap;
  color: #333;
  line-height: 1.75;
  font-size: 15px;
}
.hm-spec-section {
  margin-top: 30px;
}
.hm-spec-section h2 {
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}
.hm-spec-section .hm-spec-table {
  margin-top: 0;
  border-top: 0;
}
.hm-spec-section .hm-spec-row {
  grid-template-columns: 160px 1fr;
  padding: 13px 0;
  border-bottom: 0;
}
.hm-spec-section .hm-spec-row dt {
  color: #333;
  font-weight: 800;
}
.hm-spec-section .hm-spec-row dd {
  color: #333;
  font-weight: 500;
}
@media (min-width: 1500px) {
  .hm-card-row-grid { grid-template-columns: repeat(6, minmax(145px, 1fr)); }
}
@media (max-width: 1200px) {
  .hm-detail-official-layout { grid-template-columns: 1fr; }
  .hm-detail-side { max-width: none; }
}
@media (max-width: 720px) {
  .hm-detail-photo-area { grid-template-columns: 1fr; }
  .hm-thumb-rail { flex-direction: row; order: 2; max-height: none; overflow-x: auto; }
  .hm-thumb-button { flex: 0 0 68px; width: 68px; height: 68px; }
  .hm-purchase-row { grid-template-columns: 1fr; gap: 10px; }
  .hm-official-main-image { min-height: auto; }
}

/* v8: Mercari-like grid search and official-detail visual tuning. */
.hm-mercari-search {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px 42px;
}
.hm-search-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.hm-search-header h1 {
  font-size: 22px;
  margin: 4px 0 4px;
}
.hm-mercari-controls {
  align-items: flex-start;
  margin: 10px 0 24px;
}
.hm-segmented a,
.hm-sort-tabs a {
  min-height: 32px;
  padding: 6px 12px;
  border-color: #dcdcdc;
  color: #222 !important;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
}
.hm-segmented a.active,
.hm-sort-tabs a.active {
  background: #fff;
  color: #e60012 !important;
  border-color: #e60012;
  box-shadow: inset 0 0 0 1px #e60012;
}
.hm-card-row-grid,
.hm-mercari-grid.hm-card-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 26px 24px;
  align-items: start;
}
.hm-card-row-grid .hm-mercari-card,
.hm-mercari-card {
  display: block;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none !important;
  color: #222 !important;
  text-decoration: none !important;
}
.hm-card-row-grid .hm-mercari-card:hover,
.hm-mercari-card:hover {
  transform: none;
  box-shadow: none;
  opacity: .92;
}
.hm-card-row-grid .hm-card-image-wrap,
.hm-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}
.hm-card-image-wrap img {
  object-fit: cover;
}
.hm-card-price-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 92%;
  padding: 2px 9px 3px 7px;
  border-radius: 0 14px 14px 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.hm-card-row-grid .hm-card-title,
.hm-card-title {
  margin-top: 9px;
  height: 42px;
  color: #222;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  overflow: hidden;
}
.hm-card-cny {
  min-height: 18px;
  margin-top: 2px;
}
.hm-card-cny .hm-cny-price {
  margin-left: 0;
  font-size: 11px;
}
.hm-sold-ribbon {
  width: 62px;
  height: 62px;
  font-size: 12px;
  padding: 8px 0 0 4px;
  transform: none;
}
.hm-sold-ribbon.big {
  width: 96px;
  height: 96px;
  font-size: 16px;
  padding: 15px 0 0 9px;
}

.hm-mercari-detail-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  background: #fff;
  color: #222;
}
.hm-breadcrumbs {
  margin-bottom: 28px;
  color: #006fd6;
  font-size: 13px;
}
.hm-detail-official-layout {
  display: grid;
  grid-template-columns: minmax(640px, 1fr) minmax(400px, 474px);
  gap: 40px;
  align-items: start;
}
.hm-detail-photo-area {
  display: grid;
  grid-template-columns: 78px minmax(520px, 1fr);
  gap: 24px;
}
.hm-thumb-rail {
  gap: 10px;
  max-height: 680px;
  overflow-y: auto;
}
.hm-thumb-button {
  width: 78px;
  height: 78px;
  border: 1px solid #d2d2d2;
  background: #fff;
  border-radius: 0;
}
.hm-thumb-button.active {
  border: 2px solid #222;
}
.hm-official-main-image {
  width: 100%;
  min-height: 590px;
  max-height: 680px;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  background: #f7f7f7;
}
.hm-official-main-image img {
  object-fit: contain;
  background: #f7f7f7;
}
.hm-detail-side {
  background: #fff;
  color: #222;
  padding-top: 0;
}
.hm-auction-notice {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f1f1f1;
  color: #333;
  line-height: 1.55;
}
.hm-auction-notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}
.hm-item-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 5px;
  margin-bottom: 10px;
  border: 2px solid #0095ff;
  color: #0095ff;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}
.hm-detail-side h1 {
  margin: 0 0 18px;
  color: #222;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.55;
}
.hm-detail-side .hm-detail-price {
  margin: 0 0 20px;
  color: #222;
  font-size: 30px;
  font-weight: 400;
}
.hm-detail-price .hm-current-label {
  margin-right: 4px;
  color: #555;
  font-size: 13px;
  font-weight: 400;
}
.hm-detail-side .hm-detail-price small {
  font-size: 12px;
  color: #555;
}
.hm-action-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.hm-action-icons button {
  min-height: 42px;
  border-radius: 4px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 500;
}
.hm-buy-button {
  min-height: 46px;
  border-radius: 4px !important;
  background: #ff3347 !important;
  border-color: #ff3347 !important;
  color: #fff !important;
  font-weight: 900;
}
.hm-purchase-row {
  grid-template-columns: 1fr;
  margin: 16px 0 32px;
}
.hm-pay-later { display: none; }
.hm-official-section h2 {
  margin: 0 0 16px;
  color: #666;
  font-size: 23px;
  font-weight: 800;
}
.hm-description-block {
  margin-top: 28px;
}
.hm-description-block p,
.hm-description-text {
  white-space: pre-wrap;
  color: #222;
  font-size: 15px;
  line-height: 1.75;
}
.hm-item-time {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-top: 12px;
  color: #555;
  font-size: 13px;
}
.hm-spec-section h2 {
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e5e5;
}
.hm-spec-section .hm-spec-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 12px 0;
}
.hm-spec-section .hm-spec-row dt {
  color: #222;
  font-weight: 800;
}
.hm-spec-section .hm-spec-row dd {
  color: #222;
  font-weight: 400;
}
.hm-note {
  display: none;
}
@media (min-width: 1380px) {
  .hm-card-row-grid,
  .hm-mercari-grid.hm-card-row-grid { grid-template-columns: repeat(6, 160px); }
}
@media (max-width: 1200px) {
  .hm-detail-official-layout { grid-template-columns: 1fr; }
  .hm-detail-photo-area { grid-template-columns: 78px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hm-card-row-grid,
  .hm-mercari-grid.hm-card-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .hm-detail-photo-area { grid-template-columns: 1fr; }
  .hm-thumb-rail { flex-direction: row; order: 2; max-height: none; overflow-x: auto; }
  .hm-thumb-button { flex: 0 0 68px; width: 68px; height: 68px; }
  .hm-official-main-image { min-height: auto; }
  .hm-detail-side h1 { font-size: 21px; }
}
