@charset "UTF-8";
/* ==========================================================================
   AiSEG3 接続可否検索ページ
   サイト共通 CSS との干渉を避けるため .p-compat 配下にスコープする
   ========================================================================== */

.p-compat {
  --compat-text: #000;
  --compat-text-sub: #333;
  --compat-text-form: #1d2a30;
  --compat-border: #d7dee3;
  --compat-th-bg: #f2f2f2;
  --compat-row-alt: #f8fafc;
  --compat-primary: #0242c0;
  --compat-link: #2563eb;
  --compat-font-base: Arial, "Noto Sans JP", sans-serif;
  --compat-font-ui: "Noto Sans JP", sans-serif;
  --compat-font-mono: "Roboto Mono", monospace;

  box-sizing: border-box;
  max-width: 976px;
  margin: 0 auto;
  padding: 60px 0 74px;
  color: var(--compat-text);
  font-family: var(--compat-font-base);
  text-align: left;
}

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

.p-compat p {
  margin: 0;
}

.p-compat [hidden] {
  display: none !important;
}

/* ---------- 見出し・リード ---------- */
.p-compat__title {
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.15;
}

.p-compat__lead {
  margin-top: 47px !important;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.15;
}

.p-compat__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 38px;
  font-size: 14px;
  line-height: 1.15;
}

.p-compat__intro a {
  color: var(--compat-link);
  text-decoration: none;
}

.p-compat__intro a:hover,
.p-compat__intro a:focus-visible {
  text-decoration: underline;
}

.p-compat__section {
  margin-top: 38px;
}

.p-compat__result {
  margin-top: 32px;
}

.p-compat__heading {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.15;
}

.p-compat__result .p-compat__heading {
  margin-bottom: 23px;
}

.p-compat__message {
  font-family: var(--compat-font-ui);
  font-size: 14px;
  line-height: 1.5;
}

.p-compat__message:empty {
  display: none;
}

/* ---------- 検索フォーム ---------- */
.p-compat-search {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--compat-font-ui);
  color: var(--compat-text-form);
}

.p-compat-search__label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.p-compat-search__row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.p-compat-search__field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-compat-search__prefix {
  font-size: 14px;
  font-weight: 500;
}

.p-compat-search__input {
  width: 267px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 2px solid var(--compat-border);
  border-radius: 8px;
  background: #fff;
  color: var(--compat-text-sub);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.p-compat-search__input::placeholder {
  color: #bbb;
}

.p-compat-search__input:focus {
  border-color: var(--compat-primary);
  outline: none;
}

.p-compat-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 116px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--compat-primary);
  border-radius: 8px;
  background: var(--compat-primary);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.p-compat-search__button:hover {
  opacity: 0.8;
}

.p-compat-search__button:focus-visible {
  outline: 2px solid var(--compat-primary);
  outline-offset: 2px;
}

.p-compat-search__button img {
  display: block;
  flex-shrink: 0;
}

/* ---------- 検索結果テーブル ---------- */
.p-compat-table__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* SP のみ表示（サイト共通 .tableScroll の文言・スクロールバーに合わせる） */
.p-compat-table__hint {
  display: none;
}

.p-compat-table__table {
  width: 976px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: var(--compat-font-ui);
  color: var(--compat-text-sub);
}

.p-compat-table__table th,
.p-compat-table__table td {
  border: 0;
  border-right: 1px solid var(--compat-border);
  border-bottom: 1px solid var(--compat-border);
  vertical-align: middle;
  text-align: center;
}

.p-compat-table__table th {
  height: 78px;
  padding: 8px 6px 8px 10px;
  background: var(--compat-th-bg);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.p-compat-table__table td {
  height: 42px;
  padding: 4px 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.p-compat-table__table tbody tr:nth-child(even) td {
  background: var(--compat-row-alt);
}

.p-compat-table__no      { width: 38px; }
.p-compat-table__year    { width: 96px; }
.p-compat-table__series  { width: 62px; }
.p-compat-table__model   { width: 112px; }
.p-compat-table__color   { width: 50px; }
.p-compat-table__gateway { width: 168px; }
.p-compat-table__adapter { width: 150px; }
.p-compat-table__wlan    { width: 132px; }
.p-compat-table__aiseg   { width: 84px; }

.p-compat-table__table th.p-compat-table__no,
.p-compat-table__table td.is-no {
  text-align: right;
}

/* 3桁（最大 307 件）でも折り返さないよう左右の余白を詰める */
.p-compat-table__table td.is-no {
  padding-right: 6px;
  padding-left: 6px;
  white-space: nowrap;
}

.p-compat-table__table td.is-model {
  text-align: left;
}

.p-compat-table__table td.is-mono {
  font-family: var(--compat-font-mono);
}

.p-compat-table__table td.is-mark {
  font-size: 14px;
  font-weight: 700;
}

/* ---------- 終了告知ページへのリンク ---------- */
.p-compat__link {
  margin-top: 63px;
}

.p-compat__result[hidden] + .p-compat__link {
  margin-top: 50px;
}

.p-compat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border: 1px solid #000;
  border-radius: 35px;
  background: #fff;
  color: #000;
  font-family: var(--compat-font-base);
  font-size: 15px;
  font-weight: bold;
  line-height: 1.15;
  text-decoration: none;
  transition: opacity 0.2s;
}

.p-compat-btn:hover,
.p-compat-btn:focus-visible {
  color: #000;
  text-decoration: none;
  opacity: 0.7;
}

.p-compat-btn__icon {
  display: block;
  flex-shrink: 0;
  transform: rotate(-90deg);
}

/* ---------- SP ---------- */
@media screen and (max-width: 767px) {
  .p-compat {
    padding: 32px 16px 48px;
  }

  .p-compat__title {
    font-size: 18px;
    line-height: 1.4;
  }

  .p-compat__lead {
    margin-top: 28px !important;
    font-size: 16px;
    line-height: 1.5;
  }

  .p-compat__intro {
    margin-top: 24px;
    line-height: 1.6;
  }

  .p-compat__section {
    margin-top: 32px;
  }

  .p-compat-search__row {
    gap: 12px;
  }

  .p-compat-search__field {
    flex: 1 1 auto;
    min-width: 0;
  }

  .p-compat-search__input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    font-size: 16px; /* iOS のフォーカス時ズーム防止 */
  }

  .p-compat-search__button {
    flex: 0 0 auto;
    width: 88px;
  }

  .p-compat-table {
    margin-right: -16px;
  }

  .p-compat-table__hint {
    display: block;
    margin-bottom: 4px !important;
    font-family: var(--compat-font-ui);
    font-size: 12px;
    line-height: 1.5;
  }

  .p-compat-table__scroll::-webkit-scrollbar {
    height: 8px;
  }

  .p-compat-table__scroll::-webkit-scrollbar-thumb {
    background: #bcbcbc;
  }

  .p-compat-table__scroll::-webkit-scrollbar-track-piece:start,
  .p-compat-table__scroll::-webkit-scrollbar-track-piece:end {
    background: #f1f1f1;
  }

  .p-compat__link,
  .p-compat__result[hidden] + .p-compat__link {
    margin-top: 40px;
  }
}
