/*
Theme Name: Coco Brothers Child (Cocoon Child)
Theme URI: https://www.coco-brothers.com/
Description: Cocoon子テーマ - 株式会社Coco Brothersサイト再現（ブロックエディター対応）
Author: Coco Brothers
Author URI: https://www.coco-brothers.com/
Template: cocoon-master
Version: 2.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* =====================================================
   CSS変数
===================================================== */
:root {
  --cb-black:       #000000;
  --cb-white:       #ffffff;
  --cb-dark:        #0a0a0a;
  --cb-gray:        #f5f5f5;
  --cb-text:        #1a1a1a;
  --cb-text-sub:    #555555;
  --cb-accent:      #1a6b3c;
  --cb-border:      #e0e0e0;
  --cb-font:        "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --cb-font-en:     "Inter", "Helvetica Neue", Arial, sans-serif;
  --cb-max:         1200px;
  --cb-header-h:    80px;
}

/* =====================================================
   リセット
===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--cb-font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--cb-text);
  background: var(--cb-white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .7; }
ul, ol { list-style: none; }

/* =====================================================
   Cocoon 上書き
===================================================== */
#container, .container, .wrap, #main, .main,
.site-content, #content, .entry-content, .article-body {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
#sidebar, .sidebar { display: none !important; }
.home .breadcrumb, .home .breadcrumbs { display: none !important; }
.cb-page-content { padding: 0 !important; }
.cb-page-content > * { max-width: 100% !important; }

/* =====================================================
   アナウンスバー
===================================================== */
.cb-announce-bar {
  background: var(--cb-black);
  color: var(--cb-white);
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: .03em;
}
.cb-announce-bar a { color: var(--cb-white); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================
   ヘッダー
===================================================== */
.cb-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: box-shadow .3s;
}
.cb-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); }
.cb-header__inner {
  max-width: var(--cb-max);
  margin: 0 auto;
  padding: 0 40px;
  height: var(--cb-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cb-logo__text {
  font-family: var(--cb-font-en);
  font-size: 20px;
  font-weight: 700;
  color: var(--cb-black);
  letter-spacing: .04em;
}
.cb-nav { display: flex; }
.cb-nav__list { display: flex; align-items: center; }
.cb-nav__has-drop { position: relative; }
.cb-nav__link {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cb-text);
  white-space: nowrap;
  transition: color .2s;
}
.cb-nav__link:hover { color: var(--cb-accent); opacity: 1; }

/* ドロップダウン */
.cb-dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: var(--cb-white);
  border: 1px solid var(--cb-border);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden;
  transition: all .2s;
  z-index: 100;
  padding: 8px 0;
}
.cb-nav__has-drop:hover .cb-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cb-dropdown li a { display: block; padding: 10px 20px; font-size: 13px; }
.cb-dropdown li a:hover { background: var(--cb-gray); opacity: 1; }

/* ヘッダーCTA */
.cb-header__cta { display: flex; gap: 12px; margin-left: 8px; }
.cb-btn-sub {
  padding: 8px 18px; font-size: 12px; font-weight: 600;
  border: 2px solid var(--cb-black); border-radius: 4px;
  color: var(--cb-black); letter-spacing: .05em; white-space: nowrap;
  transition: all .2s;
}
.cb-btn-sub:hover { background: var(--cb-black); color: var(--cb-white); opacity: 1; }
.cb-btn-main {
  padding: 8px 18px; font-size: 12px; font-weight: 600;
  background: var(--cb-black); color: var(--cb-white);
  border-radius: 4px; letter-spacing: .05em; white-space: nowrap;
  transition: all .2s;
}
.cb-btn-main:hover { background: #333; opacity: 1; }

/* ハンバーガー */
.cb-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 6px; width: 40px; height: 40px; cursor: pointer; padding: 4px;
  background: none; border: none;
}
.cb-hamburger span {
  display: block; width: 28px; height: 2px;
  background: var(--cb-black); border-radius: 2px; transition: all .3s;
}

/* モバイルメニュー */
.cb-mobile-menu {
  position: fixed; inset: 0;
  background: var(--cb-white);
  z-index: 9998;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding: 100px 32px 40px;
}
.cb-mobile-menu.is-open { transform: translateX(0); }
.cb-mobile-menu nav a {
  display: block; font-size: 22px; font-weight: 700;
  padding: 16px 0; border-bottom: 1px solid var(--cb-border);
  color: var(--cb-text);
}

/* =====================================================
   共通ボタン（ブロック内で使用）
===================================================== */
.cb-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  background: var(--cb-white); color: var(--cb-black);
  font-size: 14px; font-weight: 700; border-radius: 4px;
  letter-spacing: .05em; transition: all .2s;
}
.cb-btn-primary:hover { background: #f0f0f0; opacity: 1; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.cb-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  background: transparent; color: var(--cb-white);
  border: 1px solid rgba(255,255,255,.5);
  font-size: 14px; font-weight: 700; border-radius: 4px;
  letter-spacing: .05em; transition: all .2s;
}
.cb-btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); opacity: 1; }
.cb-btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--cb-black); color: var(--cb-white);
  font-size: 14px; font-weight: 600; border-radius: 4px;
  letter-spacing: .05em; transition: all .2s;
}
.cb-btn-dark:hover { background: #333; opacity: 1; transform: translateY(-2px); }

/* =====================================================
   ヒーローセクション
===================================================== */
.cb-hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background: var(--cb-dark);
  padding-top: var(--cb-header-h);
}
.cb-hero__bg {
  position: absolute; inset: 0;
}
.cb-hero__bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(26,107,60,.3) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(16,80,45,.25) 0%, transparent 50%);
  animation: cbHeroBg 8s ease-in-out infinite alternate;
}
@keyframes cbHeroBg {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.1) translate(2%,-2%); }
}
.cb-hero__content {
  position: relative; z-index: 2;
  max-width: var(--cb-max); margin: 0 auto;
  padding: 80px 40px 60px; width: 100%;
}
.cb-hero__sub {
  font-family: var(--cb-font-en);
  font-size: 11px; font-weight: 500;
  letter-spacing: .3em; color: rgba(255,255,255,.6);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.cb-hero__sub::before {
  content: ''; display: block;
  width: 40px; height: 1px; background: rgba(255,255,255,.4);
}
.cb-hero__catch {
  font-size: clamp(28px, 4.5vw, 58px);
  font-weight: 700; line-height: 1.35;
  color: var(--cb-white); letter-spacing: .02em;
  margin-bottom: 32px; max-width: 800px;
}
.cb-hero__catch em {
  font-style: normal; color: transparent;
  background: linear-gradient(135deg, #34d399, #a7f3d0);
  -webkit-background-clip: text; background-clip: text;
}
.cb-hero__lead {
  font-size: 16px; color: rgba(255,255,255,.75);
  line-height: 1.9; max-width: 560px; margin-bottom: 48px;
}
.cb-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.cb-hero__scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.5); font-size: 11px;
  font-family: var(--cb-font-en); letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
}
.cb-hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: cbScroll 2s ease-in-out infinite;
}
@keyframes cbScroll { 0%,100%{opacity:.5} 50%{opacity:1} }

