/**
 * Honeywell メーカーページ（/maker/honeywell/）専用スタイル
 * ページ内メニュー・用途から選ぶガイド・早見表・似た型番の違い・購入前の確認・販売状況を確認中・販売終了と後継・業種別の使い方
 * ページ内メニューの形と寸法は cino-hub.css・atid-hub.css・zebra-hub.css（HID・Xerafy・ELATEC と同じ）に合わせる。
 * すべて p-honeywell- で始まるクラスに閉じ、他のページに影響させない（html・:root の指定はこの CSS を読むページだけに効く）。
 */

/*
 * ページ内リンクの停止位置
 * - ページ内メニューはヘッダーの真下に固定する（高さ --honeywell-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(--honeywell-toc-h));
}
:root {
  --honeywell-toc-h: 80px;
  --header-sticky-offset: 156px;
}
@media (min-width: 768px) {
  :root {
    --honeywell-toc-h: 72px;
    --header-sticky-offset: 208px;
  }
}
/* 表示領域の高さが低い場合（拡大表示・スマホの横向きなど）は、本文を読める高さを残すためメニューを固定しない */
@media (max-height: 500px) {
  :root {
    --honeywell-toc-h: 0px;
    --header-sticky-offset: 76px;
  }
}
@media (max-height: 500px) and (min-width: 768px) {
  :root {
    --header-sticky-offset: 136px;
  }
}
/* 移動先（ページ内メニューの各セクション・製品グループ・よくあるご質問） */
section[id^="honeywell-"],
#faq.c-faq {
  scroll-margin-top: 16px;
}

/*
 * ページ内メニュー（ヘッダーの真下に固定する1行のバー。Cino・ATID・Zebra・HID・Xerafy・ELATEC ページと同じ形）
 * - 折り返さず、入りきらない項目は横スクロールで送る（入りきる幅では中央寄せ）
 * - 現在のセクションは /assets/js/maker-hub-toc.js が .is-active と aria-current を付ける
 */
