:root {
  /* ユーザー定義の新カラーシステム */
  --primary: #1c4e91; /* 深いスレート（信頼性・鑑定士のプロ感） */
  --primary-light: #334155; /* 明るめのスレート */
  --primary-dark: #195377; /* より深いスレート */
  --accent: #11d9d9; /* ターコイズシアン（価値・未来感・ワクワク感） */
  --accent-red: #ef4444; /* レッド（キャンペーン・高額買取アピール） */
  --bg-main: #f8fafc; /* クリーンな背景グレー */
  --bg-card: #ffffff; /* カード用ホワイト */
  --text-main: #0f172a; /* メインテキスト */
  --text-muted: #64748b; /* サブテキスト */
  --border-color: #e2e8f0; /* 線の境界色 */
  --success-green: #10b981; /* LINEなどの安全なグリーン */
  --btn-shadow: 10px 10px 0px var(--primary-light);
  --btn-bgcolor: #e6bf0f;
  /* デザインシステム値 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
}

/* 基本リセット */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 共通ユーティリティ */
.container {
  margin: 5rem auto;
  width: 100%;
  max-width: var(--container-max);
  padding: 0 1.5rem;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

.section-sub {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-main-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

/* プレミアムボタン */
.btn,
.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 0.8rem 2.2rem;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  border: 4px solid var(--primary-light);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-header {
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 0.5rem 2.2rem;
  font-weight: 800;
  border: 4px solid var(--primary-light);
  border-radius: var(--radius-lg);
  background-color: var(--success-green);
  color: var(--bg-main);
  cursor: pointer;
  text-align: center;
}

.btn-accent {
  background-color: var(--btn-bgcolor);
  color: var(--primary-dark);
}

.btn-accent:hover {
  background-color: #fffd6f;
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px;
}

.btn-center {
  display: block;
  max-width: 500px;
  margin: auto;
  margin-top: 5%;
  background-color: var(--btn-bgcolor);
  color: var(--primary-dark);
}

.btn-center:hover {
  background-color: #fffd6f;
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(28, 78, 145, 0.3);
}

.btn-line {
  background-color: var(--success-green);
  color: #ffffff;
  gap: 0.5rem;
  padding: 1.25rem 2rem;
}

.btn-line:hover {
  background-color: #0d9f6e;
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px;
}

.hidden {
  display: none;
}

/* ■■■■■■■■■■  ヘッダー  ■■■■■■■■■■ */
#header-template {
  position: sticky;
  top: 0;
  z-index: 100;
}

header {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  height: 4.5rem;
}

/* 🌟 追加：右側にまとめたグループのレイアウト */
.header-right {
  display: flex;
  align-items: center;
  gap: 2rem; /* メニューと「簡単査定」ボタンの間の隙間はお好みで調整してください */
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(17, 217, 217, 0.2);
}

.serviceLogo {
  width: 55px;
  height: 40px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-light);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.header-cta .btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
}

/* ■■■■■■■■■■  📱 スマホ用ハンバーガーボタン  ■■■■■■■■■■ */
.hamburger-btn {
  display: none; /* デスクトップでは非表示 */
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}

/* 三本線から「X」印への変化アニメーション */
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #ffffff;
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #ffffff;
}

/* 📱 スライドイン式サイドメニュー本体 */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%; /* 初期状態は画面外（右側） */
  width: 280px;
  height: 100vh;
  background-color: var(--primary-dark);
  color: #ffffff;
  z-index: 1000;
  padding: 90px 2rem 2rem 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* 吸い付くような動き */
}

.mobile-drawer.active {
  right: 0; /* 画面内にスライドイン */
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

/* サイドメニュー表示時の背景遮光幕（オーバーレイ） */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px); /* 背景をボカすモダンなデザイン */
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawerBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 0.7rem 2.2rem;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  border: 4px solid var(--primary-light);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.drawerBtn-accent {
  background-color: var(--accent);
  color: var(--primary-dark);
}

/* ヒーローエリアのスタイル */
.hero-static .sp {
  display: none;
}

.section-title-center h2 {
  display: inline-block;
  margin: 2rem 0;
  padding: 2% 4%;
  color: #ffffff;
  border: 4px solid var(--primary-light);
  box-shadow: var(--btn-shadow);
  border-radius: 10px;
  background-color: var(--accent);
}

