:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --line: #e5e7eb;
  --line2: #d1d5db;
  --text: #1f2937;
  --muted: #6b7280;
  --hint: #9ca3af;
  --accent: #1593a5;
  --accent-bg: #e3f4f6;
  --cta: #ef8a00;
  --pos: #0f8a5f;
  --pos-bg: #e6f5ee;
  --warn-bg: #fff4e5;
  --warn: #b45309;
  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1080px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

main .page-inner nav {
  margin-bottom: 0px;
}

.text-main-black {
  color: var(--text);
}

a {
  /* color: var(--accent); */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1 {
  color: #000000;
}

/* .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px;
} */

/* header */
/* .topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
} */

.logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.search {
  flex: 1;
  max-width: 480px;
  display: flex;
  border: 1px solid var(--line2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.search input {
  flex: 1;
  border: 0;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}

.search button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
}

.crumbs {
  font-size: 12px;
  color: var(--hint);
  margin: 14px 0 10px;
}

.crumbs span {
  margin: 0 4px;
}

/* hero */
.hero {
  width: 100%;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 20px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .08), 0 10px 24px rgba(15, 23, 42, .09);
}

.hero .photo {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hint);
  font-size: 46px;
}

.hero h1 {
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 700;
}

.hero .meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero .meta b {
  color: var(--text);
  font-weight: 600;
}

.best {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.best .label {
  font-size: 12px;
  color: var(--muted);
}

.best .price {
  font-size: 30px;
  font-weight: 700;
  color: var(--pos);
  letter-spacing: -.5px;
}

.best .src {
  font-size: 12px;
  color: var(--hint);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pos);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
}

/* リッチ商品詳細 */
.gallery {
  width: 340px;
  flex-shrink: 0;
}

.gallery .photo {
  width: 340px;
  height: 340px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  box-sizing: border-box;
}

.gallery .photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thumb.on {
  border-color: var(--accent);
}

.colors {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.colors .lbl {
  font-size: 11px;
  color: var(--muted);
  margin-right: 2px;
}

.colors .sw {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid var(--line2);
  cursor: pointer;
}

.colors .sw.on {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.hero-info {
  flex: 1;
  min-width: 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.bdg {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 4px;
  padding: 3px 9px;
}

.bdg.pr {
  color: var(--accent);
  background: var(--accent-bg);
  font-weight: 600;
}

.spec-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.sc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
}

.sc span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.sc b {
  font-size: 13px;
}

.buyback-summary {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr;
  gap: 10px;
  margin: 14px 0;
}

.bb {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
}

.bb.best {
  background: var(--pos-bg);
}

.bb .k {
  font-size: 11px;
  color: var(--muted);
}

.bb.best .k {
  color: var(--pos);
}

.bb .v {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.2;
}

.bb.best .v {
  color: var(--pos);
}

.bb .v small {
  font-size: 13px;
  font-weight: 400;
}

.bb .v2 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
}

.bb .s {
  font-size: 11px;
  color: var(--hint);
  margin-top: 3px;
}

/* メーカー行 */
.maker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.maker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}

.maker-row .vline {
  width: 1px;
  height: 14px;
  background: var(--line2);
}

.other-colors {
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
}

/* 情報チップ（枠線） */
.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.ic {
  font-size: 12px;
  color: var(--text);
  border: 1px solid var(--line2);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
}

.ic b {
  color: var(--muted);
  font-weight: 600;
  margin-right: 6px;
  font-size: 11px;
}

/* 最高買取価格ボックス */
.price-box {
  border: 1px solid #FBD3BC;
  background: #FFFBF8;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 14px 0;
}

.pb-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.pb-main {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: #c0392b;
}

.pb-main .cur {
  font-size: 24px;
  font-weight: 700;
  position: relative;
  top: -4px;
}

.pb-main .num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.05;
}

.pb-delta {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pos);
  background: var(--pos-bg);
  border-radius: 999px;
  padding: 4px 12px;
}

.pb-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.pb-meta .dot {
  color: var(--pos);
  font-size: 6px;
}

.pb-meta b {
  color: var(--text);
}

.pb-shop {
  color: var(--text);
}

/* CTA行 */
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 10px;
}

