

/* 横スクロールを防止 - stickyを壊さないように注意 */
html {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* bodyにoverflow-x: hiddenを設定すると、子要素のstickyが機能しなくなるため削除 */
  /* 代わりに各要素でoverflowを制御する */
  overflow-y: auto;
}

*, *::before, *::after {
  box-sizing: inherit;
}

div.content img {
  max-height: 600px;  /* 最大高さを制限 */
  height: auto;       /* アスペクト比を維持 */
  max-width: 100%;    /* 横幅は本文の幅を超えないように */
  display: block;     /* レイアウト崩れ防止（任意） */
  margin: 1em auto;   /* 中央寄せ（任意） */
  object-fit: contain; /* はみ出し防止（任意） */
}

article > main > div.content {
  padding-top: 30px;
  padding-bottom: 30px;
  margin-top: 15px;
  border-top: 3px dashed #252525;
}

article > main > div.content  a {
  font-weight: 700;
}

* {
  font-family: "mynewfont", "Noto Sans JP", sans-serif!important;
  font-optical-sizing: auto;
  font-style: normal;
}


.content h2{
  border: 3px solid #121212;
  font-size: clamp(20px, 15.3934px + .6006vw, 30px);
  font-weight: 900;
  border-radius: 10px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .14);
  background-color: #fff;
  line-height: 1.4;
  margin-bottom: 1.4rem;
  padding: 1rem 2rem;
}


.content h3 {
  border-bottom:2px solid #000;
  border-left:0px solid #000;
  padding: 1rem 2rem;
  font-weight: 900!important;
}

h3 {  font-weight: 700!important;}


h1{
  font-weight: 900!important;

}



.hextra-toc a.active {
  color: #333333;
  font-weight: 900;
  background: #FDF6B2;
  padding: 0.5rem;
}


table {
  display: table !important;  /* ブロック表示の上書き */
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

th, td {
  text-align: center;
  padding: 8px;
  border: 1px solid #ccc;
  word-wrap: break-word;
}


.faq-block {
  margin-top: 2em;
  margin-bottom: 2em;
}

.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
}

.faq-item:hover {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.faq-button {
  padding: 0;
}

.faq-button:hover {
  color: #2563eb;
}

.faq-question {
  font-weight: 600;
}

.faq-answer {
  margin-top: 0.5em;
}

hr {margin: 20px;
  color:#eee;}

/* スマホでの検索結果表示を最適化 */
@media (max-width: 768px) {
  /* 検索バーをスマホで最適化 */
  .hextra-ja-search {
    width: 100% !important;
    max-width: none !important;
  }
  
  .hextra-ja-search-input {
    font-size: 16px !important; /* iOSでズームを防ぐ */
    padding: 14px 12px 14px 44px !important;
  }
  
  /* スマホでの検索結果表示を最適化 */
  .hextra-ja-search-results {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90vw !important;
    max-width: 90vw !important;
    max-height: 70vh !important;
    border-radius: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    background: white !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  }
  
  .hextra-ja-item {
    padding: 16px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* 検索候補の幅を画面幅に合わせて調整 */
  .hextra-ja-search-results .hextra-ja-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 16px 20px !important;
  }
  
  /* 検索候補のテキストを画面幅に合わせて調整 */
  .hextra-ja-search-results .hextra-ja-item .hextra-ja-title,
  .hextra-ja-search-results .hextra-ja-item .hextra-ja-snip {
    width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* 検索候補のコンテナ全体を画面幅に */
  .hextra-ja-search-results > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* スクロールバーのスタイリング */
  .hextra-ja-search-results::-webkit-scrollbar {
    width: 6px !important;
  }
  
  .hextra-ja-search-results::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 3px !important;
  }
  
  .hextra-ja-search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1 !important;
    border-radius: 3px !important;
  }
  
  .hextra-ja-search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8 !important;
  }
}

/* ============================================================
   Product Mini Header (scroll-down show / scroll-up hide)
   プロダクトページでのみ読み込まれるパーツ
   ============================================================ */
