:root {
  --cpi-bg: #0d0b06;
  --cpi-bg-soft: #17130a;
  --cpi-cream: #f8f1e2;
  --cpi-cream-2: #fffaf0;
  --cpi-text: #19150f;
  --cpi-muted: #706655;
  --cpi-gold: #f5b91f;
  --cpi-gold-2: #f8d46b;
  --cpi-border: rgba(42, 32, 12, 0.14);
  --cpi-border-dark: rgba(245, 185, 31, 0.22);
  --cpi-shadow: 0 24px 64px rgba(20, 12, 0, 0.16);
  --cpi-radius-lg: 34px;
  --cpi-radius-md: 24px;
  --cpi-radius-sm: 16px;
}

.coyote-site-shell-products-template,
.cpi-wrap {
  background: #f3ecdf;
}

.cpi-wrap {
  color: var(--cpi-text);
  font-family: inherit;
  overflow: hidden;
}

.cpi-wrap *,
.cpi-wrap *::before,
.cpi-wrap *::after {
  box-sizing: border-box;
}

.cpi-shell {
  width: min(1180px, calc(100vw - 44px));
  margin: 0 auto;
}

.cpi-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 13px;
  border: 1px solid rgba(245, 185, 31, 0.35);
  border-radius: 999px;
  color: #7b5a08;
  background: rgba(255, 243, 198, 0.75);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cpi-hero {
  position: relative;
  min-height: clamp(560px, 78vh, 820px);
  padding: 132px 0 86px;
  background:
    radial-gradient(circle at 72% 24%, rgba(245, 185, 31, 0.34), transparent 34%),
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.7), transparent 28%),
    linear-gradient(180deg, #fffaf0 0%, #f3ecdf 58%, #0d0b06 58%, #0d0b06 100%);
}

.cpi-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cpi-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 92, 6, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 92, 6, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 70%, transparent 100%);
}

.cpi-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 58px;
  align-items: center;
}

.cpi-hero-copy h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.08em;
  font-weight: 900;
}

