.logo-text{
  font-family: "Average", serif;
  font-size: 32px;
  margin-top: 5px;
}

/* リンクのデフォルト設定 */
a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
  color: inherit;
}

.list-code h1 {
  font-size: 32px;
  margin: 60px 30px;
}

@media not screen and (min-width: 768px) {
  .list-code h1{
    font-size: 20px;
    margin: 15px 5px;
  }
}

/* ページネーションのスタイル */
.pagination {
  margin: 1.5rem 0;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.page-inactive,
.page-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

/* モバイル表示での調整 */
@media (max-width: 768px) {
  .pagination-container {
    gap: 0.125rem;
    padding: 0 5px;
  }
  
  .page-inactive,
  .page-active {
    min-width: 1.75rem;
    height: 1.75rem;
    font-size: 0.7rem;
    padding: 0 0.25rem;
  }
}

/* 非常に小さな画面での調整 */
@media (max-width: 480px) {
  .pagination-container {
    gap: 0.1rem;
    padding: 0 2px;
  }
  
  .page-inactive,
  .page-active {
    min-width: 1.5rem;
    height: 1.5rem;
    font-size: 0.65rem;
    padding: 0 0.2rem;
  }
}

.page-inactive {
  background-color: #f3f4f6;
  color: #4b5563;
}

.page-inactive:hover {
  background-color: #e5e7eb;
}

.page-active {
  background-color: #3b82f6;
  color: white;
  font-weight: 500;
}

.article-detail-section-full {
  width: 100%;
  margin: 0 auto;
}

/* 検索ページのスタイル */
.search-form {
  margin: 2rem 0;
}

.search-input-wrapper {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.search-input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-button {
  padding: 10px 14px;
  background: #f3f4f6;
  border: none;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 1px solid #d1d5db;
}

.search-button:hover {
  background: #e5e7eb;
  color: #374151;
}

.search-button .icon {
  width: 16px;
  height: 16px;
  filter: none;
  opacity: 0.7;
}

.filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-section label {
  font-weight: 500;
  color: #475569;
  font-size: 14px;
}

.filter-section select {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: white;
  font-size: 13px;
  color: #334155;
  transition: border-color 0.2s ease;
}

.filter-section select:focus {
  outline: none;
  border-color: #3b82f6;
}

.clear-filters-btn {
  padding: 6px 12px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.clear-filters-btn:hover {
  background: #e2e8f0;
  color: #475569;
  border-color: #94a3b8;
}

@media not screen and (min-width: 768px) {
  .filter-wrapper {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .filter-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .search-input-wrapper {
    margin: 0 1rem;
  }
}


/* アイテムスライダー */
.article-detail-section .is-style-balloon_box {
  line-height: 1.4;
  position: relative;
  background-color: var(--app-color);
  border-radius: 2px;
  color: #fff;
  min-width: 2em;
  margin: initial;
  padding: .5em 1.25em;
  width: fit-content;
}

.article-detail-section .is-style-balloon_box::before {
  border: 12px solid transparent;
  border-top: 12px solid var(--app-color);
  bottom: -22px;
  content: "";
  height: 0;
  left: 1.25em;
  position: absolute;
  visibility: visible;
  width: 0;
}

.article-detail-section .is-style-balloon_box strong {
  color: #fff;
}

.item_slider .item_slider_list {
  display: flex;
  overflow-x: auto;
  padding-left: 0;
}

.item_slider .item_slider_list .item {
  min-width: 150px;
  margin-right: 15px;
  list-style: none;
}

.item_slider .item_slider_list .item .price {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 5px;
  text-align: center;
  font-family: "Source Sans Pro", Helvetica, Arial, 游ゴシック体, YuGothic, メイリオ, Meiryo, sans-serif;
}

.item_slider .item_slider_list .item .name {
  text-align: left;
  font-size: 14px;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  display: -webkit-box;
}

.item_slider .item_slider_list .item a {
  color: #333;
  text-decoration: none;
}

.item_slider .item_slider_list .item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

/* おすすめモーダル */
.recommendation-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  background: var(--app-color);
  color: white;
  padding: 14px 18px;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  user-select: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.recommendation-floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background: var(--app-color);
  filter: brightness(1.1);
}

.recommendation-floating-btn svg {
  width: 20px;
  height: 20px;
}

/* テキスト表示の切り替え */
.recommendation-floating-btn .desktop-text {
  display: inline;
}

.recommendation-floating-btn .mobile-text {
  display: none;
}

.recommendation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.recommendation-modal {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: recommendationModalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes recommendationModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.recommendation-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.recommendation-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.recommendation-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  color: #6b7280;
  transition: all 0.2s ease;
}

.recommendation-modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.recommendation-modal-content {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.recommendation-description {
  margin: 0 0 20px 0;
  font-size: 16px;
  color: #4b5563;
  line-height: 1.5;
}

.recommendation-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding-bottom: 20px;
}

.recommendation-product-item {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.recommendation-product-item:hover {
  transform: translateY(-2px);
}

.recommendation-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .recommendation-floating-btn {
    bottom: 16px;
    right: 16px;
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 20px;
  }
  
  .recommendation-floating-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .recommendation-modal {
    max-height: 90vh;
    margin: 10px;
  }
  
  .recommendation-modal-header {
    padding: 16px 20px;
  }
  
  .recommendation-modal-header h2 {
    font-size: 18px;
  }
  
  .recommendation-modal-content {
    padding: 20px;
  }
  
  .recommendation-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding-bottom: 16px;
  }
}

/* 商品詳細ページでのモバイル対応 */
@media (max-width: 768px) {
  /* 商品詳細ページの場合はおすすめボタンを上に配置 */
  body:has(.product-info-end) .recommendation-floating-btn {
    bottom: 80px; /* 商品詳細ボタンの上に配置 */
  }
  
  /* より確実な方法：商品詳細ページのクラスを使用 */
  .product-detail-page .recommendation-floating-btn {
    bottom: 80px;
  }
  
  /* 商品詳細ページでproduct-info-endが存在する場合 */
  .product-info-end ~ .recommendation-floating-btn,
  .recommendation-floating-btn.product-detail-adjust {
    bottom: 80px;
  }
}

@media (max-width: 480px) {
  .recommendation-floating-btn {
    bottom: 12px;
    right: 12px;
    padding: 8px 12px;
    font-size: 10px;
    border-radius: 18px;
  }
  
  .recommendation-floating-btn .desktop-text {
    display: none;
  }
  
  .recommendation-floating-btn .mobile-text {
    display: inline;
    font-size: 10px;
  }
  
  .recommendation-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding-bottom: 12px;
  }
}