.cta-row .cta {
  margin: 0;
  font-size: 12px;
}

.cta-row a.cta {
  text-decoration: none;
}

.cta-row a.cta:hover {
  text-decoration: none;
}

.cta.primary {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--line2);
  font-weight: 600;
}

.cta.primary:hover {
  background: var(--accent-bg);
}

.cta.ghost {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--line2);
}

.cta.ghost:hover {
  background: var(--accent-bg);
}

/* アクション行 */
.actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  cursor: pointer;
}

.act:hover {
  border-color: var(--line2);
  color: var(--text);
}

/* condition summary strip */
.ranks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 14px 0 0;
}

.ranks .cell {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
}

.ranks .cell .r {
  font-size: 11px;
  color: var(--muted);
}

.ranks .cell .v {
  font-size: 15px;
  font-weight: 700;
}

/* セクション（縦積み） */
.panel {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 18px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .06), 0 8px 20px rgba(15, 23, 42, .07);
}

.sec-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.sec-title .bar {
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

/* filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 14px;
}

.filters .grp {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.legend {
  flex-basis: 100%;
  width: 100%;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.legend dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  margin: 0;
  font-size: 12px;
  align-items: baseline;
}

.legend dt {
  font-weight: 700;
  color: var(--pos);
  text-align: center;
}

.legend dd {
  margin: 0;
  color: var(--text);
}

.filters .lbl {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.chip {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.chip.on {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.sep {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 2px;
}

/* 状態の定義ポップアップ */
.condition-modal[aria-hidden="true"] {
  display: none;
}

.condition-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.condition-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 55, .42);
}

.condition-modal-dialog {
  position: relative;
  width: min(520px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .22);
  padding: 18px 20px 20px;
}

.condition-modal-dialog h3 {
  font-size: 16px;
  margin: 0 32px 14px 0;
}

.condition-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.condition-modal-close:hover {
  background: var(--line);
  color: var(--text);
}

.condition-legend-list {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px 12px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.condition-legend-list dt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 700;
}

.condition-legend-list dd {
  margin: 0;
  color: var(--text);
}

/* comparison table — 既存コンポーネントを踏襲 */
table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

@media (min-width:641px) {
  table.cmp {
    border-collapse: separate;
    border-spacing: 0 8px;
  }
}

table.cmp thead th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line2);
}

table.cmp thead th.sortable {
  cursor: pointer;
}

table.cmp thead th.sortable:hover {
  color: var(--accent);
}

table.cmp thead th .ar {
  font-size: 10px;
  color: var(--hint);
}

table.cmp tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

/* 主要値を同じ高さの枠に入れ、その下のフラグ位置を揃える */
.cellstack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cellstack .mainval {
  height: 32px;
  display: flex;
  align-items: center;
  line-height: 1;
}

table.cmp tbody tr:hover {
  background: #fbfbfc;
}

/* 順位 */
.rk {
  text-align: center;
  line-height: 1;
}

.rank-circle {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--hint);
}

.rank-circle.g1 {
  background: #d6b334;
}

.rank-circle.g2 {
  background: #9aa3ad;
}

.rank-circle.g3 {
  background: #cd8e52;
}

.rank-circle.gother {
  background: var(--bg);
  color: var(--muted);
}

/* 最高値の行を淡くハイライト */
table.cmp tbody tr.row-highest {
  background: #fffaf0;
}

table.cmp tbody tr.row-highest:hover {
  background: #fff6e6;
}

/* 買取価格（主役：大きく・赤） */
.price-cell {
  white-space: nowrap;
  text-align: left;
}

.price-cell .price-inner {
  display: flex;
}

.price-cell .amt {
  color: #c0392b;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.5px;
  position: relative;
  top: -3px;
}

.price-cell .amt img {
  max-width: none;
}

.price-cell .yen {
  color: #c0392b;
  font-size: 13px;
  font-weight: 400;
  margin-left: 2px;
}

.highest-label {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff2c7;
  color: #b88700;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.upd-line {
  font-size: 11px;
  color: var(--hint);
  font-weight: 400;
  margin-top: 6px;
  white-space: nowrap;
}

/* 状態（選択中の状態を1つ表示＋備考あり） */
.condcell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.cond-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

