/* ============================================================
   Crescendo Lab — Page chrome (header + footer)
   Mandatory on every full-page output.
   Extracted from pages/product-daac.html for reuse.
   ============================================================ */

/* ===== HEADER (floating pill, sticky top) ===== */
.header-stage {
  position: fixed; top: 24px; left: 0; right: 0; z-index: 100;
  padding: 0 32px; display: flex; justify-content: center; pointer-events: none;
}
.header-stage > .cl-header { pointer-events: auto; }
.cl-header {
  display: inline-flex; align-items: center; gap: 32px;
  padding: 12px 22px 12px 38px;
  background: #fff; border-radius: var(--cl-radius-full);
  box-shadow: var(--cl-shadow-card);
}
.cl-header__brand { display: flex; align-items: center; flex-shrink: 0; }
.cl-header__brand img { height: 32px; width: auto; display: block; }
.cl-header__nav { display: flex; align-items: center; gap: 4px; }
.cl-header__nav-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 15px; border-radius: var(--cl-radius-pill);
  font-family: var(--cl-font-sans); font-size: 16.5px;
  font-weight: var(--cl-w-medium); color: var(--cl-fg-3);
  line-height: 1; text-decoration: none; cursor: pointer;
  background: transparent; border: none; transition: color .2s; white-space: nowrap;
}
.cl-header__nav-item:hover { color: var(--cl-blue); }
.cl-header__nav-item--has-menu::after {
  content: ""; width: 11px; height: 11px; margin-left: 2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 4.25 6 7.75 9.5 4.25' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 4.25 6 7.75 9.5 4.25' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  flex-shrink: 0;
}
.cl-header__nav-item--ai::before {
  content: ""; width: 17.6px; height: 17.6px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M5 1.2 5.7 3 7.5 3.7 5.7 4.4 5 6.2 4.3 4.4 2.5 3.7 4.3 3Z M10.5 6.5 11.7 9.6 14.8 10.8 11.7 12 10.5 15.1 9.3 12 6.2 10.8 9.3 9.6Z' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M5 1.2 5.7 3 7.5 3.7 5.7 4.4 5 6.2 4.3 4.4 2.5 3.7 4.3 3Z M10.5 6.5 11.7 9.6 14.8 10.8 11.7 12 10.5 15.1 9.3 12 6.2 10.8 9.3 9.6Z' fill='black'/></svg>") center/contain no-repeat;
  flex-shrink: 0;
}
.cl-header__right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cl-header__icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: none; background: transparent; color: var(--cl-fg-1);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color .2s;
}
.cl-header__icon-btn:hover { color: var(--cl-blue); }
.cl-header__icon-btn svg { width: 20px; height: 20px; display: block; }
.cl-header .cl-btn--md { padding-top: 0; padding-bottom: 0; height: 44px; }

/* First content section gets pushed below the floating header. */
body > section:first-of-type,
body > div.header-stage + section { padding-top: 144px; }

