@charset "UTF-8";
/*!
 * cc LP Components
 * コーポレート／BtoBサイト用の共通コンポーネント。
 * 色・角丸・影・フォントはすべてCSS変数化されており、
 * スキン側で :root の変数を上書きするだけで印象が変わります。
 *
 * 命名規則: .cc-<block>__<element> --<modifier>
 * Cocoon本体のクラス名とは衝突しません。
 */

/* ============================================================
   1. デザイントークン（既定値 / スキンで上書き可能）
   ============================================================ */
:root {
  /* 色 */
  --cc-primary: #123a6b;
  --cc-primary-dark: #0c2749;
  --cc-primary-light: #2f6cb5;
  --cc-accent: #b8892f;
  --cc-accent-contrast: #ffffff;

  --cc-bg: #ffffff;
  --cc-bg-alt: #f5f7fa;
  --cc-bg-deep: #0f1c33;
  --cc-surface: #ffffff;
  --cc-surface-2: #f7f9fc;

  --cc-text: #1f2733;
  --cc-text-muted: #5d6b7f;
  --cc-text-invert: #ffffff;
  --cc-text-invert-muted: rgba(255, 255, 255, .72);

  --cc-border: #dfe5ee;
  --cc-border-strong: #c3ccda;

  --cc-success: #1a8f5f;
  --cc-warn: #d97706;
  --cc-danger: #d64545;

  /* 半透明トークン（color-mix非対応環境でも確実に効く実値） */
  --cc-tint-primary: rgba(18, 58, 107, .10);
  --cc-tint-primary-strong: rgba(18, 58, 107, .35);
  --cc-tint-accent: rgba(184, 137, 47, .14);
  --cc-tint-accent-strong: rgba(184, 137, 47, .20);
  --cc-tint-success: rgba(26, 143, 95, .12);
  --cc-tint-warn: rgba(217, 119, 6, .09);
  --cc-glass-surface: rgba(255, 255, 255, .08);
  --cc-glass-border: rgba(255, 255, 255, .16);
  --cc-hairline-invert: rgba(255, 255, 255, .18);
  --cc-focus-ring: rgba(18, 58, 107, .20);

  /* グラデーション（先進系スキンで大きく変わる） */
  --cc-gradient: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-primary-light) 100%);
  --cc-gradient-accent: linear-gradient(135deg, var(--cc-accent) 0%, var(--cc-accent) 100%);
  --cc-hero-bg: var(--cc-bg-alt);
  --cc-hero-text: var(--cc-text);
  --cc-hero-overlay: none;

  /* 角丸 */
  --cc-radius-xs: 2px;
  --cc-radius-sm: 4px;
  --cc-radius: 8px;
  --cc-radius-lg: 14px;
  --cc-radius-xl: 22px;
  --cc-radius-pill: 999px;

  /* 影 */
  --cc-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --cc-shadow: 0 4px 12px rgba(16, 24, 40, .08);
  --cc-shadow-lg: 0 16px 40px rgba(16, 24, 40, .12);
  --cc-shadow-glow: 0 0 0 rgba(0, 0, 0, 0);

  /* フォント */
  --cc-font-heading: var(--cocoon-default-font, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif);
  --cc-font-body: inherit;
  --cc-font-en: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cc-heading-weight: 700;
  --cc-heading-tracking: .02em;

  /* 見出しサイズ（スキン・ブレークポイントで上書きできるようトークン化）
     行数が多いときは --cc-title-shrink で倍率を掛けて縮める */
  --cc-title-hero: clamp(30px, 5.2vw, 56px);
  --cc-title-section: clamp(26px, 3.4vw, 38px);
  --cc-title-cta: clamp(24px, 3.2vw, 34px);
  --cc-title-pagehead: clamp(25px, 3.6vw, 40px);
  --cc-title-card: 19px;
  --cc-title-step: 17px;
  --cc-title-plan: 18px;
  --cc-title-voice: 16px;
  --cc-title-shrink: 1;

  /* レイアウト */
  --cc-sbw: 0px;              /* 縦スクロールバー幅（JSが実測して上書き） */
  --cc-container: 1120px;
  --cc-container-narrow: 880px;
  --cc-section-py: 84px;
  --cc-section-py-sp: 56px;
  --cc-gap: 28px;

  /* モーション */
  --cc-ease: cubic-bezier(.22, .61, .36, 1);
  --cc-dur: .45s;
}

/* ============================================================
   2. レイアウト基本
   ============================================================ */

/* LPテンプレートでは本文の左右余白をCocoon側から解放する */
.cc-tpl-corp-front .entry-content,
.cc-tpl-service-lp .entry-content {
  margin-top: 0;
}

.cc-section {
  position: relative;
  box-sizing: border-box;
  padding: var(--cc-section-py) 24px;
  background-color: var(--cc-bg);
  color: var(--cc-text);
}

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

.cc-section--deep {
  background: var(--cc-bg-deep);
  color: var(--cc-text-invert);
}

.cc-section--gradient {
  background: var(--cc-gradient);
  color: var(--cc-text-invert);
}

.cc-section--tight {
  padding-top: calc(var(--cc-section-py) * .6);
  padding-bottom: calc(var(--cc-section-py) * .6);
}

.cc-section--flush {
  padding-left: 0;
  padding-right: 0;
}

.cc-section--deep a:not(.cc-btn),
.cc-section--gradient a:not(.cc-btn) {
  color: var(--cc-text-invert);
}

/* 記事本文の幅制限を超えて全幅で見せるためのブリード
   100vw はデスクトップの縦スクロールバー幅を含むため、そのままだと
   横スクロールが出る。--cc-sbw（JSが実測して設定・既定0）で差し引く。 */
.cc-bleed {
  width: calc(100vw - var(--cc-sbw, 0px));
  max-width: calc(100vw - var(--cc-sbw, 0px));
  margin-left: calc(50% - 50vw + var(--cc-sbw, 0px) / 2);
  margin-right: calc(50% - 50vw + var(--cc-sbw, 0px) / 2);
}

.cc-container {
  width: 100%;
  max-width: var(--cc-container);
  margin-inline: auto;
  box-sizing: border-box;
}

.cc-container--narrow {
  max-width: var(--cc-container-narrow);
}

