:root {
  --accent: #e82598;
  --accent-dark: #c91d80;
  --accent-light: #f9d4eb;
  --accent-soft: #fceef7;
  --accent-gradient: linear-gradient(135deg, #e82598 0%, #ff6bb3 50%, #ffb3d9 100%);
  --text-primary: #2d2d2d;
  --text-secondary: #555;
  --text-light: #888;
  --bg-white: #ffffff;
  --bg-soft: #fafafa;
  --bg-gray: #f5f5f5;
  --border-soft: #eee;
  --border-accent: #f0d4e8;
  --shadow-soft: 0 4px 20px rgba(232, 37, 152, 0.08);
  --shadow-hover: 0 8px 30px rgba(232, 37, 152, 0.15);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --star-color: #ffc107;
  --amazon-color: #ff9900;
  --rakuten-color: #bf0000;
  --yahoo-color: #ff0033;
}

/* ページ全体のベース */
.gadget-page {
  /* background: var(--bg-soft); */
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  font-family: 'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif;
  margin-top: 70px;
  padding-bottom: 40px;
}

.gadget-page a {
  color: var(--accent);
  text-decoration: none;
}

.gadget-page a:hover {
  text-decoration: underline;
}

/* ========== Breadcrumb ========== */

.gadget-page .gadget-breadcrumb {
  background: var(--bg-white);
  /* border-bottom: 1px solid var(--border-soft); */
  padding: 10px 0;
  margin-bottom: 10px;
}

.gadget-page .gadget-breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gadget-page .gadget-breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

.gadget-page .gadget-breadcrumb-list a {
  color: var(--text-secondary);
}

.gadget-page .gadget-breadcrumb-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

.gadget-page .gadget-breadcrumb-separator {
  color: var(--text-light);
}

/* ========== Layout ========== */

.gadget-page .page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}

.gadget-page .main-content {
  min-width: 0;
}

.gadget-page .sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========== Section Common ========== */

.gadget-page .content-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.gadget-page .section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent-soft);
}

.gadget-page .section-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: #fff;
}

.gadget-page .section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gadget-page .section-title-en {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========== Hero Section ========== */

.gadget-page .hero-section {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--accent-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.gadget-page .hero-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  pointer-events: none;
}

.gadget-page .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gradient);
  color: white;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.gadget-page .hero-brand {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.gadget-page .hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.gadget-page .hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.gadget-page .hero-content {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: flex-start;
}

.gadget-page .hero-image-wrapper {
  position: relative;
}

.gadget-page .hero-image-bg {
  position: absolute;
  inset: 6px;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  transform: rotate(-2deg);
}

.gadget-page .hero-image-container {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 2px solid var(--accent-light);
}

.gadget-page .hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.gadget-page .hero-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3rem;
}

.gadget-page .image-sparkle {
  position: absolute;
  font-size: 1rem;
  animation: gadget-sparkle 2s ease-in-out infinite;
}

.gadget-page .sparkle-1 { top: 5px; left: 5px; animation-delay: 0s; }
.gadget-page .sparkle-2 { top: 10px; right: 10px; animation-delay: 0.5s; }
.gadget-page .sparkle-3 { bottom: 10px; left: 15px; animation-delay: 1s; }

@keyframes gadget-sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.gadget-page .hero-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gadget-page .hero-quick-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gadget-page .quick-spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-white);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border: 1px solid var(--border-soft);
}

.gadget-page .quick-spec-tag .icon {
  font-size: 1rem;
}

/* ========== CTA Buttons ========== */

.gadget-page .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gadget-page .cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.gadget-page .cta-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.gadget-page .btn-amazon {
  background: var(--amazon-color);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.gadget-page .btn-amazon:hover {
  background: #e68a00;
  box-shadow: 0 6px 16px rgba(255, 153, 0, 0.4);
}

.gadget-page .btn-rakuten {
  background: var(--rakuten-color);
  color: white;
  box-shadow: 0 4px 12px rgba(191, 0, 0, 0.3);
}

.gadget-page .btn-rakuten:hover {
  background: #a30000;
  box-shadow: 0 6px 16px rgba(191, 0, 0, 0.4);
}

.gadget-page .btn-yahoo {
  background: var(--yahoo-color);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 0, 51, 0.3);
}

