:root {
  --hero-h: clamp(50px, 100svh, 50px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px; /* 上部に少し余白 */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", sans-serif;
  background: #f5f5f5;
/*  padding-top: var(--hero-h);*/
}

/* ヒーローセクション */
.hero-section {
  width: 100%;
  padding: 0 20px;
/*  position: fixed;*/
  position: relative;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
/*  height: var(--hero-h);*/
  height: 500px;
  display: grid;
  place-items: center;
/*  background: linear-gradient(135deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .15));*/
}

.hero-image {
  width: 100%;
  /* height: 770px; ←削除 */
  margin: 0 auto;
   /* background: url(https://www.omocya-kaitori.jp/newitem5/wp-content/uploads/2025/04/bg_l.png?v=1757219250) center 70%;*/
  background-size: cover;
  position: absolute;
  inset: 0;
  z-index: -1;
}

#footerimage {
    display: block;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    height: auto;
}

/* コンテナ */
.selector-container {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

/* モード切替タブ */
.mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 12px
}

.mode-tab {
  flex: 1;
  padding: 14px 18px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  transition: .3s;
  text-align: center
}

.mode-tab:hover {
  background: rgba(255, 255, 255, .5)
}

.mode-tab.active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  font-size: 1.3rem;
}

.mode-indicator {
  display: inline-block;
  font-size: 12px;
  background: #10b981;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 4px
}

/* フィルター */
.filter-section {
  margin-bottom: 32px
}

.filter-title {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 12px;
  font-weight: 600
}

.filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap
}

.filter-btn {
/*  padding: 14px 26px;
  border: 2px solid #e5e7eb;
  background: #fff;
  transition: .3s; */
  padding: 14px 20px;
  border: 2px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  transition: all 0.2s ease;
  
  border-radius: 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  flex-shrink: 0
}

.filter-btn>span {
  display: block;
}

.filter-btn:hover {
/*  border-color: #2563eb;
  background: #f0f9ff; */
  border-color: #9ca3af;
  background: #f3f4f6;
  transform: translateY(-1px);
}

.filter-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb
}

.filter-btn[data-filter="all"] {
  margin-left: auto;
  padding: 14px 20px;
}

.filter-description {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 400;
  margin-top: 2px
}

.filter-btn.active .filter-description {
  color: rgba(255, 255, 255, .9)
}

/* 宅配買取ボックス */
.express-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  max-width: 100%
}

.express-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px
}

.express-icon {
  font-size: 32px
}

.express-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #92400e
}

.express-badge {
  background: #dc2626;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-left: auto
}

.express-description {
  color: #92400e;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7
}

.express-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.btn-express {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: .3s
}

.btn-express:hover {
  background: #d97706;
  transform: translateY(-2px)
}

.btn-express-outline {
  background: #fff;
  color: #f59e0b;
  border: 2px solid #f59e0b
}

.btn-express-outline:hover {
  background: #fef3c7
}

/* 条件注記 */
.express-conditions {
  background: #fff;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 14px;
  margin-top: 16px
}

.express-conditions-title {
  font-size: 14px;
  color: #92400e;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px
}

.express-conditions-text {
  font-size: 13px;
  color: #78350f;
  line-height: 1.7
}

.express-conditions-text ul {
  margin-left: 16px;
  margin-top: 4px
}

.express-conditions-text li {
  margin-bottom: 2px
}

/* 査定方法カード */
.methods-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px
}

.method-item {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: .3s;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  background: #fff
}

.method-item:hover {
  border-color: #2563eb;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .1)
}

.method-item.highlighted {
  border-color: #10b981;
  background: #f0fdf4;
  border-width: 3px
}

.method-icon {
  font-size: 32px;
  width: 60px;
  text-align: center;
  flex-shrink: 0
}

.method-content {
  flex: 1
}

.method-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px
}

.method-time {
  display: inline-block;
  background: #10b981;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 13px;
  margin-left: 8px
}

.method-description {
  color: #6b7280;
  font-size: 15px;
  margin-top: 6px;
  line-height: 1.6
}

.method-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap
}

.tag {
  background: #f3f4f6;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #4b5563;
  font-weight: 500
}

.tag.match {
  background: #dbeafe;
  color: #1e40af;
  font-weight: 600
}

/* タグ色 */
.tag.tag-consult {
  background: #dcfce7;
  color: #166534
}

.tag.tag-easy {
  background: #fef3c7;
  color: #92400e
}

.tag.tag-sample {
  background: #fce7f3;
  color: #9f1239
}

.tag.tag-detail {
  background: #e0e7ff;
  color: #3730a3
}

.tag.tag-save {
  background: #f3e8ff;
  color: #6b21a8
}

.tag.tag-ai {
  background: #cffafe;
  color: #155e75
}

.tag.tag-bulk {
  background: #fed7aa;
  color: #9a3412
}

.tag.tag-business {
  background: #e5e7eb;
  color: #374151
}

/* 推奨ラベル */
.recommended-label {
  position: absolute;
  top: -10px;
  right: 16px;
  background: #f59e0b;
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700
}

/* 選択ボタン */
.select-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: .3s
}

.select-btn:hover {
  background: #1d4ed8
}

/* ヘルプ */
.help-box {
  background: #f0f9ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 18px;
  margin-top: 24px
}

.help-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 10px
}

.help-text {
  color: #1e40af;
  font-size: 15px;
  line-height: 1.7
}

/* サンプル査定プロモ */
.sample-promo {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-radius: 12px;
  padding: 24px;
  margin-top: 36px;
  text-align: center;
  max-width: 100%;
  margin-bottom: 36px;
}

.sample-promo-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #075985;
  margin-bottom: 10px
}

.sample-promo-text {
  font-size: 16px;
  color: #0c4a6e;
  margin-bottom: 18px;
  line-height: 1.7
}

.sample-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 18px 0
}

.flow-step {
  background: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #0284c7
}

.flow-arrow {
  color: #0284c7;
  font-size: 20px
}

.content-section {
  display: none
}

.content-section.active {
  display: block
}

/* 念のため：宅配買取モードも幅を固定 */
#expressMode {
  max-width: 900px;
  margin: 0 auto
}

@media (max-width:640px) {
  :root {
    --hero-h: 180px;
  }

  .hero-image {
    background-image: url('https://www.omocya-kaitori.jp/newitem5/wp-content/uploads/2025/04/bg_s.png?v=1757219250');
    background-position: center 70%;
  }

  .mode-tabs {
    flex-direction: column
  }

  .filter-buttons {
    flex-direction: column;
    flex-wrap: wrap
  }

  .filter-btn {
    width: 100%
  }

  .filter-btn[data-filter="all"] {
    margin-left: 0
  }

  .method-item {
    flex-direction: column;
    text-align: center
  }

  .method-icon {
    width: 100%
  }

  .sample-flow {
    flex-direction: column;
    gap: 8px
  }

  .flow-arrow {
    transform: rotate(90deg)
  }
  
  .selector-container {
    margin: auto;
    border-radius: unset;
  }
}