:root {
  --primary: #0098fe;
  --secondary: #0284c7;
  --accent: #ff6600;
  --success: #10b981;
  --warning: #f59e0b;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

.container {
  margin: 0 auto;
  padding: 0 20px;
}

section {
  max-width: 1200px;
  margin: auto;
  margin-bottom: 40px;
}

/* ヒーローセクション */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff20" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* 統計カード */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #666;
}

/* 最高買取額ランキング */
.ranking-section {
  background: white;
  padding: 60px 0;
/*  margin-top: -30px; */
  border-radius: 30px 30px 0 0;
  position: relative;
  z-index: 2;
}

.ranking-header {
  text-align: center;
  margin-bottom: 40px;
}

.ranking-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.ranking-subtitle {
  color: #666;
  font-size: 16px;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.ranking-card {
  background: linear-gradient(135deg, #f6f8fb 0%, #fff 100%);
  border-radius: 16px;
  padding: 25px;
  position: relative;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.ranking-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.ranking-medal {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff0000, #ff6600, #ffd700);
    background-size: 200% 200%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff5d1;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6),
                 0 0 15px rgba(255, 80, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6),
                0 0 30px rgba(255, 140, 0, 0.8);
    animation: flameMove 3s ease-in-out infinite;
    border: 3px double #ffd700; /* 中華風金縁 */
}

@keyframes flameMove {
    0% {
        background-position: 0% 50%;
        transform: rotate(0deg) scale(1);
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.6),
                    0 0 30px rgba(255, 140, 0, 0.8);
    }
    50% {
        background-position: 100% 50%;
        transform: rotate(3deg) scale(1.05);
        box-shadow: 0 0 25px rgba(255, 80, 0, 0.8),
                    0 0 45px rgba(255, 180, 0, 0.9);
    }
    100% {
        background-position: 0% 50%;
        transform: rotate(0deg) scale(1);
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.6),
                    0 0 30px rgba(255, 140, 0, 0.8);
    }
}

.ranking-content {
  display: flex;
  gap: 20px;
  align-items: center;
}

.ranking-image {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ranking-info {
  flex: 1;
}

.ranking-category {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 8px;
}

.ranking-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.ranking-price {
  font-size: 32px;
  color: #ff4444;
  line-height: normal;
}

.ranking-count {
  font-size: 14px;
  color: #666;
}

/* タブセクション */
.tabs-section {
  background: #f8f9fa;
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.section-desc {
  color: #666;
  font-size: 16px;
}

/* タブボタン */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* タブコンテンツ */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 買取事例カード */
.jirei-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.jirei-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.jirei-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.jirei-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
}

.jirei-badge.new {
  background: var(--warning);
}

.jirei-badge.popular {
  background: var(--success);
}

.jirei-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f0f0f0;
}

.jirei-content {
  padding: 20px;
}

.jirei-category {
  display: inline-block;
  background: var(--light-gray);
  color: #666;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 10px;
}

.jirei-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.4;
}

.jirei-manufacturer {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.jirei-price {
  font-size: 28px;
  font-weight: bold;
  color: #ff4444;
  margin-bottom: 5px;
}

.jirei-price small {
  font-size: 14px;
  color: #666;
}

.jirei-count {
  font-size: 14px;
  color: #666;
}

/* もっと見るボタン */
.more-button-container {
  text-align: center;
  margin-top: 30px;
}

.more-button {
  padding: 14px 32px;
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.more-button:hover {
  background: var(--primary);
  color: white;
}

/* お悩み別セクション */
.concerns-section {
  background: white;
  padding: 60px 0;
}

.concern-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.concern-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.concern-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.concern-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.concern-icon {
  font-size: 48px;
}

.concern-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.concern-features {
  list-style: none;
  margin-bottom: 20px;
}

.concern-features li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: #333;
}

.concern-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}



/* CTAセクション */
.cta-section {
  background: /*linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);*/
  linear-gradient(135deg, #ff6b35 0%, #ff8e53 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.cta-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.cta-desc {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: white;
/*  color: var(--primary);*/
color: #ff6b35;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
/*  color: #333;*/
color: #ff6b35;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
/*  color: var(--primary);*/
color: #ff6b35;
}

/* フローティングボタン */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(255, 102, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 30px rgba(255, 102, 0, 0.4);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-value {
    font-size: 24px;
  }

  .section-title {
    font-size: 24px;
  }

  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .jirei-grid {
    grid-template-columns: 1fr;
  }

  .concern-cards {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 28px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 16px;
  }

  .floating-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* アニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

#main-container>section.request-section>div>div.section-header>h2 {
  -webkit-text-fill-color: unset !important;
}