/* Co-LABOX theme — base styles
   読み込み順: reset → typography → layout → elements → components → utilities
   テーマ設定値は theme-overrides.css で --cx-* に変換済み。ここでは素の CSS のみ。 */

*, *:before, *:after {
  box-sizing: border-box;
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * Add the correct box sizing in Firefox.
 */

hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Remove the inheritance of text transform in Edge and Firefox.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.
 */

legend {
  padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Typography ------------------------------------------------------------ */

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cx-bg);
  color: var(--cx-text);
  font-family: var(--cx-font);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--cx-text);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1.25em;
}

a {
  color: var(--cx-accent);
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
}

a:hover,
a:focus-visible {
  color: var(--cx-accent-dark);
}

:focus-visible {
  outline: 2px solid var(--cx-accent);
  outline-offset: 2px;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

small {
  font-size: 0.875em;
}

hr {
  border: 0;
  border-top: 1px solid var(--cx-border);
  margin: 40px 0;
}

::selection {
  background: var(--cx-accent-light);
}
/* Layout objects --------------------------------------------------------- */

/* 短いページでもフッターは内容の直後に置く（本文領域を引き伸ばして白い空白を作らない）。
   画面の下に余る部分は html の背景をフッター色にして、フッターが続いているように見せる */
html {
  background: var(--cx-footer-main-bg);
}

.cx-body {
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* 外枠（1200px 既定） */
.cx-container {
  width: 100%;
  max-width: var(--cx-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* 記事本文カラム（800px 既定） */
.cx-article-col {
  width: 100%;
  max-width: var(--cx-article);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.cx-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

@media (min-width: 768px) {
  .cx-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.cx-section--alt {
  background: var(--cx-bg-alt);
}

.cx-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.cx-section__title {
  font-size: 22px;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .cx-section__title {
    font-size: 26px;
  }
}

.cx-section__more {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* 「新着記事」の見出し（トップ。Figma「PC_コラボックス_TOP」12979:16604）
   左にきらきらアイコン（images/icon-shine.svg）、アイコンと文字の間 8px。帯や背景は無し。
   文字の大きさと太さは「研究のヒント」「導入事例」の帯の見出しにそろえる（Figma の 52px・Medium ではなく、PC 44px・スマホ 36px・太字 700。指示による）。
   PC（768px 以上）はアイコン 40px・文字 44px 太字（700）・字間 2px・行の高さ 1.3、見出しと一覧の間 32px。
   スマホ（767px 以下）は文字 36px・アイコン 32px（アイコンの大きさは Figma に無いため仮） */
.cx-section__head--latest {
  display: block;
}

.cx-section-latest {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--cx-text);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2px;
}

.cx-section-latest img {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

/* 見出しはヒーロー（いちばん新しい1件）の上に置き、ヒーローの下の一覧は見出しなしで続ける。
   Figma ではヒーローと下のカードの間が 32px */
.cx-section--latest-rest {
  padding-top: 32px;
}

@media (min-width: 768px) {
  .cx-section__head--latest {
    margin-bottom: 32px;
  }

  .cx-section--latest-rest {
    padding-top: 32px;
  }

  .cx-section-latest {
    font-size: 44px;
  }

  .cx-section-latest img {
    width: 40px;
    height: 40px;
  }
}

/* 帯の見出し（トップの「研究のヒント」「導入事例」）
   スマホ（767px 以下。Figma「Title」13156:9668）：高さ 56px、左の線 6px、線と文字の間 12px、文字 36px 太字・字間 2px
   PC（768px 以上。Figma「Frame 2147238646」12792:19778）：高さ 64px、左の線 8px、線と文字の間 16px、文字 44px 太字・字間 2px、帯と一覧の間 32px
   文字は Figma と同じく、上下の余白を字の高さまで切り詰めて（text-box）帯の上下中央に置く。
   text-box に対応していないブラウザでは行の高さ 1.3 のまま中央ぞろえになる。導入事例は同じ作りで色だけ緑 */
.cx-section__head--band {
  display: block;
}

.cx-section-band {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  margin: 0;
  padding-right: 12px;
  background: var(--cx-accent-light);
  color: var(--cx-text);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2px;
}

.cx-section-band::before {
  content: "";
  align-self: stretch;
  flex-shrink: 0;
  width: 6px;
  background: var(--cx-accent);
}

.cx-section-band__text {
  display: block;
  min-width: 0;
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}

.cx-section-band--case {
  background: var(--cx-case-light);
}

.cx-section-band--case::before {
  background: var(--cx-case);
}

@media (min-width: 768px) {
  .cx-section__head--band {
    margin-bottom: 32px;
  }

  .cx-section-band {
    gap: 16px;
    height: 64px;
    padding-right: 16px;
    font-size: 44px;
  }

  .cx-section-band::before {
    width: 8px;
  }
}

/* 記事のカルーセル（トップの「研究のヒント」「導入事例」。Figma「PC_コラボックス_TOP」12776:14094）
   600px 以上は横に並べてスクロールで送る。PC は3件・タブレットは2件ずつ見せ、カードの間は 40px。
   下の点（直径 10px・間 18px、いまのページは #5CD0FB、ほかは #C9C8C8）は js/main.js がページ数ぶん作る。
   スマホ（599px 以下）はカルーセルにせず、カードを縦に積む（間 32px）。横に送れないので点は出ない */
.cx-carousel__track {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cx-carousel__track > * {
  min-width: 0;
}

@media (min-width: 600px) {
  .cx-carousel__track {
    flex-direction: row;
    gap: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .cx-carousel__track::-webkit-scrollbar {
    display: none;
  }

  .cx-carousel__track:focus-visible {
    outline: 2px solid var(--cx-accent);
    outline-offset: 4px;
  }

  .cx-carousel__track > * {
    flex: 0 0 calc((100% - 40px) / 2);
    scroll-snap-align: start;
  }
}

@media (min-width: 960px) {
  .cx-carousel__track > * {
    flex-basis: calc((100% - 80px) / 3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cx-carousel__track {
    scroll-behavior: auto;
  }
}

.cx-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}

.cx-carousel__dots[hidden] {
  display: none;
}

.cx-carousel__dot {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #C9C8C8;
  cursor: pointer;
}

/* 押しやすいように、見た目より広い範囲で反応させる */
.cx-carousel__dot::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.cx-carousel__dot.is-active {
  background: #5CD0FB;
}

.cx-carousel__dot:focus-visible {
  outline: 2px solid var(--cx-accent);
  outline-offset: 3px;
}

/* 一覧の下の「〇〇をもっと見る」ボタン（Figma「button_outline」12792:19773／12792:19750）
   幅 400px・高さ 48px・角丸、枠線 1px・文字 18px 太字（どちらも #666）、右に矢印 18px */
.cx-section__foot {
  margin-top: 32px;
  text-align: center;
}

.cx-btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 400px;
  max-width: 100%;
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--cx-text-sub);
  border-radius: 999px;
  background: #fff;
  color: var(--cx-text-sub);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.cx-btn-more:hover {
  background: var(--cx-bg-alt);
  color: var(--cx-text-sub);
}

.cx-btn-more img {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.cx-eyebrow {
  margin: 0 0 8px;
  color: var(--cx-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* カードグリッド: 1 → 2 → 3 列 */
.cx-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 28px;
}

@media (min-width: 600px) {
  .cx-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cx-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* 4件取得して1件除外した場合の保険: 4件目は隠す */
  .cx-grid--max3 > :nth-child(n + 4) {
    display: none;
  }
}

/* スキップリンク */
.cx-skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 1000;
  padding: 8px 12px;
  background: var(--cx-text);
  color: #fff;
  border-radius: 4px;
}

.cx-skip:focus {
  top: 8px;
}
/* HubSpot ドラッグ&ドロップ領域用の最小スタイル（本テーマでは基本的に未使用） */

.dnd-section {
  padding: 40px 20px;
}

.dnd-section > .row-fluid {
  max-width: var(--cx-max);
  margin: 0 auto;
}

/* Buttons ---------------------------------------------------------------- */

.cx-btn,
.button,
.post-body .elementor-button,
.post-body .wp-block-button__link,
.post-body a.button,
.hs-button,
form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--cx-accent);
  border-radius: 999px;
  background: var(--cx-accent);
  color: #fff !important;
  font-family: var(--cx-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.cx-btn:hover,
.button:hover,
.post-body .elementor-button:hover,
.post-body .wp-block-button__link:hover,
.hs-button:hover,
form input[type="submit"]:hover {
  background: var(--cx-accent-dark);
  border-color: var(--cx-accent-dark);
  color: #fff;
}

.cx-btn--ghost {
  background: transparent;
  color: var(--cx-accent) !important;
}

.cx-btn--ghost:hover {
  background: var(--cx-accent-light);
  color: var(--cx-accent-dark) !important;
}

.cx-btn--dark {
  background: var(--cx-text);
  border-color: var(--cx-text);
}

.cx-btn--dark:hover {
  background: #000;
  border-color: #000;
}

.cx-btn--lg {
  min-height: 52px;
  padding: 14px 32px;
  font-size: 16px;
}

/* アイコンだけのボタン（ヘッダー） */
.cx-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cx-text);
  cursor: pointer;
  transition: background .15s ease;
}

.cx-iconbtn:hover {
  background: var(--cx-bg-alt);
}

.cx-iconbtn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Forms (HubSpot 標準フォーム・購読フォーム・検索) ---------------------- */

form {
  font-family: var(--cx-font);
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  max-width: 100% !important;
}

label,
.hs-form-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cx-text);
}

.hs-form-required {
  color: var(--cx-badge);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--cx-border);
  border-radius: 8px;
  background: #fff;
  color: var(--cx-text);
  font-family: var(--cx-font);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cx-accent);
  box-shadow: 0 0 0 3px var(--cx-accent-light);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.hs-form-field {
  margin-bottom: 18px;
}

.hs-form .input {
  margin-right: 0 !important;
}

.hs-error-msgs,
.hs-form .inputs-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.hs-error-msg,
.hs-error-msgs label {
  color: var(--cx-badge);
  font-size: 13px;
  font-weight: 400;
}

.hs-form .inputs-list label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
}

.hs-form .inputs-list input[type="checkbox"],
.hs-form .inputs-list input[type="radio"] {
  margin-top: 5px;
  accent-color: var(--cx-accent);
}

.hs-submit {
  margin-top: 8px;
}

.submitted-message {
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--cx-accent-light);
  color: var(--cx-accent-dark);
  font-weight: 700;
}

.legal-consent-container,
.hs-richtext {
  font-size: 13px;
  color: var(--cx-text-sub);
}

.legal-consent-container p {
  margin-bottom: 8px;
}

.grecaptcha-badge {
  visibility: hidden;
}
/* Tables (共通) ----------------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 15px;
}

th, td {
  padding: 12px 14px;
  border: 1px solid var(--cx-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--cx-bg-alt);
  font-weight: 700;
}

/* Header ------------------------------------------------------------------ */

.cx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* backdrop-filter は position:fixed の子要素（モバイルナビ）の基準を変えてしまうため使わない */
  background: #fff;
  border-bottom: 1px solid var(--cx-border);
}

.cx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

@media (min-width: 960px) {
  .cx-header__inner {
    height: 72px;
  }
}

/* ブランド（ロゴ画像＋「研究開発のための情報メディア」。Figma「PC_コラボックス_TOP」12941:15806）
   600px 以上：ロゴは幅 160px（高さ 29.83px）、ロゴの右に文字（間 16px）。文字は 12px 太字・#666・字間 1px・行の高さ 1.4。
   スマホ（599px 以下）：ロゴは幅 140px、その下に文字 10px（指示による。ロゴと文字の間 4px は Figma に無いため仮） */
.cx-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: var(--cx-text);
  line-height: 1.1;
  min-width: 0;
}

.cx-brand:hover {
  color: var(--cx-text);
  opacity: .8;
}

.cx-brand__logo {
  display: block;
  flex-shrink: 0;
  width: 140px;
  height: auto;
  max-width: 100%;
}

.cx-brand__tagline {
  display: block;
  color: var(--cx-text-sub);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
  white-space: nowrap;
}

@media (min-width: 600px) {
  .cx-brand {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .cx-brand__logo {
    width: 160px;
  }

  .cx-brand__tagline {
    font-size: 12px;
  }
}

/* ナビパネル（ハンバーガーで開閉。デスクトップ／モバイル共通で全幅オーバーレイ） */
/* ナビパネル: ヘッダーの直下（罫線の下）から下方向に開く。高さは JS が scrollHeight を入れて
   0 → 中身の高さ → auto と遷移させる（トヨタイムズと同じ height アニメーション方式） */
.cx-nav {
  position: absolute;
  top: calc(100% + 1px); /* ヘッダーの罫線（border-bottom 1px）の下から開く。罫線は隠さない */
  left: 0;
  right: 0;
  z-index: 90;
  height: 0;
  overflow: hidden;
  background: #fff;
  visibility: hidden;
  transition: height .25s ease-out;
}

.cx-nav.is-open {
  visibility: visible;
  box-shadow: 0 16px 32px rgba(0, 62, 85, 0.10);
}

.cx-nav__inner {
  padding: 24px 20px 40px;
  max-height: calc(100vh - 109px); /* ヘッダー本体 64px＋種別タブ 44px＋罫線 1px */
  overflow-y: auto;
  border-bottom: 1px solid var(--cx-border);
}

@media (min-width: 600px) and (max-width: 959px) {
  .cx-nav__inner {
    max-height: calc(100vh - 117px); /* ヘッダー本体 64px＋種別タブ 52px＋罫線 1px */
  }
}

@media (min-width: 960px) {
  .cx-nav__inner {
    max-height: calc(100vh - 125px); /* ヘッダー本体 72px＋種別タブ 52px＋罫線 1px */
  }
}

.cx-nav__mobile-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cx-border);
}