.cc-grid {
  display: grid;
  gap: var(--cc-gap);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ============================================================
   3. 見出し
   ============================================================ */
.cc-heading {
  margin: 0 0 40px;
  text-align: center;
}

.cc-heading--left {
  text-align: left;
}

.cc-heading__en {
  display: block;
  margin: 0 0 10px;
  font-family: var(--cc-font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cc-accent);
}

.cc-section--deep .cc-heading__en,
.cc-section--gradient .cc-heading__en {
  color: var(--cc-text-invert-muted);
}

.cc-heading__title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--cc-font-heading);
  font-size: calc(var(--cc-title-section) * var(--cc-title-shrink, 1));
  font-weight: var(--cc-heading-weight);
  line-height: 1.35;
  letter-spacing: var(--cc-heading-tracking);
  color: inherit;
}

/* Cocoonの見出し装飾を打ち消して、コンポーネント側の見た目を優先 */
.cc-section h2.cc-heading__title,
.cc-section h3.cc-heading__title,
.cc-section h2.cc-heading__title::before,
.cc-section h3.cc-heading__title::before,
.cc-section h2.cc-heading__title::after,
.cc-section h3.cc-heading__title::after {
  background: none;
  border: 0;
  box-shadow: none;
  content: none;
}

.cc-heading__lead {
  margin: 16px auto 0;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--cc-text-muted);
}

.cc-section--deep .cc-heading__lead,
.cc-section--gradient .cc-heading__lead {
  color: var(--cc-text-invert-muted);
}

.cc-heading--left .cc-heading__lead {
  margin-left: 0;
}

/* ============================================================
   4. ボタン
   ============================================================ */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  box-sizing: border-box;
  min-height: 56px;
  padding: 14px 34px;
  border: 2px solid transparent;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-primary);
  color: var(--cc-text-invert);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--cc-dur) var(--cc-ease),
              box-shadow var(--cc-dur) var(--cc-ease),
              background-color .25s var(--cc-ease),
              color .25s var(--cc-ease);
}

.cc-btn:hover,
.cc-btn:focus-visible {
  color: var(--cc-text-invert);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow-lg);
}

.cc-btn:focus-visible {
  outline: 3px solid var(--cc-accent);
  outline-offset: 3px;
}

.cc-btn--primary {
  background: var(--cc-gradient);
  box-shadow: var(--cc-shadow), var(--cc-shadow-glow);
}

.cc-btn--accent {
  background: var(--cc-accent);
  color: var(--cc-accent-contrast);
}

.cc-btn--accent:hover,
.cc-btn--accent:focus-visible {
  color: var(--cc-accent-contrast);
}

.cc-btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--cc-primary);
}

.cc-btn--ghost:hover,
.cc-btn--ghost:focus-visible {
  background: var(--cc-primary);
  border-color: var(--cc-primary);
  color: var(--cc-text-invert);
}

.cc-section--deep .cc-btn--ghost,
.cc-section--gradient .cc-btn--ghost,
.cc-hero--deep .cc-btn--ghost {
  color: var(--cc-text-invert);
}

.cc-section--deep .cc-btn--ghost:hover,
.cc-section--gradient .cc-btn--ghost:hover {
  background: var(--cc-text-invert);
  color: var(--cc-primary);
}

.cc-btn--lg {
  min-height: 66px;
  padding: 18px 46px;
  font-size: 18px;
}

.cc-btn--block {
  display: flex;
  width: 100%;
}

.cc-btn__sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: .82;
}

.cc-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.cc-btns--center {
  justify-content: center;
}

/* ============================================================
   5. ヒーロー
   ============================================================ */
.cc-hero {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: clamp(64px, 9vw, 128px) 24px;
  background: var(--cc-hero-bg);
  color: var(--cc-hero-text);
}

.cc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.cc-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cc-hero-overlay);
}

.cc-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--cc-container);
  margin-inline: auto;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.cc-hero--center .cc-hero__inner {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
  justify-items: center;
}

.cc-hero--center .cc-hero__btns {
  justify-content: center;
}

.cc-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin: 0 0 20px;
  padding: 7px 16px;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-tint-accent);
  color: var(--cc-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.cc-hero__title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--cc-font-heading);
  font-size: calc(var(--cc-title-hero) * var(--cc-title-shrink, 1));
  font-weight: var(--cc-heading-weight);
  line-height: 1.28;
  letter-spacing: var(--cc-heading-tracking);
  color: inherit;
}

.cc-hero__title::before,
.cc-hero__title::after {
  content: none;
}

.cc-hero__title .cc-mark {
  background: var(--cc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cc-hero__lead {
  margin: 24px 0 0;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 2;
  color: inherit;
  opacity: .88;
}

.cc-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.cc-hero__note {
  margin: 20px 0 0;
  font-size: 13px;
  opacity: .72;
}

.cc-hero__media {
  position: relative;
}

.cc-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--cc-radius-lg);
  box-shadow: var(--cc-shadow-lg);
}

/* ヒーロー下の指標 */
.cc-hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--cc-hairline-invert);
}

.cc-hero__metric b {
  display: block;
  font-family: var(--cc-font-en);
  font-size: 30px;
  line-height: 1.2;
}

.cc-hero__metric span {
  font-size: 12px;
  opacity: .7;
}

/* ============================================================
   6. 下層ページヘッダー
   ============================================================ */
.cc-pagehead {
  box-sizing: border-box;
  padding: clamp(48px, 6vw, 84px) 24px;
  background: var(--cc-gradient);
  color: var(--cc-text-invert);
  text-align: center;
}

.cc-pagehead__en {
  display: block;
  font-family: var(--cc-font-en);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .8;
}

.cc-pagehead__title {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--cc-font-heading);
  font-size: calc(var(--cc-title-pagehead) * var(--cc-title-shrink, 1));
  font-weight: var(--cc-heading-weight);
  color: inherit;
}

.cc-pagehead__title::before,
.cc-pagehead__title::after { content: none; }

/* ============================================================
   7. カード / 特徴
   ============================================================ */
.cc-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-lg);
  background: var(--cc-surface);
  box-shadow: var(--cc-shadow-sm);
  transition: transform var(--cc-dur) var(--cc-ease), box-shadow var(--cc-dur) var(--cc-ease), border-color .25s;
}

.cc-card:hover {
  transform: translateY(-4px);
  border-color: var(--cc-tint-primary-strong);
  box-shadow: var(--cc-shadow-lg);
}