/* ■■■■■■■■■■  ニュースカード型スライドのスタイル  ■■■■■■■■■■ */
/* Swiper全体の設定 */
.feature-carousel-section {
  margin: 2rem 0;
}

.mySwiper {
  padding: 5px 0; /* 上下の余白（シャドウ切れ防止） */
  overflow: visible; /* 大事！はみ出しを許可する */
}

/* ページネーションとカードの間にしっかり余白を空ける */
.swiper-pagination {
  position: relative !important; /* 絶対配置を解除してレイアウトに組み込む */
  margin-top: 25px !important; /* カードとの距離を広げる */
}

@media (min-width: 768px) {
  .swiper-slide {
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
    opacity: 0.6; /* 非選択のカードを少し薄くする */
    transform: scale(0.95); /* 少し縮める */
  }

  /* 🌟 パソコンサイズのときだけ選ばれているカードを強調 */
  .swiper-slide.swiper-slide-active {
    opacity: 1;
    transform: scale(1.1); /* 等倍に戻す */
  }
}

/* カードのスタイル */
.feature-card-slide {
  width: 85%; /* 必要に応じて調整 */
  transition: transform 0.3s ease;
}

.news-content {
  padding: 5% 5% 10% 5%;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.news-content:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

/* 画像の角丸とレイアウト */
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.news-content h3 {
  color: var(--primary);
}

@media (min-width: 768px) {
  .-img img {
    height: 200px;
    object-fit: cover;
    display: block;
  }
}

/* ■■■■■■■■■■ イベント　セクション ■■■■■■■■■■ */

.campaign-card {
  margin: auto;
  padding: 5%;
  background: var(--bg-card);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column; /* スマホでは縦並び */
}

/* 画像をカード幅いっぱいに大きく配置 */
.campaign-img {
  width: 100%;
}

.campaign-img img {
  border-radius: 15px;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .campaign-img img {
    height: auto;
    object-fit: cover;
    display: block;
  }
}

.campaign-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1; /* 残りの幅を埋める */
}

@media (min-width: 768px) {
  /* PCでは画像とテキストエリアを横並びにする */
  .campaign-card {
    flex-direction: row; /* ★ ここで画像と中身を横並びにする */
    align-items: center;
    width: 100%; /* 必要に応じて調整 */
    gap: 2rem;
  }

  .campaign-img {
    width: 60%;
  }

  .campaign-body {
    width: 50%; /* PCでのテキストの幅 */
    padding: 1rem;
  }

  .campaign-body-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.campaign-label {
  margin: 1rem 0;
  padding: 5px;
  color: var(--bg-card);
  background-color: var(--accent-red);
}

.campaign-title {
  color: var(--accent-red);
  font-size: 1.5rem;
  font-weight: 600;
}

/* ■■■■■■■■■■ スタッフ紹介セクション ■■■■■■■■■■ */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PCでは3カラムで横並び */
}

.staff-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.staff-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.staff-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3; /* 画像の比率を固定 */
  overflow: hidden;
  background: #f1f5f9;
}

.staff-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.staff-card:hover .staff-img-box img {
  transform: scale(1.05); /* ホバー時に画像を少し拡大 */
}

/* 役職・専門バッジ */
.staff-role {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(28, 78, 145, 0.9);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.staff-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.staff-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
}

.staff-name span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}

.staff-comment {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* タグデザイン */
.staff-tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

.staff-tag {
  font-size: 0.7rem;
  background-color: #f8fafc;
  color: var(--primary);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 700;
}

/* スマホ対応（768px以下で縦並びにする） */
@media (max-width: 768px) {
  .staff-grid {
    display: flex;
  }
  .staff-img-box {
    aspect-ratio: 3 / 3; /* 画像の比率を固定 */
  }
}

/* ■■■■■■■■■■ 買取品目カテゴリーグリッド ■■■■■■■■■■ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* PCでは4つ横並び */
  gap: 1.5rem;
}

.category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.category-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 10 / 10; /* 画像の比率 */
  overflow: hidden;
  background: #f1f5f9;
}

.category-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.category-card:hover .category-img-box img {
  transform: scale(1.05); /* ホバー時に画像を少しズーム */
}

/* 画像上のワンポイントバッジ */
.category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.category-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-content h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.category-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.category-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
  transition: var(--transition);
}