@media (min-width: 960px) {
  /* デスクトップではヘッダー本体に同じタブ・SNSアイコンがあるため、パネル内では重複させない */
  .cx-nav__mobile-top {
    display: none;
  }
}

.cx-nav__heading {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cx-text-sub);
}

.cx-nav__cats {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 600px) {
  .cx-nav__cats {
    flex-direction: row;
    gap: 48px;
  }

  .cx-nav__cat {
    flex: 1;
    min-width: 0;
  }
}

.cx-nav__cat-title {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--cx-text);
  font-size: 18px;
  font-weight: 700;
}

.cx-nav__cat-title:hover {
  color: var(--cx-accent-dark);
}

.cx-nav__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.cx-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.cx-menu__item {
  border-bottom: 1px solid var(--cx-border);
}

.cx-menu__link {
  display: block;
  padding: 16px 4px;
  color: var(--cx-text);
  font-size: 16px;
  font-weight: 700;
}

.cx-menu__link:hover,
.cx-menu__link[aria-current="page"] {
  color: var(--cx-accent);
}

/* 右側のクラスタ全体（デスクトップ用ナビ + 検索・ハンバーガー） */
.cx-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* デスクトップ（960px以上）だけ表示するタブ・SNSアイコン・区切り線 */
.cx-header__desktop-nav {
  display: none;
  align-items: center;
  gap: 16px;
}