/* ===== FOOTER ===== */
.footer-stage { background: #fff; padding: 60px 96px 40px; display: flex; justify-content: center; }
.cl-footer {
  width: 100%; max-width: 1440px;
  border-top: 0; padding: 0;
  font-family: var(--cl-font-sans); color: rgb(34,42,54);
  background: #fff; box-sizing: border-box;
  display: flex; flex-direction: column;
}
.cl-footer__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 45px; padding-bottom: 0; flex-wrap: wrap; width: 100%;
}
.cl-footer__left { flex: 0 0 360px; width: 360px; }
.cl-footer__brand { display: block; margin-bottom: 32px; }
.cl-footer__brand img { height: 48px; width: auto; display: block; }
.cl-footer__newsletter-title {
  font-family: var(--cl-font-sans);
  font-size: 18px; font-weight: 500; line-height: 28px;
  color: rgb(34,42,54); margin: 0 0 15px;
}
.cl-footer__form-wrap { width: 360px; display: flex; flex-direction: column; gap: 12px; }
.cl-footer__email {
  width: 100%; height: 48px;
  border: 1px solid rgb(209,213,219); border-radius: 20px;
  background: #fff; padding: 0 24px;
  font-family: var(--cl-font-sans); font-size: 14px;
  color: rgb(34,42,54); outline: none; box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.cl-footer__email::placeholder { color: rgb(153,153,153); }
.cl-footer__email:focus {
  border-color: var(--cl-blue);
  box-shadow: 0 0 0 3px rgba(80,144,255,0.12);
}
.cl-footer__subscribe.cl-btn--md { align-self: flex-start; height: 48px; padding: 0 28px; }
.cl-footer__cols {
  flex: 1 1 auto; display: flex; justify-content: space-between;
  gap: 30px; max-width: 953px; flex-wrap: nowrap;
}
.cl-footer__col { flex: 0 0 auto; min-width: 0; white-space: nowrap; }
.cl-footer__col-title {
  font-family: var(--cl-font-sans);
  font-size: 18px; font-weight: 500; line-height: 28px;
  color: rgb(34,42,54); margin: 0 0 20px; white-space: nowrap;
}
.cl-footer__col-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cl-footer__col-list a {
  font-family: var(--cl-font-sans);
  font-size: 14px; line-height: 20px;
  color: rgb(107,114,128); text-decoration: none;
  transition: color .2s; display: inline-block;
}
.cl-footer__col-list a:hover { color: var(--cl-blue); }
.cl-footer__col-more {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 20px;
  font-family: var(--cl-font-sans); font-size: 14px; line-height: 22px;
  color: #222A36; font-weight: 500; text-decoration: none; transition: color .2s;
}
.cl-footer__col-more::after { content: "›"; font-size: 24px; line-height: 1; transform: translateY(-1px); }
.cl-footer__col-more:hover { color: var(--cl-blue); }
.cl-footer__base {
  margin-top: 64px; padding: 32px 0 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; width: 100%; flex-wrap: wrap;
}
.cl-footer__copy { font-size: 16px; line-height: 24px; color: rgb(107,114,128); margin: 0; }
.cl-footer__social { display: flex; align-items: center; gap: 8px; }
.cl-footer__social a {
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 1px solid #EEF4FF;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgb(34,42,54);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.cl-footer__social a:hover {
  background: var(--cl-blue); color: #fff; border-color: var(--cl-blue);
  transform: translateY(-1px);
}
.cl-footer__social svg { width: 20px; height: 20px; display: block; }
.cl-footer__totop {
  height: 48px; padding: 0 24px;
  border: 1px solid var(--cl-blue); border-radius: 100px;
  background: #fff; color: var(--cl-blue);
  font-size: 14px; font-weight: 500; line-height: 20px;
  text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s, color .2s; white-space: nowrap;
}
.cl-footer__totop:hover { background: var(--cl-blue); color: #fff; }

/* ---- 小さい画面（フッターが横幅を固定していてページが横スクロールしていた） ----
   /enterprise では .ent 側に同等の指定があったが、共通のチャームには無かったため
   リソースハブ等でモバイル時に本文が 803px 幅になっていた。 */
@media (max-width: 900px) {
  .cl-footer__top { flex-direction: column; gap: 40px; }
  .cl-footer__left, .cl-footer__form-wrap { width: 100%; flex: none; max-width: 100%; }
  .cl-footer__brand img { max-width: 100%; }
  .cl-footer__cols { flex-wrap: wrap; gap: 28px 32px; max-width: 100%; }
  .cl-footer__col { flex: 1 1 150px; min-width: 0; max-width: 100%; white-space: normal; }
  .cl-footer__col-title, .cl-footer__col-list a, .cl-footer__col-more { white-space: normal; overflow-wrap: anywhere; }
  .cl-footer__base { flex-direction: column; align-items: flex-start; gap: 20px; }
}
