/**
 * 猫の安全診断（nyanguard-diagnosis）専用スタイル
 * #nyanguard-diagnosis-root 配下にスコープ
 */

#nyanguard-diagnosis-root {
  --nygdiag-bg: #fffdf9;
  --nygdiag-card: #ffffff;
  --nygdiag-text: #2b2622;
  --nygdiag-muted: #6a645d;
  --nygdiag-border: #e7e1d9;
  --nygdiag-accent: #c4554a;
  --nygdiag-cta: #2b2622;
  --nyg-ig-1: #feda75;
  --nyg-ig-2: #fa7e1e;
  --nyg-ig-3: #d62976;
  --nyg-ig-4: #962fbf;
  --nyg-ig-5: #4f5bd5;
  --nyg-ig-track: #e6e3e0;
  font-family: inherit;
  color: var(--nygdiag-text);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 12px 48px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255, 253, 249, 1) 0%, rgba(255, 255, 255, 0.8) 55%, rgba(255, 253, 249, 1) 100%);
  border-radius: 18px;
}

/* 固定ヘッダーとコンテンツの重なり回避（必要に応じて 60〜100px で調整） */
#nyanguard-diagnosis-root.nyg-diagnosis-root {
  margin-top: 80px;
}

#nyanguard-diagnosis-root *,
#nyanguard-diagnosis-root *::before,
#nyanguard-diagnosis-root *::after {
  box-sizing: border-box;
}

/* スコア見出しなど：画面上は省略しつつ aria 用に残す */
#nyanguard-diagnosis-root .nygdiag-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;
}

.nygdiag-head {
  text-align: center;
  margin-bottom: 18px;
}

.nygdiag-head__title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.nygdiag-head__sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--nygdiag-muted);
}

#nyanguard-diagnosis-root .nygdiag-firstview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (min-width: 720px) {
  #nyanguard-diagnosis-root .nygdiag-firstview {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
  }

  #nyanguard-diagnosis-root .nygdiag-firstview .nyg-card.nygdiag-card {
    margin-bottom: 0;
  }
}

/* 1画面目（スクショ想定）用：スコア → 猫コメント → メインCTA だけ優先表示 */
#nyanguard-diagnosis-root .nygdiag-firstview.nygdiag-firstview--single {
  gap: 8px;
  margin-bottom: 10px;
}

@media (min-width: 720px) {
  #nyanguard-diagnosis-root .nygdiag-firstview.nygdiag-firstview--single {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }

  #nyanguard-diagnosis-root .nygdiag-firstview.nygdiag-firstview--single .nyg-card.nygdiag-card--score {
    margin-bottom: 0;
  }
}

#nyanguard-diagnosis-root .nygdiag-firstview.nygdiag-firstview--single .nyg-card.nygdiag-card--score {
  margin-bottom: 0;
}

#nyanguard-diagnosis-root .nygdiag-firstview.nygdiag-firstview--single .nyg-cat-comment {
  margin: 6px 0 0;
}

#nyanguard-diagnosis-root .nygdiag-firstview.nygdiag-firstview--single .nygdiag-cta {
  margin: 10px 0 4px;
}

#nyanguard-diagnosis-root .nygdiag-firstview.nygdiag-firstview--single .nygdiag-cta-card {
  margin-bottom: 8px;
}

#nyanguard-diagnosis-root .nygdiag-firstview.nygdiag-firstview--single .nygdiag-need-action-card {
  margin: 6px 0 4px;
}

.nygdiag-section-label {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.35;
}

.nygdiag-card {
  background: var(--nygdiag-card);
  border: 1px solid var(--nygdiag-border);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(43, 38, 34, 0.04);
}

/* カード余白・角丸（結果・設問共通で nyg-card と併用） */
#nyanguard-diagnosis-root .nyg-card.nygdiag-card,
#nyanguard-diagnosis-root .nygdiag-card.nyg-card {
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 14px;
}

.nygdiag-h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.45;
}

.nygdiag-hint {
  font-size: 0.85rem;
  color: var(--nygdiag-muted);
  margin: -4px 0 10px;
}

#nyanguard-diagnosis-root .nygdiag-hint--sub {
  margin: -2px 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7a7268;
}

.nygdiag-opts {
  display: grid;
  gap: 8px;
}

.nygdiag-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.98rem;
}

.nygdiag-opt input {
  margin-top: 4px;
  flex-shrink: 0;
}

/* --- 診断ウィザード：共感・危機感・カード選択（Q1〜・renderQuestion） --- */
#nyanguard-diagnosis-root .nygdiag-card--wizard {
  margin-bottom: 0;
  padding: 16px 14px 14px;
}

#nyanguard-diagnosis-root .nygdiag-card--wizard__title {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.55;
}

#nyanguard-diagnosis-root .nygdiag-qhead {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(228, 219, 210, 0.95);
  background: #fffdfa;
}

#nyanguard-diagnosis-root .nygdiag-qhead__meta {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #8c8278;
}

#nyanguard-diagnosis-root .nygdiag-qhead__title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 800;
  color: #2e2a25;
}

#nyanguard-diagnosis-root .nygdiag-qhead__sub {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #6f665e;
}

#nyanguard-diagnosis-root .nygdiag-q-empathy {
  margin: 0 0 12px;
  padding: 11px 12px 10px;
  border-radius: 12px;
  background: rgba(255, 252, 248, 0.95);
  border: 1px solid rgba(231, 225, 217, 0.9);
}

#nyanguard-diagnosis-root .nygdiag-q-empathy__lead {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--nygdiag-text);
}

#nyanguard-diagnosis-root .nygdiag-q-empathy__bullets {
  margin: 0 0 8px;
  padding-left: 1.15em;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;
  color: #5c554c;
}

#nyanguard-diagnosis-root .nygdiag-q-empathy__item {
  margin: 0 0 3px;
}

#nyanguard-diagnosis-root .nygdiag-q-empathy__pick {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #6a645d;
}

#nyanguard-diagnosis-root .nygdiag-q-crisis {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.55;
  color: #5a4a42;
  background: linear-gradient(
    180deg,
    rgba(255, 248, 244, 0.98) 0%,
    rgba(252, 242, 236, 0.95) 100%
  );
  border: 1px solid rgba(212, 168, 148, 0.35);
}

#nyanguard-diagnosis-root .nygdiag-wizard-options {
  margin: 0;
}

#nyanguard-diagnosis-root .nygdiag-wizard-grid {
  display: grid;
  gap: 10px;
}

/* Q6：質問カードは縦積み（最大2問・各カードは横幅いっぱいで選択肢に十分な幅を確保） */
#nyanguard-diagnosis-root .nygdiag-place-freq-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#nyanguard-diagnosis-root .nygdiag-place-freq-card {
  margin: 0;
  padding: 8px 9px 6px;
  border-radius: 14px;
  border: 1px solid rgba(218, 210, 200, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf7 100%);
  box-shadow: 0 2px 10px rgba(43, 38, 34, 0.06);
}

#nyanguard-diagnosis-root .nygdiag-place-freq-card__heading {
  margin: 0 0 6px;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: 0.02em;
  color: #3d3833;
}

#nyanguard-diagnosis-root .nygdiag-place-freq-card__q {
  margin: 0 0 5px;
  font-size: 0.89rem;
  font-weight: 600;
  line-height: 1.52;
  color: var(--nygdiag-text);
}

#nyanguard-diagnosis-root .nygdiag-place-freq-card__opts {
  margin: 0;
}

#nyanguard-diagnosis-root .nygdiag-card--place-freq .nygdiag-hint {
  font-size: 0.78rem;
  margin: -2px 0 8px;
  color: #847a71;
}

/* Q6 頻度：常時2列で高さを揃える */
#nyanguard-diagnosis-root .nygdiag-wizard-grid--freq {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 8px;
}

/* Q6 選択肢：1文字ずつ縦に落ちるのを防ぐ（overflow-wrap:anywhere の悪影響を打ち消し） */
#nyanguard-diagnosis-root .nygdiag-wizard-grid--freq .nygdiag-choice-card--freq-option {
  min-width: 0;
  height: 100%;
}

#nyanguard-diagnosis-root .nygdiag-wizard-grid--freq .nygdiag-choice-card--freq-option .nygdiag-choice-card__inner {
  align-items: center;
  min-height: 42px;
  padding: 6px 9px 6px 32px;
}

#nyanguard-diagnosis-root .nygdiag-wizard-grid--freq .nygdiag-choice-card--freq-option .nygdiag-choice-card__text {
  white-space: normal;
  writing-mode: horizontal-tb;
  overflow-wrap: break-word;
  word-break: keep-all;
  line-height: 1.44;
  font-weight: 600;
  font-size: 0.9rem;
}

#nyanguard-diagnosis-root
  .nygdiag-wizard-grid--freq
  .nygdiag-choice-card--freq-option:not(.nygdiag-choice-card--none):has(.nygdiag-choice-card__input:checked) {
  transform: none;
  background: linear-gradient(
    145deg,
    rgba(210, 228, 188, 0.36) 0%,
    rgba(234, 244, 224, 0.58) 48%,
    rgba(250, 252, 246, 0.98) 100%
  );
  border-color: rgba(108, 124, 86, 0.34);
  box-shadow:
    0 2px 8px rgba(60, 80, 44, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

#nyanguard-diagnosis-root
  .nygdiag-wizard-grid--freq
  .nygdiag-choice-card--freq-option:has(.nygdiag-choice-card__input:checked)
  .nygdiag-choice-card__accent {
  width: 3px;
  opacity: 0.85;
}

#nyanguard-diagnosis-root .nygdiag-wizard-grid__none-slot {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed rgba(200, 192, 180, 0.95);
}

#nyanguard-diagnosis-root .nygdiag-choice-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(231, 225, 217, 0.95);
  background: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
  min-height: 58px;
}

#nyanguard-diagnosis-root .nygdiag-choice-card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  z-index: 0;
  border-radius: 11px 0 0 11px;
  background: #4d6b38;
  pointer-events: none;
  transition: width 0.2s ease;
}

#nyanguard-diagnosis-root .nygdiag-choice-card:has(.nygdiag-choice-card__input:checked) .nygdiag-choice-card__accent {
  width: 4px;
}

#nyanguard-diagnosis-root .nygdiag-choice-card:hover {
  border-color: rgba(200, 185, 170, 0.95);
  box-shadow: 0 4px 14px rgba(43, 38, 34, 0.07);
}

#nyanguard-diagnosis-root .nygdiag-choice-card:focus-within {
  outline: none;
  border-color: rgba(125, 143, 103, 0.55);
  box-shadow: 0 0 0 2px rgba(125, 143, 103, 0.2);
}