@media (min-width: 960px) {
  .cx-header__desktop-nav {
    display: flex;
  }
}

.cx-header__divider {
  width: 1px;
  height: 24px;
  background: var(--cx-border);
}

/* SNSアイコン（ヘッダー本体・メニューパネルの両方で使う） */
.cx-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cx-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--cx-text-sub);
  transition: color .15s ease, background .15s ease;
}

.cx-social:hover {
  color: var(--cx-accent);
  background: var(--cx-bg-alt);
}

.cx-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* 検索・ハンバーガー */
.cx-header__tools {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* ハンバーガー（常設。3本線 + 下に「メニュー」/「閉じる」の文言） */
.cx-nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 48px;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cx-text);
  cursor: pointer;
  transition: background .15s ease;
}

.cx-nav-toggle:hover {
  background: var(--cx-bg-alt);
}

.cx-nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cx-nav-toggle__bars span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.cx-nav-toggle[aria-expanded="true"] .cx-nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.cx-nav-toggle[aria-expanded="true"] .cx-nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.cx-nav-toggle[aria-expanded="true"] .cx-nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.cx-nav-toggle__label {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.cx-nav-toggle__label::before {
  content: "メニュー";
}

.cx-nav-toggle[aria-expanded="true"] .cx-nav-toggle__label::before {
  content: "閉じる";
}

/* 検索パネル */
.cx-search {
  border-top: 1px solid var(--cx-border);
  background: var(--cx-bg-alt);
}

.cx-search[hidden] {
  display: none;
}

.cx-search__inner {
  padding-top: 16px;
  padding-bottom: 16px;
}

.cx-search .hs-search-field {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.cx-search .hs-search-field__input {
  padding-left: 44px;
  border-radius: 999px;
}

.cx-search .hs-search-field__bar > form {
  position: relative;
}

.cx-search .hs-search-field__bar > form::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}

.cx-search .hs-search-field__suggestions {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--cx-border);
  border-radius: 8px;
}

