.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;
}

.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;
  }
}

/* 直接紐づけている関連商品（商品詳細ページ内） */
.linked-products {
  max-width: 720px;
  margin: 32px auto;
  padding: 0;
}

.linked-products h3 {
  font-size: 15px;
  font-weight: 500;
  color: #222;
  margin: 0 0 16px 0;
  text-align: left;
  border-left: none;
  padding-left: 0;
  letter-spacing: 0.04em;
}

.linked-products-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.linked-products-grid::-webkit-scrollbar {
  display: none;
}

.linked-product-item {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #eee;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  min-width: 140px;
  max-width: 140px;
  flex-shrink: 0;
}

.linked-product-item:hover {
  transform: none;
  box-shadow: none;
  border-color: #ccc;
}

.linked-product-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.linked-product-info {
  padding: 8px;
}

.linked-product-name {
  font-size: 11px;
  color: #555;
  margin: 0 0 4px 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.linked-product-price {
  font-size: 13px;
  font-weight: 500;
  color: #222;
  margin: 0;
  font-family: din-2014, -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (max-width: 768px) {
  .linked-products {
    margin: 24px 16px;
    padding: 0;
  }

  .linked-products h3 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .linked-product-item {
    min-width: 120px;
    max-width: 120px;
  }

  .linked-product-item img {
    height: 120px;
  }

  .linked-product-info {
    padding: 6px;
  }

  .linked-product-name {
    font-size: 10px;
  }

  .linked-product-price {
    font-size: 12px;
  }
}

/* ========================================
   診断機能 - TOPページセクション
   ======================================== */
.home-diagnostic-section {
  text-align: center;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
  gap: 20px;
  margin-top: 16px;
  justify-content: center;
}

.home-diagnostic-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}

.home-diagnostic-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.home-diagnostic-card-thumb {
  overflow: hidden;
}

.home-diagnostic-card-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.home-diagnostic-card:hover .home-diagnostic-card-thumb img {
  transform: scale(1.03);
}

.home-diagnostic-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.home-diagnostic-card-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 8px;
  line-height: 1.4;
  color: #333;
}

.home-diagnostic-card-desc {
  font-size: 13px;
  color: #888;
  margin: 0 0 12px;
  line-height: 1.5;
  flex: 1;
}

.home-diagnostic-card-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background: var(--app-color, #333);
  padding: 8px 16px;
  border-radius: 5px;
  text-align: center;
  transition: opacity 0.2s;
}

.home-diagnostic-card:hover .home-diagnostic-card-cta {
  opacity: 0.85;
}

.home-diagnostic-viewall {
  margin-top: 12px;
  padding-bottom: 20px;
}

.home-diagnostic-viewall a {
  display: inline-block;
  padding: 10px 32px;
  font-size: 14px;
  font-weight: bold;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 50px;
  transition: color 0.2s, border-color 0.2s;
}

.home-diagnostic-viewall a:hover {
  color: #333;
  border-color: #999;
}

@media not screen and (min-width: 768px) {
  .home-diagnostic-section {
    padding: 0 10px;
  }

  .home-diagnostic-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-diagnostic-card {
    flex-direction: row;
  }

  .home-diagnostic-card-thumb {
    width: 120px;
    flex-shrink: 0;
  }

  .home-diagnostic-card-thumb img {
    aspect-ratio: 1 / 1;
    height: 100%;
  }

  .home-diagnostic-card-body {
    padding: 12px;
  }

  .home-diagnostic-card-title {
    font-size: 14px;
  }

  .home-diagnostic-card-desc {
    display: none;
  }

  .home-diagnostic-card-cta {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* ========================================
   診断機能 - 一覧ページ
   ======================================== */
.diagnostic-list-section {
  padding-top: 0;
}

.diagnostic-list-section h1 {
  font-size: 32px;
  margin: 30px;
  text-align: center;
}

.diagnostic-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding: 0 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.diagnostic-list-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  background: #fff;
}

.diagnostic-list-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.diagnostic-list-card-thumbnail {
  position: relative;
  overflow: hidden;
}

.diagnostic-list-card-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.diagnostic-list-card:hover .diagnostic-list-card-thumbnail img {
  transform: scale(1.03);
}

.diagnostic-list-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.diagnostic-list-card-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px;
  line-height: 1.4;
}