/* =====================================================
   セクション共通
===================================================== */
.cb-section { padding: 100px 40px; }
.cb-section--dark { background: var(--cb-dark); color: var(--cb-white); }
.cb-section--gray { background: var(--cb-gray); }
.cb-section__inner { max-width: var(--cb-max); margin: 0 auto; }
.cb-section__en {
  display: block;
  font-family: var(--cb-font-en);
  font-size: 11px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--cb-accent); margin-bottom: 12px;
}
.cb-section--dark .cb-section__en { color: rgba(255,255,255,.5); }
.cb-section__title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700; line-height: 1.3; letter-spacing: .02em;
  color: var(--cb-text); margin-bottom: 16px;
}
.cb-section--dark .cb-section__title { color: var(--cb-white); }
.cb-section__desc {
  font-size: 16px; color: var(--cb-text-sub);
  max-width: 600px; line-height: 1.9; margin-bottom: 48px;
}
.cb-section--dark .cb-section__desc { color: rgba(255,255,255,.65); }
.cb-section__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: gap .2s;
}
.cb-section__more:hover { gap: 14px; opacity: 1; }
.cb-section--dark .cb-section__more { color: var(--cb-white); }

/* =====================================================
   私たちについて
===================================================== */
.cb-about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.cb-about__text p { font-size: 16px; line-height: 2; color: var(--cb-text-sub); margin-bottom: 24px; }
.cb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cb-stat { padding: 28px; border: 1px solid var(--cb-border); border-radius: 8px; }
.cb-stat__num {
  font-family: var(--cb-font-en); font-size: 44px; font-weight: 700;
  line-height: 1; margin-bottom: 8px; color: var(--cb-black);
}
.cb-stat__num span { font-size: 20px; font-weight: 400; }
.cb-stat__label { font-size: 13px; color: var(--cb-text-sub); line-height: 1.5; }

/* =====================================================
   事業内容
===================================================== */
.cb-services { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 48px; }
.cb-service-card {
  padding: 36px 28px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  transition: all .3s; cursor: pointer;
}
.cb-service-card:hover {
  border-color: rgba(255,255,255,.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.cb-service-card__num {
  font-family: var(--cb-font-en); font-size: 13px;
  color: rgba(255,255,255,.4); letter-spacing: .1em; margin-bottom: 16px;
}
.cb-service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dbe6ff;
}

.cb-service-card__icon svg {
  width: 46px;
  height: 46px;
  display: block;
}

.cb-service-card__title {
  font-size: 19px; font-weight: 700; line-height: 1.4;
  margin-bottom: 8px; color: var(--cb-white);
}
.cb-service-card__en {
  font-family: var(--cb-font-en); font-size: 11px;
  color: rgba(255,255,255,.35); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 16px;
}
.cb-service-card__desc { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.8; }
.cb-service-card__arrow {
  margin-top: 24px; font-size: 20px;
  color: rgba(255,255,255,.4); transition: transform .2s;
}
.cb-service-card:hover .cb-service-card__arrow { transform: translateX(6px); }

/* =====================================================
   実績数値
===================================================== */
.cb-numbers {
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; overflow: hidden;
}
.cb-number-item {
  padding: 48px 28px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}
.cb-number-item:last-child { border-right: none; }
.cb-number-item__num {
  font-family: var(--cb-font-en); font-size: 48px; font-weight: 700;
  line-height: 1; color: var(--cb-white); margin-bottom: 8px;
}
.cb-number-item__num sup { font-size: 20px; font-weight: 400; }
.cb-number-item__label { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; }

/* =====================================================
   Cocokara（特集カード）
===================================================== */
.cb-featured {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 48px;
}
.cb-featured__card {
  position: relative; overflow: hidden; border-radius: 10px;
  aspect-ratio: 3/4; cursor: pointer; transition: transform .3s;
}
.cb-featured__card:hover { transform: translateY(-6px); }
.cb-featured__card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
  color: var(--cb-white);
}
.cb-featured__card-tag {
  font-size: 10px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: 8px;
}
.cb-featured__card-title { font-size: 15px; font-weight: 700; line-height: 1.5; }

/* =====================================================
   会社情報
===================================================== */
.cb-company {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 48px;
}
.cb-company-card {
  background: var(--cb-white); border-radius: 12px;
  padding: 36px 24px; cursor: pointer; transition: all .3s;
  border: 1px solid var(--cb-border);
}
.cb-company-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.1); }
.cb-company-card__icon { font-size: 32px; margin-bottom: 16px; }
.cb-company-card__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.cb-company-card__desc { font-size: 13px; color: var(--cb-text-sub); line-height: 1.7; }

