/**
 * HID Global メーカーページ（/maker/hid/）専用スタイル
 * 上部の相談ボタン・ページ内メニュー・選び方の図・周波数の図・用途から選ぶ・
 * シリーズ早見表・製品グループ・型番から探す・ご相談の流れ
 * 配色と寸法は Xerafy・Zebra のメーカーページ（xerafy-hub.css / zebra-hub.css）に合わせる。
 * 周波数は色だけで区別せず、必ず文字（LF・HF・UHF）を併記する。
 */

/*
 * ページ内リンクの停止位置（xerafy-hub.css と同じ方式）
 * - 本ページの目次・グループリンクは /maker/hid/#… 形式（ブラウザ標準のページ内移動）で、
 *   html の scroll-padding-top（ヘッダー高さ）＋下の scroll-margin-top（16px）の位置に止まる。
 * - "#" で始まるその他のリンクはサイト共通の smooth-scroll.js が処理し、--header-sticky-offset を控除する。
 */
:root {
  --header-sticky-offset: 76px;
  --hid-accent: #9c0071;
  --hid-ink: #05192d;
  --hid-line: #d9dde3;
  --hid-muted: #4a5563;
  --hid-lf: #8a5a00;
  --hid-lf-bg: #fff6e5;
  --hid-hf: #0b6e4f;
  --hid-hf-bg: #e8f6f0;
  --hid-uhf: #1d4f91;
  --hid-uhf-bg: #e9f0fa;
}
@media (min-width: 768px) {
  :root {
    --header-sticky-offset: 136px;
  }
}
.p-hid-anchor,
#faq.c-faq {
  scroll-margin-top: 16px;
}

/* 本文中のテキストリンク（グローバルのリセットで下線が消えるため明示） */
.p-hid-table a,
.p-hid-models__title a {
  color: var(--hid-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.p-hid-table a:hover,
.p-hid-models__title a:hover {
  text-decoration-thickness: 2px;
}

/* 上部の相談ボタン */
.p-hid-cta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 2.4rem;
  text-align: center;
}
.p-hid-cta-top__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
.p-hid-cta-top__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-hid-cta-top__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  color: var(--hid-accent);
  background: #fff;
  border: 2px solid var(--hid-accent);
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.p-hid-cta-top__button--primary {
  color: #fff;
  background: var(--hid-accent);
}
.p-hid-cta-top__button:hover {
  color: #fff;
  background: #7a0058;
  border-color: #7a0058;
}

/* ページ内メニュー */
.p-hid-toc {
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
}
.p-hid-toc__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-hid-toc__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--hid-ink);
  background: #fff;
  border: 1px solid var(--hid-line);
  border-radius: 9999px;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}
.p-hid-toc__link:hover {
  border-color: var(--hid-accent);
  color: var(--hid-accent);
}
.p-hid-toc__link:focus-visible,
.p-hid-pill:focus-visible,
.p-hid-cta-top__button:focus-visible,
.p-hid-table-wrap:focus-visible,
.p-hid-table a:focus-visible,
.p-hid-models__title a:focus-visible {
  outline: 3px solid var(--hid-accent);
  outline-offset: 2px;
}