#nyanguard-diagnosis-root .nygdiag-choice-card:not(.nygdiag-choice-card--none):has(
    .nygdiag-choice-card__input:checked
  ) {
  background: linear-gradient(
    145deg,
    rgba(182, 214, 158, 0.58) 0%,
    rgba(212, 230, 194, 0.88) 42%,
    rgba(228, 238, 216, 1) 100%
  );
  border-color: rgba(88, 116, 66, 0.5);
  box-shadow:
    0 3px 12px rgba(60, 90, 40, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: scale(1.008);
}

/* Q1：複数選んでも重くならないよう選択ハイライトのみ軽く */
#nyanguard-diagnosis-root
  .nygdiag-wizard-grid--risk-q1
  .nygdiag-choice-card:not(.nygdiag-choice-card--none):has(.nygdiag-choice-card__input:checked) {
  background: linear-gradient(
    145deg,
    rgba(210, 228, 188, 0.38) 0%,
    rgba(232, 242, 220, 0.62) 45%,
    rgba(248, 252, 242, 0.96) 100%
  );
  border-color: rgba(110, 128, 88, 0.38);
  box-shadow:
    0 2px 10px rgba(60, 80, 44, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: scale(1.004);
}

#nyanguard-diagnosis-root
  .nygdiag-wizard-grid--risk-q1
  .nygdiag-choice-card:has(.nygdiag-choice-card__input:checked)
  .nygdiag-choice-card__accent {
  width: 3px;
  opacity: 0.88;
}

#nyanguard-diagnosis-root .nygdiag-choice-card--none:has(.nygdiag-choice-card__input:checked) {
  background: linear-gradient(180deg, #f3f1ed 0%, #ebe8e3 100%);
  border-color: rgba(190, 185, 176, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transform: scale(1.006);
}

#nyanguard-diagnosis-root .nygdiag-choice-card--none:has(.nygdiag-choice-card__input:checked) .nygdiag-choice-card__accent {
  width: 3px;
  background: #a39e96;
}

@media (max-width: 520px) {
  #nyanguard-diagnosis-root .nygdiag-choice-card__text:not(.nygdiag-choice-card__text--stack) {
    font-size: 0.9rem;
    line-height: 1.48;
  }

  #nyanguard-diagnosis-root .nygdiag-choice-card__title {
    font-size: 0.92rem;
  }

  #nyanguard-diagnosis-root .nygdiag-choice-card__sub {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #nyanguard-diagnosis-root .nygdiag-choice-card {
    transition:
      border-color 0.15s ease,
      box-shadow 0.15s ease,
      background-color 0.15s ease;
  }

  #nyanguard-diagnosis-root .nygdiag-choice-card:not(.nygdiag-choice-card--none):has(
      .nygdiag-choice-card__input:checked
    ),
  #nyanguard-diagnosis-root .nygdiag-choice-card--none:has(.nygdiag-choice-card__input:checked) {
    transform: none;
  }
}

#nyanguard-diagnosis-root .nygdiag-choice-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 15px 14px 15px 44px;
  cursor: pointer;
}

#nyanguard-diagnosis-root .nygdiag-choice-card__input {
  position: absolute;
  left: 14px;
  top: 50%;
  margin: 0;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  accent-color: #7d8f67;
  cursor: pointer;
}

#nyanguard-diagnosis-root .nygdiag-choice-card__text {
  display: block;
  flex: 1;
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--nygdiag-text);
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Q1：2行（場所＋状況） */
#nyanguard-diagnosis-root .nygdiag-choice-card__text--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-weight: 400;
  line-height: 1.35;
}

#nyanguard-diagnosis-root .nygdiag-choice-card__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--nygdiag-text);
  line-height: 1.3;
}

#nyanguard-diagnosis-root .nygdiag-choice-card__sub {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  color: #7a7268;
  letter-spacing: 0.01em;
}

#nyanguard-diagnosis-root .nygdiag-choice-card__text--single .nygdiag-choice-card__title {
  font-size: 0.94rem;
  font-weight: 700;
}

#nyanguard-diagnosis-root .nygdiag-choice-card__check {
  flex-shrink: 0;
  width: 1.35em;
  margin-top: 1px;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  color: #5a7a42;
  opacity: 0;
  transform: scale(0.82);
  transition:
    opacity 0.22s ease,
    transform 0.24s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
}

#nyanguard-diagnosis-root .nygdiag-choice-card__input:checked ~ .nygdiag-choice-card__check {
  opacity: 1;
  transform: scale(1);
}

#nyanguard-diagnosis-root .nygdiag-choice-card--none {
  opacity: 0.94;
  background: #faf9f7;
  border-color: rgba(218, 212, 204, 0.95);
}

#nyanguard-diagnosis-root .nygdiag-choice-card--none .nygdiag-choice-card__text {
  color: #7a7268;
  font-weight: 600;
}

#nyanguard-diagnosis-root .nygdiag-choice-card--none .nygdiag-choice-card__title {
  color: #7a7268;
  font-weight: 600;
}

.nygdiag-submitwrap {
  margin-top: 20px;
  text-align: center;
}

/* --- 診断フォーム：ステップウィザード --- */
.nygdiag-stepper__meta {
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--nygdiag-muted);
}

#nyanguard-diagnosis-root .nygdiag-stepper__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #eee8e1;
  overflow: hidden;
  margin: 0 0 6px;
}

#nyanguard-diagnosis-root .nygdiag-stepper__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f28f64 0%, #c4554a 100%);
  border-radius: inherit;
  transition: width 220ms ease;
}

#nyanguard-diagnosis-root .nygdiag-stepper__left {
  margin: 0 0 12px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  color: #7a7168;
}

#nyanguard-diagnosis-root .nygdiag-stepnav-lead {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #6d7a5f;
  line-height: 1.45;
}

.nygdiag-stepnav {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: stretch;
  justify-content: space-between;
  margin-top: 12px;
  margin-bottom: 0;
}

.nygdiag-stepnav .nygdiag-btn {
  flex: 1;
  min-height: 52px;
  align-self: stretch;
  line-height: 1.2;
}

#nyanguard-diagnosis-root #nygdiag_btn_next.nygdiag-btn--main:disabled,
#nyanguard-diagnosis-root #nygdiag_btn_next.nygdiag-btn--main:disabled:hover {
  background: #e3e1dc;
  color: #a39e98;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
  opacity: 1;
}

#nyanguard-diagnosis-root .nygdiag-btn--ghost {
  background: #ffffff;
  border: 2px solid var(--nygdiag-border);
  color: var(--nygdiag-text);
  font-weight: 700;
}

#nyanguard-diagnosis-root .nygdiag-btn--ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- 結果：スコアカード（点数 → バッジ → タイプ → バー＋ドット） --- */
#nyanguard-diagnosis-root .nyg-card.nygdiag-card.nygdiag-card--score {
  background: linear-gradient(180deg, #fffefb 0%, #fff 55%);
  border: 1px solid rgba(196, 85, 74, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  padding: 16px 14px;
  margin-bottom: 10px;
}

/* スコア連動：カード全体の印象を変える */
#nyanguard-diagnosis-root .nyg-card.nygdiag-card.nygdiag-card--score.nygdiag-card--scoreTier-safe {
  background: linear-gradient(180deg, #f2fff6 0%, #ffffff 60%);
  border-color: rgba(77, 255, 136, 0.22);
  box-shadow: 0 14px 34px rgba(77, 255, 136, 0.07), 0 10px 28px rgba(0, 0, 0, 0.04);
}

#nyanguard-diagnosis-root .nyg-card.nygdiag-card.nygdiag-card--score.nygdiag-card--scoreTier-caution {
  background: linear-gradient(180deg, #fbfff4 0%, #ffffff 65%);
  border-color: rgba(180, 220, 120, 0.22);
  box-shadow: 0 12px 30px rgba(180, 220, 120, 0.06), 0 10px 28px rgba(0, 0, 0, 0.04);
}

#nyanguard-diagnosis-root .nyg-card.nygdiag-card.nygdiag-card--score.nygdiag-card--scoreTier-warn {
  background: linear-gradient(180deg, #fff8ee 0%, #ffffff 65%);
  border-color: rgba(255, 184, 77, 0.24);
  box-shadow: 0 12px 30px rgba(255, 184, 77, 0.07), 0 10px 28px rgba(0, 0, 0, 0.04);
}

#nyanguard-diagnosis-root .nyg-card.nygdiag-card.nygdiag-card--score.nygdiag-card--scoreTier-critical {
  background: linear-gradient(180deg, #fff3f3 0%, #ffffff 65%);
  border-color: rgba(255, 77, 77, 0.24);
  box-shadow: 0 12px 30px rgba(255, 77, 77, 0.08), 0 10px 28px rgba(0, 0, 0, 0.04);
}

.nyg-score-card {
  border: 2px solid #ffe5e5;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.nygdiag-scoreblock {
  margin: 12px 0 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.nyg-score-ring {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
}

.nyg-score-ring__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.nyg-score-ring__bg {
  fill: none;
  stroke: rgba(43, 38, 34, 0.06);
  stroke-width: 10;
}

.nyg-score-ring__fg {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.nyg-score-ring__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.7rem;
  font-weight: 900;
  color: var(--nygdiag-text);
  text-shadow: 0 2px 0 rgba(43, 38, 34, 0.04);
  line-height: 1;
}

.nygdiag-priority-card {
  width: 100%;
  border-radius: 14px;
  padding: 12px 12px;
  background: #fbf7f2;
  border: 1px solid rgba(231, 225, 217, 0.95);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
}

.nygdiag-priority-card__label {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--nygdiag-muted);
  letter-spacing: 0.06em;
  text-transform: none;
}

.nygdiag-priority-card__line {
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--nygdiag-text);
}

.nygdiag-scoreblock .nyg-score-badge {
  margin-top: 0;
}

.nygdiag-scoreblock .nyg-type-risk {
  margin: 0;
}

.nygdiag-scoreblock .nyg-score-subtext {
  margin: 0;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--nygdiag-text);
}

.nygdiag-scoreblock .nygdiag-score-crisis {
  margin: 0;
}


.nyg-score-number {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--nygdiag-text);
  text-shadow: 0 2px 0 rgba(43, 38, 34, 0.04), 0 14px 30px rgba(196, 85, 74, 0.12);
}

@media (max-width: 400px) {
  .nyg-score-number {
    font-size: clamp(2.8rem, 16vw, 56px);
  }

  #nyanguard-diagnosis-root .nyg-score-ring {
    width: 112px;
    height: 112px;
  }

  #nyanguard-diagnosis-root .nyg-score-ring__center {
    font-size: 2.35rem;
  }
}

.nygdiag-score-num__unit {
  font-size: 1.25rem;
  font-weight: 700;
  margin-left: 4px;
}

.nyg-score-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffebeb;
  color: #e60023;
  font-weight: 800;
  font-size: 0.95rem;
  margin-top: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  letter-spacing: 0.01em;
}

.nyg-score-badge--critical {
  background: #ffe3e3;
  color: #b30020;
  border: 1px solid #ffb3b3;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(195, 0, 32, 0.1);
}

.nyg-score-badge--warn {
  background: #fff1dd;
  color: #a85f00;
  border: 1px solid rgba(255, 184, 77, 0.55);
}

.nyg-score-badge--caution {
  background: #f4ffe8;
  color: #3d6b1a;
  border: 1px solid rgba(180, 220, 120, 0.55);
}

.nyg-score-badge--safe {
  background: #e6ffef;
  color: #0f6a2b;
  border: 1px solid rgba(77, 255, 136, 0.55);
}

.nyg-type-risk {
  margin: 12px 0 0;
  font-size: clamp(1.05rem, 3.4vw, 1.22rem);
  font-weight: 800;
  line-height: 1.55;
  color: var(--nygdiag-text);
}

.nyg-score-bar-wrap {
  position: relative;
  margin-top: 22px;
  padding-top: 12px;
}

.nyg-score-bar {
  width: 100%;
  height: 15px;
  background: rgba(43, 38, 34, 0.10);
  border: 1px solid rgba(43, 38, 34, 0.10);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.nyg-score-bar-progress {
  height: 100%;
  background: #4dff88;
  border-radius: 999px;
  max-width: 100%;
  transition: width 0.35s ease;
}

/* renderScoreBlock（横バー＋ドット）用。色は ui.js の inline で指定 */
.nyg-score-bar-fill {
  height: 100%;
  background: var(--nygdiag-risk-bar-color, rgba(77, 255, 136, 0.75));
  border-radius: 999px;
  max-width: 100%;
  transition: width 0.35s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
}

.nyg-score-dot {
  position: absolute;
  top: -3px;
  width: 16px;
  height: 16px;
  background: var(--nygdiag-risk-dot-color, rgba(77, 255, 136, 1));
  border-radius: 50%;
  border: 2px solid #fff;
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45), 0 6px 12px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
}