.category-card:hover .category-link {
  color: var(--accent);
  transform: translateX(4px); /* ホバー時に文字を右に少し動かす */
}

/* タブレット・スマホ対応 */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr); /* タブレットでは2×2 */
  }
}

/* タブレット・スマホ対応 */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr); /* ✨ スマホでも2列並びにする！ */
    gap: 1.75rem; /* スマホの画面幅に合わせて隙間を少し狭くする場合の調整（お好みで） */
  }

  /* スマホで2列にしたときに文字が大きすぎたりレイアウトが崩れないよう調整したい場合 */
  .category-content {
    padding: 0.85rem; /* パディングを少しスッキリさせる */
  }

  .category-content h3 {
    font-size: 0.95rem; /* 見出しを少しコンパクトにする */
  }
}

/* ■■■■■■■■■■ 買取相場一覧/買取実績一覧 ■■■■■■■■■■ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* カードデザイン */
.card-item {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  height: 100%;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.campaign-card {
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card-item:hover,
.campaign-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.card-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: var(--transition);
}

.badge-category {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(28, 78, 145, 0.95);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  z-index: 2;
}

.card-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
  line-height: 1.4;
}

.card-price-box {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.card-price-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.card-price-value {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--accent-red);
  line-height: 1;
}

.card-date {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.5rem;
}

.pricelabel {
  display: inline-block;
  border-radius: 5px;
  margin-top: 5px;
  padding: 5px 10px;
  background-color: var(--accent-red);
  color: var(--bg-card);
  font-size: 10px;
}

/* 読み込み状態 */
.loading-wrap {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
}

