@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

.jcc {
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}

/* トリガー（閉じた状態） */
.jcc__trigger {
  position: relative;
  padding: 24px 20px 44px;
  text-align: center;
  max-height: 320px;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
  opacity: 1;
}

.jcc.is-open .jcc__trigger {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.jcc__trigger-lead {
  margin: 0 0 14px;
  font-size: 22px;
  color: #4e4441;
}

.jcc__trigger-btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ffaa44 0%, #ff7730 50%, #f95d37 100%);
  color: #fff;
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 48px;
  padding: 14px 36px;
  cursor: pointer;
  box-shadow: 0 5px 0 #c94220, 0 8px 20px rgba(249, 93, 55, 0.45);
  transform: translateY(0);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: jcc-btn-pulse 3s ease-in-out infinite;
}

.jcc__trigger-btn::before {
  content: '';
  position: absolute;
  top: -10%; left: -80%; width: 55%; height: 120%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  border-radius: 50%;
  animation: jcc-btn-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.jcc__trigger-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #c94220, 0 14px 28px rgba(249, 93, 55, 0.55);
  animation: none;
}

.jcc__trigger-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #c94220, 0 4px 10px rgba(249, 93, 55, 0.3);
  animation: none;
}

.jcc__trigger-sub {
  margin: 0 0 14px;
  font-size: 13px;
  padding: 0 20px;
  color: #666;
}

/* トリガー内の注釈：右下に絶対配置 */
.jcc__trigger .jcc__disclaimer {
  position: absolute;
  bottom: 8px;
  right: 12px;
  margin: 0;
  padding: 0;
  font-size: 10px;
  color: #bbb;
  line-height: 1.6;
  text-align: right;
}

/* パネル内の注釈：通常フローで右寄せ */
.jcc__panel .jcc__disclaimer {
  margin: 0;
  padding: 6px 12px 10px;
  font-size: 10px;
  /* color: #bbb; */
  line-height: 1.6;
  text-align: right;
  background: #f5f5f5;
}

.jcc__trigger-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #999;
}

/* チャットパネル（アコーディオン） */
.jcc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.jcc.is-open .jcc__panel {
  max-height: 3000px;
}

.jcc__header {
  background: linear-gradient(135deg, #ff972a, #ff7d2a);
  padding: 14px 20px 12px;
  text-align: center;
}

.jcc__header-user-count {
  margin: 0 0 8px;
  color: #fff9f3;
  font-size: 13px;
}

.jcc__header-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.jcc__header-pr-note {
  margin: -4px 0 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  text-align: center;
}

.jcc__header-subtitle {
  margin: 0 0 12px;
  color: #fff6e8;
  font-size: 13px;
}

.jcc__progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jcc__progress {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.jcc__progress-label {
  margin: 0;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  min-width: 5em;
  text-align: right;
}

.jcc__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
  transition: width 0.3s ease;
}

.jcc__content {
  background: #f5f5f5;
}

.jcc-chat__messages {
  position: relative;
  padding: 18px 16px 20px;
}

.jcc-chat__message {
  display: flex;
  margin-bottom: 12px;
  gap: 14px;
  align-items: center;
}

.jcc-chat__bubble {
  max-width: calc(100% - 54px);
}

.jcc-chat__message p {
  margin: 0;
  line-height: 1.7;
  white-space: pre-wrap;
}

.jcc-chat__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jcc-chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jcc-chat__avatar-fallback {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #4e4441;
}

.jcc-chat__message.is-assistant .jcc-chat__bubble {
  position: relative;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 15px 15px 15px 15px;
  padding: 12px 15px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}

/* 三角（ボーダー色） */
.jcc-chat__message.is-assistant .jcc-chat__bubble::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -9px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 9px 7px 0;
  border-color: transparent #d9d9d9 transparent transparent;
}