.product-mini-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
  border-bottom: 1px solid #e5e7eb;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 200ms ease-in-out, opacity 200ms ease-in-out;
  pointer-events: none; /* 非表示時クリック無効 */
}
.product-mini-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.product-mini-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.product-mini-header__inner {
  max-width: 80rem; /* ~1280px */
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.product-mini-header__mobile-tabs {
  display: block;
  border-top: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.95);
}
.product-mini-header__mobile-tabs-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 8px 0.5rem;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}
.product-mini-header__mobile-tabs-inner::-webkit-scrollbar {
  display: none;             /* Chrome/Safari */
}
@media (min-width: 1024px) {
  .product-mini-header__mobile-tabs {
    display: none;
  }
}
.product-mini-header__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}
.product-mini-header__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  object-fit: contain;
  background: #f3f4f6;
  flex-shrink: 0;
}
.product-mini-header__logo--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #64748b;
}
.product-mini-header__title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-mini-header__center {
  display: none;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
  padding: 0 0.5rem;
}
@media (min-width: 1024px) {
  .product-mini-header__center {
    display: flex;
  }
}
.product-mini-header__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 150ms, color 150ms, border-color 150ms, box-shadow 150ms;
}
.product-mini-header__tab:hover {
  background: #f3f4f6;
  color: #111827;
  border-color: #e5e7eb;
}
.product-mini-header__tab[data-active="true"] {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}
.product-mini-header__tab[data-active="true"] .product-mini-header__badge {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
}
.product-mini-header__badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}
.product-mini-header__right {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.product-mini-header__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms, color 150ms, border-color 150ms, box-shadow 150ms;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
}
.product-mini-header__button:hover {
  background: #f3f4f6;
}
.product-mini-header__button--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}
.product-mini-header__button--primary:hover {
  background: #1d4ed8;
}

/* 見出しのアンカーリンク（#マーク）を非表示 */
.subheading-anchor {
  display: none !important;
}

/* nav-containerのstickyを確実に機能させる */
.nav-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 20 !important;
  /* stickyを機能させるためにoverflow-xをvisibleに */
  overflow-x: visible;
}

/* 固定ナビの高さぶんだけ本文を下げる（ナビはh-16=64px） */
:root { --navbar-height: 64px; }
body { padding-top: var(--navbar-height); }

/* Product detail page -------------------------------------------------- */
.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-sizing: border-box;
  width: 100%;
  /* stickyを機能させるためにoverflow-xをvisibleに */
  overflow-x: visible;
  /* 親で縦方向のoverflowを発生させない */
  overflow-y: visible;
}