.spinner {
  border: 4px solid rgba(28, 78, 145, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: var(--accent);
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ■■■■■■■■■■ 特徴セクション ■■■■■■■■■■ */

#features {
  margin: 5rem auto;
}

.features-section {
  background-image: url(../img/future-bg.png);
  background-size: 120%;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .features-section {
    background-attachment: fixed;
    background-position: bottom;
    background-size: 180%;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
}

.feature-card {
  background-color: rgba(245, 244, 244, 0.853);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-img {
  width: 40%;
  margin: auto;
  margin-bottom: 1.5rem;
  display: block;
}

@media (min-width: 768px) {
  .features-grid {
    width: 80%;
    margin: auto;
  }

  .features-section {
    background-size: 100%;
    background-attachment: fixed;
  }

  .feature-img {
    width: 55%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
  }
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-title span {
  color: var(--accent);
}

.feature-desc {
  font-size: 0.85rem;
  color: #141414;
  line-height: 1.7;
}

/* ■■■■■■■■■■ 外部ショップ誘導セクション ■■■■■■■■■■ */
.external-shop-section {
  background-color: #0f172a;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.external-container {
  display: flex;
  justify-content: space-around;
  color: #ffffff;
}

@media (max-width: 798px) {
  .external-container {
    display: block;
  }
}

.external-sub {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}

.external-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #ffffff;
}

.external-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ショップ誘導用ボタン（アクセントカラーを引き立たせる） */
.btn-shop {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 1.5rem 2.2rem;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  border: 4px solid var(--primary-light);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  background-color: var(--btn-bgcolor);
  color: var(--primary-dark);
  border: 4px solid rgba(223, 176, 6, 0.2);
  gap: 0.5rem;
}

.btn-shop:hover {
  background-color: #f3d85d;
  transform: translateY(-2px);
}

/* 右側のイメージ画像部分 */
.external-shop-img {
  max-width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

.external-shop-img img {
  min-width: 320px;
  min-height: 150px;
  object-fit: cover;
  transition: var(--transition);
}

.external-shop-box:hover .external-shop-img img {
  transform: scale(1.05); /* ホバー時に画像を微ズーム */
}

/* スマホ対応（縦並びに切り替え） */
@media (max-width: 768px) {
  .external-shop-img {
    flex: 1;
    max-width: 100%;
    width: 100%;
  }

  .external-title {
    font-size: 1.4rem;
  }

  .external-shop-box {
    flex-direction: column; /* テキストを上、画像を下にしたい場合 */
  }
}

/*　■■■■■■■■■■  CTAセクション　■■■■■■■■■■  */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #eefcf8 0%, #e6f7f3 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ■■■■■■■■■■ フッター　■■■■■■■■■■  */
footer {
  background-color: #101528;
  color: #94a3b8;
  padding: 4rem 0 2rem 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  margin: auto;
  width: 100%;
  max-width: var(--container-max);
  padding: 0 1.5rem;
}

/* 全体を左右に分ける親グリッド */
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* 左側の情報エリア */
.footer-col-info {
  max-width: 400px;
}

/* 右側のメニュー群を包むラッパー（最初は縦並び、PCで横3列に！） */
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 🌟 パソコンサイズ（768px以上）のときのレイアウト */
@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row; /* 左右に並べる */
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
  }

  .footer-col-info {
    flex: 1; /* 左側はいい感じの幅を取らせる */
  }

  .footer-col-links {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(
      3,
      1fr
    ); /* 🌟 ここで綺麗に「横3列」になります！ */
    gap: 2rem;
  }
}

.footerLogo {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footerLogo span {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(17, 217, 217, 0.2);
}

.footer-desc {
  line-height: 1.7;
  margin: 1.5rem 0;
}

.footer-license {
  font-size: 0.75rem;
  color: #64748b;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
}

/* レスポンシブ設計 */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-slider-container {
    height: 480px;
  }
  .slide-title {
    font-size: 2.2rem;
  }
  .slide-visual img {
    max-height: 300px;
  }
  .visual-circle-bg {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .header-cta {
    display: none; /* デスクトップメニュー・簡単査定ボタンを非表示 */
  }
  .hamburger-btn {
    display: flex; /* スマホ用ハンバーガーを表示 */
  }

  .hero-slider-container {
    height: auto;
  }

  .hero-static .pc {
    display: none;
  }

  .hero-static .sp {
    display: block;
  }

  .campaign-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
    gap: 1rem;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-menu {
    display: none; /* スマホ時のナビバー非表示 */
  }

  .cta-title {
    font-size: 1.6rem;
  }
}

/* ■■■■■■■■■■ 詳細カードのレイアウト調整　■■■■■■■■■■  */
.detail-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: var(--shadow-md);
}

/* PCで横並び */
@media (min-width: 768px) {
  .detail-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .detail-img {
    flex: 0 0 40%;
    max-width: 40%;
  }
}

.detail-img {
  position: sticky;
  top: 0;
  aspect-ratio: 0/1;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (max-width: 768px) {
  .detail-img {
    position: static;
  }
}

.detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  flex: 1;
}

.info-row {
  margin-bottom: 0.5rem;
}

.info-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.info-value {
  font-weight: bold;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ■■■■■■■■■■ hobby-purchase.html ■■■■■■■■■■ */

.controls {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.search-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.badge-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  color: white;
  z-index: 99999;
}

.rank-N {
  background: #84caed;
}

.rank-S {
  background: #eab308;
}

.rank-A {
  background: #ef4444;
}

.rank-AB {
  background: #771515;
}

.rank-B {
  background: #64748b;
}

.rank-C {
  background: #475569;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.load-more-wrap {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.btn-page {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
}

.btn-page:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

.controls {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.search-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

input,
select {
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  flex: 1;
}

.category-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cat-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 20px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.cat-btn.active {
  background: var(--primary);
  color: white;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.card-img-box {
  position: relative;
  aspect-ratio: 1/1;
  background: #f8fafc;
}

.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-info {
  padding: 1rem;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  height: 2.5em;
  overflow: hidden;
}

/* ランクバッジの色分け */
.badge-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: white;
  z-index: 10;
  font-weight: 800;
}

.btn-page {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
}

.btn-page:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/*hobby-purchase-detail.html*/

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--text-muted);
  text-decoration: none;
}

/* メインレイアウト */
.main-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* 左側：Sticky画像 */
.sticky-left {
  position: sticky;
  top: 2rem;
  flex: 0 0 45%;
}

.img-container {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  /* 固定高で安定感を出す */
}

.img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* 全体を表示する設定 */
}

/* 右側：詳細情報 */
.info-right {
  flex: 1;
}

.card-box {
  position: relative;
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

/* セクション分けのためのスタイル */
.section-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.about-price {
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .main-wrapper {
    flex-direction: column;
  }

  .sticky-left {
    position: relative;
    top: 0;
    width: 100%;
  }

  .img-container {
    height: auto;
  }
}

/* ■■■■■■■■■■ 商品ランク基準表 ■■■■■■■■■■  */
.rank-table-section {
  margin: 4rem auto;
}

.rank-guide-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.rank-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.rank-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rank-matrix-table th,
.rank-matrix-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.rank-matrix-table th {
  background: #f8fafc;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.rank-matrix-table tbody tr:last-child td {
  border-bottom: none;
}

.rank-matrix-table tbody tr:hover {
  background-color: #fdfdfd;
}

/* ランク列 */
.col-rank {
  position: relative;
  width: 15%;
  min-width: 110px;
}

.tablebadge-rank {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: white;
  z-index: 10;
  font-weight: 800;
}

.rank-name-label {
  display: block;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* 複数画像グループ列 */
.col-images {
  width: 50%;
}

.rank-img-group {
  display: flex;
  gap: 0.75rem;
}

.rank-img-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rank-img-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.img-caption {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

/* 説明文列 */
.col-desc {
  width: 50%;
}

.col-desc p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* スマホ対応（レスポンシブ） */
@media (max-width: 768px) {
  .rank-matrix-table thead {
    display: none; /* スマホではヘッダーを非表示にして縦積みブロックに変化させる */
  }

  .rank-matrix-table,
  .rank-matrix-table tbody,
  .rank-matrix-table tr,
  .rank-matrix-table td {
    display: block;
    width: 100%;
  }

  .rank-matrix-table tr {
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
  }

  .rank-matrix-table td {
    padding: 0.5rem 0;
    border-bottom: none;
  }

  .col-rank {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .tablebadge-rank {
    position: absolute;
    top: 8px;
    right: 0;
  }

  .rank-name-label {
    margin-top: 0;
    font-size: 0.85rem;
    color: var(--primary-dark);
    font-weight: 800;
  }

  .col-images {
    margin-bottom: 0.75rem;
  }

  .col-desc p {
    font-size: 0.85rem;
  }
}

.rank-body {
  padding: 0.75rem;
}

.related-item {
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  background: white;
}

/* ■■■■■■■■■■ カテゴリタブ全体のコンテナ　■■■■■■■■■■  */
.category-tabs-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  width: 100%; /* 検索窓などと同じ行ではなく、キレイに並ぶように幅を確保 */
}

/* 個別のカテゴリタブボタンのデザイン */
.category-tab {
  background-color: #f1f5f9; /* 通常時の薄いグレー背景 */
  color: #475569; /* 文字色（落ち着いたグレー） */
  border: 1px solid #cbd5e1; /* 枠線 */
  padding: 0.5rem 1rem; /* 内側の余白（上下・左右） */
  font-size: 0.9rem; /* 文字サイズ */
  font-weight: 600; /* 少し太字 */
  border-radius: 9999px; /* 角を丸くしてピル型（カプセル型）にする */
  cursor: pointer; /* マウスカーソルを指マークにする */
  transition: all 0.2s ease; /* ホバー時のアニメーションをなめらかに */
}

/* マウスを乗せたときのデザイン */
.category-tab:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}

/* 選択中（アクティブ）のタブのデザイン */
.category-tab.active {
  background-color: #0f172a; /* 選択中は引き締まった濃い色（サイトのメインカラーに合わせて調整OKです） */
  color: #ffffff; /* 文字色を白に */
  border-color: #0f172a; /* 枠線も同色に */
}

.card-caution {
  margin-top: 1.5rem;
  padding: 15px;
  border-radius: 10px;
  border: 2px solid var(--btn-bgcolor);
  background-color: #f8fafc;
}

.card-caution h3,
.card-caution p {
  color: var(--text-muted);
}

/* ■■■■■■■■■■ takuhai.html ■■■■■■■■■■ */
.flow-section {
  margin: 5rem auto;
}

.flow-guide-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

/* 3つのステップを横並びにするグリッド */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.flow-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.flow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

/* ステップ番号バッジ */
.flow-step-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  z-index: 2;
}

.flow-img-box {
  width: 100%;
  background: #f8fafc;
  overflow: hidden;
}

.flow-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.flow-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0;
}

.flow-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .flow-grid {
    gap: 1rem; /* タブレットで少し隙間を狭めたい場合の調整 */
  }
}

/* スマホ対応（レスポンシブ） */
@media (max-width: 768px) {
  .flow-grid {
    grid-template-columns: 1fr; /* スマホでは1列で縦にすっきり並べる */
    gap: 1.25rem;
  }
}