/* =====================================================
   採用セクション
===================================================== */
.cb-recruit {
  position: relative; min-height: 480px;
  display: flex; align-items: center; overflow: hidden;
  background: var(--cb-dark);
}
.cb-recruit__content {
  position: relative; z-index: 2;
  padding: 80px 40px; max-width: var(--cb-max); margin: 0 auto; width: 100%;
}
.cb-recruit__tag {
  display: inline-block; padding: 6px 16px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; font-family: var(--cb-font-en);
  color: rgba(255,255,255,.7); margin-bottom: 24px;
}
.cb-recruit__title {
  font-size: clamp(26px, 4vw, 50px); font-weight: 700;
  color: var(--cb-white); line-height: 1.3; margin-bottom: 20px;
}
.cb-recruit__desc {
  font-size: 16px; color: rgba(255,255,255,.7);
  max-width: 520px; line-height: 1.9; margin-bottom: 40px;
}

/* =====================================================
   CTAセクション
===================================================== */
.cb-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 0; }
.cb-cta-card {
  background: var(--cb-white); border: 1px solid var(--cb-border);
  border-radius: 12px; padding: 44px 36px; text-align: center;
  transition: all .3s;
}
.cb-cta-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.1); transform: translateY(-4px); }
.cb-cta-card__icon { font-size: 44px; margin-bottom: 16px; }
.cb-cta-card__title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.cb-cta-card__desc { font-size: 14px; color: var(--cb-text-sub); line-height: 1.8; margin-bottom: 24px; }

/* =====================================================
   フッター
===================================================== */
.cb-footer {
  background: var(--cb-black); color: rgba(255,255,255,.8);
  padding: 80px 40px 40px;
}
.cb-footer__top {
  display: grid; grid-template-columns: 260px 1fr; gap: 80px;
  padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.cb-footer__logo {
  font-family: var(--cb-font-en); font-size: 20px; font-weight: 700;
  color: var(--cb-white); margin-bottom: 16px; display: block;
}
.cb-footer__tagline { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.8; margin-bottom: 20px; }
.cb-footer__address { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.9; font-style: normal; }
.cb-footer__nav { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.cb-footer__nav-group h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cb-white);
  margin-bottom: 16px; font-family: var(--cb-font-en);
}
.cb-footer__nav-group ul { display: flex; flex-direction: column; gap: 10px; }
.cb-footer__nav-group ul li a { font-size: 12px; color: rgba(255,255,255,.5); transition: color .2s; }
.cb-footer__nav-group ul li a:hover { color: var(--cb-white); opacity: 1; }
.cb-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px; flex-wrap: wrap; gap: 16px;
}
.cb-footer__copy { font-size: 12px; color: rgba(255,255,255,.35); font-family: var(--cb-font-en); }
.cb-footer__legal { display: flex; gap: 24px; }
.cb-footer__legal a { font-size: 12px; color: rgba(255,255,255,.4); transition: color .2s; }
.cb-footer__legal a:hover { color: rgba(255,255,255,.8); opacity: 1; }

/* =====================================================
   フェードインアニメーション
===================================================== */
.cb-fade { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.cb-fade.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   レスポンシブ
===================================================== */
@media (max-width: 1024px) {
  .cb-nav, .cb-header__cta { display: none; }
  .cb-hamburger { display: flex; }
  .cb-about { grid-template-columns: 1fr; gap: 48px; }
  .cb-services { grid-template-columns: 1fr 1fr; }
  .cb-numbers { grid-template-columns: repeat(2,1fr); }
  .cb-number-item:nth-child(2) { border-right: none; }
  .cb-number-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,.08); }
  .cb-featured { grid-template-columns: repeat(2,1fr); }
  .cb-company { grid-template-columns: repeat(2,1fr); }
  .cb-footer__top { grid-template-columns: 1fr; gap: 48px; }
  .cb-footer__nav { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  :root { --cb-header-h: 64px; }
  .cb-section { padding: 72px 24px; }
  .cb-hero__content { padding: 60px 24px 40px; }
  .cb-services { grid-template-columns: 1fr; }
  .cb-cta { grid-template-columns: 1fr; }
  .cb-footer { padding: 60px 24px 32px; }
  .cb-footer__nav { grid-template-columns: 1fr 1fr; }
  .cb-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .cb-stats { grid-template-columns: 1fr; }
  .cb-featured { grid-template-columns: 1fr; }
  .cb-numbers { grid-template-columns: 1fr; }
  .cb-number-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .cb-company { grid-template-columns: 1fr; }
  .cb-footer__nav { grid-template-columns: 1fr; }
}

/* =====================================================
   CB Luxury polish (2026-03)
===================================================== */
:root {
  --cb-accent: #b08b3a;
  --cb-dark: #0b1220;
  --cb-text: #1f2937;
}

