/* ===========================================================
   GGDB table.css — Redesign v3.0
   白＋オレンジブランドを維持しつつ、視認性・UIを大幅向上
   =========================================================== */

:root {
  --ggj-accent:        #e07a1a;
  --ggj-accent-dark:   #c5660d;
  --ggj-accent-light:  #eff6ff;
  --ggj-accent-mid:    #dbeafe;

  /* Surface */
  --ggj-bg:            #ffffff;
  --ggj-surface:       #ffffff;
  --ggj-surface-2:     #ffffff;
  --ggj-border:        #e5e7eb;
  --ggj-border-light:  #eef2f7;

  /* Text */
  --ggj-text:          #111111;
  --ggj-text-2:        #555555;
  --ggj-text-3:        #999999;

  /* Table header */
  --ggj-header-bg:     #1e2533;
  --ggj-header-text:   #d4d8e2;

  /* Rank colors */
  --ggj-rank-ss-bg:    #7f1d1d;
  --ggj-rank-s-bg:     #dc2626;
  --ggj-rank-a-bg:     #e07a1a;
  --ggj-rank-b-bg:     #0f766e;
  --ggj-rank-c-bg:     #1d4ed8;
  --ggj-rank-d-bg:     #6d28d9;
  --ggj-rank-e-bg:     #be185d;
  --ggj-rank-f-bg:     #374151;

  /* Status colors */
  --ggj-green:         #16a34a;
  --ggj-red:           #dc2626;
  --ggj-video-red:     #e53935;

  /* Shadows */
  --ggj-shadow-sm:     0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --ggj-shadow-md:     0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --ggj-shadow-lg:     0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --ggj-shadow-orange: 0 4px 20px rgba(224,122,26,0.18);

  /* Radius */
  --ggj-radius-sm:     0;
  --ggj-radius-md:     0;
  --ggj-radius-lg:     0;
  --ggj-radius-pill:   0;

  /* Transitions */
  --ggj-ease:          cubic-bezier(0.2, 0, 0, 1);
}

/* ===========================================================
   ROOT / 使い方アコーディオン
   =========================================================== */
.ggj-device-db {
  font-family: inherit;
  color: var(--ggj-text);
}

.ggj-device-db__header {
  margin-bottom: 1.25rem;
}

.ggj-device-db__affiliate-note {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ggj-text-2);
}

.ggj-device-db__usage {
  background: var(--ggj-surface);
  border: 1px solid var(--ggj-border);
  border-radius: var(--ggj-radius-md);
  overflow: hidden;
  box-shadow: var(--ggj-shadow-sm);
}

.ggj-device-db__usage summary {
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ggj-text-2);
  transition: background 0.15s;
  outline: none;
}
.ggj-device-db__usage summary::-webkit-details-marker { display: none; }
.ggj-device-db__usage summary::before {
  content: "▼";
  font-size: 0.6rem;
  transition: transform 0.2s var(--ggj-ease);
  color: var(--ggj-accent);
}
.ggj-device-db__usage[open] summary::before { transform: rotate(180deg); }
.ggj-device-db__usage summary:hover { background: var(--ggj-surface-2); }

.ggj-device-db__usage-content {
  padding: 1rem 1.4rem 1.2rem;
  border-top: 1px solid var(--ggj-border-light);
  background: var(--ggj-surface-2);
}
.ggj-device-db__usage-content ul {
  margin: 0; padding: 0 0 0 1.2rem; list-style: disc;
}
.ggj-device-db__usage-content li {
  margin-bottom: 0.45rem; font-size: 0.83rem;
  color: var(--ggj-text-2); line-height: 1.5;
}
.ggj-device-db__usage-content li:last-child { margin-bottom: 0; }

/* ===========================================================
   フィルターカード
   =========================================================== */
.ggj-device-db__filters-card {
  background: var(--ggj-surface);
  border-radius: var(--ggj-radius-md);
  border: 1px solid var(--ggj-border);
  box-shadow: var(--ggj-shadow-md);
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
}

.ggj-device-db__filters-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ggj-text-2);
  text-transform: none;
  letter-spacing: 0.08em;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  cursor: pointer;
}
.ggj-device-db__filters-title::-webkit-details-marker { display: none; }
.ggj-device-db__filter-chevron { margin-left: auto; color: #667085; font-size: 0.68rem; transition: transform 0.18s; }
.ggj-device-db__filters-card[open] .ggj-device-db__filter-chevron { transform: rotate(180deg); }
.ggj-device-db__filter-count { border: 1px solid #d7dbe0; border-radius: 999px; padding: 0.1rem 0.45rem; color: #1e2533; font-size: 0.72rem; }
.ggj-device-db__filter-count[hidden] { display: none; }

.ggj-filters-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--ggj-accent-light);
  color: var(--ggj-accent);
  border-radius: 0;
}
.ggj-filters-icon svg { display: block; }

.ggj-device-db__filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  border: none; background: transparent;
  padding: 0.75rem 0 0; box-shadow: none;
}
.ggj-device-db__filter-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.55rem 0.7rem; width: 100%; margin: 0; padding: 0; border: 0; min-width: 0; }
.ggj-device-db__filter-group legend { display: block; width: 100%; padding: 0 0 0.35rem; color: #667085; font-size: 0.75rem; font-weight: 700; }
.ggj-device-db__field { min-width: 0; }

.ggj-device-db__field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ggj-text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
  display: block;
}

.ggj-device-db__field select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--ggj-surface-2);
  border: 1.5px solid var(--ggj-border);
  border-radius: var(--ggj-radius-sm);
  padding: 0.4rem 2rem 0.4rem 0.65rem;
  font-size: 0.88rem;
  color: var(--ggj-text);
  width: 100%;
  font-weight: 500;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23aaa" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.ggj-device-db__field select:hover { border-color: #c8c8c0; }