/* スコア帯ごとの進捗色（バー/ドット連動） */
.nyg-score-bar-wrap--critical .nyg-score-bar-progress,
.nyg-score-bar-wrap--critical .nyg-score-dot {
  background: #ff4d4d;
}

.nyg-score-bar-wrap--warn .nyg-score-bar-progress,
.nyg-score-bar-wrap--warn .nyg-score-dot {
  background: #ffb84d;
}

.nyg-score-bar-wrap--caution .nyg-score-bar-progress,
.nyg-score-bar-wrap--caution .nyg-score-dot {
  background: #b8e36a;
}

.nyg-score-bar-wrap--safe .nyg-score-bar-progress,
.nyg-score-bar-wrap--safe .nyg-score-dot {
  background: #4dff88;
}

/* SNS・スクショ用タイプ帯 */
#nyanguard-diagnosis-root .nyg-card.nygdiag-card.nygdiag-share-strip {
  text-align: center;
  background: linear-gradient(135deg, #fff7ea 0%, #fff 60%);
  border: 1px solid rgba(196, 85, 74, 0.18);
  box-shadow: 0 8px 20px rgba(196, 85, 74, 0.06);
  padding: 16px 14px;
  margin-bottom: 10px;
}

.nygdiag-share-strip__label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--nygdiag-muted);
  text-transform: none;
}

.nygdiag-share-strip__type {
  margin: 8px 0 0;
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  font-weight: 950;
  color: var(--nygdiag-text);
  line-height: 1.35;
  text-shadow: 0 1px 0 rgba(43, 38, 34, 0.03);
}

/* ③ 診断タイプの補足（見出し・タイプ名と役割を分ける） */
#nyanguard-diagnosis-root .nygdiag-type-desc {
  margin: 12px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--nygdiag-muted);
  line-height: 1.65;
  text-align: center;
}

/* ② スコアカード直下の1文補足（ui.js renderScoreBlock） */
#nyanguard-diagnosis-root .nygdiag-score-foot {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--nygdiag-muted);
  line-height: 1.5;
  text-align: center;
}

/* ⑪ 結果フッター：操作リンクを上に、注記を下へ */
#nyanguard-diagnosis-root .nygdiag-foot--resultend {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 8px;
  padding-bottom: 8px;
}

/* フッター：再診断・URLコピーは同列の軽い導線 */
#nyanguard-diagnosis-root .nygdiag-foot--resultend .nygdiag-foot-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

#nyanguard-diagnosis-root .nygdiag-foot--resultend .nygdiag-foot-actions .nygdiag-linkbtn {
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-trust--resultend {
  margin: 0;
  order: 99;
  font-size: 0.72rem;
  opacity: 0.7;
}

.nygdiag-score-help,
.nygdiag-score-axis {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  text-align: center;
}

.nygdiag-risk-note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #7a4b3a;
}

.nygdiag-summary {
  text-align: center;
  margin: 12px 0 0;
  font-size: 0.96rem;
  color: var(--nygdiag-muted);
  line-height: 1.7;
}

.nygdiag-notes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nygdiag-notes li {
  position: relative;
  margin-bottom: 18px;
  padding-left: 1.2em;
  line-height: 1.9;
  font-size: 1rem;
  font-weight: 600;
}

.nygdiag-notes li:first-child {
  font-weight: 800;
}

.nygdiag-score-priority {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--nygdiag-muted);
  line-height: 1.45;
}

.nygdiag-score-crisis {
  margin: 6px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--nygdiag-muted);
  line-height: 1.45;
}

.nygdiag-notes li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--nygdiag-accent);
  font-weight: 800;
  top: 0.18em;
  font-size: 1.05em;
}

@media (min-width: 720px) {
  .nygdiag-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    row-gap: 10px;
  }

  .nygdiag-notes li {
    margin-bottom: 0;
  }
}

.nygdiag-myth {
  font-size: 0.82rem;
  color: var(--nygdiag-muted);
  margin: 14px 0 0;
  opacity: 0.85;
}

.nygdiag-card--scene {
  background: #f3ece4;
  border-color: #ddcdb9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 8px 22px rgba(0, 0, 0, 0.05);
}

#nyanguard-diagnosis-root .nygdiag-card--scene {
  margin-bottom: 12px;
}

.nygdiag-card--scene .nygdiag-h2 {
  font-weight: 900;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.nygdiag-scene {
  margin: 6px 0 0;
  font-size: 1.02rem;
  line-height: 2.08;
  font-weight: 600;
}

.nygdiag-scene-bubble {
  margin-top: 8px;
  padding: 13px 14px;
  border-radius: 16px;
  background: #fbf9f6;
  border: 1px solid rgba(231, 225, 217, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.nygdiag-scene-speaker {
  font-weight: 900;
  color: var(--nygdiag-accent);
  margin-bottom: 8px;
}

.nygdiag-scene-bubble .nygdiag-scene {
  margin: 0;
  line-height: 1.9;
  font-weight: 700;
}

.nyg-cat-comment {
  background: #f7e9e9;
  border-radius: 16px;
  padding: 20px 18px;
  text-align: center;
  font-weight: bold;
  font-size: 19px;
  margin: 10px 0;
  line-height: 1.6;
  border: 1px solid rgba(196, 85, 74, 0.22);
  box-shadow: 0 12px 30px rgba(43, 38, 34, 0.10);
  position: relative;
}

.nyg-cat-comment::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  border: 12px solid transparent;
  border-top-color: rgba(196, 85, 74, 0.20);
}

.nyg-cat-comment::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: #f7e9e9;
}

/* 猫コメント下の飾り線：見た目が意味を持たないため非表示 */
#nyanguard-diagnosis-root .nyg-cat-comment::before,
#nyanguard-diagnosis-root .nyg-cat-comment::after {
  display: none !important;
}

.nyg-cat-comment + .nygdiag-card {
  margin-top: 2px;
}

.nygdiag-cta {
  text-align: center;
  margin: 16px 0 6px;
}

.nygdiag-cta-card {
  margin-bottom: 10px;
  border-radius: 16px;
  padding: 14px 12px;
  border: 1px solid rgba(231, 225, 217, 0.95);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.03);
}

.nygdiag-cta-card .nygdiag-btn--main {
  max-width: none;
  box-shadow: none;
  width: 100%;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nygdiag-cta-card__top {
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.25;
}

.nygdiag-cta-card__bottom {
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0.95;
}

.nygdiag-reco-card {
  border-radius: 16px;
  padding: 14px 12px;
  background: #f6efe7;
  border: 1px solid rgba(231, 225, 217, 0.95);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.03);
  margin: 10px 0 0;
}

.nygdiag-reco-card__title {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--nygdiag-text);
}

.nygdiag-reco-card__product {
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--nygdiag-text);
  margin-bottom: 8px;
  line-height: 1.35;
}

.nygdiag-reco-card__reason {
  font-size: 0.88rem;
  color: var(--nygdiag-muted);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}

.nygdiag-need-action-card {
  background: #f7f3ef;
  border-radius: 16px;
  padding: 12px 12px;
  border: 1px solid rgba(231, 225, 217, 0.95);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.03);
  margin: 6px 0 12px;
  color: var(--nygdiag-text);
  line-height: 1.45;
}

.nygdiag-need-action-card__title {
  font-weight: 950;
  font-size: 0.95rem;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.nygdiag-need-action-card__text {
  font-weight: 850;
  font-size: 0.95rem;
}

.nygdiag-btn--black {
  background: #111;
  color: #fff;
  width: 100%;
  max-width: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.nygdiag-btn--black:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.nyg-cta-area {
  margin-bottom: 64px;
}

.nygdiag-cta__lead {
  font-size: 0.95rem;
  margin: 0 0 6px;
  font-weight: 600;
}

.nygdiag-cta__sublead {
  font-size: 0.88rem;
  color: var(--nygdiag-muted);
  margin: 12px 0 6px;
}

.nygdiag-cta__subnote {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--nygdiag-muted);
}

.nygdiag-cta__assurance {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--nygdiag-muted);
  font-weight: 700;
  line-height: 1.4;
}

.nygdiag-cta-push {
  text-align: center;
  font-size: 0.9rem;
  color: var(--nygdiag-muted);
  margin: 6px 0 0;
  font-weight: 700;
  line-height: 1.35;
}

.nygdiag-type-supplement {
  margin: 8px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--nygdiag-muted);
  line-height: 1.4;
}

.nygdiag-cta__infolink {
  color: var(--nygdiag-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nygdiag-cta__infolink:hover {
  color: var(--nygdiag-accent);
}

/* ボタン共通：縦中央ズレの根本対策（診断ツール内のみ） */
#nyanguard-diagnosis-root button,
#nyanguard-diagnosis-root .nygdiag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  min-height: 44px;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
}

.nygdiag-btn {
  padding: 0 22px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.nygdiag-btn:hover {
  opacity: 0.92;
}

.nygdiag-btn--main {
  background: var(--nygdiag-cta);
  color: #fff;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 14px 30px rgba(43, 38, 34, 0.12);
  transition: opacity 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.nygdiag-btn--main:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  filter: brightness(1.08);
}

/* 主CTA・追従CTA：2行に分けたラベル（意味の切れ目で改行） */
#nyanguard-diagnosis-root .nygdiag-cta-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-cta-stack__line {
  display: block;
  line-height: 1.2;
}

#nyanguard-diagnosis-root .nygdiag-cta-stack__line--sub {
  font-size: 0.82em;
  font-weight: 700;
  opacity: 0.92;
}

#nyanguard-diagnosis-root .nygdiag-cta-stack--hero .nygdiag-cta-stack__line--sub {
  font-size: 0.8em;
}

#nyanguard-diagnosis-root .nygdiag-cta-stack--follow .nygdiag-cta-stack__line--sub {
  font-size: 0.78em;
}

.nygdiag-btn--sub {
  background: #fff;
  color: var(--nygdiag-cta);
  border: 2px solid rgba(43, 38, 34, 0.16);
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  font-size: 17px;
}

.nygdiag-extra {
  font-size: 0.85rem;
  color: var(--nygdiag-muted);
  margin: 8px 0 0;
  padding: 12px 12px;
  background: #fbf7f2;
  border-radius: 10px;
  border: 1px solid rgba(231, 225, 217, 0.95);
}

.nygdiag-trust {
  font-size: 0.72rem;
  color: #8a837a;
  text-align: center;
  margin: 14px 0 4px;
  opacity: 0.75;
}

.nygdiag-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
  padding-bottom: 4px;
}

.nygdiag-linkbtn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--nygdiag-accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95rem;
}

.nygdiag-linkbtn--a {
  text-decoration: underline;
  color: var(--nygdiag-accent);
}

.nygdiag-urlcopy-btn {
  font-weight: 700;
  padding: 2px 6px;
  text-decoration: underline;
}

.nygdiag-urlcopy-note {
  flex-basis: 100%;
  width: 100%;
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--nygdiag-muted);
  text-align: center;
}

.nygdiag-urlcopy-msg {
  flex-basis: 100%;
  width: 100%;
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--nygdiag-accent);
  text-align: center;
}

