/* =========================================================
   AdvaNceD IoT 共通スタイル（tokens.css の後に読み込む）
   部品の使い方は design-system/README.md と design-system/index.html を見ること
   ========================================================= */

/* ---------- 1. 基本 ---------- */
/* hidden 属性は、要素側の display 指定より必ず優先する（絞り込みボタンで隠すため） */
[hidden] {
  display: none !important;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-feature-settings: "palt" 0;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--c-blue-deep);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--r-sm);
}
h1,
h2,
h3,
h4 {
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
  margin: 0;
  font-weight: 700;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  background: var(--c-ink);
  color: var(--c-white);
  padding: 8px 16px;
  border-radius: var(--r-sm);
}
.skip-link:focus {
  top: 8px;
}
.nowrap {
  white-space: nowrap;
}
.wbr-keep {
  word-break: keep-all;
  overflow-wrap: break-word;
} /* 見出しを文節で折り返したい時に付ける */

/* ---------- 2. レイアウト ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}
.section {
  padding-block: var(--section-y);
}
.section--sky {
  background: var(--c-sky);
}
.section--gray {
  background: var(--c-gray-50);
}
.section--tight {
  padding-block: calc(var(--section-y) * 0.6);
}

/* セクション見出し：左寄せ＋下に短い青線（ブランドの「タイトル下に水平線」） */
.section-head {
  margin-bottom: var(--sp-6);
  max-width: 46em;
}
.section-head h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: var(--sp-4);
  background: var(--c-blue);
  border-radius: 2px;
}
.section-head p {
  margin-top: var(--sp-5);
  font-size: var(--fs-md);
  color: var(--c-ink);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center h2::after {
  margin-inline: auto;
}
.section-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
}

/* ---------- 3. ボタン（ブランド指定：ピル型） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: 12px 28px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition:
    opacity 0.3s,
    background-color 0.3s,
    color 0.3s;
  white-space: nowrap;
}
.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}
.btn--primary {
  background: var(--c-ink);
  color: var(--c-white);
} /* 資料請求など一番押してほしい行動 */
.btn--blue {
  background: var(--c-blue-deep);
  color: var(--c-white);
} /* 2番目の行動・青い面の上では使わない */
.btn--outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn--white {
  background: var(--c-white);
  color: var(--c-ink);
} /* 青・黒の面の上の主ボタン */
.btn--ghost-white {
  background: transparent;
  color: var(--c-white);
  border-color: var(--c-white);
}
.btn--sm {
  min-height: 40px;
  padding: 6px 18px;
  font-size: var(--fs-sm);
}
.btn--lg {
  min-height: 60px;
  padding: 14px 36px;
  font-size: var(--fs-md);
}
.btn--block {
  width: 100%;
}
.btn .icon {
  width: 1.2em;
  height: 1.2em;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--c-blue-deep);
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}
.text-link .icon {
  width: 1em;
  height: 1em;
}

/* ---------- 4. ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-white);
  border-bottom: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--header-h);
}
.site-header__logo {
  display: flex;
  align-items: center;
  flex: none;
}
.site-header__logo img {
  height: 44px;
  width: auto;
  align-self: center;
}
.gnav {
  display: none;
  margin-left: auto;
}
.gnav > ul {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
}
.gnav__link,
.gnav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  font-size: var(--fs-base);
  color: var(--c-ink);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.gnav__link:hover,
.gnav__toggle:hover,
.gnav__toggle[aria-expanded="true"] {
  color: var(--c-blue-deep);
  background: var(--c-sky);
}
.gnav__toggle .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.2s;
}
.gnav__toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.site-header__actions {
  display: none;
  align-items: center;
  gap: var(--sp-4);
  flex: none;
}
.header-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.35;
  text-decoration: none;
  color: var(--c-ink);
}
.header-tel strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
}
.header-tel strong .icon {
  color: var(--c-blue-deep);
}
.header-tel small {
  font-size: var(--fs-xs);
  color: var(--c-gray-600);
}
.burger {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-sky);
  color: var(--c-ink);
  cursor: pointer;
}
.burger .icon {
  width: 26px;
  height: 26px;
}
@media (min-width: 1100px) {
  .gnav {
    display: block;
  }
  .site-header__actions {
    display: flex;
  }
  .burger {
    display: none;
  }
}

/* 製品メガメニュー（PC） */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--c-white);
  border-top: var(--line);
  border-bottom: var(--line);
  padding-block: var(--sp-6) var(--sp-7);
}
.mega[hidden] {
  display: none;
}
.mega__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-6);
}
.mega__cat h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-gray-600);
  font-weight: 700;
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-2);
  border-bottom: 2px solid var(--c-blue);
}
.mega__cat img {
  width: 56px;
  height: 56px;
}
.mega__cat ul {
  list-style: none;
}
.mega__cat a {
  display: block;
  padding: 6px 0;
  color: var(--c-ink);
  text-decoration: none;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.mega__cat a:hover {
  color: var(--c-blue-deep);
  text-decoration: underline;
}
.mega__foot {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: var(--line);
  display: flex;
  justify-content: flex-end;
}

/* スマホメニュー（ドロワー） */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--c-white);
  overflow-y: auto;
  padding: var(--sp-4) var(--gutter) var(--sp-8);
}
.drawer[hidden] {
  display: none;
}
.drawer details {
  border-bottom: var(--line);
}
.drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.drawer summary::-webkit-details-marker {
  display: none;
}
.drawer summary .icon {
  transition: transform 0.2s;
}
.drawer details[open] summary .icon {
  transform: rotate(180deg);
}
.drawer details ul {
  list-style: none;
  padding-bottom: var(--sp-3);
}
.drawer details a {
  display: block;
  padding: 10px 0 10px var(--sp-4);
  color: var(--c-ink);
  text-decoration: none;
}
.drawer__links {
  list-style: none;
}
.drawer__links a {
  display: block;
  padding: 14px 0;
  border-bottom: var(--line);
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
}
.drawer__cta {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
body.is-menu-open {
  overflow: hidden;
}

/* ---------- 5. パンくず ---------- */
.breadcrumb {
  padding-block: var(--sp-4);
  font-size: var(--fs-sm);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  list-style: none;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: var(--c-gray-600);
}
.breadcrumb li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 12px;
  border-top: 1.5px solid var(--c-gray-600);
  border-right: 1.5px solid var(--c-gray-600);
  transform: rotate(45deg);
}
.breadcrumb a {
  color: var(--c-gray-600);
}
.breadcrumb [aria-current] {
  color: var(--c-ink);
}