.cx-search .hs-search-field__suggestions li a {
  display: block;
  padding: 10px 14px;
  color: var(--cx-text);
}

.cx-search .hs-search-field__suggestions li a:hover {
  background: var(--cx-bg-alt);
}

/* ---------- 種別タブ（TOP／研究のヒント／導入事例） ----------
   ヘッダー本体の下に全幅で等分に並べる（Figma「PC_コラボックス_TOP」13061:19165）。
   PC：高さ 52px・文字 20px 太字・字間 1px。選んでいるタブは薄い青の背景＋青い下線 4px。
   スマホのデザインは Figma に無いため、文字と高さだけ縮めた仮の値（599px 以下） */
.cx-tabs {
  display: flex;
  background: #fff;
}

.cx-tabs__tab {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 44px;
  padding: 0 4px;
  /* 下線の分を常に確保し、選択の有無で文字の位置がずれないようにする */
  border-bottom: 4px solid transparent;
  color: var(--cx-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
  white-space: nowrap;
  text-align: center;
}

.cx-tabs__tab:hover {
  color: var(--cx-text);
  background: var(--cx-bg-alt);
}

.cx-tabs__tab.is-active {
  background: var(--cx-accent-light);
  border-bottom-color: var(--cx-accent);
}

@media (min-width: 600px) {
  .cx-tabs__tab {
    height: 52px;
    padding: 0 8px;
    font-size: 20px;
  }
}
/* Footer ------------------------------------------------------------------
   Figma「Footer」12870:15645 に合わせる（2026-11）。
   PC：背景 #008ABE（テーマ設定「フッターの背景（2026-11 リニューアル）」）、上下 80px、中身の幅 1000px。
   左右2列（間 40px）。左は白いロゴ（SVG）・説明文・メニュー、右は運営会社・所在地。下にコピーライト（列との間 40px）。
   文字はすべて白。項目名（メニュー・運営会社・所在地）は 14px Medium・幅 80px、中身は 14px・行の高さ 1.6。
   スマホのデザインは Figma に無いため、767px 以下は2列を縦に積む仮の形 */

.cx-footer {
  margin-top: 0; /* 直前が CTA 帯・購読帯のときに白い隙間を作らない。白い要素で終わるページは各要素側で下余白を持つ */
  background: var(--cx-footer-main-bg);
  color: #fff;
}

.cx-footer a {
  color: #fff;
}

.cx-footer a:hover {
  color: #fff;
  opacity: .75;
}

.cx-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1040px; /* 中身 1000px＋左右の余白 20px */
  margin: 0 auto;
  padding: 56px 20px 40px;
}

