/* 製品情報ページ 追加コンテンツ用スタイル */
/* 既存ページに影響を与えないように、products-enhance- プレフィックスを使用 */

/* ================================================
   タブパネルの初期表示制御
   ================================================ */

/* 事業分野・用途タブパネルを非表示、市場タブパネルを表示 */
.tabWrap02 #tabField,
.tabWrap02 #tabApplication {
  display: none !important;
}

.tabWrap02 #tabMarket {
  display: block !important;
}

/* 事業分野・用途タブを非アクティブ表示に強制 */
.tabWrap02 > .tabNavi > .tabs > li:nth-child(1) > a,
.tabWrap02 > .tabNavi > .tabs > li:nth-child(2) > a {
  background-color: #f1f5f7 !important;
  border-color: #dde5e9 !important;
  color: #333333 !important;
  font-weight: normal !important;
}

/* 事業分野・用途タブのホバー時の演出 */
.tabWrap02 > .tabNavi > .tabs > li:nth-child(1) > a:hover,
.tabWrap02 > .tabNavi > .tabs > li:nth-child(2) > a:hover {
  border-color: #005bac !important;
}

/* 市場から探すタブをアクティブ表示に強制 */
.tabWrap02 > .tabNavi > .tabs > li:nth-child(3) > a {
  background-color: #1c4e7d !important;
  border-color: #1c4e7d !important;
  color: #fff !important;
  font-weight: bold !important;
}

/* ================================================ */

/* 市場から探す - ラッパー */
.products-enhance-market-wrapper {
  padding: 20px 0;
}

/* 市場リスト */
.pe-market-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 市場ヘッダー（テキストとグラデーションライン） */
.pe-market-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.pe-market-header-title {
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  margin: 0;
  text-align: center;
  line-height: 1.6;
}

.pe-market-header-line {
  width: 100%;
  height: 7px;
  background: linear-gradient(to right, transparent, rgba(0, 163, 62, 0.45), transparent);
  max-width: 784px;
  margin: 30px 0;
}

.pe-market-header-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  margin: 0;
  text-align: center;
  line-height: 1.6;
}

/* 市場行 */
.pe-market-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.pe-market-row-top {
  justify-content: flex-start;
  width: 784px;
  max-width: 100%;
  margin: 0 auto;
  gap: 40px;
}