/* ---------- 6. ページ見出し（製品ページの先頭） ---------- */
.page-hero {
  padding-block: var(--sp-6) var(--sp-8);
}
.page-hero__grid {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 900px) {
  .page-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}
.page-hero__cat {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-blue-deep);
  margin-bottom: var(--sp-3);
}
.page-hero h1 {
  font-size: var(--fs-2xl);
  font-weight: 900;
}
.page-hero h1 .page-hero__cat {
  display: block; /* 見出しの前置き（検索される言葉）を、見た目は従来のラベルのまま見出しに含める */
}
.page-hero__lead {
  margin-top: var(--sp-5);
  font-size: var(--fs-md);
}
.page-hero .btn-row {
  margin-top: var(--sp-6);
}
.page-hero__media {
  background: var(--c-gray-50);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.page-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- 7. バッジ・タグ ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--r-sm);
  background: var(--c-sky);
  color: var(--c-blue-deep);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.7;
}
.tag--gray {
  background: var(--c-gray-50);
  color: var(--c-gray-600);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-white);
  background: var(--c-blue-deep);
}
.badge--red {
  background: var(--c-red);
} /* サブブランド「HOTEL Edition」など */
.badge--line {
  background: var(--c-white);
  color: var(--c-blue-deep);
  border: 1.5px solid var(--c-blue-deep);
} /* 補助金対象・連携など */

/* ---------- 8. 製品カード（一覧・関連製品） ---------- */
.product-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  list-style: none;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-white);
  border: var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.3s;
}
.product-card:hover {
  border-color: var(--c-blue);
}
.product-card__media {
  background: var(--c-gray-50);
}
.product-card__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  flex: 1;
}
.product-card__name {
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.55;
}
.product-card__name a {
  color: var(--c-ink);
  text-decoration: none;
}
.product-card__name a::after {
  content: "";
  position: absolute;
  inset: 0;
} /* カード全体を押せる */
.product-card__name a:focus-visible {
  box-shadow: none;
}
.product-card:has(a:focus-visible) {
  box-shadow: var(--focus);
}
.product-card__text {
  font-size: var(--fs-sm);
  color: var(--c-gray-600);
  line-height: 1.75;
}
.product-card .tag-list {
  margin-top: auto;
  padding-top: var(--sp-2);
}
.product-card__ext {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-xs);
  color: var(--c-gray-600);
}

/* ---------- 9. 課題（お悩み）・特徴・利用シーン ---------- */
/* 課題：1枚の枠にまとめた「お悩みリスト」（カードを並べない） */
.pain-list {
  list-style: none;
  border: var(--line);
  border-radius: var(--r-md);
  background: var(--c-white);
}
.pain-list li {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-5);
  font-weight: 500;
}
.pain-list li + li {
  border-top: var(--line);
}
.pain-list .icon {
  color: var(--c-red);
  width: 1.5em;
  height: 1.5em;
  margin-top: 2px;
}

/* 特徴：番号は「並び順に意味がある時だけ」。普段はアイコン＋見出し＋本文の2列 */
.feature-list {
  display: grid;
  gap: var(--sp-7) var(--sp-8);
  list-style: none;
}
@media (min-width: 768px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}
.feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-4);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(140deg, #4f95ff 0%, var(--c-blue) 45%, var(--c-blue-deep) 100%);
  color: var(--c-white);
  box-shadow: 0 8px 18px rgba(30, 95, 190, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.feature__icon .icon {
  width: 30px;
  height: 30px;
}
.feature h3 {
  font-size: var(--fs-lg);
}
.feature p {
  margin-top: var(--sp-2);
}

/* 利用シーン：写真＋短文（横スクロールしない） */
.scene-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  list-style: none;
}
.scene figure {
  margin: 0;
}
.scene img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--c-gray-50);
}
.scene figcaption {
  margin-top: var(--sp-3);
}
.scene figcaption strong {
  display: block;
  font-size: var(--fs-md);
}

/* チェックリスト（特徴の箇条書き） */
.check-list {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
}
.check-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.check-list .icon {
  color: var(--c-blue-deep);
  width: 1.4em;
  height: 1.4em;
  margin-top: 3px;
}

/* ---------- 10. 表（仕様・料金・比較） ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #c9d6ea;
  border-radius: var(--r-md);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-base);
  background: var(--c-white);
}
.table th,
.table td {
  padding: 14px 18px;
  border-bottom: 1px solid #d5e0ef;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.table tr:last-child th,
.table tr:last-child td {
  border-bottom: 0;
}
.table thead th {
  background: var(--c-blue-deep);
  color: var(--c-white);
  font-weight: 700;
  white-space: nowrap;
}
.table tbody th {
  font-weight: 700;
  background: #dfeafb;
  color: var(--c-blue-deep);
  border-right: 1px solid #c9d6ea;
  width: 30%;
  min-width: 9em;
}
/* 料金表：ブランド指定（青い見出し行＋偶数行ライトブルー＋税抜・消費税・税込） */
.price-table tbody tr:nth-child(even) td,
.price-table tbody tr:nth-child(even) th {
  background: var(--c-sky);
}
.price-table tbody th {
  background: var(--c-white);
  color: var(--c-ink);
  border-right: 0;
  width: auto;
}
.price-table td.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-table td.total {
  font-weight: 700;
  font-size: var(--fs-md);
}
.price-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  font-size: var(--fs-lg);
  padding-bottom: var(--sp-3);
}
/* スマホでは料金表を「項目名＋税抜・消費税・税込の横並び」のカードにする
   （4列のままだと税込の列が画面外に出て、横にずらさないと見えないため）。
   各セルの見出しは data-l 属性（tools/price_table_labels.py が thead から付ける） */