/* クリック誘導フラグ（備考あり／コメントあり） */
.flag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-bg);
  border: 0;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  white-space: nowrap;
}

.flag:hover {
  text-decoration: underline;
}

/* ショップメッセージ（一覧に常時表示） */
.shopmsg {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  margin-top: 4px;
}

/* 買取方法（軽いテキスト） */
.methods {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.methods .m {
  font-size: 12px;
  color: var(--accent);
}

.methods .m.off {
  color: var(--line2);
  text-decoration: line-through;
}

/* ショップ列（名前を先頭に上揃え） */
table.cmp td.shop-td {
  vertical-align: top;
}

.shopcell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
}

.shopcell .name {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.shopcell .name .upd {
  font-size: 11px;
  color: var(--hint);
  font-weight: 400;
  white-space: nowrap;
}

.shop-name-link {
  color: inherit;
  text-decoration: none;
}

.shop-name-link:hover {
  text-decoration: underline;
}

.txt {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  margin: 3px 0 0;
}

.txt .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
  white-space: nowrap;
}

.tag-pr {
  background: var(--accent-bg);
  color: var(--accent);
}

.tag-cond {
  background: #eef7f2;
  color: #1593a5;
  font-weight: normal;
}

.tag-cmt {
  background: #eef7f2;
  color: #1593a5;
  font-weight: normal;
}

/* 折りたたみトグル（状態の定義 凡例で使用） */
.toggle {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
  margin-top: 4px;
}

.toggle:hover {
  text-decoration: underline;
}

.details {
  margin-top: 2px;
}

/* 行クリックで全幅展開（アコーディオン） */
table.cmp tbody tr.expandable {
  cursor: pointer;
}

.chev {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  transition: transform .15s;
}

table.cmp tbody tr.open .chev {
  transform: rotate(180deg);
}

.detail-row>td {
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

table.cmp tbody tr.detail-row:hover {
  background: transparent;
}

.detailpanel {
  position: relative;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  margin: 8px 12px 16px;
  width: fit-content;
}

.detailpanel::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 220px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-left: 1px solid #D1D5DB;
  border-top: 1px solid #D1D5DB;
  transform: rotate(45deg);
}

.detailpanel dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  margin: 0;
  max-width: 680px;
  font-size: 12px;
  line-height: 1.5;
  align-items: start;
}

.detailpanel dd {
  margin: 0;
  color: var(--text);
}

/* 操作列（右端CTA） */
.actioncell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.btn-official {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--cta) 0%, #f49a18 100%);
  border: 0;
  border-radius: 10px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: .01em;
  transition: all .15s;
  box-shadow: 0 1px 2px rgba(239, 138, 0, .35), 0 6px 16px -4px rgba(239, 138, 0, .4);
}

.btn-official:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(239, 138, 0, .45), 0 12px 22px -4px rgba(239, 138, 0, .5);
  text-decoration: none;
}

.btn-official:active {
  transform: translateY(0);
}

.actioncell .upd {
  font-size: 11px;
  color: var(--hint);
}

.note {
  font-size: 11px;
  color: var(--hint);
  margin-top: 10px;
}

/* ページング */
.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.pg {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line2);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
}

.pg.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.pg:disabled {
  opacity: .4;
  cursor: default;
}

.pg:hover:not(.on):not(:disabled) {
  background: var(--accent-bg);
}

.pg-ellipsis {
  min-width: 24px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hint);
  font-size: 13px;
}