/* 三角（白塗り） */
.jcc-chat__message.is-assistant .jcc-chat__bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -7px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 7px 6px 0;
  border-color: transparent #fff transparent transparent;
}

.jcc-chat__message.is-assistant p {
  font-size: 14px;
  color: #231815;
}

.jcc-chat__message.is-user {
  justify-content: flex-end;
  gap: 0;
}

.jcc-chat__message.is-options {
  justify-content: center;
  gap: 0;
}

.jcc-chat__message.is-options .jcc-chat__avatar {
  display: none;
}

.jcc-chat__message.is-options .jcc-chat__bubble::before,
.jcc-chat__message.is-options .jcc-chat__bubble::after {
  display: none;
}

.jcc-chat__message.is-options .jcc-chat__bubble {
  width: min(100%, 680px);
  max-width: min(100%, 680px);
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
}

.jcc-chat__message.is-user .jcc-chat__bubble {
  max-width: 84%;
}

.jcc-chat__message.is-user p {
  background: #f95d37;
  border-radius: 15px 15px 4px 15px;
  padding: 12px 15px;
  color: #fff;
  font-size: 14px;
}

.jcc-chat__message.is-enter {
  animation: jcc-fade-up 0.28s ease;
}

.jcc-chat__typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
}

.jcc-chat__typing i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f95d37;
  opacity: 0.35;
  animation: jcc-typing 1s infinite;
}

.jcc-chat__typing i:nth-child(2) {
  animation-delay: 0.2s;
}

.jcc-chat__typing i:nth-child(3) {
  animation-delay: 0.4s;
}

.jcc-chat__choice-label {
  margin: 0 0 10px;
  color: #4e4441;
  font-size: 12px;
}

.jcc-chat__options-wrap {
  position: relative;
}

.jcc-chat__options-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.96));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.jcc-chat__options-wrap.is-end::after {
  display: none;
}

.jcc-chat__scroll-hint {
  display: none;
  position: absolute;
  bottom: 6px;
  left: 50%;
  font-size: 11px;
  color: #bbb;
  pointer-events: none;
  animation: jcc-scroll-bounce 1.4s ease-in-out infinite;
  z-index: 1;
}

.jcc-chat__scroll-hint.is-visible {
  display: block !important;
}

.jcc-chat__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 196px;
  overflow-y: auto;
  padding-right: 4px;
}

.jcc-chat__options::-webkit-scrollbar {
  width: 4px;
}

.jcc-chat__options::-webkit-scrollbar-track {
  background: #ececec;
  border-radius: 999px;
}

.jcc-chat__options::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 999px;
}

.jcc-chat__options::-webkit-scrollbar-thumb:hover {
  background: #f95d37;
}