.cc-card__num {
  font-family: var(--cc-font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--cc-accent);
}

.cc-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: var(--cc-radius);
  background: var(--cc-tint-primary);
  color: var(--cc-primary);
  font-size: 24px;
}

.cc-card__title {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--cc-font-heading);
  font-size: 19px;
  font-weight: var(--cc-heading-weight);
  line-height: 1.5;
  color: inherit;
}

.cc-card__title::before,
.cc-card__title::after { content: none; }

.cc-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--cc-text-muted);
}

.cc-card__link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cc-primary);
  text-decoration: none;
}

.cc-card__link::after {
  content: "→";
  margin-left: .4em;
  transition: transform .25s var(--cc-ease);
  display: inline-block;
}

.cc-card:hover .cc-card__link::after {
  transform: translateX(4px);
}

.cc-section--deep .cc-card,
.cc-section--gradient .cc-card {
  background: var(--cc-glass-surface);
  border-color: var(--cc-glass-border);
  color: var(--cc-text-invert);
}

.cc-section--deep .cc-card__text,
.cc-section--gradient .cc-card__text {
  color: var(--cc-text-invert-muted);
}

/* 画像付きカード */
.cc-card--media {
  padding: 0;
  overflow: hidden;
}

.cc-card--media img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.cc-card--media .cc-card__body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ============================================================
   8. 数値（実績）
   ============================================================ */
.cc-stats {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cc-stat {
  box-sizing: border-box;
  padding: 30px 20px;
  border-radius: var(--cc-radius-lg);
  background: var(--cc-surface-2);
  text-align: center;
}

.cc-section--deep .cc-stat,
.cc-section--gradient .cc-stat {
  background: var(--cc-glass-surface);
}

.cc-stat__num {
  display: block;
  font-family: var(--cc-font-en);
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--cc-primary);
}

.cc-section--deep .cc-stat__num,
.cc-section--gradient .cc-stat__num {
  color: var(--cc-text-invert);
}

.cc-stat__unit {
  font-size: .5em;
  margin-left: .15em;
}

.cc-stat__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--cc-text-muted);
}

.cc-section--deep .cc-stat__label,
.cc-section--gradient .cc-stat__label {
  color: var(--cc-text-invert-muted);
}

/* ============================================================
   9. ステップ / 導入の流れ
   ============================================================ */
.cc-steps {
  counter-reset: cc-step;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cc-step {
  position: relative;
  box-sizing: border-box;
  padding: 30px 24px 28px;
  border-radius: var(--cc-radius-lg);
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
}

.cc-step::before {
  counter-increment: cc-step;
  content: "0" counter(cc-step);
  display: block;
  margin-bottom: 12px;
  font-family: var(--cc-font-en);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--cc-tint-primary-strong);
}

.cc-step__title {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 17px;
  font-weight: var(--cc-heading-weight);
  color: inherit;
}

.cc-step__title::before,
.cc-step__title::after { content: none; }

.cc-step__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--cc-text-muted);
}

/* ============================================================
   10. ロゴ / 導入企業
   ============================================================ */
.cc-logos {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: center;
}

.cc-logos img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .68;
  transition: filter .3s, opacity .3s;
}

.cc-logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.cc-logos__caption {
  margin: 0 0 22px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--cc-text-muted);
}

/* ============================================================
   11. 料金プラン
   ============================================================ */
.cc-plans {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.cc-plan {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 34px 28px 32px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-lg);
  background: var(--cc-surface);
}

.cc-plan--featured {
  border-color: var(--cc-primary);
  border-width: 2px;
  box-shadow: var(--cc-shadow-lg), var(--cc-shadow-glow);
  transform: translateY(-8px);
}

.cc-plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-accent);
  color: var(--cc-accent-contrast);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cc-plan__name {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 18px;
  font-weight: var(--cc-heading-weight);
  color: var(--cc-primary);
}

.cc-plan__name::before,
.cc-plan__name::after { content: none; }

.cc-plan__desc {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--cc-text-muted);
}

.cc-plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--cc-border);
  font-family: var(--cc-font-en);
}

.cc-plan__price b {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.cc-plan__price small {
  font-size: 13px;
  color: var(--cc-text-muted);
}

.cc-plan__features {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.cc-plan__features li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 14px;
  line-height: 1.7;
  list-style: none;
}

.cc-plan__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  font-weight: 700;
  color: var(--cc-success);
}

.cc-plan__features li.is-off {
  color: var(--cc-text-muted);
  opacity: .6;
}

.cc-plan__features li.is-off::before {
  content: "—";
  color: var(--cc-text-muted);
}

.cc-plan .cc-btn {
  margin-top: auto;
}

/* ============================================================
   12. 比較表
   ============================================================ */
.cc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--cc-radius);
}

.cc-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: var(--cc-surface);
}

.cc-table th,
.cc-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--cc-border);
  text-align: center;
  vertical-align: middle;
}

.cc-table thead th {
  background: var(--cc-primary);
  color: var(--cc-text-invert);
  font-weight: 700;
  border-bottom: 0;
}

.cc-table thead th:first-child {
  background: var(--cc-primary-dark);
}

.cc-table tbody th {
  background: var(--cc-surface-2);
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

.cc-table td.is-best {
  background: var(--cc-tint-accent);
  font-weight: 700;
}

/* ============================================================
   13. FAQ
   ============================================================ */
.cc-faq {
  max-width: var(--cc-container-narrow);
  margin-inline: auto;
}

.cc-faq__item {
  margin: 0 0 12px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  background: var(--cc-surface);
  overflow: hidden;
}

.cc-faq__q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.cc-faq__q::-webkit-details-marker {
  display: none;
}

.cc-faq__q::before {
  content: "Q";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cc-primary);
  color: var(--cc-text-invert);
  font-family: var(--cc-font-en);
  font-size: 13px;
}

.cc-faq__q::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cc-text-muted);
  border-bottom: 2px solid var(--cc-text-muted);
  transform: rotate(45deg);
  transition: transform .3s var(--cc-ease);
  align-self: center;
}

.cc-faq__item[open] .cc-faq__q::after {
  transform: rotate(-135deg);
}

.cc-faq__a {
  display: flex;
  gap: 14px;
  padding: 0 22px 22px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--cc-text-muted);
}

.cc-faq__a::before {
  content: "A";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cc-tint-accent-strong);
  color: var(--cc-accent);
  font-family: var(--cc-font-en);
  font-size: 13px;
}