body {
  background: linear-gradient(180deg, #fbfaf7 0%, #f5f1e8 45%, #ffffff 100%);
  color: var(--cb-text);
}

.cb-header {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid rgba(11, 18, 32, .08);
}

.cb-logo__text {
  letter-spacing: .08em;
}

.cb-nav__link {
  position: relative;
  font-weight: 500;
}

.cb-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--cb-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.cb-nav__link:hover::after {
  transform: scaleX(1);
}

.cb-btn-main {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(2, 8, 23, .2);
  color: #fff;
}

.cb-btn-main:hover {
  transform: translateY(-2px);
  opacity: 1;
  box-shadow: 0 16px 34px rgba(2, 8, 23, .26);
}

.cb-btn-sub {
  border-color: rgba(11, 18, 32, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
}

.cb-btn-sub:hover {
  border-color: var(--cb-accent);
  color: var(--cb-dark);
  background: #fff;
}

.cb-footer {
  background: radial-gradient(circle at 5% 0%, rgba(176, 139, 58, .16) 0%, rgba(15, 23, 42, 0) 40%), #0b1220;
}

.cb-footer__logo,
.cb-footer__tagline,
.cb-footer__address,
.cb-footer__copy,
.cb-footer__legal a,
.cb-footer__nav a {
  color: rgba(255, 255, 255, .9);
}

.cb-footer__logo {
  letter-spacing: .08em;
}

.cb-footer__nav a:hover,
.cb-footer__legal a:hover {
  color: #f4d28c;
  opacity: 1;
}

@media (max-width: 768px) {
  .cb-header__inner {
    padding: 0 20px;
  }

  .cb-btn-main,
  .cb-btn-sub {
    padding: 8px 14px;
    font-size: 11px;
  }
}

/* =====================================================
   CB Contact Form polish (2026-03)
===================================================== */
.wpcf7 {
  max-width: 920px;
  margin: 28px auto 0;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.98) 0%, rgba(248,245,238,.98) 100%);
  border: 1px solid rgba(176, 139, 58, .25);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .1);
}
.wpcf7 .CF7_table { width: 100%; border-collapse: separate; border-spacing: 0 14px; }
.wpcf7 .CF7_table th,.wpcf7 .CF7_table td { display:block; width:100%; padding:0; border:0; text-align:left; }
.wpcf7 .CF7_table th { margin-bottom:8px; font-size:13px; font-weight:700; color:#0b1220; letter-spacing:.02em; }
.wpcf7 .CF7_req,.wpcf7 .CF7_unreq { display:inline-block; margin-right:8px; font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px; }
.wpcf7 .CF7_req { color:#fff; background:linear-gradient(135deg,#b08b3a,#d8b66d); }
.wpcf7 .CF7_unreq { color:#374151; background:#e5e7eb; }
.wpcf7 input[type="text"],.wpcf7 input[type="email"],.wpcf7 input[type="tel"],.wpcf7 textarea,.wpcf7 select { width:100%; border:1px solid #d9dee8; border-radius:12px; background:#fff; padding:14px 16px; font-size:15px; line-height:1.6; color:#1f2937; transition:border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.wpcf7 textarea { min-height:180px; resize:vertical; }
.wpcf7 input:focus,.wpcf7 textarea:focus,.wpcf7 select:focus { outline:none; border-color:#b08b3a; box-shadow:0 0 0 4px rgba(176,139,58,.16); }
.wpcf7 input::placeholder,.wpcf7 textarea::placeholder { color:#9aa3b2; }
.wpcf7 .wpcf7-checkbox { display:flex; flex-wrap:wrap; gap:10px 14px; }
.wpcf7 .wpcf7-list-item { margin:0; }
.wpcf7 .CF7_btn { margin-top:18px; }
.wpcf7 .wpcf7-submit { width:100%; max-width:300px; border:0; border-radius:999px; padding:14px 24px; font-size:15px; font-weight:700; letter-spacing:.04em; color:#fff; background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%); box-shadow:0 12px 30px rgba(2,8,23,.2); cursor:pointer; transition:transform .2s ease, box-shadow .2s ease; }
.wpcf7 .wpcf7-submit:hover { transform:translateY(-2px); box-shadow:0 18px 36px rgba(2,8,23,.24); }
.wpcf7 .wpcf7-response-output { margin:18px 0 0; padding:12px 14px; border-radius:10px; font-size:14px; }
@media (max-width:768px) { .wpcf7 { padding:20px 16px; border-radius:14px; } .wpcf7 .wpcf7-submit { max-width:100%; } }


/* =====================================================
   CB About section rebuild (2026-03)
===================================================== */
.cb-section--about-rebuild {
  position: relative;
  background:
    radial-gradient(800px 420px at 90% 10%, rgba(176,139,58,.10), transparent 60%),
    linear-gradient(180deg, #f6f4ef 0%, #f2eee5 100%);
}

.cb-about-reframe {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.cb-about-panel {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 18px;
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 14px 36px rgba(15,23,42,.08);
}

.cb-about-lead {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.6;
  color: #111827;
  font-weight: 600;
  margin-bottom: 18px;
}

.cb-about-copy {
  font-size: 16px;
  line-height: 2;
  color: #4b5563;
  margin: 0;
}

.cb-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cb-about-chip {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 16px;
  min-height: 150px;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.cb-about-chip__num {
  font-family: var(--cb-font-en);
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1;
  color: #0f172a;
  margin-bottom: 10px;
  font-weight: 700;
}

.cb-about-chip__num span {
  font-size: .45em;
  margin-left: 2px;
  font-weight: 600;
  color: #334155;
}

.cb-about-chip__label {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  font-weight: 500;
}

@media (max-width: 980px) {
  .cb-about-reframe { grid-template-columns: 1fr; }
  .cb-about-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cb-about-grid { grid-template-columns: 1fr; }
  .cb-about-chip { min-height: 0; }
}



/* =====================================================
   CB Service section tune (2026-03)
===================================================== */
#services .cb-section__title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.2;
  letter-spacing: .01em;
}

#services .cb-section__desc {
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.75;
  max-width: 760px;
}

#services .cb-service-card__title {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.2;
  margin-bottom: 10px;
}

#services .cb-service-card__en {
  font-size: 14px;
  letter-spacing: .14em;
}

#services .cb-service-card__desc {
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.85;
}

.cb-services__cta-wrap {
  margin-top: 30px;
  text-align: center;
}

.cb-services__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 26px;
  font-size: 16px;
}

@media (max-width: 768px) {
  #services .cb-service-card__title { font-size: 34px; }
  #services .cb-service-card__desc { font-size: 18px; }
  .cb-services__cta { width: 100%; max-width: 360px; }
}



/* Contact single card layout */
.cb-cta--single {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}



/* Fixed header offset for non-home pages */
body:not(.home) .content,
body:not(.home) #content,
body:not(.home) .article,
body:not(.home) #main {
  padding-top: calc(var(--cb-header-h) + 22px) !important;
}

@media (max-width: 768px) {
  body:not(.home) .content,
  body:not(.home) #content,
  body:not(.home) .article,
  body:not(.home) #main {
    padding-top: calc(var(--cb-header-h) + 16px) !important;
  }
}



/* Hero accent word */
.cb-hero__accent {
  color: #72f0d0;
  text-shadow: 0 0 24px rgba(114, 240, 208, .26);
}


/* CB About representative message + portrait */
.cb-about-reframe--message {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  align-items: stretch;
}

.cb-about-message-title {
  margin: 24px 0 10px;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.55;
  color: #0f172a;
  font-weight: 700;
}

.cb-about-copy {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.95;
  color: #334155;
  margin: 0 0 12px;
}

.cb-about-copy--strong {
  font-weight: 700;
  color: #0f172a;
  margin-top: 16px;
}

.cb-about-portrait-wrap {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.cb-about-portrait {
  position: sticky;
  top: calc(var(--cb-header-height, 82px) + 20px);
  width: 100%;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cb-about-portrait img {
  width: 100%;
  display: block;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
}
.cb-about-portrait figcaption {
  text-align: center;
  padding: 18px 8px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 1 !important;
}

@media (max-width: 1080px) {
  .cb-about-reframe--message { grid-template-columns: 1fr; }
  .cb-about-portrait { position: static; max-width: 640px; margin: 0 auto; }
}


/* =====================================================
   事業概要セクション (2026-03)
===================================================== */
.cb-section--overview {
  background: #fff;
}

.cb-overview-lead {
  font-size: 16px;
  color: var(--cb-text-sub);
  max-width: 720px;
  margin-bottom: 48px;
  line-height: 1.9;
}

/* 4部門カード */
.cb-overviewdivisions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.cb-division-card {
  background: #fff;
  border: 1px solid var(--cb-border);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15,23,42,.06);
  transition: transform .3s, box-shadow .3s;
}

.cb-division-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,23,42,.12);
}

.cb-division-card__name {
  font-family: var(--cb-font-en);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #0f172a;
  margin-bottom: 10px;
}

.cb-division-card__logo {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}

.cb-division-card__sub {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--cb-accent);
  letter-spacing: .02em;
}