.jcc-chat__option {
  flex: 1 1 calc(50% - 4px);
  animation: jcc-fade-up 0.3s ease both;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 8px;
  color: #231815;
  padding: 12px 14px;
  font-size: 13px;
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.jcc-chat__option:hover {
  border-color: #f95d37;
  background: #fff7f5;
}

.jcc-chat__option.is-selected {
  border: 2px solid #f95d37;
  background: #fff7f5;
  color: #c94420;
}

.jcc-chat__actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.jcc-chat__choice-box {
  background: #f5f5f5;
  border: 1px solid #d9d9d9;
  border-radius: 15px;
  padding: 14px 15px;
}

.jcc-chat__action {
  border: none;
  border-radius: 48px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  transition: opacity 0.2s ease;
}

.jcc-chat__action[hidden] {
  display: none;
}

.jcc-chat__action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.jcc-chat__action--back {
  background: #e8e8e8;
  color: #4e4441;
}

.jcc-chat__action--submit {
  background: #f95d37;
  color: #fff;
  margin-left: auto;
}

/* 結果カルーセル：メッセージバブルをフル幅に */
.jcc-chat__message.is-result-carousel {
  justify-content: center;
  gap: 0;
  margin-left: -16px;
  margin-right: -16px;
}

.jcc-chat__message.is-result-carousel .jcc-chat__avatar {
  display: none;
}

.jcc-chat__message.is-result-carousel .jcc-chat__bubble {
  width: 100%;
  max-width: 100%;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.jcc-chat__message.is-result-carousel .jcc-chat__bubble::before,
.jcc-chat__message.is-result-carousel .jcc-chat__bubble::after {
  display: none;
}

/* カルーセルラッパー */
.jcc-chat__result-carousel-wrap {
  position: relative;
  padding: 0 4px;
}

/* スワイプヒント矢印 */
.jcc-chat__carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 0;
  cursor: pointer;
  z-index: 2;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.jcc-chat__carousel-arrow:hover {
  opacity: 1;
}

/* CSS矢印（before/after で描画） */
.jcc-chat__carousel-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
}

.jcc-chat__carousel-arrow--right {
  right: 10px;
  animation: jcc-arrow-right 1.3s ease-in-out infinite;
}

.jcc-chat__carousel-arrow--right::before {
  left: 9px;
  transform: translateY(-50%) rotate(45deg);
}

.jcc-chat__carousel-arrow--left {
  left: 10px;
  animation: jcc-arrow-left 1.3s ease-in-out infinite;
}

.jcc-chat__carousel-arrow--left::before {
  right: 9px;
  transform: translateY(-50%) rotate(-135deg);
}

.jcc-chat__carousel-arrow.is-hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes jcc-arrow-right {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(5px); }
}

@keyframes jcc-arrow-left {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(-5px); }
}

/* カルーセルトラック */
.jcc-chat__result-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}

.jcc-chat__result-carousel::-webkit-scrollbar {
  display: none;
}

/* カード1枚 */
.jcc-chat__result-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

/* サービス名 */
.jcc-chat__result-card-name {
  margin: 0;
  padding: 14px 14px 10px;
  font-size: 15px;
  font-weight: 700;
  color: #231815;
  line-height: 1.4;
}

/* 画像エリア */
.jcc-chat__result-card-img-wrap {
  width: 100%;
  height: 140px;
  background: #f0f0f0;
  overflow: hidden;
  flex-shrink: 0;
}

.jcc-chat__result-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* キャッチコピー */
.jcc-chat__result-card-catch {
  margin: 0;
  padding: 10px 14px 0;
  font-size: 13px;
  font-weight: 700;
  color: #c94420;
  line-height: 1.5;
}