.ggj-device-db__field select:focus {
  outline: none;
  border-color: var(--ggj-accent);
  box-shadow: 0 0 0 3px rgba(224,122,26,0.12);
}
.ggj-device-db__field select.is-visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ggj-device-db__filter-choices { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ggj-device-db__filter-choices button { border: 1px solid var(--ggj-border); border-radius: 999px; background: #fff; color: var(--ggj-text-2); padding: 0.34rem 0.62rem; font-size: 0.76rem; font-weight: 650; line-height: 1.25; cursor: pointer; }
.ggj-device-db__filter-choices button:hover { border-color: var(--ggj-text); }
.ggj-device-db__filter-choices button[aria-pressed="true"] { background: var(--ggj-text); border-color: var(--ggj-text); color: #fff; }
.ggj-mouse-filter-open { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; height: 40px; padding: 0 1rem; border: 1px solid #1e2533; border-radius: 999px; background: #1e2533; color: #fff; font-size: 0.82rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.ggj-mouse-filter-open:hover { background: #354055; }
.ggj-mouse-filter-open [data-mouse-filter-count] { display: inline-grid; place-items: center; min-width: 1.2rem; height: 1.2rem; border-radius: 999px; background: #fff; color: #1e2533; font-size: 0.68rem; }
.ggj-mouse-filter-open [hidden] { display: none; }
.ggj-mouse-filter-overlay { position: fixed; inset: 0; z-index: 99998; background: #10192366; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s, visibility 0.2s; }
.ggj-mouse-filter-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.ggj-mouse-filter-drawer { position: fixed; left: 0; top: 0; bottom: 0; z-index: 99999; box-sizing: border-box; display: flex; flex-direction: column; width: min(410px, 94vw); background: #fff; box-shadow: 12px 0 32px #10192325; transform: translateX(-105%); visibility: hidden; transition: transform 0.25s cubic-bezier(.2,.8,.2,1), visibility 0.25s; }
.ggj-mouse-filter-drawer.is-open { transform: translateX(0); visibility: visible; }
.ggj-mouse-filter-head { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 20px; border-bottom: 1px solid #e6e9ed; }
.ggj-mouse-filter-head strong { font-size: 1rem; }
.ggj-mouse-filter-close { border: 0; background: transparent; color: #1e2533; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.ggj-mouse-filter-body { min-height: 0; overflow-y: auto; padding: 0 20px; overscroll-behavior: contain; }
.ggj-mouse-filter-drawer .ggj-device-db__filters { display: block; padding: 0; }
.ggj-mouse-filter-drawer .ggj-device-db__filter-group { display: block; padding: 0; }
.ggj-mouse-filter-drawer .ggj-device-db__filter-group legend { padding: 0.85rem 0 0; font-size: 0.7rem; letter-spacing: 0.08em; }
.ggj-mouse-filter-drawer .ggj-device-db__field { padding: 0.95rem 0; border-bottom: 1px solid #e9edf0; }
.ggj-mouse-filter-drawer .ggj-device-db__field > label { margin: 0 0 0.65rem; color: #1e2533; font-size: 0.8rem; letter-spacing: 0; text-transform: none; }
.ggj-mouse-filter-drawer select[data-filter] { display: none; }
.ggj-mouse-filter-options { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ggj-mouse-filter-choice { display: inline-flex !important; position: relative; align-items: center; margin: 0 !important; padding: 0.43rem 0.72rem; border: 1px solid #dce1e6; border-radius: 7px; background: #fff; color: #334155 !important; font-size: 0.75rem !important; font-weight: 500 !important; letter-spacing: 0 !important; cursor: pointer; }
.ggj-mouse-filter-choice:has(input:checked) { border-color: #1e2533; background: #1e2533; color: #fff !important; font-weight: 700 !important; }
.ggj-mouse-filter-choice:focus-within { outline: 2px solid #64748b; outline-offset: 2px; }
.ggj-mouse-filter-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ggj-mouse-filter-more { margin-top: 0.55rem; }
.ggj-mouse-filter-more summary { color: #475569; font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.ggj-mouse-filter-more[open] summary { margin-bottom: 0.6rem; }
.ggj-mouse-filter-foot { display: flex; gap: 0.5rem; padding: 0.85rem 20px; border-top: 1px solid #e6e9ed; background: #fff; }
.ggj-mouse-filter-foot button { flex: 1; min-height: 40px; border-radius: 8px; font-size: 0.82rem; font-weight: 700; }
.ggj-mouse-filter-foot .ggj-device-db__reset { margin: 0; padding: 0.4rem; border: 1px solid #dce1e6; background: #fff; color: #1e2533; }
.ggj-mouse-filter-apply { border: 1px solid #1e2533; background: #1e2533; color: #fff; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ggj-mouse-filter-overlay, .ggj-mouse-filter-drawer { transition: none; } }
.ggj-device-db__related-dbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.25rem 0 0.8rem; }
.ggj-device-db__related-dbs a { box-sizing: border-box; display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.75rem; border: 1px solid var(--ggj-border); border-radius: 999px; background: #fff; color: var(--ggj-text); font-size: 0.78rem; text-decoration: none; }
.ggj-device-db__related-dbs a:hover { border-color: var(--ggj-text); background: var(--ggj-surface-2); }
.ggj-device-db__related-dbs a::after { content: '↗'; margin-left: .35rem; font-size: .8em; }
.ggj-device-db__recent { margin: 0 0 1.2rem; }
.ggj-device-db__recent-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 0.55rem; }
.ggj-device-db .ggj-device-db__recent-heading h2 { margin: 0 !important; padding: 0 !important; line-height: 1.3; }
.ggj-device-db__recent h2, .ggj-device-db__recent h3 { margin: 0; font-size: 1rem; font-weight: 750; }
.ggj-device-db__recent-all { color: var(--ggj-text-2); font-size: 0.78rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.ggj-device-db__recent-all:hover { color: var(--ggj-text); text-decoration: underline; text-underline-offset: 3px; }
.ggj-device-db__recent-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.85rem; }
.ggj-device-db__recent-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--ggj-border); border-radius: 12px; background: #fff; color: var(--ggj-text); text-decoration: none; }
.ggj-device-db__recent-card:hover, .ggj-device-db__recent-card:focus-visible { border-color: #596779; box-shadow: 0 0 0 2px #e7ecf2; }
.ggj-device-db__recent-image { box-sizing: border-box; position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; padding: 0.75rem; background: #fff; color: var(--ggj-text-3); font-size: 0.8rem; }
.ggj-device-db__recent-image img { width: 100%; height: 100%; object-fit: contain; }
.ggj-device-db__recent-info { display: grid; align-content: start; gap: 0.2rem; min-width: 0; flex: 1; min-height: 58px; padding: 0.7rem; border-top: 1px solid var(--ggj-border-light); }
.ggj-device-db__recent-rank { position: absolute; right: 0.6rem; bottom: 0.6rem; z-index: 1; box-shadow: 0 1px 5px rgba(0,0,0,0.12); }
.ggj-device-db__recent-rank.is-pending { font-size: 0.63rem; min-width: 0; padding: 0.18rem 0.35rem; }
.ggj-device-db__recent-card small { display: block; color: var(--ggj-text-3); font-size: 0.7rem; }
.ggj-device-db__recent-card strong { display: block; font-size: 0.84rem; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 900px) { .ggj-device-db__recent-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ggj-device-db__recent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; } }
@media (max-width: 480px) { .ggj-device-db__recent-list { grid-template-columns: 1fr; } .ggj-device-db__recent-card { flex-direction: row; min-height: 138px; } .ggj-device-db__recent-image { width: 40%; flex: 0 0 40%; min-height: 138px; aspect-ratio: auto; } .ggj-device-db__recent-info { border-top: 0; align-content: center; } }
@media (max-width: 640px) {
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__recent-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(150px, 44vw, 180px);
    grid-template-columns: none;
    gap: .6rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 0 0 .4rem;
    -webkit-overflow-scrolling: touch;
  }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__recent-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 166px;
    min-height: 0;
    scroll-snap-align: start;
  }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__recent-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100px;
    width: 100%;
    height: 100px;
    min-height: 0;
    aspect-ratio: auto;
    padding: .4rem;
    overflow: hidden;
  }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__recent-image img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__recent-info {
    min-width: 0;
    align-content: start;
    border-top: 1px solid var(--ggj-border-light);
    padding: .35rem .5rem;
  }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__recent-card strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: .75rem;
  }
}

.ggj-device-db__reset {
  background: transparent;
  border: 1.5px solid var(--ggj-border);
  color: var(--ggj-text-2);
  padding: 0.55rem 1.4rem;
  border-radius: var(--ggj-radius-pill);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
}
.ggj-device-db__reset:hover {
  border-color: var(--ggj-accent);
  color: var(--ggj-accent);
  background: var(--ggj-accent-light);
}

/* ===========================================================
   テーブルラッパー
   =========================================================== */
.ggj-device-db__table-wrap {
  background: var(--ggj-surface);
  border-radius: var(--ggj-radius-md);
  border: 1px solid var(--ggj-border);
  box-shadow: var(--ggj-shadow-md);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

/* ===========================================================
   テーブル本体
   =========================================================== */
.ggj-device-db__table {
  border-collapse: collapse;
  min-width: 100%;
  border: none;
}

.ggj-device-db__table th {
  background: var(--ggj-header-bg) !important;
  border: none !important;
  border-bottom: 2px solid #2d3650 !important;
  padding: 0.75rem 0.75rem;
  text-align: center;
  vertical-align: middle;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ggj-header-text) !important;
  letter-spacing: 0.05em;
  text-transform: none;
  white-space: nowrap;
}

.ggj-device-db__table th:first-child,
.ggj-device-db__table td:first-child {
  text-align: left;
}

.ggj-device-db__table td {
  border: none;
  padding: 0.62rem 0.72rem;
  text-align: center;
  vertical-align: middle;
  font-size: 0.88rem;
  line-height: 1.35;
}

.ggj-device-db__table tbody tr {
  border-bottom: 1px solid var(--ggj-border-light);
  background: var(--ggj-surface);
  transition: background 0.1s;
}
.ggj-device-db__table tbody tr:last-child { border-bottom: none; }
.ggj-device-db__table tbody tr:hover { background: #f1f4f8; }
.ggj-device-db__table tbody tr:focus-within { background: #f1f4f8; }
.ggj-device-db__table tbody tr.is-comparing {
  background: #eff6ff;
}
.ggj-device-db__table tbody tr.is-comparing:hover,
.ggj-device-db__table tbody tr.is-comparing:focus-within { background: #dfe9f5; }

.ggj-brand-model { display: flex; align-items: center; gap: 0.65rem; }
.ggj-brand-model__text { display: flex; flex-direction: column; min-width: 0; }
.ggj-brand-model__image { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; background: #fff; border-radius: 5px; }
.ggj-brand-model__image.is-empty { display: block; }
.ggj-device-db__table th[data-sort]::after { content: '▼'; display: inline-block; margin-left: 0.35em; font-size: 0.65em; opacity: 0.55; }
.ggj-device-db__table th[data-sort][aria-sort="ascending"]::after { content: '▲'; opacity: 1; }
.ggj-device-db__table th[data-sort][aria-sort="descending"]::after { content: '▼'; opacity: 1; }
.ggj-device-db__table th[data-sort]:focus-visible { outline: 2px solid var(--ggj-accent); outline-offset: -2px; }
.ggj-device-db__view-switch { box-sizing: border-box; display: inline-flex; align-items: center; gap: 0; height: 40px; padding: 0; border: 0; border-bottom: 1px solid var(--ggj-border); background: transparent; }
.ggj-device-db__view-switch button { box-sizing: border-box; display: inline-flex; align-items: center; gap: 0.35rem; height: 40px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--ggj-text-2); padding: 0 0.65rem; cursor: pointer; font-size: 0.82rem; font-weight: 650; }
.ggj-device-db__view-switch button[aria-pressed="true"] { border-bottom-color: #1e2533; background: transparent; color: #1e2533; }
.ggj-device-db__view-switch button:hover { color: #1e2533; background: #f5f6f8; }
.ggj-device-db__view-switch button[aria-pressed="true"]:hover { color: #1e2533; background: #f5f6f8; }
.ggj-device-db__view-switch button:focus-visible { outline: 2px solid var(--ggj-accent); outline-offset: 2px; }
.ggj-device-db__scroll-hint[hidden] { display: none; }
.ggj-device-db__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.85rem; padding: 0.85rem; }
.ggj-device-db__gallery-card { min-width: 0; border: 1px solid var(--ggj-border); border-radius: 12px; overflow: hidden; background: var(--ggj-surface); }
.ggj-device-db__gallery-card:hover,
.ggj-device-db__gallery-card:focus-within { border-color: #596779; box-shadow: 0 0 0 2px #e7ecf2; }
.ggj-device-db__gallery-open { display: grid; place-items: center; width: 100%; box-sizing: border-box; aspect-ratio: 1 / 1; height: auto; padding: 0.7rem; border: 0; background: #fff; cursor: pointer; }
.ggj-device-db__gallery-open img { width: 100%; height: 100%; object-fit: contain; }
.ggj-device-db__gallery-placeholder { color: var(--ggj-text-3); font-size: 0.8rem; }
.ggj-device-db__gallery-info { display: grid; gap: 0.2rem; min-width: 0; padding: 0.7rem; font-size: 0.83rem; }
.ggj-device-db__gallery-info small { color: var(--ggj-text-3); }
.ggj-device-db__gallery-info strong { line-height: 1.35; }
.ggj-device-db__gallery-traits { display: flex; gap: 0.25rem; min-width: 0; margin-top: 0.35rem; overflow: hidden; white-space: nowrap; }
.ggj-device-db__gallery-trait { min-width: 0; max-width: 50%; overflow: hidden; text-overflow: ellipsis; padding: 0.2rem 0.38rem; border: 1px solid #e2e5e9; border-radius: 5px; color: #47515e; background: #f8f9fa; font-size: 0.71rem; line-height: 1.2; }
.ggj-device-db__gallery-compare { margin: 0 0.7rem 0.7rem; padding: 0.3rem 0.65rem; border: 1px solid var(--ggj-border); border-radius: 5px; background: #fff; cursor: pointer; }
.ggj-detail__permalink { margin: 0.5rem 0; }
.ggj-detail__permalink a { color: var(--ggj-accent); font-weight: 700; }
@media (max-width: 640px) { .ggj-device-db__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; padding: 0.5rem; } .ggj-device-db__gallery-open { aspect-ratio: 1 / 1; height: auto; } .ggj-device-db__gallery-info { padding: 0.55rem; } .ggj-device-db__gallery-traits { gap: 0.15rem; } .ggj-device-db__gallery-trait { max-width: none; flex: 0 1 auto; padding: 0.16rem 0.22rem; font-size: 0.64rem; } .ggj-brand-model__image { width: 42px; height: 42px; flex-basis: 42px; } }
@media (max-width: 480px) { .ggj-device-db__gallery { grid-template-columns: 1fr; } .ggj-device-db__gallery-card { display: grid; grid-template-columns: 40% minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: 158px; } .ggj-device-db__gallery-open { grid-row: 1 / 3; height: 100%; min-height: 158px; aspect-ratio: auto; } .ggj-device-db__gallery-info { align-content: center; padding: 0.65rem; } .ggj-device-db__gallery-traits { gap: 0.2rem; } .ggj-device-db__gallery-trait { padding: 0.18rem 0.3rem; font-size: 0.7rem; } .ggj-device-db__gallery-compare { justify-self: start; margin: 0 0.65rem 0.65rem; } }
.ggj-product-page { max-width: 1000px; margin: 0 auto; color: #1e2533; background: #fff; }
.ggj-product-page__back { margin: 0 0 1rem; font-size: 0.85rem; }
.ggj-product-page__back a { color: #4b5563; text-decoration: none; }
.ggj-product-page__hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 38%); align-items: center; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid #dfe3e8; }
.ggj-product-page__hero h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.25; }
.ggj-product-page__short { max-width: 42rem; margin: 0.75rem 0 0; line-height: 1.65; }
.ggj-product-page__hero figure { display: grid; place-items: center; margin: 0; aspect-ratio: 1 / 1; min-height: 180px; background: #fff; }
.ggj-product-page__hero figure img { width: 100%; height: 100%; max-height: 320px; object-fit: contain; }
.ggj-product-page__section { padding: 1.35rem 0; border-top: 1px solid #e5e7eb; }
.ggj-product-page__section h2 { margin: 0 0 0.85rem; font-size: 1.08rem; }
.ggj-product-page__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0; border: 0; }
.ggj-product-page__specs > div { min-width: 0; padding: 0.65rem 0.8rem; border: 0; border-radius: 6px; background: #f6f7f8; }
.ggj-product-page__specs dt { margin: 0 0 0.2rem; padding: 0; border: 0; background: transparent; color: #65707d; font-size: 0.72rem; font-weight: 700; }
.ggj-product-page__specs dd { margin: 0; padding: 0; border: 0; font-size: 0.9rem; font-weight: 650; overflow-wrap: anywhere; }
.ggj-product-page__evaluation { margin: 1.2rem 0; padding: 1.25rem; border: 0; border-radius: 10px; background: #f4f5f6; }
.ggj-product-page__evaluation .ggj-product-page__specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ggj-product-page__evaluation .ggj-product-page__specs > div { background: #fff; }
.ggj-product-page__evaluation .ggj-product-page__specs dd { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 780; line-height: 1.2; letter-spacing: -0.02em; }
.ggj-product-page__summary { margin: 0.9rem 0 0; font-size: 0.9rem; line-height: 1.8; }
.ggj-product-page__links { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.ggj-product-page__link { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 38px; padding: 0.45rem 0.8rem; border: 1px solid #cbd1d8; border-radius: 5px; background: #fff; color: #1e2533; font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.ggj-product-page__link:hover { border-color: #1e2533; color: #1e2533; }
.ggj-product-page__link svg { width: 16px; height: 16px; flex: 0 0 16px; }
.ggj-product-page__link.is-review:hover { background: #e07a1a; border-color: #e07a1a; color: #fff; }
.ggj-product-page__link.is-video:hover { background: #d93333; border-color: #d93333; color: #fff; }
.ggj-product-page__related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.ggj-product-page__related-card { display: flex; align-items: center; gap: 0.7rem; min-width: 0; padding: 0.6rem; border: 1px solid #e5e7eb; border-radius: 6px; color: #1e2533; text-decoration: none; }
.ggj-product-page__related-card:hover { border-color: #1e2533; color: #1e2533; }
.ggj-product-page__related-card img { width: 65px; height: 55px; flex: 0 0 65px; object-fit: contain; }
.ggj-product-page__related-card span { display: grid; gap: 0.2rem; min-width: 0; }
.ggj-product-page__related-card small { color: #6b7280; }
.ggj-product-page__related-card strong { font-size: 0.82rem; line-height: 1.4; overflow-wrap: anywhere; }
@media (max-width: 700px) { .ggj-product-page__hero { grid-template-columns: 1fr; } .ggj-product-page__hero figure { min-height: 130px; } .ggj-product-page__specs, .ggj-product-page__evaluation .ggj-product-page__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ggj-product-page__related { grid-template-columns: 1fr; } }

/* Mouse product page: ledger layout. Other device types retain their existing layout. */
.ggj-product-page--ledger { display: block; }
.ggj-product-page--ledger .ggj-product-page__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(22px, 4vw, 50px); align-items: start; }
.ggj-product-page--ledger .ggj-product-page__evaluation,
.ggj-product-page--ledger .ggj-product-page__basic { grid-column: 1 / -1; }
.ggj-product-page--ledger .ggj-product-page__hero { grid-template-columns: minmax(210px, 34%) 1fr; gap: clamp(20px, 4vw, 48px); padding: 1rem 0 1.2rem; }
.ggj-product-page--ledger .ggj-product-page__hero figure { grid-column: 1; grid-row: 1; }
.ggj-product-page--ledger .ggj-product-page__hero figure { min-height: 0; max-height: 275px; }
.ggj-product-page--ledger .ggj-product-page__hero figure img { max-height: 275px; }
.ggj-product-page--ledger .ggj-product-page__hero-text { grid-column: 2; grid-row: 1; }
.ggj-product-page--ledger .ggj-product-page__maker { color: #69717b; font-size: .75rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; margin: 0 0 .65rem; }
.ggj-product-page--ledger .ggj-product-page__hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -.035em; }
.ggj-product-page--ledger .ggj-product-page__short { margin: .95rem 0 0; line-height: 1.7; }
.ggj-product-page--ledger .ggj-product-page__hero-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.15rem; }
.ggj-product-page--ledger .ggj-product-page__hero-actions .ggj-product-page__link { box-sizing: border-box; min-height: 36px; padding: .42rem .78rem; border-radius: 999px; font-size: .77rem; line-height: 1.2; white-space: nowrap; }
.ggj-product-page--ledger .ggj-product-page__related { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.ggj-product-page--ledger .ggj-product-page__related-card { display: block; padding: .6rem; }
.ggj-product-page--ledger .ggj-product-page__related-card img { display: block; width: 100%; height: 72px; margin: 0 0 .4rem; }
.ggj-product-page--ledger .ggj-product-page__section { border-top: 1px solid #e2e5e8; padding: 1rem 0; }
.ggj-product-page--ledger .ggj-product-page__section h2 { font-size: 1.07rem; margin: 0 0 .85rem; }
.ggj-product-page--ledger .ggj-product-page__specs { display: block; }
.ggj-product-page--ledger .ggj-product-page__spec-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(22px, 4vw, 50px); }
.ggj-product-page--ledger .ggj-product-page__specs > div { display: grid; grid-template-columns: minmax(100px, 42%) 1fr; gap: .8rem; align-items: baseline; padding: .52rem 0; background: none; border: 0; border-bottom: 1px solid #e6e8ea; border-radius: 0; }
.ggj-product-page--ledger .ggj-product-page__specs > div:last-child { border-bottom: 0; }
.ggj-product-page--ledger .ggj-product-page__specs dt { margin: 0; font-size: .76rem; font-weight: 500; }
.ggj-product-page--ledger .ggj-product-page__specs dd { font-size: .84rem; font-weight: 700; }
.ggj-product-page--ledger .ggj-product-page__evaluation { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; column-gap: .8rem; margin: 0; background: none; border-radius: 0; }
.ggj-product-page--ledger .ggj-product-page__evaluation h2 { margin: 0; line-height: 1.3; }
.ggj-product-page--ledger .ggj-product-page__evaluation .ggj-device-db__rank-badge { justify-self: start; min-width: 3rem; min-height: 30px; font-size: 1.05rem; padding: .2rem .72rem; box-shadow: none; }
.ggj-product-page--ledger .ggj-product-page__summary { line-height: 1.9; }
.ggj-product-page--ledger .ggj-product-page__evaluation .ggj-product-page__summary { grid-column: 1 / -1; margin: .55rem 0 0; }
.ggj-product-page--ledger .ggj-product-page__review-links .ggj-product-page__links,
.ggj-product-page--ledger .ggj-product-page__purchase-links .ggj-product-page__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.ggj-product-page--ledger .ggj-product-page__review-links .ggj-product-page__link,
.ggj-product-page--ledger .ggj-product-page__purchase-links .ggj-product-page__link { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; padding: .45rem .65rem; justify-content: center; text-align: center; line-height: 1.3; }
@media (min-width: 761px) {
  .ggj-product-page--ledger .ggj-product-page__review-links,
  .ggj-product-page--ledger .ggj-product-page__purchase-links { border-top: 0; padding-top: .25rem; }
}
@media (max-width: 760px) {
  .ggj-product-page--ledger { display: block; }
  .ggj-product-page--ledger .ggj-product-page__body { display: block; }
  .ggj-product-page--ledger .ggj-product-page__spec-columns { display: block; }
  .ggj-product-page--ledger .ggj-product-page__related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ggj-product-page--ledger .ggj-product-page__hero { display: flex; flex-direction: column; gap: 1rem; padding: 1.1rem 0 1.5rem; }
  .ggj-product-page--ledger .ggj-product-page__hero figure { width: 100%; max-height: 280px; }
  .ggj-product-page--ledger .ggj-product-page__hero figure img { max-height: 280px; }
  .ggj-product-page--ledger .ggj-product-page__hero h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .ggj-product-page--ledger .ggj-product-page__hero-actions .ggj-product-page__link { white-space: normal; }
  .ggj-product-page--ledger .ggj-product-page__specs > div { grid-template-columns: minmax(105px, 42%) 1fr; }
  .ggj-product-page--ledger .ggj-product-page__review-links .ggj-product-page__links,
  .ggj-product-page--ledger .ggj-product-page__purchase-links .ggj-product-page__links { grid-template-columns: 1fr; }
}
/* Sticky left column */
.ggj-device-db__table th.is-sticky,
.ggj-device-db__table td.is-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0,0,0,0.05);
}
.ggj-device-db__table td.is-sticky { background: var(--ggj-surface); }
.ggj-device-db__table thead th.is-sticky { z-index: 3 !important; background: var(--ggj-header-bg) !important; }
.ggj-device-db__table tbody tr:hover td.is-sticky,
.ggj-device-db__table tbody tr:focus-within td.is-sticky { background: #f1f4f8; }
.ggj-device-db__table tbody tr.is-comparing td.is-sticky { background: #eff6ff; }
.ggj-device-db__table tbody tr.is-comparing:hover td.is-sticky,
.ggj-device-db__table tbody tr.is-comparing:focus-within td.is-sticky { background: #dfe9f5; }

/* Brand / Model compound cell */
.ggj-brand-model {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  min-width: 140px;
}
.ggj-brand-model__brand {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ggj-text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ggj-brand-model__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ggj-text);
  line-height: 1.3;
}

.ggj-device-db__brand-info {
  display: block;
  color: var(--ggj-text-3);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.ggj-device-db__product-info {
  display: block;
  color: var(--ggj-text);
  text-decoration: none;
  transition: color 0.15s;
  min-width: 120px;
  white-space: nowrap;
}
.ggj-device-db__product-info strong {
  display: block;
  font-weight: 700;
  color: var(--ggj-text);
  font-size: var(--ggj-font-size-product, 0.88rem);
  white-space: nowrap;
}
.ggj-device-db__product-info strong.is-wrapped { white-space: normal; }
.ggj-device-db__short-desc {
  font-size: 0.78rem;
  color: var(--ggj-text-3);
  margin-top: 0.25rem;
  line-height: 1.35;
  white-space: normal;
}

/* ===========================================================
   ランクバッジ — 大幅強化
   =========================================================== */
.ggj-device-db__rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--ggj-radius-sm);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.ggj-device-db__rank-badge.is-ss { background: var(--ggj-rank-ss-bg); }
.ggj-device-db__rank-badge.is-s  { background: var(--ggj-rank-s-bg); }
.ggj-device-db__rank-badge.is-a  { background: var(--ggj-rank-a-bg); }
.ggj-device-db__rank-badge.is-b  { background: var(--ggj-rank-b-bg); }
.ggj-device-db__rank-badge.is-c  { background: var(--ggj-rank-c-bg); }
.ggj-device-db__rank-badge.is-d  { background: var(--ggj-rank-d-bg); }
.ggj-device-db__rank-badge.is-e  { background: var(--ggj-rank-e-bg); }
.ggj-device-db__rank-badge.is-f  { background: var(--ggj-rank-f-bg); }
.ggj-device-db__rank-badge.is-pending { background: #d1d5db; color: #6b7280; }

/* ===========================================================
   ボタン全般
   =========================================================== */
.ggj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--ggj-radius-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s var(--ggj-ease);
  border: none;
  font-size: 0.88rem;
  padding: 0.6rem 1.4rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ggj-btn:active { transform: scale(0.97); }

.ggj-btn.is-disabled {
  background: #f1f5f9 !important;
  color: #c0c8d4 !important;
  border-color: transparent !important;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

.ggj-btn--mini {
  padding: 0.32rem 0.65rem !important;
  font-size: 0.74rem !important;
  border-radius: 0 !important;
}

.ggj-btn--primary {
  background: var(--ggj-accent);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(224,122,26,0.3);
}
.ggj-btn--primary:hover {
  background: var(--ggj-accent-dark);
  box-shadow: 0 4px 14px rgba(224,122,26,0.4);
  transform: translateY(-1px);
  color: #fff !important;
}

.ggj-btn--video {
  background: var(--ggj-video-red);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(229,57,53,0.25);
}
.ggj-btn--video:hover {
  background: #c62828;
  box-shadow: 0 4px 14px rgba(229,57,53,0.35);
  transform: translateY(-1px);
  color: #fff !important;
}
.ggj-btn.ggj-btn--article, .ggj-btn.ggj-btn--video { background: #fff; color: #1e2533 !important; border: 1px solid #cbd1d8; box-shadow: none; }
.ggj-btn.ggj-btn--article:hover { background: #e07a1a; border-color: #e07a1a; color: #fff !important; box-shadow: none; transform: none; }
.ggj-btn.ggj-btn--video:hover { background: #d93333; border-color: #d93333; color: #fff !important; box-shadow: none; transform: none; }
.ggj-btn.ggj-btn--article .ggj-icon-svg, .ggj-btn.ggj-btn--video .ggj-icon-svg, .ggj-btn.ggj-btn--purchase .ggj-icon-svg { width: 17px; height: 17px; }

.ggj-btn--purchase {
  background: #fff;
  color: var(--ggj-text) !important;
  border: 1px solid #cbd1d8;
  box-shadow: none;
  font-weight: 700;
}
.ggj-btn--purchase:hover {
  background: #fff;
  border-color: #1e2533;
  box-shadow: none;
  transform: none;
  color: var(--ggj-text) !important;
}

.ggj-btn--secondary {
  background: #f1f3f5;
  color: #495057;
}
.ggj-btn--secondary:hover {
  background: #e2e6ea;
  color: #1f2937;
}

/* 一覧テーブル内ボタン */
.ggj-device-db__table td.is-action .ggj-btn,
.ggj-device-db__table td.is-action .ggj-btn--mini {
  min-width: 58px;
  padding: 0.32rem 0.6rem !important;
  font-size: 0.72rem !important;
  border-radius: 0 !important;
}
.ggj-device-db__table td.is-action {
  text-align: center;
}
.ggj-device-db__table td.is-action .ggj-btn--purchase {
  background: #fff;
  box-shadow: none;
}
.ggj-device-db__table td.is-action .ggj-btn--purchase:hover {
  background: #fff;
  border-color: #1e2533;
  box-shadow: none;
  transform: none;
}

/* 比較ボタン — ＋ / ✓ のみ */
.ggj-device-db__compare-btn {
  background: transparent;
  border: 1.5px solid var(--ggj-border);
  color: var(--ggj-text-3);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ggj-device-db__compare-btn:hover:not(:disabled) {
  border-color: #1e2533;
  color: #1e2533;
  background: #fff;
}
.ggj-device-db__compare-btn.is-selected {
  background: #1e2533;
  border-color: #1e2533;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: none;
}
.ggj-device-db__compare-btn.is-selected:hover:not(:disabled) { background: #1e2533; border-color: #1e2533; color: #fff; }

/* ===========================================================
   詳細モーダル
   =========================================================== */
.ggj-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,16,0.55);
}
.ggj-detail-modal.is-open { display: flex; }

.ggj-detail-modal__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}
.ggj-detail-modal__panel {
  position: relative;
  background: #fff;
  width: 95%;
  max-width: 1100px;
  max-height: 90vh;
  border-radius: var(--ggj-radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s var(--ggj-ease), transform 0.2s var(--ggj-ease);
  overflow: hidden;
  will-change: transform, opacity;
}
.ggj-detail-modal.is-open .ggj-detail-modal__panel {
  opacity: 1;
  transform: translateY(0);
}

.ggj-detail-modal__header {
  padding: 0.9rem 1.5rem;
  background: var(--ggj-header-bg);
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ggj-detail-modal__title {
  font-weight: 700;
  font-size: 1rem;
  color: #e8eaf0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ggj-detail-modal__title .ggj-device-db__rank-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
}
.ggj-detail-modal__close {
  background: rgba(255,255,255,0.1);
  border: none;
  width: 30px; height: 30px;
  border-radius: 0;
  font-size: 0.9rem;
  color: #a0a8b8;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.ggj-detail-modal__close:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.ggj-detail-modal__body {
  padding: 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}
.ggj-detail { display: flex; flex-direction: column; gap: 0; }

/* FV section */
.ggj-detail-fv {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1rem;
  background: var(--ggj-surface);
  padding: 1rem 1.2rem;
  border-radius: var(--ggj-radius-md);
  border: 1px solid var(--ggj-border-light);
  box-shadow: var(--ggj-shadow-sm);
  margin-bottom: 0.75rem;
}

.ggj-detail-fv__visual { width: 100%; }
.ggj-detail-fv__visual.is-empty .ggj-detail-fv__img-wrap {
  display: flex; align-items: center; justify-content: center;
  background: var(--ggj-surface-2); color: #ddd;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
}
.ggj-detail-fv__img-wrap {
  overflow: hidden;
  border-radius: var(--ggj-radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.ggj-detail-fv__img-wrap img {
  display: block; max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
}

.ggj-detail-fv__content {
  display: flex; flex-direction: column; gap: 0.65rem; justify-content: center; min-width: 0;
}
.ggj-detail-fv__header { display: flex; align-items: flex-start; gap: 1rem; }
.ggj-detail-fv__info { display: flex; flex-direction: column; gap: 0.3rem; }
.ggj-detail-fv__maker {
  font-size: 0.75rem; color: var(--ggj-text-3);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.ggj-detail-fv__name {
  font-size: 1.35rem; font-weight: 800; margin: 0; line-height: 1.2; color: var(--ggj-text);
}
.ggj-detail-fv__desc {
  font-size: 0.85rem; color: var(--ggj-text-2); line-height: 1.45; margin: 0;
}

/* FV rank icon */
.ggj-rank-detail-icon { display: none; }

/* CTA stack */
.ggj-detail-fv__actions { display: flex; flex-direction: column; }
.ggj-cta-stack { display: flex; flex-direction: column; gap: 0.65rem; }
.ggj-cta-stack .ggj-btn,
.ggj-cta-stack .ggj-device-db__compare-btn { width: 100%; }

.ggj-review-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}
.ggj-review-buttons .ggj-btn { width: 100%; min-width: 0; box-sizing: border-box; justify-content: center; padding: 0.45rem 0.5rem; white-space: normal; text-align: center; line-height: 1.25; }
.ggj-review-buttons .ggj-btn:only-child { grid-column: 1 / -1; }
.ggj-review-buttons.is-detail { width: 100%; }
.ggj-review-buttons.is-list {
  width: max-content; min-width: 0; grid-template-columns: repeat(2, 36px); margin: 0 auto;
}
.ggj-review-buttons.is-list .ggj-btn {
  min-width: 0 !important;
  width: 36px !important; height: 36px; padding: 0 !important;
  font-size: 0.72rem !important;
  border-radius: 0 !important;
}
.ggj-review-buttons.is-list .ggj-btn:only-child { grid-column: auto; }
.ggj-device-db__table td.is-action .ggj-review-buttons.is-list .ggj-btn { min-width: 0 !important; width: 36px !important; height: 36px; box-sizing: border-box; padding: 0 !important; }
.ggj-device-db__table td.is-action .ggj-btn--purchase { min-width: 0 !important; width: 36px; height: 36px; padding: 0 !important; }

/* Rank block */
.ggj-detail-rank-block {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.25rem;
  background: var(--ggj-surface-2);
  border: 1px solid var(--ggj-border-light);
  border-left: 4px solid #94a3b8;
  border-radius: var(--ggj-radius-sm);
  margin: 0 0 0.75rem;
}
.ggj-detail-rank-block__label {
  font-size: 0.7rem; font-weight: 700; color: var(--ggj-text-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.ggj-detail-rank-block__val {
  font-size: 1.4rem; font-weight: 900; line-height: 1; color: var(--ggj-text);
}
.ggj-detail-rank-block.is-ss { background: #fef2f2; border-left-color: var(--ggj-rank-ss-bg); }
.ggj-detail-rank-block.is-ss .ggj-detail-rank-block__val { color: var(--ggj-rank-ss-bg); }
.ggj-detail-rank-block.is-s  { background: #fef2f2; border-left-color: var(--ggj-rank-s-bg); }
.ggj-detail-rank-block.is-s  .ggj-detail-rank-block__val { color: var(--ggj-rank-s-bg); }
.ggj-detail-rank-block.is-a  { background: #f8fafc; border-left-color: var(--ggj-rank-a-bg); }
.ggj-detail-rank-block.is-a  .ggj-detail-rank-block__val { color: var(--ggj-rank-a-bg); }
.ggj-detail-rank-block.is-b  { background: #f0fafa; border-left-color: var(--ggj-rank-b-bg); }
.ggj-detail-rank-block.is-b  .ggj-detail-rank-block__val { color: var(--ggj-rank-b-bg); }
.ggj-detail-rank-block.is-c  { background: #eff6ff; border-left-color: var(--ggj-rank-c-bg); }
.ggj-detail-rank-block.is-c  .ggj-detail-rank-block__val { color: var(--ggj-rank-c-bg); }
.ggj-detail-rank-block.is-d  { background: #faf5ff; border-left-color: var(--ggj-rank-d-bg); }
.ggj-detail-rank-block.is-d  .ggj-detail-rank-block__val { color: var(--ggj-rank-d-bg); }
.ggj-detail-rank-block.is-f  { background: #f9fafb; border-left-color: var(--ggj-rank-f-bg); }
.ggj-detail-rank-block.is-f  .ggj-detail-rank-block__val { color: var(--ggj-rank-f-bg); }

/* ===========================================================
   モーダル内スペックセクション
   =========================================================== */
.ggj-detail-section {
  background: #ffffff;
  padding: 0.75rem 0;
  border-radius: 0;
  border: 0;
  border-left: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
  border-top: 1px solid #e8e8e8;
  box-shadow: none;
  margin-bottom: 0;
}
.ggj-detail-fv + .ggj-detail-section {
  border-top: 1px solid #e6e6e6;
  border-radius: 0;
  padding-top: 0.75rem;
}
.ggj-detail-section:not(.ggj-detail-summary):has(+ .ggj-detail-summary) {
  border-bottom: 1px solid #e6e6e6;
  border-radius: 0;
  margin-bottom: 0.4rem;
}
.ggj-detail-section--desc { background: #ffffff; }

.ggj-detail-section__title {
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ggj-text-2);
  margin: 0 1rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0f0ee;
  border-radius: 0;
  padding: 0.22rem 0.55rem;
  border-bottom: 0;
  width: fit-content;
}
.ggj-detail-section__title small {
  font-size: 0.75rem; font-weight: 400; color: var(--ggj-text-3); text-transform: none; letter-spacing: 0;
}

.ggj-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  padding: 0 1rem;
}
.ggj-detail-grid__item {
  display: flex; flex-direction: column; gap: 0.15rem; min-width: 0;
}
.ggj-detail-grid__label {
  font-size: 0.7rem; font-weight: 700; color: var(--ggj-text-3);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 0;
  display: inline-flex; align-items: center; gap: 0.3rem;
  flex-wrap: wrap;
}
.ggj-detail-grid__label-text { min-width: 0; }
.ggj-detail-grid__val {
  font-size: 0.9rem; font-weight: 700; color: var(--ggj-text); line-height: 1.3; overflow-wrap: anywhere;
}
.ggj-detail-grid__val.is-muted { color: #d0d0cc; font-weight: 500; }

/* Help link */
.ggj-detail-help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 0.9rem; height: 0.9rem; border-radius: 0;
  border: 1px solid #ccc; color: #bbb; font-size: 0.6rem;
  font-weight: 700; line-height: 1; text-decoration: none;
  transition: all 0.15s; position: relative; flex-shrink: 0;
}
.ggj-detail-help:hover, .ggj-detail-help:focus-visible {
  color: var(--ggj-accent); border-color: var(--ggj-accent);
}
.ggj-detail-help::after {
  content: attr(data-tooltip);
  position: absolute; left: 50%; bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: rgba(17,17,17,0.9); color: #fff;
  font-size: 0.68rem; font-weight: 500; line-height: 1.3;
  padding: 0.38rem 0.5rem; border-radius: 0;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.15s; text-transform: none;
  letter-spacing: normal; z-index: 5;
}
.ggj-detail-help:hover::after, .ggj-detail-help:focus-visible::after { opacity: 1; }

/* Review summary */
.ggj-detail-summary {
  background: #ffffff;
  border: 1px solid #e6e6e6 !important;
  padding: 1.25rem 1.5rem;
  border-radius: var(--ggj-radius-md);
  margin-top: 0.35rem;
}
.ggj-detail-summary .ggj-detail-section__title { color: #202020; border-bottom-color: #e6e6e6; }
.ggj-detail-summary__content { line-height: 1.7; color: var(--ggj-text-2); margin-bottom: 0.75rem; font-size: 0.9rem; }
.ggj-detail-summary__guide { font-size: 0.82rem; color: #555; font-weight: 700; margin: 0; text-align: right; }

/* Click badges */
.ggj-click-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.8rem; padding: 0.18rem 0.5rem;
  border-radius: 0; font-size: 0.8rem; font-weight: 800;
}
.ggj-click-badge.is-S { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ggj-click-badge.is-A { background: #f8fafc; color: #c2410c; border: 1px solid #fed7aa; }
.ggj-click-badge.is-B { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.ggj-click-badge.is-C { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Related cards */
.ggj-related-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.ggj-related-card {
  background: var(--ggj-surface);
  border: 1.5px solid var(--ggj-border);
  border-radius: var(--ggj-radius-sm);
  padding: 0.9rem;
  cursor: pointer;
  transition: all 0.15s var(--ggj-ease);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.ggj-related-card:hover {
  border-color: var(--ggj-accent);
  box-shadow: 0 4px 16px rgba(224,122,26,0.12);
  transform: translateY(-2px);
}
.ggj-related-card__img {
  width: 72px; height: 72px;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  margin-bottom: 0.6rem;
}
.ggj-related-card__name {
  font-size: 0.8rem; font-weight: 700; margin-top: 0.4rem; line-height: 1.3;
  color: var(--ggj-text);
}

/* Sort hint */
.ggj-sort-hint { box-sizing: border-box; display: inline-flex; align-items: center; height: 40px; padding: 0 0.7rem; border: 1px solid #d7dbe0; border-radius: 999px; background: #fff; font-size: 0.78rem; color: #1e2533; }
.ggj-sort-hint__link { color: inherit; text-decoration: none; }
.ggj-sort-hint:hover { border-color: #1e2533; }
.ggj-device-db__count-pill { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 32px; padding: 0.25rem 0.7rem; border: 1px solid #d7dbe0; border-radius: 999px; background: #fff; font-size: 0.78rem; color: #1e2533; }
.ggj-device-db__count-pill strong { font-size: 0.85rem; }
.ggj-device-db__count { font-size: 0.82rem; color: var(--ggj-text-2); font-weight: 500; }
.ggj-device-db__count strong { font-size: 1rem; color: var(--ggj-text); }
.ggj-device-db__empty { padding: 2rem 1.25rem; text-align: center; color: var(--ggj-text-2); }

/* ===========================================================
   スクロールヒント
   =========================================================== */
.ggj-device-db__scroll-hint {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; color: var(--ggj-text-3);
  margin-bottom: 0.4rem; font-weight: 600;
}
.ggj-device-db__scroll-hint svg { fill: #bbb; }

/* ===========================================================
   比較バー（画面下部）
   =========================================================== */
.ggj-compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--ggj-header-bg);
  border-top: 2px solid #4b5563;
  padding: 0.85rem 5%;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.25s var(--ggj-ease), box-shadow 0.25s;
  pointer-events: none;
}
.ggj-compare-bar.is-visible {
  transform: translateY(0);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  pointer-events: auto;
}
.ggj-compare-bar__info { font-size: 0.88rem; color: #c8cdd8; font-weight: 600; }
.ggj-compare-bar__info small { color: #8890a0; margin-left: 4px; }
.ggj-compare-bar__count { color: #fff; font-weight: 800; font-size: 1.1rem; }
.ggj-compare-bar__actions { display: flex; gap: 0.75rem; }
.ggj-compare-bar__btn {
  padding: 0.55rem 1.4rem; border-radius: 0;
  font-weight: 700; font-size: 0.88rem; cursor: pointer; border: none;
  transition: all 0.15s;
}
.ggj-compare-bar__btn--open {
  background: #fff; color: #1e2533;
  box-shadow: none;
}
.ggj-compare-bar__btn--open:hover:not(:disabled) {
  background: #e5e7eb;
  box-shadow: none;
  transform: none;
}
.ggj-compare-bar__btn--open:disabled { background: #3d4458; color: #6b7280; cursor: not-allowed; }
.ggj-compare-bar__btn--clear {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: #a0a8b8;
}
.ggj-compare-bar__btn--clear:hover {
  background: rgba(255,255,255,0.15); color: #e2e6ef;
}

/* ===========================================================
   比較モーダル
   =========================================================== */
.ggj-compare-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: none; align-items: center; justify-content: center;
}
.ggj-compare-modal.is-open { display: flex; }
.ggj-compare-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,16,0.6);
}
.ggj-compare-modal__panel {
  position: relative;
  background: var(--ggj-surface);
  width: 95%; max-width: 1000px; max-height: 90vh;
  border-radius: var(--ggj-radius-lg);
  display: flex; flex-direction: column;
  box-shadow: var(--ggj-shadow-lg);
  overflow: hidden;
}
.ggj-compare-modal__header {
  padding: 0.9rem 1.25rem;
  background: var(--ggj-header-bg);
  border-bottom: none;
  display: flex; justify-content: space-between; align-items: center;
}
.ggj-compare-modal__title {
  margin: 0; font-size: 1rem; font-weight: 700; color: #e8eaf0;
}
.ggj-compare-modal__close {
  background: rgba(255,255,255,0.1); border: none;
  width: 30px; height: 30px; border-radius: 0;
  font-size: 0.9rem; color: #a0a8b8; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.ggj-compare-modal__close:hover { background: rgba(255,255,255,0.2); color: #fff; }
.ggj-compare-modal__body { padding: 1.25rem; overflow: auto; }

/* 比較テーブル */
.ggj-compare-table-wrap { overflow-x: auto; }
.ggj-compare-table {
  width: 100%; border-collapse: collapse;
  min-width: 600px; font-size: 0.82rem; table-layout: fixed;
}
.ggj-compare-table th, .ggj-compare-table td {
  border: 1px solid var(--ggj-border-light);
  padding: 0.6rem 0.6rem; text-align: center;
  overflow: hidden; text-overflow: ellipsis; word-wrap: break-word;
}
.ggj-compare-table__label {
  width: 120px; font-weight: 700;
  background: var(--ggj-surface-2) !important;
  text-align: left !important;
  font-size: 0.75rem; color: var(--ggj-text-2);
}
.ggj-compare-table__product-name {
  font-weight: 700; font-size: 0.9rem; margin-bottom: 0.2rem; line-height: 1.3;
}
.ggj-compare-table__product-maker { font-size: 0.7rem; color: var(--ggj-text-3); }
.ggj-compare-table__product-img {
  width: 100%; max-width: 140px; height: 88px;
  background-color: var(--ggj-surface-2);
  background-size: contain; background-position: center; background-repeat: no-repeat;
  margin: 0 auto; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
}
.ggj-compare-table__row-img .ggj-compare-table__product-cell {
  background: var(--ggj-surface); padding: 0.75rem 0.5rem;
}
.ggj-compare-table__row-info .ggj-compare-table__product-cell {
  background: var(--ggj-surface-2);
}
.ggj-compare-table__cell.is-best {
  background: var(--ggj-accent-light); font-weight: 700;
}
.ggj-compare-table__win-badge {
  display: block; font-size: 0.6rem; color: var(--ggj-accent);
  font-weight: 700; margin-top: 0.15rem; letter-spacing: 0.04em;
}

/* is-compare-view */
.is-compare-view .ggj-compare-table {
  font-size: 0.72rem; border-collapse: separate; border-spacing: 0; table-layout: fixed;
}
.is-compare-view .ggj-compare-table__label {
  text-align: right !important; padding-right: 1.1rem !important;
  width: 120px !important; background: var(--ggj-surface-2) !important;
  font-weight: 800 !important; color: var(--ggj-text-2) !important;
}
.is-compare-view .ggj-compare-table td { padding: 0.55rem 0.4rem !important; }
.is-compare-view .ggj-device-db__rank-badge {
  padding: 0.2rem 0.55rem; font-size: 0.75rem;
}

/* 比較表アクションボタン */
.ggj-compare-table__actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; width: 100%;
}
.ggj-compare-table__review-buttons {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem; width: 100%; justify-items: center;
}
.ggj-compare-table__actions .ggj-btn--mini { box-sizing: border-box; flex: 0 0 36px; width: 36px; height: 36px; min-width: 0; padding: 0 !important; margin: 0; }
.ggj-compare-table__purchase-btn { width: 36px; margin: 0; }
.ggj-compare-table__row-actions .ggj-compare-table__label {
  vertical-align: middle; font-size: 0.75rem; color: var(--ggj-text-3);
}

/* ===========================================================
   購入先モーダル
   =========================================================== */
.ggj-purchase-modal {
  position: fixed; inset: 0; z-index: 100000;
  display: none; align-items: flex-end; justify-content: center;
}
.ggj-purchase-modal.is-open { display: flex; }
.ggj-purchase-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
}
.ggj-purchase-modal__panel {
  position: relative; background: var(--ggj-surface);
  width: 100%; max-width: 560px;
  border-radius: 0;
  padding: 1.4rem 1.4rem 2rem;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh; overflow-y: auto; overscroll-behavior: contain;
}
.ggj-purchase-modal.is-open .ggj-purchase-modal__panel { transform: translateY(0); }
.ggj-purchase-modal__header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem;
}
.ggj-purchase-modal__title {
  font-size: 1rem; font-weight: 800; color: var(--ggj-text); margin: 0;
}
.ggj-purchase-modal__close {
  background: #f3f4f6; border: none; width: 32px; height: 32px; border-radius: 0;
  font-size: 0.95rem; color: #6b7280; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; flex-shrink: 0;
}
.ggj-purchase-modal__close:hover { background: #e5e7eb; color: var(--ggj-text); }
.ggj-purchase-modal__product {
  font-size: 0.82rem; color: var(--ggj-text-3); margin: 0 0 1.1rem; line-height: 1.3;
}
.ggj-purchase-modal__body { display: flex; flex-direction: column; gap: 0.65rem; }
.ggj-purchase-modal__notice {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; color: #92400e;
  background: #f8fafc; border: 1px solid #cbd5e1;
  border-radius: var(--ggj-radius-sm); padding: 0.5rem 0.75rem; margin: 0;
}
.ggj-purchase-modal__notice-icon { width: 1.1rem; height: 1.1rem; flex-shrink: 0; fill: #d97706; }

/* 購入先ボタン */
.ggj-purchase-btn {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1.5px solid var(--ggj-border);
  border-radius: var(--ggj-radius-md);
  text-decoration: none; color: var(--ggj-text); font-weight: 700;
  transition: all 0.15s var(--ggj-ease);
}
.ggj-purchase-btn:hover {
  border-color: #1e2533;
  box-shadow: none;
  transform: none;
  color: var(--ggj-text);
}
.ggj-purchase-btn__icon {
  width: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ggj-purchase-btn__label { flex: 1; font-size: 0.92rem; }
.ggj-purchase-btn__arrow { width: 15px; height: 15px; flex-shrink: 0; color: #ccc; }
.ggj-purchase-btn:hover .ggj-purchase-btn__arrow { color: var(--ggj-text); }

@media (min-width: 560px) {
  .ggj-purchase-modal { align-items: center; }
  .ggj-purchase-modal__panel {
    border-radius: 0; margin-bottom: 0;
    transform: scale(0.95) translateY(8px); opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s;
  }
  .ggj-purchase-modal.is-open .ggj-purchase-modal__panel {
    transform: scale(1) translateY(0); opacity: 1;
  }
}

/* ===========================================================
   無効ボタン
   =========================================================== */
.ggj-btn.is-disabled {
  background: #f1f5f9 !important;
  color: #c0c8d4 !important;
  border: none !important;
  cursor: not-allowed; pointer-events: none;
  box-shadow: none !important; transform: none !important;
}

/* ===========================================================
   アイコン
   =========================================================== */
.ggj-icon-svg {
  width: 1em; height: 1em;
  display: inline-block; vertical-align: -0.125em; flex-shrink: 0;
}

/* ===========================================================
   メタ / 件数表示
   =========================================================== */
.ggj-device-db__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.ggj-device-db__summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; font-size: 0.95rem; color: var(--ggj-text-2); font-weight: 600;
}
.ggj-device-db__search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 300px;
  width: min(100%, 440px);
  max-width: 440px;
  margin: 0;
}
.ggj-device-db__search-icon {
  position: absolute;
  left: 0.85rem;
  width: 1rem;
  height: 1rem;
  color: var(--ggj-text-3);
  pointer-events: none;
}
.ggj-device-db__search-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.ggj-device-db__search-input {
  box-sizing: border-box;
  height: 40px;
  width: 100%;
  border: 1.5px solid var(--ggj-border);
  border-radius: 9999px;
  background: var(--ggj-surface);
  color: var(--ggj-text);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0 0.9rem 0 2.2rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.ggj-device-db__search-input::placeholder { color: var(--ggj-text-3); font-weight: 500; }
.ggj-device-db__search-input:focus {
  outline: none;
  border-color: var(--ggj-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(224,122,26,0.12);
}
.ggj-device-db .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================================================
   サイズバッジ
   =========================================================== */
.ggj-device-db__size-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.8rem; padding: 0.15rem 0.5rem;
  background: var(--ggj-surface-2); border: 1px solid var(--ggj-border);
  border-radius: 0; font-size: 0.8rem; font-weight: 700;
  color: var(--ggj-text-2);
}

/* ===========================================================
   アニメーション
   =========================================================== */
@keyframes ggjFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ggjSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================================================
   スマートフォン対応
   =========================================================== */
@media (max-width: 767px) {
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__related-dbs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; border: 0; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__related-dbs a { flex: 1 1 auto; justify-content: center; min-height: 36px; padding: 0 .45rem; border: 1px solid var(--ggj-border); border-radius: 999px; background: #fff; font-size: .69rem; font-weight: 700; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__recent { display: flex; flex-direction: column; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__recent-heading { display: contents; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__recent-heading h2 { font-size: .9rem; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__recent-list { order: 1; margin-top: .55rem; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__recent-all { order: 2; align-self: flex-end; display: inline-flex; align-items: center; min-height: 32px; margin-top: .35rem; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: .74rem; text-decoration: underline; text-underline-offset: 3px; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__meta { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'filter search' 'summary view'; gap: .55rem; align-items: center; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-mouse-filter-open { grid-area: filter; padding: 0 .75rem; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__search { grid-area: search; width: 100%; min-width: 0; max-width: none; flex: none; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__search-input { min-width: 0; font-size: .78rem; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__summary { grid-area: summary; min-width: 0; font-size: .8rem; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-sort-hint { display: none; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__view-switch { grid-area: view; justify-self: end; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__scroll-hint { display: none; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__table th.is-brand-model,
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__table td.is-brand-model { box-sizing: border-box; width: 190px; min-width: 190px; max-width: 190px; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__table td.is-brand-model { white-space: normal; overflow: hidden; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-brand-model { min-width: 0; gap: .4rem; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-brand-model__text { min-width: 0; flex: 1 1 auto; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-brand-model__brand,
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-brand-model__name { display: block; min-width: 0; max-width: 100%; white-space: normal; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-brand-model__brand { display: block; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-brand-model__word { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
  .ggj-device-db__filters-card { padding: 0.75rem; }
  .ggj-device-db__meta { align-items: stretch; }
  .ggj-device-db__search {
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }

  .ggj-device-db__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ggj-device-db__table th,
  .ggj-device-db__table td { padding: 0.5rem 0.45rem; white-space: nowrap; font-size: 0.82rem; }

  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__table th.is-sticky,
  .ggj-device-db[data-config*='"type":"mouse"'] .ggj-device-db__table td.is-sticky {
    position: static;
    left: auto;
    z-index: auto;
    box-shadow: none;
  }

  :root {
    --ggj-font-size-brand: 0.88rem;
    --ggj-font-size-product: 0.88rem;
  }
  .ggj-device-db td .ggj-device-db__brand-info,
  .ggj-device-db td .ggj-device-db__product-info strong {
    font-size: 0.88rem !important; white-space: nowrap;
  }
  .ggj-device-db td .ggj-device-db__product-info strong { display: inline-block; }
  .ggj-device-db__brand-info { white-space: nowrap; }
  .is-mobile-hidden { display: none !important; }

  .ggj-detail-modal__body { padding: 0; font-size: 0.85rem; background: #fff; }
  .ggj-detail-modal__panel {
    width: 100%; height: 100%; border-radius: 0; max-height: 100%;
  }
  .ggj-detail { gap: 0; }
  .ggj-detail-fv {
    grid-template-columns: 110px minmax(0, 1fr); padding: 0.75rem; gap: 0.75rem;
    border-radius: 0; margin-bottom: 0.5rem;
  }
  .ggj-detail-fv__visual { order: 1; }
  .ggj-detail-fv__content { order: 2; text-align: left; }
  .ggj-detail-fv__header { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .ggj-detail-fv__img-wrap { min-height: auto; border-radius: 0; }
  .ggj-detail-fv__img-wrap img { max-width: 100%; max-height: 145px; display: block; margin: 0 auto; }
  .ggj-detail-fv__name { font-size: 1.1rem; }
  .ggj-detail-rank-block { border-radius: 0; padding: 0.65rem 1rem; }
  .ggj-detail-section {
    padding: 0.7rem 0; border-radius: 0; border: 0; border-left: 1px solid #e6e6e6; border-right: 1px solid #e6e6e6; border-top: 1px solid #e8e8e8; margin-bottom: 0; box-shadow: none;
  }
  .ggj-detail-fv + .ggj-detail-section {
    border-radius: 0;
    border-top: 1px solid #e6e6e6;
  }
  .ggj-detail-section:not(.ggj-detail-summary):has(+ .ggj-detail-summary) {
    border-radius: 0;
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 0.5rem;
  }
  .ggj-detail-section__title { font-size: 0.72rem; margin: 0 0.75rem 0.5rem; }
  .ggj-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.6rem; border-top: 1px solid var(--ggj-border-light); padding: 0.5rem 0.75rem 0;
  }
  .ggj-detail-grid__item {
    padding: 0.25rem 0; border-bottom: 1px solid var(--ggj-border-light);
    flex-direction: column; justify-content: flex-start; align-items: flex-start;
  }
  .ggj-detail-grid__item:last-child { border-bottom: none; }
  .ggj-detail-grid__label { margin-bottom: 0; width: 100%; font-size: 0.67rem; }
  .ggj-detail-grid__val { width: 100%; text-align: left; font-size: 0.86rem; }
  .ggj-detail-help::after { display: none; }

  .is-compare-view .ggj-compare-table { font-size: 0.68rem !important; }
  .is-compare-view .ggj-compare-table__label { width: 100px !important; padding-right: 0.8rem !important; }

  .ggj-compare-bar { padding: 0.5rem 4%; }
  .ggj-compare-bar__info { font-size: 0.75rem; }
  .ggj-compare-bar .ggj-btn, .ggj-compare-bar__btn { font-size: 0.72rem; padding: 0.35rem 0.75rem; }
}

.ggj-detail-modal__panel { width: min(92vw, 680px); max-width: 680px; max-height: min(82vh, 740px); height: auto; border-radius: 10px; }
.ggj-detail-modal__body { padding: 1rem; }
.ggj-quick-view__hero { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 1rem; align-items: center; }
.ggj-quick-view__image { width: 130px; height: 130px; object-fit: contain; background: #fff; }
.ggj-quick-view__image.is-empty { display: grid; place-items: center; color: #87909d; border: 1px solid #e5e7eb; font-size: 0.8rem; }
.ggj-quick-view__maker { margin: 0 0 0.2rem; font-size: 0.75rem; color: #667085; }
.ggj-quick-view__intro h2 { margin: 0 0 0.45rem; font-size: 1.2rem; line-height: 1.3; }
.ggj-quick-view__desc { margin: 0.5rem 0 0; font-size: 0.84rem; line-height: 1.55; }
.ggj-quick-view__specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; margin: 0.9rem 0; padding: 0.75rem 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.ggj-quick-view__specs div { min-width: 0; }
.ggj-quick-view__specs dt { color: #667085; font-size: 0.7rem; }
.ggj-quick-view__specs dd { margin: 0.2rem 0 0; font-size: 0.88rem; font-weight: 700; overflow-wrap: anywhere; }
.ggj-quick-view__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ggj-quick-view__actions a, .ggj-quick-view__actions button { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; min-width: 68px; min-height: 42px; flex: 1 1 68px; box-sizing: border-box; padding: 0.45rem 0.6rem; border: 1px solid #cbd1d8; border-radius: 6px; background: #fff; color: #1e2533; font-size: 0.78rem; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ggj-quick-view__actions a:hover, .ggj-quick-view__actions button:hover { border-color: #1e2533; color: #1e2533; }
.ggj-quick-view__actions .ggj-quick-view__primary { width: 100%; min-height: 42px; flex: 1 0 100%; border-color: #cbd1d8; background: #fff; color: #1e2533; font-size: 0.82rem; }
.ggj-quick-view__actions .ggj-quick-view__primary:hover { background: #1e2533; color: #fff; }
.ggj-quick-view__actions .ggj-icon-svg { width: 17px; height: 17px; flex: 0 0 17px; }
.ggj-quick-view__actions .ggj-quick-view__article:hover { background: #e07a1a; border-color: #e07a1a; color: #fff; }
.ggj-quick-view__actions .ggj-quick-view__video:hover { background: #d93333; border-color: #d93333; color: #fff; }
.ggj-quick-view__actions .ggj-quick-view__compare[aria-pressed="true"] { background: #1e2533; border-color: #1e2533; color: #fff; }
.ggj-quick-view__actions .ggj-quick-view__compare[aria-pressed="true"]:hover { background: #1e2533; border-color: #1e2533; color: #fff; }
.ggj-quick-view__actions button:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 767px) { .ggj-detail-modal__panel { width: calc(100% - 1rem); max-height: 86vh; height: auto; border-radius: 10px; } .ggj-detail-modal__body { padding: 0.8rem; } }
@media (max-width: 440px) { .ggj-quick-view__hero { grid-template-columns: 95px minmax(0, 1fr); gap: 0.65rem; } .ggj-quick-view__image { width: 95px; height: 95px; } .ggj-quick-view__intro h2 { font-size: 1rem; } .ggj-quick-view__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ggj-device-db__gallery-compare.is-selected { background: #1e2533; border-color: #1e2533; color: #fff; }
.ggj-device-db__gallery-compare:hover:not(:disabled) { border-color: #1e2533; color: #1e2533; background: #fff; }
.ggj-device-db__gallery-compare.is-selected:hover:not(:disabled) { border-color: #1e2533; color: #fff; background: #1e2533; }
.ggj-btn--compare.is-selected { background: #1e2533; border-color: #1e2533; color: #fff; }
.ggj-btn--compare.is-selected:hover { background: #1e2533; border-color: #1e2533; color: #fff; }