@media (min-width: 768px) {
  .cx-footer__inner {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.cx-footer__cols {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .cx-footer__cols {
    flex-direction: row;
    align-items: flex-start;
  }
}

.cx-footer__col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

/* ロゴと説明文（間 20px） */
.cx-footer__about {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 468px;
}

.cx-footer__brand {
  display: inline-flex;
  align-self: flex-start;
}

/* 白一色のロゴ（images/colabox-logo-white.svg）。幅 180px */
.cx-footer__logo {
  display: block;
  width: 180px;
  height: auto;
}

.cx-footer__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

/* 項目名＋中身の行（メニュー・運営会社・所在地） */
.cx-footer__row {
  display: flex;
  align-items: flex-start;
}

.cx-footer__label {
  flex-shrink: 0;
  width: 80px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
}

.cx-footer__list {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
}

/* 運営会社：会社名と「サイトを見る」（間 28px） */
.cx-footer__company {
  display: flex;
  flex: 1 1 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* 「サイトを見る」：白い下線 1px、右に別タブのアイコン 18px（間 4px） */
.cx-footer__ext {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #fff;
}

.cx-footer__ext img {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* 所在地（本社と東京オフィスの間 12px） */
.cx-footer__addresses {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.6;
}

.cx-footer__addresses p {
  margin: 0;
}

.cx-footer__copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
/* FV（ファーストビュー。トップの一番上）---------------------------------------
   Figma：PC「TOP_illust_shadow」13145:17647（1440×612）、SP「13174:11930」（375 幅）。
   文字は画像に入れず HTML で書く。イラストは PC 用（images/fv-pc.png 1920×612）と
   タブレット・SP 用（images/fv-sp.png 767×300）を <picture> で切り替える。

   PC（1025px 以上）
   - 1920px の絵は、1440px の枠と同じ縮尺で左右に景色を足したもの（枠は絵の中央 1440px）。
   - 1440〜1920px：絵は原寸で中央に置き、はみ出した左右の景色は切れる。
   - 1440px 未満：絵の中央 1440px（人物と山）が画面幅に収まるよう、縦横比を保って縮める（絵の幅は画面の 4/3）。
   - 1920px より広い画面：FV は 1920px 幅で中央に置く。
   - 文字は Figma どおり絵の上に重ね、絵と同じ割合で縮める（cqw ＝ FV の幅に対する割合）。小さくなりすぎないよう下限を付ける。
     1440px のとき：上から 60px、見出し 52px（字間 2px・行の高さ 1.3）、見出しと本文の間 14px、本文 20px（字間 1px・行の高さ 1.7）。

   タブレット・SP（1024px 以下）
   - 文字は絵に重ねず、絵の上に中央ぞろえで置く。SP（Figma 375 幅）は見出し 22px、本文 14px（行の高さ 1.6）。
   - 絵は 767px の原寸のまま中央に置き、縮めない。画面が狭いと山の左右は切れる（375px で人物は全員見える）。 */

.cx-fv {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--cx-text);
}

.cx-fv__title {
  margin: 0;
  color: var(--cx-text);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 2px;
}

.cx-fv__lead {
  margin: 0;
  color: var(--cx-text);
  font-weight: 400;
  letter-spacing: 1px;
}

.cx-fv__art img {
  display: block;
  max-width: none;
}

/* ---------- タブレット・SP（1024px 以下） ---------- */
@media (max-width: 1024px) {
  .cx-fv {
    padding-top: 32px;
  }

  .cx-fv__text {
    padding: 0 16px;
    text-align: center;
  }

  .cx-fv__title {
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 500; /* タブレット・SP の見出しは Medium（指示による。PC は 400） */
  }

  .cx-fv__lead {
    font-size: 14px;
    line-height: 1.6;
  }

  /* 本文は句ごとに改行する（SP の Figma どおり） */
  .cx-fv__lead span {
    display: block;
  }

  .cx-fv__br {
    display: none;
  }

  .cx-fv__art {
    position: relative;
    height: 300px;
    margin-top: 8px;
  }

  .cx-fv__art img {
    position: absolute;
    top: 0;
    left: 50%;
    width: 767px;
    height: 300px;
    transform: translateX(-50%);
  }
}

/* タブレット（600〜1024px）は文字を少し大きく */
@media (min-width: 600px) and (max-width: 1024px) {
  .cx-fv {
    padding-top: 40px;
  }

  .cx-fv__title {
    margin-bottom: 14px;
    font-size: 28px;
  }

  .cx-fv__lead {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* ---------- PC（1025px 以上） ---------- */
@media (min-width: 1025px) {
  .cx-fv {
    container-type: inline-size;
    max-width: 1920px;
    margin: 0 auto;
  }

  /* 高さは「1440 枠を画面幅に合わせたときの高さ」（幅の 612/1440）で、最大 612px */
  .cx-fv__art {
    position: relative;
    height: min(612px, 42.5cqw);
  }

  .cx-fv__art img {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1920px, 133.3333cqw);
    height: auto;
    transform: translateX(-50%);
  }

  .cx-fv__text {
    position: absolute;
    z-index: 1;
    top: min(60px, 4.1667cqw);
    right: 0;
    left: 0;
    padding: 0 20px;
    text-align: center;
  }

  .cx-fv__title {
    margin-bottom: clamp(10px, 0.9722cqw, 14px);
    font-size: clamp(36px, 3.6111cqw, 52px);
  }

  .cx-fv__lead {
    font-size: clamp(16px, 1.3889cqw, 20px);
    line-height: 1.7;
  }
}

/* FV の下の「新着記事」は、Figma どおり FV から 40px あける。PC（1025px 以上）だけ 20px 足して 60px（指示による） */
.cx-fv + .cx-hero--home {
  padding-top: 40px;
}

@media (min-width: 1025px) {
  .cx-fv + .cx-hero--home {
    padding-top: 60px;
  }
}
/* Card / Media / Tag ------------------------------------------------------ */

/* アイキャッチ枠: 16:9 で切り抜き（研究のヒント・導入事例で共通。仮デザイン。
   既存の画像に多い比率。本番デザインで入稿ルールとあわせて見直す） */
.cx-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cx-bg-alt);
}

.cx-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.cx-media__placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--cx-accent-light) 0%, var(--cx-bg-alt) 100%);
}