.nygdiag-follow-hide-sentinel {
  height: 1px;
  width: 100%;
}

/* 固定追従CTA（結果画面のみ表示） */
#nyanguard-diagnosis-root .nygdiag-follow-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;

  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
  box-sizing: border-box;

  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(43, 38, 34, 0.08);
  box-shadow: 0 -4px 14px rgba(43, 38, 34, 0.06);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease, background-color 0.18s ease, border-top-color 0.18s ease, backdrop-filter 0.18s ease, -webkit-backdrop-filter 0.18s ease;
}

#nyanguard-diagnosis-root .nygdiag-follow-cta.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 二重感を弱める（本文メインCTAが見えている間だけ） */
#nyanguard-diagnosis-root .nygdiag-follow-cta.is-soft {
  background-color: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top-color: rgba(43, 38, 34, 0.07);
}

#nyanguard-diagnosis-root .nygdiag-follow-cta.is-soft .nygdiag-follow-cta__btn.nygdiag-btn--main {
  opacity: 0.86;
  box-shadow: 0 7px 16px rgba(43, 38, 34, 0.10);
  transition: opacity 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

#nyanguard-diagnosis-root .nygdiag-follow-cta.is-soft .nygdiag-follow-cta__btn.nygdiag-btn--main:hover {
  opacity: 0.92;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(43, 38, 34, 0.11);
}

#nyanguard-diagnosis-root .nygdiag-follow-cta__line {
  margin: 0;
  max-width: 420px;
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  color: #6a625a;
  letter-spacing: 0.02em;
}

#nyanguard-diagnosis-root .nygdiag-follow-cta__btn {
  width: 100%;
  max-width: 420px !important;
}

@media (max-width: 520px) {
  #nyanguard-diagnosis-root .nygdiag-follow-cta__btn {
    max-width: 288px !important;
  }
}

/* 固定バー内ボタン：ブラウン寄せ＋高さを少し抑える */
#nyanguard-diagnosis-root .nygdiag-follow-cta__btn.nygdiag-btn--main {
  background: rgba(60, 45, 40, 0.95);
  box-shadow: 0 10px 22px rgba(43, 38, 34, 0.12);
  border-radius: 999px;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 700;
  line-height: 1.15;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

#nyanguard-diagnosis-root .nygdiag-follow-cta__btn.nygdiag-btn--main:hover {
  transform: translateY(-1px);
  opacity: 0.99;
  filter: brightness(1.05);
  box-shadow: 0 12px 26px rgba(43, 38, 34, 0.14);
}

#nyanguard-diagnosis-root .nygdiag-follow-cta--scrolled {
  box-shadow: 0 -6px 22px rgba(43, 38, 34, 0.1);
}

@media (prefers-reduced-motion: no-preference) {
  #nyanguard-diagnosis-root .nygdiag-follow-cta--nudge .nygdiag-follow-cta__btn.nygdiag-btn--main {
    animation: nygdiag-follow-cta-nudge 0.65s ease;
  }
}

@keyframes nygdiag-follow-cta-nudge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* 固定CTAが下部の文言やフッター操作を隠さないよう結果領域に余白 */
#nyanguard-diagnosis-root .nygdiag.nygdiag--result {
  padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(
    180deg,
    rgba(255, 253, 249, 0.5) 0%,
    rgba(255, 255, 255, 0.92) 22%,
    #ffffff 55%
  );
  border-radius: 0 0 16px 16px;
}

/* renderResult: 結果末尾を静かに締め、フッター直前の余白を詰める（追従CTA用の最低限は維持） */
#nyanguard-diagnosis-root .nygdiag.nygdiag--result.nygdiag--result-bottom-tight {
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

#nyanguard-diagnosis-root .nygdiag--result > .nyg-card.nygdiag-card--share-bottom-tight.nyg-card {
  margin-bottom: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}

#nyanguard-diagnosis-root .nygdiag--result > .nyg-card.nygdiag-card--share-bottom-tight .nygdiag-result-share__lead {
  margin-bottom: 6px;
}

/* スコア危険度：危険/注意/安全に応じて色を強める */
#nyanguard-diagnosis-root .nyg-card.nygdiag-card--score.is-risk-danger {
  --nygdiag-risk-bar-color: rgba(255, 77, 77, 0.85);
  --nygdiag-risk-dot-color: rgba(255, 77, 77, 1);
  border-color: rgba(255, 77, 77, 0.50) !important;
  box-shadow: 0 16px 40px rgba(255, 77, 77, 0.10), 0 10px 28px rgba(0, 0, 0, 0.04) !important;
}

#nyanguard-diagnosis-root .nyg-card.nygdiag-card--score.is-risk-danger .nyg-score-number {
  color: #b30020;
  text-shadow: 0 2px 0 rgba(43, 38, 34, 0.04), 0 14px 30px rgba(195, 0, 32, 0.18);
}

#nyanguard-diagnosis-root .nyg-card.nygdiag-card--score.is-risk-caution {
  --nygdiag-risk-bar-color: rgba(255, 184, 77, 0.85);
  --nygdiag-risk-dot-color: rgba(255, 184, 77, 1);
  border-color: rgba(255, 184, 77, 0.58) !important;
  box-shadow: 0 14px 34px rgba(255, 184, 77, 0.10), 0 10px 28px rgba(0, 0, 0, 0.04) !important;
}

#nyanguard-diagnosis-root .nyg-card.nygdiag-card--score.is-risk-caution .nyg-score-number {
  color: #a85f00;
  text-shadow: 0 2px 0 rgba(43, 38, 34, 0.04), 0 14px 30px rgba(168, 95, 0, 0.18);
}

#nyanguard-diagnosis-root .nyg-card.nygdiag-card--score.is-risk-safe {
  --nygdiag-risk-bar-color: rgba(77, 221, 136, 0.80);
  --nygdiag-risk-dot-color: rgba(77, 221, 136, 1);
  border-color: rgba(77, 221, 136, 0.40) !important;
  box-shadow: 0 14px 34px rgba(77, 221, 136, 0.08), 0 10px 28px rgba(0, 0, 0, 0.04) !important;
}

#nyanguard-diagnosis-root .nyg-card.nygdiag-card--score.is-risk-safe .nyg-score-number {
  color: #0f6a2b;
  text-shadow: 0 2px 0 rgba(43, 38, 34, 0.04), 0 14px 30px rgba(15, 106, 43, 0.16);
}

.nygdiag--form .nygdiag-card--conditional[hidden] {
  display: none !important;
}

/* --- 場所別評価・優先順位・見積もり導線 --- */
#nyanguard-diagnosis-root .nygdiag-card--overall .nygdiag-h2 {
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-overall-stars {
  margin: 8px 0 4px;
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  letter-spacing: 0.08em;
  text-align: center;
  color: #c4554a;
}

#nyanguard-diagnosis-root .nygdiag-overall-caption {
  margin: 0 0 8px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
}

#nyanguard-diagnosis-root .nygdiag-overall-risklabel {
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--nygdiag-text);
}

#nyanguard-diagnosis-root .nygdiag-bridge-to-places {
  margin: 0 0 14px;
  padding: 0 4px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--nygdiag-text);
}

#nyanguard-diagnosis-root .nygdiag-bridge-to-places--muted {
  font-weight: 600;
  color: var(--nygdiag-muted);
}

#nyanguard-diagnosis-root .nygdiag-overall-hint {
  margin: 0 0 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--nygdiag-muted);
  line-height: 1.55;
}

#nyanguard-diagnosis-root .nygdiag-placecard-grid {
  display: grid;
  gap: 14px;
}

#nyanguard-diagnosis-root .nygdiag-placecard {
  border-radius: 12px;
  padding: 16px 14px;
  border: 1px solid var(--nygdiag-border);
  background: #fffefb;
}

#nyanguard-diagnosis-root .nygdiag-placecard--high {
  border-color: #e8b4b4;
  background: linear-gradient(180deg, #fff8f8 0%, #fff 70%);
}

#nyanguard-diagnosis-root .nygdiag-placecard--medium {
  border-color: #e5d4b8;
  background: linear-gradient(180deg, #fffbf3 0%, #fff 70%);
}

#nyanguard-diagnosis-root .nygdiag-placecard--low {
  border-color: #d8e8d0;
  background: linear-gradient(180deg, #f8fff6 0%, #fff 70%);
}

#nyanguard-diagnosis-root .nygdiag-placecard__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

#nyanguard-diagnosis-root .nygdiag-placecard__line {
  margin: 0 0 8px;
  font-size: 0.96rem;
  line-height: 1.6;
  font-weight: 600;
}

#nyanguard-diagnosis-root .nygdiag-placecard__line:last-child {
  margin-bottom: 0;
}

#nyanguard-diagnosis-root .nygdiag-placecard__arrow {
  color: var(--nygdiag-accent);
  margin-right: 4px;
}

#nyanguard-diagnosis-root .nygdiag-noplaces {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--nygdiag-muted);
  line-height: 1.65;
}

#nyanguard-diagnosis-root .nygdiag-card--priority {
  background: #f7f4ef;
  border-color: #dcd4c8;
}

#nyanguard-diagnosis-root .nygdiag-priority__sub {
  margin: -4px 0 12px;
  font-size: 0.88rem;
  color: var(--nygdiag-muted);
}

#nyanguard-diagnosis-root .nygdiag-priority__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#nyanguard-diagnosis-root .nygdiag-priority__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1rem;
}

#nyanguard-diagnosis-root .nygdiag-priority__body {
  flex: 1;
  min-width: 0;
}

#nyanguard-diagnosis-root .nygdiag-priority__title {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.45;
}

#nyanguard-diagnosis-root .nygdiag-priority__reason {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nygdiag-muted);
  line-height: 1.55;
}

#nyanguard-diagnosis-root .nygdiag-priority__item:last-child {
  margin-bottom: 0;
}

#nyanguard-diagnosis-root .nygdiag-priority__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  height: 1.6em;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--nygdiag-border);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--nygdiag-accent);
}

#nyanguard-diagnosis-root .nygdiag-card--estimate-bridge {
  background: linear-gradient(180deg, #f9faf9 0%, #fff 55%);
  border-color: #c8d4c8;
}

#nyanguard-diagnosis-root .nygdiag-est__lead {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--nygdiag-text);
  line-height: 1.65;
}

#nyanguard-diagnosis-root .nygdiag-est__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

#nyanguard-diagnosis-root .nygdiag-est__actions .nygdiag-btn--main {
  max-width: none;
}

#nyanguard-diagnosis-root .nygdiag-btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  background: #fff;
  color: var(--nygdiag-cta);
  border: 2px solid var(--nygdiag-border);
  box-sizing: border-box;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

#nyanguard-diagnosis-root .nygdiag-btn--outline:hover {
  opacity: 0.92;
  border-color: #b8b0a6;
}

#nyanguard-diagnosis-root .nygdiag-est__sub {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  color: var(--nygdiag-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
}

#nyanguard-diagnosis-root .nygdiag-share-strip--subtle {
  background: #fafafa;
}

#nyanguard-diagnosis-root .nygdiag-share-strip--subtle .nygdiag-share-strip__type {
  font-size: 1.05rem;
  font-weight: 700;
}

#nyanguard-diagnosis-root .nygdiag-card--notes-compact .nygdiag-notes li {
  margin-bottom: 10px;
}

#nyanguard-diagnosis-root .nygdiag-type-footnote {
  margin: 12px 0 16px;
  padding: 0 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #8a837a;
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-card--next-step {
  background: linear-gradient(180deg, #fafaf8 0%, #fff 55%);
  border-color: #d4cfc7;
  text-align: center;
  scroll-margin-top: 90px;
}

#nyanguard-diagnosis-root .nygdiag-card--next-step .nygdiag-h2 {
  margin-bottom: 10px;
}