@media (max-width: 599px) {
  .table-wrap:has(> .price-table) { overflow-x: visible; }
  .price-table { min-width: 0; width: 100%; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .price-table tbody tr { display: flex; flex-wrap: wrap; }
  .price-table tbody th { flex: 0 0 100%; padding-inline: var(--sp-3); }
  .price-table tbody td,
  .price-table tbody td.num { flex: 1 1 0; min-width: 0; padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); overflow-wrap: anywhere; white-space: normal; text-align: left; }
  .price-table tbody td.total { font-size: var(--fs-sm); }
  .price-table tbody td[colspan] { flex-basis: 100%; }
  .price-table td[data-l]::before { content: attr(data-l); display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--c-gray-600); }
}
/* 比較表（通常版とLite版など） */
.compare-table thead th:first-child {
  background: var(--c-white);
  color: var(--c-ink);
}
.compare-table td {
  text-align: center;
}
.compare-table .yes {
  color: var(--c-blue-deep);
  font-weight: 700;
}
.compare-table .no {
  color: var(--c-gray-600);
}

/* ---------- 11. 注釈・情報ボックス ---------- */
.note {
  font-size: var(--fs-sm);
  color: var(--c-red);
  line-height: 1.7;
}
.note-list {
  list-style: none;
  display: grid;
  gap: 4px;
  margin-top: var(--sp-3);
}
.note-list li {
  font-size: var(--fs-sm);
  color: var(--c-red);
  padding-left: 1.2em;
  text-indent: -1.2em;
}
.note-list li::before {
  content: "※";
  display: inline-block;
  width: 1.2em;
  text-indent: 0;
}
.info-box {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--c-sky);
}
.info-box > .icon {
  color: var(--c-blue-deep);
  width: 1.6em;
  height: 1.6em;
}
.info-box strong {
  color: var(--c-blue-deep);
}
.info-box--warn {
  background: var(--c-white);
  border: 1.5px solid var(--c-red);
}
.info-box--warn > .icon {
  color: var(--c-red);
}

/* ---------- 12. STEP（導入の流れ） ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: var(--sp-5);
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(var(--steps, 4), 1fr);
    gap: 0;
  }
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  align-content: start; /* 背の高い隣の手順に合わせて行が伸び、段違いになるのを防ぐ */
  counter-increment: step;
}
@media (min-width: 900px) {
  .step {
    grid-template-columns: 1fr;
    padding-right: var(--sp-5);
  }
  .step::after {
    content: "";
    position: absolute;
    top: 27px;
    left: 64px;
    right: 0;
    height: 2px;
    background: var(--c-blue);
    opacity: 0.35;
  }
  .step:last-child::after {
    display: none;
  }
}
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-blue-deep);
  color: var(--c-white);
  font-weight: 900;
  font-size: var(--fs-lg);
  line-height: 1;
}
.step__num::before {
  content: counter(step);
}
.step__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-blue-deep);
  letter-spacing: 0.08em;
}
.step h3 {
  font-size: var(--fs-md);
  margin-top: 2px;
}
.step p {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-gray-600);
}

/* ---------- 13. FAQ（details を使う） ---------- */
.faq {
  border-top: var(--line);
}
.faq details {
  border-bottom: var(--line);
}
.faq summary {
  display: grid;
  grid-template-columns: 2em 1fr 24px;
  gap: var(--sp-3);
  align-items: start;
  padding: var(--sp-5) 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1.6;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: "Q";
  color: var(--c-blue);
  font-weight: 900;
  font-size: var(--fs-lg);
  line-height: 1.3;
}
.faq summary .icon {
  margin-top: 4px;
  transition: transform 0.2s;
  color: var(--c-gray-600);
}
.faq details[open] summary .icon {
  transform: rotate(180deg);
}
.faq__a {
  display: grid;
  grid-template-columns: 2em 1fr;
  gap: var(--sp-3);
  padding: 0 32px var(--sp-5) 0;
}
.faq__a::before {
  content: "A";
  color: var(--c-red);
  font-weight: 900;
  font-size: var(--fs-lg);
  line-height: 1.3;
}

/* ---------- 14. 導入事例 ---------- */
.case-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  list-style: none;
}
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.case-card__media {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-gray-50);
}
.case-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s;
}
.case-card:hover .case-card__media img {
  transform: scale(1.03);
}
.case-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-4);
}
.case-card__title {
  margin-top: var(--sp-2);
  font-size: var(--fs-md);
  line-height: 1.6;
}
.case-card__title a {
  color: var(--c-ink);
  text-decoration: none;
}
.case-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.case-card:hover .case-card__title a {
  color: var(--c-blue-deep);
}
.case-card:has(a:focus-visible) {
  box-shadow: var(--focus);
  border-radius: var(--r-md);
}
.case-card__title a:focus-visible {
  box-shadow: none;
}
.case-card__place {
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: var(--c-gray-600);
}
/* 絞り込みタブ（事例一覧・お知らせ一覧） */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin-bottom: var(--sp-6);
}
.filter-tabs button,
.filter-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--c-gray-100);
  background: var(--c-white);
  color: var(--c-ink);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.filter-tabs [aria-pressed="true"],
.filter-tabs [aria-current="page"] {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-white);
}
/* 導入先の名簿（社名を並べるだけの台帳。カードにしない） */
.ledger {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 900px) {
  .ledger {
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    gap: var(--sp-7);
  }
}
.ledger h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-base);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--c-ink);
}
.ledger ul {
  list-style: none;
}
.ledger li {
  padding: 9px 0;
  border-bottom: var(--line);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ---------- 15. お知らせ一覧・記事本文 ---------- */
.news-list {
  list-style: none;
  border-top: var(--line);
}
.news-list li {
  border-bottom: var(--line);
}
.news-list a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px var(--sp-5);
  padding: var(--sp-5) 0;
  color: var(--c-ink);
  text-decoration: none;
}
@media (min-width: 768px) {
  .news-list a {
    grid-template-columns: 7.5em 9em 1fr;
    align-items: baseline;
  }
  /* 「販売終了」など2つ目のタグは種類の下に置き、題名は3列目に固定する */
  .news-list__title { grid-column: 3; grid-row: 1 / span 2; }
  .news-list .tag + .tag { grid-column: 2; grid-row: 2; }
}
.news-list time {
  font-size: var(--fs-sm);
  color: var(--c-gray-600);
  font-variant-numeric: tabular-nums;
}
.news-list .tag {
  justify-self: start;
}
.news-list__title {
  line-height: 1.7;
}
.news-list a:hover .news-list__title {
  color: var(--c-blue-deep);
  text-decoration: underline;
}
/* 記事本文（WordPress の本文にそのまま当てる） */
.prose {
  font-size: var(--fs-base);
}
.prose > * + * {
  margin-top: 1.4em;
}
.prose h2 {
  font-size: var(--fs-xl);
  margin-top: 2.4em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--c-blue);
}
.prose h3 {
  font-size: var(--fs-lg);
  margin-top: 2em;
  padding-left: 0.7em;
  border-left: 4px solid var(--c-blue);
}
.prose ul,
.prose ol {
  padding-left: 1.5em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose img {
  border-radius: var(--r-md);
}
.prose figcaption {
  font-size: var(--fs-sm);
  color: var(--c-gray-600);
  margin-top: var(--sp-2);
}
.prose blockquote {
  margin: 0;
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-sky);
  border-radius: var(--r-md);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
}
.prose th,
.prose td {
  border: var(--line);
  padding: 10px 14px;
}

