/* ============================================
   NaniKaeru? Tourist Edition - スタイルシート
   モバイルファースト・レスポンシブ設計
   ============================================ */

/* ---- CSS変数 ---- */
:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --primary: #e8594f;
  --primary-dark: #d0443a;
  --primary-light: #fceae8;
  --accent: #2d8f70;
  --accent-light: #e6f5f0;
  --text: #2c3e50;
  --text-muted: #7f8c8d;
  --text-light: #a0a8b0;
  --border: #e8e0d8;
  --border-light: #f0ebe5;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --spacing-xs: 6px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 32px;
  --transition: 0.2s ease;
  --font: 'Hiragino Sans', 'Noto Sans JP', -apple-system, 'Segoe UI', sans-serif;
}

/* ---- リセット ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }
select { font-family: inherit; }

/* ---- ヘッダー ---- */
.header {
  background: linear-gradient(135deg, var(--primary), #f07a6e);
  color: #fff;
  text-align: center;
  padding: 24px 16px 32px;
  position: relative;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto 12px;
}

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-btn {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
  background: rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.6);
}

.logo {
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 900;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
  margin-bottom: 4px;
}

.subtitle {
  font-size: clamp(13px, 3vw, 15px);
  opacity: 0.92;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

.header-jp-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.header-jp-link:hover { color: #fff; }

/* ---- メインコンテナ ---- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ---- 入力カード ---- */
.input-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-top: -24px;
  position: relative;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.currency-select {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  background: var(--card);
  color: var(--text);
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%237f8c8d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.currency-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.amount-input {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  transition: var(--transition);
  width: 100%;
}

.amount-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.amount-input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.calc-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(232,89,79,0.3);
  margin-bottom: 10px;
}

.calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,89,79,0.4);
}

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

/* ---- テンプレ金額 ---- */
.quick-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 14px;
  border-top: 1.5px dashed var(--border-light);
}

.quick-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  width: 100%;
  margin-bottom: 2px;
}

.quick-btn {
  padding: 8px 16px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
}

.quick-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

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

/* ---- 換算バナー ---- */
/* ---- レートアラート ---- */
.rate-alert {
  display: none;
  background: linear-gradient(135deg, #fffbe6, #fff4cc);
  border: 1.5px solid #f0d060;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.rate-alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.rate-alert-icon {
  font-size: 24px;
  line-height: 1;
}

.rate-alert-title {
  font-size: 14px;
  font-weight: 800;
  color: #8a6d00;
}

.rate-alert-desc {
  font-size: 12px;
  color: #8a6d00;
  margin-bottom: 10px;
  line-height: 1.5;
}

.rate-alert-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rate-alert-item {
  background: rgba(255,255,255,0.7);
  border: 1px solid #e8d870;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #6b5500;
}

.conversion-banner {
  display: none;
  background: linear-gradient(135deg, #fff8f5, #f5faf8);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  text-align: center;
}

.conv-main {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}

.conv-rate {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.conv-updated {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ---- カテゴリタブ ---- */
.category-section {
  margin-top: 20px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 2px 0;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
}

.cat-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cat-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cat-chip.active:hover {
  background: var(--primary-dark);
}

/* ---- ソート・フィルター ---- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.filter-bar label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.filter-bar select {
  padding: 8px 30px 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg);
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5l3.5 3.5 3.5-3.5' fill='none' stroke='%237f8c8d' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-bar select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

.filter-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* ---- 結果サマリー ---- */
.results-summary {
  display: none;
  text-align: center;
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-light), #fef3f0);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(232,89,79,0.15);
}

.summary-title {
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.4;
}

.summary-conversion {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-top: 6px;
}

.summary-count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ---- サンプル組み合わせ ---- */
/* ---- ランダム組み合わせ ---- */
.sample-combo {
  display: none;
  margin-top: 20px;
}

.combo-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-light), #fff3e6);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
}

.combo-results-title {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.4;
}

.combo-results-title span {
  color: var(--text);
}

.combo-results-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* ---- 組み合わせ商品カード ---- */
.combo-item-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: 0.25s;
  box-shadow: 0 4px 16px rgba(232,89,79,0.08);
}

