/*--------------------------------------------------
  Child-Theme : Hello-Elementor Child   v8.0.0
  2025-06-24  –  最終完成版（タイトル中央揃え・接地調整）
--------------------------------------------------*/

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,800&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

/* ========= 0. 共通ガード ================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ???????????????????????? */
.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;
}

/* ========= 1. 基本変数（PC表示向け） ===================== */
:root {
  --gap: 8px;
  /* 列内カード間ギャップ */
  --bgap: 12px;
  /* 左右ブロック間ギャップ */
}

/* ========= 2. ???????? =========================== */
/* ???????????? */
#site-header {
  text-align: center;
}

.header-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  column-gap: 8px;
  row-gap: 6px;
  margin-bottom: 6px;
}

.site-title {
  width: 100%;
  padding: 4px 8px;
}

.site-title a {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(17px, 4vw, 26px);
  font-weight: 700;
  line-height: 1.15;
  color: #d22f7b;
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

/* ========= 2.5. ????CTA??? ======================== */
.header-actions {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin: 8px auto 12px;
}

.unit-db-button {
  position: relative;
  display: block;
  width: min(92%, 220px);
  min-width: 140px;
  aspect-ratio: 1408 / 768;
  padding: 0;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
  background: #0f2835 url('./images/unit-db-button.png') center / cover no-repeat;
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.unit-db-button::before,
.unit-db-button::after {
  content: none;
}

.unit-db-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  filter: saturate(1.08);
}

.unit-db-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.unit-db-icon {
  display: none;
}

.unit-db-text {
  display: none;
}

.unit-db-title {
  display: none;
}

.unit-db-sub {
  display: none;
}

/* ========= 2.6. Home PayPay AD ==================== */
.home-paypay-ad {
  max-width: 1120px;
  margin: 20px auto 24px;
  padding: 0 12px;
}

.home-paypay-ad__heading {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.home-paypay-ad__heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d7dde5;
}

.home-paypay-ad__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.home-paypay-ad__card {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #ffd2dd;
  background: #fff;
  box-shadow: 0 10px 20px -16px rgba(50, 20, 35, 0.4);
  text-decoration: none;
  color: #212029;
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease;
}

.home-paypay-ad__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px -16px rgba(50, 20, 35, 0.46);
}

.home-paypay-ad__media {
  display: block;
  background: #ff0033;
}

.home-paypay-ad__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.home-paypay-ad__body {
  display: block;
  min-width: 0;
  padding: 8px 8px 10px;
  background: linear-gradient(180deg, #fff7f9 0%, #ffffff 70%);
}

.home-paypay-ad__name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #2a2a2a;
  min-height: 2.6em;
  overflow: hidden;
}

.home-paypay-ad__price {
  display: block;
  margin-top: 6px;
  color: #e00037;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.home-paypay-ad__shipping {
  display: inline-block;
  margin-top: 6px;
  width: fit-content;
  border-radius: 999px;
  background: #ffe7ef;
  color: #cf0032;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  padding: 3px 7px;
}