#nyanguard-diagnosis-root .nygdiag-next__bridge {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--nygdiag-text);
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-next__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  max-width: 420px;
  margin: 0 auto;
}

#nyanguard-diagnosis-root .nygdiag-btn--primary-cta {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  font-weight: 800;
  min-height: 60px;
  font-size: 1.14rem;
  line-height: 1.15;
  box-shadow: 0 10px 24px rgba(43, 38, 34, 0.16);
}

#nyanguard-diagnosis-root .nygdiag-btn--sub-cta {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}

#nyanguard-diagnosis-root .nygdiag-btn--sub-first {
  border-color: #c4b8a8;
  background: #fffdfb;
}

#nyanguard-diagnosis-root .nygdiag-next__reassure {
  margin: 16px 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--nygdiag-muted);
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-next__seko-summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 700;
  color: #74695e;
  margin: 8px 0 8px;
}

#nyanguard-diagnosis-root .nygdiag-next__seko-summary::-webkit-details-marker {
  display: none;
}

#nyanguard-diagnosis-root .nygdiag-next__seko-summary::before {
  content: "＋ ";
  font-weight: 900;
}

#nyanguard-diagnosis-root .nygdiag-next__seko[open] .nygdiag-next__seko-summary::before {
  content: "− ";
}


/* --- ファーストビュー：映えゾーン（IG系多色・主役のみ派手／本文は別ブロックで白抜き） --- */
#nyanguard-diagnosis-root .nygdiag-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(230, 215, 205, 0.9);
  box-shadow:
    0 14px 44px rgba(214, 41, 118, 0.09),
    0 28px 60px rgba(79, 91, 213, 0.06),
    0 10px 32px rgba(43, 38, 34, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #fffdfb 52%, #fff9f7 100%);
}

#nyanguard-diagnosis-root .nygdiag-hero--tier-high {
  border-color: rgba(214, 41, 118, 0.22);
  box-shadow:
    0 18px 52px rgba(214, 41, 118, 0.14),
    0 26px 56px rgba(250, 126, 30, 0.08),
    0 12px 36px rgba(43, 38, 34, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

#nyanguard-diagnosis-root .nygdiag-hero--tier-mid {
  border-color: rgba(250, 126, 30, 0.2);
  box-shadow:
    0 16px 46px rgba(250, 126, 30, 0.1),
    0 20px 48px rgba(79, 91, 213, 0.05),
    0 8px 28px rgba(43, 38, 34, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#nyanguard-diagnosis-root .nygdiag-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 70% at 50% -8%, rgba(254, 218, 117, 0.28), transparent 58%),
    radial-gradient(ellipse 70% 55% at 8% 22%, rgba(214, 41, 118, 0.14), transparent 52%),
    radial-gradient(ellipse 65% 50% at 92% 18%, rgba(79, 91, 213, 0.16), transparent 50%),
    radial-gradient(ellipse 55% 48% at 78% 48%, rgba(150, 47, 191, 0.12), transparent 52%),
    radial-gradient(ellipse 75% 60% at 22% 72%, rgba(250, 126, 30, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 253, 250, 0.96) 100%);
  pointer-events: none;
}

#nyanguard-diagnosis-root .nygdiag-hero--tier-high .nygdiag-hero__bg {
  background:
    radial-gradient(ellipse 100% 75% at 48% -5%, rgba(254, 218, 117, 0.32), transparent 55%),
    radial-gradient(ellipse 72% 58% at 6% 20%, rgba(214, 41, 118, 0.18), transparent 50%),
    radial-gradient(ellipse 68% 52% at 94% 16%, rgba(79, 91, 213, 0.18), transparent 48%),
    radial-gradient(ellipse 60% 50% at 82% 42%, rgba(150, 47, 191, 0.14), transparent 52%),
    radial-gradient(ellipse 80% 62% at 18% 68%, rgba(250, 126, 30, 0.14), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 251, 248, 0.94) 100%);
}

/* ヒーロー下部：派手さを抑え、本文ゾーンへ色味をつなぐ */
#nyanguard-diagnosis-root .nygdiag-hero .nygdiag-hero__bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 253, 249, 0.35) 38%,
    rgba(255, 253, 249, 0.96) 100%
  );
  pointer-events: none;
}

#nyanguard-diagnosis-root .nygdiag-hero__decor--dots {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    radial-gradient(rgba(180, 140, 120, 0.28) 1px, transparent 1px),
    radial-gradient(rgba(120, 100, 180, 0.12) 1px, transparent 1px);
  background-size:
    14px 14px,
    22px 22px;
  background-position:
    0 0,
    7px 11px;
  pointer-events: none;
}

#nyanguard-diagnosis-root .nygdiag-hero__inner {
  position: relative;
  z-index: 1;
  padding: 20px 18px 22px;
  text-align: center;
}

@media (min-width: 520px) {
  #nyanguard-diagnosis-root .nygdiag-hero__inner {
    padding: 26px 24px 28px;
  }
}

#nyanguard-diagnosis-root .nygdiag-hero__eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #b08a7a;
  text-transform: uppercase;
}

#nyanguard-diagnosis-root .nygdiag-hero__title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--nygdiag-text);
}

#nyanguard-diagnosis-root .nygdiag-hero__title-sub {
  margin: 0 0 14px;
  font-size: clamp(0.82rem, 2.6vw, 0.95rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--nygdiag-muted);
  letter-spacing: 0.02em;
}

#nyanguard-diagnosis-root .nygdiag-hero__score-caption {
  max-width: 22rem;
  margin: 0 auto 12px;
  padding: 0 8px;
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-hero__score-legend {
  margin: 0 0 4px;
  font-size: clamp(0.88rem, 2.8vw, 0.98rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--nygdiag-text);
}

#nyanguard-diagnosis-root .nygdiag-hero__score-legend-em {
  padding: 0 0.12em;
  border-radius: 4px;
  background: rgba(214, 41, 118, 0.1);
  color: #b03058;
}

#nyanguard-diagnosis-root .nygdiag-hero__score-legend-long {
  margin: 0 0 4px;
  font-size: clamp(0.76rem, 2.4vw, 0.86rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--nygdiag-muted);
}

#nyanguard-diagnosis-root .nygdiag-hero__score-legend-short {
  margin: 0 0 6px;
  font-size: clamp(0.72rem, 2.2vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #7a6d5f;
}

#nyanguard-diagnosis-root .nygdiag-hero__score-legend-mini {
  margin: 0 0 8px;
  font-size: clamp(0.84rem, 2.4vw, 0.96rem);
  font-weight: 800;
  color: #6f645b;
}

#nyanguard-diagnosis-root .nygdiag-hero__impact {
  margin: 0;
  font-size: clamp(0.84rem, 2.6vw, 0.92rem);
  font-weight: 800;
  line-height: 1.45;
  color: #8f2b2b;
}

#nyanguard-diagnosis-root .nygdiag-hero__impact-pos {
  margin: 6px 0 0;
  font-size: clamp(0.78rem, 2.3vw, 0.86rem);
  font-weight: 700;
  line-height: 1.45;
  color: #756c64;
}

#nyanguard-diagnosis-root .nygdiag-hero__future-line {
  margin: 6px 0 0;
  font-size: clamp(0.88rem, 2.6vw, 0.98rem);
  font-weight: 800;
  line-height: 1.45;
  color: #7a2a2a;
}

#nyanguard-diagnosis-root .nygdiag-hero__closer {
  margin: 12px 0 12px;
  font-size: clamp(0.84rem, 2.5vw, 0.94rem);
  font-weight: 800;
  line-height: 1.45;
  color: #5c3a2a;
}

#nyanguard-diagnosis-root .nygdiag-hero__low-safety-note {
  margin: 0;
  padding: 8px 10px;
  font-size: clamp(0.82rem, 2.6vw, 0.92rem);
  font-weight: 800;
  line-height: 1.45;
  color: #a61e42;
  background: rgba(214, 41, 118, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(214, 41, 118, 0.22);
}

#nyanguard-diagnosis-root .nygdiag-hero__low-safety-note--severe {
  color: #8b1538;
  background: rgba(214, 41, 118, 0.12);
  border-color: rgba(214, 41, 118, 0.32);
}

#nyanguard-diagnosis-root .nygdiag-hero__donut-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 10px;
}

#nyanguard-diagnosis-root .nygdiag-hero-donut {
  position: relative;
  width: min(200px, 56vw);
  height: min(200px, 56vw);
}

/* リング外側：多色オーラ（glow） */
#nyanguard-diagnosis-root .nygdiag-hero-donut__glow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.72;
  filter: blur(20px);
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 32%, rgba(254, 218, 117, 0.65), transparent 58%),
    radial-gradient(circle at 72% 38%, rgba(214, 41, 118, 0.55), transparent 55%),
    radial-gradient(circle at 48% 72%, rgba(79, 91, 213, 0.45), transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(250, 126, 30, 0.4), transparent 62%);
}

#nyanguard-diagnosis-root .nygdiag-hero--tier-low .nygdiag-hero-donut__glow {
  opacity: 0.52;
  filter: blur(18px);
}

#nyanguard-diagnosis-root .nygdiag-hero--tier-mid .nygdiag-hero-donut__glow {
  opacity: 0.62;
}

#nyanguard-diagnosis-root .nygdiag-hero--tier-high .nygdiag-hero-donut__glow {
  opacity: 0.82;
  filter: blur(22px);
}

/* 下層：トラック（未塗りは均一グレー） */
#nyanguard-diagnosis-root .nygdiag-hero-donut__ring--track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
  background: conic-gradient(from -90deg, var(--nyg-ig-track) 0deg, var(--nyg-ig-track) 360deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* 上層：フルサークル多色 → マスクで危険度分だけ表示 */
#nyanguard-diagnosis-root .nygdiag-hero-donut__ring--spectrum {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 2;
  background: conic-gradient(
    from -90deg,
    var(--nyg-ig-1) 0deg,
    var(--nyg-ig-2) 72deg,
    var(--nyg-ig-3) 144deg,
    var(--nyg-ig-4) 216deg,
    var(--nyg-ig-5) 288deg,
    var(--nyg-ig-1) 360deg
  );
  -webkit-mask-image: conic-gradient(
    from -90deg,
    #000 0deg,
    #000 max(0deg, calc(var(--pct, 0) * 3.6deg - 0.02deg)),
    transparent calc(var(--pct, 0) * 3.6deg + 0.02deg),
    transparent 360deg
  );
  mask-image: conic-gradient(
    from -90deg,
    #000 0deg,
    #000 max(0deg, calc(var(--pct, 0) * 3.6deg - 0.02deg)),
    transparent calc(var(--pct, 0) * 3.6deg + 0.02deg),
    transparent 360deg
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(214, 41, 118, 0.35),
    0 0 40px rgba(79, 91, 213, 0.22),
    0 0 56px rgba(254, 218, 117, 0.18);
}

#nyanguard-diagnosis-root .nygdiag-hero-donut__ring--spectrum.nygdiag-hero-donut__ring--tier-low {
  background: conic-gradient(
    from -90deg,
    #feda75 0deg,
    #fa7e1e 120deg,
    #d62976 230deg,
    #962fbf 300deg,
    #feda75 360deg
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 10px 30px rgba(0, 0, 0, 0.1);
}

#nyanguard-diagnosis-root .nygdiag-hero-donut__ring--spectrum.nygdiag-hero-donut__ring--tier-mid {
  background: conic-gradient(
    from -90deg,
    #feda75 0deg,
    #fa7e1e 100deg,
    #d62976 220deg,
    #962fbf 300deg,
    #feda75 360deg
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.52),
    0 10px 30px rgba(0, 0, 0, 0.1);
}