/* ============================================================
   14. 導入事例 / お客様の声
   ============================================================ */
.cc-voice {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px;
  border-radius: var(--cc-radius-lg);
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
}

.cc-voice__quote {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
  color: var(--cc-primary);
}

.cc-voice__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--cc-text-muted);
}

.cc-voice__person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--cc-border);
}

.cc-voice__person img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.cc-voice__person b {
  display: block;
  font-size: 14px;
}

.cc-voice__person span {
  display: block;
  font-size: 12px;
  color: var(--cc-text-muted);
}

.cc-voice__result {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-tint-success);
  color: var(--cc-success);
  font-size: 13px;
  font-weight: 700;
}

/* ============================================================
   15. お知らせ一覧
   ============================================================ */
.cc-news {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--cc-border);
}

.cc-news__item {
  list-style: none;
  border-bottom: 1px solid var(--cc-border);
}

.cc-news__link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 20px 8px;
  color: inherit;
  text-decoration: none;
  transition: background-color .2s;
}

.cc-news__link:hover {
  background: var(--cc-surface-2);
  color: inherit;
}

.cc-news__date {
  font-family: var(--cc-font-en);
  font-size: 13px;
  color: var(--cc-text-muted);
  letter-spacing: .04em;
}

.cc-news__cat {
  padding: 3px 12px;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-tint-primary);
  color: var(--cc-primary);
  font-size: 11px;
  font-weight: 700;
}

.cc-news__title {
  flex: 1 1 320px;
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   16. CTA
   ============================================================ */
.cc-cta {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: clamp(48px, 6vw, 80px) 24px;
  background: var(--cc-gradient);
  color: var(--cc-text-invert);
  text-align: center;
}

.cc-cta__title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--cc-font-heading);
  font-size: calc(var(--cc-title-cta) * var(--cc-title-shrink, 1));
  font-weight: var(--cc-heading-weight);
  line-height: 1.45;
  color: inherit;
}

.cc-cta__title::before,
.cc-cta__title::after { content: none; }

.cc-cta__lead {
  margin: 16px auto 0;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--cc-text-invert-muted);
}

.cc-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 34px;
}

.cc-cta .cc-btn--primary {
  background: var(--cc-text-invert);
  color: var(--cc-primary);
}

.cc-cta .cc-btn--primary:hover {
  color: var(--cc-primary);
}

.cc-cta__tel {
  margin-top: 26px;
  font-size: 14px;
  color: var(--cc-text-invert-muted);
}

.cc-cta__tel b {
  display: block;
  font-family: var(--cc-font-en);
  font-size: 30px;
  letter-spacing: .04em;
  color: var(--cc-text-invert);
}

/* 追従CTA（主にスマホ / BtoB LP用） */
.cc-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  gap: 10px;
  box-sizing: border-box;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--cc-surface);
  background: color-mix(in srgb, var(--cc-surface) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--cc-border);
  transform: translateY(110%);
  transition: transform .4s var(--cc-ease);
}

.cc-sticky-cta.is-visible {
  transform: translateY(0);
}

.cc-sticky-cta .cc-btn {
  flex: 1;
  min-height: 50px;
  padding: 10px 14px;
  font-size: 14px;
}

/* 追従CTAの下に隠れないようフッターに余白を足す
   （--cc-sticky-cta-h はJSが実測して設定・既定76px） */
.cc-has-sticky-cta #footer,
.cc-has-sticky-cta .footer {
  padding-bottom: calc(var(--cc-sticky-cta-h, 76px) + 16px);
}

/* ============================================================
   17. 会社概要テーブル / お問い合わせ
   ============================================================ */
.cc-deftable {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.cc-deftable th,
.cc-deftable td {
  padding: 20px 8px;
  border-bottom: 1px solid var(--cc-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
}

.cc-deftable th {
  width: 220px;
  font-weight: 700;
  color: var(--cc-primary);
  white-space: nowrap;
}

.cc-form {
  max-width: var(--cc-container-narrow);
  margin-inline: auto;
}

.cc-form input[type="text"],
.cc-form input[type="email"],
.cc-form input[type="tel"],
.cc-form input[type="url"],
.cc-form select,
.cc-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--cc-border-strong);
  border-radius: var(--cc-radius-sm);
  background: var(--cc-surface);
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}

.cc-form input:focus,
.cc-form select:focus,
.cc-form textarea:focus {
  outline: none;
  border-color: var(--cc-primary);
  box-shadow: 0 0 0 3px var(--cc-focus-ring);
}

.cc-form__required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--cc-radius-xs);
  background: var(--cc-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ============================================================
   18. ユーティリティ
   ============================================================ */
.cc-center { text-align: center; }
.cc-mt-0 { margin-top: 0 !important; }
.cc-mt-s { margin-top: 16px !important; }
.cc-mt-m { margin-top: 32px !important; }
.cc-mt-l { margin-top: 56px !important; }

.cc-lead {
  font-size: 17px;
  line-height: 2.05;
  color: var(--cc-text-muted);
}

.cc-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-tint-primary);
  color: var(--cc-primary);
  font-size: 12px;
  font-weight: 700;
}

.cc-divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--cc-border);
}

/* スクロールリベール */
.cc-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--cc-ease), transform .8s var(--cc-ease);
  will-change: opacity, transform;
}

.cc-reveal.is-in {
  opacity: 1;
  transform: none;
}

.cc-reveal--d1 { transition-delay: .08s; }
.cc-reveal--d2 { transition-delay: .16s; }
.cc-reveal--d3 { transition-delay: .24s; }
.cc-reveal--d4 { transition-delay: .32s; }

/* JS無効時に非表示のままにならないように */
.no-js .cc-reveal,
.cc-no-js .cc-reveal {
  opacity: 1;
  transform: none;
}

/* ============================================================
   19. テンプレート別の調整
   ============================================================ */
