/**
 * Tageos メーカーページ（/maker/tageos/）専用スタイル
 * ページ内メニュー・用途から選ぶガイド・早見表（UHFインレイ・センサーインレイ）・似た型番の違い・購入前の確認・現行一覧にない製品
 * ページ内メニューの形と寸法は cino-hub.css・atid-hub.css・zebra-hub.css（HID・Xerafy・ELATEC と同じ）に合わせる。
 * このファイルは /maker/tageos/ だけが読み込む。部品のクラスは .p-tageos-* に閉じ、共通部品（l-section・c-image-grid など）のスタイルは変えない。
 */

/*
 * ページ内リンクの停止位置
 * - ページ内メニューはヘッダーの真下に固定する（高さ --tageos-toc-h。スマホ80px・PC72px）。移動先の見出しが隠れないよう、
 *   html の scroll-padding-top（直接 #… 付きの URL で開いたとき）と、サイト共通の smooth-scroll.js が
 *   控除する --header-sticky-offset（"#" で始まるリンクを押したとき）にメニューの高さを加える。
 * - 値は cino-hub.css・atid-hub.css・zebra-hub.css と同じ（main.css の --header-h はスマホ60px・PC120px）。
 */
html {
  scroll-padding-top: calc(var(--header-h, 60px) + var(--tageos-toc-h));
}
:root {
  --tageos-toc-h: 80px;
  --header-sticky-offset: 156px;
}
@media (min-width: 768px) {
  :root {
    --tageos-toc-h: 72px;
    --header-sticky-offset: 208px;
  }
}
/* 表示領域の高さが低い場合（拡大表示・スマホの横向きなど）は、本文を読める高さを残すためメニューを固定しない */
@media (max-height: 500px) {
  :root {
    --tageos-toc-h: 0px;
    --header-sticky-offset: 76px;
  }
}
@media (max-height: 500px) and (min-width: 768px) {
  :root {
    --header-sticky-offset: 136px;
  }
}
/* 移動先（ページ内メニューの各セクション・製品グループ・よくあるご質問・旧ページの見出し id を残した互換用の移動先） */
section[id^="tageos-"],
.p-tageos-anchor,
#faq.c-faq {
  scroll-margin-top: 16px;
}
/* 互換用の移動先（/sensor/ ハブからの #rfid-sensor-tag など）。高さを持たない空の要素 */
.p-tageos-anchor {
  display: block;
}

/*
 * ページ内メニュー（ヘッダーの真下に固定する1行のバー。Cino・ATID・Zebra・HID・Xerafy・ELATEC ページと同じ形）
 * - 折り返さず、入りきらない項目は横スクロールで送る（入りきる幅では中央寄せ）
 * - 現在のセクションは /assets/js/maker-hub-toc.js が .is-active と aria-current を付ける
 */
.p-tageos-hub-toc {
  position: sticky;
  top: var(--header-h, 60px);
  z-index: 90;
  display: flex;
  align-items: center;
  height: var(--tageos-toc-h);
  margin-top: 2.4rem;
  margin-bottom: 1.6rem;
  background: #fff;
  box-shadow: 0 0 0 100vmax #fff, 0 1px 0 100vmax #d9dde3;
  clip-path: inset(0 -100vmax -1px);
}
@media (min-width: 768px) {
  .p-tageos-hub-toc {
    max-width: none;
  }
}
@media (max-height: 500px) {
  .p-tageos-hub-toc {
    position: static;
    height: auto;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}
.p-tageos-hub-toc__list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  list-style: none;
}
.p-tageos-hub-toc__list > li {
  flex: 0 0 auto;
}
.p-tageos-hub-toc__list > li:first-child {
  margin-left: auto;
}
.p-tageos-hub-toc__list > li:last-child {
  margin-right: auto;
}
@media print {
  .p-tageos-hub-toc {
    position: static;
    height: auto;
    padding-top: 6px;
    padding-bottom: 6px;
    box-shadow: none;
    clip-path: none;
  }
  .p-tageos-hub-toc__list {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }
  .p-tageos-hub-toc__list > li:first-child,
  .p-tageos-hub-toc__list > li:last-child {
    margin-right: 0;
    margin-left: 0;
  }
  .p-tageos-hub-toc__list .p-tageos-hub-toc__link {
    white-space: normal;
  }
  .p-tageos-hub-toc__link::after {
    content: none !important;
  }
}
.p-tageos-hub-toc__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  color: #05192d;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 9999px;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.p-tageos-hub-toc__link:hover {
  border-color: #9c0071;
  color: #9c0071;
}
.p-tageos-hub-toc__link.is-active {
  color: #fff;
  background: #9c0071;
  border-color: #9c0071;
  font-weight: 700;
}
.p-tageos-hub-toc__link.is-active:hover {
  color: #fff;
  background: #7a0058;
  border-color: #7a0058;
}
.p-tageos-hub-toc__link:focus-visible {
  outline: 3px solid #9c0071;
  outline-offset: 2px;
}

/* リード文・注記 */
.p-tageos-hub__lead {
  max-width: 880px;
  margin: 0 auto 2.4rem;
  font-size: 17px;
  line-height: 1.9;
}
.p-tageos-hub__note {
  max-width: 960px;
  margin: 1.2rem auto 0;
  padding-left: 1.2em;
  color: #4a5562;
  font-size: 14px;
  line-height: 1.8;
}