#nyanguard-diagnosis-root .nygdiag-hero-donut__ring--spectrum.nygdiag-hero-donut__ring--tier-high {
  background: conic-gradient(
    from -90deg,
    #feda75 0deg,
    #fa7e1e 84deg,
    #d62976 188deg,
    #962fbf 272deg,
    #4f5bd5 330deg,
    #feda75 360deg
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.48),
    0 10px 30px rgba(0, 0, 0, 0.1);
}

#nyanguard-diagnosis-root .nygdiag-hero-donut__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow:
    inset 0 0 0 3px #ffffff,
    inset 0 0 0 4px rgba(220, 205, 195, 0.45),
    0 8px 28px rgba(43, 38, 34, 0.1);
}

#nyanguard-diagnosis-root .nygdiag-hero-donut__num {
  font-size: clamp(2.7rem, 12.5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #1a1614;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 1),
    0 0 20px rgba(255, 255, 255, 0.95);
}

#nyanguard-diagnosis-root .nygdiag-hero-donut__slash {
  font-size: clamp(0.72rem, 3vw, 0.88rem);
  font-weight: 700;
  color: #7a726c;
  margin-top: 5px;
  letter-spacing: 0.02em;
}

#nyanguard-diagnosis-root .nygdiag-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 4px 0 8px;
}

#nyanguard-diagnosis-root .nygdiag-hero__pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(
    135deg,
    rgba(254, 218, 117, 0.42) 0%,
    rgba(250, 126, 30, 0.38) 38%,
    rgba(214, 41, 118, 0.42) 72%,
    rgba(79, 91, 213, 0.28) 100%
  );
  border: 1px solid rgba(214, 41, 118, 0.35);
  color: #6b1538;
  box-shadow:
    0 2px 10px rgba(214, 41, 118, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

#nyanguard-diagnosis-root .nygdiag-hero--tier-low .nygdiag-hero__pill {
  background: linear-gradient(
    135deg,
    rgba(254, 218, 117, 0.35) 0%,
    rgba(255, 232, 200, 0.55) 50%,
    rgba(208, 220, 255, 0.35) 100%
  );
  border-color: rgba(250, 126, 30, 0.28);
  color: #7a5a28;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#nyanguard-diagnosis-root .nygdiag-hero--tier-mid .nygdiag-hero__pill {
  background: linear-gradient(
    135deg,
    rgba(255, 210, 160, 0.45) 0%,
    rgba(255, 160, 130, 0.4) 45%,
    rgba(200, 160, 230, 0.35) 100%
  );
  border-color: rgba(250, 126, 30, 0.38);
  color: #8b3a20;
  box-shadow:
    0 2px 8px rgba(250, 126, 30, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#nyanguard-diagnosis-root .nygdiag-hero--tier-high .nygdiag-hero__pill {
  background: linear-gradient(
    135deg,
    rgba(254, 218, 117, 0.5) 0%,
    rgba(250, 126, 30, 0.48) 35%,
    rgba(214, 41, 118, 0.42) 68%,
    rgba(150, 47, 191, 0.35) 100%
  );
  border-color: rgba(214, 41, 118, 0.42);
  color: #5c1028;
  box-shadow:
    0 3px 14px rgba(214, 41, 118, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

#nyanguard-diagnosis-root .nygdiag-hero__risk-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nygdiag-muted);
}

#nyanguard-diagnosis-root .nygdiag-hero__stars-caption {
  margin: 0 0 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--nygdiag-muted);
}

#nyanguard-diagnosis-root .nygdiag-hero__stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 0 0 8px;
  font-size: clamp(0.95rem, 3.4vw, 1.18rem);
  line-height: 1;
  opacity: 0.92;
}

#nyanguard-diagnosis-root .nygdiag-hero-star {
  display: inline-block;
  transition: transform 0.15s ease;
}

#nyanguard-diagnosis-root .nygdiag-hero-star--off {
  opacity: 0.38;
  color: #e0d8d0;
  text-shadow: none;
  filter: grayscale(0.15);
}

/* アクティブ星：リングと同系の多色（ティアで彩度のみ変化） */
#nyanguard-diagnosis-root .nygdiag-hero-star--on {
  background: linear-gradient(
    145deg,
    var(--nyg-ig-1) 0%,
    var(--nyg-ig-2) 26%,
    var(--nyg-ig-3) 52%,
    var(--nyg-ig-4) 76%,
    var(--nyg-ig-5) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(214, 41, 118, 0.22));
}

#nyanguard-diagnosis-root .nygdiag-hero__stars--low .nygdiag-hero-star--on {
  background: linear-gradient(
    145deg,
    #fff4d8 0%,
    #ffd8b8 30%,
    #ffc8dc 58%,
    #d8c8f0 82%,
    #c8d4ff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 1px 1px rgba(120, 100, 180, 0.18));
}

#nyanguard-diagnosis-root .nygdiag-hero__stars--mid .nygdiag-hero-star--on {
  filter: drop-shadow(0 1px 3px rgba(214, 41, 118, 0.28));
}

#nyanguard-diagnosis-root .nygdiag-hero__stars--high .nygdiag-hero-star--on {
  filter: drop-shadow(0 2px 4px rgba(214, 41, 118, 0.38)) drop-shadow(0 1px 2px rgba(79, 91, 213, 0.22));
}

#nyanguard-diagnosis-root .nygdiag-hero__lead {
  margin: 0 0 10px;
  font-size: clamp(0.92rem, 3vw, 1.02rem);
  font-weight: 800;
  line-height: 1.5;
  color: var(--nygdiag-text);
}

#nyanguard-diagnosis-root .nygdiag-hero__urgent {
  margin: 0 0 8px;
  font-size: clamp(0.96rem, 3.2vw, 1.08rem);
  font-weight: 900;
  line-height: 1.45;
  color: #b33232;
}

#nyanguard-diagnosis-root .nygdiag-hero__cta-sub {
  margin: 10px 0 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: #625850;
}

#nyanguard-diagnosis-root .nygdiag-hero__hint {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--nygdiag-muted);
}

/* ヒーロー内「あるある」1件のみ（スコア・一言の次、CTAの前） */
#nyanguard-diagnosis-root .nygdiag-hero__aruaru {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 12px;
  text-align: left;
  background: rgba(255, 252, 248, 0.95);
  border: 1px solid rgba(218, 208, 196, 0.65);
}

#nyanguard-diagnosis-root .nygdiag-hero__aruaru-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #7a6f66;
}

#nyanguard-diagnosis-root .nygdiag-hero__aruaru-text {
  margin: 0;
  font-size: clamp(0.86rem, 2.85vw, 0.94rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--nygdiag-text);
}

#nyanguard-diagnosis-root .nygdiag-hero__aruaru-note {
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
  color: #8a8075;
  letter-spacing: 0.02em;
}

#nyanguard-diagnosis-root .nygdiag-hero__capture {
  position: relative;
  z-index: 1;
}

#nyanguard-diagnosis-root .nygdiag-sharebtn--primary {
  width: 100%;
  min-height: 48px;
  font-size: 0.88rem;
  border-width: 2px;
  border-color: rgba(196, 85, 74, 0.32);
  background: linear-gradient(180deg, #fffefb 0%, #ffffff 100%);
}

#nyanguard-diagnosis-root .nygdiag-card--result-share {
  margin-top: 0;
}

#nyanguard-diagnosis-root .nygdiag-card--result-share .nygdiag-result-share__h {
  margin: 0 0 6px;
  font-size: 1rem;
}

#nyanguard-diagnosis-root .nygdiag-result-share__lead {
  margin: 0 0 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #7a7168;
  font-weight: 600;
}

#nyanguard-diagnosis-root .nygdiag-result-share__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#nyanguard-diagnosis-root .nygdiag-result-share__btn {
  flex: 1 1 calc(50% - 4px);
  min-width: min(100%, 148px);
  box-sizing: border-box;
  font-size: 0.78rem;
}

#nyanguard-diagnosis-root .nygdiag-card--result-share .nygdiag-sharebtn--primary {
  width: auto;
}

#nyanguard-diagnosis-root
  .nygdiag--result
  > .nyg-card.nygdiag-card--result-share.nygdiag-card--compact-share {
  padding: 12px 14px;
}

#nyanguard-diagnosis-root .nygdiag-card--compact-share .nygdiag-result-share__h {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #9a9088;
}

#nyanguard-diagnosis-root .nygdiag-card--compact-share .nygdiag-result-share__lead {
  margin: 0 0 8px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #928a82;
  font-weight: 600;
}

#nyanguard-diagnosis-root .nygdiag-card--compact-share .nygdiag-result-share__row {
  gap: 6px;
  align-items: center;
}

#nyanguard-diagnosis-root .nygdiag-card--compact-share .nygdiag-result-share__btn {
  min-height: 40px;
  min-width: min(100%, 152px);
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

#nyanguard-diagnosis-root .nygdiag-card--compact-share .nygdiag-sharebtn--primary {
  border-width: 1px;
  min-height: 38px;
}

#nyanguard-diagnosis-root .nygdiag-card--compact-share .nygdiag-sharebtn {
  white-space: nowrap;
  line-height: 1.2;
}

#nyanguard-diagnosis-root .nygdiag-sharebtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(200, 175, 165, 0.65);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--nygdiag-text);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(43, 38, 34, 0.06);
  box-sizing: border-box;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

#nyanguard-diagnosis-root .nygdiag-sharebtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(43, 38, 34, 0.1);
}

#nyanguard-diagnosis-root .nygdiag-sharebtn__txt {
  line-height: 1.2;
  text-align: center;
  flex: 1 1 auto;
  min-width: 0;
}

#nyanguard-diagnosis-root .nygdiag-sharebtn__ico {
  flex-shrink: 0;
  opacity: 0.88;
}

#nyanguard-diagnosis-root .nygdiag-sharebtn--wide {
  grid-column: 1 / -1;
}

#nyanguard-diagnosis-root .nygdiag-hero__main-cta {
  width: 100%;
  max-width: 420px;
  margin: 18px auto 0;
  min-height: 56px;
  font-size: 1.05rem;
  line-height: 1.15;
  box-shadow: 0 8px 24px rgba(214, 41, 118, 0.16);
}

#nyanguard-diagnosis-root .nygdiag-hero--tier-low .nygdiag-hero__main-cta {
  box-shadow: 0 8px 22px rgba(250, 126, 30, 0.14);
}

#nyanguard-diagnosis-root .nygdiag-hero--tier-mid .nygdiag-hero__main-cta {
  box-shadow: 0 8px 24px rgba(214, 41, 118, 0.16);
}

#nyanguard-diagnosis-root .nygdiag-hero--tier-high .nygdiag-hero__main-cta {
  box-shadow:
    0 10px 28px rgba(214, 41, 118, 0.22),
    0 4px 14px rgba(79, 91, 213, 0.12);
}

/* トースト（URLコピー等） */
#nyanguard-diagnosis-root .nygdiag-toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  z-index: 100050;
  transform: translateX(-50%) translateY(12px);
  max-width: min(92vw, 360px);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: rgba(52, 44, 40, 0.92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

#nyanguard-diagnosis-root .nygdiag-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

#nyanguard-diagnosis-root .nygdiag--result > .nygdiag-railhead {
  margin-top: 14px;
  margin-bottom: 16px;
}

