/* CSS変数定義 - キャンペーンページのカラーを反映 */
:root {
  --primary: #0098fe;
  --secondary: #00c300;
  --accent: #ff6b35;
  --jet: #1a1a1a;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border-radius: 16px;
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  --gradient-primary: linear-gradient(104deg, #fc5c6c 15%, #86f 51%, #00c2da 87%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--jet);
  line-height: 1.6;
  background: #f9fafb;
}

/* ヒーローセクション - キャンペーンページ風 */
.hero {
  background: var(--gradient-hero);
  padding: 80px 20px 60px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::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="%23ffffff22" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,154.7C672,160,768,192,864,197.3C960,203,1056,181,1152,165.3C1248,149,1344,139,1392,133.3L1440,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;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  padding: 40px 50px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  color: #333;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* 統計情報 - キャンペーンページスタイル */
.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.stat {
  background: white;
  color: var(--jet);
  padding: 20px 30px;
  border-radius: 12px;
  min-width: 150px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--gray);
  margin-top: 5px;
}

/* コンテナ */
/* .container { */
#taisho-wrapp {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

/* かんたん買取けんさく - ヒーローの直下に配置 */
.search-section {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  margin: -40px auto 40px;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  z-index: 10;
}

.search-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--jet);
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

/* AI回答表示エリア */
.ai-response-area {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  min-height: 150px;
  max-height: 400px;
  overflow-y: auto;
  margin: 24px auto;
  padding: 20px;
  position: relative;
  max-width: 700px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  color: #9ca3af;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.95rem;
  margin: 0;
}

.ai-message {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.message-content {
  flex: 1;
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.message-content p {
  margin: 0 0 12px 0;
  color: var(--jet);
  line-height: 1.6;
}

.action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-detail,
.btn-assessment {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-detail {
  background: var(--light-gray);
  color: var(--jet);
}

.btn-detail:hover {
  background: #d1d5db;
}

.btn-assessment {
  background: var(--primary);
  color: white;
}

.btn-assessment:hover {
  background: #0077cc;
  transform: translateY(-2px);
}

/* 検索ボックス */
.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 16px 120px 16px 20px;
  font-size: 1.1rem;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,152,254,0.1);
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.search-btn:hover {
  background: #0077cc;
}

.input-counter {
  text-align: right;
  max-width: 600px;
  margin: 8px auto 0;
  font-size: 0.85rem;
  color: var(--gray);
}

.search-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.suggest-chip {
  padding: 6px 14px;
  background: var(--light-gray);
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.suggest-chip:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* カテゴリーカード - キャンペーンページスタイル */
.campaign-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.campaign-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}

.campaign-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 1;
}

.card-badge.new-badge {
  background: #10b981;
}

.card-image {
/*  height: 200px; */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
/*  background: linear-gradient(135deg, #fff 0%, #333 100%);*/
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.card-content {
  padding: 24px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--jet);
}

.card-benefit {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.card-conditions {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}

.card-conditions li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.95rem;
  position: relative;
  padding-left: 24px;
}

.card-conditions li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.card-conditions li:last-child {
  border-bottom: none;
}

.card-notice {
    font-size: 0.9rem;
    color: #003D66; /* 暗めの文字色 */
    background: #E6F6FF; /* 薄い青背景 */
    border-left: 4px solid #0098FE; /* ブランド青で強調 */
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 500;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-btn {
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.card-btn:hover {
  background: #0077cc;
  transform: translateX(4px);
}


/* その他のカテゴリータグセクション */
.category-tags-section {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 40px;
}

.category-tags-section h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--jet);
}

/* タグ一覧のレイアウト */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* 共通タグスタイル（背景2層＋グラデーション枠） */
.category-tag {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--light-gray), var(--light-gray)) padding-box,
    linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
}

/* hover時：内側だけprimaryで塗りつぶし */
.category-tag:hover {
  background:
    linear-gradient(var(--primary), var(--primary)) padding-box,
    linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
  color: var(--white);
  transform: translateY(-3px);
}


/* メーカーカルーセル - キャンペーンページ風 */
.carousel-section {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  margin-bottom: 40px;
}

.carousel-section h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--jet);
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.carousel-track {
  display: flex;
  gap: 20px;
  padding: 20px;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.carousel-item {
  flex: 0 0 250px;
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.maker-logo {
  width: 100%;
  height: 100px;
  background: var(--light-gray);
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gray);
}

.maker-name {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.maker-category {
  font-size: 0.9rem;
  color: var(--gray);
}

/* 注意喚起セクション */
.important-notice {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 40px;
  text-align: center;
}

.important-notice h3 {
  color: #856404;
  margin-bottom: 16px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.notice-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #ffc107;
  color: #212529;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.notice-btn:hover {
  background: #e0a800;
  transform: translateY(-2px);
}

/* CTA セクション - キャンペーンページスタイル */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #0077cc 100%);
  border-radius: var(--border-radius);
  padding: 60px 40px;
  text-align: center;
  color: var(--white);
  margin-bottom: 40px;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  border: 2px solid var(--white);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


/* レスポンシブ */
@media (max-width: 768px) {
  .campaign-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .stats {
    gap: 20px;
  }
  
  .tabs {
    flex-direction: column;
  }
  
  .tab {
    width: 100%;
    justify-content: center;
  }
  
  .ai-response-area {
    max-height: 300px;
  }
  
  .search-input {
    padding-right: 100px;
    font-size: 1rem;
  }
  
  .search-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-detail,
  .btn-assessment {
    width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn-white {
    width: 100%;
  }
}