/* ==================================================
   Footer Panel
   出会い格付けチェック専用
   ネイビー × ゴールド / SVG星アイコン版
================================================== */

:root {
  --dg-navy: #10233f;
  --dg-navy-2: #172f55;
  --dg-navy-3: #0b1a31;
  --dg-gold: #d6aa4a;
  --dg-gold-deep: #b98a22;
  --dg-gold-light: #f6d77a;
  --dg-gold-bg: #f8f3e6;
  --dg-white: #ffffff;
  --dg-text: #222222;
  --dg-muted: #666666;
  --dg-border: #e9e3d7;
  --dg-bg: #f7f4ee;
}

/* 下部追従バナー */
.dg-sticky-banner {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 9998;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

  max-width: 540px;
  margin: 0 auto;
  padding: 11px 14px;

  border: 1px solid rgba(214, 170, 74, 0.78);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--dg-navy) 0%, var(--dg-navy-2) 52%, var(--dg-navy-3) 100%);
  color: var(--dg-white);

  box-shadow: none;
  cursor: pointer;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.2s ease;

  overflow: visible;
  isolation: isolate;
}

.dg-sticky-banner::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(16, 35, 63, 0.34);
  filter: blur(12px);
  opacity: 0.9;
  pointer-events: none;
}

.dg-sticky-banner.is-show {
  transform: translateY(0);
  opacity: 1;
}

.dg-sticky-banner__main {
  display: block;
  color: var(--dg-gold-light);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.01em;
}