/* ---------- 16. 動画・資料ダウンロード ---------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-ink);
}
.video iframe,
.video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(50, 55, 60, 0.35);
  color: var(--c-white);
  cursor: pointer;
}
.video__play .icon {
  width: 80px;
  height: 80px;
}
.download {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border: var(--line);
  border-radius: var(--r-md);
  color: var(--c-ink);
  text-decoration: none;
}
.download .icon {
  width: 36px;
  height: 36px;
  color: var(--c-blue-deep);
}
.download small {
  display: block;
  color: var(--c-gray-600);
  font-size: var(--fs-xs);
}
.download:hover {
  border-color: var(--c-blue);
}

/* ---------- 17. 資料請求への誘導帯 ---------- */
.cta-band {
  background: var(--c-blue-deep);
  color: var(--c-white);
  padding-block: var(--sp-8);
}
.cta-band__grid {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 900px) {
  .cta-band__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--sp-8);
  }
}
.cta-band h2 {
  font-size: var(--fs-xl);
}
.cta-band p {
  margin-top: var(--sp-3);
}
.cta-band__actions {
  display: grid;
  gap: var(--sp-3);
}
.cta-band__tel {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-white);
  text-decoration: none;
  margin-top: var(--sp-2);
}
.cta-band__tel strong {
  font-size: var(--fs-lg);
  letter-spacing: 0.06em;
}
.cta-band__tel small {
  display: block;
  font-size: var(--fs-xs);
  opacity: 0.9;
}
.cta-band :focus-visible {
  box-shadow:
    0 0 0 3px var(--c-blue-deep),
    0 0 0 5px var(--c-white);
}

/* ---------- 18. フォーム部品（共通フォーム /contact/ で使う） ---------- */
.form {
  display: grid;
  gap: var(--sp-6);
}
.field {
  display: grid;
  gap: var(--sp-2);
}
.field__label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
}
.req {
  display: inline-block;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--c-red);
  color: var(--c-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.7;
}
.opt {
  display: inline-block;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--c-gray-100);
  color: var(--c-gray-600);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.7;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--c-gray-600);
  border-radius: var(--r-sm);
  background: var(--c-white);
  color: var(--c-ink);
  font: inherit;
  line-height: 1.6;
}
.textarea {
  min-height: 160px;
  resize: vertical;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--c-blue-deep);
  box-shadow: 0 0 0 3px var(--c-sky);
}
.field__help {
  font-size: var(--fs-sm);
  color: var(--c-gray-600);
}
.field__error {
  display: none;
  font-size: var(--fs-sm);
  color: var(--c-red);
  font-weight: 700;
}
.field.is-error .input,
.field.is-error .select,
.field.is-error .textarea {
  border-color: var(--c-red);
  background: #fff5f5;
}
.field.is-error .field__error {
  display: block;
}
.choice-group {
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  border: 0;
  padding: 0;
  margin: 0;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: 12px 14px;
  border: 1.5px solid var(--c-gray-100);
  border-radius: var(--r-sm);
  cursor: pointer;
  line-height: 1.6;
}
.choice input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--c-blue-deep);
  flex: none;
}
.choice:has(input:checked) {
  border-color: var(--c-blue-deep);
  background: var(--c-sky);
}
.form-done {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-sky);
}
.form-done .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--sp-4);
  color: var(--c-blue-deep);
}

/* ---------- 19. フッター ---------- */
.site-footer {
  background: var(--c-ink);
  color: var(--c-white);
  padding-block: var(--sp-8) var(--sp-6);
  font-size: var(--fs-sm);
}
.site-footer a {
  color: var(--c-white);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer :focus-visible {
  box-shadow:
    0 0 0 3px var(--c-ink),
    0 0 0 5px var(--c-white);
}
.site-footer__top {
  display: grid;
  gap: var(--sp-7);
}
@media (min-width: 1000px) {
  .site-footer__top {
    grid-template-columns: 280px 1fr;
    gap: var(--sp-8);
  }
}
.site-footer__brand img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  align-self: flex-start;
}
.site-footer__company {
  margin-top: var(--sp-5);
  line-height: 1.9;
}
.site-footer__company strong {
  display: block;
  font-size: var(--fs-base);
}
.site-footer__tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-3);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.site-footer__nav {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
}
.site-footer__nav h2 {
  font-size: var(--fs-sm);
  font-weight: 700;
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.site-footer__nav ul {
  list-style: none;
}
.site-footer__nav li a {
  display: block;
  padding: 5px 0;
  line-height: 1.6;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  list-style: none;
}
.site-footer small {
  font-size: var(--fs-xs);
}

/* スマホ下部の固定ボタン（資料請求・電話） */
.sp-fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: var(--line);
}
.sp-fixed-cta .btn {
  min-height: 48px;
  padding-inline: 12px;
}
@media (min-width: 1100px) {
  .sp-fixed-cta {
    display: none;
  }
}
@media (max-width: 1099px) {
  body {
    padding-bottom: 72px;
  }
}