.diagnostic-list-card-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px;
  line-height: 1.6;
  flex: 1;
}

.diagnostic-list-card-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: var(--app-color, #333);
  padding: 10px 20px;
  border-radius: 6px;
  text-align: center;
  transition: opacity 0.2s;
}

.diagnostic-list-card:hover .diagnostic-list-card-cta {
  opacity: 0.85;
}

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

  .diagnostic-list {
    grid-template-columns: 1fr;
    padding: 0 10px 20px;
    gap: 16px;
  }

  .diagnostic-list-card-thumbnail img {
    aspect-ratio: 4 / 3;
  }
}

/* ========================================
   診断機能 - ランディングページ
   ======================================== */
.diagnostic-landing-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.diagnostic-landing-section h1 {
  font-size: 28px;
  text-align: center;
  margin: 30px 0;
}

.diagnostic-landing-thumbnail {
  margin: 0 0 30px;
  text-align: center;
}

.diagnostic-landing-thumbnail img {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
}

.diagnostic-landing-content {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
  overflow: hidden;
}

.diagnostic-landing-content img {
  max-width: 100%;
  height: auto;
}

.diagnostic-landing-content ul {
  list-style: none;
  padding: 0;
}

.diagnostic-landing-content li {
  font-size: 18px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.diagnostic-start-area {
  text-align: center;
  padding: 40px 20px;
  background: #f9f9f9;
  border-radius: 12px;
  margin-top: 30px;
}

.diagnostic-start-lead {
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 20px;
}

.diagnostic-start-btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: #333;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
}

.diagnostic-start-btn:hover {
  background: #555;
  transform: scale(1.02);
  color: #fff;
}

.diagnostic-start-time {
  display: block;
  font-size: 12px;
  font-weight: normal;
  margin-top: 6px;
  opacity: 0.8;
}

@media not screen and (min-width: 768px) {
  .diagnostic-landing-section h1 {
    font-size: 22px;
    margin: 15px 0;
  }

  .diagnostic-landing-content li {
    font-size: 16px;
  }

  .diagnostic-start-lead {
    font-size: 18px;
  }

  .diagnostic-start-btn {
    font-size: 16px;
    padding: 14px 30px;
  }
}

/* ========================================
   診断機能 - クイズページ
   ======================================== */
.diagnostic-quiz-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

.diagnostic-quiz-title {
  font-size: 14px;
  color: #999;
  text-align: center;
  margin: 0 0 16px;
  letter-spacing: 0.05em;
}

.diagnostic-progress {
  width: 100%;
  height: 6px;
  background: #e5e5e5;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.diagnostic-progress-bar {
  height: 100%;
  background: #333;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.diagnostic-progress-text {
  font-size: 13px;
  color: #999;
  text-align: right;
  margin: 0 0 30px;
}

.diagnostic-question-area {
  text-align: center;
}

.diagnostic-question-text {
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 24px;
  line-height: 1.5;
}

.diagnostic-question-image {
  margin: 0 0 24px;
}

.diagnostic-question-image img {
  max-width: 100%;
  border-radius: 8px;
}

.diagnostic-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.diagnostic-choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  text-align: left;
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}

.diagnostic-choice-btn:hover {
  border-color: #333;
  background: #fafafa;
  transform: translateX(4px);
}

.diagnostic-choice-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.diagnostic-choice-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.diagnostic-loading {
  text-align: center;
  padding: 12px;
  color: #999;
  font-size: 14px;
}

.diagnostic-back-btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  color: #666;
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.diagnostic-back-btn:hover {
  color: #333;
  border-color: #999;
}