/* LPテンプレート：ページタイトルとCocoonの各種余白を最適化 */
.cc-tpl-corp-front .entry-title,
.cc-tpl-service-lp .entry-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cc-tpl-corp-front .article,
.cc-tpl-service-lp .article {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.cc-tpl-corp-front .main,
.cc-tpl-service-lp .main {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.cc-tpl-corp-front .article-header,
.cc-tpl-service-lp .article-header {
  margin-bottom: 0;
}

.cc-tpl-corp-front .date-tags,
.cc-tpl-service-lp .date-tags,
.cc-tpl-corp-front .footer-meta,
.cc-tpl-service-lp .footer-meta {
  display: none;
}

/* エディター（ブロックエディター）でも同じ見た目に近づける */
.editor-styles-wrapper .cc-section,
.editor-styles-wrapper .cc-hero {
  border-radius: var(--cc-radius);
}

.editor-styles-wrapper .cc-bleed {
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* ============================================================
   20. レスポンシブ
   ============================================================ */
@media screen and (max-width: 1023px) {
  .cc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .cc-plan--featured { transform: none; }
}

@media screen and (max-width: 767px) {
  :root {
    --cc-section-py: var(--cc-section-py-sp);
    --cc-gap: 18px;
  }

  .cc-section,
  .cc-hero,
  .cc-cta,
  .cc-pagehead {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cc-grid--2,
  .cc-grid--3,
  .cc-grid--4 { grid-template-columns: minmax(0, 1fr); }

  .cc-heading { margin-bottom: 28px; }

  .cc-btn { width: 100%; }
  .cc-btns .cc-btn,
  .cc-hero__btns .cc-btn,
  .cc-cta__btns .cc-btn { width: 100%; }
  .cc-sticky-cta .cc-btn { width: auto; }

  .cc-deftable th,
  .cc-deftable td {
    display: block;
    width: auto;
    padding: 12px 4px;
  }

  .cc-deftable th {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .cc-hero__metrics { gap: 20px; }
  .cc-card { padding: 26px 22px; }
}

/* ============================================================
   21. アクセシビリティ / モーション配慮
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .cc-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cc-btn,
  .cc-card,
  .cc-sticky-cta {
    transition: none;
  }
}

/* 印刷 */
@media print {
  .cc-sticky-cta { display: none; }
  .cc-reveal { opacity: 1; transform: none; }
}

/* ============================================================
   22. タブ
   ============================================================ */
.cc-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.cc-tabs__btn {
  padding: 12px 26px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-pill);
  background: var(--cc-surface);
  color: var(--cc-text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}

.cc-tabs__btn.is-active {
  background: var(--cc-primary);
  border-color: var(--cc-primary);
  color: var(--cc-text-invert);
}

.cc-tabs__panel[hidden] {
  display: none;
}

/* ============================================================
   23. 下層ページテンプレート用の追加調整
   ============================================================ */
.cc-pagehead__lead {
  margin: 14px auto 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--cc-text-invert-muted);
}

/* ページヘッダーでタイトルを出しているので本文側の見出しは隠す */
.cc-tpl-corp-page .article-header .entry-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cc-tpl-corp-page .cc-pagehead {
  margin-bottom: 40px;
}

/* Cocoonの本文幅を超えて全幅セクションを見せるための保険 */
.cc-tpl .entry-content > .cc-bleed:first-child {
  margin-top: 0;
}

.cc-tpl .entry-content > .cc-hero,
.cc-tpl .entry-content > .cc-section,
.cc-tpl .entry-content > .cc-cta {
  margin-top: 0;
  margin-bottom: 0;
}

/* ============================================================
   24. ブロックエディター（Gutenberg）互換
   ブロックパターンはコアブロック + ccクラスで構成しているため、
   コア側のレイアウト用マージンや余白を打ち消しておく。
   ============================================================ */
.cc-grid > *,
.cc-plans > *,
.cc-steps > *,
.cc-stats > *,
.cc-logos > *,
.cc-btns > *,
.cc-hero__btns > *,
.cc-cta__btns > * {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.cc-section > .cc-container > *:first-child,
.cc-hero > .cc-hero__inner > *:first-child {
  margin-block-start: 0;
  margin-top: 0;
}

/* コアのボタンブロックに .cc-btn を付けた場合の上書き */
.wp-block-button__link.cc-btn,
a.cc-btn,
button.cc-btn {
  min-height: 56px;
  padding: 14px 34px;
  border-radius: var(--cc-radius-pill);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.wp-block-button__link.cc-btn--lg,
a.cc-btn--lg,
button.cc-btn--lg {
  min-height: 66px;
  padding: 18px 46px;
  font-size: 18px;
}

.wp-block-button.cc-btn-wrap {
  margin: 0;
}

.wp-block-buttons.cc-btns,
.wp-block-buttons.cc-hero__btns,
.wp-block-buttons.cc-cta__btns {
  gap: 16px;
}

/* Cocoonの本文内リンク下線などを打ち消す */
.entry-content a.cc-btn,
.entry-content a.cc-card__link,
.entry-content a.cc-news__link {
  text-decoration: none;
}

/* 本文内の要素余白（Cocoon既定）をコンポーネント内では無効化 */
.cc-section p:last-child,
.cc-hero p:last-child,
.cc-card p:last-child,
.cc-voice p:last-child,
.cc-step p:last-child {
  margin-bottom: 0;
}

/* 画像ブロックのCocoon既定余白をリセット */
.cc-hero__media figure,
.cc-card figure,
.cc-logos figure {
  margin: 0;
}

.cc-logos figure img {
  height: 72px;
}

/* ============================================================
   25. コアブロック → ccコンポーネント ブリッジ
   ブロックパターンはコアブロック（group/heading/paragraph/buttons/details）
   で構成しているため、コアの保存markupに対してもスタイルが当たるようにする。
   ============================================================ */

/* --- ボタン（core/buttons + core/button） --- */
.cc-btns .wp-block-button__link,
.cc-hero__btns .wp-block-button__link,
.cc-cta__btns .wp-block-button__link,
.cc-plan .wp-block-button__link,
.cc-sticky-cta .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  box-sizing: border-box;
  min-height: 56px;
  padding: 14px 34px;
  border: 2px solid transparent;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-primary);
  color: var(--cc-text-invert);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: transform var(--cc-dur) var(--cc-ease), box-shadow var(--cc-dur) var(--cc-ease);
}

.cc-btns .wp-block-button__link:hover,
.cc-hero__btns .wp-block-button__link:hover,
.cc-cta__btns .wp-block-button__link:hover,
.cc-plan .wp-block-button__link:hover {
  color: var(--cc-text-invert);
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow-lg);
}

/* 主ボタン */
.cc-btn-wrap--primary .wp-block-button__link {
  background: var(--cc-gradient);
  box-shadow: var(--cc-shadow), var(--cc-shadow-glow);
}

/* アクセントボタン（CV用） */
.cc-btn-wrap--accent .wp-block-button__link {
  background: var(--cc-accent);
  color: var(--cc-accent-contrast);
}

.cc-btn-wrap--accent .wp-block-button__link:hover {
  color: var(--cc-accent-contrast);
}

/* 枠線ボタン */
.cc-btn-wrap--ghost .wp-block-button__link {
  background: transparent;
  border-color: currentColor;
  color: var(--cc-primary);
}

.cc-section--deep .cc-btn-wrap--ghost .wp-block-button__link,
.cc-section--gradient .cc-btn-wrap--ghost .wp-block-button__link,
.cc-hero--deep .cc-btn-wrap--ghost .wp-block-button__link,
.cc-cta .cc-btn-wrap--ghost .wp-block-button__link {
  color: var(--cc-text-invert);
}

.cc-btn-wrap--ghost .wp-block-button__link:hover {
  background: var(--cc-primary);
  border-color: var(--cc-primary);
  color: var(--cc-text-invert);
}

/* CTA帯の中の主ボタンは白抜き */
.cc-cta .cc-btn-wrap--primary .wp-block-button__link {
  background: var(--cc-text-invert);
  color: var(--cc-primary);
}

.cc-cta .cc-btn-wrap--primary .wp-block-button__link:hover {
  color: var(--cc-primary);
}

.cc-btn-wrap--lg .wp-block-button__link {
  min-height: 66px;
  padding: 18px 46px;
  font-size: 18px;
}

/* --- FAQ（core/details） --- */
details.cc-faq__item > summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

details.cc-faq__item > summary::-webkit-details-marker,
details.cc-faq__item > summary::marker {
  display: none;
  content: "";
}

details.cc-faq__item > summary::before {
  content: "Q";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cc-primary);
  color: var(--cc-text-invert);
  font-family: var(--cc-font-en);
  font-size: 13px;
}

details.cc-faq__item > summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  align-self: center;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cc-text-muted);
  border-bottom: 2px solid var(--cc-text-muted);
  transform: rotate(45deg);
  transition: transform .3s var(--cc-ease);
}