/* ---------- 20. 分類ごとの製品一覧（build.py の @product-catalog が出力） ---------- */
.catalog { display: grid; gap: var(--sp-8); }
.catalog__row { display: grid; gap: var(--sp-5); padding-top: var(--sp-6); border-top: 2px solid var(--c-ink); }
.catalog__head { display: grid; grid-template-columns: 88px 1fr; column-gap: var(--sp-4); align-items: center; }
.catalog__head img { grid-row: span 3; width: 88px; height: 88px; }
.catalog__head h3 { font-size: var(--fs-lg); }
.catalog__head p { font-size: var(--fs-sm); color: var(--c-gray-600); line-height: 1.7; }
.catalog__count { font-size: var(--fs-xs); font-weight: 700; color: var(--c-blue-deep); }
@media (min-width: 1000px) {
  .catalog__row { grid-template-columns: 240px 1fr; gap: var(--sp-7); }
  .catalog__head { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  .catalog__head img { width: 168px; height: 168px; margin: calc(var(--sp-4) * -1) 0 var(--sp-2) calc(var(--sp-4) * -1); }
  .catalog__head h3 { font-size: var(--fs-lg); word-break: keep-all; overflow-wrap: anywhere; }
  .catalog__head p { margin-top: var(--sp-2); font-size: var(--fs-base); }
  .catalog__count { display: block; margin-top: var(--sp-3); }
}
.catalog .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: var(--sp-4); }
@media (max-width: 599px) {
  .catalog .product-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .catalog .product-card__body { padding: var(--sp-3); }
  .catalog .product-card__text, .catalog .product-card .tag-list { display: none; }
  .catalog .product-card__name { font-size: var(--fs-sm); }
}
.catalog__band { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); background: var(--c-white); border: 1.5px solid var(--c-blue-deep); color: var(--c-ink); text-decoration: none; }
.catalog__band img { width: 72px; height: 72px; flex: none; }
.catalog__band span { flex: 1; font-size: var(--fs-sm); }
.catalog__band strong { display: block; font-size: var(--fs-base); color: var(--c-blue-deep); }
.catalog__band > .icon { color: var(--c-blue-deep); }
.catalog__band:hover strong { text-decoration: underline; }
.news-list--nodate a { grid-template-columns: 1fr; }
@media (min-width: 768px) { .news-list--nodate a { grid-template-columns: 10em 1fr; } }
@media (min-width: 1000px) {
  .case-grid--4 { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
}

/* 赤い文字は白の上でないと読みにくい（#E60012 は白の上で 4.6:1）。色つきの面の上では白い下地を敷く */
.section--gray .note-list, .section--sky .note-list, .section--gray .note, .section--sky .note { background: var(--c-white); padding: 8px 12px; border-radius: var(--r-sm); }
.field.is-error .field__error { display: inline-block; justify-self: start; background: var(--c-white); padding: 2px 8px; border-radius: 4px; }
.price-table thead th:not(:first-child) { text-align: right; }
.compare-table thead th:not(:first-child) { text-align: center; }
@media (max-width: 599px) {
  .catalog__band { flex-wrap: wrap; }
  .catalog__band img { width: 56px; height: 56px; }
  .catalog__band span { flex-basis: calc(100% - 80px); }
  .catalog__band > .icon { display: none; }
}
/* スマホ下部の固定ボタンは、ページ先頭を過ぎてから出す（site.js が is-scrolled を付ける） */
@media (max-width: 1099px) {
  .sp-fixed-cta { transform: translateY(110%); transition: transform .25s; }
  body.is-scrolled .sp-fixed-cta { transform: none; }
}

/* スマホの製品一覧は「写真＋名前＋一言」の横並びリストにして、説明を残しつつ縦の長さを抑える */
@media (max-width: 599px) {
  .catalog .product-grid { grid-template-columns: 1fr; gap: var(--sp-2); }
  .catalog .product-card { flex-direction: row; align-items: stretch; }
  .catalog .product-card__media { flex: none; width: 96px; }
  .catalog .product-card__media img { height: 100%; }
  .catalog .product-card__body { padding: var(--sp-3) var(--sp-4); gap: 2px; }
  .catalog .product-card__name { font-size: var(--fs-base); }
  .catalog .product-card__text { display: block; font-size: var(--fs-sm); line-height: 1.6; }
  .catalog .product-card .tag-list { display: none; }
}
/* 新しいタブで開くリンクの目印 */
.ext-mark { display: inline-block; width: .9em; height: .9em; margin-left: 2px; vertical-align: -0.05em; }
@media (max-width: 899px) {
  .ledger ul { columns: 2; column-gap: var(--sp-4); }
  .ledger li { break-inside: avoid; }
}

/* フロント業務の置き換え（スマートチェックイン）：イラストつきのカードで強く見せる */
.front-tasks {
  margin-top: var(--sp-8);
  padding: var(--sp-7) var(--sp-6);
  background: var(--c-sky);
  border-radius: var(--r-lg);
}
.front-tasks > h3 {
  font-size: var(--fs-xl);
  font-weight: 900;
}
.front-tasks__lead {
  margin-top: var(--sp-4);
  max-width: 46em;
}
.front-tasks__lead strong {
  color: var(--c-blue-deep);
}
.front-grid {
  list-style: none;
  margin-top: var(--sp-6);
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.front-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  text-align: center;
}
.front-card img {
  width: 140px;
  height: 140px;
  margin-inline: auto;
}
.front-card h4 {
  margin-top: var(--sp-3);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.front-card p {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  text-align: left;
}

/* お悩み：イラストつきのカード */
.pain-grid {
  list-style: none;
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.pain-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  background: var(--c-white);
  border: var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
}
.pain-card img {
  flex: none;
  width: 140px;
  height: 140px;
}
.pain-card p {
  font-weight: 700;
  line-height: 1.6;
}

/* 連携先のロゴ（表・比較表） */
.pms-table td.pms-logo {
  width: 40%;
  background: var(--c-white);
}
.pms-table td.pms-logo img {
  display: block;
  max-width: 100%;
  height: 40px;
  width: auto;
  object-fit: contain;
}
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-2);
}
.logo-strip img {
  height: 24px;
  width: auto;
}

/* 改行：日本語は文節で折り返し、最後の行に1〜2文字だけ残らないようにする */
h1, h2, h3, h4 {
  word-break: auto-phrase;
  text-wrap: balance;
}
/* 本文：文節単位の折り返しは行末に大きな空きができるため使わない */
p, li, dd, figcaption, td {
  word-break: normal;
  line-break: strict;
  text-wrap: pretty; /* 最後の行に数文字だけ残るのを防ぐ。balance は全行を短くそろえて枠の右に空きができるので本文には使わない */
  overflow-wrap: break-word;
}