/* ========= 3. コスト表ナビ =============================== */
@font-face {
  font-family: "Bebas Neue";
  src: local("Bebas Neue"),
    url(https://fonts.gstatic.com/s/bebasneue/v10/JTUSjIg1_i6t8kCHKm459Wlh.woff2) format("woff2");
  font-display: swap;
}

.cost-table {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  width: 100%;
  /* 上の余白を0にしてタイトルと接地させる */
  margin: 0 auto 24px;
}

.cost-table .row {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
  flex-wrap: nowrap;
}

.cost-table .label {
  flex: 0 0 50px;
  height: 38px;
  background: #111;
  color: #fff;
  font-size: 18px;
  line-height: 38px;
  text-align: center;
}

.cost-table a {
  flex: 1 0 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  transition: .2s;
}

.cost-table .row:nth-child(1) a {
  background: #6ec6ff;
  color: #000;
}

.cost-table .row:nth-child(1) a:hover {
  background: #0095d5;
  color: #fff;
}

.cost-table .row:nth-child(2) a {
  background: #5c6bc0;
  color: #fff;
}

.cost-table .row:nth-child(2) a:hover {
  background: #283593;
}

.cost-table a:hover {
  transform: translateY(-2px);
  border-color: #fff;
}

/* ========= 4. コスト帯見出し ============================= */
.cost-heading-row {
  position: relative;
  max-width: 1200px;
  margin: 32px auto 24px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cost-heading-ad-link {
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 1;
  text-decoration: none;
  color: inherit;
}

.cost-heading-ad-image {
  display: block;
  width: 120px;
  height: 60px;
}

.cost-heading-ad-pixel {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── 回線速度ランク比較 広告バー（コストバー同等高さ・長方形プレミアム） ── */
@keyframes rankBarFillS {
  from {
    width: 0;
  }

  to {
    width: 95%;
  }
}

@keyframes rankBarFillC {
  from {
    width: 0;
  }

  to {
    width: 35%;
  }
}

@keyframes rankShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.line-rank-ad {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 8px;
  box-sizing: border-box;
  height: auto;
  width: auto;
  padding: 2px 2px 2px 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #0a1120 0%, #112240 100%);
  border: 1px solid rgba(255, 200, 60, 0.25);
  box-shadow: 0 4px 12px rgba(10, 24, 52, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.line-rank-ad:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 200, 60, 0.6);
  box-shadow: 0 6px 16px rgba(10, 24, 52, 0.6), 0 0 15px rgba(255, 200, 60, 0.15);
}

.line-rank-ad__badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
  flex-shrink: 0;
}

.line-rank-ad__banner {
  display: block;
  height: 32px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.line-rank-ad__row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
}

.line-rank-ad__vs {
  font-size: 9px;
  font-weight: 900;
  font-style: italic;
  color: rgba(255, 255, 255, 0.3);
  padding: 0 2px;
  flex-shrink: 0;
}

.line-rank-ad__label-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.line-rank-ad__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.line-rank-ad__row.is-s .line-rank-ad__rank {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a0f00;
  box-shadow: 0 1px 4px rgba(255, 200, 0, 0.4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.line-rank-ad__row.is-c .line-rank-ad__rank {
  background: linear-gradient(135deg, #64748b, #334155);
  color: #fff;
}

.line-rank-ad__name {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.line-rank-ad__row.is-s .line-rank-ad__name {
  color: #fff;
}

.line-rank-ad__row.is-c .line-rank-ad__name {
  color: rgba(255, 255, 255, 0.4);
  /* "あなたの回線" is long, hide it on tight layout, showing just C + Bar is intuitive enough */
  display: none;
}

.line-rank-ad__bar {
  width: 36px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  flex-shrink: 0;
}

.line-rank-ad__bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
}

.line-rank-ad__bar-fill.is-s-fill {
  width: 95%;
  background: linear-gradient(90deg, #ffc800, #ff8c00);
  background-size: 200% 100%;
  animation: rankBarFillS .8s ease-out both, rankShimmer 2.4s linear .8s infinite;
}

.line-rank-ad__bar-fill.is-c-fill {
  width: 35%;
  background: linear-gradient(90deg, #5a6a80, #3d4d60);
  animation: rankBarFillC .8s ease-out both;
}

.line-rank-ad__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffc800, #ff9500);
  font-size: 11px;
  font-weight: 800;
  color: #1a0f00;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.line-rank-ad:hover .line-rank-ad__cta {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.line-rank-ad__arrow {
  display: inline-block;
  transition: transform .15s ease;
}

.line-rank-ad:hover .line-rank-ad__arrow {
  transform: translateX(3px);
}

.cost-heading {
  width: max-content;
  margin: 32px auto 24px;
  padding: 6px 24px;
  background: #c7effb;
  border: 3px solid #000;
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
}

.cost-heading-row .cost-heading {
  margin: 0 !important;
  width: auto !important;
  display: inline-block !important;
  max-width: none;
  flex: 0 1 auto !important;
  text-align: center;
  white-space: nowrap !important;
}

/* ========= 5. ランク表テーブル =========================== */
.unit-rank-table {
  width: 100%;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0 20px;
}

.unit-rank-table th,
.unit-rank-table td {
  padding: 0;
  border-style: solid;
  border-width: 8px;
}

.unit-rank-table th {
  width: 64px;
  font-size: 2rem;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  border-right: none;
}

.unit-rank-table td {
  border-left: none;
}

/* ──── ランク枠色 ──── */
.unit-rank-table th.rank-S,
.unit-rank-table td.rank-S {
  border-color: #7B1FA2;
  color: #7B1FA2;
}

.unit-rank-table th.rank-A,
.unit-rank-table td.rank-A {
  border-color: #e63946;
  color: #e63946;
}

.unit-rank-table th.rank-B,
.unit-rank-table td.rank-B {
  border-color: #457b9d;
  color: #457b9d;
}

.unit-rank-table th.rank-C,
.unit-rank-table td.rank-C {
  border-color: #2a9d8f;
  color: #2a9d8f;
}

.unit-rank-table th.rank-D,
.unit-rank-table td.rank-D {
  border-color: #8d99ae;
  color: #8d99ae;
}

/* ========= 6. 3ブロック x 複数カードのグリッドレイアウト ========= */
.unit-cards {
  display: grid;
  grid-template-columns: 2fr 3fr 2fr;
  gap: var(--bgap);
  padding: var(--bgap);
  align-items: start;
}

.unit-block {
  display: grid;
  gap: var(--gap);
  min-width: 0;
}

.block-left,
.block-right {
  grid-template-columns: repeat(2, 1fr);
}

.block-center {
  grid-template-columns: repeat(3, 1fr);
}

.unit-card {
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.unit-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.unit-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.unit-name {
  display: none !important;
}

/* ========= 7. ちょっとした演出 =========================== */
.drag-ghost {
  opacity: .4;
}

/* ========= 8. rank-wrapper ============================= */
.rank-wrapper {
  width: 100%;
}

/* ========= 9. 空の列にドロップ先を明示 =================== */
.unit-block.is-empty {
  min-height: 90px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  align-self: stretch;
}

/* ==========================================================
   10. スマホ向けレイアウト最終調整 (768px以下)
   ========================================================== */
@media (max-width: 768px) {

  /* (1) 全体的な間隔を詰める */
  :root {
    --gap: 4px;
    --bgap: 4px;
  }

  /* (2) コスト表の左右の余白をなくし、タイトルに近付ける */
  .cost-table {
    padding-left: 4px;
    padding-right: 4px;
    margin-top: 4px;
    margin-bottom: 0;
  }

  /* (3) コスト見出しを小さく、上下の要素と接地させる */
  .cost-heading {
    margin-top: 16px;
    margin-bottom: 8px;
    padding: 4px 16px;
    font-size: 20px;
    border-width: 2px;
  }

  .cost-heading-row {
    margin-top: 16px;
    margin-bottom: 8px;
    padding: 0 8px;
    gap: 8px;
  }

  .cost-heading-row .cost-heading {
    margin: 0 !important;
    padding: 4px 10px;
    font-size: 18px;
    border-width: 2px;
    width: auto !important;
    display: inline-block !important;
    max-width: none;
    flex: 0 1 auto !important;
    white-space: nowrap !important;
  }

  .line-rank-ad {
    height: auto;
    gap: 4px;
    padding: 0 4px 0 6px;
    border-radius: 5px;
  }

  .line-rank-ad__badge {
    font-size: 8px;
  }

  .line-rank-ad__banner {
    height: 24px;
  }

  .line-rank-ad__label-group {
    gap: 2px;
  }

  .line-rank-ad__row {
    gap: 3px;
  }

  .line-rank-ad__rank {
    width: 14px;
    height: 14px;
    font-size: 9px;
    border-radius: 3px;
  }

  .line-rank-ad__name {
    font-size: 8px;
  }

  .line-rank-ad__bar {
    width: 24px;
    height: 4px;
  }

  .line-rank-ad__vs {
    font-size: 7px;
  }

  .line-rank-ad__cta {
    height: 26px;
    padding: 0 6px;
    font-size: 9px;
    border-radius: 3px;
  }

  .cost-heading-ad-image {
    width: 96px;
    height: 48px;
  }

  /* (4) ランク表の枠線を細くし、ランク間の隙間を詰める */
  .unit-rank-table {
    border-spacing: 0 8px;
  }

  .unit-rank-table th,
  .unit-rank-table td {
    border-width: 4px;
  }

  .unit-rank-table th {
    width: 32px;
    font-size: 1.5rem;
  }

  /* (5) カードエリアの余白を調整 */
  .unit-cards {
    padding: 8px 4px;
  }

  .header-actions {
    margin: 8px auto 10px;
    padding: 0 8px;
  }

  .unit-db-button {
    width: min(84%, 180px);
    min-width: 130px;
    padding: 0;
  }

  .unit-db-icon {
    display: none;
  }

  .home-paypay-ad {
    margin: 14px auto 16px;
    padding: 0 8px;
  }

  .home-paypay-ad__heading {
    margin-bottom: 8px;
    font-size: 11px;
    gap: 8px;
  }

  .home-paypay-ad__grid {
    gap: 6px;
  }

  .home-paypay-ad__card {
    border-radius: 10px;
  }

  .home-paypay-ad__body {
    padding: 6px 6px 7px;
  }

  .home-paypay-ad__name {
    font-size: 10px;
    line-height: 1.3;
    min-height: 2.5em;
  }

  .home-paypay-ad__price {
    margin-top: 4px;
    font-size: 14px;
  }

  .home-paypay-ad__shipping {
    margin-top: 4px;
    font-size: 9px;
    padding: 2px 5px;
  }

}

/* ========= SDカード広告 (Yahoo!フリマ風) ==================== */
.sdcard-ad {
  color-scheme: only light;
  --bg: #fff4f7;
  --bg-accent: #ffe0e8;
  --bg-mint: #ffeccf;
  --ink: #2b1b22;
  --muted: #6f515b;
  --accent: #f72e52;
  --accent-2: #ff8aa0;
  --card: #ffffff;
  --ring: rgba(247, 46, 82, 0.45);
  --shadow: rgba(43, 27, 34, 0.18);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  margin: 28px auto 36px;
  max-width: 1120px;
  padding: 0 12px;
}

.sdcard-ad *,
.sdcard-ad *::before,
.sdcard-ad *::after {
  box-sizing: border-box;
}

.sdcard-ad__frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(30, 26, 22, 0.08);
  background: #fff;
  box-shadow: 0 18px 36px -28px rgba(43, 27, 34, 0.35);
}

.sdcard-ad__label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(43, 27, 34, 0.08);
}

.sdcard-ad__wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 8% 10%, rgba(255, 224, 232, 0.85), transparent 60%),
    radial-gradient(740px 520px at 92% 18%, rgba(255, 236, 207, 0.7), transparent 60%),
    linear-gradient(140deg, var(--bg), #fff1f5 55%, #fff7ef);
}

.sdcard-ad__wrap::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(247, 46, 82, 0.2) 0%, transparent 68%);
  filter: blur(10px);
  z-index: 0;
}

.sdcard-ad__wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0) 45%,
      rgba(255, 255, 255, 0.16) 100%),
    repeating-linear-gradient(45deg,
      rgba(43, 27, 34, 0.025),
      rgba(43, 27, 34, 0.025) 1px,
      transparent 1px,
      transparent 6px);
  pointer-events: none;
  z-index: 0;
}