/* リード文・注記 */
.p-hid-lead {
  max-width: 880px;
  margin: 0 auto 2.4rem;
  font-size: 17px;
  line-height: 1.9;
}
.p-hid-note-text {
  max-width: 880px;
  margin: 1.6rem auto 0;
  color: var(--hid-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* 製品へのリンク（小さなピル） */
.p-hid-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-hid-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  color: var(--hid-accent);
  background: #fff;
  border: 1px solid var(--hid-accent);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.p-hid-pill:hover {
  color: #fff;
  background: var(--hid-accent);
}

/* 図（共通） */
.p-hid-figure {
  max-width: 1080px;
  margin: 0 auto;
}
.p-hid-figure__caption {
  margin-top: 1.2rem;
  color: var(--hid-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* 図1：取り付ける物 → 周波数 → シリーズ */
.p-hid-flow {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-hid-flow__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--hid-line);
  border-radius: 8px;
}
.p-hid-flow__cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.p-hid-flow__step {
  color: var(--hid-muted);
  font-size: 12px;
  line-height: 1.4;
}
.p-hid-flow__name {
  color: var(--hid-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.p-hid-flow__note {
  color: var(--hid-muted);
  font-size: 13px;
  line-height: 1.5;
}
.p-hid-flow__freq {
  align-self: start;
  padding: 6px 10px;
  border-left: 4px solid currentColor;
  border-radius: 4px;
}
.p-hid-flow__freq .p-hid-flow__name {
  color: inherit;
}
.p-hid-flow__freq--lf {
  color: var(--hid-lf);
  background: var(--hid-lf-bg);
}
.p-hid-flow__freq--hf {
  color: var(--hid-hf);
  background: var(--hid-hf-bg);
}
.p-hid-flow__freq--uhf {
  color: var(--hid-uhf);
  background: var(--hid-uhf-bg);
}
.p-hid-flow__series .p-hid-pills {
  margin-top: 4px;
}
.p-hid-flow__arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--hid-muted);
  font-size: 12px;
}
.p-hid-flow__arrow::before {
  content: "";
  display: block;
  width: 2px;
  height: 14px;
  margin-left: 10px;
  background: var(--hid-line);
}
@media (min-width: 900px) {
  .p-hid-flow__row {
    grid-template-columns: minmax(180px, 1.1fr) 72px minmax(130px, 0.8fr) 72px minmax(260px, 2fr);
    align-items: center;
    gap: 0;
  }
  .p-hid-flow__arrow {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    text-align: center;
  }
  .p-hid-flow__arrow::before {
    order: 2;
    width: 48px;
    height: 2px;
    margin: 0;
  }
  .p-hid-flow__arrow::after {
    content: "";
    order: 3;
    width: 0;
    height: 0;
    margin-top: -6px;
    margin-left: 46px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid var(--hid-line);
  }
}

/* 図2：周波数ごとの読取距離 */
.p-hid-freq-svg-wrap {
  overflow-x: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--hid-line);
  border-radius: 8px;
}
.p-hid-freq-svg {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
}
.p-hid-freq-svg__axis line {
  stroke: #8a93a0;
  stroke-width: 1;
}
.p-hid-freq-svg__axis text {
  fill: var(--hid-muted);
  font-size: 15px;
  text-anchor: middle;
}
.p-hid-freq-svg__label {
  fill: var(--hid-ink);
  font-size: 20px;
  font-weight: 700;
}
.p-hid-freq-svg__sub {
  fill: var(--hid-muted);
  font-size: 14px;
}
.p-hid-freq-svg__value {
  fill: var(--hid-ink);
  font-size: 16px;
}
.p-hid-freq-svg__value--in {
  fill: #fff;
  font-weight: 700;
}
.p-hid-freq-svg__bar--lf {
  fill: var(--hid-lf);
}
.p-hid-freq-svg__bar--hf {
  fill: var(--hid-hf);
}
.p-hid-freq-svg__bar--uhf {
  fill: var(--hid-uhf);
}

/* 周波数ごとの説明カード */
.p-hid-freq-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1080px;
  margin: 2.4rem auto 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .p-hid-freq-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.p-hid-freq-cards__item {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--hid-line);
  border-top: 4px solid currentColor;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.8;
}
.p-hid-freq-cards__item p {
  margin: 0 0 0.8rem;
  color: var(--hid-ink);
}
.p-hid-freq-cards__item--lf {
  color: var(--hid-lf);
}
.p-hid-freq-cards__item--hf {
  color: var(--hid-hf);
}
.p-hid-freq-cards__item--uhf {
  color: var(--hid-uhf);
}
.p-hid-freq-cards__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 1rem;
  color: var(--hid-ink);
  font-size: 17px;
  line-height: 1.5;
}
.p-hid-freq-cards__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  color: #fff;
  background: currentColor;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}