.cx-media__placeholder::after {
  content: "Co-LABOX";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cx-accent);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: .6;
}

/* NEW バッジ */
.cx-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cx-badge);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* カード（Figma「研究のヒント」12791:19728／「導入事例」12943:15896 の型。2026-11-17）
   画像（16:9・角丸 8px）の下に、余白 20px 16px・間 12px で「種別 → 題名 → 要約 → タグ → 日付」。
   種別 14px 太字（研究のヒント #009CD6／導入事例 #009A5D）、題名 20px 太字（Figma は 24px。指示による）・行の高さ 1.2・字間 2px（2行まで）、
   要約 16px・行の高さ 1.5（Figma は 1.4。指示による。3行まで。研究のヒントだけ）、導入事例の見出し 16px 太字・字間 1px（2行まで）、
   タグ 14px（研究のヒントは薄い青地に #008ABE、導入事例は薄い緑地に #007B4A）、日付 14px #666。 */
.cx-card {
  --cx-card-kind: #009CD6;
  --cx-card-tag-bg: var(--cx-accent-light);
  --cx-card-tag-text: #008ABE;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cx-card--case {
  --cx-card-kind: var(--cx-case);
  --cx-card-tag-bg: var(--cx-case-light);
  --cx-card-tag-text: #007B4A;
}