@media not screen and (min-width: 768px) {
  .diagnostic-quiz-section {
    padding: 15px 15px 40px;
  }

  .diagnostic-question-text {
    font-size: 18px;
  }

  .diagnostic-choice-btn {
    font-size: 14px;
    padding: 14px 16px;
  }
}

/* ========================================
   診断機能 - 結果ページ
   ======================================== */
.diagnostic-result-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

.diagnostic-result-header {
  text-align: center;
  padding: 30px 20px;
  background: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 30px;
}

.diagnostic-result-label {
  font-size: 14px;
  color: #999;
  margin: 0 0 8px;
}

.diagnostic-result-title {
  font-size: 26px;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
}

.diagnostic-result-image {
  text-align: center;
  margin-bottom: 30px;
}

.diagnostic-result-image img {
  max-width: 100%;
  border-radius: 8px;
}

.diagnostic-result-description {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
  padding: 20px 24px;
  background: #f7f7f7;
  border-left: 4px solid var(--app-color, #333);
  border-radius: 0 8px 8px 0;
}

.diagnostic-result-description p {
  margin: 0 0 10px;
}

.diagnostic-result-description p:first-child {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.diagnostic-result-description p:last-child {
  margin-bottom: 0;
}

.diagnostic-result-description strong {
  font-weight: bold;
  color: #222;
}

.diagnostic-solution {
  margin-bottom: 40px;
}

.diagnostic-solution h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
}

.diagnostic-solution p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 16px;
}

.diagnostic-solution p:last-child {
  margin-bottom: 0;
}

/* 価格計算式（最初のp: 太字なし・数式系）をカード風に */
.diagnostic-solution > p:first-of-type {
  background: #f5f5f5;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.02em;
}

.diagnostic-solution strong {
  font-weight: bold;
  color: #222;
  display: inline-block;
  margin-top: 4px;
}

/* 「組み合わせ例:」などのラベル付きstrong段落 */
.diagnostic-solution p > strong:only-child {
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
  margin-bottom: 2px;
}

.diagnostic-solution ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.diagnostic-solution ul li {
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  color: #333;
}

.diagnostic-solution ul li:last-child {
  margin-bottom: 0;
}

.diagnostic-products {
  margin-bottom: 40px;
}

.diagnostic-products h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #333;
}

.diagnostic-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.diagnostic-restart-btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: #333;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
}

.diagnostic-restart-btn:hover {
  background: #555;
}

