/* 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-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;
}

.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;
  }
}

/* ブランド（ロゴ画像） */
.cx-brand {
  display: inline-flex;
  align-items: center;
  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;
  height: 28px;
  width: auto;
  max-width: 100%;
}

@media (min-width: 600px) {
  .cx-brand__logo {
    height: 32px;
  }
}

/* ナビパネル（ハンバーガーで開閉。デスクトップ／モバイル共通で全幅オーバーレイ） */
/* ナビパネル: ヘッダーの直下（罫線の下）から下方向に開く。高さは 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 - 65px);
  overflow-y: auto;
  border-bottom: 1px solid var(--cx-border);
}

@media (min-width: 960px) {
  .cx-nav__inner {
    max-height: calc(100vh - 73px);
  }
}

.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);
}

/* ---------- 種別タブ ---------- */
.cx-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 8px;
}

.cx-tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--cx-border);
  color: var(--cx-text);
  font-size: 16px;
  font-weight: 700;
}

.cx-tabs__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cx-accent);
  flex-shrink: 0;
}

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

.cx-tabs__tab.is-active,
.cx-tabs__tab:hover {
  color: var(--cx-accent-dark);
}

@media (min-width: 960px) {
  .cx-tabs {
    flex-direction: row;
    gap: 4px;
    margin: 0 8px 0 0;
    padding: 4px;
    background: var(--cx-bg-alt);
    border-radius: 999px;
  }

  .cx-tabs__tab {
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
  }

  .cx-tabs__tab.is-active {
    background: #fff;
    color: var(--cx-text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  }
}
/* Footer ------------------------------------------------------------------ */

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

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

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

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

@media (min-width: 768px) {
  .cx-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 56px;
  }
}

.cx-footer .cx-brand,
.cx-footer .cx-brand:hover {
  color: #fff;
}

/* ロゴ画像は文字がダークグレーで濃紺背景に沈むため、運営会社ロゴと同じ白い角丸の下地に載せる */
.cx-footer__brand {
  display: inline-flex;
  padding: 10px 16px;
  background: #fff;
  border-radius: 8px;
}

.cx-footer__brand img {
  display: block;
  height: 28px;
  width: auto;
}

.cx-footer__desc {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.8;
}

.cx-footer__heading {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.cx-footer .cx-menu {
  flex-direction: column;
  gap: 0;
}

.cx-footer .cx-menu__item {
  border: 0;
}

.cx-footer .cx-menu__link {
  padding: 6px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.cx-footer .cx-menu__link::after {
  display: none;
}

/* 運営会社ロゴは白い下地の上に置く（ロゴガイドライン §2） */
.cx-footer__logo {
  display: inline-block;
  padding: 12px 18px;
  background: #fff;
  border-radius: 8px;
}

.cx-footer__logo img {
  display: block;
  width: 180px;
  height: auto;
}

.cx-footer__company p {
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.cx-footer__company-link {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cx-footer__social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.cx-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cx-footer__social svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.cx-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* rich_text モジュール経由の本文 */
.cx-footer__desc p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

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

.cx-footer__company-text {
  margin-top: 14px;
  font-size: 14px;
}

.cx-footer__company-text p {
  margin: 0 0 6px;
}

.cx-footer__company-text a {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* フッター内のメニューは左寄せ */
.cx-footer .cx-menu {
  align-items: flex-start;
}
/* Card / Media / Tag ------------------------------------------------------ */

/* アイキャッチ枠: 1.91:1（1200×630）で切り抜き */
.cx-media {
  position: relative;
  display: block;
  aspect-ratio: 40 / 21;
  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;
}

/* カード */
.cx-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cx-card__media {
  margin-bottom: 14px;
}

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

.cx-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.cx-card__title {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 8px;
}

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

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

.cx-card__summary {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--cx-text-sub);
}

.cx-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 13px;
  color: var(--cx-text-sub);
}

/* タグピル */
.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;
}

/* 事例カードは写真を大きく（4:3） */
.cx-media--case {
  aspect-ratio: 4 / 3;
}

.cx-card__company {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cx-text);
}

.cx-card__title--case {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--cx-text-sub);
}

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

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

.cx-card--case .cx-card__meta {
  flex-wrap: wrap;
  gap: 8px 10px;
}

.cx-card--case .cx-card__tags {
  margin-bottom: 0;
}
/* 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; }