details.cc-faq__item[open] > summary::after {
  transform: rotate(-135deg);
}

details.cc-faq__item > *:not(summary) {
  margin: 0;
  padding: 0 22px 22px 62px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--cc-text-muted);
}

/* --- テーブル（core/table に .cc-table を付けた場合） --- */
figure.wp-block-table.cc-table-wrap {
  margin: 0;
  overflow-x: auto;
}

figure.wp-block-table.cc-table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: var(--cc-surface);
}

figure.wp-block-table.cc-table-wrap th,
figure.wp-block-table.cc-table-wrap td {
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--cc-border);
  text-align: center;
}

figure.wp-block-table.cc-table-wrap thead th {
  background: var(--cc-primary);
  color: var(--cc-text-invert);
  font-weight: 700;
  border-bottom: 0;
}

figure.wp-block-table.cc-table-wrap tbody th,
figure.wp-block-table.cc-table-wrap tbody td:first-child {
  background: var(--cc-surface-2);
  text-align: left;
  font-weight: 700;
}

/* --- 会社概要（core/table に .cc-deftable を付けた場合） --- */
figure.wp-block-table.cc-deftable-wrap {
  margin: 0;
}

figure.wp-block-table.cc-deftable-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

figure.wp-block-table.cc-deftable-wrap th,
figure.wp-block-table.cc-deftable-wrap td {
  padding: 20px 8px;
  border: 0;
  border-bottom: 1px solid var(--cc-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
}

figure.wp-block-table.cc-deftable-wrap td:first-child {
  width: 220px;
  font-weight: 700;
  color: var(--cc-primary);
}

/* --- リスト（core/list に .cc-plan__features を付けた場合） --- */
ul.cc-plan__features {
  padding-left: 0;
}

@media screen and (max-width: 767px) {
  figure.wp-block-table.cc-deftable-wrap th,
  figure.wp-block-table.cc-deftable-wrap td {
    display: block;
    width: auto;
    padding: 10px 4px;
  }
  figure.wp-block-table.cc-deftable-wrap td:first-child {
    width: auto;
    border-bottom: 0;
    padding-bottom: 0;
  }
  details.cc-faq__item > *:not(summary) {
    padding-left: 22px;
  }
}

/* ============================================================
   26. パターン専用コンポーネント
   ============================================================ */

/* --- ダークヒーロー --- */
.cc-hero--deep {
  background: var(--cc-bg-deep);
  color: var(--cc-text-invert);
}

.cc-hero--deep .cc-hero__eyebrow {
  background: var(--cc-glass-surface);
  color: var(--cc-text-invert);
}

.cc-hero--deep .cc-hero__lead {
  color: var(--cc-text-invert-muted);
  opacity: 1;
}

/* --- メディア（画像＋本文）--- */
.cc-media {
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
}

.cc-media__img {
  margin: 0;
}

.cc-media__img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--cc-radius-lg);
  box-shadow: var(--cc-shadow-lg);
}

.cc-media__body .cc-heading__title {
  text-align: left;
  margin-bottom: 20px;
}

.cc-media__body .cc-heading__en {
  text-align: left;
}

.cc-media__sign {
  margin: 24px 0 0;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}

/* --- 課題提起 --- */
.cc-problem {
  position: relative;
  box-sizing: border-box;
  padding: 34px 26px 28px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-lg);
  background: var(--cc-surface);
  font-size: 15px;
  line-height: 1.9;
  box-shadow: var(--cc-shadow-sm);
}

.cc-problem::before {
  content: "✓";
  position: absolute;
  top: -16px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cc-danger);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.cc-problem p {
  margin: 0;
}

.cc-arrow-down {
  position: relative;
  margin: 52px 0 0;
  padding-top: 46px;
  text-align: center;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--cc-primary);
}

.cc-arrow-down::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 26px 30px 0 30px;
  border-color: var(--cc-tint-primary-strong) transparent transparent transparent;
}

/* --- 注記 --- */
.cc-note {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--cc-text-muted);
}

/* --- カード内リンク --- */
.cc-card__link a {
  color: inherit;
  text-decoration: none;
}

/* --- 導入事例の人物欄 --- */
.cc-voice__person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--cc-border);
}