/* 本文中のテキストリンク（グローバルのリセットで下線が消えるため明示） */
.p-tageos-table a,
.p-tageos-compare a,
.p-tageos-check a,
.p-tageos-hub__lead a,
.p-tageos-hub__note a,
.p-tageos-group__lead a {
  color: #9c0071;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.p-tageos-table a:hover,
.p-tageos-compare a:hover,
.p-tageos-check a:hover,
.p-tageos-hub__lead a:hover,
.p-tageos-hub__note a:hover,
.p-tageos-group__lead a:hover {
  text-decoration-thickness: 2px;
}
.p-tageos-table a:focus-visible,
.p-tageos-compare a:focus-visible,
.p-tageos-check a:focus-visible,
.p-tageos-hub__lead a:focus-visible,
.p-tageos-hub__note a:focus-visible,
.p-tageos-group__lead a:focus-visible,
.p-tageos-table-wrap:focus-visible {
  outline: 3px solid #9c0071;
  outline-offset: 2px;
}

/* 用途から選ぶガイド */
.p-tageos-guide {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (width >= 768px) {
  .p-tageos-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width >= 1100px) {
  .p-tageos-guide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.p-tageos-guide__item {
  display: flex;
}
.p-tageos-guide__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 18px 18px 16px;
  color: #05192d;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.p-tageos-guide__link:hover {
  border-color: #9c0071;
  box-shadow: 0 4px 14px rgb(5 25 45 / 8%);
}
.p-tageos-guide__link:focus-visible {
  outline: 3px solid #9c0071;
  outline-offset: 2px;
}
.p-tageos-guide__img {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
}
.p-tageos-guide__img img,
.p-tageos-guide__img picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.p-tageos-guide__need {
  margin: 0;
  color: #9c0071;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.p-tageos-guide__title {
  margin: 6px 0 8px;
  color: #05192d;
  font-size: 17px;
  line-height: 1.5;
}
.p-tageos-guide__text {
  flex: 1;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.8;
}
.p-tageos-guide__more {
  margin: 12px 0 0;
  color: #9c0071;
  font-size: 14px;
  font-weight: 700;
}

/* 早見表（Cino・ATID・HID の早見表と同じ形。UHFインレイとセンサーインレイの2表） */
.p-tageos-table-title {
  margin: 2.4rem 0 0.8rem;
  color: #05192d;
  font-size: 18px;
  line-height: 1.5;
}
.p-tageos-table-title:first-of-type {
  margin-top: 0;
}
/* 2つの表は列が多く、.l-container の最大幅（1200px）にも収まらないため、横スクロールの案内は常に出す */
.p-tageos-table-hint {
  margin: 0 0 0.8rem;
  color: #4a5562;
  font-size: 14px;
}
.p-tageos-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 8px;
}
.p-tageos-table {
  width: 100%;
  min-width: 1240px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}
.p-tageos-table caption {
  padding: 12px 16px;
  color: #05192d;
  font-weight: 700;
  text-align: left;
}
.p-tageos-table th,
.p-tageos-table td {
  padding: 10px 14px;
  border-top: 1px solid #d9dde3;
  text-align: left;
  vertical-align: top;
}
.p-tageos-table thead th {
  color: #fff;
  background: #05192d;
  font-size: 13px;
  white-space: nowrap;
}
/* 見出しの補足（区分・出典・条件）は2行目に出し、列幅を広げすぎない */
.p-tageos-table__th-note {
  display: block;
  font-weight: 400;
}
.p-tageos-table tbody th {
  white-space: nowrap;
  font-weight: 700;
}
/* 寸法・IC は1行で読めるように折り返さない */
.p-tageos-table .p-tageos-table__nowrap {
  white-space: nowrap;
}
/* メモリ・検知・読取距離は短い値を1行で読めるようにする */
.p-tageos-table .p-tageos-table__mid {
  min-width: 130px;
}
/* ARC承認・周波数・供給形態・主な用途は文が長いため、折り返しすぎない幅を確保する */
.p-tageos-table .p-tageos-table__wide {
  min-width: 170px;
}
.p-tageos-table tbody tr:nth-child(even) {
  background: #f6f7f9;
}
/* 販売終了の製品（status: eol）は文字で示す（色だけに頼らない） */
.p-tageos-table__status {
  display: block;
  color: #7a0058;
  font-size: 12px;
  font-weight: 400;
}
/* 似た型番の違い */
.p-tageos-compare {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (width >= 992px) {
  .p-tageos-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.p-tageos-compare__item {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 8px;
}
.p-tageos-compare__title {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  color: #05192d;
  font-size: 16px;
  line-height: 1.6;
}
.p-tageos-compare__text {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.8;
}
.p-tageos-compare__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 10px 0 0;
  padding: 0;
  font-size: 14px;
  list-style: none;
}

/* 国内で使う・購入するときの確認 */
.p-tageos-check {
  display: grid;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: tageos-check;
}
.p-tageos-check__item {
  position: relative;
  padding: 16px 18px 16px 56px;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  counter-increment: tageos-check;
}
.p-tageos-check__item::before {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: #9c0071;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  content: counter(tageos-check);
}
.p-tageos-check__title {
  margin: 0 0 4px;
  color: #05192d;
  font-size: 16px;
}
.p-tageos-check__text {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.8;
}

/* 製品グループの説明 */
.p-tageos-group__lead {
  max-width: 920px;
  margin: -0.8rem auto 2.4rem;
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
}
@media (width < 768px) {
  .p-tageos-group__lead {
    text-align: left;
  }
}

/* 現行一覧にない製品・販売終了の製品の注記（色だけに頼らず、見出しと文で区別する） */
.p-tageos-status-note {
  max-width: 920px;
  margin: 0 auto 2.4rem;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #d9dde3;
  border-left: 4px solid #b07800;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.8;
}
.p-tageos-status-note--eol {
  border-left-color: #9c0071;
}
.p-tageos-status-note__label {
  display: block;
  margin-bottom: 2px;
  color: #05192d;
  font-weight: 700;
}