.product-hero {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  padding: 32px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.product-hero__top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.product-hero__media {
  flex: 0 0 120px;
  height: 120px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

.product-hero__placeholder {
  font-size: 32px;
  font-weight: 700;
  color: #94a3b8;
}

.product-hero__details {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-hero__badges,
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 600;
}

.product-hero__reading {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.product-hero__title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.product-hero__lead {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-rating__icons {
  display: flex;
  gap: 6px;
}

.product-rating__icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #dbeafe;
}

.product-rating__icon.is-active {
  background: #2563eb;
}

.product-rating__value {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.product-rating__count {
  font-size: 13px;
  color: #64748b;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #475569;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  font-weight: 600;
  background: #ffffff;
  color: #1f2937;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.product-button--primary {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.product-button--primary:hover {
  background: #0f172a;
}

.product-button--ghost:hover {
  background: #f9fafb;
}

.product-summary {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-summary__item {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  color: #475569;
}

.product-summary__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.product-summary__item ul {
  margin: 0;
  padding-left: 18px;
}

.product-summary__item li {
  margin-bottom: 4px;
}

.product-nav {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 64px !important;
  z-index: 10 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  /* stickyを機能させるためにoverflow-xをvisibleに */
  overflow-x: visible;
  overflow-y: visible;
}

.product-nav__link {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.product-nav__link:hover,
.product-nav__link:focus {
  background: #e0f2fe;
  color: #0f4c81;
  border-color: #bae6fd;
}

.product-nav__link.is-active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.product-button--large {
  padding: 12px 28px;
  font-size: 15px;
}

.product-button__icon {
  margin-right: 8px;
}

/* 古いレビューセクション用のCSSは削除（product-major-sectionを使用） */

.product-reviews-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .product-reviews-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.product-reviews-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}

.product-reviews-empty {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  color: #1d4ed8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-reviews-empty__icon {
  margin: 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-reviews-empty h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1d4ed8;
}

.product-reviews-empty p {
  margin: 0;
  font-size: 14px;
  color: #1d4ed8;
}

.product-review-summary__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 14px;
}

.product-review-summary__score {
  text-align: center;
}

.product-review-summary__value {
  font-size: 36px;
  font-weight: 700;
  color: #0f172a;
  margin: 8px 0;
}

.product-review-summary__caption {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.product-review-summary__bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-review-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #475569;
}

.product-review-bar__label {
  width: 36px;
  text-align: right;
  font-weight: 600;
}

.product-review-bar__track {
  flex: 1;
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  --progress: 0%;
}

.product-review-bar__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #2563eb;
  transition: width 0.3s ease;
  width: var(--progress);
}

.product-review-bar__count {
  width: 48px;
  text-align: right;
  color: #94a3b8;
}

.product-review-guidelines__body {
  font-size: 13px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-review-guidelines__body p {
  margin: 0;
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* 大きなセクション（概要・レビュー・競合比較） */
.product-major-section {
  padding: 3rem 0;
  width: 100%;
}

.product-major-section--overview {
  background-color: #ffffff;
}

.product-major-section--reviews {
  background-color: #f8fafc;
}

.product-major-section--alternatives {
  background-color: #ffffff;
}

.product-major-section__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.product-major-section__main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-major-section__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* PCでは2カラムレイアウト + stickyサイドバー */
@media (min-width: 1024px) {
  .product-major-section__inner {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
  }

  .product-major-section__sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }

  /* 競合比較セクションは常に1カラム（表が窮屈にならないように） */
  .product-major-section--alternatives .product-major-section__inner {
    grid-template-columns: 1fr;
  }
}

.product-content--wide {
  grid-template-columns: minmax(0, 1fr);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.product-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.product-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  /* ページ内ジャンプ時にヘッダーとナビゲーションバーが邪魔をしないように余白を設ける */
  scroll-margin-top: 120px;
}

.product-section__title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
}

.product-section__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.product-section__body--content {
  font-size: 15px;
  line-height: 1.8;
  color: #1f2937;
}

/* Markdown lists in overview/content */
.product-section__body--content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.product-section__body--content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.product-section__body--content li {
  margin: 0.25rem 0;
}

.product-section__body--content ul ul,
.product-section__body--content ol ul {
  list-style: circle;
  padding-left: 1.25rem;
}

.product-section__body--content ol ol,
.product-section__body--content ul ol {
  list-style: lower-alpha;
  padding-left: 1.25rem;
}
.product-media {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.product-media__video {
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #0f172a;
}

.product-media__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.product-media__item {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
  text-align: center;
}

/* Icon wrappers for headings */
.product-section__icon,
.product-sidecard__icon,
.product-alternatives-insight__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  line-height: 0;
}

.product-media__item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.product-media__item figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}

.product-plans {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-plan {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}

.product-plan.is-popular {
  border-color: #3b82f6;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
}

.product-plan__badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.product-plan__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.product-plan__price {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}

.product-plan__price small {
  font-size: 13px;
  margin-left: 6px;
  color: #64748b;
}

.product-plan__description {
  font-size: 13px;
  color: #475569;
}

.product-plan__features {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-plan__cta {
  margin-top: auto;
}

.product-reviews {
  display: grid;
  gap: 18px;
}

.product-review {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-review__rating {
  display: flex;
  gap: 4px;
}

.product-review__star {
  color: #cbd5f5;
  font-size: 18px;
}

.product-review__star.is-active {
  color: #f59e0b;
}

.product-review__author {
  font-size: 13px;
  color: #475569;
}

.product-review__date {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

.product-review__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.product-review__text {
  font-size: 13px;
  line-height: 1.7;
  color: #334155;
}

.product-review__lists {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.product-review__list {
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
}

.product-review__list--pros {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.product-review__list--cons {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.product-review__list h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
}

.product-review__list ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.product-review__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.product-review__list-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.product-review__list-icon svg {
  width: 100%;
  height: 100%;
}

.product-review__list--pros .product-review__list-icon {
  color: #059669;
}

.product-review__list--cons .product-review__list-icon {
  color: #dc2626;
}

.product-empty {
  padding: 32px;
  text-align: center;
  border: 1px dashed #d1d5db;
  border-radius: 16px;
  color: #64748b;
  background: #f8fafc;
}

.product-related {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-related__item {
  display: flex;
  gap: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-related__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.product-related__thumb {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-related__thumb--placeholder {
  font-size: 24px;
}

.product-related__content h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.product-related__content p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.product-related__meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
}

/* 古いサイドバーは削除（各セクションに独立したサイドバーを使用） */

.product-sidecard {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.product-sidecard__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
}

.product-sidecard__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #475569;
}

.product-sidecard__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.product-sidecard__list li span:first-child {
  color: #94a3b8;
}

.product-sidecard__list--multiline {
  flex-direction: column;
  align-items: flex-start;
}

.product-sidecard__list a {
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.product-sidecard__list a:hover {
  text-decoration: underline;
}

.product-sidecard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-sidecard__tags a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  color: #475569;
  text-decoration: none;
  background: #f8fafc;
}

.product-sidecard__tags a:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.product-sidecard__socials {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-sidecard__socials a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.product-sidecard__socials a:hover {
  transform: translateY(-2px);
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.product-sidecard__socials svg {
  width: 20px;
  height: 20px;
}

.product-sidecard__note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f1f5f9;
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
}

.product-alternatives-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.product-alternatives-intro .product-alternatives-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.product-alternatives-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1e293b;
  margin-bottom: 12px;
}

.product-alternatives-note {
  font-size: 0.75rem;
  color: #475569;
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 14px;
  display: inline-block;
  border: 1px solid #e2e8f0;
}

.product-alternatives-table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.product-alternatives-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.product-alternatives-table thead {
  background: #f8fafc;
}

.product-alternatives-table th,
.product-alternatives-table td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.product-alternatives-table__rating {
  width: 200px;
}

.product-alternatives-table__categories {
  width: 260px;
}

.product-alternatives-row--current {
  background: #eff6ff;
}

.product-alternatives-service {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.product-alternatives-service--link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.product-alternatives-service--link:hover .product-alternatives-service__name {
  color: #1d4ed8;
}

.product-alternatives-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-weight: 600;
  color: #475569;
}

.product-alternatives-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-alternatives-service__name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.product-alternatives-service__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #0f172a;
  color: #ffffff;
}

.product-alternatives-service__summary {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin-top: -2px;
}

.product-alternatives-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.product-alternatives-rating__icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-alternatives-rating__star {
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #e2e8f0;
  position: relative;
}

.product-alternatives-rating__star::after {
  content: '★';
  font-size: 13px;
  color: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}

.product-alternatives-rating__star.is-active {
  background: #2563eb;
}

.product-alternatives-rating__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
}

.product-alternatives-rating__value small {
  font-weight: 400;
  color: #64748b;
  margin-left: 4px;
}

.product-alternatives-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-alternatives-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-alternatives-cards {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.product-alternatives-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-alternatives-card--current {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.product-alternatives-card__label {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 12px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
}

.product-alternatives-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.product-alternatives-card__header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.product-alternatives-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.product-alternatives-card__title:hover {
  color: #1d4ed8;
}

.product-alternatives-card__summary {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}

.product-alternatives-card__footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-alternatives-card__footer-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.product-alternatives-empty {
  text-align: center;
}

.product-alternatives-empty__inner {
  border: 1px dashed #cbd5f5;
  border-radius: 20px;
  padding: 48px 24px;
  background: #f8fafc;
  color: #475569;
}

.product-alternatives-empty__inner h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.product-alternatives-insight__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.product-alternatives-insight__body {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.7;
}

.product-alternatives-insight__body ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 960px) {
  .product-content {
    grid-template-columns: 1fr;
  }

  .product-nav {
    position: sticky !important;
    top: 64px !important;
    border-radius: 16px;
  }

  .product-alternatives-table-wrapper {
    display: none;
  }

  .product-alternatives-cards {
    display: flex;
  }

  .product-alternatives-card__badge {
    position: static;
    align-self: flex-end;
  }
}

@media (max-width: 640px) {
  .product-hero {
    padding: 24px;
  }

  .product-hero__media {
    flex: 0 0 80px;
    height: 80px;
  }

  .product-nav {
    gap: 6px;
  }

  .product-nav__link {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* 関連サービスグリッド */
.product-similar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 767px) {
  .product-similar-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.product-similar-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  display: block;
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.product-similar-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* フッター */
.site-footer {
  background-color: #4f46e5;
  color: white;
  padding: 3rem 0;
  margin-top: 4rem;
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 0;
}

.footer-content {
  font-size: 0.875rem;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-content p {
  margin: 0;
}

.footer-note {
  font-size: 0.75rem !important;
}

.footer-links {
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0;
}

.site-footer a {
  color: white;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #c7d2fe;
}

.footer-ads {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.footer-copyright {
  border-top: 1px solid #6366f1;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer-copyright p {
  margin: 0;
}

/* フッターの全幅表示を確実にする */
.hextra-custom-footer {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ============================================
   カテゴリーページ用のTailwind CSSユーティリティクラス
   ============================================ */

/* Flexbox utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

/* Spacing utilities */
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-y-4 { row-gap: 1rem; }

/* Text utilities */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.tracking-tight { letter-spacing: -0.025em; }
.text-center { text-align: center; }

/* Color utilities */
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }
.text-green-800 { color: #166534; }
.text-green-900 { color: #14532d; }
.text-yellow-400 { color: #facc15; }
.text-white { color: #ffffff; }
.text-black { color: #000000; }

/* Background utilities */
.bg-white { background-color: #ffffff; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-200 { background-color: #bfdbfe; }
.bg-blue-600 { background-color: #2563eb; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-\[\#000033\] { background-color: #000033; }

/* Border utilities */
.border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
.border-blue-200 { border-color: #bfdbfe; }
.border-green-200 { border-color: #bbf7d0; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-transparent { border-color: transparent; }
.border-input { border-color: #d1d5db; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow utilities */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Padding utilities */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2\.5,
.px-2-5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-4 { padding-right: 1rem; }
.py-0\.5,
.py-0-5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* Margin utilities */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-12 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Width/Height utilities */
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-w-0 { min-width: 0; }
.min-h-screen { min-height: 100vh; }

/* Display utilities */
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .grid.grid-cols-1.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.left-3 { left: 0.75rem; }
.left-1\/2 { left: 50%; }
.top-1\/2 { top: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* Other utilities */
.leading-relaxed { line-height: 1.625; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.cursor-pointer { cursor: pointer; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.object-cover { object-fit: cover; }
.max-w-7xl { max-width: 80rem; }
.max-w-md { max-width: 28rem; }
.whitespace-nowrap { white-space: nowrap; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-blue-800:hover { color: #1e40af; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.group:hover .group-hover\:text-blue-500 { color: #3b82f6; }

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:text-left { text-align: left; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:mx-0 { margin-left: 0; margin-right: 0; }
  .md\:mb-0 { margin-bottom: 0; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:flex-row { flex-direction: row; }
  .md\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:w-48 { width: 12rem; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:space-y-0 > * + * { margin-top: 0; }
  .lg\:space-x-4 > * + * { margin-left: 1rem; }
}

/* Prose utilities */
.prose { max-width: 65ch; }
.prose-sm { font-size: 0.875rem; }
.prose-sm .prose { max-width: 65ch; }
.max-w-none { max-width: none; }
.prose-sm p { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.prose-sm ul { margin-top: 0.75rem; margin-bottom: 0.75rem; padding-left: 1.625rem; }
.prose-sm li { margin-top: 0.25rem; margin-bottom: 0.25rem; }

/* Card utilities (shadcn/ui style) */
.text-card-foreground { color: #0f172a; }
.bg-card { background-color: #ffffff; }
.bg-primary { background-color: #2563eb; }
.bg-background { background-color: #ffffff; }
.bg-secondary { background-color: #f3f4f6; }
.text-primary-foreground { color: #ffffff; }
.text-secondary-foreground { color: #1f2937; }
.text-muted-foreground { color: #6b7280; }
.text-foreground { color: #0f172a; }
.ring-offset-background { --tw-ring-offset-color: #ffffff; }
.focus-visible\:outline-none:focus-visible { outline: 2px solid transparent; outline-offset: 2px; }
.focus-visible\:ring-2:focus-visible { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus-visible\:ring-ring:focus-visible { --tw-ring-color: hsl(222.2 84% 4.9%); }
.focus-visible\:ring-offset-2:focus-visible { --tw-ring-offset-width: 2px; }
.disabled\:pointer-events-none:disabled { pointer-events: none; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.hover\:bg-primary\/90:hover { background-color: rgba(37, 99, 235, 0.9); }
.hover\:bg-secondary\/80:hover { background-color: rgba(243, 244, 246, 0.8); }

/* Line clamp utilities */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Object utilities */
.object-contain { object-fit: contain; }

/* 検索結果のバッジスタイル */
.hextra-ja-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.hextra-ja-badge-category {
  background: #f3e8ff;
  color: #6b21a8;
}

.hextra-ja-badge-service {
  background: #dbeafe;
  color: #1e40af;
}

.hextra-ja-badge-exact {
  background: #dcfce7;
  color: #166534;
}

/* ============================================
   カテゴリー一覧ページ用のスタイル
   ============================================ */

/* カテゴリー一覧ページのコンテナ */
.category-list-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.category-list-header {
  margin-bottom: 2rem;
}

.category-list-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.category-list-description {
  font-size: 1.125rem;
  color: #4b5563;
}

/* 検索バー */
.category-search-container {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: sticky;
  top: 1rem;
  z-index: 10;
}

.category-search-wrapper {
  max-width: 28rem;
  position: relative;
}

.category-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
}

.category-search-input {
  width: 100%;
  height: 2.5rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  font-size: 0.875rem;
  color: #111827;
}

.category-search-input::placeholder {
  color: #6b7280;
}

.category-search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* カテゴリーグリッド */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* カテゴリーカード */
.category-card {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.3s ease;
  height: 100%;
}

.category-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.category-card-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-shrink: 0;
}

.category-card-title-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.category-card-title-link:hover .category-card-title {
  color: #2563eb;
}

.category-card-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #2563eb;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.category-card-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-card-body {
  padding: 1rem;
  flex-grow: 1;
  min-height: 0;
}

.category-card-subcategories {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-card-subcategory-item {
  margin: 0;
}

.category-card-subcategory-link {
  font-size: 0.875rem;
  color: #374151;
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-card-subcategory-link:hover {
  color: #2563eb;
}

.category-card-subcategory-icon {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.5rem;
  margin-top: 0.125rem;
  color: #9ca3af;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.category-card-subcategory-link:hover .category-card-subcategory-icon {
  color: #2563eb;
}

.category-card-subcategory-name {
  flex: 1;
}

.category-card-tool-count {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.category-card-description {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.625;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card-footer {
  padding: 0.75rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-shrink: 0;
}

.category-card-footer-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-card-footer-link:hover {
  color: #1e40af;
}

.category-card-footer-link-text {
  display: inline-block;
}

.category-card-footer-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* 検索ハイライト */
.search-highlight {
  background-color: #fef08a;
  color: #000;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

/* ============================================
   カテゴリー一覧ページ（リスト形式）用のスタイル
   ============================================ */

/* カテゴリーセクション */
.category-section {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.category-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.category-section-body {
  margin: 0;
}

.category-section-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.5rem 1.5rem;
}

.category-section-item {
  margin: 0;
}

.category-section-link {
  color: #2563eb;
  text-decoration: underline;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.category-section-link:hover {
  color: #1d4ed8;
}

@media (min-width: 768px) {
  .category-section-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .category-section-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .category-section-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* New Service Page Styles - スコープ化して他のページに影響しないように */
.new-service-page {
  padding-top: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.new-service-page * {
  box-sizing: border-box;
}

.new-service-page .hero-section h1,
.new-service-page .hero-section p,
.new-service-page .hero-section div {
  transition: all 0.3s ease;
}

.new-service-page .benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .new-service-page {
    background: linear-gradient(to bottom right, #1e293b, #0f172a, #1e1b4b) !important;
  }
  
  .new-service-page .hero-section h1 {
    color: #f3f4f6 !important;
  }
  
  .new-service-page .hero-section p {
    color: #d1d5db !important;
  }
  
  .new-service-page .benefit-card {
    background: #1f2937 !important;
    border-color: #374151 !important;
    color: #f3f4f6 !important;
  }
  
  .new-service-page .benefit-card h3 {
    color: #f9fafb !important;
  }
  
  .new-service-page .benefit-card p {
    color: #d1d5db !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .new-service-page .hero-section {
    padding: 2rem 1rem !important;
  }
  
  .new-service-page .benefits-section {
    padding: 2rem 1rem !important;
  }
  
  .new-service-page .benefit-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .new-service-page .registration-section {
    padding: 2rem 1rem !important;
  }
}