.sdcard-ad__shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.sdcard-ad .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.sdcard-ad .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(247, 46, 82, 0.12);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

.sdcard-ad .hero h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  margin: 12px 0 12px;
}

.sdcard-ad .hero h2 span {
  display: block;
  font-family: "Zen Kaku Gothic New", "Zen Maru Gothic", sans-serif;
  font-size: clamp(16px, 2.1vw, 22px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.sdcard-ad .hero p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.sdcard-ad .hero-card {
  background: var(--card);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 16px 30px -20px var(--shadow);
  border: 1px solid rgba(30, 26, 22, 0.08);
}

.sdcard-ad .seller-group {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.sdcard-ad .seller-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
}

.sdcard-ad .seller-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sdcard-ad .seller-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(247, 46, 82, 0.18);
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  box-shadow: 0 10px 18px -16px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sdcard-ad .seller-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -18px var(--shadow);
}

.sdcard-ad .seller-link img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #fff;
  object-fit: cover;
}

.sdcard-ad .seller-link span {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sdcard-ad .stats {
  display: grid;
  gap: 12px;
}

.sdcard-ad .stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(247, 46, 82, 0.08);
  font-size: 14px;
  font-weight: 600;
}

.sdcard-ad .stat-value {
  font-family: "Fraunces", serif;
  font-size: 20px;
  color: var(--accent);
}

