/* ===== ガンプラ買取部 — フロントCSS (カードグリッド版) ===== */
.gunpla-wrap { max-width: 1200px; margin: 0 auto; padding: 20px 16px; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; color: #333; }
.gunpla-wrap *, .gunpla-wrap *::before, .gunpla-wrap *::after { box-sizing: border-box; }

/* ===== STEPS ===== */
.gp-steps { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 0 12px; margin-bottom: 16px; }
.gp-step { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 24px; background: #f0f0f5; color: #999; font-size: 13px; font-weight: 600; transition: all 0.3s; }
.gp-step.active { background: #c8102e; color: #fff; box-shadow: 0 2px 8px rgba(200,16,46,0.3); }
.gp-step-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.25); font-size: 12px; font-weight: 800; }
.gp-step.active .gp-step-num { background: rgba(255,255,255,0.3); }
.gp-step-sep { color: #ccc; font-size: 18px; font-weight: 300; }
@media (max-width: 500px) { .gp-step-label { display: none; } .gp-step { padding: 8px 12px; } }

/* ===== PAGE HEADER ===== */
.gp-page-header { text-align: center; margin-bottom: 24px; }
.gp-page-title { font-size: 22px; font-weight: 800; color: #1a1a2a; margin: 0 0 6px; }
.gp-page-desc { font-size: 13px; color: #888; margin: 0; }

/* ===== SEARCH PANEL ===== */
.gp-search-panel { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 20px; margin-bottom: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.gp-search-main { display: flex; align-items: center; gap: 0; margin-bottom: 14px; background: #f8f9fa; border: 2px solid #e0e0e0; border-radius: 8px; padding: 0 12px; transition: border-color 0.2s; }
.gp-search-main:focus-within { border-color: #c8102e; }
.gp-search-icon { font-size: 18px; flex-shrink: 0; }
.gp-search-input { flex: 1; padding: 12px 10px; border: none; background: transparent; font-size: 15px; outline: none; color: #333; font-family: inherit; }
.gp-search-input::placeholder { color: #bbb; }

.gp-filter-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.gp-filter-item { display: flex; flex-direction: column; gap: 4px; }
.gp-filter-label { font-size: 12px; font-weight: 600; color: #666; }
.gp-filter-select { padding: 9px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; color: #333; background: #fff; outline: none; cursor: pointer; font-family: inherit; }
.gp-filter-select:focus { border-color: #c8102e; }

.gp-search-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gp-search-meta { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: #888; }
.gp-search-meta strong { color: #c8102e; font-size: 15px; }
.gp-sort-select { padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; background: #fff; cursor: pointer; }
.gp-page-info-text { font-size: 12px; color: #aaa; }

@media (max-width: 600px) {
  .gp-filter-grid { grid-template-columns: 1fr; }
  .gp-search-actions { flex-direction: column; align-items: stretch; }
  .gp-search-meta { margin-left: 0; justify-content: space-between; }
}

/* ===== BUTTONS ===== */
.gp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; white-space: nowrap; text-decoration: none; }
.gp-btn-primary { background: #c8102e; color: #fff; }
.gp-btn-primary:hover { background: #a00d24; }
.gp-btn-accent { background: #f59e0b; color: #fff; }
.gp-btn-accent:hover { background: #d97706; }
.gp-btn-success { background: #22c55e; color: #fff; }
.gp-btn-success:hover { background: #16a34a; }
.gp-btn-ghost { background: transparent; color: #888; border: 1px solid #ddd; }
.gp-btn-ghost:hover { border-color: #c8102e; color: #c8102e; }
.gp-btn-sm { padding: 6px 14px; font-size: 12px; }
.gp-btn-block { width: 100%; }
.gp-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.gp-req { color: #c8102e; }

/* ===== PRODUCT GRID ===== */
.gp-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }

.gp-product-card {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden;
  transition: all 0.2s; display: flex; flex-direction: column; position: relative;
}
.gp-product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }

.gp-card-img-wrap {
  position: relative; width: 100%; padding-top: 100%; /* 1:1 aspect */
  background: #f5f5f8; overflow: hidden;
}
.gp-card-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 8px; transition: opacity 0.3s;
}
.gp-card-img-placeholder {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; opacity: 0.15; background: #f5f5f8;
}
.gp-card-grade-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700;
  background: rgba(200,16,46,0.9); color: #fff; letter-spacing: 0.5px;
}
.gp-card-series-badge {
  position: absolute; top: 8px; right: 8px;
  padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 600;
  background: rgba(0,0,0,0.6); color: #fff; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.gp-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.gp-card-code { font-size: 11px; color: #aaa; font-family: monospace; margin-bottom: 4px; }
.gp-card-name { font-size: 13px; font-weight: 600; color: #333; line-height: 1.4; margin-bottom: 8px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.gp-card-prices { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.gp-card-price { font-size: 20px; font-weight: 800; color: #c8102e; }
.gp-card-price-yen { font-size: 12px; font-weight: 600; color: #c8102e; }
.gp-card-price-up { font-size: 12px; color: #16a34a; font-weight: 600; }

.gp-card-actions { display: flex; align-items: center; gap: 6px; }
.gp-card-qty { display: flex; align-items: center; gap: 2px; }
.gp-card-qty-btn { width: 28px; height: 28px; background: #f0f0f5; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #555; transition: all 0.15s; }
.gp-card-qty-btn:hover { border-color: #c8102e; color: #c8102e; }
.gp-card-qty-num { width: 36px; text-align: center; padding: 4px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; }
.gp-card-add-btn { flex: 1; padding: 8px 12px; background: #c8102e; border: none; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.15s; }
.gp-card-add-btn:hover { background: #a00d24; }

/* ===== PAGINATION ===== */
.gp-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 20px 0; }
.gp-page-btn { padding: 8px 14px; background: #fff; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; cursor: pointer; transition: all 0.15s; color: #555; }
.gp-page-btn:hover { border-color: #c8102e; color: #c8102e; }
.gp-page-btn.active { background: #c8102e; border-color: #c8102e; color: #fff; }
.gp-page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ===== NO RESULTS / LOADING ===== */
.gp-no-results { text-align: center; padding: 60px 20px; color: #888; }
.gp-loading { display: flex; align-items: center; justify-content: center; padding: 40px; gap: 10px; color: #aaa; font-size: 14px; }
.gp-spinner { width: 24px; height: 24px; border: 3px solid #e0e0e0; border-top-color: #c8102e; border-radius: 50%; animation: gpSpin 0.8s linear infinite; }
@keyframes gpSpin { to { transform: rotate(360deg); } }

/* ===== CART FAB ===== */
.gp-cart-fab {
  position: fixed; bottom: 20px; right: 20px; z-index: 999;
  padding: 14px 22px; background: #c8102e; color: #fff; border: none; border-radius: 50px;
  font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 20px rgba(200,16,46,0.4);
  display: flex; align-items: center; gap: 6px; transition: all 0.2s; font-family: inherit;
}
.gp-cart-fab:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(200,16,46,0.5); }
.gp-fab-badge { background: #fff; color: #c8102e; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 800; min-width: 22px; text-align: center; }

/* ===== SLIDE-IN CART DRAWER ===== */
.gp-cart-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 10000; }
.gp-cart-overlay.gp-open { display: block; }

.gp-cart-drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw; height: 100%; z-index: 10001;
  background: #fff; box-shadow: -4px 0 30px rgba(0,0,0,0.15); display: flex; flex-direction: column;
  transition: right 0.3s ease;
}
.gp-cart-drawer.gp-open { right: 0; }

.gp-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eee; flex-shrink: 0; }
.gp-drawer-header h3 { font-size: 16px; font-weight: 700; margin: 0; }
.gp-drawer-close { width: 32px; height: 32px; background: transparent; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #666; }
.gp-drawer-close:hover { border-color: #c8102e; color: #c8102e; }

.gp-drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.gp-cart-empty { text-align: center; padding: 40px 0; color: #bbb; font-size: 14px; }
.gp-cart-items { display: flex; flex-direction: column; gap: 12px; }

.gp-cart-item { display: flex; gap: 10px; padding: 12px; background: #f9f9fb; border-radius: 8px; position: relative; }
.gp-cart-item-img { width: 56px; height: 56px; border-radius: 6px; object-fit: contain; background: #eee; flex-shrink: 0; }
.gp-cart-item-info { flex: 1; min-width: 0; }
.gp-cart-item-name { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 2px; color: #333; }
.gp-cart-item-meta { font-size: 11px; color: #999; }
.gp-cart-item-price { font-size: 15px; font-weight: 800; color: #c8102e; margin-top: 4px; }
.gp-cart-item-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.gp-cart-item-qty { display: flex; align-items: center; gap: 2px; }
.gp-ci-qty-btn { width: 24px; height: 24px; background: #fff; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gp-ci-qty-btn:hover { border-color: #c8102e; color: #c8102e; }
.gp-ci-qty-val { font-size: 13px; min-width: 20px; text-align: center; font-weight: 600; }
.gp-cart-item-remove { font-size: 11px; color: #bbb; cursor: pointer; background: none; border: none; padding: 2px; }
.gp-cart-item-remove:hover { color: #ef4444; }

.gp-drawer-footer { border-top: 2px solid #e0e0e0; padding: 16px 20px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.gp-drawer-total-label { font-size: 13px; color: #888; text-align: center; }
.gp-drawer-total-amount { font-size: 32px; font-weight: 900; color: #c8102e; text-align: center; }
.gp-drawer-total-amount small { font-size: 14px; font-weight: 600; }
.gp-drawer-total-sub { font-size: 13px; color: #16a34a; text-align: center; margin-bottom: 8px; }

/* ===== MODAL ===== */
.gp-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100000; align-items: center; justify-content: center; padding: 20px; }
.gp-modal-overlay.gp-active { display: flex; }
.gp-modal { background: #fff; border-radius: 12px; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.gp-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eee; }
.gp-panel-title { font-size: 16px; font-weight: 700; }
.gp-modal-close { width: 32px; height: 32px; background: transparent; border: 1px solid #ddd; border-radius: 6px; color: #666; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.gp-modal-close:hover { border-color: #c8102e; color: #c8102e; }
.gp-modal-body { padding: 20px; }

/* ===== FORM ===== */
.gp-form-group { margin-bottom: 14px; }
.gp-label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 4px; }
.gp-input, .gp-textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; color: #333; outline: none; transition: border-color 0.2s; font-family: inherit; background: #fff; }
.gp-input:focus, .gp-textarea:focus { border-color: #c8102e; box-shadow: 0 0 0 2px rgba(200,16,46,0.08); }
.gp-textarea { resize: vertical; min-height: 70px; }
.gp-note { font-size: 11px; color: #999; line-height: 1.7; margin-top: 12px; }
.gp-flow-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 16px; margin-bottom: 20px; font-size: 13px; line-height: 1.8; color: #555; }
.gp-flow-box strong { color: #b45309; }

/* ===== TOAST ===== */
.gp-toast { position: fixed; top: 50px; right: 20px; z-index: 200000; padding: 12px 20px; background: #22c55e; color: #fff; border-radius: 8px; font-size: 14px; font-weight: 600; transform: translateX(120%); transition: transform 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.gp-toast.gp-show { transform: translateX(0); }
.gp-toast.gp-error { background: #ef4444; }

/* ===== ESTIMATE PAGE (shared) ===== */
.gp-estimate-header { text-align: center; padding: 20px; margin-bottom: 20px; }
.gp-est-label { display: inline-block; padding: 8px 30px; border: 2px solid #c8102e; border-radius: 6px; font-size: 20px; font-weight: 700; letter-spacing: 6px; color: #c8102e; }
.gp-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.gp-meta-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 14px 18px; }
.gp-meta-label { font-size: 11px; color: #888; font-weight: 600; margin-bottom: 3px; }
.gp-meta-value { font-size: 15px; font-weight: 500; color: #333; }
.gp-mono { font-family: monospace; color: #c8102e; }
.gp-warn { color: #d97706; }
.gp-totals-box { background: #fff; border: 2px solid #c8102e; border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.gp-cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 14px; color: #666; }
.gp-total-value { font-size: 22px; font-weight: 900; color: #c8102e; }
.gp-total-lg { font-size: 28px; }
.gp-total-up { font-size: 16px; font-weight: 700; color: #16a34a; }
.gp-loading-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40vh; gap: 16px; color: #aaa; }
.gp-error-page { text-align: center; padding: 60px 20px; }
.gp-error-msg { font-size: 16px; color: #888; margin-bottom: 8px; }
.gp-table-wrap { overflow-x: auto; }
.gp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gp-table thead th { text-align: left; padding: 10px 12px; background: #f8f9fa; border-bottom: 2px solid #e0e0e0; font-weight: 600; font-size: 12px; color: #666; }
.gp-table tbody tr { border-bottom: 1px solid #f0f0f0; }
.gp-table td { padding: 10px 12px; vertical-align: middle; }
.gp-table .td-price { font-weight: 700; color: #c8102e; }
.gp-actions-row { margin-bottom: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.gp-actions-row .gp-btn { flex: 1; min-width: 200px; }
@media (max-width: 600px) { .gp-meta-grid { grid-template-columns: 1fr; } .gp-actions-row .gp-btn { min-width: 100%; } }

/* ===== MINIMUM AMOUNT WARNING ===== */
.gp-min-amount-warn { background: #fef3c7; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #92400e; font-weight: 500; text-align: center; line-height: 1.5; }

/* ===== GRADE LANDING PAGE ===== */
.gp-grade-hero {
  background: linear-gradient(135deg, #1a1a2a 0%, #c8102e 100%);
  border-radius: 16px; padding: 48px 32px; margin-bottom: 28px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.gp-grade-hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.gp-grade-hero-hg { background: linear-gradient(135deg, #1a2744 0%, #2563eb 100%); }
.gp-grade-hero-rg { background: linear-gradient(135deg, #1a2744 0%, #7c3aed 100%); }
.gp-grade-hero-mg { background: linear-gradient(135deg, #1a2744 0%, #c8102e 100%); }
.gp-grade-hero-pg { background: linear-gradient(135deg, #1a2744 0%, #b45309 100%); }
.gp-grade-hero-re100 { background: linear-gradient(135deg, #1a2744 0%, #059669 100%); }

.gp-grade-hero-inner { position: relative; z-index: 1; }
.gp-grade-badge-lg {
  display: inline-block; padding: 6px 24px; background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3); border-radius: 8px;
  font-size: 28px; font-weight: 900; letter-spacing: 4px; margin-bottom: 12px;
}
.gp-grade-h1 { font-size: 26px; font-weight: 800; margin: 0 0 12px; line-height: 1.3; }
.gp-grade-hero-desc { font-size: 14px; opacity: 0.85; max-width: 700px; margin: 0 auto 16px; line-height: 1.7; }
.gp-grade-hero-meta { display: flex; justify-content: center; gap: 20px; font-size: 13px; opacity: 0.7; }
.gp-grade-meta-item { display: flex; align-items: center; gap: 4px; }

/* Features */
.gp-grade-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px;
  margin-bottom: 28px;
}
.gp-grade-feature {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 14px 18px;
  font-size: 14px; font-weight: 500; color: #333;
}
.gp-grade-feature-check {
  width: 24px; height: 24px; background: #ecfdf5; color: #059669;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}

/* Section */
.gp-grade-section { margin-bottom: 28px; }
.gp-grade-h2 { font-size: 20px; font-weight: 800; color: #1a1a2a; margin: 0 0 8px; }
.gp-grade-section-desc { font-size: 13px; color: #888; margin: 0 0 16px; }

/* Toolbar */
.gp-grade-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.gp-grade-search-wrap {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 200px;
  padding: 0 12px; background: #fff; border: 1px solid #ddd; border-radius: 8px;
}
.gp-grade-search-wrap:focus-within { border-color: #c8102e; }
.gp-grade-search {
  border: none; outline: none; padding: 10px 4px; font-size: 14px; flex: 1;
  background: transparent; font-family: inherit;
}
.gp-grade-sort {
  padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px;
  background: #fff; cursor: pointer; font-family: inherit;
}
.gp-grade-count { font-size: 13px; color: #888; margin-left: auto; }
.gp-grade-count strong { color: #c8102e; font-size: 15px; }

/* Tip Box */
.gp-grade-tip-box {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
  padding: 20px 24px; margin-bottom: 28px;
}
.gp-grade-tip-box h3 { font-size: 15px; color: #92400e; margin: 0 0 8px; }
.gp-grade-tip-box p { font-size: 14px; color: #78350f; margin: 0; line-height: 1.7; }

/* CTA */
.gp-grade-cta {
  background: linear-gradient(135deg, #1a1a2a, #2a2a4a); border-radius: 16px;
  padding: 40px 32px; text-align: center; color: #fff; margin-bottom: 28px;
}
.gp-grade-cta h2 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.gp-grade-cta p { font-size: 14px; opacity: 0.8; margin: 0 0 20px; }
.gp-grade-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* FAQ */
.gp-grade-faq { margin-bottom: 28px; }
.gp-faq-item { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 18px 22px; margin-bottom: 10px; }
.gp-faq-q { font-size: 15px; font-weight: 700; color: #1a1a2a; margin: 0 0 8px; }
.gp-faq-a { font-size: 14px; color: #555; margin: 0; line-height: 1.7; }

@media (max-width: 600px) {
  .gp-grade-hero { padding: 32px 20px; }
  .gp-grade-h1 { font-size: 20px; }
  .gp-grade-badge-lg { font-size: 22px; padding: 4px 16px; }
  .gp-grade-hero-meta { flex-direction: column; gap: 4px; }
  .gp-grade-cta { padding: 28px 20px; }
  .gp-grade-cta-buttons { flex-direction: column; }
  .gp-grade-toolbar { flex-direction: column; }
  .gp-grade-count { margin-left: 0; }
}

/* ===== TOP / HUB PAGE ===== */
.gp-top-hero {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a2744 40%, #c8102e 100%);
  border-radius: 16px; padding: 56px 32px; margin-bottom: 32px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.gp-top-hero::before {
  content: ''; position: absolute; top: -40%; right: -15%; width: 50%; height: 180%;
  background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 70%); pointer-events: none;
}
.gp-top-hero-inner { position: relative; z-index: 1; }
.gp-top-hero-badge {
  display: inline-block; padding: 4px 20px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 20px;
  font-size: 12px; letter-spacing: 3px; font-weight: 700; margin-bottom: 16px;
}
.gp-top-h1 { font-size: 30px; font-weight: 900; margin: 0 0 14px; line-height: 1.4; }
.gp-top-hero-desc { font-size: 14px; opacity: 0.85; max-width: 600px; margin: 0 auto 24px; line-height: 1.8; }
.gp-top-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.gp-top-section { margin-bottom: 36px; }
.gp-top-h2 { font-size: 22px; font-weight: 800; color: #1a1a2a; margin: 0 0 6px; text-align: center; }
.gp-top-section-desc { font-size: 13px; color: #888; margin: 0 0 20px; text-align: center; }

/* Grade Cards */
.gp-top-grade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gp-top-grade-card {
  display: flex; flex-direction: column; padding: 24px 20px;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
  text-decoration: none; color: #333; transition: all 0.25s; position: relative; overflow: hidden;
  border-top: 4px solid var(--grade-color, #c8102e);
}
.gp-top-grade-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.gp-top-grade-badge {
  display: inline-block; width: fit-content; padding: 4px 14px; border-radius: 6px;
  color: #fff; font-size: 16px; font-weight: 900; letter-spacing: 2px; margin-bottom: 10px;
}
.gp-top-grade-name { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: #1a1a2a; }
.gp-top-grade-scale { font-size: 12px; color: #999; margin: 0 0 8px; }
.gp-top-grade-desc { font-size: 13px; color: #666; margin: 0 0 12px; line-height: 1.6; flex: 1; }
.gp-top-grade-link { font-size: 13px; font-weight: 700; color: var(--grade-color, #c8102e); }

/* Flow */
.gp-top-flow { display: flex; align-items: flex-start; justify-content: center; gap: 8px; flex-wrap: wrap; }
.gp-top-flow-step {
  flex: 1; min-width: 150px; max-width: 200px; text-align: center;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 20px 16px;
}
.gp-top-flow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: #c8102e; color: #fff; border-radius: 50%;
  font-size: 16px; font-weight: 800; margin-bottom: 10px;
}
.gp-top-flow-step h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; color: #1a1a2a; }
.gp-top-flow-step p { font-size: 12px; color: #888; margin: 0; line-height: 1.5; }
.gp-top-flow-arrow { font-size: 24px; color: #ccc; padding-top: 30px; }

/* USP */
.gp-top-usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.gp-top-usp-card {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 24px 20px; text-align: center;
}
.gp-top-usp-icon { font-size: 36px; margin-bottom: 10px; }
.gp-top-usp-card h3 { font-size: 15px; font-weight: 700; color: #1a1a2a; margin: 0 0 6px; }
.gp-top-usp-card p { font-size: 13px; color: #666; margin: 0; line-height: 1.6; }

@media (max-width: 600px) {
  .gp-top-hero { padding: 36px 20px; }
  .gp-top-h1 { font-size: 22px; }
  .gp-top-hero-actions { flex-direction: column; }
  .gp-top-flow { flex-direction: column; align-items: center; }
  .gp-top-flow-arrow { transform: rotate(90deg); padding: 0; }
  .gp-top-flow-step { max-width: 100%; }
}

/* ===== PORTAL (全部門横断) ===== */
.kk-hero { background: linear-gradient(135deg, #0a0a1a 0%, #1a2744 40%, #e8502a 100%); border-radius: 16px; padding: 48px 32px; text-align: center; color: #fff; margin-bottom: 28px; position: relative; overflow: hidden; }
.kk-hero::before { content: ''; position: absolute; top: -40%; right: -15%; width: 50%; height: 180%; background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 70%); pointer-events: none; }
.kk-hero-inner { position: relative; z-index: 1; }
.kk-hero h1 { font-size: 28px; font-weight: 900; margin: 0 0 10px; line-height: 1.4; }
.kk-hero p { font-size: 14px; opacity: 0.85; max-width: 600px; margin: 0 auto; line-height: 1.8; }

.kk-dept-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.kk-dept-tab { padding: 10px 20px; background: #fff; border: 2px solid #e2ddd6; border-radius: 50px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; font-family: inherit; color: #6b7280; display: flex; align-items: center; gap: 6px; }
.kk-dept-tab:hover { border-color: #e8502a; color: #e8502a; }
.kk-dept-tab.active { background: #e8502a; border-color: #e8502a; color: #fff; }
.kk-dept-icon { font-size: 18px; }

.kk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.kk-stat { background: #fff; border: 1px solid #e2ddd6; border-radius: 12px; padding: 16px; text-align: center; }
.kk-stat-val { font-size: 28px; font-weight: 700; color: #1a2744; }
.kk-stat-label { font-size: 11px; color: #6b7280; margin-top: 2px; }

.kk-search-card { background: #fff; border: 1px solid #e2ddd6; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.kk-search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.kk-search-input { flex: 1; padding: 12px 16px; border: 2px solid #e2ddd6; border-radius: 8px; font-size: 15px; color: #333; outline: none; font-family: inherit; transition: border-color .2s; }
.kk-search-input:focus { border-color: #e8502a; }
.kk-search-btn { padding: 12px 24px; background: #e8502a; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .2s; white-space: nowrap; }
.kk-search-btn:hover { background: #c73e1d; }

.kk-filter-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.kk-filter-group label { display: block; font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 4px; }
.kk-filter-select { width: 100%; padding: 9px 12px; border: 1px solid #e2ddd6; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fff; cursor: pointer; }

.kk-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.kk-result-count { font-size: 13px; color: #6b7280; }
.kk-result-count strong { color: #e8502a; font-size: 16px; font-weight: 700; }
.kk-sort-select { padding: 8px 12px; border: 1px solid #e2ddd6; border-radius: 8px; font-size: 13px; background: #fff; font-family: inherit; cursor: pointer; }

.kk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kk-loading { display: flex; align-items: center; justify-content: center; padding: 40px; gap: 10px; color: #aaa; font-size: 14px; }
.kk-empty { text-align: center; padding: 60px 20px; color: #888; }
.kk-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 20px 0; }

@media (max-width: 600px) {
  .kk-hero { padding: 32px 16px; }
  .kk-hero h1 { font-size: 20px; }
  .kk-filter-row { grid-template-columns: 1fr; }
  .kk-search-row { flex-direction: column; }
  .kk-dept-tabs { gap: 6px; }
  .kk-dept-tab { padding: 8px 14px; font-size: 12px; }
}

/* ===== ID UPLOAD ===== */
.gp-id-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.gp-id-tab { padding: 8px 14px; border: 2px solid #e0e0e0; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; color: #888; transition: all 0.2s; }
.gp-id-tab.active { border-color: #c8102e; color: #c8102e; background: #fff5f5; }
.gp-id-tab:hover:not(.active) { border-color: #ccc; }
.gp-id-upload { border: 2px dashed #d0d0d0; border-radius: 12px; padding: 24px; text-align: center; cursor: pointer; transition: all 0.2s; background: #fafafa; }
.gp-id-upload:hover, .gp-id-upload.gp-dragover { border-color: #c8102e; background: #fff5f5; }
.gp-id-upload p { margin: 4px 0; font-size: 13px; color: #666; }
#gpIdPreview { position: relative; display: inline-block; }
.gp-id-remove { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; background: #ef4444; color: #fff; border: 2px solid #fff; border-radius: 50%; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.gp-id-remove:hover { background: #dc2626; }

/* v3.0: メーカー・規格・備考 */
.gp-card-meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.gp-card-maker, .gp-card-spec {
  font-size: 11px; color: #6b7280; background: #f3f4f6;
  padding: 2px 6px; border-radius: 4px; line-height: 1.3;
}
.gp-card-note {
  font-size: 11px; color: #9ca3af; margin: 4px 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 宅配買取 注意事項 同意チェック */
.gp-terms-section { margin: 16px 0; }
.gp-terms-box {
  max-height: 200px; overflow-y: auto;
  padding: 14px 16px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px;
  font-size: 12.5px; line-height: 1.7; color: #374151; white-space: pre-wrap;
}
.gp-terms-check {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 10px 14px;
  background: #fffbeb; border: 1px solid #fbbf24; border-radius: 8px;
  cursor: pointer; user-select: none;
}
.gp-terms-check input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: #c8102e; cursor: pointer; flex-shrink: 0;
}
.gp-terms-check span { font-size: 14px; font-weight: 600; color: #92400e; }
