/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0
*/

/* ============================================
   CanvasRoot CSS Variables
   ============================================ */
:root {
  --cr-primary: #5b6ef5;
  --cr-primary-light: #eef0fe;
  --cr-premium: #e6a817;
  --cr-premium-light: #fef8e7;
  --cr-free-green: #2ecc8b;
  --cr-free-light: #eafaf4;
  --cr-text: #1a1a2e;
  --cr-text-muted: #7a7a9a;
  --cr-border: #e8e8f0;
  --cr-bg: #f8f8fc;
  --cr-white: #ffffff;
  --cr-radius: 12px;
  --cr-radius-sm: 8px;
  --cr-sidebar-w: 220px;
}

/* ============================================
   ページ全体レイアウト
   ============================================ */
.cr-single-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  display: grid !important;
  grid-template-columns: var(--cr-sidebar-w) 1fr !important;
  gap: 28px;
  align-items: start;
}

.cr-main-content {
  min-width: 0;
}

/* ============================================
   パンくずリスト
   ============================================ */
.cr-breadcrumb {
  font-size: 13px;
  color: var(--cr-text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cr-breadcrumb a {
  color: var(--cr-text-muted);
  text-decoration: none;
}
.cr-breadcrumb a:hover { color: var(--cr-primary); }
.cr-bc-sep { color: var(--cr-border); }

/* ============================================
   トップセクション（プレビュー＋情報）
   ============================================ */
.cr-top-section {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

/* ============================================
   プレビューエリア
   ============================================ */
.cr-preview-main {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 14px;
  overflow: hidden;
  background: repeating-conic-gradient(#e0e0e8 0% 25%, #fff 0% 50%) 0 0 / 20px 20px;
  transition: background 0.2s;
}
.cr-svg-container {
  width: 58%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cr-svg-container svg,
.cr-svg-container img {
  width: 100%;
  height: auto;
}
.cr-no-preview {
  color: var(--cr-text-muted);
  font-size: 13px;
}

/* お気に入りボタン */
.cr-fav-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid var(--cr-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer;
  transition: all 0.15s;
  backdrop-filter: blur(4px);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.cr-fav-btn:hover { transform: scale(1.12); }
.cr-fav-btn.cr-active { background: #fff0f5; border-color: #f9a8c0; color: #e05b7f; }

/* 拡大ボタン */
.cr-preview-zoom {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================
   パレットパネル
   ============================================ */
.cr-palette-panel {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.cr-palette-block {
  margin-bottom: 12px;
}
.cr-palette-block:last-child { margin-bottom: 0; }
.cr-palette-block + .cr-palette-block {
  padding-top: 12px;
  border-top: 1px solid var(--cr-border);
}
.cr-palette-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cr-palette-block-label {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cr-color-indicator {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
  transition: background 0.15s;
}
.cr-checker-ind {
  background: repeating-conic-gradient(#ccc 0% 25%,#fff 0% 50%) 0 0 / 8px 8px;
  border: 2px solid #ddd !important;
}
.cr-reset-sm {
  font-size: 11px;
  color: var(--cr-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}
.cr-swatch-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.cr-swatch {
  width: 24px; height: 24px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s, border-color 0.12s;
  flex-shrink: 0;
}
.cr-swatch:hover { transform: scale(1.18); }
.cr-swatch.cr-active {
  border-color: var(--cr-primary);
  box-shadow: 0 0 0 1px var(--cr-primary);
}
.cr-checker-swatch {
  background: repeating-conic-gradient(#ccc 0% 25%,#fff 0% 50%) 0 0 / 10px 10px;
  border: 2px solid #ddd;
}
.cr-white-swatch { border: 2px solid #ddd; }
.cr-picker-trigger {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 2px dashed var(--cr-border);
  background: var(--cr-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s;
  position: relative;
}
.cr-picker-trigger:hover { border-color: var(--cr-primary); }
.cr-picker-trigger input[type=color] {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  cursor: pointer;
}

/* ============================================
   パーツ反転パネル
   ============================================ */
.cr-flip-panel {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius);
  padding: 14px;
}
.cr-panel-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cr-panel-title-sub {
  font-weight: 400;
  color: var(--cr-text-muted);
  font-size: 11px;
}
.cr-flip-all-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.cr-flip-all-btn {
  flex: 1;
  padding: 6px;
  border-radius: 8px;
  border: 1.5px solid var(--cr-border);
  background: var(--cr-white);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  color: var(--cr-text-muted);
  transition: all 0.15s;
}
.cr-flip-all-btn:hover { border-color: var(--cr-primary); color: var(--cr-primary); }
.cr-parts-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cr-part-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--cr-border);
  background: var(--cr-bg);
  transition: all 0.15s;
}
.cr-part-row.cr-flipped {
  border-color: var(--cr-primary);
  background: var(--cr-primary-light);
}
.cr-part-thumb {
  width: 30px; height: 30px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
}
.cr-part-info { flex: 1; }
.cr-part-label { font-size: 12px; font-weight: 600; }
.cr-part-id { font-size: 10px; color: var(--cr-text-muted); font-family: monospace; }
.cr-flip-toggle {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1.5px solid var(--cr-border);
  background: var(--cr-white);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.cr-flip-toggle.cr-on {
  background: var(--cr-primary);
  color: white;
  border-color: var(--cr-primary);
}

/* ============================================
   情報カラム
   ============================================ */
.cr-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  background: #e8effe;
  color: var(--cr-primary);
  margin-bottom: 8px;
}
.cr-item-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  color: var(--cr-text);
}
.cr-item-desc {
  color: var(--cr-text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.cr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}
.cr-tag {
  background: var(--cr-primary-light);
  color: var(--cr-primary);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
}
.cr-tag:hover { background: var(--cr-primary); color: white; }
.cr-section-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--cr-text);
}
.cr-section-sub {
  font-size: 12px;
  color: var(--cr-text-muted);
  margin-bottom: 10px;
}

/* ============================================
   サイズ・形式エディター
   ============================================ */
.cr-size-editor {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius);
  padding: 16px;
  margin-bottom: 18px;
}
.cr-format-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.cr-format-tab {
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--cr-border);
  color: var(--cr-text-muted);
  background: var(--cr-white);
  font-family: inherit;
  transition: all 0.15s;
}
.cr-format-tab.cr-active {
  background: var(--cr-primary);
  color: white;
  border-color: var(--cr-primary);
}
.cr-svg-info-box {
  background: var(--cr-primary-light);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--cr-primary);
  margin-bottom: 12px;
}
.cr-svg-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--cr-border);
}
.cr-locked-row {
  background: #f5f5f8;
  opacity: 0.7;
}
.cr-svg-copy-label { flex: 1; }
.cr-svg-copy-label strong {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}
.cr-svg-copy-label span {
  font-size: 11px;
  color: var(--cr-text-muted);
}
.cr-muted { color: var(--cr-text-muted) !important; }
.cr-premium-hint {
  font-size: 10px;
  color: var(--cr-premium);
  font-weight: 700;
  background: var(--cr-premium-light);
  border-radius: 4px;
  padding: 1px 6px;
  margin-top: 3px;
  display: inline-block;
}
.cr-copy-btn {
  padding: 6px 14px;
  border-radius: 7px;
  border: 1.5px solid var(--cr-primary);
  background: var(--cr-primary-light);
  color: var(--cr-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}
.cr-copy-btn:hover { background: var(--cr-primary); color: white; }
.cr-copy-btn.cr-copied {
  background: var(--cr-free-green);
  border-color: var(--cr-free-green);
  color: white;
}
.cr-copy-btn-locked {
  padding: 6px 14px;
  border-radius: 7px;
  border: 1.5px solid var(--cr-border);
  background: #ececf2;
  color: var(--cr-text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: not-allowed;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* pxプリセット */
.cr-px-presets-label {
  font-size: 12px;
  color: var(--cr-text-muted);
  margin-bottom: 8px;
}
.cr-px-presets {
  display: flex;
  border: 1.5px solid var(--cr-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.cr-px-btn {
  flex: 1;
  min-width: 0;
  padding: 8px 2px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--cr-white);
  font-family: inherit;
  color: var(--cr-text-muted);
  border-right: 1px solid var(--cr-border);
  transition: all 0.15s;
  line-height: 1.3;
}
.cr-px-btn:last-child { border-right: none; }
.cr-px-btn:hover { background: var(--cr-primary-light); color: var(--cr-primary); }
.cr-px-btn.cr-active { background: var(--cr-text); color: white; }
.cr-px-num { display: block; font-size: 12px; }
.cr-px-unit { display: block; font-size: 9px; opacity: 0.7; }

/* スライダー */
.cr-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cr-slider-label {
  font-size: 12px;
  color: var(--cr-text-muted);
  white-space: nowrap;
}
input[type=range].cr-size-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 5px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, var(--cr-primary) 0%, var(--cr-primary) 8%, var(--cr-border) 8%);
}
input[type=range].cr-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cr-white);
  border: 3px solid var(--cr-primary);
  box-shadow: 0 2px 6px rgba(91,110,245,0.25);
  cursor: pointer;
}
.cr-slider-val {
  font-size: 13px;
  font-weight: 700;
  min-width: 52px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--cr-text);
}
.cr-filesize-hint {
  font-size: 11px;
  color: var(--cr-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.cr-filesize-hint strong { color: var(--cr-text); }

/* ============================================
   素材情報カード
   ============================================ */
.cr-info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.cr-info-card {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius);
  padding: 16px;
}
.cr-info-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--cr-text);
}
.cr-info-card-icon {
  width: 24px; height: 24px;
  background: var(--cr-primary-light);
  border-radius: 0px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.cr-info-card-body {
  font-size: 12px;
  color: var(--cr-text-muted);
  line-height: 1.7;
}
.cr-info-list {
  list-style: none;
  font-size: 12px;
  color: var(--cr-text-muted);
}
.cr-info-list li {
  padding: 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.cr-info-list li::before {
  content: '✓';
  color: var(--cr-free-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   ダウンロードセクション
   ============================================ */
.cr-download-section {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius);
  padding: 18px 20px;
  margin-bottom: 28px;
  margin-top: 28px;
}

.cr-dl-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cr-premium-banner {
  background: linear-gradient(135deg, var(--cr-premium-light), #fff8e0);
  border: 1.5px solid #f0d080;
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  max-width: 240px;
  text-decoration: none;
}
.cr-premium-banner strong {
  display: block;
  font-size: 12px;
  color: #b07800;
}
.cr-premium-banner span {
  font-size: 11px;
  color: #c09020;
}
.cr-arrow { margin-left: auto; color: #b07800; }
.cr-dl-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.cr-dl-tier {
  border: 1.5px solid var(--cr-border);
  border-radius: var(--cr-radius-sm);
  padding: 14px;
}
.cr-dl-tier.cr-premium-tier {
  border-color: #f0d080;
  background: linear-gradient(160deg, #fffdf0, #fff);
  opacity: 0.72;
}
.cr-tier-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cr-free-badge { background: var(--cr-free-light); color: var(--cr-free-green); }
.cr-premium-badge { background: var(--cr-premium-light); color: var(--cr-premium); }
.cr-tier-format {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--cr-text);
}
.cr-tier-size-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--cr-text-muted);
}
.cr-tier-size-info {
  font-size: 11px;
  color: var(--cr-text-muted);
  margin-bottom: 2px;
}
.cr-tier-note {
  font-size: 10px;
  color: var(--cr-text-muted);
  margin-bottom: 12px;
}
.cr-dl-btn {
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.cr-dl-btn:hover { opacity: 0.85; }
.cr-free-dl {
  background: var(--cr-free-light);
  color: var(--cr-free-green);
  border: 1.5px solid var(--cr-free-green);
}
.cr-locked-btn {
  background: #f0f0f5;
  color: var(--cr-text-muted);
  border: 1.5px solid var(--cr-border) !important;
  cursor: not-allowed;
  opacity: 0.7;
}
.cr-dl-note {
  font-size: 11px;
  color: var(--cr-text-muted);
  text-align: center;
}

/* ============================================
   関連素材カルーセル
   ============================================ */
.cr-related-section { margin-bottom: 0px; }
.cr-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  margin-bottom: 12px;
}

.cr-related-title { font-size: 15px; font-weight: 700; color: var(--cr-text); }
.cr-related-more {
  font-size: 12px;
  color: var(--cr-primary);
  text-decoration: none;
}
.cr-carousel-wrap { position: relative; padding: 0 20px; }

.cr-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.cr-carousel::-webkit-scrollbar { display: none; }

.cr-similar-carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  width: 100%;
}
.cr-similar-carousel::-webkit-scrollbar { display: none; }
.cr-carousel-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--cr-white);
  border: 1.5px solid var(--cr-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 13px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.cr-arrow-left { left: -12px; }
.cr-arrow-right { right: -12px; }
.cr-related-card {
  flex: 0 0 180px;
  max-width: 180px; /* ← 追加 */
  scroll-snap-align: start;
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s;
  text-decoration: none;
  color: var(--cr-text);
}

.cr-related-card:hover {
  box-shadow: 0 4px 14px rgba(91,110,245,0.12);
}
.cr-related-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: block;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


/* ← これを追加 */
.cr-related-hover-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 6px 8px;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-related-card:hover .cr-related-hover-title {
  opacity: 1;
}

.cr-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cr-no-thumb { font-size: 28px; }
.cr-related-info { padding: 8px 10px; }
.cr-related-name {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-related-meta { display: flex; gap: 4px; }
.cr-tag-sm {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
}
.cr-tag-vector { background: var(--cr-primary-light); color: var(--cr-primary); }
.cr-tag-free { background: var(--cr-free-light); color: var(--cr-free-green); }
.cr-tag-premium { background: var(--cr-premium-light); color: var(--cr-premium); }
.cr-howto-text { flex: 1; }
.cr-howto-date { font-size: 0.7rem; color: #aaa; margin-bottom: 3px; }
.cr-howto-title { font-size: 0.78rem; line-height: 1.4; }
/* ============================================
   プレビューエリア 角丸リセット
   ============================================ */
.cr-preview-main {
  border-radius: 0 !important;
}

JPEG版詳細ページ追加CSS
   ============================================ */

/* 素材スペックグリッド */
.cr-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.cr-spec-item {
  background: var(--cr-bg);
  border-radius: var(--cr-radius-sm);
  padding: 10px 12px;
}
.cr-spec-label {
  font-size: 11px;
  color: var(--cr-text-muted);
  margin-bottom: 4px;
}
.cr-spec-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--cr-text);
}

/* カラーパレットスウォッチ */
.cr-jpeg-palette-swatch {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid rgba(0,0,0,0.08);
  transition: transform 0.12s;
  flex-shrink: 0;
}
.cr-jpeg-palette-swatch:hover {
  transform: scale(1.15);
  border-color: var(--cr-primary);
}

/* カラーコードリスト */
.cr-color-code-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--cr-bg);
  border-radius: var(--cr-radius-sm);
  padding: 10px 12px;
  font-family: monospace;
}
.cr-color-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--cr-text);
}
.cr-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.1);
}
.cr-color-hex {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* バリエーショングリッド */
.cr-variation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cr-var-item {
  cursor: pointer;
  border-radius: var(--cr-radius-sm);
  overflow: hidden;
  border: 2px solid var(--cr-border);
  transition: border-color 0.15s;
}
.cr-var-item:hover {
  border-color: var(--cr-primary);
}
.cr-var-item.cr-var-active {
  border-color: var(--cr-free-green);
}
.cr-var-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cr-bg);
}
.cr-var-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cr-var-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cr-free-green);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cr-var-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--cr-text-muted);
  padding: 5px 8px;
  background: var(--cr-white);
  text-align: center;
}
.cr-var-item.cr-var-active .cr-var-label {
  color: var(--cr-free-green);
  background: var(--cr-free-light);
}