/* ファーストビュー直下で完結 → 以降は任意閲覧 */
#nyanguard-diagnosis-root .nygdiag-result-secondary {
  margin-top: 2px;
}

#nyanguard-diagnosis-root .nygdiag-result-secondary__eyebrow {
  margin: 0 0 10px;
  padding: 0 2px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: none;
  color: #9a9188;
  text-align: center;
}

/* --- 診断結果：実用ゾーン（ヒーロー以外）は白ベースで抜く（読むゾーン） --- */
#nyanguard-diagnosis-root .nygdiag--result > .nyg-card.nygdiag-card:not(.nygdiag-hero),
#nyanguard-diagnosis-root .nygdiag--result .nygdiag-result-secondary > .nyg-card.nygdiag-card {
  background: #ffffff;
  border: 1px solid var(--nygdiag-border);
  box-shadow: 0 2px 14px rgba(43, 38, 34, 0.045);
  margin-bottom: 14px;
  padding: 16px 14px;
}

#nyanguard-diagnosis-root .nygdiag--result .nygdiag-card--priority {
  background: #ffffff;
  border-color: var(--nygdiag-border);
}

#nyanguard-diagnosis-root .nygdiag--result .nygdiag-card--next-step {
  background: #ffffff;
  border-color: var(--nygdiag-border);
}

#nyanguard-diagnosis-root .nygdiag--result .nygdiag-card--scene {
  background: #ffffff;
  border-color: var(--nygdiag-border);
  box-shadow: 0 2px 14px rgba(43, 38, 34, 0.045);
}

#nyanguard-diagnosis-root .nygdiag--result .nygdiag-scene-bubble {
  background: #ffffff;
  border: 1px solid rgba(231, 225, 217, 0.95);
  box-shadow: 0 2px 10px rgba(43, 38, 34, 0.04);
}

#nyanguard-diagnosis-root .nygdiag--result .nygdiag-placecard--high {
  background: #ffffff;
  background-image: none;
  border: 1px solid var(--nygdiag-border);
  border-left: 3px solid rgba(220, 130, 130, 0.88);
}

#nyanguard-diagnosis-root .nygdiag--result .nygdiag-placecard--medium {
  background: #ffffff;
  background-image: none;
  border: 1px solid var(--nygdiag-border);
  border-left: 3px solid rgba(210, 165, 110, 0.88);
}

#nyanguard-diagnosis-root .nygdiag--result .nygdiag-placecard--low {
  background: #ffffff;
  background-image: none;
  border: 1px solid var(--nygdiag-border);
  border-left: 3px solid rgba(150, 185, 140, 0.88);
}

/* --- 診断結果：読む順番・優先度・CTA主従・終端 --- */
#nyanguard-diagnosis-root .nygdiag-railhead {
  margin: 8px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(231, 225, 217, 0.8);
  text-align: center;
  box-shadow: 0 2px 12px rgba(43, 38, 34, 0.04);
}

#nyanguard-diagnosis-root .nygdiag-railhead__title {
  margin: 0 0 8px;
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--nygdiag-text);
  line-height: 1.35;
}

#nyanguard-diagnosis-root .nygdiag-railhead__txt {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #6f6860;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

#nyanguard-diagnosis-root .nygdiag-railhead__benefits {
  margin: 0 auto;
  padding: 0 0 0 1.2em;
  max-width: 22em;
  display: inline-block;
  text-align: left;
  font-size: 0.86rem;
  font-weight: 700;
  color: #5c554c;
  line-height: 1.5;
  list-style: disc;
}

#nyanguard-diagnosis-root .nygdiag-railhead__benefits li {
  margin: 0 0 6px;
}

#nyanguard-diagnosis-root .nygdiag-railhead__benefits li:last-child {
  margin-bottom: 0;
}

#nyanguard-diagnosis-root .nygdiag-h2--places {
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

#nyanguard-diagnosis-root .nygdiag-places__sub {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nygdiag-muted);
  line-height: 1.5;
}

#nyanguard-diagnosis-root .nygdiag-placecard__title {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.35;
}

#nyanguard-diagnosis-root .nygdiag-placecard__purpose {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--nygdiag-muted);
}

#nyanguard-diagnosis-root .nygdiag-placecard__points {
  margin: 0;
  padding: 0;
  list-style: none;
}

#nyanguard-diagnosis-root .nygdiag-placecard__point {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
}

#nyanguard-diagnosis-root .nygdiag-placecard__point:last-child {
  margin-bottom: 0;
}

#nyanguard-diagnosis-root .nygdiag-placecard__plabel {
  flex-shrink: 0;
  min-width: 3.4em;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #f3f0eb;
  color: #5c564f;
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-placecard__ptext {
  font-weight: 600;
  color: var(--nygdiag-text);
}

#nyanguard-diagnosis-root .nygdiag-placecard__tags {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(231, 225, 217, 0.65);
  font-size: 0.74rem;
  font-weight: 700;
  color: #6a645d;
  letter-spacing: 0.02em;
}

#nyanguard-diagnosis-root .nygdiag-placecard__tagsep {
  margin: 0 0.35em;
  opacity: 0.55;
}

#nyanguard-diagnosis-root .nygdiag-placecard__cta-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.55;
  color: #7a7168;
}

#nyanguard-diagnosis-root .nygdiag-placecard__cta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#nyanguard-diagnosis-root .nygdiag-placecard__est-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  min-height: 44px;
  line-height: 1.4;
  white-space: normal;
  word-break: keep-all;
}

#nyanguard-diagnosis-root .nygdiag-placecard__est-link > * {
  display: block;
  line-height: inherit;
  transform: none;
  position: static;
  margin: 0;
  padding: 0;
}

/* 結果：重要場所カード（リスク→解決→CTA） */
#nyanguard-diagnosis-root .nygdiag-placecard--action .nygdiag-placecard__title {
  margin-bottom: 8px;
}

#nyanguard-diagnosis-root .nygdiag-placecard--action .nygdiag-placecard__risk {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--nygdiag-text);
}

#nyanguard-diagnosis-root .nygdiag-placecard--action .nygdiag-placecard__solution {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 6px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(77, 122, 90, 0.09);
  border: 1px solid rgba(77, 122, 90, 0.16);
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 700;
  color: #3a4536;
}

#nyanguard-diagnosis-root .nygdiag-placecard--action .nygdiag-placecard__solution-arr {
  flex-shrink: 0;
  color: var(--nygdiag-accent);
  font-weight: 900;
}

#nyanguard-diagnosis-root .nygdiag-placecard--action .nygdiag-placecard__solution-txt {
  flex: 1;
  min-width: 0;
}

#nyanguard-diagnosis-root .nygdiag-placecard--action .nygdiag-placecard__cta {
  margin-top: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#nyanguard-diagnosis-root .nygdiag-placecard--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

#nyanguard-diagnosis-root .nygdiag-placecard--link:hover,
#nyanguard-diagnosis-root .nygdiag-placecard--link:focus-visible,
#nyanguard-diagnosis-root .nygdiag-placecard--link:active {
  transform: translateY(-2px);
  border-color: rgba(196, 85, 74, 0.7);
  box-shadow: 0 10px 22px rgba(43, 38, 34, 0.12);
}

#nyanguard-diagnosis-root .nygdiag-placecard--rank1 {
  border: 2px solid rgba(214, 56, 56, 0.72);
  box-shadow: 0 8px 20px rgba(214, 56, 56, 0.14);
}

#nyanguard-diagnosis-root .nygdiag-placecard--rank2 {
  border: 2px solid rgba(236, 148, 54, 0.74);
  box-shadow: 0 8px 18px rgba(236, 148, 54, 0.12);
}

#nyanguard-diagnosis-root .nygdiag-placecard--action .nygdiag-placecard__est-link {
  font-weight: 800;
}

#nyanguard-diagnosis-root .nygdiag--result .nygdiag-placecard--priority {
  box-shadow: 0 4px 18px rgba(43, 38, 34, 0.08);
  border-color: rgba(220, 200, 190, 0.95);
}

#nyanguard-diagnosis-root .nygdiag-card--priority-tight {
  margin-bottom: 10px;
}

#nyanguard-diagnosis-root .nygdiag-card--priority-tight .nygdiag-priority__list {
  margin-bottom: 0;
}

#nyanguard-diagnosis-root .nygdiag-card--priority-tight .nygdiag-priority__item {
  margin-bottom: 10px;
}

#nyanguard-diagnosis-root .nygdiag-priority__n {
  min-width: 2.15em;
  height: 2.15em;
  font-size: 1.08rem;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #faf8f5);
  border: 1px solid rgba(200, 190, 180, 0.9);
  box-shadow: 0 1px 4px rgba(43, 38, 34, 0.07);
}

#nyanguard-diagnosis-root .nygdiag-priority__sub {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #faf9f7;
  border: 1px solid rgba(231, 225, 217, 0.85);
  font-size: 0.86rem;
  font-weight: 700;
  color: #5c564f;
  line-height: 1.55;
}

#nyanguard-diagnosis-root .nygdiag-priority__sub-mark {
  margin-right: 6px;
  opacity: 0.55;
}

#nyanguard-diagnosis-root .nygdiag-card--priority-tight + .nygdiag-card--next-step {
  margin-top: -2px;
}

#nyanguard-diagnosis-root .nygdiag-next__eyebrow {
  margin: 0 0 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #9a8f85;
}

#nyanguard-diagnosis-root .nygdiag-next__primary {
  margin-bottom: 12px;
}

#nyanguard-diagnosis-root .nygdiag-next__btn-main {
  width: 100%;
  max-width: 420px;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(43, 38, 34, 0.12);
}

#nyanguard-diagnosis-root .nygdiag-next__bridge {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--nygdiag-muted);
}

#nyanguard-diagnosis-root .nygdiag-next__subs-label {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #8a8078;
  letter-spacing: 0.04em;
}

#nyanguard-diagnosis-root .nygdiag-next__subs-hint {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9a8f85;
  line-height: 1.45;
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-next__subs-lead {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9a8f85;
  line-height: 1.45;
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-next__no-place-hint {
  margin: 16px 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #6d655c;
  line-height: 1.55;
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-next__actions--subs {
  gap: 10px;
}

#nyanguard-diagnosis-root .nygdiag-btn--place-est.nygdiag-btn--outline {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 44px;
  white-space: normal;
  word-break: keep-all;
  border-width: 1px;
  background: #fffdfb;
  color: #3d3833;
  box-shadow: none;
}

#nyanguard-diagnosis-root .nygdiag-next__actions--subs .nygdiag-btn--sub-cta {
  min-height: 46px;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    background 0.12s ease;
}

#nyanguard-diagnosis-root .nygdiag-next__actions--subs .nygdiag-btn--sub-cta:hover {
  transform: translateY(-1px);
  border-color: #c4b8a8;
}

#nyanguard-diagnosis-root .nygdiag-notes__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

#nyanguard-diagnosis-root .nygdiag-notes__mark {
  flex-shrink: 0;
  width: 1.4em;
  height: 1.4em;
  margin-top: 0.12em;
  border-radius: 50%;
  background: rgba(196, 85, 74, 0.12);
  color: var(--nygdiag-accent);
  font-weight: 900;
  font-size: 0.78rem;
  line-height: 1.4em;
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-notes__text {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.55;
}

#nyanguard-diagnosis-root .nygdiag-card--notes-compact .nygdiag-notes--result .nygdiag-notes__text {
  font-size: 0.9rem;
  line-height: 1.45;
}