.cx-card:hover .cx-media img {
  transform: scale(1.03);
}

.cx-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px;
}

.cx-card__kind {
  margin: 0;
  color: var(--cx-card-kind);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.cx-card__title {
  margin: 0;
  font-size: 20px; /* Figma は 24px だが、指示により PC・スマホとも 20px */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2px;
}

.cx-card__title a {
  color: var(--cx-text);
}

.cx-card:hover .cx-card__title a {
  color: var(--cx-accent-dark);
}

.cx-card--case:hover .cx-card__title a {
  color: var(--cx-card-kind);
}

.cx-card__subtitle {
  margin: 0;
  color: var(--cx-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
}

.cx-card__summary {
  margin: 0;
  color: var(--cx-text);
  font-size: 16px;
  line-height: 1.5; /* Figma は 1.4 だが、指示により 150% */
}

.cx-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px; /* タグの上だけ余白を広げる（間 12px ＋ 4px ＝ 16px。指示による） */
}

.cx-card__date {
  color: var(--cx-text-sub);
  font-size: 14px;
  line-height: 1.4;
}

.cx-card__date .cx-date {
  letter-spacing: 0;
}

/* カード・トップの大きい記事の中のタグ（Figma「tag」：14px・上 7px 下 8px 左右 12px・角丸） */
.cx-card .cx-tag,
.cx-hero__grid--home .cx-tag {
  padding: 7px 12px 8px;
  background: var(--cx-card-tag-bg);
  color: var(--cx-card-tag-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.cx-card .cx-tag:hover,
.cx-hero__grid--home .cx-tag:hover {
  background: var(--cx-card-tag-text);
  color: #fff;
}

/* タグピル */
.cx-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cx-accent-light);
  color: var(--cx-accent-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cx-tag:hover {
  background: var(--cx-accent);
  color: #fff;
}

/* タグクラウド */
.cx-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--cx-border);
  border-radius: 12px;
}

.cx-tagcloud__item {
  color: var(--cx-text);
  font-size: 15px;
  font-weight: 500;
}

.cx-tagcloud__item::before {
  content: "#";
  color: var(--cx-accent);
  margin-right: 1px;
}

.cx-tagcloud__item:hover {
  color: var(--cx-accent-dark);
}

/* 日付 */
.cx-date {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--cx-text-sub);
}

/* ---------- 種別バッジ・事例カード ---------- */
.cx-kind {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--cx-accent);
}

.cx-kind--case {
  background: var(--cx-footer-bg);
}

.cx-badge--right {
  left: auto;
  right: 12px;
}
/* Pagination (番号型・丸ボタン) ------------------------------------------ */

.cx-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 56px;
}

.cx-pagination__num,
.cx-pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cx-border);
  border-radius: 50%;
  background: #fff;
  color: var(--cx-text);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.cx-pagination__num:hover,
.cx-pagination__arrow:hover {
  border-color: var(--cx-accent);
  color: var(--cx-accent-dark);
}

.cx-pagination__num.is-current {
  background: var(--cx-accent);
  border-color: var(--cx-accent);
  color: #fff;
}

.cx-pagination__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: var(--cx-text-sub);
}

.cx-pagination__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Share row --------------------------------------------------------------- */

.cx-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cx-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--cx-border);
  border-radius: 50%;
  background: #fff;
  color: var(--cx-text);
  cursor: pointer;
  padding: 0;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.cx-share__btn:hover {
  border-color: var(--cx-accent);
  color: var(--cx-accent-dark);
}

.cx-share__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cx-share__btn.is-copied {
  background: var(--cx-accent);
  border-color: var(--cx-accent);
  color: #fff;
}