/* お問い合わせフォーム */
.wpcf7 {
    max-width: 680px !important;
    margin: 40px auto 80px !important;
    background: #fff !important;
    border-radius: 12px !important;
    border: 1.5px solid #e8e8e8 !important;
    padding: 48px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06) !important;
}
.wpcf7 label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
    display: block;
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: #5a9a3a;
    background: #fff;
    outline: none;
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input[type="submit"] {
    display: block;
    width: 100%;
    padding: 14px;
    background: #5a9a3a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s;
}
.wpcf7 input[type="submit"]:hover { background: #4a8a2a; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 0.78rem; color: #e05a5a; margin-top: 4px; }
.wpcf7 .wpcf7-response-output { margin-top: 20px; padding: 12px 16px; border-radius: 8px; font-size: 0.88rem; border: none; }
.wpcf7 .wpcf7-mail-sent-ok { background: #eef4e8; color: #3a6a20; }
.wpcf7 .wpcf7-mail-sent-ng { background: #fff0f0; color: #c03030; }
.wpcf7 input[type="file"] { margin-top: 6px; font-size: 0.85rem; }

/* 条件分岐グループ */
.wpcf7 .wpcf7cf-group:has([name="usage"]) {
    background: #f7faf4;
    border: 1.5px solid #c8e0b8;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.wpcf7 .wpcf7cf-group:has([name="device"]) {
    background: #fff8f0;
    border: 1.5px solid #f5c0a0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .wpcf7 { padding: 24px 20px; margin: 20px 16px 60px; }
}
.page-content .wpcf7 {
    max-width: 680px !important;
    margin: 40px auto 80px !important;
    background: #fff !important;
    border-radius: 12px !important;
    border: 1.5px solid #e8e8e8 !important;
    padding: 48px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06) !important;
}
.page-id-1403 .page-content {
    padding: 0 !important;
    max-width: 100% !important;
}

.page-id-1403 .wpcf7 {
    max-width: 680px !important;
    margin: 40px auto 80px !important;
    background: #fff !important;
    border-radius: 12px !important;
    border: 1.5px solid #e8e8e8 !important;
    padding: 48px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06) !important;
}