/* 注意ポイント：リスト記号なし・1行ずつ（結果画面） */
#nyanguard-diagnosis-root .nygdiag-card--notes-plain .nygdiag-notes-plain {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 0;
}

#nyanguard-diagnosis-root .nygdiag-notes-plain__line {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--nygdiag-text);
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* あるあるブロック（結果画面・中央・読みやすさ重視） */
#nyanguard-diagnosis-root .nygdiag-card--aruaru {
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-card--aruaru .aruaru-block {
  padding: 8px 4px 6px;
  max-width: 520px;
  margin: 0 auto;
}

#nyanguard-diagnosis-root .nygdiag-card--aruaru .aruaru-title {
  margin: 0 0 14px;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--nygdiag-accent);
}

#nyanguard-diagnosis-root .nygdiag-card--aruaru .aruaru-text {
  margin: 0 auto;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.48;
  color: var(--nygdiag-text);
  word-break: keep-all;
  overflow-wrap: break-word;
  max-width: 34em;
  white-space: pre-line;
}

#nyanguard-diagnosis-root .nygdiag-card--aruaru .aruaru-cat {
  margin: 16px auto 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
  color: #6d5a48;
}

@media (max-width: 520px) {
  #nyanguard-diagnosis-root .nygdiag-card--aruaru .aruaru-text {
    font-size: 1.02rem;
  }
}

#nyanguard-diagnosis-root .nygdiag-scene-lead {
  margin: 0 0 8px;
  font-size: 1.03rem;
  font-weight: 900;
  color: var(--nygdiag-accent);
  letter-spacing: 0.02em;
}

#nyanguard-diagnosis-root .nygdiag--result .nygdiag-scene-bubble {
  padding: 12px 14px;
}

#nyanguard-diagnosis-root .nygdiag--result .nygdiag-scene {
  font-size: 1.06rem;
  line-height: 1.75;
  font-weight: 600;
}

#nyanguard-diagnosis-root .nygdiag--result .nygdiag-scene.nygdiag-scene--resultline {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 600;
}

#nyanguard-diagnosis-root .nygdiag-card--closing {
  border: 1px solid rgba(200, 190, 180, 0.85);
  box-shadow: 0 6px 22px rgba(43, 38, 34, 0.06);
}

#nyanguard-diagnosis-root .nygdiag-closing__lead {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.65;
}

#nyanguard-diagnosis-root .nygdiag-closing__primary {
  margin-bottom: 20px;
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-btn--closing-main {
  width: 100%;
  max-width: 420px;
  min-height: 50px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(43, 38, 34, 0.11);
}

#nyanguard-diagnosis-root .nygdiag-closing__seko {
  padding-top: 4px;
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-closing__eyebrow {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--nygdiag-text);
}

#nyanguard-diagnosis-root .nygdiag-btn--closing-seko {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
}

#nyanguard-diagnosis-root .nygdiag-closing__subnote {
  margin: 12px 0 0;
  font-size: 0.88rem;
}

#nyanguard-diagnosis-root .nygdiag-closing__infolink {
  color: #8a7f72;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#nyanguard-diagnosis-root .nygdiag-card--share-supplement {
  background: #fbfaf8;
  border: 1px dashed rgba(200, 190, 180, 0.75);
  box-shadow: none;
}

#nyanguard-diagnosis-root .nygdiag-h2--subtle {
  font-size: 0.85rem;
  font-weight: 800;
  color: #8a8078;
  margin: 0 0 8px;
  letter-spacing: 0.05em;
}

#nyanguard-diagnosis-root .nygdiag-share-sup__txt {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--nygdiag-muted);
  line-height: 1.55;
}

#nyanguard-diagnosis-root .nygdiag-share-sup__btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--nygdiag-border);
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--nygdiag-text);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

#nyanguard-diagnosis-root .nygdiag-share-sup__btn:hover {
  border-color: #c4b8a8;
  background: #fffdfb;
}

#nyanguard-diagnosis-root .nygdiag-foot--resultend {
  padding: 8px 0 28px;
  margin-bottom: 0;
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-foot--resultend.nygdiag-foot--quietend {
  padding: 4px 0 10px;
  margin-top: 0;
}

/* renderResult 末尾：再診断〜サイトフッターまでを短く（.nygdiag-foot--quietend より後で上書き） */
#nyanguard-diagnosis-root .nygdiag-foot.nygdiag-foot--resultend.nygdiag-foot--quietend.nygdiag-foot--resultend-flush {
  margin-top: 0;
  padding: 0 0 6px;
  gap: 4px;
}

#nyanguard-diagnosis-root .nygdiag-foot--resultend-flush.nygdiag-foot--quietend .nygdiag-foot__restartwrap {
  margin-bottom: 0;
}

#nyanguard-diagnosis-root .nygdiag-foot--resultend-flush .nygdiag-urlcopy-msg:not([hidden]) {
  margin-top: 4px;
  margin-bottom: 0;
}

#nyanguard-diagnosis-root .nygdiag-foot__restartwrap {
  margin: 0 0 8px;
}

#nyanguard-diagnosis-root .nygdiag-foot--quietend .nygdiag-foot__restartwrap {
  margin: 0 0 4px;
}

#nyanguard-diagnosis-root .nygdiag-foot__restartwrap .nygdiag-linkbtn {
  font-size: 0.84rem;
  font-weight: 600;
  color: #8a8078;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 6px 8px;
  cursor: pointer;
}

#nyanguard-diagnosis-root .nygdiag-foot__restartwrap .nygdiag-foot__restart-quiet {
  font-size: 0.76rem;
  font-weight: 500;
  color: #b0a8a0;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

#nyanguard-diagnosis-root .nygdiag-foot--quietend .nygdiag-trust--resultend.nygdiag-trust--quiet {
  margin-top: 6px;
  font-size: 0.66rem;
  line-height: 1.5;
  color: #aca59d;
  opacity: 0.72;
}

#nyanguard-diagnosis-root .nygdiag-follow-cta {
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)) 12px;
}

#nyanguard-diagnosis-root .nygdiag-follow-cta__btn.nygdiag-btn--main {
  min-height: 40px;
  font-size: 0.93rem;
}

#nyanguard-diagnosis-root .nygdiag-card--notes-compact .nygdiag-notes--result {
  margin-top: 4px;
}

@media (min-width: 720px) {
  #nyanguard-diagnosis-root .nygdiag-card--notes-compact .nygdiag-notes.nygdiag-notes--result {
    display: block;
  }
}

@media (max-width: 719px) {
  #nyanguard-diagnosis-root .nygdiag-card--notes-compact .nygdiag-notes--result {
    display: block;
  }

  #nyanguard-diagnosis-root .nygdiag-card--notes-compact .nygdiag-notes--result li {
    margin-bottom: 12px;
  }
}

#nyanguard-diagnosis-root .nygdiag-myth--result {
  font-size: 0.78rem;
  opacity: 0.72;
  margin-top: 16px;
  line-height: 1.5;
}

/* 場所カード：対策カテゴリ行 */
#nyanguard-diagnosis-root .nygdiag-placecard__cat {
  margin: -4px 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5c564f;
  line-height: 1.45;
}

#nyanguard-diagnosis-root .nygdiag-placecard__cat-label {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f3f0eb;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #6a645d;
  vertical-align: 0.08em;
}

/* 優先順位：リード文 */
#nyanguard-diagnosis-root .nygdiag-priority__lead {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7a7168;
  line-height: 1.55;
  text-align: left;
}

/* 見積もり導線：本文ブロック（固定バーと役割分担） */
#nyanguard-diagnosis-root .nygdiag-card--next-step .nygdiag-next__intro {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--nygdiag-text);
  text-align: left;
  font-weight: 600;
}

#nyanguard-diagnosis-root .nygdiag-card--next-step .nygdiag-next__tier-label {
  margin: 18px 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #9a8f85;
  text-align: left;
}

#nyanguard-diagnosis-root .nygdiag-card--next-step .nygdiag-next__intro + .nygdiag-next__tier-label {
  margin-top: 4px;
}

#nyanguard-diagnosis-root .nygdiag-next__primary-note {
  margin: 10px 0 0;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.5;
  color: #8a8078;
  text-align: left;
}

#nyanguard-diagnosis-root .nygdiag-next__seko {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(231, 225, 217, 0.85);
}

#nyanguard-diagnosis-root .nygdiag-next__seko--quiet {
  margin-top: 12px;
  padding-top: 12px;
  border-top-color: rgba(231, 225, 217, 0.65);
}

#nyanguard-diagnosis-root
  .nygdiag-card--next-step
  .nygdiag-next__seko--quiet
  .nygdiag-next__tier-label--muted {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #a8a098;
}

#nyanguard-diagnosis-root .nygdiag-next__seko-hint {
  margin: 0 0 8px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #928a82;
  font-weight: 600;
  text-align: left;
}

#nyanguard-diagnosis-root .nygdiag-btn--seko-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  min-height: 40px;
  margin: 0;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 10px;
  border: 1px solid rgba(200, 190, 182, 0.95);
  background: rgba(252, 251, 249, 0.98);
  color: #5c564f;
  text-decoration: none;
  box-shadow: none;
  box-sizing: border-box;
  cursor: pointer;
}

#nyanguard-diagnosis-root .nygdiag-btn--seko-sub:hover {
  border-color: #c4b8a8;
  background: #ffffff;
}

#nyanguard-diagnosis-root .nygdiag-next__seko-more {
  margin: 8px 0 0;
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-next__seko-infolink {
  font-size: 0.76rem;
  font-weight: 600;
  color: #9a8f85;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#nyanguard-diagnosis-root .nygdiag-next__seko-lead {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: #6a645d;
  line-height: 1.55;
  text-align: left;
  font-weight: 600;
}

#nyanguard-diagnosis-root .nygdiag-next__seko-sub {
  margin: 12px 0 0;
  text-align: center;
}

/* 結果フッター：URLコピー補助（共有の繰り返しを避けた最小導線） */
#nyanguard-diagnosis-root .nygdiag-foot__aux {
  margin: 10px 0 6px;
  text-align: center;
}

#nyanguard-diagnosis-root .nygdiag-foot__urlbtn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--nygdiag-border);
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--nygdiag-text);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

#nyanguard-diagnosis-root .nygdiag-foot__urlbtn:hover {
  border-color: #c4b8a8;
  background: #fffdfb;
}

#nyanguard-diagnosis-root .nygdiag-foot__aux-hint {
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9a9088;
  line-height: 1.45;
}

/*
 * 診断ツール：質問中のみサイト共通フッターを非表示（ui.js で body.nyg-diagnosis-in-progress + hidden）
 * テーマ nk：footer.php は <footer id="footer">（背景 #222 / .bottom-bar #000）
 */
body.nyg-diagnosis-in-progress #footer,
body.nyg-diagnosis-in-progress footer#footer,
body.nyg-diagnosis-in-progress #colophon,
body.nyg-diagnosis-in-progress .site-footer,
body.nyg-diagnosis-in-progress .l-footer,
body.nyg-diagnosis-in-progress .footer-area,
body.nyg-diagnosis-in-progress footer[role="contentinfo"],
body.nyg-diagnosis-in-progress #footer[data-nygdiag-footer-suppress="1"],
body.nyg-diagnosis-in-progress #colophon[data-nygdiag-footer-suppress="1"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  pointer-events: none !important;
}

body.nyg-diagnosis-in-progress {
  background-color: #fffdf9;
}

body.nyg-diagnosis-in-progress #nyanguard-diagnosis-root {
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

@import url("./style-gemini.css");