.sdcard-ad .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.sdcard-ad .card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  background: var(--card);
  overflow: hidden;
  border: 1px solid rgba(30, 26, 22, 0.08);
  box-shadow: 0 18px 36px -26px var(--shadow);
  transform: translateY(6px);
  opacity: 0;
  animation: sdcard-rise 0.6s ease forwards;
  animation-delay: var(--delay, 0s);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sdcard-ad .card:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.sdcard-ad .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -26px var(--shadow);
}

.sdcard-ad .card[data-status="SOLD"] {
  filter: grayscale(0.2);
}

.sdcard-ad .card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.sdcard-ad .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.sdcard-ad .card:hover .card-image {
  transform: scale(1.06);
}

.sdcard-ad .card-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sdcard-ad .card-avatar {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 12px -8px var(--shadow);
  object-fit: cover;
  background: #fff;
}

.sdcard-ad .status-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.sdcard-ad .card[data-status="OPEN"] .status-pill {
  background: rgba(247, 46, 82, 0.9);
  color: #fff;
}

.sdcard-ad .card-body {
  padding: 16px 18px 20px;
  display: grid;
  gap: 10px;
}

.sdcard-ad .card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  min-height: 2.6em;
}

.sdcard-ad .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sdcard-ad .price {
  font-family: "Fraunces", serif;
  font-size: 18px;
  color: var(--accent);
}