.pe-market-row-top .pe-market-card {
  width: 166px;
  flex: 0 0 166px;
  min-width: 166px;
  max-width: 166px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.pe-market-row-bottom {
  justify-content: center;
  display: flex;
  width: 100%;
}

/* 市場カード */
.pe-market-card {
  border-radius: 10px;
  border: 2px solid;
  background-color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 15px 0 32px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.pe-market-card:hover {
  transform: translateY(-4px);
}

/* SPではホバーエフェクトを無効化（クリック時の位置ずれを防ぐ） */
@media screen and (max-width: 1024px) {
  .pe-market-card:hover {
    transform: none;
  }
}

.pe-market-card-wide {
  width: 100%;
  max-width: 901px;
  margin: 0 auto;
  position: relative;
  border: none;
  background-color: transparent;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 901 / 143;
}

.pe-market-card-wide[data-pe-market-theme="green"] {
  background-color: transparent;
}

.pe-market-card-wide-bg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* PC用画像（デフォルト表示） */
.pe-market-card-wide-bg-pc {
  display: block;
}

/* SP用画像（デフォルト非表示） */
.pe-market-card-wide-bg-sp {
  display: none;
}

.pe-market-card-wide .pe-market-card-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.pe-market-card-wide .pe-market-title {
  font-size: 21px;
  margin: 0 0 12px 0;
  min-height: auto;
}

.pe-market-card-wide .pe-market-description {
  font-size: 14px;
  min-height: auto;
}


/* カードの色テーマ */
.pe-market-card[data-pe-market-theme="red"] {
  border-color: #FF0000;
  background-color: #FFECEC;
}


.pe-market-card[data-pe-market-theme="grey"] {
  border-color: #718096;
  background-color: #f7fafc;
}


.pe-market-card[data-pe-market-theme="yellow"] {
  border-color: #d69e2e;
  background-color: #fffbf0;
}


.pe-market-card[data-pe-market-theme="blue"] {
  border-color: #3182ce;
  background-color: #ebf8ff;
}


.pe-market-card[data-pe-market-theme="green"] {
  border-color: #38a169;
  background-color: #f0fff4;
}


.pe-market-card-wide[data-pe-market-theme="green"] {
  background-color: transparent;
  border: none;
}

/* カード内部 */
.pe-market-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  width: 100%;
}

/* アイコン */
.pe-market-icon {
  width: 107px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 30px;
}

.pe-market-icon svg {
  width: 100%;
  height: 100%;
}

.pe-market-icon-red {
  color: #FF0000;
}

.pe-market-icon-grey {
  color: #718096;
}

.pe-market-icon-yellow {
  color: #d69e2e;
}

.pe-market-icon-blue {
  color: #3182ce;
}

.pe-market-icon-green {
  color: #38a169;
}

/* タイトル */
.pe-market-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 24px 0;
  color: #000000;
  letter-spacing: 0.02em;
  min-height: 81px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* SP専用の改行（PCでは非表示） */
.pe-market-title .sp-only {
  display: none;
}

/* 説明文 */
.pe-market-description {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  color: #000000;
  letter-spacing: 0.01em;
  min-height: 43.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* モバイル用詳細エリア */
.pe-market-details-mobile {
  display: none;
  margin-top: 24px;
  padding: 24px;
  border-radius: 8px;
  background-color: #f7fafc;
}

.pe-market-details-mobile.is-active {
  display: block;
}

/* レスポンシブ対応（SP/タブレット） */
@media screen and (max-width: 1024px) {
  /* .pe-market-list関連のスタイルはPCのものを踏襲 */

  /* 幅広カードのSP/タブレット対応 */
  .pe-market-card-wide {
    width: 100%;
    max-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  /* タブレット時はPC用画像を表示、SP用画像を非表示（SP時は後で上書き） */
  .pe-market-card-wide-bg-pc {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 0;
  }

  .pe-market-card-wide-bg-sp {
    display: none;
  }

  .pe-market-card-wide .pe-market-card-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }

  .pe-market-card-wide .pe-market-title {
    font-size: 11px;
    margin: 0;
  }

  .pe-market-card-wide .pe-market-description {
    display: none;
  }

  .pe-market-card-inner {
    gap: 20px;
  }

  .pe-market-title {
    font-size: 18px;
    font-weight: 400;
  }

  .pe-market-description {
    font-size: 13px;
  }

  .pe-market-icon {
    width: 56px;
    height: 56px;
  }
}

/* SP専用のデザイン（768px以下） */
@media screen and (max-width: 768px) {
  /* 市場リストのgapを調整 */
  .pe-market-list {
    gap: 10px;
  }

  /* 市場ヘッダーのSP対応 */
  .pe-market-header-title {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .pe-market-header-subtitle {
    font-size: 12px;
  }

  .pe-market-header-line {
    display: block;
    margin: 6px 0 18px;
    height: 4px;
  }

  /* 上段カード：4つ横並び */
  .pe-market-row-top {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 8px;
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin: 0 auto;
  }

  .pe-market-row-top .pe-market-card {
    flex: 0 0 calc(25% - 6px);
    width: calc(25% - 6px);
    max-width: calc(25% - 6px);
    min-width: 0;
    padding: 12px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border-width: 1px;
    box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.25);
  }

  .pe-market-row-top .pe-market-card .pe-market-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 8px;
  }

  .pe-market-row-top .pe-market-card .pe-market-title {
    font-size: 10px;
    font-weight: 400;
    margin: 0;
    min-height: calc(10px * 1.4 * 3);
    max-height: calc(10px * 1.4 * 3);
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
  }

  /* SP専用の改行を表示 */
  .pe-market-title .sp-only {
    display: block;
  }

  .pe-market-row-top .pe-market-card .pe-market-description {
    display: none;
  }

  .pe-market-row-top .pe-market-card .pe-market-icon {
    width: 100%;
    max-height: 34px;
    height: 34px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .pe-market-row-top .pe-market-card .pe-market-icon img {
    max-height: 34px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  /* 下段カードとその他のカード */
  .pe-market-row-bottom {
    flex-direction: column;
  }

  .pe-market-row-bottom .pe-market-card {
    flex: 1 1 100%;
    min-width: 100%;
    padding: 0;
  }

  /* SP時はSP用画像を表示、PC用画像を非表示 */
  .pe-market-card-wide {
    aspect-ratio: unset;
    overflow: visible;
    position: relative;
    left: -2px;
    width: calc(100% + 12px);
    max-width: calc(100% + 12px);
  }

  .pe-market-card-wide-bg-pc {
    display: none;
  }

  .pe-market-card-wide-bg-sp {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 0;
  }

  .pe-market-card-wide .pe-market-title {
    position: relative;
    top: -2px;
  }
}

@media screen and (max-width: 480px) {
  .products-enhance-market-wrapper {
    padding: 16px 0;
  }

  .pe-market-card {
    padding: 20px 16px;
  }

  .pe-market-icon {
    width: 40px;
    height: 40px;
  }
}

/* PC用モーダル */
.pe-market-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.pe-market-modal.is-active {
  display: block;
}

.pe-market-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.pe-market-modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 460px;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pe-market-modal-close {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 70px;
  height: 70px;
  background-color: #808080;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  padding: 0;
}

.pe-market-modal-close:hover {
  background-color: #666666;
}

.pe-market-modal-close svg {
  width: 48px;
  height: 48px;
}

/* 前後の移動ボタン */
.pe-market-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: #EBEFF2;
  border: none;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  padding: 0;
}

.pe-market-modal-nav:hover:not(:disabled) {
  background-color: #005BAC;
}

.pe-market-modal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pe-market-modal-nav:disabled:hover {
  background-color: #EBEFF2;
}

.pe-market-modal-nav-prev {
  left: 0;
  border-radius: 0 5px 5px 0;
}

.pe-market-modal-nav-prev:disabled:hover {
  background-color: #EBEFF2;
}

.pe-market-modal-nav-prev svg path {
  stroke: #005BAC;
  transition: stroke 0.3s ease;
}

.pe-market-modal-nav-prev:hover:not(:disabled) svg path {
  stroke: #ffffff;
}

.pe-market-modal-nav-next {
  right: 0;
  border-radius: 5px 0 0 5px;
}

.pe-market-modal-nav-next svg path {
  stroke: #005BAC;
  transition: stroke 0.3s ease;
}

.pe-market-modal-nav-next:hover:not(:disabled) svg path {
  stroke: #ffffff;
}

.pe-market-modal-nav svg {
  width: 24px;
  height: 24px;
}

.pe-market-modal-content {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.pe-market-modal-image {
  flex: 0 0 320px;
  width: 320px;
  height: 100%;
  overflow: hidden;
  background-color: #f5f5f5;
}

.pe-market-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pe-market-modal-text {
  flex: 1 1 auto;
  width: 400px;
  padding: 40px 25px 40px 35px;
  overflow-y: auto;
  box-sizing: border-box;
}

.pe-market-modal-title {
  font-size: 28px;
  font-weight: 700;
  color: #0066cc;
  margin: 0 0 32px 0;
  line-height: 1.4;
}

.pe-market-modal-section {
  margin-bottom: 32px;
  padding-right: 35px;
}

.pe-market-modal-container[data-market-id="market-4"] .pe-market-modal-section {
  padding-right: 15px;
}

.pe-market-modal-section:last-child {
  margin-bottom: 0;
}

.pe-market-modal-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #0066cc;
  margin: 0 0 12px 0;
}

.pe-market-modal-description {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  color: #333333;
  margin: 0 0 16px 0;
}

.pe-market-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #333333;
  text-decoration: underline;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.pe-market-modal-link,
.pe-market-modal-link * {
  color: #333333;
}

.pe-market-modal-link * {
  text-decoration: underline;
}

.pe-market-modal-link-icon {
  text-decoration: none !important;
}

.pe-market-modal-link:hover,
.pe-market-modal-link:hover * {
  color: #333333;
  text-decoration: none;
}

.pe-market-modal-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  position: relative;
  top: 1px;
}

.pe-market-modal-link-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

/* レスポンシブ対応（タブレット以下ではモーダルを非表示） */
@media screen and (max-width: 1024px) {
  .pe-market-modal {
    display: none !important;
  }
}

/* SP用：市場カード説明セクション */
.pe-market-descriptions-sp {
  display: none;
}

@media screen and (max-width: 1024px) {
  /* SP/タブレット時のみ表示 */
  .pe-market-descriptions-sp {
    display: flex;
    flex-direction: column;
    gap: 57px;
    margin-top: 47px;
    padding: 0 27px;
  }

  /* 説明カード */
  .pe-market-description-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  }
}