.combo-item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.combo-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--border-light);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.combo-item-img-placeholder {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-light), #fff3e6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.combo-item-store {
  font-size: 11px;
  color: #fff;
  background: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.combo-item-name {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-item-price {
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
}

.combo-item-foreign {
  font-size: 12px;
  color: var(--text-muted);
}

.combo-item-count {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 900;
  font-size: 24px;
  text-align: center;
  min-width: 80px;
  box-shadow: 0 4px 12px rgba(232,89,79,0.25);
  flex-shrink: 0;
}

.combo-item-count small {
  font-size: 11px;
  font-weight: 600;
  display: block;
  opacity: 0.9;
  margin-top: 2px;
}

/* ---- 組み合わせサマリー ---- */
.combo-summary {
  background: linear-gradient(135deg, var(--primary), #f07a6e);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 8px 30px rgba(232,89,79,0.25);
  position: relative;
  overflow: hidden;
}

.combo-summary::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.combo-summary::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.combo-summary-total {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.combo-summary-remaining {
  font-size: 16px;
  margin-top: 8px;
  opacity: 0.95;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.combo-summary-badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 800;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

/* ---- リトライボタン ---- */
.combo-retry {
  text-align: center;
  margin-top: 16px;
}

.retry-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 15px rgba(232,89,79,0.3);
}

.retry-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(232,89,79,0.4);
}

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

/* ---- 商品カードグリッド ---- */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

/* ---- 商品カード ---- */
.product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-img-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.card-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--border-light);
}

.card-img-placeholder {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-light), #fef0ed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-store {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.card-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-badge-recommend {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 3px;
}

.card-price {
  font-size: 14px;
  margin-bottom: 2px;
}

.card-price-jpy {
  font-weight: 700;
  color: var(--primary);
}

.card-tax {
  font-size: 11px;
  color: var(--text-light);
}

.card-price-foreign {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
}

.card-remaining {
  font-size: 11px;
  color: var(--text-light);
}

.card-count-wrap {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 70px;
  box-shadow: 0 3px 10px rgba(232,89,79,0.25);
}

.card-count {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
}

.card-count-label {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}

/* ---- 結果なし ---- */
.no-results {
  text-align: center;
  padding: 48px 20px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
}

.no-results-emoji {
  font-size: 56px;
  margin-bottom: 12px;
}

.no-results-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.no-results-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---- シェアセクション ---- */
.share-section {
  display: none;
  text-align: center;
  margin-top: 20px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}

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

.share-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.share-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s;
  box-shadow: 0 4px 15px rgba(232,89,79,0.25);
  margin-top: 10px;
}

.share-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232,89,79,0.35);
}

.share-preview {
  margin-top: 12px;
}

.share-preview canvas {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border: 2px solid var(--border);
}

.share-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: share-spin 0.6s linear infinite;
}

@keyframes share-spin {
  to { transform: rotate(360deg); }
}

/* ---- トースト ---- */
.share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
  pointer-events: none;
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- 注意書き ---- */
.disclaimers {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(0,0,0,0.02);
  padding: 16px;
  border-radius: var(--radius-md);
  line-height: 1.8;
}

.disclaimers p {
  margin-bottom: 4px;
}

/* ---- フッター ---- */
.footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
  font-size: 12px;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ============================================
   レスポンシブ
   ============================================ */

/* タブレット (>=600px) */
@media (min-width: 600px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .input-card {
    padding: 28px 24px;
  }

  .filter-bar {
    flex-wrap: nowrap;
  }
}

/* デスクトップ (>=960px) */
@media (min-width: 960px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header {
    padding: 32px 20px 40px;
  }

  .input-card {
    padding: 32px 28px;
    margin-top: -30px;
  }

  .product-card {
    padding: 18px;
  }

  .card-img-wrap, .card-img, .card-img-placeholder {
    width: 80px;
    height: 80px;
  }
}

/* 大画面 (>=1200px) */
@media (min-width: 1200px) {
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* モバイル最適化 (<=480px) */
@media (max-width: 480px) {
  .header {
    padding: 18px 12px 28px;
  }

  .header-top {
    flex-direction: column;
    gap: 8px;
  }

  .lang-switch {
    order: 1;
  }

  .input-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .input-row {
    flex-direction: column;
  }

  .currency-select,
  .amount-input {
    font-size: 16px; /* iOS zoom防止 */
  }

  .category-tabs {
    gap: 6px;
  }

  .cat-chip {
    padding: 6px 11px;
    font-size: 12px;
  }

  .cat-chip span {
    /* 超小画面ではアイコンのみ表示。aria-labelでアクセシビリティ担保 */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
  }

  .product-card {
    padding: 12px;
    gap: 10px;
  }

  .card-img-wrap, .card-img, .card-img-placeholder {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .card-name {
    font-size: 14px;
  }

  .card-count-wrap {
    padding: 8px 12px;
    min-width: 58px;
  }

  .card-count {
    font-size: 22px;
  }

  .combo-item-card {
    padding: 12px;
    gap: 10px;
  }

  .combo-item-img, .combo-item-img-placeholder {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .combo-item-name {
    font-size: 14px;
  }

  .combo-item-count {
    padding: 10px 14px;
    font-size: 20px;
    min-width: 65px;
  }

  .filter-bar {
    padding: 10px 12px;
    gap: 8px;
  }

  .quick-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* ---- フォーカス可視化(アクセシビリティ) ---- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---- スクリーンリーダー用 ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- スクロールバー ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