.p-hid-freq-cards__item--lf .p-hid-freq-cards__badge {
  background: var(--hid-lf);
}
.p-hid-freq-cards__item--hf .p-hid-freq-cards__badge {
  background: var(--hid-hf);
}
.p-hid-freq-cards__item--uhf .p-hid-freq-cards__badge {
  background: var(--hid-uhf);
}
.p-hid-freq-cards__item .p-hid-freq-cards__series {
  margin-bottom: 0;
  color: var(--hid-muted);
  font-size: 14px;
}

/* 用途から選ぶ */
.p-hid-uses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .p-hid-uses {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .p-hid-uses {
    grid-template-columns: repeat(3, 1fr);
  }
}
.p-hid-uses__item {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--hid-line);
  border-radius: 8px;
}
.p-hid-uses__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.2rem;
}
.p-hid-uses__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hid-line);
  border-radius: 8px;
}
.p-hid-uses__thumb img,
.p-hid-uses__thumb picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.p-hid-uses__title {
  margin: 0;
  color: var(--hid-ink);
  font-size: 17px;
  line-height: 1.5;
}
.p-hid-uses__detail {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}
.p-hid-uses__detail dt {
  margin-top: 0.8rem;
  color: var(--hid-muted);
  font-size: 13px;
  font-weight: 700;
}
.p-hid-uses__detail dt:first-child {
  margin-top: 0;
}
.p-hid-uses__detail dd {
  margin: 0;
}

/* シリーズ早見表 */
.p-hid-table-hint {
  margin: 0 0 0.8rem;
  color: var(--hid-muted);
  font-size: 14px;
}
@media (min-width: 1024px) {
  .p-hid-table-hint {
    display: none;
  }
}
.p-hid-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--hid-line);
  border-radius: 8px;
}
.p-hid-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
}
.p-hid-table caption {
  padding: 12px 16px;
  color: var(--hid-ink);
  font-weight: 700;
  text-align: left;
}
.p-hid-table th,
.p-hid-table td {
  padding: 10px 16px;
  border-top: 1px solid var(--hid-line);
  text-align: left;
  vertical-align: top;
}
.p-hid-table thead th {
  color: #fff;
  background: var(--hid-ink);
  font-size: 14px;
  white-space: nowrap;
}
.p-hid-table tbody th {
  white-space: nowrap;
  font-weight: 700;
}
.p-hid-table tbody tr:nth-child(even) {
  background: #f6f7f9;
}

/* 製品一覧のグループ */
.p-hid-group-nav {
  justify-content: center;
  margin-bottom: 2.4rem;
}
.p-hid-series-title {
  margin: 3.2rem 0 0.8rem;
  padding-left: 12px;
  border-left: 4px solid var(--hid-accent);
  color: var(--hid-ink);
  font-size: 20px;
  line-height: 1.5;
}
.p-hid-series-lead {
  margin: 0 0 1.6rem;
  font-size: 15px;
  line-height: 1.8;
}

/* 型番から探す */
.p-hid-models {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .p-hid-models {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .p-hid-models {
    grid-template-columns: repeat(3, 1fr);
  }
}
.p-hid-models__item {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--hid-line);
  border-radius: 8px;
}
.p-hid-models__title {
  margin: 0 0 0.8rem;
  font-size: 16px;
  line-height: 1.5;
}
.p-hid-models__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-hid-models__list li {
  padding: 2px 8px;
  background: #f1f3f6;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}

/* ご相談のメリット・流れ */
.p-hid-support {
  max-width: 1080px;
  margin: 0 auto;
}
.p-hid-steps-title {
  margin: 4rem 0 1.6rem;
  color: var(--hid-ink);
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}
.p-hid-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
@media (min-width: 768px) {
  .p-hid-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.p-hid-steps__item {
  position: relative;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--hid-line);
  border-radius: 8px;
}
.p-hid-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 0 0.8rem;
  color: #fff;
  background: var(--hid-accent);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
}
.p-hid-steps__title {
  margin: 0 0 0.6rem;
  color: var(--hid-ink);
  font-size: 17px;
  line-height: 1.5;
}
.p-hid-steps__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}