/* タブレット時（768px以上1024px以下）のデザインをPCモーダルに近づける */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  /* アイコンサイズをPCと同じサイズに */
  .pe-market-icon {
    width: 107px;
    height: 54px;
    margin-bottom: 30px;
  }

  /* 幅広カードのタイトルサイズを他のカードと同じ18pxに */
  .pe-market-card-wide .pe-market-title {
    font-size: 18px;
    margin: 0 0 12px;
  }

  /* 幅広カードの説明文を表示（PCと同じスタイル） */
  .pe-market-card-wide .pe-market-description {
    display: block;
    font-size: 14px;
    min-height: auto;
    margin: 0;
  }

  /* 幅広カードの内部要素の間隔を調整 */
  .pe-market-card-wide .pe-market-card-inner {
    gap: 0;
  }

  /* 説明カードを横並びレイアウトに */
  .pe-market-description-card {
    flex-direction: row;
    max-width: 720px;
    height: 400px;
    margin: 0 auto;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* 画像エリア */
  .pe-market-description-card-image {
    flex: 0 0 280px;
    width: 280px;
    height: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
  }

  /* PC用画像を表示、SP用画像を非表示 */
  .pe-market-description-card-image-pc {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .pe-market-description-card-image-sp {
    display: none;
  }

  .pe-market-description-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* タイトルオーバーレイを非表示 */
  .pe-market-description-card-title-overlay {
    display: none;
  }

  /* コンテンツエリア */
  .pe-market-description-card-content {
    flex: 1 1 auto;
    padding: 40px 25px 40px 35px;
    overflow-y: auto;
    box-sizing: border-box;
  }

  /* タイトル（PCモーダルと同じスタイル） */
  .pe-market-description-card-title {
    font-size: 28px;
    font-weight: 700;
    color: #0066cc;
    margin: 0 0 32px 0;
    line-height: 1.4;
    text-align: left;
  }

  /* セクション */
  .pe-market-description-card-section {
    margin-bottom: 32px;
    padding-right: 35px;
  }

  .pe-market-description-card[data-pe-market-id="market-4"] .pe-market-description-card-section {
    padding-right: 15px;
  }

  .pe-market-description-card-section:last-child {
    margin-bottom: 0;
  }

  /* セクションタイトル（PCモーダルと同じスタイル） */
  .pe-market-description-card-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #0066cc;
    margin: 0 0 12px 0;
  }

  /* 説明文（PCモーダルと同じスタイル） */
  .pe-market-description-card-description {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    color: #333333;
    margin: 0 0 16px 0;
  }

  /* リンク（PCモーダルと同じスタイル） */
  .pe-market-description-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333333;
    text-decoration: underline;
    transition: color 0.3s ease;
  }

  .pe-market-description-card-link * {
    color: #333333;
  }

  .pe-market-description-card-link:hover,
  .pe-market-description-card-link:hover * {
    color: #333333;
  }

  .pe-market-description-card-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    text-decoration: none !important;
    line-height: 1;
    transform: translateY(1px);
  }

  .pe-market-description-card-link-icon img {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    top: 1px;
  }

  /* リンク全体のline-heightを調整して矢印を中央揃え */
  .pe-market-description-card-link {
    line-height: 1.5;
  }

  /* 上に戻るボタンはタブレットでも表示 */
  .pe-market-description-card {
    position: relative;
  }

  .pe-market-description-card-scroll-top {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #D9D9D9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.3s ease;
    z-index: 10;
  }

  .pe-market-description-card-scroll-top:hover {
    background-color: #C9C9C9;
  }

  .pe-market-description-card-scroll-top:active {
    background-color: #B9B9B9;
  }

  .pe-market-description-card-scroll-top svg {
    display: block;
    width: 16px;
    height: 16px;
  }
}