.cb-division-card__desc {
  font-size: 13px;
  color: var(--cb-text-sub);
  line-height: 1.7;
}

/* 事業領域テーブル */
.cb-overview-table-wrap {
  margin-top: 8px;
  overflow-x: auto;
}

.cb-overview-table-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cb-accent);
  display: inline-block;
}

.cb-overview-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.cb-overview-table th,
.cb-overview-table td {
  border: 1px solid #dde3ed;
  padding: 14px 18px;
  font-size: 16px;
  text-align: left;
  vertical-align: middle;
}

.cb-overview-table thead th {
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
}

.cb-overview-table tbody td.cb-dept {
  background: #f1f5f9;
  font-weight: 700;
  font-family: var(--cb-font-en);
  font-size: 15px;
  color: #0f172a;
  text-align: center;
  white-space: nowrap;
}

.cb-overview-table tbody tr:nth-child(even) td:not(.cb-dept) {
  background: #fafbfc;
}

.cb-tag {
  display: inline-block;
  padding: 3px 10px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  margin: 2px 3px 2px 0;
}

/* サービスセクション（ライトテーマ用調整） */
#services {
  background: #0b1220;
}

/* お問い合わせリード文 */
.cb-contact-lead {
  font-size: 16px;
  color: var(--cb-text-sub);
  margin-bottom: 32px;
  line-height: 1.9;
}