.diagnostic-other-diagnostics-btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: bold;
  color: var(--app-color, #333);
  background: #fff;
  border: 2px solid var(--app-color, #333);
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
}

.diagnostic-other-diagnostics-btn:hover {
  background: var(--app-color, #333);
  color: #fff;
}

.diagnostic-back-landing-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
}

.diagnostic-back-landing-btn:hover {
  color: #333;
  border-color: #999;
}

/* 共有エリア */
.diagnostic-share {
  margin-top: 32px;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 8px;
}

.diagnostic-share-label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.diagnostic-share-url-area {
  display: flex;
  gap: 8px;
}

.diagnostic-share-url-input {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  color: #555;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  min-width: 0;
}

.diagnostic-share-url-input:focus {
  border-color: #aaa;
}

.diagnostic-share-copy-btn {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background: var(--app-color, #333);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.diagnostic-share-copy-btn:hover {
  opacity: 0.85;
}

/* その他の診断 */
.diagnostic-others {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #e5e5e5;
}

.diagnostic-others-title {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 24px;
}

.diagnostic-others-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.diagnostic-others-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  background: #fff;
}

.diagnostic-others-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.diagnostic-others-card-thumb {
  overflow: hidden;
}

.diagnostic-others-card-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.diagnostic-others-card:hover .diagnostic-others-card-thumb img {
  transform: scale(1.03);
}

.diagnostic-others-card-body {
  padding: 12px;
}

.diagnostic-others-card-title {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
  color: #333;
}

.diagnostic-others-viewall {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  background: var(--app-color, #333);
  border-radius: 50px;
  transition: opacity 0.2s;
}

.diagnostic-others-viewall:hover {
  opacity: 0.85;
}

@media not screen and (min-width: 768px) {
  .diagnostic-result-section {
    padding: 15px 15px 40px;
  }

  .diagnostic-result-title {
    font-size: 20px;
  }

  .diagnostic-solution h3,
  .diagnostic-products h3 {
    font-size: 18px;
  }

  .diagnostic-solution > p:first-of-type {
    font-size: 14px;
    padding: 12px 14px;
  }

  .diagnostic-solution ul li {
    font-size: 13px;
    padding: 8px 12px;
  }

  .diagnostic-result-description {
    padding: 16px 18px;
    font-size: 14px;
  }

  .diagnostic-share-url-area {
    flex-direction: column;
  }

  .diagnostic-others {
    margin-top: 32px;
    padding-top: 28px;
  }

  .diagnostic-others-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .diagnostic-others-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .diagnostic-others-card-title {
    font-size: 13px;
  }
}

/* ===================================
   クーポンミニバナー（右下固定）
   =================================== */
.coupon-mini-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2100;
  cursor: pointer;
}

/* スライドインアニメーション */
.coupon-mini-enter {
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.coupon-mini-enter-start {
  transform: translateX(120%);
  opacity: 0;
}
.coupon-mini-enter-end {
  transform: translateX(0);
  opacity: 1;
}
.coupon-mini-leave {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.coupon-mini-leave-start {
  transform: translateX(0);
  opacity: 1;
}
.coupon-mini-leave-end {
  transform: translateX(120%);
  opacity: 0;
}

/* サムネありパターン */
.coupon-mini-banner--with-image {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  width: 160px;
}

.coupon-mini-banner--with-image .coupon-mini-banner-image {
  width: 100%;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.coupon-mini-banner--with-image .coupon-mini-banner-image img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.coupon-mini-banner--with-image .coupon-mini-banner-info {
  padding: 8px 10px 10px;
  text-align: center;
}

.coupon-mini-banner--with-image .coupon-mini-banner-discount {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #e53935;
  line-height: 1.2;
}

.coupon-mini-banner--with-image .coupon-mini-banner-cta {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

/* サムネなしパターン */
.coupon-mini-banner--text-only {
  background: var(--app-color);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  padding: 14px 18px;
  text-align: center;
  min-width: 120px;
}

.coupon-mini-banner--text-only .coupon-mini-banner-text {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}

.coupon-mini-banner--text-only .coupon-mini-banner-discount-large {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.coupon-mini-banner--text-only .coupon-mini-banner-discount-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.coupon-mini-banner--text-only .coupon-mini-banner-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 3px;
  font-weight: 600;
}

/* 閉じるボタン */
.coupon-mini-banner-close {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #999;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}

.coupon-mini-banner-close:hover {
  background: #f5f5f5;
  color: #333;
}

@media screen and (max-width: 768px) {
  .coupon-mini-banner {
    bottom: 12px;
    right: 12px;
  }

  .coupon-mini-banner--with-image {
    width: 140px;
  }

  .coupon-mini-banner--with-image .coupon-mini-banner-image img {
    height: 85px;
  }

  .coupon-mini-banner--with-image .coupon-mini-banner-discount {
    font-size: 13px;
  }

  .coupon-mini-banner--text-only {
    padding: 12px 14px;
  }

  .coupon-mini-banner--text-only .coupon-mini-banner-discount-large {
    font-size: 20px;
  }
}

/* ===================================
   クーポンバナー（行動トリガー表示）
   =================================== */
.coupon-banner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: couponBannerFadeIn 0.3s ease;
}

@keyframes couponBannerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.coupon-banner-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: couponBannerSlideUp 0.4s ease;
}

.coupon-banner-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #666;
  transition: background 0.2s, color 0.2s;
}

.coupon-banner-close:hover {
  background: #fff;
  color: #333;
}

.coupon-banner-image {
  width: 100%;
  overflow: hidden;
}

.coupon-banner-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.coupon-banner-content {
  padding: 24px 28px 28px;
  text-align: center;
}

.coupon-banner-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.4;
}

.coupon-banner-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px;
  line-height: 1.6;
}

.coupon-banner-discount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.coupon-banner-discount-amount {
  font-size: 36px;
  font-weight: 800;
  color: #e53935;
  line-height: 1;
}

.coupon-banner-discount-label {
  font-size: 18px;
  font-weight: 700;
  color: #e53935;
}

.coupon-banner-code-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8f8f8;
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
}