.dg-sticky-banner__sub {
  display: block;
  color: var(--dg-white);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.dg-sticky-banner:hover,
.dg-sticky-banner:focus {
  filter: brightness(1.06);
  outline: none;
}

@media (min-width: 768px) {
  .dg-sticky-banner {
    left: 50%;
    right: auto;
    bottom: 22px;
    width: min(540px, calc(100% - 32px));
    transform: translate(-50%, 140%);
  }

  .dg-sticky-banner.is-show {
    transform: translate(-50%, 0);
  }
}

/* 背景 */
.dg-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(11, 26, 49, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.dg-panel-overlay.is-show {
  opacity: 1;
  pointer-events: auto;
}

/* パネル */
.dg-compare-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 9999;

  width: min(100%, 520px);
  max-height: 88vh;

  background: var(--dg-white);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 28px rgba(11, 26, 49, 0.26);

  transform: translate(-50%, 120%);
  transition: transform 0.28s ease;
  overflow: hidden;
}

.dg-compare-panel.is-show {
  transform: translate(-50%, 0);
}

.dg-compare-panel__header {
  position: sticky;
  top: 0;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 10px 48px;
  border-bottom: 1px solid var(--dg-border);
  background: var(--dg-white);
}

.dg-compare-panel__title {
  margin: 0;
  color: var(--dg-navy);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
}

.dg-compare-panel__close {
  position: absolute;
  right: 8px;
  top: 5px;

  width: 42px;
  height: 42px;
  padding: 0;

  border: none;
  background: transparent;
  color: #8a8a8a;

  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dg-compare-panel__close:hover,
.dg-compare-panel__close:focus {
  opacity: 0.7;
  outline: none;
}

.dg-compare-panel__body {
  max-height: calc(88vh - 52px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--dg-bg);
}

@media (min-width: 768px) {
  .dg-compare-panel {
    bottom: 24px;
    border-radius: 18px;
  }
}

body.dg-panel-open {
  overflow: hidden;
}

/* 全体 */
.dg-rating-card {
  color: var(--dg-text);
  font-size: 13px;
  line-height: 1.7;
}

/* 動画 */
.dg-movie-hero {
  padding: 12px 12px 0;
  background: var(--dg-white);
}

.dg-service-movie {
  display: block;
  width: 100%;
  border-radius: 14px;
  background: var(--dg-navy-3);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(16, 35, 63, 0.14);
}

/* サービス概要 */
.dg-rating-hero {
  padding: 14px 16px 12px;
  background: var(--dg-white);
}

.dg-service-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dg-service-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: transparent;
}

.dg-service-title {
  min-width: 0;
}

.dg-service-title__label {
  margin: 0 0 2px;
  color: var(--dg-gold-deep);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.dg-service-title h2 {
  margin: 0;
  color: var(--dg-navy);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.dg-service-title__sub {
  margin: 3px 0 0;
  color: var(--dg-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

/* 総合評価 */
.dg-rating-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--dg-border);
}

.dg-rating-score__label {
  color: var(--dg-navy);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.dg-rating-score__right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* SVG星 */
.dg-star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
  white-space: nowrap;
}

.dg-star-rating img {
  display: block;
  width: 18px;
  height: 18px;
}

.dg-star-rating--small img {
  width: 15px;
  height: 15px;
}

.dg-score-number {
  color: var(--dg-navy);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  min-width: 38px;
  text-align: right;
}

.dg-rating-lead {
  margin: 12px 0 0;
  color: #444;
  font-size: 13px;
  line-height: 1.72;
}

/* CTA */
.dg-cta-area {
  padding: 0 16px 14px;
  background: var(--dg-white);
}

.dg-cta-area--bottom {
  padding: 14px 16px 18px;
  background: var(--dg-bg);
}

.dg-cta-microcopy {
  margin: 0 0 8px;
  color: var(--dg-gold-deep);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.dg-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 46px;
  padding: 0 14px;

  border-radius: 10px;
  background: linear-gradient(135deg, var(--dg-navy) 0%, var(--dg-navy-2) 100%);
  color: var(--dg-gold-light);

  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;

  border: 2px solid rgba(214, 170, 74, 0.85);
  box-shadow: none;
}

.dg-cta-button:hover,
.dg-cta-button:focus {
  color: var(--dg-gold-light);
  filter: brightness(1.06);
  text-decoration: none;
  outline: none;
  box-shadow: none;
}

/* 汎用カード */
.dg-section-card {
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--dg-white);
  border-top: 1px solid transparent;
}

.dg-section-heading {
  margin: 0 0 10px;
  color: var(--dg-navy);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
}

/* チェック表 */
.dg-check-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.dg-check-row:last-child {
  border-bottom: none;
}

.dg-check-row__label {
  color: #555;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.dg-check-row__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.dg-check-score {
  color: var(--dg-navy);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  min-width: 32px;
  text-align: right;
}

/* 私の評価ポイント */
.dg-evaluation-points {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: 15px 16px 16px;
  background:
    linear-gradient(135deg, rgba(16, 35, 63, 0.98) 0%, rgba(23, 47, 85, 0.98) 100%);
  border: 1px solid rgba(214, 170, 74, 0.7);
  border-left: 5px solid var(--dg-gold);
}

.dg-evaluation-points::before {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(246, 215, 122, 0.12);
  pointer-events: none;
}

.dg-evaluation-points__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--dg-gold-light);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
}

.dg-evaluation-points__label::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--dg-gold-light);
  color: var(--dg-navy);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.dg-evaluation-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dg-evaluation-list li {
  position: relative;
  padding-left: 18px;
  color: var(--dg-white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;
}

.dg-evaluation-list li + li {
  margin-top: 6px;
}

.dg-evaluation-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--dg-gold-light);
}

/* 小画面 */
@media (max-width: 374px) {
  .dg-sticky-banner__main {
    font-size: 13px;
  }

  .dg-sticky-banner__sub {
    font-size: 10px;
  }

  .dg-service-icon {
    width: 42px;
    height: 42px;
  }

  .dg-service-title h2 {
    font-size: 22px;
  }

  .dg-rating-lead,
  .dg-evaluation-list li {
    font-size: 12px;
  }

  .dg-star-rating img {
    width: 16px;
    height: 16px;
  }

  .dg-star-rating--small img {
    width: 14px;
    height: 14px;
  }

  .dg-score-number {
    font-size: 15px;
  }

  .dg-check-score {
    font-size: 11px;
  }

  .dg-cta-microcopy {
    font-size: 12px;
  }
}

/* 複数サービス用 */
.dg-service-block + .dg-service-block {
  margin-top: 14px;
  border-top: 1px solid rgba(16, 35, 63, 0.12);
}

.dg-service-divider {
  margin: 0;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--dg-navy) 0%, var(--dg-navy-2) 100%);
  color: var(--dg-gold-light);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}