/* secondary blocks */
.two {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.card h3 {
  font-size: 14px;
  margin: 0 0 10px;
}

/* 買取価格推移グラフ */
.trend-card h2 {
  text-align: center;
  font-size: 16px;
}

.seg {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin: 6px 0 14px;
}

.seg button {
  flex: 1;
  border: 0;
  background: none;
  padding: 8px 6px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.seg button.on {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.trend-chart {
  position: relative;
}

.trend-chart .zoom {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 16px;
  color: var(--hint);
  cursor: pointer;
}

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

table.spec td {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

table.spec td:first-child {
  color: var(--muted);
}

table.spec td:last-child {
  text-align: right;
}

.assessment-articles {
  display: flex;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 18px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .06), 0 8px 20px rgba(15, 23, 42, .07);
}

/* .assessment-articles {
  display: flex;
  margin-bottom: 77px;
} */

.assessment-articles .assessment-results {
  width: 50%;
}

.assessment-articles .assessment-results ul>li {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  margin-bottom: 10px;
}

.assessment-articles .assessment-results ul>li .left {
  width: 89px;
  text-align: center;
  margin-right: 48px;
}

.assessment-articles .assessment-results ul>li .right {
  flex: 1;
}

.assessment-articles .assessment-results ul>li:first-child {
  font-weight: bold;
  text-align: center;
  padding: 9px 16px 10px;
  background-color: #F8F8F8;
}

.assessment-articles .assessment-results ul>li:last-child {
  margin-bottom: 0;
}

.assessment-articles .feature-articles {
  width: 50%;
  padding-left: 20px;
}

.assessment-articles .feature-articles ul>li {
  display: flex;
  padding: 16px 7px 16px 13px;
  border-bottom: 1px solid #8588A1;
}

.assessment-articles .feature-articles ul>li:first-child {
  padding-top: 0;
}

.assessment-articles .feature-articles ul>li .left-img {
  flex-shrink: 0;
  width: 101px;
  margin-right: 16px;
}

.assessment-articles .feature-articles ul>li .right-text {
  flex: 1;
  width: calc(100% - 117px);
}

.assessment-articles .feature-articles ul>li .right-text .title {
  font-size: 20px;
  font-weight: bold;
  line-height: 24px;
  color: #454545;
  margin-bottom: 7px;
}

.assessment-articles .feature-articles ul>li .right-text .date {
  font-size: 14px;
  margin-top: 6px;
}

@media(max-width:760px) {

  .two {
    grid-template-columns: 1fr;
  }

  .ranks {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    flex-direction: column;
  }

  .gallery {
    width: 100%;
  }

  .gallery .photo {
    width: 100%;
    height: 180px;
  }

  .spec-chips {
    grid-template-columns: repeat(2, 1fr);
  }

  .buyback-summary {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 8px 10px;
  }

  .assessment-articles {
    flex-direction: column;
  }

  .assessment-articles .assessment-results {
    width: 100%;
    margin-bottom: 48px;
  }

  .assessment-articles .assessment-results ul>li:first-child {
    display: none;
  }

  .assessment-articles .assessment-results ul>li {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 16px;
    margin-bottom: 0;
    border-bottom: 1px solid #DFE3E6;
  }

  .assessment-articles .assessment-results ul>li .left {
    width: auto;
    font-weight: bold;
    margin-right: 0;
    margin-bottom: 4px;
  }

  .assessment-articles .feature-articles {
    width: 100%;
    padding-left: 0;
  }

  .assessment-articles .feature-articles ul>li:first-child,
  .assessment-articles .feature-articles ul>li {
    padding: 12px 16px;
    flex-direction: column;
  }

  .assessment-articles .feature-articles ul>li .left-img {
    display: flex;
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .assessment-articles .feature-articles ul>li .left-img a:first-child {
    flex-shrink: 0;
    margin-right: 8px;
  }

  .assessment-articles .feature-articles ul>li .left-img img {
    width: 46px;
    height: 37px;
  }

  .assessment-articles .feature-articles ul>li .left-img a:last-child {
    text-decoration: none;
  }

  .assessment-articles .feature-articles ul>li .left-img .title {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
  }

  .assessment-articles .feature-articles ul>li .right-text {
    width: 100%;
  }

  .assessment-articles .feature-articles ul>li .right-text .date {
    margin-top: 4px;
  }
}

/* スマホ：ランキング表をカード化 */
@media(max-width:640px) {
  /* .wrap {
    padding: 10px;
  } */

  .pg {
    min-width: 30px;
    height: 30px;
  }

  .panel {
    padding: 12px;
  }

  .sec-title {
    font-size: 16px;
  }

  .sep {
    display: none;
  }

  table.cmp thead {
    display: none;
  }

  table.cmp,
  table.cmp tbody {
    display: block;
    width: 100%;
  }

  table.cmp tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 10px 12px;
    overflow: hidden;
  }

  table.cmp tr.row-highest {
    border-color: #f5b400;
    background: #fffaf0;
  }

  table.cmp td {
    display: block;
    border: none;
    padding: 5px 0;
  }

  table.cmp tr.row-highest td:first-child {
    border-left: 0;
  }

  /* 順位＋買取価格を横並び */
  table.cmp td.rk {
    float: left;
    width: 30%;
    text-align: center;
    padding-top: 4px;
  }

  table.cmp td.price-cell {
    float: left;
    width: 70%;
  }

  table.cmp td:nth-child(3) {
    clear: both;
    padding-top: 10px;
  }

  /* 見出しラベルを補う */
  table.cmp td:nth-child(3)::before {
    content: "状態";
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 4px;
  }

  table.cmp td:nth-child(5)::before {
    content: "買取方法";
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 4px;
  }

  .methods {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* 公式サイトを全幅CTAに */
  .actioncell {
    align-items: stretch;
  }

  .btn-official {
    width: 100%;
    text-align: center;
    padding: 11px;
    font-size: 13px;
  }

  .actioncell .upd {
    text-align: right;
  }

  table.cmp tr.row-highest {
    padding: 26px 34px 22px;
    border-radius: 16px;
  }

  table.cmp tr.row-highest::after {
    content: "";
    display: block;
    clear: both;
  }

  table.cmp tr.row-highest td.rk {
    float: left;
    width: 86px;
    text-align: left;
    padding: 0 0 8px;
  }

  table.cmp tr.row-highest .rank-circle {
    width: 58px;
    height: 58px;
    border: 4px solid #ffd24a;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
    font-size: 22px;
    font-weight: 400;
    background: #f5b400;
  }

  table.cmp tr.row-highest td.price-cell {
    float: left;
    width: calc(100% - 86px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 8px;
  }

  table.cmp tr.row-highest .price-cell .amt {
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    color: #c0392b;
    letter-spacing: 0;
  }

  table.cmp tr.row-highest .price-cell .yen {
    font-size: 15px;
    color: #c0392b;
    margin-left: 0;
  }

  table.cmp tr.row-highest .highest-label {
    margin-left: 14px;
    padding: 7px 10px;
    border-radius: 7px;
    background: #ffe3a1;
    color: #a46f00;
    font-size: 12px;
    font-weight: 600;
  }

  table.cmp tr.row-highest td:nth-child(3) {
    clear: both;
    padding-top: 8px;
  }

  table.cmp tr.row-highest td:nth-child(3)::before {
    display: none;
    content: none;
  }

  table.cmp tr.row-highest .cellstack {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  table.cmp tr.row-highest .cellstack .mainval {
    height: auto;
  }

  table.cmp tr.row-highest .cond-badge {
    min-width: 66px;
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 400;
  }

  table.cmp tr.row-highest .flag {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 7px;
    font-size: 18px;
    font-weight: 400;
    background: #dff5f8;
    color: #1593a5;
    text-decoration: none;
  }

  table.cmp tr.row-highest td.shop-td {
    clear: both;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  table.cmp tr.row-highest .shopcell .name {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
  }

  table.cmp tr.row-highest .shopcell .name .upd {
    font-size: 16px;
    color: var(--hint);
    font-weight: 400;
  }

  table.cmp tr.row-highest .shopmsg {
    font-size: 18px;
    line-height: 1.8;
    margin-top: 14px;
  }

  table.cmp tr.row-highest td:nth-child(5) {
    float: left;
    width: 44%;
    padding-top: 8px;
  }

  table.cmp tr.row-highest td:nth-child(5)::before {
    content: "買取方法";
    display: block;
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 14px;
  }

  table.cmp tr.row-highest .methods {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }

  table.cmp tr.row-highest .methods .m {
    font-size: 18px;
    font-weight: 400;
  }

  table.cmp tr.row-highest td:nth-child(6) {
    float: right;
    width: 45%;
    padding-top: 8px;
  }

  table.cmp tr.row-highest .actioncell {
    align-items: stretch;
  }

  table.cmp tr.row-highest .btn-official {
    width: 100%;
    height: 58px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 400;
  }

  table.cmp tr:not(.detail-row) {
    padding: 16px;
    border-radius: 16px;
    background: #fff;
  }

  table.cmp tr:not(.detail-row)::after {
    content: "";
    display: block;
    clear: both;
  }

  table.cmp tr:not(.detail-row) td.rk {
    float: left;
    width: 50px;
    text-align: left;
    padding: 0 0 8px;
  }

  table.cmp tr:not(.detail-row) .rank-circle {
    width: 58px;
    height: 58px;
    border: 4px solid rgba(255, 255, 255, .45);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .14);
    font-size: 22px;
    font-weight: 400;
  }

  table.cmp tr:not(.detail-row) td.price-cell {
    float: left;
    width: calc(100% - 86px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 8px;
  }

  table.cmp tr:not(.detail-row) .price-cell .amt {
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    color: #c0392b;
    letter-spacing: 0;
  }

  table.cmp tr:not(.detail-row) .price-cell .yen {
    font-size: 15px;
    color: #c0392b;
    margin-left: 0;
  }

  table.cmp tr:not(.detail-row) td:nth-child(3) {
    clear: both;
    padding-top: 8px;
  }

  table.cmp tr:not(.detail-row) td:nth-child(3)::before {
    display: none;
    content: none;
  }

  table.cmp tr:not(.detail-row) .cellstack {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  table.cmp tr:not(.detail-row) .cellstack .mainval {
    height: auto;
  }

  table.cmp tr:not(.detail-row) .cond-badge {
    min-width: 66px;
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 400;
  }

  table.cmp tr:not(.detail-row) .flag {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 7px;
    font-size: 18px;
    font-weight: 400;
    background: #dff5f8;
    color: #1593a5;
    text-decoration: none;
  }

  table.cmp tr:not(.detail-row) td.shop-td {
    clear: both;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  table.cmp tr:not(.detail-row) .shopcell .name {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
  }

  table.cmp tr:not(.detail-row) .shopcell .name .upd {
    font-size: 16px;
    color: var(--hint);
    font-weight: 400;
  }

  table.cmp tr:not(.detail-row) .shopmsg {
    font-size: 18px;
    line-height: 1.8;
    margin-top: 14px;
  }

  table.cmp tr:not(.detail-row) td:nth-child(5) {
    float: left;
    width: 44%;
    padding-top: 8px;
  }

  table.cmp tr:not(.detail-row) td:nth-child(5)::before {
    content: "買取方法";
    display: block;
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 14px;
  }

  table.cmp tr:not(.detail-row) .methods {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }

  table.cmp tr:not(.detail-row) .methods .m {
    font-size: 18px;
    font-weight: 400;
  }

  table.cmp tr:not(.detail-row) td:nth-child(6) {
    float: right;
    width: 45%;
    padding-top: 8px;
  }

  table.cmp tr:not(.detail-row) .actioncell {
    align-items: stretch;
  }

  table.cmp tr:not(.detail-row) .btn-official {
    width: 100%;
    height: 58px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 400;
  }

  table.cmp tr.row-highest {
    background: #fffaf0;
    border-color: #f5b400;
  }

  table.cmp tr.row-highest .rank-circle {
    background: #d6b334;
  }

  table.cmp tr:not(.detail-row) .rank-circle {
    width: 32px;
    height: 32px;
    border: 0;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
  }

  table.cmp tr:not(.detail-row) .price-cell .amt {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.5px;
  }

  table.cmp tr:not(.detail-row) .price-cell .yen {
    font-size: 13px;
  }

  table.cmp tr:not(.detail-row) .highest-label {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
  }

  table.cmp tr:not(.detail-row) .cond-badge {
    min-width: auto;
    height: auto;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
  }

  table.cmp tr:not(.detail-row) .flag {
    min-height: auto;
    font-size: 11px;
    font-weight: 400;
    padding: 2px 8px;
    border-radius: 4px;
  }

  table.cmp tr:not(.detail-row) .shopcell .name {
    font-size: 15px;
    font-weight: 700;
  }

  table.cmp tr:not(.detail-row) .shopcell .name .upd {
    font-size: 11px;
  }

  table.cmp tr:not(.detail-row) .shopmsg {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
  }

  table.cmp tr:not(.detail-row) .methods {
    flex-wrap: nowrap;
    gap: 12px;
  }

  table.cmp tr:not(.detail-row) .methods .m {
    font-size: 12px;
    white-space: nowrap;
  }

  table.cmp tr:not(.detail-row) .btn-official {
    height: auto;
    font-size: 13px;
    font-weight: 700;
    padding: 11px;
    border-radius: 10px;
  }

  table.cmp tbody td,
  table.cmp tr:not(.detail-row) td,
  table.cmp tr.row-highest td {
    border-bottom: 0;
  }

  /* 詳細行 */
  table.cmp tr.detail-row {
    padding: 0;
    border: 0;
    background: transparent;
    margin-bottom: 12px;
  }

  table.cmp tr.detail-row td {
    display: block;
    width: auto;
    padding: 0;
  }

  .detailpanel {
    padding: 12px;
    margin: 8px 0 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #ffffff;
  }

  .detailpanel::before {
    left: 56px;
  }
}

/* Shared trend chart component */
/* .trend-chart-card {
  padding: 16px;
}

.trend-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.trend-chart-head .sec-title {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}

.trend-chart-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.trend-range-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 8px;
  background: #eeeeee;
}

.trend-range-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  outline: 0;
  background: transparent;
  color: #222222;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.trend-range-tabs button:hover,
.trend-range-tabs button:focus-visible {
  background: #f8fafc;
  box-shadow: inset 0 0 0 2px rgba(18, 164, 186, 0.35);
}

.trend-range-tabs button.active,
.trend-range-tabs button.on {
  background: #ffffff;
  color: #111111;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
}

.trend-chart-plot {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #fafbfc);
  overflow: auto;
}

.trend-chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.trend-chart-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: #12a4ba;
  box-shadow: 0 0 0 3px rgba(18, 164, 186, 0.15);
  vertical-align: middle;
}

.trend-chart-plot svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
}

.trend-grid line {
  stroke: #eef2f7;
  stroke-width: 1.2;
}

.trend-axis-labels text {
  fill: #94a3b8;
  font-size: 14px;
  font-weight: 400;
}

.trend-y-labels text {
  text-anchor: start;
}

.trend-x-labels text {
  text-anchor: middle;
}

.trend-area-path {
  fill: url("#product-trend-area-gradient");
}

.trend-line-path {
  fill: none;
  stroke: #12a4ba;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 8px rgba(18, 164, 186, 0.18));
}

.trend-point-layer circle {
  fill: #ffffff;
  stroke: #12a4ba;
  stroke-width: 2.4;
}

.trend-point {
  cursor: pointer;
  outline: none;
}

.trend-point-layer .trend-point-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
  pointer-events: all;
}

.trend-point-layer .trend-point-dot {
  fill: #ffffff;
  stroke: #12a4ba;
  stroke-width: 2.4;
}

.trend-point-tooltip {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

.trend-point:hover .trend-point-tooltip,
.trend-point:focus .trend-point-tooltip,
.trend-point:focus-within .trend-point-tooltip {
  opacity: 1;
  visibility: visible;
}

.trend-tooltip-box {
  fill: #d8f5f8;
  stroke: #bde8ee;
  stroke-width: 1;
}

.trend-tooltip-text {
  fill: #0b5663;
  font-size: 14px;
  font-weight: 400;
}

.trend-chart-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #e5e7eb;
}

.trend-chart-stats .stat {
  padding: 0 16px;
  border-right: 1px solid #e5e7eb;
}

.trend-chart-stats .stat:first-child {
  padding-left: 4px;
}

.trend-chart-stats .stat:last-child {
  border-right: 0;
}

.trend-chart-stats span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.trend-chart-stats span span {
  display: inline;
}

.trend-chart-stats strong {
  display: block;
  margin-top: 4px;
  color: #333333;
  font-size: 20px;
  line-height: 1.2;
}

.trend-chart-stats .trend-diff {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.trend-chart-stats .trend-diff.is-positive {
  color: #1f9d55;
}

.trend-chart-stats .trend-diff.is-negative {
  color: #d75a7a;
}

.trend-chart-stats .stat:first-child strong {
  color: #c94b38;
} */

@media (max-width: 767px) {
  /* .trend-card.trend-chart-card {
    padding: 12px 10px 16px;
  }

  .trend-chart-head {
    display: block;
    margin-bottom: 12px;
  }

  .trend-chart-head .sec-title {
    text-align: left;
    color: var(--accent);
    font-size: 16px;
    line-height: 1.4;
  }

  .trend-chart-head p {
    display: none;
  }

  .trend-range-tabs {
    gap: 3px;
    margin-bottom: 10px;
    padding: 3px;
    border-radius: 8px;
  }

  .trend-range-tabs button {
    min-height: 30px;
    border-radius: 4px;
    font-size: 10px;
  }

  .trend-chart-plot {
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .trend-chart-legend {
    display: none;
  }

  .trend-chart-plot svg {
    min-height: 0;
    max-width: 100%;
  }

  .trend-chart-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 14px;
    padding-top: 0;
    border-top: 1px solid #e1e5ea;
  }

  .trend-chart-stats .stat {
    padding: 12px 10px 10px;
    border-right: 0;
  }

  .trend-chart-stats .stat:nth-child(2n) {
    border-left: 1px solid #e1e5ea;
  }

  .trend-chart-stats .stat:nth-child(n+3) {
    border-top: 1px solid #e1e5ea;
  }

  .trend-chart-stats span {
    font-size: 12px;
    letter-spacing: 0;
  }

  .trend-chart-stats strong {
    margin-top: 5px;
    font-size: 20px;
    line-height: 1.2;
  } */
}

/* Smartphone ranking cards: PC keeps table, SP uses semantic cards rendered from same data */
.mobile-rank-list {
  display: none;
}

@media(max-width:640px) {
  table.cmp {
    display: none;
  }

  .mobile-rank-list {
    display: block;
  }

  .mobile-rank-card {
    display: block;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    margin-bottom: 12px;
    padding: 16px;
    overflow: visible;
  }

  .mobile-rank-card.row-highest {
    border-color: #f5b400;
    background: #fffaf0;
  }

  .mobile-rank-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
  }

  .mobile-rank-place {
    width: 50px;
    flex: 0 0 50px;
    line-height: 1;
  }

  .mobile-rank-card .rank-circle {
    width: 32px;
    height: 32px;
    border: 0;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-rank-card.row-highest .rank-circle {
    background: #d6b334;
  }

  .mobile-rank-price {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }

  .mobile-rank-price .amt {
    color: #c0392b;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.5px;
    line-height: 1;
  }

  .mobile-rank-price .yen {
    color: #c0392b;
    font-size: 13px;
    font-weight: 400;
  }

  .mobile-rank-price .highest-label {
    margin-left: 8px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .mobile-rank-condition {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 8px;
  }

  .mobile-rank-card .cond-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    line-height: 1;
  }

  .mobile-rank-card .flag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--accent);
    background: var(--accent-bg);
    border: 0;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    white-space: nowrap;
  }

  .mobile-rank-shop {
    padding: 8px 0;
  }

  .mobile-rank-shop .name {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
  }

  .mobile-rank-shop .upd {
    font-size: 11px;
    color: var(--hint);
    font-weight: 400;
    white-space: nowrap;
  }

  .mobile-rank-shop .shopmsg {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
    color: var(--text);
  }

  .mobile-rank-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding-top: 8px;
  }

  .mobile-method-label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px;
  }

  .mobile-rank-card .methods {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
  }

  .mobile-rank-card .methods .m {
    font-size: 12px;
    color: var(--accent);
    white-space: nowrap;
  }

  .mobile-rank-card .methods .m.off {
    color: var(--line2);
    text-decoration: line-through;
  }

  .mobile-rank-card .btn-official {
    width: 45%;
    min-width: 132px;
    height: auto;
    padding: 11px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-detailpanel {
    position: relative;
    padding: 12px;
    margin: 8px 0 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #fff;
  }

  .mobile-detailpanel::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 56px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid #D1D5DB;
    border-top: 1px solid #D1D5DB;
    transform: rotate(45deg);
  }

  .mobile-detailpanel dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 12px;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    align-items: start;
  }

  .mobile-detailpanel dd {
    margin: 0;
    color: var(--text);
  }
}