.coupon-banner-code {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  letter-spacing: 2px;
  font-family: 'Roboto Mono', monospace;
}

.coupon-banner-copy-btn {
  background: #eee;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.coupon-banner-copy-btn:hover {
  background: #ddd;
}

.coupon-banner-apply-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--app-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.coupon-banner-apply-btn:hover {
  opacity: 0.85;
}

.coupon-banner-apply-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.coupon-banner-message {
  margin-top: 10px;
  font-size: 13px;
  color: #e53935;
  font-weight: 500;
}

.coupon-banner-expiry {
  font-size: 12px;
  color: #999;
  margin: 0 0 14px;
  line-height: 1.5;
}

.coupon-banner-applied {
  margin-top: 8px;
  padding: 12px;
  background: #e8f5e9;
  border-radius: 8px;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .coupon-banner-overlay {
    padding: 16px;
    align-items: center;
  }

  .coupon-banner-modal {
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .coupon-banner-image img {
    max-height: 200px;
  }

  .coupon-banner-content {
    padding: 16px 16px 20px;
  }

  .coupon-banner-title {
    font-size: 17px;
    margin: 0 0 4px;
  }

  .coupon-banner-description {
    font-size: 13px;
    margin: 0 0 10px;
  }

  .coupon-banner-discount {
    margin-bottom: 10px;
  }

  .coupon-banner-discount-amount {
    font-size: 28px;
  }

  .coupon-banner-discount-label {
    font-size: 15px;
  }

  .coupon-banner-code-area {
    padding: 8px 12px;
    margin-bottom: 10px;
  }

  .coupon-banner-code {
    font-size: 15px;
  }

  .coupon-banner-expiry {
    font-size: 11px;
    margin: 0 0 10px;
  }

  .coupon-banner-apply-btn {
    font-size: 15px;
    padding: 12px;
  }
}

/* 特集ページ: スタッフ/人物ボイス (@{staff_voice=名前|役職|コメント}) */
.staff-voice {
  margin: 28px auto;
  padding: 20px 22px;
  background: #fafafa;
  border-left: 3px solid var(--app-color, #b941d4);
  border-radius: 6px;
  max-width: 700px;
}

.staff-voice-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.staff-voice-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--app-color, #b941d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 18px;
}

.staff-voice-identity {
  line-height: 1.4;
}

.staff-voice-name {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  color: #222;
}

.staff-voice-role {
  margin: 2px 0 0;
  font-size: 12px;
  color: #888;
}

.staff-voice-comment {
  margin: 0;
  padding: 0;
  border: none;
  color: #333;
  font-size: 14px;
  line-height: 1.7;
}

.staff-voice-comment p {
  margin: 0;
}

@media (max-width: 600px) {
  .staff-voice {
    margin: 20px 0;
    padding: 16px;
  }
  .staff-voice-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
/* セール一覧ページ（/sales/{id}）の残り時間・終了表示 */
.sale-page-remaining {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 4px 12px;
  border-radius: 4px;
  background: #e85a6b;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}
.sale-page-ended {
  margin: 8px 0;
  color: #999;
  font-weight: bold;
}

/* サイト全体ヘッダー下の自動セール告知バー（アクティブセール時のみ表示） */
.sale-announce-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box; /* padding を含めて100%に収め、横はみ出しを防ぐ */
  padding: 9px 14px;
  background: #FCD34D;
  color: #1A1A1A;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}
.sale-announce-bar:hover { background: #FBBF24; }
.sale-announce-text { letter-spacing: 0.02em; }
.sale-announce-remaining {
  background: #1A1A1A;
  color: #FCD34D;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.sale-announce-cta { font-size: 13px; }
.sale-announce-arrow { margin-left: 4px; font-size: 10px; vertical-align: middle; }
@media (max-width: 767px) {
  .sale-announce-bar { gap: 6px; padding: 7px 10px; font-size: 12px; }
  .sale-announce-remaining { font-size: 11px; }
  .sale-announce-cta { font-size: 11px; }
}

/* ===== セールページ ファーストビュー ヒーロー（/sales/{id}） ===== */
.sale-hero {
  position: relative;
  width: 100%;
  max-width: none; /* グローバル section{max-width:1200px} を解除して全幅にする */
  box-sizing: border-box;
  padding: 56px 20px 48px;
  background: radial-gradient(120% 120% at 50% 0%, #FFF6D6 0%, #FFF5E1 55%, #FBEFD3 100%);
  overflow: hidden;
  text-align: center;
}
.sale-hero::before,
.sale-hero::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: #FCD34D;
  opacity: 0.18;
  z-index: 0;
}
.sale-hero::before { top: -90px; left: -60px; }
.sale-hero::after { bottom: -110px; right: -50px; }
.sale-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.sale-hero-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #B45309;
  text-transform: uppercase;
}
.sale-hero-title {
  margin: 0;
  font-size: clamp(3.5rem, 14vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: #1A1A1A;
}
.sale-hero-discount {
  margin: 4px 0 10px;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1;
}
.sale-hero-discount strong {
  color: #E4002B;
  font-size: clamp(2.8rem, 11vw, 5rem);
  margin: 0 2px;
  vertical-align: -0.06em;
}
.sale-hero-discount span { font-size: 0.55em; }
.sale-hero-lead {
  margin: 0 auto 22px;
  max-width: 30em;
  font-size: 14px;
  color: #57534E;
  line-height: 1.7;
}
.sale-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.sale-countdown-label { font-size: 13px; font-weight: 700; color: #44403C; }
.sale-countdown-boxes { display: flex; align-items: center; gap: 6px; }
.sale-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
  padding: 8px 6px 6px;
  background: #1C1917;
  border-radius: 8px;
}
.sale-cd-num {
  font-size: 24px;
  font-weight: 800;
  color: #FCD34D;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.sale-cd-cap { margin-top: 4px; font-size: 10px; color: #D6D3D1; }
.sale-cd-sep { font-size: 20px; font-weight: 800; color: #A8A29E; }
.sale-hero-ended { margin-bottom: 22px; font-weight: 700; color: #999; }
.sale-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: #1C1917;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.sale-hero-cta:hover { background: #E4002B; transform: translateY(-1px); }
.sale-hero-cta-arrow { font-size: 13px; }

/* 商品一覧ヘッダ（タイトル + ソート） */
.sale-items-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.sale-items-title { margin: 0; font-size: 20px; font-weight: 700; }
.sale-items-count { margin-left: 10px; font-size: 14px; color: #E4002B; font-weight: 700; }

@media (max-width: 767px) {
  .sale-hero { padding: 40px 16px 36px; }
  .sale-cd-unit { min-width: 46px; padding: 6px 4px 5px; }
  .sale-cd-num { font-size: 20px; }
  .sale-countdown { gap: 6px; }
  .sale-items-head { flex-direction: column; align-items: flex-start; }
}

/* モバイルでグローバルの p/h1 {text-align:left} に負けないよう、ヒーローのテキストを明示的に中央寄せ
   （クラス指定でメディアクエリ内の要素セレクタに勝つ） */
.sale-hero .sale-hero-eyebrow,
.sale-hero .sale-hero-title,
.sale-hero .sale-hero-discount,
.sale-hero .sale-hero-lead {
  text-align: center;
}

/* モバイルの商品グリッド横はみ出し(grid blowout)対策：
   1fr(=minmax(auto,1fr)) はカードのmin-content幅に負けて列が縮まず横スクロールを生む。
   minmax(0,1fr) で列を確実にビューポート内へ収める（全リスティングページ共通） */
@media (max-width: 899px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