.cpi-hero-copy h1 span {
  color: #a87900;
  background: linear-gradient(90deg, #916300, #f2b51c, #6f4a00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cpi-lead {
  width: min(680px, 100%);
  margin: 28px 0 0;
  color: #4e4638;
  font-size: 18px;
  line-height: 1.95;
  font-weight: 650;
}

.cpi-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.cpi-hero-actions a,
.cpi-btn-primary,
.cpi-btn-ghost {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.cpi-hero-actions a:first-child,
.cpi-btn-primary {
  color: #161007 !important;
  background: linear-gradient(135deg, #ffd95f, #f2af13);
  box-shadow: 0 16px 34px rgba(184, 120, 0, 0.2);
}

.cpi-hero-actions a:last-child,
.cpi-btn-ghost {
  color: #fff4d0 !important;
  border: 1px solid rgba(245, 185, 31, 0.42);
  background: rgba(16, 12, 5, 0.78);
}

.cpi-hero-actions a:hover,
.cpi-btn-primary:hover,
.cpi-btn-ghost:hover {
  transform: translateY(-2px);
}

.cpi-orbit {
  position: relative;
  min-height: 460px;
  border-radius: var(--cpi-radius-lg);
  background:
    radial-gradient(circle at 48% 42%, rgba(245, 185, 31, 0.18), transparent 44%),
    linear-gradient(145deg, #17130a, #040403);
  border: 1px solid rgba(245, 185, 31, 0.3);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.cpi-orbit::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 44px solid rgba(245, 185, 31, 0.15);
  border-radius: 50%;
  left: -90px;
  bottom: -112px;
}

.cpi-orbit-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 210px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(245, 185, 31, 0.22);
  background: rgba(255, 250, 240, 0.08);
  color: #fff7df;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.cpi-orbit-card span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #1b1304;
  background: #f7ca45;
  font-weight: 900;
}

.cpi-orbit-card strong { font-size: 16px; }
.cpi-orbit-card em { color: #d8cbaa; font-style: normal; font-size: 12px; }
.cpi-orbit-main { width: 280px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.cpi-orbit-a { left: 32px; top: 46px; }
.cpi-orbit-b { right: 34px; top: 72px; }
.cpi-orbit-c { right: 66px; bottom: 56px; }
.cpi-orbit-ring { position: absolute; inset: 56px; border: 1px dashed rgba(245, 185, 31, 0.22); border-radius: 50%; }

.cpi-guide,
.cpi-products,
.cpi-bundles {
  padding: 82px 0;
}

.cpi-guide {
  background: #0d0b06;
  color: #fff8e7;
}

.cpi-guide .cpi-kicker,
.cpi-bundles .cpi-kicker {
  color: #ffe391;
  background: rgba(245, 185, 31, 0.12);
}

.cpi-guide-head,
.cpi-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 30px;
}

.cpi-guide h2,
.cpi-section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.cpi-guide-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.cpi-guide-rail a {
  display: grid;
  gap: 11px;
  min-height: 154px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(245, 185, 31, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  color: #fff8e7 !important;
  text-decoration: none !important;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.cpi-guide-rail a:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 185, 31, 0.68);
  background: rgba(245, 185, 31, 0.12);
}

.cpi-guide-rail span { color: #d3a42d; font-weight: 900; font-size: 13px; }
.cpi-guide-rail strong { font-size: 18px; }
.cpi-guide-rail em { margin-top: auto; color: #c9bea3; font-style: normal; font-size: 12px; }

.cpi-products {
  background:
    linear-gradient(180deg, #f3ecdf, #fffaf0 24%, #f3ecdf 100%);
}

.cpi-section-head p {
  max-width: 430px;
  color: #cfc2a3;
  line-height: 1.8;
}

.cpi-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.cpi-filters button {
  appearance: none;
  border: 1px solid rgba(42, 32, 12, 0.14) !important;
  background: #fffaf0 !important;
  color: #2a2112 !important;
  border-radius: 999px !important;
  min-height: 38px;
  padding: 0 15px;
  font-weight: 850;
  box-shadow: none !important;
}

.cpi-filters button.is-active {
  border-color: rgba(245, 185, 31, 0.75) !important;
  background: #17130a !important;
  color: #fff7dc !important;
}

.cpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cpi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 26px;
  border: 1px solid var(--cpi-border);
  border-radius: var(--cpi-radius-md);
  background: rgba(255, 250, 240, 0.93);
  box-shadow: 0 16px 44px rgba(54, 36, 0, 0.07);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.cpi-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -104px;
  top: -104px;
  background: rgba(245, 185, 31, 0.12);
}

.cpi-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 185, 31, 0.58);
  box-shadow: 0 24px 64px rgba(54, 36, 0, 0.12);
}

.cpi-card.is-hidden { display: none; }
.cpi-card-hit { position: absolute; inset: 0; z-index: 1; }
.cpi-card > *:not(.cpi-card-hit) { position: relative; z-index: 2; }

.cpi-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.cpi-card-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff0b7;
  color: #7b5a08;
  font-weight: 950;
}

.cpi-card-meta { display: grid; gap: 3px; min-width: 0; }
.cpi-card-meta span { font-size: 12px; font-weight: 950; color: #a87900; }
.cpi-card-meta em { color: #807463; font-size: 11px; font-style: normal; font-weight: 850; letter-spacing: 0.06em; }

.cpi-card-badge {
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #0d0b06;
  color: #fff8e8 !important;
  font-size: 11px;
  font-weight: 950;
}

.cpi-card h3 {
  margin: 0 0 14px;
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.cpi-card-lead {
  margin: 0;
  color: #4e4638;
  line-height: 1.85;
  font-weight: 650;
}

.cpi-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.cpi-card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(245, 185, 31, 0.12);
  border: 1px solid rgba(245, 185, 31, 0.24);
  color: #5e4306;
  font-size: 12px;
  font-weight: 850;
}

.cpi-card-bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.cpi-card-bottom div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(42, 32, 12, 0.08);
}

.cpi-card-label {
  display: block;
  margin-bottom: 5px;
  color: #8a7c66;
  font-size: 11px;
  font-weight: 900;
}

.cpi-card-bottom strong {
  display: block;
  color: #2a2112;
  line-height: 1.6;
  font-size: 13px;
}

.cpi-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cpi-card-dark,
.cpi-card-gold {
  background: linear-gradient(145deg, #17130a, #060503);
  border-color: rgba(245, 185, 31, 0.32);
  color: #fff8e7;
}

.cpi-card-dark .cpi-card-lead,
.cpi-card-gold .cpi-card-lead,
.cpi-card-dark .cpi-card-meta em,
.cpi-card-gold .cpi-card-meta em { color: #d9ccb0; }
.cpi-card-dark .cpi-card-bottom div,
.cpi-card-gold .cpi-card-bottom div { background: rgba(255, 255, 255, 0.07); border-color: rgba(245, 185, 31, 0.18); }
.cpi-card-dark .cpi-card-bottom strong,
.cpi-card-gold .cpi-card-bottom strong { color: #fff7dc; }

.cpi-bundles {
  background: #0d0b06;
  color: #fff8e7;
}

.cpi-section-head-dark { align-items: start; }
.cpi-bundle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cpi-bundle-card {
  display: grid;
  min-height: 210px;
  gap: 12px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(245, 185, 31, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  color: #fff8e7 !important;
  text-decoration: none !important;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.cpi-bundle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 185, 31, 0.7);
  background: rgba(245, 185, 31, 0.12);
}

.cpi-bundle-card span { color: #f4c544; font-weight: 900; font-size: 12px; }
.cpi-bundle-card strong { font-size: 21px; line-height: 1.35; }
.cpi-bundle-card em { margin-top: auto; color: #cfc2a3; font-style: normal; }

@media (max-width: 980px) {
  .cpi-hero-grid,
  .cpi-grid,
  .cpi-bundle-grid { grid-template-columns: 1fr; }
  .cpi-guide-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cpi-orbit { min-height: 360px; }
  .cpi-guide-head,
  .cpi-section-head { display: grid; align-items: start; }
  .cpi-filters { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .cpi-shell { width: min(100% - 24px, 1180px); }
  .cpi-hero { padding: 106px 0 64px; min-height: auto; }
  .cpi-hero-copy h1 { font-size: 46px; }
  .cpi-lead { font-size: 15px; line-height: 1.8; }
  .cpi-orbit { display: none; }
  .cpi-guide,
  .cpi-products,
  .cpi-bundles { padding: 58px 0; }
  .cpi-guide-rail { grid-template-columns: 1fr; }
  .cpi-card { min-height: auto; padding: 20px; border-radius: 22px; }
  .cpi-card-actions { display: grid; }
  .cpi-btn-primary,
  .cpi-btn-ghost { width: 100%; }
}

/* v0.1.14: products index full-bleed isolation.
   固定ページ本文・テーマコンテナ・404 fallback のどちらに載っても、製品一覧だけは画面全幅で扱う。 */
body .coyote-site-shell-products-template {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  background: #f3ecdf !important;
  overflow: hidden !important;
}

body .coyote-site-shell-products-template > .cpi-wrap,
body .entry-content > .cpi-wrap,
body .page-content > .cpi-wrap,
body .site-main .cpi-wrap,
body .wp-block-post-content > .cpi-wrap {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

body .cpi-wrap {
  display: block !important;
  clear: both !important;
}

body .cpi-wrap a,
body .cpi-wrap button,
body .cpi-wrap input {
  -webkit-tap-highlight-color: transparent;
}

body .cpi-wrap .cpi-card-badge,
body .cpi-wrap .cpi-card:hover .cpi-card-badge,
body .cpi-wrap .cpi-card:focus-within .cpi-card-badge {
  background: #0d0b06 !important;
  color: #fff8e8 !important;
}

/* v0.1.20: 黒カード上の機能タグ視認性を固定 */
body .cpi-wrap .cpi-card-dark .cpi-card-tags span,
body .cpi-wrap .cpi-card-gold .cpi-card-tags span,
body .cpi-wrap .cpi-card-dark:hover .cpi-card-tags span,
body .cpi-wrap .cpi-card-gold:hover .cpi-card-tags span,
body .cpi-wrap .cpi-card-dark:focus-within .cpi-card-tags span,
body .cpi-wrap .cpi-card-gold:focus-within .cpi-card-tags span {
  background: rgba(255, 197, 47, 0.20) !important;
  border-color: rgba(255, 213, 90, 0.48) !important;
  color: #ffe8a6 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 226, 0.08) !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.48) !important;
}

body .cpi-wrap .cpi-card-dark .cpi-card-tags span:hover,
body .cpi-wrap .cpi-card-gold .cpi-card-tags span:hover {
  background: rgba(255, 197, 47, 0.28) !important;
  color: #fff4ca !important;
}