.sdcard-ad .cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sdcard-ad .note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .sdcard-ad .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sdcard-ad__shell {
    padding: 24px 18px 32px;
  }

  .sdcard-ad .hero-card {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sdcard-ad .card {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sdcard-ad .card-image,
  .sdcard-ad .seller-link {
    transition: none;
  }
}

@keyframes sdcard-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========= Comments ================================ */
.site-comments-wrap {
  max-width: 1120px;
  margin: 40px auto;
  padding: 20px 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.site-comments {
  font-family: "Zen Kaku Gothic New", "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #1f1d22;
}

.site-comments__title {
  margin: 0 0 16px;
  font-size: 20px;
}

.comment-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.site-comment {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fafafa;
}

.site-comment__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: #6b6b73;
}

.site-comment__author {
  font-weight: 700;
  color: #1f1d22;
}

.site-comment__date {
  font-size: 12px;
}

.site-comment__content {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.site-comment__reply {
  margin-top: 10px;
}

.site-comment__reply a {
  font-size: 12px;
  font-weight: 700;
  color: #d22f7b;
  text-decoration: none;
}

.comment-empty {
  margin: 0 0 24px;
  color: #6b6b73;
  font-size: 14px;
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-form label {
  font-size: 12px;
  font-weight: 700;
  color: #6b6b73;
  display: block;
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form .form-submit {
  margin: 0;
}

.comment-form .submit {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  background: #d22f7b;
  color: #fff;
  cursor: pointer;
}

.comment-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 12px;
}

.comment-navigation a {
  color: #d22f7b;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 640px) {
  .site-comments-wrap {
    margin: 28px auto;
    padding: 16px 10px;
  }
}