.p-honeywell-hub-toc {
  position: sticky;
  top: var(--header-h, 60px);
  z-index: 90;
  display: flex;
  align-items: center;
  height: var(--honeywell-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-honeywell-hub-toc {
    max-width: none;
  }
}
@media (max-height: 500px) {
  .p-honeywell-hub-toc {
    position: static;
    height: auto;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}
.p-honeywell-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-honeywell-hub-toc__list > li {
  flex: 0 0 auto;
}
.p-honeywell-hub-toc__list > li:first-child {
  margin-left: auto;
}
.p-honeywell-hub-toc__list > li:last-child {
  margin-right: auto;
}
@media print {
  .p-honeywell-hub-toc {
    position: static;
    height: auto;
    padding-top: 6px;
    padding-bottom: 6px;
    box-shadow: none;
    clip-path: none;
  }
  .p-honeywell-hub-toc__list {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }
  .p-honeywell-hub-toc__list > li:first-child,
  .p-honeywell-hub-toc__list > li:last-child {
    margin-right: 0;
    margin-left: 0;
  }
  .p-honeywell-hub-toc__list .p-honeywell-hub-toc__link {
    white-space: normal;
  }
  .p-honeywell-hub-toc__link::after {
    content: none !important;
  }
}
.p-honeywell-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-honeywell-hub-toc__link:hover {
  border-color: #9c0071;
  color: #9c0071;
}
.p-honeywell-hub-toc__link.is-active {
  color: #fff;
  background: #9c0071;
  border-color: #9c0071;
  font-weight: 700;
}
.p-honeywell-hub-toc__link.is-active:hover {
  color: #fff;
  background: #7a0058;
  border-color: #7a0058;
}
.p-honeywell-hub-toc__link:focus-visible {
  outline: 3px solid #9c0071;
  outline-offset: 2px;
}

/* リード文・注記 */
.p-honeywell-hub__lead {
  max-width: 880px;
  margin: 0 auto 2.4rem;
  font-size: 17px;
  line-height: 1.9;
}
.p-honeywell-hub__note {
  max-width: 960px;
  margin: 1.2rem auto 0;
  padding-left: 1.2em;
  color: #4a5562;
  font-size: 14px;
  line-height: 1.8;
}

/* 英数字の長い型番・規格名が狭い画面ではみ出さないよう、本文のブロックでは折り返しを許す */
.p-honeywell-hub__lead,
.p-honeywell-hub__note,
.p-honeywell-guide__text,
.p-honeywell-compare__text,
.p-honeywell-check__text,
.p-honeywell-group__lead,
.p-honeywell-status-note,
.p-honeywell-industry__text {
  overflow-wrap: anywhere;
}

/* 本文中のテキストリンク（グローバルのリセットで下線が消えるため明示） */
.p-honeywell-table a,
.p-honeywell-compare a,
.p-honeywell-check a,
.p-honeywell-industry a,
.p-honeywell-hub__lead a,
.p-honeywell-group__lead a {
  color: #9c0071;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.p-honeywell-table a:hover,
.p-honeywell-compare a:hover,
.p-honeywell-check a:hover,
.p-honeywell-industry a:hover,
.p-honeywell-hub__lead a:hover,
.p-honeywell-group__lead a:hover {
  text-decoration-thickness: 2px;
}
.p-honeywell-table a:focus-visible,
.p-honeywell-compare a:focus-visible,
.p-honeywell-check a:focus-visible,
.p-honeywell-industry a:focus-visible,
.p-honeywell-hub__lead a:focus-visible,
.p-honeywell-group__lead a:focus-visible,
.p-honeywell-table-wrap:focus-visible {
  outline: 3px solid #9c0071;
  outline-offset: 2px;
}

/* 用途から選ぶガイド */
.p-honeywell-guide {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (width >= 768px) {
  .p-honeywell-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width >= 1100px) {
  .p-honeywell-guide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.p-honeywell-guide__item {
  display: flex;
  min-width: 0;
}
.p-honeywell-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-honeywell-guide__link:hover {
  border-color: #9c0071;
  box-shadow: 0 4px 14px rgb(5 25 45 / 8%);
}
.p-honeywell-guide__link:focus-visible {
  outline: 3px solid #9c0071;
  outline-offset: 2px;
}
.p-honeywell-guide__img {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
}
.p-honeywell-guide__img img,
.p-honeywell-guide__img picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.p-honeywell-guide__need {
  margin: 0;
  color: #9c0071;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.p-honeywell-guide__title {
  margin: 6px 0 8px;
  color: #05192d;
  font-size: 17px;
  line-height: 1.5;
}
.p-honeywell-guide__text {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}
.p-honeywell-guide__more {
  margin: 12px 0 0;
  color: #9c0071;
  font-size: 14px;
  font-weight: 700;
}

/* 早見表（Cino・ATID・HID の早見表と同じ形） */
.p-honeywell-table-title {
  max-width: 960px;
  margin: 2.4rem 0 0.8rem;
  color: #05192d;
  font-size: 18px;
  line-height: 1.5;
}
.p-honeywell-table-hint {
  margin: 0 0 0.8rem;
  color: #4a5562;
  font-size: 14px;
}
/* 表が枠に収まる幅（1280px 以上）でだけ横スクロールの案内を隠す */
@media (min-width: 1280px) {
  .p-honeywell-table-hint {
    display: none;
  }
}
.p-honeywell-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 8px;
}
.p-honeywell-table-wrap + .p-honeywell-table-title {
  margin-top: 3.2rem;
}
.p-honeywell-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}
.p-honeywell-table caption {
  padding: 12px 16px;
  color: #05192d;
  font-weight: 700;
  text-align: left;
}
.p-honeywell-table th,
.p-honeywell-table td {
  padding: 10px 14px;
  border-top: 1px solid #d9dde3;
  text-align: left;
  vertical-align: top;
}
.p-honeywell-table thead th {
  color: #fff;
  background: #05192d;
  font-size: 13px;
  white-space: nowrap;
}
.p-honeywell-table tbody th {
  white-space: nowrap;
  font-weight: 700;
}
/* 種類・読めるコード・接続・OS は文が長いため、折り返しすぎない幅を確保する */
.p-honeywell-table td:nth-child(2) {
  min-width: 170px;
}
.p-honeywell-table td:nth-child(3) {
  min-width: 160px;
}
.p-honeywell-table td:nth-child(4) {
  min-width: 220px;
}
.p-honeywell-table td:nth-child(5) {
  min-width: 140px;
}
.p-honeywell-table td:nth-child(6) {
  min-width: 120px;
}
.p-honeywell-table tbody tr:nth-child(even) {
  background: #f6f7f9;
}
/* 販売状況を確認中の表（型番と事実の2列） */
.p-honeywell-table--status {
  min-width: 600px;
}
.p-honeywell-table--status td:nth-child(2) {
  min-width: 360px;
}
/* 販売終了機種と後継の表（5列） */
.p-honeywell-table--legacy {
  min-width: 980px;
}
.p-honeywell-table--legacy td:nth-child(2),
.p-honeywell-table--legacy td:nth-child(3) {
  min-width: 150px;
}
.p-honeywell-table--legacy td:nth-child(4) {
  min-width: 260px;
}
.p-honeywell-table--legacy td:nth-child(5) {
  min-width: 170px;
}
/* 掲載区分（文字で示し、色だけに頼らない） */
.p-honeywell-table__badge {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid #d9dde3;
  border-radius: 9999px;
  font-size: 12px;
  white-space: nowrap;
}
.p-honeywell-table__badge--checking {
  color: #6b4a00;
  background: #fff6e0;
  border-color: #f0d79a;
}
.p-honeywell-table__badge--eol {
  color: #7a0058;
  background: #f9eef5;
  border-color: #e7c3db;
}

/* 似た型番の違い */
.p-honeywell-compare {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (width >= 992px) {
  .p-honeywell-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.p-honeywell-compare__item {
  min-width: 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 8px;
}
.p-honeywell-compare__title {
  margin: 0 0 8px;
  color: #05192d;
  font-size: 16px;
  line-height: 1.6;
}
.p-honeywell-compare__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}
.p-honeywell-compare__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 10px 0 0;
  padding: 0;
  font-size: 14px;
  list-style: none;
}

/* 国内で使う・購入するときの確認 */
.p-honeywell-check {
  display: grid;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: honeywell-check;
}
.p-honeywell-check__item {
  position: relative;
  padding: 16px 18px 16px 56px;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  counter-increment: honeywell-check;
}
.p-honeywell-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(honeywell-check);
}
.p-honeywell-check__title {
  margin: 0 0 4px;
  color: #05192d;
  font-size: 16px;
}
.p-honeywell-check__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

/* 製品グループの説明 */
.p-honeywell-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-honeywell-group__lead {
    text-align: left;
  }
}

/* 販売状況を確認中・販売終了の注記（色だけに頼らず、見出しと文で区別する） */
.p-honeywell-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-honeywell-status-note--eol {
  border-left-color: #9c0071;
}
.p-honeywell-status-note__label {
  display: block;
  margin-bottom: 2px;
  color: #05192d;
  font-weight: 700;
}
/* 表の下に置く製品グリッド */
.p-honeywell-status-grid {
  margin-top: 3.2rem;
}

/* 業種別の使い方（各カードから製品グループへのリンク） */
.p-honeywell-industry {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}
@media (width >= 768px) {
  .p-honeywell-industry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width >= 1100px) {
  .p-honeywell-industry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.p-honeywell-industry__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 8px;
}
.p-honeywell-industry__title {
  margin: 0 0 8px;
  color: #05192d;
  font-size: 16px;
  line-height: 1.6;
}
.p-honeywell-industry__text {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}
.p-honeywell-industry__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  font-size: 14px;
  list-style: none;
}