/* 休止プラン：料金の手前で目立たせるバナー */
.pause-plan {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  margin-top: var(--sp-6);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--c-blue-deep) 0%, var(--c-blue) 70%, #4f95ff 100%);
  color: var(--c-white);
  box-shadow: 0 14px 34px rgba(30, 95, 190, 0.28);
}
.pause-plan::before,
.pause-plan::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}
.pause-plan::before { width: 340px; height: 340px; right: -90px; top: -150px; }
.pause-plan::after { width: 200px; height: 200px; right: 160px; bottom: -130px; }
.pause-plan > * { position: relative; }
.pause-plan__label {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--c-white);
  color: var(--c-blue-deep);
  font-size: var(--fs-sm);
  font-weight: 900;
}
.pause-plan h3 {
  margin-top: var(--sp-3);
  color: var(--c-white);
  font-size: clamp(1.25rem, 1.2vw + 0.9rem, 1.75rem);
  font-weight: 900;
}
.pause-plan__body p:not(.pause-plan__label) {
  margin-top: var(--sp-2);
  color: rgba(255, 255, 255, 0.92);
}
.pause-plan__price {
  display: grid;
  justify-items: center;
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--r-md);
  background: var(--c-white);
  color: var(--c-blue-deep);
  text-align: center;
  white-space: nowrap;
}
.pause-plan__price span { font-size: var(--fs-sm); font-weight: 700; }
.pause-plan__price strong { font-size: 3.2rem; font-weight: 900; line-height: 1.1; }
.pause-plan__price small { font-size: 1.2rem; margin-left: 2px; }
@media (min-width: 768px) {
  .pause-plan { grid-template-columns: 1fr auto; padding: var(--sp-7) var(--sp-8); gap: var(--sp-7); }
}

/* 料金表：金額は中央そろえ */
.price-table td.num,
.price-table thead th:not(:first-child) {
  text-align: center;
}

/* 機能の説明：アイコンの代わりにイラスト */
.feature__illust {
  flex: none;
  width: 112px;
  height: 112px;
}
.feature:has(> .feature__illust) {
  grid-template-columns: 112px 1fr;
  align-items: center;
}
.front-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.front-tasks + .method-sub { margin-top: var(--sp-7); }
.pms-table td.pms-logo { width: 30%; }
/* 答えが2段落以上でも、2つ目以降は本文の列に並べる（「A」の細い列に入って縦書きのように崩れるのを防ぐ） */
.faq__a > :not(:first-child) {
  grid-column: 2;
}

/* スマホ：料金表以外の表も、横にはみ出さないよう縦積みのカードにする（列名は data-l で各値の上に出す） */
@media (max-width: 600px) {
  .table-wrap:has(> .table:not(.price-table)) { overflow-x: visible; }
  .table:not(.price-table) { min-width: 0; width: 100%; }
  .table:not(.price-table) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table:not(.price-table) tr { display: block; border-bottom: var(--line); }
  .table:not(.price-table) th,
  .table:not(.price-table) td { display: block; width: 100%; text-align: left; border: 0; }
  .table:not(.price-table) tbody th { padding-bottom: 0; }
  .table:not(.price-table) td[data-l]::before { content: attr(data-l); display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--c-gray-600); }
}

/* 見出し（page-hero）のすぐ下に続く詰めた節は、上の余白を重ねない（全ページ共通。11/2 田中さん「スペースが無駄」） */
.page-hero:has(+ .section--tight) { padding-bottom: var(--sp-5); }
.page-hero + .section--tight { padding-top: 0; }
/* スマホ：値の列が1つだけの料金表は、各行に「価格（税抜）」を繰り返さない（表の下の注記で税抜と示す） */
@media (max-width: 600px) {
  .price-table:not(:has(thead th:nth-child(3))) td[data-l]::before { content: none; }
}

/* トップ「設計から保守まで」：図面・画面・設置写真つきの3枚 */
.why-cards {
  list-style: none;
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.why-card {
  background: var(--c-sky);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.why-card__media {
  height: 240px;
  display: grid;
  place-items: center;
  background: var(--c-white);
  border-radius: var(--r-md, 12px);
  overflow: hidden;
}
.why-card__media img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: contain;
}
.why-card:last-child .why-card__media img {
  object-fit: cover;
}
.why-card h3 {
  margin-top: var(--sp-4);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.why-card p {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
}

/* 補助金パッケージ：製品カードではなく導入支援のバナーとして見せる */
.catalog__band {
  margin-top: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  background: linear-gradient(100deg, var(--c-blue-deep) 0%, var(--c-blue) 100%);
  border: 0;
  color: var(--c-white);
  box-shadow: 0 8px 24px rgba(30, 95, 190, 0.18);
}
.catalog__band img { width: 96px; height: 96px; background: var(--c-white); border-radius: 50%; padding: 8px; }
.catalog__band span { font-size: var(--fs-sm); color: rgba(255,255,255,.92); }
.catalog__band em { display: inline-block; font-style: normal; font-size: var(--fs-xs); font-weight: 700; background: var(--c-white); color: var(--c-blue-deep); border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.catalog__band strong { color: var(--c-white); font-size: var(--fs-lg); }
.catalog__band .catalog__band-cta { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 10px 18px; border-radius: 999px; background: var(--c-white); color: var(--c-blue-deep); font-weight: 700; }
.catalog__band:hover strong { text-decoration: none; }
.catalog__band:hover .catalog__band-cta { opacity: .9; }
@media (max-width: 599px) { .catalog__band .catalog__band-cta { flex-basis: 100%; justify-content: center; } }

/* 連携先のロゴ：ロゴの下に名前を置いたタイルの一覧 */
.logo-grid {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  margin-top: var(--sp-4);
}
.logo-tile {
  display: grid;
  grid-template-rows: 72px auto;
  align-items: center;
  justify-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-3);
  background: var(--c-white);
  border: var(--line);
  border-radius: var(--r-md, 12px);
  text-align: center;
}
.logo-tile__img img { max-width: 140px; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.logo-tile__name { font-size: var(--fs-sm); font-weight: 700; line-height: 1.4; }

/* 説明文の1文：入りきるときは文の区切りで改行し、文の途中では折り返さない（長い文は中で折り返す） */
.sent { display: inline; }

/* 料金表の上の小見出し（初期費用／月額費用の区別を見せる） */
.price-sub-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-6) 0 var(--sp-3);
  font-size: var(--fs-md);
  font-weight: 900;
  color: var(--c-blue-deep);
}
.price-sub-label::before {
  content: "";
  width: 6px;
  height: 1.2em;
  border-radius: 3px;
  background: var(--c-blue);
}

/* クラウドスマートロック：キーボックス・南京錠の製品紹介（写真＋寸法図＋説明） */
.lock-products { display: grid; gap: var(--sp-6); }
.lock-product {
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: 0 6px 20px rgba(17, 40, 80, 0.06);
}
.lock-product__media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); align-items: center; }
.lock-product__media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: var(--r-md); background: var(--c-white); }
.lock-product__type {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--c-sky);
  color: var(--c-blue-deep);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.lock-product h3 { margin-top: var(--sp-2); font-size: var(--fs-xl, 1.5rem); font-weight: 900; }