.cc-voice__person img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.cc-voice__person b {
  flex: 1 1 calc(100% - 58px);
  font-size: 14px;
  line-height: 1.4;
}

.cc-voice__person span {
  flex: 1 1 100%;
  margin-left: 58px;
  font-size: 12px;
  color: var(--cc-text-muted);
}

/* --- お問い合わせフォーム設置欄 --- */
.cc-form__placeholder {
  margin: 0;
  padding: 40px 24px;
  border: 2px dashed var(--cc-border-strong);
  border-radius: var(--cc-radius);
  background: var(--cc-surface-2);
  text-align: center;
  font-size: 14px;
  line-height: 2;
  color: var(--cc-text-muted);
}

.cc-form__placeholder code {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: var(--cc-radius-xs);
  background: var(--cc-surface);
  font-size: 13px;
}

@media screen and (max-width: 1023px) {
  .cc-media { grid-template-columns: minmax(0, 1fr); }
  .cc-media__sign { text-align: left; }
}

/* ============================================================
   27. スキン側の見出し装飾リセット（最終）
   スキンは .article h2 / h3 に独自の装飾を当てるため、
   LPコンポーネントの見出しだけは装飾を打ち消して、
   コンポーネント自身のデザインを優先させる。
   （.article を含む2クラス以上のセレクタで確実に上書き）
   ============================================================ */
.article .cc-heading__title,
.article .cc-hero__title,
.article .cc-cta__title,
.article .cc-pagehead__title,
.article .cc-card__title,
.article .cc-step__title,
.article .cc-plan__name,
.article .cc-voice__quote,
.article .cc-note-box__title,
.article .cc-post-cta__title,
.article .cc-authorcard__name,
.article .cc-vcard__title,
.article .cc-archive-head__title,
.article .cc-profile-box__name,
.article .cc-media__body .cc-heading__title,
.entry-content .cc-heading__title,
.entry-content .cc-hero__title,
.entry-content .cc-cta__title,
.entry-content .cc-pagehead__title,
.entry-content .cc-card__title,
.entry-content .cc-step__title,
.entry-content .cc-plan__name,
.entry-content .cc-voice__quote,
.entry-content .cc-note-box__title,
.entry-content .cc-post-cta__title,
.entry-content .cc-authorcard__name,
.entry-content .cc-vcard__title,
.entry-content .cc-archive-head__title,
.entry-content .cc-profile-box__name {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  text-shadow: none;
}

.article .cc-heading__title::before,
.article .cc-heading__title::after,
.article .cc-hero__title::before,
.article .cc-hero__title::after,
.article .cc-cta__title::before,
.article .cc-cta__title::after,
.article .cc-pagehead__title::before,
.article .cc-pagehead__title::after,
.article .cc-card__title::before,
.article .cc-card__title::after,
.article .cc-step__title::before,
.article .cc-step__title::after,
.article .cc-plan__name::before,
.article .cc-plan__name::after,
.article .cc-voice__quote::before,
.article .cc-voice__quote::after,
.article .cc-note-box__title::before,
.article .cc-note-box__title::after,
.article .cc-post-cta__title::before,
.article .cc-post-cta__title::after,
.article .cc-authorcard__name::before,
.article .cc-authorcard__name::after,
.article .cc-vcard__title::before,
.article .cc-vcard__title::after,
.entry-content .cc-heading__title::before,
.entry-content .cc-heading__title::after,
.entry-content .cc-hero__title::before,
.entry-content .cc-hero__title::after,
.entry-content .cc-cta__title::before,
.entry-content .cc-cta__title::after,
.entry-content .cc-card__title::before,
.entry-content .cc-card__title::after,
.entry-content .cc-step__title::before,
.entry-content .cc-step__title::after,
.entry-content .cc-plan__name::before,
.entry-content .cc-plan__name::after,
.entry-content .cc-voice__quote::before,
.entry-content .cc-voice__quote::after,
.entry-content .cc-note-box__title::before,
.entry-content .cc-note-box__title::after,
.entry-content .cc-post-cta__title::before,
.entry-content .cc-post-cta__title::after,
.entry-content .cc-authorcard__name::before,
.entry-content .cc-authorcard__name::after,
.entry-content .cc-vcard__title::before,
.entry-content .cc-vcard__title::after {
  content: none;
  display: none;
}

/* リセット後、コンポーネント本来の下マージンを戻す */
.article .cc-heading__title,
.entry-content .cc-heading__title { margin-bottom: 0; }

.article .cc-card__title,
.entry-content .cc-card__title { margin-bottom: 12px; }

.article .cc-step__title,
.entry-content .cc-step__title { margin-bottom: 10px; }

.article .cc-plan__name,
.entry-content .cc-plan__name { margin-bottom: 6px; }

.article .cc-media__body .cc-heading__title,
.entry-content .cc-media__body .cc-heading__title { margin-bottom: 20px; }

.article .cc-pagehead__title,
.entry-content .cc-pagehead__title { margin-top: 10px; }

/* 色だけはコンポーネントの意図を残す */
.article .cc-plan__name,
.entry-content .cc-plan__name {
  color: var(--cc-primary);
}

.article .cc-voice__quote,
.entry-content .cc-voice__quote {
  color: var(--cc-primary);
}

/* 記事内パーツの見出しは本来の意匠に戻す */
.article .cc-note-box__title,
.entry-content .cc-note-box__title {
  margin-bottom: .8em;
  color: var(--cc-primary);
}

.article .cc-note-box--warn .cc-note-box__title,
.entry-content .cc-note-box--warn .cc-note-box__title {
  color: var(--cc-warn);
}

.article .cc-post-cta__title,
.entry-content .cc-post-cta__title {
  margin-bottom: .6em;
}

.article .cc-authorcard__name,
.entry-content .cc-authorcard__name {
  margin-bottom: 10px;
}

/* 縦型カードのタイトルは白・行間クランプを維持 */
.article .cc-vcard__title,
.entry-content .cc-vcard__title {
  margin-bottom: 8px;
  color: #fff;
}