.gadget-page .btn-yahoo:hover {
  background: #e6002e;
  box-shadow: 0 6px 16px rgba(255, 0, 51, 0.4);
}

.gadget-page .btn-icon {
  font-size: 1.1rem;
}

/* ========== Overview ========== */

.gadget-page .overview-text {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-secondary);
}

.gadget-page .overview-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.gadget-page .highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.gadget-page .highlight-icon {
  font-size: 1.1rem;
}

/* ========== Specs Table ========== */

.gadget-page .specs-table-wrapper {
  border: 2px solid var(--accent-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gadget-page .specs-category-header {
  background: var(--accent-soft);
  padding: 12px 18px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-accent);
}

.gadget-page .specs-table {
  width: 100%;
}

.gadget-page .specs-row {
  display: flex;
  border-bottom: 1px solid var(--border-soft);
}

.gadget-page .specs-row:last-child {
  border-bottom: none;
}

.gadget-page .specs-row:hover {
  background: var(--accent-soft);
}

.gadget-page .specs-label {
  flex: 0 0 140px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-soft);
}

.gadget-page .specs-value {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.gadget-page .specs-highlight {
  color: var(--accent);
  font-weight: 700;
}

.gadget-page .specs-tag {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.gadget-page .specs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gadget-page .specs-tag-outline {
  display: inline-block;
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1.5px solid var(--accent);
}



    /* ========== Rating Section ========== */
    .rating-card {
      background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-white) 100%);
      border: 2px solid var(--accent-light);
      border-radius: var(--radius-lg);
      padding: 28px;
    }

    .rating-overall {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-bottom: 24px;
      padding-bottom: 20px;
      border-bottom: 2px dashed var(--border-accent);
    }

    .rating-score-big {
      text-align: center;
    }

    .score-number {
      font-size: 3rem;
      font-weight: 900;
      color: var(--accent);
      line-height: 1;
    }

    .score-max {
      font-size: 1rem;
      color: var(--text-light);
    }

    .rating-stars {
      display: flex;
      gap: 4px;
      margin-top: 6px;
    }

    .star {
      color: var(--star-color);
      font-size: 1.2rem;
    }

    .star.empty {
      color: #ddd;
    }

    .rating-label {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text-primary);
    }

    .rating-sublabel {
      font-size: 0.8rem;
      color: var(--text-light);
    }

    .rating-details {
      display: grid;
      gap: 14px;
    }

    .rating-item {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .rating-item-label {
      flex: 0 0 100px;
      font-size: 0.85rem;
      color: var(--text-secondary);
    }

    .rating-bar-container {
      flex: 1;
      height: 10px;
      background: var(--bg-gray);
      border-radius: 5px;
      overflow: hidden;
    }

    .rating-bar {
      height: 100%;
      background: var(--accent-gradient);
      border-radius: 5px;
      transition: width 0.5s ease;
    }

    .rating-item-score {
      flex: 0 0 40px;
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--accent);
      text-align: right;
    }

    /* ========== Ranking Badges ========== */
    .ranking-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 20px;
      padding-top: 20px;
      border-top: 2px dashed var(--border-accent);
    }

    .ranking-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--bg-white);
      padding: 10px 16px;
      border-radius: var(--radius-md);
      font-size: 0.85rem;
      border: 1px solid var(--border-soft);
      transition: all 0.2s;
    }

    .ranking-badge:hover {
      border-color: var(--accent-light);
      box-shadow: var(--shadow-soft);
    }

    .ranking-badge .rank {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 26px;
      background: var(--accent-gradient);
      color: white;
      font-weight: 700;
      font-size: 0.8rem;
      border-radius: 50%;
    }

    .ranking-badge .rank.gold {
      background: linear-gradient(135deg, #ffd700, #ffb800);
    }

    .ranking-badge .rank.silver {
      background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    }

    .ranking-badge .rank.bronze {
      background: linear-gradient(135deg, #cd7f32, #b87333);
    }


/* ========== Pros & Cons ========== */

.gadget-page .pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.gadget-page .pros-card,
.gadget-page .cons-card {
  padding: 20px;
  border-radius: var(--radius-md);
}

.gadget-page .pros-card {
  background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
  border: 2px solid #c8e6c9;
}

.gadget-page .cons-card {
  background: linear-gradient(135deg, #fff3e0 0%, #fff 100%);
  border: 2px solid #ffe0b2;
}

.gadget-page .card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px dashed;
}

.gadget-page .pros-card .card-header {
  border-color: #a5d6a7;
}

.gadget-page .cons-card .card-header {
  border-color: #ffcc80;
}

.gadget-page .card-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.gadget-page .pros-card .card-icon {
  background: #c8e6c9;
}

.gadget-page .cons-card .card-icon {
  background: #ffe0b2;
}

.gadget-page .card-title {
  font-size: 1rem;
  font-weight: 700;
}

.gadget-page .pros-card .card-title {
  color: #388e3c;
}

.gadget-page .cons-card .card-title {
  color: #f57c00;
}

.gadget-page .point-list {
  list-style: none;
}

.gadget-page .point-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
}

.gadget-page .point-item:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.gadget-page .point-bullet {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.gadget-page .pros-card .point-bullet {
  background: #4caf50;
  color: white;
}

.gadget-page .cons-card .point-bullet {
  background: #ff9800;
  color: white;
}

/* ========== Reviews ========== */

.gadget-page .reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gadget-page .reviews-list > * {
  /* Product Review Manager の出力にも軽く余白を */
  margin-bottom: 0;
}

/* ========== Included Items ========== */

.gadget-page .included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.gadget-page .included-item {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.gadget-page .included-item:hover {
  border-color: var(--accent-light);
  background: var(--accent-soft);
}

.gadget-page .included-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

/* ========== Summary ========== */

.gadget-page .summary-card {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-white) 100%);
  border: 2px solid var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.gadget-page .summary-text {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.gadget-page .summary-highlight {
  background: var(--accent-soft);
  padding: 16px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ========== Final CTA ========== */

.gadget-page .final-cta {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #fff 50%, var(--accent-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.gadget-page .final-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.gadget-page .final-cta-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.gadget-page .final-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gadget-page .final-cta-buttons .cta-btn {
  min-width: 200px;
}

/* ========== Product Meta ========== */

.gadget-page .product-meta {
  padding: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 20px;
}

.gadget-page .meta-item {
  display: flex;
  gap: 6px;
}

.gadget-page .meta-value {
  color: var(--text-secondary);
}

/* ========== Sidebar Widgets ========== */

.gadget-page .sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.gadget-page .widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-soft);
}

.gadget-page .widget-title .icon {
  font-size: 1.1rem;
}

/* TOC */

.gadget-page .toc-list {
  list-style: none;
}

.gadget-page .toc-item {
  margin-bottom: 8px;
}

.gadget-page .toc-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.gadget-page .toc-item a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.gadget-page .toc-number {
  width: 22px;
  height: 22px;
  background: var(--accent-gradient);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Related */

.gadget-page .related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gadget-page .related-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  text-decoration: none;
}

.gadget-page .related-item:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.gadget-page .related-thumb {
  width: 50px;
  height: 50px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.gadget-page .related-content {
  flex: 1;
  min-width: 0;
}

.gadget-page .related-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gadget-page .related-category {
  font-size: 0.7rem;
  color: var(--accent);
  margin-top: 4px;
}

/* ========== Responsive ========== */

@media (max-width: 1024px) {
  .gadget-page .page-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .gadget-page .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .gadget-page .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .gadget-page .hero-image-wrapper {
    max-width: 260px;
    margin: 0 auto 10px;
  }

  .gadget-page .content-section {
    padding: 20px 16px;
  }

  .gadget-page .specs-label {
    flex: 0 0 110px;
    padding: 10px 12px;
  }

  .gadget-page .specs-value {
    padding: 10px 12px;
  }

  .gadget-page .pros-cons-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gadget-page .final-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .gadget-page .final-cta-buttons .cta-btn {
    width: 100%;
    max-width: 280px;
  }
}