/* SP時（768px以下）のデザイン */
@media screen and (max-width: 768px) {
  /* 説明カード */
  .pe-market-description-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* 画像エリア */
  .pe-market-description-card-image {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
  }

  /* SP用画像を表示、PC用画像を非表示 */
  .pe-market-description-card-image-pc {
    display: none !important;
  }

  .pe-market-description-card-image-sp {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  .pe-market-description-card-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
  }

  /* タイトルオーバーレイ */
  .pe-market-description-card-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    border-radius: 8px 8px 0 0;
  }

  /* 各市場カードごとのオーバーレイ背景色設定 */
  /* 色を変更する場合は、以下のrgba()の値を編集してください */
  .pe-market-description-card[data-pe-market-id="market-1"] .pe-market-description-card-title-overlay {
    background-color: rgba(255, 229, 229, 0.8); /* 環境配慮型モビリティ - #FFE5E5 80% */
  }

  .pe-market-description-card[data-pe-market-id="market-2"] .pe-market-description-card-title-overlay {
    background-color: rgba(242, 242, 242, 0.8); /* データ処理と通信の高度化 - #F2F2F2 80% */
  }

  .pe-market-description-card[data-pe-market-id="market-3"] .pe-market-description-card-title-overlay {
    background-color: rgba(254, 240, 204, 0.8); /* 食の品質保持 - #FEF0CC 80% */
  }

  .pe-market-description-card[data-pe-market-id="market-4"] .pe-market-description-card-title-overlay {
    background-color: rgba(229, 236, 255, 0.8); /* 新しい治療に求められる技術や機器 - #E5ECFF 80% */
  }

  .pe-market-description-card[data-pe-market-id="market-5"] .pe-market-description-card-title-overlay {
    background-color: rgba(236, 255, 229, 0.8); /* グリーン・ケミカルの安定供給基盤 - #ECFFE5 80% */
  }

  /* タイトル */
  .pe-market-description-card-title {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin: 0;
    line-height: 1.4;
    text-align: center;
  }

  /* コンテンツエリア */
  .pe-market-description-card-content {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* セクション */
  .pe-market-description-card-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* セクションタイトル */
  .pe-market-description-card-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #0066cc;
    margin: 0;
  }

  /* 説明文 */
  .pe-market-description-card-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: #333333;
    margin: 0;
  }

  /* リンク */
  .pe-market-description-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333333;
    text-decoration: underline;
    transition: text-decoration 0.3s ease;
  }

  .pe-market-description-card-link * {
    color: #333333;
    text-decoration: underline;
  }

  .pe-market-description-card-link:hover {
    text-decoration: none;
  }

  .pe-market-description-card-link:hover * {
    color: #333333;
    text-decoration: none;
  }

  .pe-market-description-card-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    text-decoration: none !important;
  }

  .pe-market-description-card-link-icon img {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    top: 1px;
  }

  /* 上に戻るボタン */
  .pe-market-description-card {
    position: relative;
  }

  .pe-market-description-card-scroll-top {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #D9D9D9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.3s ease;
    z-index: 10;
  }

  .pe-market-description-card-scroll-top:hover {
    background-color: #C9C9C9;
  }

  .pe-market-description-card-scroll-top:active {
    background-color: #B9B9B9;
  }

  .pe-market-description-card-scroll-top svg {
    display: block;
    width: 16px;
    height: 16px;
  }

  /* タブのSP表示調整：1行に3つのタブを収める */
  .tabNavi .tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .tabNavi .tabs li {
    flex: 1 1 33.333%;
    min-width: 0;
    margin: 0;
    padding: 0;
    width: 33.333%;
  }

  .tabNavi .tabs li a {
    display: block;
    padding: 8px 4px;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tabNavi .tabs li a .eqChildBtn {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    padding: 0;
  }
}