.lock-product__body > p:not(.lock-product__type) { margin-top: var(--sp-3); }
.lock-product .check-list { margin-top: var(--sp-4); }
.lock-product__spec { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid #d5e0ef; }
.lock-product__spec dt { font-weight: 700; color: var(--c-blue-deep); }
@media (min-width: 900px) {
  .lock-product { grid-template-columns: 1.1fr 1fr; padding: var(--sp-6); align-items: center; }
}

/* 表の項目名の下に添える補足リンク（メーカー公式サイトなど） */
.row-note { display: block; margin-top: 2px; font-size: var(--fs-sm); font-weight: 400; }
.ext-link { color: var(--c-blue); text-decoration: underline; text-underline-offset: 2px; }
.ext-link::after { content: "↗"; margin-left: 2px; font-size: 0.85em; }

/* お問い合わせ：対象製品を分類ごとの枠でまとめる */
.product-pick__group {
  margin-top: var(--sp-4);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  border: 1.5px solid #c9d6ea;
  border-radius: var(--r-lg);
  background: var(--c-white);
}
.product-pick__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid #d5e0ef;
  font-size: var(--fs-md);
  font-weight: 900;
  color: var(--c-blue-deep);
}
.product-pick__head img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--c-sky); }
.product-pick__group .choice-group { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.product-pick__group .choice { padding: 10px 12px; font-size: var(--fs-base); background: var(--c-white); }
.product-pick__group .choice:has(input:checked) { border-color: var(--c-blue); background: var(--c-sky); }

/* 特徴アイコン：内容が分かるミニイラスト */
.feature:has(.feature__icon--img) { grid-template-columns: 84px 1fr; }
.feature__icon--img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: var(--c-white);
  box-shadow: 0 6px 16px rgba(17, 40, 80, 0.10);
  overflow: hidden;
}
.feature__icon--img img { width: 100%; height: 100%; object-fit: contain; }

/* 製品の一番の強み（他社との違い）を大きく見せる帯 */
.usp-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  margin-bottom: var(--sp-8);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--c-blue-deep) 0%, var(--c-blue) 70%, #4f95ff 100%);
  color: var(--c-white);
  box-shadow: 0 14px 34px rgba(30, 95, 190, 0.28);
}
.usp-banner::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.usp-banner > * { position: relative; }
.usp-banner__media img { width: 160px; height: 160px; border-radius: 28px; background: var(--c-white); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.usp-banner__label { display: inline-block; padding: 4px 14px; border-radius: 999px; background: #ffd23f; color: #222; font-size: var(--fs-sm); font-weight: 900; }
.usp-banner h3 { margin-top: var(--sp-3); color: var(--c-white); font-size: clamp(1.35rem, 1.4vw + 1rem, 2rem); font-weight: 900; line-height: 1.4; }
.usp-banner__body > p:not(.usp-banner__label):not(.usp-banner__note) { margin-top: var(--sp-3); color: rgba(255,255,255,0.94); }
.usp-banner__points { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); list-style: none; }
.usp-banner__points li { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35); font-weight: 700; font-size: var(--fs-sm); }
.usp-banner__points li::before { content: "✓ "; color: #ffd23f; }
.usp-banner__note { margin-top: var(--sp-3); font-size: var(--fs-sm); color: rgba(255,255,255,0.8); }
@media (min-width: 900px) {
  .usp-banner { grid-template-columns: auto 1fr; padding: var(--sp-7) var(--sp-8); gap: var(--sp-7); }
}

/* AIアバター：受付端末の写真より動画を大きく見せる（ホテル・レンタカー共通） */
@media (min-width: 900px) {
  .scene-grid--video { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); align-items: center; }
}

/* STEP をカードで囲む版（文章が長い流れを読みやすくする） */
.steps--card { gap: var(--sp-3); }
.steps--card .step {
  background: var(--c-sky);
  border-radius: var(--r-md, 12px);
  padding: var(--sp-5);
  padding-right: var(--sp-5);
}
.steps--card .step__num { width: 44px; height: 44px; font-size: var(--fs-md); }
@media (min-width: 900px) {
  .steps--card { gap: var(--sp-5); }
  /* つなぎの線の代わりに、カードの間に小さな矢印 */
  .steps--card .step::after {
    top: 50%; left: auto; right: calc(var(--sp-5) / -2 - 6px);
    width: 12px; height: 12px; background: none; opacity: 1;
    border-top: 3px solid var(--c-blue); border-right: 3px solid var(--c-blue);
    transform: translateY(-50%) rotate(45deg);
  }
}

/* 料金表の小見出し（ホテル・レンタカー共通） */
.price-sub { margin: var(--sp-6) 0 var(--sp-3); font-size: var(--fs-md); }

/* ロゴ画像がないメーカーは文字で見せる */
.logo-tile__word { font-weight: 900; font-size: 22px; letter-spacing: 0.02em; color: var(--c-navy, #1f2a44); text-align: center; line-height: 1.2; }

/* 料金表の値引き表示：値引き後の金額を赤字・太字に、説明は小さく赤で */
.price-sale { display: block; color: var(--c-red); font-weight: 900; font-size: 1.15em; }
.price-sale__note { display: block; margin-top: 2px; color: var(--c-red); font-size: var(--fs-xs); font-weight: 500; line-height: 1.5; }

/* 決済ブランドのロゴ一覧 */
.pay-logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-2); padding: var(--sp-4) var(--sp-5); background: var(--c-white); border: var(--line); border-radius: var(--r-md, 12px); }
.pay-logos img { height: 32px; width: auto; display: block; }