/* URL コピーはアイコンだけでは伝わらないので、文字付きのピル型にする */
.cx-share__btn--copy {
  width: auto;
  gap: 6px;
  padding: 0 14px 0 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cx-share__btn--copy svg {
  width: 16px;
  height: 16px;
  fill: none;
}

.cx-share__label {
  margin: 0 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--cx-text-sub);
}
/* CTA 帯 / 購読帯 --------------------------------------------------------- */

.cx-cta {
  margin: 64px 0 0;
  padding: 48px 0;
  background: var(--cx-accent-light);
}

.cx-cta__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.cx-cta__title {
  font-size: 22px;
  line-height: 1.4;
  color: var(--cx-accent-dark);
}

.cx-cta__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .cx-cta {
    padding: 64px 0;
  }

  .cx-cta__title {
    font-size: 26px;
  }
}

/* 購読帯 */
.cx-subscribe {
  background: var(--cx-footer-bg);
  color: #fff;
}

.cx-subscribe__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 56px;
  padding-bottom: 56px;
}

@media (min-width: 900px) {
  .cx-subscribe__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

.cx-subscribe__title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
}

.cx-subscribe__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.cx-subscribe__form label,
.cx-subscribe__form .hs-form-field > label {
  color: #fff;
}

.cx-subscribe__form .hs-richtext,
.cx-subscribe__form .legal-consent-container {
  color: rgba(255, 255, 255, 0.7);
}

.cx-subscribe__form input[type="email"],
.cx-subscribe__form input[type="text"] {
  border-color: transparent;
}

/* rich_text モジュール経由で入る見出し・段落にも同じ見た目を当てる */
.cx-cta__copy h2,
.cx-cta__copy h3 {
  font-size: 22px;
  line-height: 1.4;
  color: var(--cx-accent-dark);
  margin: 0 0 12px;
}

.cx-cta__copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.cx-cta__copy p + p {
  margin-top: 8px;
}

@media (min-width: 768px) {
  .cx-cta__copy h2,
  .cx-cta__copy h3 {
    font-size: 26px;
  }
}

.cx-subscribe__copy h2,
.cx-subscribe__copy h3 {
  font-size: 24px;
  color: #fff;
  margin: 0 0 12px;
}

.cx-subscribe__copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

/* 事例用 CTA（相談する）は濃色帯 */
.cx-cta--case {
  background: var(--cx-footer-bg);
}

.cx-cta--case .cx-cta__copy h2,
.cx-cta--case .cx-cta__copy h3 {
  color: #fff;
}

.cx-cta--case .cx-cta__copy p {
  color: rgba(255, 255, 255, 0.85);
}

.cx-cta--case .cx-cta__copy .cx-eyebrow {
  color: var(--cx-accent);
}

.cx-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cx-cta__actions .button-wrapper {
  display: inline-block;
}

.cx-cta__copy .cx-eyebrow {
  margin-bottom: 10px;
}
/* HubSpot 標準モジュールの微調整 --------------------------------------- */

/* blog_subscribe: タイトルを隠し、フォームだけ見せる */
.cx-subscribe__form .hs_cos_wrapper_type_blog_subscribe h3,
.cx-subscribe__form .hs_cos_wrapper_type_blog_subscribe h4 {
  display: none;
}

.cx-subscribe__form .hs-form-field {
  margin-bottom: 12px;
}

/* 検索結果 */
.hs-search-results__listing {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hs-search-results__listing > li {
  padding: 24px 0;
  border-bottom: 1px solid var(--cx-border);
}

.hs-search-results__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cx-text);
}

.hs-search-results__title:hover {
  color: var(--cx-accent-dark);
}

.hs-search-results__description {
  margin-top: 6px;
  font-size: 14px;
  color: var(--cx-text-sub);
}

.hs-search-results__pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-weight: 700;
}

.hs-search-results__featured-image {
  max-width: 200px;
  border-radius: 8px;
}

/* コメント */
.cx-comments {
  margin-top: 64px;
}

.cx-comments .comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--cx-border);
}

.cx-comments .comment-from {
  font-weight: 700;
}

.cx-comments .comment-date {
  font-size: 13px;
  color: var(--cx-text-sub);
}

/* Utilities --------------------------------------------------------------- */

.no-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.no-button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.show-for-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hide {
  display: none !important;
}

.cx-clamp-2,
.cx-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cx-clamp-2 { -webkit-line-clamp: 2; }
.cx-clamp-3 { -webkit-line-clamp: 3; }