/* 採用ボタン */
.cb-recruit-link {
  margin-top: 40px;
  text-align: center;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .cb-overviewdivisions {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .cb-overviewdivisions {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   事業フロー（時系列）― Polished Design
   ============================================= */
.cb-flow-wrap {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  margin-top: 8px;
  box-shadow: 0 4px 32px rgba(15,23,42,.10);
}

.cb-flow-header {
  display: flex;
  background: linear-gradient(120deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.cb-flow-dept-col {
  width: 155px;
  min-width: 155px;
  padding: 16px 20px;
}

.cb-flow-header .cb-flow-dept-col {
  border-right: 1px solid rgba(255,255,255,.12);
}

.cb-flow-steps-col {
  flex: 1;
  padding: 0 24px;
  min-width: 0;
}

.cb-flow-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #eef2f7;
  transition: background .2s;
}

.cb-flow-row:last-child {
  border-bottom: none;
}

.cb-flow-row:nth-child(odd) { background: #f8fafd; }
.cb-flow-row:nth-child(even) { background: #fff; }

.cb-flow-row .cb-flow-dept-col {
  background: transparent;
  font-weight: 800;
  font-family: var(--cb-font-en);
  font-size: 14px;
  color: #0f172a;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #eef2f7;
  position: relative;
  letter-spacing: .02em;
}

.cb-flow-row .cb-flow-dept-col::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 3px;
  background: var(--cb-accent);
  border-radius: 0 3px 3px 0;
}

.cb-flow-row .cb-flow-steps-col {
  display: flex;
  align-items: center;
  flex: 1;
}

/* チェーン全幅に広げる */
.cb-flow-chain {
  display: flex;
  align-items: stretch;
  flex: 1;
  gap: 0;
  padding: 16px 0;
}

/* アイテムを均等に広げる */
.cb-flow-item {
  flex: 1 1 0;
  min-width: 70px;
  height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(15,23,42,.07);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, border-color .25s;
}

.cb-flow-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15,23,42,.14);
  border-color: var(--cb-accent);
}

.cb-fi-num {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(29,78,216,.38);
}

.cb-fi-text {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  letter-spacing: -.01em;
}

/* 矢印：縦方向中央に固定 */
.cb-flow-arrow {
  color: #cbd5e1;
  font-size: 11px;
  flex-shrink: 0;
  align-self: center;
  padding: 0 4px;
}

.cb-flow-also {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cb-flow-also-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #15803d;
  border: 1.5px solid #86efac;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .cb-flow-wrap { overflow-x: auto; }
  .cb-flow-header, .cb-flow-row { min-width: 620px; }
}


/* ── 部門別カラー (スライド準拠) ── */
/* Technologies: ダークネイビー */
.cb-flow-row--tech .cb-fi-num { background: linear-gradient(135deg, #2d5a8e 0%, #1e3a5f 100%); box-shadow: 0 2px 8px rgba(30,58,95,.40); }
.cb-flow-row--tech .cb-flow-dept-col::before { background: #1e3a5f; }
.cb-flow-row--tech .cb-flow-item:hover { border-color: #1e3a5f; }

/* Ventures: ミッドブルー */
.cb-flow-row--ventures .cb-fi-num { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); box-shadow: 0 2px 8px rgba(37,99,235,.38); }
.cb-flow-row--ventures .cb-flow-dept-col::before { background: #2563eb; }
.cb-flow-row--ventures .cb-flow-item:hover { border-color: #2563eb; }

/* Sales: テールブルー */
.cb-flow-row--sales .cb-fi-num { background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); box-shadow: 0 2px 8px rgba(14,165,233,.38); }
.cb-flow-row--sales .cb-flow-dept-col::before { background: #0ea5e9; }
.cb-flow-row--sales .cb-flow-item:hover { border-color: #0ea5e9; }

/* Consulting: ライトブルー */
.cb-flow-row--consulting .cb-fi-num { background: linear-gradient(135deg, #7eb3d8 0%, #4a7eab 100%); box-shadow: 0 2px 8px rgba(74,126,171,.38); }
.cb-flow-row--consulting .cb-flow-dept-col::before { background: #7eb3d8; }
.cb-flow-row--consulting .cb-flow-item:hover { border-color: #7eb3d8; }

/* ── ヘッダーロゴ画像 ── */
.cb-logo__img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}
.cb-logo { display: flex; align-items: center; }

/* ── 事業紹介 セクション見出し ── */
.cb-service-intro-title,
.cb-intro-heading,
.cb-section__heading,
[class*="cb-service"] > h2:first-child,
[class*="cb-intro"] h2 {
  font-size: clamp(26px, 4vw, 38px);
  text-align: center;
  margin-bottom: 0.5em;
}

/* ── 事業概要セクション 見出し：大きく・中央揃え ── */
#overview .cb-section__en {
  font-size: 13px;
  letter-spacing: .20em;
  text-align: center;
  display: block;
  margin-bottom: 10px;
}
#overview .cb-section__title {
  font-size: clamp(36px, 5vw, 58px);
  text-align: center;
  margin-bottom: 20px;
}
#overview .cb-overview-lead {
  text-align: center;
  font-size: 17px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
}

/* ── ロゴ画像サイズ拡大 ── */
.cb-logo__img {
  height: 52px !important;
  width: auto;
}

/* ── フロー表ヘッダー：テキスト中央揃え・大きく ── */
.cb-flow-header {
  font-size: 15px !important;
  align-items: center;
}
.cb-flow-header .cb-flow-steps-col {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
}
.cb-flow-header .cb-flow-dept-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
}

/* ── フッターロゴ画像 ── */
.cb-footer__logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ── カードホバー → フロー行ふわっとハイライト ── */
.cb-flow-row {
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
}
.cb-flow-row--active {
  background: linear-gradient(90deg, rgba(30,58,95,.10) 0%, rgba(37,99,235,.07) 100%) !important;
  box-shadow: inset 4px 0 0 #1e3a5f, 0 0 0 1.5px rgba(30,58,95,.18);
  transform: translateX(2px);
}
.cb-flow-row--active .cb-flow-item {
  border-color: #1e3a5f;
  box-shadow: 0 4px 18px rgba(30,58,95,.18);
  transition: border-color .35s ease, box-shadow .35s ease;
}
.cb-flow-row--active .cb-flow-dept-col {
  color: #1e3a5f;
}

/* カード自体のホバー演出 */
.cb-division-card {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  cursor: pointer;
}
.cb-division-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(30,58,95,.16);
}

/* =============================================
   部門詳細説明セクション
   ============================================= */
.cb-dd-section {
  background: #07111e;
  margin-top: 0;
}
.cb-dd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.06);
}

/* ── カード基本 ── */
.cb-dd-card {
  position: relative;
  padding: 52px 48px;
  overflow: hidden;
  transition: background .4s ease;
}
.cb-dd-card--tech      { background: #0b1929; --cb-dd-accent: #3b82f6; }
.cb-dd-card--ventures  { background: #071a12; --cb-dd-accent: #10b981; }
.cb-dd-card--sales     { background: #1a1100; --cb-dd-accent: #f59e0b; }
.cb-dd-card--consulting{ background: #110d1a; --cb-dd-accent: #a78bfa; }

/* 左アクセントバー */
.cb-dd-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cb-dd-accent);
  opacity: .35;
  transition: opacity .4s ease, width .3s ease;
}
.cb-dd-card.is-active::before,
.cb-dd-card:hover::before {
  opacity: 1;
  width: 4px;
}

/* 背景デコ数字 */
.cb-dd-card__bg-num {
  position: absolute;
  right: -8px; top: -24px;
  font-size: 160px;
  font-weight: 900;
  font-family: var(--cb-font-en, sans-serif);
  color: rgba(255,255,255,.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color .4s ease;
}
.cb-dd-card.is-active .cb-dd-card__bg-num,
.cb-dd-card:hover     .cb-dd-card__bg-num { color: rgba(255,255,255,.07); }

/* コンテンツ */
.cb-dd-card__inner   { position: relative; z-index: 1; }
.cb-dd-card__header  { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.cb-dd-card__num     { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--cb-dd-accent); font-family: var(--cb-font-en, sans-serif); }
.cb-dd-card__name    { font-size: 26px; font-weight: 800; color: #fff; font-family: var(--cb-font-en, sans-serif); margin: 0; letter-spacing: .02em; }
.cb-dd-card__tagline {
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  color: var(--cb-dd-accent);
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cb-dd-card__text {
  font-size: 14px;
  color: rgba(255,255,255,.70);
  line-height: 1.95;
  margin: 0;
}

/* ホバー/アクティブ時の背景色 */
.cb-dd-card--tech.is-active,
.cb-dd-card--tech:hover      { background: #0f2540; }
.cb-dd-card--ventures.is-active,
.cb-dd-card--ventures:hover  { background: #0a2718; }
.cb-dd-card--sales.is-active,
.cb-dd-card--sales:hover     { background: #221600; }
.cb-dd-card--consulting.is-active,
.cb-dd-card--consulting:hover{ background: #17102a; }

@media (max-width: 860px) {
  .cb-dd-grid { grid-template-columns: 1fr; }
  .cb-dd-card { padding: 40px 28px; }
  .cb-dd-card__name { font-size: 22px; }
  .cb-dd-card__bg-num { font-size: 110px; }
}

/* ========================================
   フローアイテム: 番号非表示・文字拡大
   ======================================== */
.cb-fi-num {
  display: none !important;
}
.cb-fi-text {
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}
.cb-fi {
  justify-content: center !important;
  align-items: center !important;
  min-height: 64px !important;
}


/* ========================================
   事業紹介セクション (Services)
   ======================================== */
.cb-services-section {
  background: #07111e;
  padding: 100px 0;
}

.cb-services-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.cb-section-header--light .cb-section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #c9a84c;
  margin-bottom: 12px;
}

.cb-section-header--light .cb-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 60px;
  letter-spacing: .04em;
}

/* 3カラムグリッド */
.cb-srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
}

/* 各カード */
.cb-srv-card {
  background: #0d1e30;
  padding: 44px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background .3s ease, transform .3s ease;
  position: relative;
  overflow: hidden;
}

.cb-srv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #c9a84c, #e8c97a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.cb-srv-card:hover {
  background: #132540;
}

.cb-srv-card:hover::before {
  transform: scaleX(1);
}

.cb-srv-card__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cb-srv-card__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #c9a84c;
  text-transform: uppercase;
}

.cb-srv-card__title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin: 0;
  letter-spacing: .02em;
}

.cb-srv-card__text {
  font-size: .95rem;
  line-height: 1.9;
  color: rgba(255,255,255,.72);
  margin: 0;
  flex: 1;
}

.cb-srv-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background .3s, border-color .3s, transform .3s;
  align-self: flex-start;
  margin-top: auto;
}

.cb-srv-card__arrow:hover {
  background: #c9a84c;
  border-color: #c9a84c;
  transform: translateX(4px);
  color: #07111e;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .cb-srv-grid {
    grid-template-columns: 1fr;
  }
  .cb-srv-card::before {
    width: 3px; height: 100%;
    top: 0; left: 0;
    transform: scaleY(0);
    transform-origin: top;
  }
  .cb-srv-card:hover::before {
    transform: scaleY(1);
  }
}


/* ========================================
   サービス詳細ページ – 親テーマ上書きリセット
   ======================================== */
.svc-page h1,
.svc-page h2,
.svc-page h3,
.svc-page h4,
.svc-page p,
.svc-page a {
  color: inherit;
}
.svc-page h2 {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
}
.svc-page h3 {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.svc-page .svc-h2 {
  color: #ffffff !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
}
.svc-page .svc-feat__h {
  color: #ffffff !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}
.svc-page .svc-step__h {
  color: #ffffff !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 6px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
}
.svc-page .svc-hero__title {
  color: #ffffff !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
  font-size: clamp(3rem, 6vw, 5rem) !important;
  font-weight: 900 !important;
  line-height: 1.0 !important;
}
.svc-page .svc-cta__h {
  color: #ffffff !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
}
/* コンテンツ幅の制限を解除 */
.svc-page {
  width: 100% !important;
  max-width: 100% !important;
}
.entry-content .svc-page,
.article-body .svc-page {
  margin: 0 !important;
  padding: 0 !important;
}


/* ========================================
   サービス詳細ページ – フル幅レイアウト修正
   (page-id 421=BizDev100 / 422=5%Capital / 423=Share-Root)
   ======================================== */
.page-id-421 .layout-two-column,
.page-id-422 .layout-two-column,
.page-id-423 .layout-two-column,
.page-id-421 .main-container,
.page-id-422 .main-container,
.page-id-423 .main-container {
  max-width: 100% !important;
  width: 100% !important;
}

/* サイドバーを非表示 */
.page-id-421 #sidebar,
.page-id-422 #sidebar,
.page-id-423 #sidebar,
.page-id-421 .sidebar,
.page-id-422 .sidebar,
.page-id-423 .sidebar {
  display: none !important;
}

/* メインカラムをフル幅に */
.page-id-421 #content,
.page-id-422 #content,
.page-id-423 #content,
.page-id-421 .main,
.page-id-422 .main,
.page-id-423 .main,
.page-id-421 .entry-content,
.page-id-422 .entry-content,
.page-id-423 .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.page-id-421 .article,
.page-id-422 .article,
.page-id-423 .article {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

/* ページタイトルエリア非表示 */
.page-id-421 .page-header,
.page-id-422 .page-header,
.page-id-423 .page-header,
.page-id-421 .entry-header,
.page-id-422 .entry-header,
.page-id-423 .entry-header,
.page-id-421 .cat-label,
.page-id-422 .cat-label,
.page-id-423 .cat-label {
  display: none !important;
}

/* フッターの上余白リセット */
.page-id-421 .footer,
.page-id-422 .footer,
.page-id-423 .footer {
  margin-top: 0 !important;
}

/* グリッドレイアウト修正 */
.page-id-421 .svc-steps,
.page-id-422 .svc-steps,
.page-id-423 .svc-steps {
  width: 100%;
}


/* ========================================
   WP auto-p 対策：svc-step / svc-feat の
   グリッド崩れ修正
   ======================================== */

/* WordPress が自動挿入する空 <p> を非表示 */
.svc-step > p:empty,
.svc-feat > p:empty,
.svc-feats > p:empty,
.svc-block__inner > p:empty,
.svc-hero__inner > p:empty,
.svc-steps > p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* svc-step: grid → flex に変更して堅牢化 */
.svc-step {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 28px !important;
  grid-template-columns: unset !important;
}

.svc-step__n {
  flex: 0 0 56px !important;
  min-width: 56px !important;
  font-size: 2.2rem !important;
  font-weight: 900 !important;
  color: rgba(201,168,76,.25) !important;
  line-height: 1 !important;
  padding-top: 4px !important;
}

.svc-step > div {
  flex: 1 !important;
  min-width: 0 !important;
}

/* WP auto-p が svc-step 直下に入った場合も flex で無視させる */
.svc-step > p {
  display: none !important;
}

/* svc-feats グリッドの直下p も非表示 */
.svc-feats > p {
  display: none !important;
}


/* ===== 会社概要セクション ===== */
.cb-company-section {
  background: #ffffff;
  padding: 100px 0;
}
.cb-company-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}
.cb-company-table-wrap {
  margin-top: 56px;
}
.cb-company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.cb-company-table tr {
  border-bottom: 1px solid #e8e8e8;
}
.cb-company-table tr:first-child {
  border-top: 1px solid #e8e8e8;
}
.cb-company-table th {
  width: 180px;
  padding: 22px 24px 22px 0;
  font-weight: 600;
  color: #0f1e3c;
  vertical-align: top;
  white-space: nowrap;
  background: none !important;
  border: none !important;
  text-align: left;
}
.cb-company-table td {
  padding: 22px 0;
  color: #444;
  line-height: 1.7;
  vertical-align: top;
  background: none !important;
  border: none !important;
}
@media (max-width: 640px) {
  .cb-company-table,
  .cb-company-table tbody,
  .cb-company-table tr,
  .cb-company-table th,
  .cb-company-table td {
    display: block;
    width: 100%;
  }
  .cb-company-table th {
    padding: 18px 0 4px;
    color: #c8a84b;
    font-size: 0.85rem;
  }
  .cb-company-table td {
    padding: 0 0 18px;
  }
  .cb-company-table tr:first-child th {
    padding-top: 18px;
  }
}

/* 会社概要テーブル Cocoon override */
.cb-company-table th,
.cb-company-table td,
.cb-company-table tr th,
.cb-company-table tr td,
table.cb-company-table th,
table.cb-company-table td {
  background-color: transparent !important;
  background: transparent !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}
.cb-company-table tr {
  border-bottom: 1px solid #e0e0e0 !important;
}
.cb-company-table tr:first-child {
  border-top: 1px solid #e0e0e0 !important;
}
.cb-company-section .cb-section-header .cb-section-label {
  color: #c8a84b;
}


/* ===== SERVICE ドロップダウンナビ ===== */
.cb-nav__item--dropdown {
  position: relative;
}
.cb-nav__link--dropdown::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.7;
}
.cb-nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f1e3c;
  min-width: 160px;
  border-top: 2px solid #1a6cbf;
  border-radius: 0 0 6px 6px;
  z-index: 200;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  list-style: none;
  margin: 0;
}
.cb-nav__item--dropdown:hover .cb-nav__dropdown {
  display: block;
}
.cb-nav__dropdown li {
  margin: 0;
  padding: 0;
}
.cb-nav__dropdown-link {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.cb-nav__dropdown-link:hover {
  color: #7ec8e3 !important;
  background: rgba(255,255,255,0.06);
}

/* ===== Flow table: pair cells ===== */
.cb-flow-item--pair {
  justify-content: space-between;
  padding: 10px 14px;
  height: 76px;
}
.cb-fi-top,
.cb-fi-bot {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  line-height: 1.25;
  letter-spacing: -.01em;
  width: 100%;
}
.cb-fi-sep {
  width: 72%;
  height: 1px;
  background: #cbd5e1;
  flex-shrink: 0;
  align-self: center;
}
/* single-text cells: hide legacy number badge, center text */
.cb-flow-item:not(.cb-flow-item--pair) > .cb-fi-text:first-child {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  line-height: 1.3;
}
/* color accents for pair separators by dept */
.cb-flow-row--tech    .cb-fi-sep { background: linear-gradient(90deg,#3b82f6,#1d4ed8); opacity:.35; }
.cb-flow-row--ventures .cb-fi-sep { background: linear-gradient(90deg,#10b981,#047857); opacity:.35; }
.cb-flow-row--sales    .cb-fi-sep { background: linear-gradient(90deg,#f59e0b,#b45309); opacity:.35; }
.cb-flow-row--consulting .cb-fi-sep { background: linear-gradient(90deg,#8b5cf6,#6d28d9); opacity:.35; }

/* single-text cell font size tweak */
.cb-flow-item > .cb-fi-text {
  font-size: 11px;
  font-weight: 700;
}
/* ensure all cells same min-width */
.cb-flow-item, .cb-flow-item--pair {
  min-width: 90px;
}

/* single-item cell: fit long text on one line */
.cb-flow-item:not(.cb-flow-item--pair) {
  min-width: 110px;
}
.cb-flow-item:not(.cb-flow-item--pair) .cb-fi-text {
  font-size: 10.5px;
  white-space: nowrap;
}

/* flow table dept logo */
.cb-flow-dept-logo {
  width: 72px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
/* dept-colの幅を少し広げて画像が収まるよう */
.cb-flow-dept-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 事業フロー レスポンシブ調整 ===== */

/* ロゴ：ブラウザ幅に追従、最小70px〜最大120px */
.cb-flow-dept-logo {
  width: clamp(70px, 10vw, 120px) !important;
  height: auto !important;
  max-height: none !important;
}

/* 部門列：ロゴに合わせた幅 */
.cb-flow-dept-col {
  min-width: clamp(100px, 13vw, 170px) !important;
  width: clamp(100px, 13vw, 170px) !important;
  flex-shrink: 0 !important;
}
.cb-flow-header .cb-flow-dept-col {
  min-width: clamp(100px, 13vw, 170px) !important;
  width: clamp(100px, 13vw, 170px) !important;
}

/* 単体テキストセル：レスポンシブフォント、折り返しなし */
.cb-flow-chain .cb-flow-item:not(.cb-flow-item--pair) .cb-fi-text {
  font-size: clamp(12px, 1.5vw, 16px) !important;
  white-space: nowrap !important;
  font-weight: 700 !important;
}

/* ペアセルテキスト：単体より少し小さく */
.cb-flow-item--pair .cb-fi-top,
.cb-flow-item--pair .cb-fi-bot {
  font-size: clamp(10px, 1.2vw, 13px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* セル高さ：フレキシブル */
.cb-flow-item,
.cb-flow-item--pair {
  height: auto !important;
  min-height: clamp(62px, 7.5vw, 90px) !important;
  min-width: clamp(80px, 10vw, 130px) !important;
  flex: 1 1 0 !important;
}