.case-photos{list-style:none;margin:var(--sp-7) 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:var(--sp-3)}
.case-photos a{display:block;color:inherit;text-decoration:none}
.case-photos img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:8px;transition:opacity .3s}
.case-photos a:hover img{opacity:.8}
.case-photos span{display:block;margin-top:4px;font-size:var(--fs-xs);line-height:1.4;color:var(--c-gray-600,#666);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.case-photos__cta{margin-top:var(--sp-6);text-align:center}
.case-photos li{min-width:0}
@media (max-width:600px){.case-photos{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-2)}}
.case-photos__cta .btn{white-space:normal;max-width:100%;text-align:center}

.demo-badge{display:inline-flex;align-items:center;gap:6px;margin-bottom:var(--sp-3);padding:6px 14px;border-radius:9999px;background:var(--c-blue,#2874FC);color:#fff;font-weight:700;font-size:var(--fs-sm)}
.demo-badge .icon{width:1em;height:1em;fill:currentColor}
.demo-player{margin-top:var(--sp-5);padding:var(--sp-5);background:#fff;border:2px solid var(--c-blue,#2874FC);border-radius:16px;box-shadow:0 6px 20px rgba(30,95,190,.12)}
.demo-player__label{margin:0 0 var(--sp-3);font-weight:700;color:var(--c-blue,#2874FC)}
.demo-player audio{display:block;width:100%}
.call-chat{list-style:none;margin:var(--sp-6) 0 0;padding:var(--sp-5) var(--sp-4);background:#fff;border-radius:16px;display:flex;flex-direction:column;gap:var(--sp-4)}
.call-chat__row{display:flex;align-items:flex-start;gap:10px}
.call-chat__row--guest{justify-content:flex-end}
.call-chat__avatar{flex:0 0 48px;width:48px;height:48px;border-radius:50%;object-fit:cover;background:#e8f1fb}
.call-chat__body{max-width:min(78%,560px);display:flex;flex-direction:column}
.call-chat__row--guest .call-chat__body{align-items:flex-end}
.call-chat__name{font-size:var(--fs-xs);color:var(--c-gray-600,#666);margin-bottom:2px}
.call-chat__bubble{margin:0;padding:10px 14px;border-radius:4px 16px 16px 16px;background:#e8f1fb;line-height:1.7}
.call-chat__row--guest .call-chat__bubble{border-radius:16px 4px 16px 16px;background:#8de055}
@media (max-width:600px){.call-chat{padding:var(--sp-4) var(--sp-3)}.call-chat__avatar{flex-basis:36px;width:36px;height:36px}.call-chat__body{max-width:82%}}

.lf-card{margin-top:var(--sp-7);padding:var(--sp-6);background:#fff;border:2px solid var(--c-blue,#2874FC);border-radius:16px;box-shadow:0 6px 20px rgba(30,95,190,.12)}
.lf-card__badge{display:inline-block;padding:4px 12px;border-radius:9999px;background:var(--c-blue,#2874FC);color:#fff;font-weight:700;font-size:var(--fs-xs)}
.lf-card__title{margin:var(--sp-3) 0 var(--sp-3);font-size:var(--fs-xl,1.5rem);font-weight:900;color:var(--c-blue-dark,#1E5FBE)}
.lf-card .check-list{margin-top:var(--sp-4)}

/* 写真の拡大表示（lb-） */
.lb-zoomable{cursor:zoom-in;transition:opacity .2s}
.lb-zoomable:hover{opacity:.85}
.lb-lock{overflow:hidden}
.lb{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;background:rgba(10,20,40,.97);padding:56px 64px}
.lb.is-open{display:flex}
.lb__fig{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center}
.lb__img{display:block;max-width:min(1200px,100%);max-height:calc(100vh - 160px);width:auto;height:auto;border-radius:8px;object-fit:contain;background:#000}
.lb__cap{margin-top:12px;color:#fff;font-size:var(--fs-sm);text-align:center}
.lb__count{position:absolute;bottom:16px;left:0;right:0;margin:0;text-align:center;color:rgba(255,255,255,.8);font-size:var(--fs-sm)}
.lb__close,.lb__nav{position:absolute;border:0;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1}
.lb__close:hover,.lb__nav:hover{background:rgba(255,255,255,.3)}
.lb__close{top:12px;right:12px;width:44px;height:44px;font-size:28px}
.lb__nav{top:50%;transform:translateY(-50%);width:52px;height:52px;font-size:36px}
.lb__nav--prev{left:8px}
.lb__nav--next{right:8px}
.lb.is-single .lb__nav,.lb.is-single .lb__count{display:none}
@media (max-width:600px){.lb{padding:56px 8px}.lb__nav{top:auto;bottom:8px;transform:none;width:44px;height:44px;font-size:30px}.lb__nav--prev{left:16px}.lb__nav--next{right:16px}}

/* お知らせの前後ボタンと一覧に戻る */
.news-pager{display:grid;gap:var(--sp-4);margin-top:var(--sp-7)}
@media (min-width:768px){.news-pager{grid-template-columns:1fr 1fr}.news-pager__link--next:only-child{grid-column:2}}
.news-pager__link{position:relative;display:block;padding:var(--sp-5) var(--sp-8);border-radius:var(--r-lg,16px);background:var(--c-blue,#2874FC);color:#fff;text-decoration:none;box-shadow:0 6px 18px rgba(30,95,190,.25);transition:background .2s}
.news-pager__link:hover{background:#1E5FBE}
.news-pager__link span{display:block;font-size:var(--fs-xl,1.5rem);font-weight:900;letter-spacing:.04em}
.news-pager__link strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:4px;font-size:var(--fs-sm);font-weight:700;color:rgba(255,255,255,.85)}
.news-pager__link--next{text-align:right}
.news-pager__link::after{position:absolute;top:50%;transform:translateY(-50%);font-size:1.75rem;font-weight:900}
.news-pager__link--prev::after{content:"‹";left:var(--sp-4)}
.news-pager__link--next::after{content:"›";right:var(--sp-4)}
.news-article__back{margin-top:var(--sp-6);text-align:center}