/* 説明文 */
.jcc-chat__result-card-desc {
  padding: 8px 14px 0;
  font-size: 12px;
  color: #555;
  line-height: 1.7;
  max-height: 150px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.jcc-chat__result-card-desc p {
  margin: 0;
}

/* 説明文アコーディオン */
.jcc-chat__result-card-desc-toggle {
  display: inline-block;
  margin-top: 6px;
  padding: 0;
  background: none;
  border: none;
  color: #f95d37;
  font-size: 12px;
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.jcc-chat__result-card-desc-more {
  margin-top: 4px;
}

/* 説明文とCTAボタンの間のスペーサー */
.jcc-chat__result-card-spacer {
  display: block;
  flex: 1;
  min-height: 16px;
}

/* CTAボタン（立体感＋きらりんシマー） */
.jcc-chat__result-card-btn {
  display: block;
  position: relative;
  overflow: hidden;
  margin: 14px;
  padding: 13px 16px;
  background: linear-gradient(160deg, #ffaa44 0%, #ff7730 50%, #f95d37 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  text-align: center;
  text-decoration: none;
  border-radius: 48px;
  /* 立体感：底面の影（3Dの厚み）＋グロー */
  box-shadow:
    0 5px 0 #c94220,
    0 8px 20px rgba(249, 93, 55, 0.45);
  transform: translateY(0);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  /* 周期的にきらりん */
  animation: jcc-btn-pulse 3s ease-in-out infinite;
}

/* シマー（光の筋）用擬似要素 */
.jcc-chat__result-card-btn::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -80%;
  width: 55%;
  height: 120%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  border-radius: 50%;
  animation: jcc-btn-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

/* ホバー：ボタンが浮き上がる */
.jcc-chat__result-card-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 0 #c94220,
    0 14px 28px rgba(249, 93, 55, 0.5);
  animation-play-state: paused; /* ホバー中はパルスを止める */
}

/* 押し込み */
.jcc-chat__result-card-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 #c94220,
    0 4px 10px rgba(249, 93, 55, 0.3);
}

/* 周期パルス：ふわっと浮く */
@keyframes jcc-btn-pulse {
  0%, 100% { transform: translateY(0);    box-shadow: 0 5px 0 #c94220, 0 8px 20px rgba(249,93,55,0.45); }
  50%       { transform: translateY(-2px); box-shadow: 0 7px 0 #c94220, 0 12px 26px rgba(249,93,55,0.55); }
}

/* シマー：光の筋が左から右へ走る */
@keyframes jcc-btn-shimmer {
  0%   { left: -80%; opacity: 0; }
  10%  { opacity: 1; }
  40%  { left: 130%; opacity: 0; }
  100% { left: 130%; opacity: 0; }
}

/* ボタンをlast-childにしないための空要素 */
.jcc-chat__result-card-end {
  display: none;
}

/* ドットナビ */
.jcc-chat__result-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 2px;
}

.jcc-chat__result-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d9d9d9;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.jcc-chat__result-dot.is-active {
  background: #f95d37;
  transform: scale(1.25);
}

@media (min-width: 600px) {
  .jcc-chat__result-card {
    flex: 0 0 calc(50% - 6px);
    scroll-snap-align: none;
  }

  .jcc-chat__result-card:nth-child(odd) {
    scroll-snap-align: start;
  }
}

@media (max-width: 599px) {
  .jcc-chat__result-card-img-wrap {
    height: 120px;
  }

  .jcc-chat__result-carousel-wrap {
    padding: 0;
  }

  .jcc-chat__result-carousel {
    padding-left: 0;
    padding-right: 0;
  }
}

.jcc-chat__message.is-restart {
  justify-content: center;
}

.jcc-chat__message.is-restart .jcc-chat__avatar {
  display: none;
}

.jcc-chat__message.is-restart .jcc-chat__bubble {
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100%;
}

.jcc-chat__message.is-restart .jcc-chat__bubble::before,
.jcc-chat__message.is-restart .jcc-chat__bubble::after {
  display: none;
}

.jcc-chat__restart {
  display: inline-block;
  border: 2px solid #f95d37;
  background: #fff;
  color: #f95d37;
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 48px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.jcc-chat__restart:hover {
  background: #f95d37;
  color: #fff;
}

.jcc__loading {
  color: #666;
  text-align: center;
  margin: 24px 0;
}

@keyframes jcc-typing {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes jcc-scroll-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(4px);
  }
}

@keyframes jcc-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 599px) {
  .jcc {
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;
  }

  .jcc__trigger {
    padding: 20px 4px;
  }

  .jcc__trigger-lead {
    font-size: 17px;
  }

  .jcc__trigger-btn {
    font-size: 14px;
    padding: 13px 28px;
  }

  .jcc__header {
    padding: 12px 14px 10px;
  }

  .jcc__header-title {
    font-size: 24px;
  }

  .jcc-chat__messages {
    padding: 14px 10px 18px;
  }

  .jcc-chat__message.is-assistant .jcc-chat__bubble {
    max-width: calc(100% - 46px);
  }

  .jcc-chat__message.is-user .jcc-chat__bubble {
    max-width: 92%;
  }

  .jcc-chat__message.is-options .jcc-chat__bubble {
    width: 100%;
    max-width: 100%;
  }

  .jcc-chat__message.is-assistant p,
  .jcc-chat__message.is-user p {
    font-size: 13px;
  }

  .jcc-chat__avatar {
    width: 36px;
    height: 36px;
  }

  .jcc-chat__option {
    flex: 1 1 calc(50% - 4px);
    font-size: 12px;
    padding: 10px 10px;
  }

  .jcc__trigger .jcc__disclaimer {
    position: static;
    margin-top: 10px;
    /* padding: 0 10px; */
    text-align: center;
  }

  .jcc__trigger {
    padding-bottom: 20px;
  }

  .jcc__panel .jcc__disclaimer {
    text-align: center;
    padding: 6px 10px 10px;
  }
}

/* ============================================================
   リッチモード（年収600万円台以上）
   .jcc.is-rich が付与されたときに切り替わるスタイル群
   ============================================================ */

/* transition をベース要素に付与してふわっと切り替え */
.jcc,
.jcc__header,
.jcc__content,
.jcc__panel .jcc__disclaimer,
.jcc-chat__message.is-assistant .jcc-chat__bubble,
.jcc-chat__message.is-user p,
.jcc-chat__choice-box,
.jcc-chat__option,
.jcc-chat__action--back,
.jcc-chat__action--submit,
.jcc__progress-bar,
.jcc__progress {
  transition:
    background 0.8s ease,
    background-color 0.8s ease,
    border-color 0.8s ease,
    color 0.8s ease,
    box-shadow 0.8s ease;
}

/* ルート */
.jcc.is-rich {
  background: #1c1a13;
  border-color: #4a3e20;
  box-shadow: 0 6px 40px rgba(201, 168, 76, 0.18);
}

/* ヘッダー */
.jcc.is-rich .jcc__header {
  background: linear-gradient(135deg, #1a1710 0%, #2d2516 100%);
}

.jcc.is-rich .jcc__header-title,
.jcc.is-rich .jcc__progress-label {
  color: #c9a84c;
}

.jcc.is-rich .jcc__header-user-count,
.jcc.is-rich .jcc__header-subtitle,
.jcc.is-rich .jcc__header-pr-note {
  color: #9a8050;
}

/* プログレスバー */
.jcc.is-rich .jcc__progress {
  background: rgba(201, 168, 76, 0.18);
}

.jcc.is-rich .jcc__progress-bar {
  background: linear-gradient(90deg, #a07830, #c9a84c, #e8c86a);
}

/* チャット背景 */
.jcc.is-rich .jcc__content {
  background: #13120c;
}

/* アシスタントバブル */
.jcc.is-rich .jcc-chat__message.is-assistant .jcc-chat__bubble {
  background: #1c1a13;
  border-color: #4a3e20;
}

.jcc.is-rich .jcc-chat__message.is-assistant .jcc-chat__bubble::before {
  border-color: transparent #4a3e20 transparent transparent;
}

.jcc.is-rich .jcc-chat__message.is-assistant .jcc-chat__bubble::after {
  border-color: transparent #1c1a13 transparent transparent;
}

.jcc.is-rich .jcc-chat__message.is-assistant p {
  color: #e8d8a0;
}

/* ユーザーバブル */
.jcc.is-rich .jcc-chat__message.is-user p {
  background: linear-gradient(135deg, #c9a84c, #a07830);
}

/* 選択肢ボックス */
.jcc.is-rich .jcc-chat__choice-box {
  background: #1c1a13;
  border-color: #4a3e20;
}

/* 選択肢ボタン */
.jcc.is-rich .jcc-chat__option {
  background: #13120c;
  border-color: #3a3018;
  color: #c8b87a;
}

.jcc.is-rich .jcc-chat__option:hover {
  border-color: #c9a84c;
  background: #1c1a13;
}

.jcc.is-rich .jcc-chat__option.is-selected {
  border-color: #c9a84c;
  background: #2a2316;
  color: #c9a84c;
}

/* アクションボタン */
.jcc.is-rich .jcc-chat__action--back {
  background: #2a2316;
  color: #9a8050;
}

.jcc.is-rich .jcc-chat__action--submit {
  background: linear-gradient(135deg, #c9a84c, #a07830);
  color: #1c1a13;
}

/* タイピングドット */
.jcc.is-rich .jcc-chat__typing i {
  background: #c9a84c;
}

/* やり直しボタン */
.jcc.is-rich .jcc-chat__restart {
  border-color: #c9a84c;
  color: #c9a84c;
}

.jcc.is-rich .jcc-chat__restart:hover {
  background: #c9a84c;
  color: #1c1a13;
}

/* 免責テキスト */
.jcc.is-rich .jcc__panel .jcc__disclaimer {
  background: #13120c;
  color: #5a4e30;
}

/* 結果カード */
.jcc.is-rich .jcc-chat__result-card {
  background: #1c1a13;
  border-color: #4a3e20;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.1);
}

.jcc.is-rich .jcc-chat__result-card-name {
  color: #c9a84c;
}

.jcc.is-rich .jcc-chat__result-card-catch {
  color: #e8c86a;
}

.jcc.is-rich .jcc-chat__result-card-desc {
  color: #9a8868;
}

.jcc.is-rich .jcc-chat__result-card-desc-toggle {
  color: #c9a84c;
}

.jcc.is-rich .jcc-chat__result-card-btn {
  background: linear-gradient(160deg, #e8c86a 0%, #c9a84c 50%, #a07830 100%);
  color: #1c1a13;
  box-shadow:
    0 5px 0 #7a5a18,
    0 8px 20px rgba(201, 168, 76, 0.5);
  animation-name: jcc-btn-pulse-gold;
}

.jcc.is-rich .jcc-chat__result-card-btn:hover {
  box-shadow:
    0 8px 0 #7a5a18,
    0 14px 28px rgba(201, 168, 76, 0.6);
}

.jcc.is-rich .jcc-chat__result-card-btn:active {
  box-shadow:
    0 2px 0 #7a5a18,
    0 4px 10px rgba(201, 168, 76, 0.3);
}

@keyframes jcc-btn-pulse-gold {
  0%, 100% { transform: translateY(0);    box-shadow: 0 5px 0 #7a5a18, 0 8px 20px rgba(201,168,76,0.5); }
  50%       { transform: translateY(-2px); box-shadow: 0 7px 0 #7a5a18, 0 12px 26px rgba(201,168,76,0.65); }
}

/* カルーセルドット */
.jcc.is-rich .jcc-chat__result-dot {
  background: #4a3e20;
}

.jcc.is-rich .jcc-chat__result-dot.is-active {
  background: #c9a84c;
}

/* スワイプ矢印 */
.jcc.is-rich .jcc-chat__carousel-arrow {
  background: rgba(201, 168, 76, 0.28);
}

/* ============================================================
   回答サマリー収束アニメーション（バブルクローン）
   ============================================================ */

/* アニメーション用スペース：準備メッセージの直下に高さを確保 */
.jcc-summary-stage {
  height: 120px;
  margin-top: -4px;
  flex-shrink: 0;
}

.jcc-summary-clone {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  background: #f95d37;
  color: #fff;
  border-radius: 15px 15px 4px 15px;
  padding: 12px 15px;
  font-size: 13px;
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 4px 14px rgba(249, 93, 55, 0.4);
}

.jcc-summary-clone.is-rich {
  background: linear-gradient(135deg, #c9a84c, #a07830);
  color: #1c1a13;
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.35);
}

/* 合体後の1つのバブル */
.jcc-summary-clone--merged {
  border-radius: 15px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(249, 93, 55, 0.5);
}

.jcc-summary-clone--merged.is-rich {
  box-shadow: 0 6px 22px rgba(201, 168, 76, 0.5);
}
