/* ═══ グミ診断レコメンド（Blogummyネイビー系） ═══ */
:root {
  --gr-primary:       #202f55;   /* メインネイビー（サイトヘッダ色と統一） */
  --gr-primary-dark:  #17223f;   /* ホバー時 */
  --gr-primary-soft:  #e4e8f0;   /* ラベル背景・薄い面 */
  --gr-border:        #c0c8db;   /* 枠線 */
  --gr-border-dashed: #d6dce8;   /* 区切り */
  --gr-text:          #1a2540;   /* 本文 */
  --gr-text-sub:      #6b7691;   /* セカンダリ */
  --gr-track:         #d6dce8;   /* スケールの棒 */
  --gr-track-dot:     #c0c8db;   /* 未選択ドット */
  --gr-addict:        #c9a400;   /* 中毒性のアクセント（濃いめ黄） */
}

.gr-wrap { max-width: 720px; margin: 0 auto; font-family: inherit; }
.gr-lead { font-size: 14px; color: var(--gr-text-sub); margin-bottom: 20px; text-align: center; line-height: 1.6; }
.gr-lead-note { font-size: 12px; color: var(--gr-text-sub); opacity: 0.85; }

.gr-form {
  background: #fff;
  border: 1px solid var(--gr-border);
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 2px 12px rgba(32,47,85,0.08);
  margin-bottom: 18px;
}
.gr-axis {
  padding: 12px 0;
  border-bottom: 1px dashed var(--gr-border-dashed);
}
.gr-axis:last-of-type { border-bottom: none; }
.gr-axis-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.gr-axis-label {
  display: inline-block;
  background: var(--gr-primary-soft);
  color: var(--gr-primary);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.gr-clear {
  font-size: 12px;
  color: var(--gr-text-sub);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}
.gr-clear:hover { color: var(--gr-primary); }

.gr-scale {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gr-edge {
  font-size: 12px;
  color: var(--gr-text-sub);
  min-width: 36px;
  text-align: center;
}
.gr-track {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 36px;
}
.gr-track::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 2px;
  background: var(--gr-track);
  transform: translateY(-50%);
  z-index: 0;
}
.gr-dot {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gr-track-dot);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  transition: all 0.15s;
  border: none;
  padding: 0;
}
.gr-dot:hover { background: #a8b6d6; }
.gr-dot.on {
  background: var(--gr-primary);
  box-shadow: 0 0 0 4px rgba(32,47,85,0.18);
}
.gr-dot.on::after {
  content: '✓';
  font-weight: 700;
}

.gr-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.gr-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.gr-btn-primary { background: var(--gr-primary); color: #fff; }
.gr-btn-primary:hover { background: var(--gr-primary-dark); }
.gr-btn-ghost { background: transparent; color: var(--gr-text-sub); border: 1px solid var(--gr-border); }
.gr-btn-ghost:hover { background: var(--gr-primary-soft); }

.gr-results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 10px 4px 12px;
  font-size: 13px;
  color: var(--gr-text-sub);
}
.gr-count strong { color: var(--gr-primary); font-size: 17px; margin: 0 2px; }
.gr-sort select {
  border: 1px solid var(--gr-border);
  border-radius: 6px;
  padding: 4px 8px;
  background: #fff;
  color: var(--gr-text-sub);
  font-size: 13px;
}

.gr-card {
  background: #fff;
  border: 1px solid var(--gr-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.12s, box-shadow 0.12s;
}
.gr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32,47,85,0.15);
}
.gr-card-img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dae0ec, #b3bcd1);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.gr-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gr-text);
  line-height: 1.4;
  margin-bottom: 4px;
  text-decoration: none;
}
.gr-match {
  display: inline-block;
  background: var(--gr-primary-soft);
  color: var(--gr-primary);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 4px;
}
.gr-match.perfect { background: var(--gr-primary); color: #fff; }
.gr-mini-ratings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
  font-size: 11px;
  color: var(--gr-text-sub);
  margin-top: 4px;
}
.gr-mini-ratings > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gr-mini-dots { display: inline-flex; gap: 2px; margin-left: 4px; }
.gr-mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8ecf5;
}
.gr-mini-dot.on { background: var(--gr-primary); }
.gr-mini-ratings .gr-yellow .gr-mini-dot.on { background: var(--gr-addict); }

/* フレーバーピル（3択カテゴリ選択） */
.gr-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}
.gr-pill {
  padding: 7px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--gr-border);
  color: var(--gr-text-sub);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.gr-pill:hover {
  background: var(--gr-primary-soft);
  color: var(--gr-primary);
}
.gr-pill.on {
  background: var(--gr-primary);
  color: #fff;
  border-color: var(--gr-primary);
  box-shadow: 0 0 0 3px rgba(32,47,85,0.18);
}

/* 記事カードのフレーバー表示 */
.gr-flavor-tag {
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 6px;
}
.gr-flavor-value {
  display: inline-block;
  background: var(--gr-primary-soft);
  color: var(--gr-primary);
  padding: 1px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
}

.gr-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--gr-text-sub);
  background: #fff;
  border: 1px dashed var(--gr-border);
  border-radius: 10px;
  font-size: 13px;
}
.gr-loading {
  text-align: center;
  padding: 20px;
  color: var(--gr-text-sub);
  font-size: 13px;
}

@media (max-width: 480px) {
  .gr-card { grid-template-columns: 72px 1fr; }
  .gr-card-img { width: 72px; height: 72px; }
  .gr-mini-ratings { grid-template-columns: 1fr; }
}

/* コンパクト表示（記事末尾） */
.gr-compact .gr-form { padding: 14px 12px; }
.gr-compact .gr-axis { padding: 8px 0; }