/* 本文リストのCocoon既定装飾もコンポーネント内では無効化 */
.article .cc-plan__features,
.article .cc-news {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.article .cc-plan__features li,
.article .cc-news__item {
  list-style: none;
}

/* Cocoonの本文内テーブル装飾を打ち消す */
.article .cc-table-wrap table,
.article .cc-deftable-wrap table {
  margin: 0;
}

/* ============================================================
   28. モバイルのタップ領域（44px以上を確保）
   スマホでは指で押せるサイズを最優先し、余白を広げる。
   ============================================================ */
@media screen and (max-width: 834px) {
  /* カテゴリーラベル・タグなどの小さなリンク */
  a.cc-post-meta__cat,
  a.cc-tag,
  a.cc-badge {
    min-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    align-items: center;
  }

  /* 目次（本文内・サイドバー追従とも） */
  .cc-blog .toc a,
  .cc-toc-follow a {
    display: block;
    min-height: 44px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .cc-blog .toc-list > li {
    margin-bottom: 0;
  }

  /* 記事内の内部リンクリスト */
  .cc-linklist a {
    min-height: 52px;
  }

  /* フッターナビ */
  .navi-footer-in a {
    display: inline-block;
    padding: 10px 6px;
    min-height: 44px;
  }

  /* 同意チェックなど、ラベルが素のままの箇所 */
  .wpcf7-form .wpcf7-acceptance .wpcf7-list-item > label {
    min-height: 44px;
    padding: 8px 0;
    align-items: center;
  }

  .comment-form .comment-form-cookies-consent label {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* ランキング・お知らせの行 */
  .cc-rank a,
  .cc-news__link {
    min-height: 52px;
  }
}

/* ============================================================
   29. モバイルのボタン幅を揃える
   コアのボタンブロック（.wp-block-button）は内容幅のままなので、
   スマホでは縦積みになったときに幅がバラつく。全幅に揃える。
   ============================================================ */
@media screen and (max-width: 767px) {
  .cc-btns .wp-block-button,
  .cc-hero__btns .wp-block-button,
  .cc-cta__btns .wp-block-button,
  .cc-plan .wp-block-button {
    width: 100%;
  }

  .cc-btns .wp-block-button__link,
  .cc-hero__btns .wp-block-button__link,
  .cc-cta__btns .wp-block-button__link,
  .cc-plan .wp-block-button__link {
    display: flex;
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .cc-btns,
  .cc-hero__btns,
  .cc-cta__btns {
    flex-direction: column;
    gap: 12px;
  }

  .cc-btns--center,
  .cc-cta__btns {
    align-items: stretch;
  }

  /* 追従CTAは横並びのまま。主ボタンを広めに取る */
  .cc-sticky-cta {
    gap: 8px;
  }

  .cc-sticky-cta .cc-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.35;
  }

  .cc-sticky-cta .cc-btn:first-child:not(:only-child) {
    flex: 0 1 40%;
  }
}

/* ============================================================
   30. 見出しサイズの確定（スキンの .article h2/h3 に負けないように）
   ------------------------------------------------------------
   スキンはモバイルで `.article h2 { font-size: 20px }` のように
   本文見出しを縮める。これは (0,1,1) なのでクラス1つのセレクタに勝ってしまい、
   LPコンポーネントの見出しまで小さくなる。
   ここでクラス2つ以上の特異度でサイズを確定させる。
   ============================================================ */
.article .cc-hero__title,
.entry-content .cc-hero__title {
  font-size: calc(var(--cc-title-hero) * var(--cc-title-shrink, 1));
  line-height: 1.28;
}

.article .cc-heading__title,
.entry-content .cc-heading__title {
  font-size: calc(var(--cc-title-section) * var(--cc-title-shrink, 1));
  line-height: 1.35;
}

.article .cc-cta__title,
.entry-content .cc-cta__title,
.article .cc-post-cta__title,
.entry-content .cc-post-cta__title {
  font-size: calc(var(--cc-title-cta) * var(--cc-title-shrink, 1));
  line-height: 1.45;
}

.article .cc-pagehead__title,
.entry-content .cc-pagehead__title {
  font-size: calc(var(--cc-title-pagehead) * var(--cc-title-shrink, 1));
}

.article .cc-card__title,
.entry-content .cc-card__title {
  font-size: var(--cc-title-card);
  line-height: 1.5;
}

.article .cc-step__title,
.entry-content .cc-step__title {
  font-size: var(--cc-title-step);
}

.article .cc-plan__name,
.entry-content .cc-plan__name {
  font-size: var(--cc-title-plan);
}

.article .cc-voice__quote,
.entry-content .cc-voice__quote {
  font-size: var(--cc-title-voice);
  line-height: 1.75;
}

.article .cc-vcard__title,
.entry-content .cc-vcard__title {
  font-size: 14px;
  line-height: 1.55;
}

.article .cc-note-box__title,
.entry-content .cc-note-box__title,
.article .cc-authorcard__name,
.entry-content .cc-authorcard__name {
  font-size: 17px;
  line-height: 1.6;
}

/* 記事タイトルもスキンの h1/h2 指定に負けないよう確定させる */
.cc-blog .article .entry-title,
.cc-blog .entry-header .entry-title {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.42;
}

/* ============================================================
   31. モバイルの見出しスケール
   スマホでは vw 由来の下限だと小さくなりすぎるため、実寸で指定する。
   ============================================================ */
@media screen and (max-width: 767px) {
  :root {
    --cc-title-hero: 32px;
    --cc-title-section: 27px;
    --cc-title-cta: 25px;
    --cc-title-pagehead: 26px;
    --cc-title-card: 19px;
    --cc-title-step: 17px;
    --cc-title-plan: 18px;
    --cc-title-voice: 16px;
  }

  .cc-blog .article .entry-title,
  .cc-blog .entry-header .entry-title {
    font-size: 26px;
  }

  /* 本文まわりの下限も引き上げる */
  .cc-hero__lead,
  .cc-cta__lead,
  .cc-heading__lead {
    font-size: 16px;
  }

  .cc-step__text,
  .cc-voice__text {
    font-size: 15px;
  }

  .cc-plan__desc {
    font-size: 14px;
  }

  .cc-card__text {
    font-size: 15px;
    line-height: 1.9;
  }
}

/* 小さい端末（iPhone SE 等） */
@media screen and (max-width: 374px) {
  :root {
    --cc-title-hero: 28px;
    --cc-title-section: 24px;
    --cc-title-cta: 23px;
    --cc-title-pagehead: 24px;
  }

  .cc-blog .article .entry-title,
  .cc-blog .entry-header .entry-title {
    font-size: 24px;
  }
}
