@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/* ======================================================
   KOTO ビルサービス — カラー設計
   Navy（信頼・誠実）× Blue（清潔感）
====================================================== */
:root {
  --kbs-navy:    #1a3d6e;
  --kbs-navy-lt: #2a5298;
  --kbs-blue:    #1976d2;
  --kbs-blue-lt: #42a5f5;
  --kbs-sky:     #e8f4fd;
  --kbs-sky-lt:  #f4f9ff;
  --kbs-green:   #2e7d32;
  --kbs-orange:  #e65100;
  --kbs-text:    #2c3e50;
  --kbs-light:   #6b7c93;
  --kbs-border:  #d0dde8;
  --kbs-white:   #ffffff;
}

/* ======================================================
   Cocoon / WordPress レイアウト上書き
====================================================== */
html, body { overflow-x: hidden; }

/* サイドバー非表示 */
#sidebar, .sidebar, .widget-area {
  display: none !important;
}
.main {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding-top: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
}

/* ======================================================
   全固定ページ — アーティクルヘッダー・ページタイトルを完全非表示
   .home のみでなく .page クラス全体に拡張する。
   display:none だけでは eye-catch-wrap 等の親の高さが残るため
   height/padding/margin もゼロに畳む。
====================================================== */
.home .article-header,
.page-template-default.home .article-header,
.page .article-header,
.page .entry-header {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
/* TOP・固定ページ共通: entry-content の余白をゼロに
   Cocoon 本体に .entry-content { margin-top:1em; margin-bottom:3em } があるため
   上書きが必要。上部の白い空白と CTA 下の白い余白が消える。 */
.home .entry-content,
.home .main,
.page .entry-content,
.page .article-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.home .entry-content > :first-child,
.page .entry-content > :first-child,
.page .article-content > :first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ======================================================
   Cocoon パンくずリスト — 固定ページで非表示
   #breadcrumb は </article> 直後に Cocoon が出力するため
   height:0 + overflow:hidden で領域ごと畳む
====================================================== */
#breadcrumb,
.breadcrumb,
.breadcrumb-page,
.breadcrumb-caption {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* kbs-breadcrumb（ページヒーロー内カスタムパンくず）も非表示 */
.kbs-breadcrumb {
  display: none !important;
}

/* ブログ関連 非表示 */
.blog .article-header h1 { font-size: 1.4rem; }
.cat-label, .post-date, .post-author { font-size: 0.8rem; }
.widget_recent_entries, .widget_categories, .widget_archive { display: none; }

/* ======================================================
   H2 / H3 スタイル（本文内の装飾見出し）
   .entry-content h2 は Cocoon の装飾をリセットして kbs デザインに統一。
   ただし .kbs-section 内や .kbs-cta-band 内の h2 はセクション見出しとして
   別スコープで上書きするため、ここでは margin のみ控えめに設定する。
====================================================== */
.entry-content h2 {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: var(--kbs-navy) !important;
  background: transparent !important;
  border-top: none !important;
  border-right: none !important;
  border-left: 5px solid var(--kbs-blue) !important;
  border-bottom: 2px solid var(--kbs-border) !important;
  border-radius: 0 !important;
  padding: 0.35em 0 0.35em 0.8em !important;
  margin-top: 2.4em !important;
  margin-bottom: 1.2em !important;
  line-height: 1.4 !important;
}
.entry-content h3 {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--kbs-navy) !important;
  background: var(--kbs-sky) !important;
  border: none !important;
  border-left: 4px solid var(--kbs-blue) !important;
  border-radius: 0 !important;
  padding: 0.5em 0.8em !important;
  margin-top: 1.6em !important;
  margin-bottom: 0.9em !important;
}
.entry-content h2::before,
.entry-content h2::after,
.entry-content h3::before,
.entry-content h3::after {
  display: none !important;
}

/* ======================================================
   kbs-section 内の h2 / h3 — セクション見出しリセット
   .entry-content h2 の margin-top:2.4em が .kbs-section の
   padding-top:64px と積算して ~195px になるのを防ぐ。
   装飾(border/background)もリセットし、セクション内では
   シンプルなネイビー下線スタイルにする。
====================================================== */
.kbs-section h2,
.kbs-section h3 {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  background: transparent !important;
  border-left: none !important;
  border-bottom: 2px solid var(--kbs-border) !important;
  border-top: none !important;
  border-right: none !important;
  padding: 0 0 0.4em !important;
  color: var(--kbs-navy) !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}
.kbs-section h2 {
  font-size: 1.5rem !important;
}
.kbs-section h3 {
  font-size: 1.1rem !important;
  border-bottom: 1px solid var(--kbs-border) !important;
}
.kbs-section h2::before,
.kbs-section h2::after,
.kbs-section h3::before,
.kbs-section h3::after {
  display: none !important;
}

/* kbs-section 内でも h2 が連続する場合（2番目以降）は少しスペースを空ける */
.kbs-section .kbs-inner > h2 + h2,
.kbs-section .kbs-inner > * + h2 {
  margin-top: 2rem !important;
}

/* フッター */
.footer-bottom-logo { display: none !important; }
.footer { background: var(--kbs-navy) !important; color: rgba(255,255,255,0.85) !important; }
.footer a { color: rgba(255,255,255,0.75) !important; }
.footer a:hover { color: var(--kbs-blue-lt) !important; }

/* ======================================================
   汎用ユーティリティ
====================================================== */
.kbs-inner {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
  width: 100%;
}
.kbs-section { padding: 64px 0; }

/* entry-content が Cocoon のデフォルト padding を持っていた場合の打ち消し */
.entry-content,
.article-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* kbs-page-wrap: 固定ページのコンテンツ全体を囲む */
.kbs-page-wrap {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .kbs-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.kbs-bg-sky  { background: var(--kbs-sky) !important; }
.kbs-bg-navy { background: var(--kbs-navy) !important; }
.kbs-bg-white{ background: var(--kbs-white) !important; }

.kbs-section-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--kbs-navy);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}
.kbs-section-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  background: var(--kbs-blue);
  margin: 12px auto 0;
  border-radius: 2px;
}
.kbs-section-lead {
  text-align: center;
  color: var(--kbs-light);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.75;
}

/* ======================================================
   ボタン
====================================================== */
.kbs-btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 6px;
  padding: 15px 36px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}
.kbs-btn-primary {
  background: var(--kbs-blue);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(25,118,210,0.45);
}
.kbs-btn-primary:hover {
  background: var(--kbs-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(25,118,210,0.55);
}
.kbs-btn-outline {
  background: transparent;
  border: 2px solid var(--kbs-blue);
  color: var(--kbs-blue) !important;
}
.kbs-btn-outline:hover {
  background: var(--kbs-blue);
  color: #fff !important;
}
.kbs-btn-white {
  background: #fff;
  color: var(--kbs-navy) !important;
  border: 2px solid #fff;
}
.kbs-btn-white:hover {
  background: transparent;
  color: #fff !important;
}
.kbs-btn-tel {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff !important;
}
.kbs-btn-tel:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
@media (max-width: 480px) {
  .kbs-btn { padding: 14px 20px; font-size: 0.95rem; }
}

/* ======================================================
   TOPページ — ヒーロー
====================================================== */
.kbs-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  min-height: 620px;
  background-image:
    linear-gradient(
      rgba(10, 28, 58, 0.75),
      rgba(21, 60, 108, 0.68)
    ),
    url('https://demo-buil-service.kotoworks.net/wp-content/uploads/2026/08/fv_building.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.kbs-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.kbs-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.kbs-hero__eyebrow {
  display: inline-block;
  background: rgba(66,165,245,0.25);
  border: 1px solid rgba(66,165,245,0.5);
  color: var(--kbs-blue-lt);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.kbs-hero__title {
  font-size: 2.6rem !important;
  font-weight: 900 !important;
  color: #fff !important;
  line-height: 1.5 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4) !important;
  margin: 0 0 16px !important;
}
.kbs-hero__sub {
  font-size: 1.0rem !important;
  color: rgba(255,255,255,0.92) !important;
  line-height: 1.85 !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5) !important;
  margin: 0 0 36px !important;
}
.kbs-hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .kbs-hero {
    min-height: auto;
    background-position: center center;
  }
  .kbs-hero__inner { padding: 72px 20px; }
  .kbs-hero__title { font-size: 1.8rem !important; }
  .kbs-hero__sub { font-size: 0.9rem !important; }
}
@media (max-width: 480px) {
  .kbs-hero {
    min-height: auto;
    background-position: center 30%;
  }
  .kbs-hero__inner { padding: 56px 18px; }
  .kbs-hero__title { font-size: 1.4rem !important; }
  .kbs-hero__cta { flex-direction: column; align-items: center; gap: 12px; }
  .kbs-btn { width: 100%; }
}

/* ======================================================
   ヒーロー画像プレースホルダー
====================================================== */
.kbs-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--kbs-navy) 0%, var(--kbs-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  font-size: 3rem;
  color: rgba(255,255,255,0.5);
  border-radius: 8px;
}
.kbs-img-placeholder__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
}

/* ======================================================
   お知らせ帯
====================================================== */
.kbs-news-band {
  background: var(--kbs-navy);
  padding: 0;
  border-bottom: 3px solid var(--kbs-blue);
}
.kbs-news-band__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  min-height: 56px;
}
.kbs-news-band__label {
  background: var(--kbs-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 20px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.kbs-news-band__items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 24px;
  justify-content: center;
}
.kbs-news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.85);
  padding: 3px 0;
}
.kbs-news-item__date {
  color: var(--kbs-blue-lt);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 80px;
}
.kbs-news-item__cat {
  background: rgba(66,165,245,0.2);
  color: var(--kbs-blue-lt);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 3px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.kbs-news-item__text { line-height: 1.5; }
@media (max-width: 768px) {
  .kbs-news-band__inner { flex-direction: column; min-height: auto; }
  .kbs-news-band__label { padding: 8px 20px; font-size: 0.72rem; }
  .kbs-news-band__items { padding: 12px 16px; }
  .kbs-news-item { font-size: 0.8rem; gap: 8px; }
  .kbs-news-item__date { min-width: 72px; }
}

/* ======================================================
   特徴 カード
====================================================== */
.kbs-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.kbs-feat-card {
  background: var(--kbs-white);
  border-radius: 10px;
  padding: 28px 18px 24px;
  text-align: center;
  box-shadow: 0 3px 14px rgba(26,61,110,0.08);
  border-top: 4px solid var(--kbs-blue);
  transition: transform 0.2s, box-shadow 0.2s;
}
.kbs-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,61,110,0.15);
}
.kbs-feat-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  line-height: 1;
}
.kbs-feat-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--kbs-navy);
  margin-bottom: 10px;
  line-height: 1.4;
}
.kbs-feat-desc {
  font-size: 0.82rem;
  color: var(--kbs-light);
  line-height: 1.75;
  margin: 0;
}
@media (max-width: 900px) {
  .kbs-feat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
  .kbs-feat-grid { grid-template-columns: 1fr; gap: 12px; }
  .kbs-feat-card { padding: 22px 16px; }
}

/* ======================================================
   事業内容 カードグリッド
====================================================== */
.kbs-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.kbs-svc-card {
  background: var(--kbs-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(26,61,110,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none !important;
  color: inherit !important;
}
.kbs-svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(26,61,110,0.18);
}
.kbs-svc-card__img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
  position: relative;
}
.kbs-svc-card__img--blue  { background: linear-gradient(135deg,#1565c0,#42a5f5); }
.kbs-svc-card__img--teal  { background: linear-gradient(135deg,#00695c,#26a69a); }
.kbs-svc-card__img--green { background: linear-gradient(135deg,#2e7d32,#66bb6a); }
.kbs-svc-card__img--navy  { background: linear-gradient(135deg,#1a237e,#5c6bc0); }
.kbs-svc-card__img--brown { background: linear-gradient(135deg,#4e342e,#a1887f); }
.kbs-svc-card__img--sky   { background: linear-gradient(135deg,#0277bd,#29b6f6); }
.kbs-svc-card__body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.kbs-svc-card__title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--kbs-navy);
  margin-bottom: 8px;
}
.kbs-svc-card__desc {
  font-size: 0.82rem;
  color: var(--kbs-light);
  line-height: 1.75;
  flex: 1;
  margin: 0 0 14px;
}
.kbs-svc-card__link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--kbs-blue) !important;
  text-decoration: none !important;
}
.kbs-svc-card__link::after { content: ' →'; }
@media (max-width: 900px) {
  .kbs-svc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
  .kbs-svc-grid { grid-template-columns: 1fr; gap: 14px; }
  .kbs-svc-card__img { height: 100px; font-size: 2.4rem; }
}

/* ======================================================
   選ばれる理由
====================================================== */
.kbs-reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.kbs-reason-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--kbs-white);
  border-radius: 10px;
  padding: 24px 20px;
  border-left: 5px solid var(--kbs-blue);
  box-shadow: 0 2px 10px rgba(26,61,110,0.07);
}
.kbs-reason-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--kbs-blue);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2rem;
  text-align: center;
}
.kbs-reason-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--kbs-navy);
  margin-bottom: 6px;
}
.kbs-reason-text {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
}
@media (max-width: 768px) {
  .kbs-reasons-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ======================================================
   対応施設
====================================================== */
.kbs-facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.kbs-facility-item {
  background: var(--kbs-sky);
  border-radius: 8px;
  padding: 18px 16px;
  text-align: center;
  border: 1px solid var(--kbs-border);
}
.kbs-facility-icon { font-size: 1.8rem; margin-bottom: 8px; }
.kbs-facility-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--kbs-navy);
}
@media (max-width: 768px) {
  .kbs-facility-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .kbs-facility-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ======================================================
   最終 CTA 帯
====================================================== */
.kbs-cta-band {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: linear-gradient(135deg, var(--kbs-navy) 0%, var(--kbs-navy-lt) 100%);
  padding: 60px 20px;
  text-align: center;
}
.kbs-cta-band__title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.5;
}
.kbs-cta-band__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: 32px;
}
.kbs-cta-band__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .kbs-cta-band { padding: 40px 16px; }
  .kbs-cta-band__title { font-size: 1.3rem; }
  .kbs-cta-band__btns { flex-direction: column; align-items: center; }
}

/* ======================================================
   下層ページ — ページヒーロー
====================================================== */
.kbs-page-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: linear-gradient(135deg, #0d2244 0%, #1a3d6e 100%);
  padding: 48px 20px 40px;
  text-align: center;
}
.kbs-page-hero__title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}
.kbs-page-hero__lead {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}
.kbs-breadcrumb {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}
.kbs-breadcrumb a { color: rgba(255,255,255,0.6) !important; text-decoration: none !important; }
.kbs-breadcrumb a:hover { color: var(--kbs-blue-lt) !important; }
@media (max-width: 480px) {
  .kbs-page-hero { padding: 32px 16px 24px; }
  .kbs-page-hero__title { font-size: 1.5rem; }
}

/* ======================================================
   サービス概要 — タグリスト
====================================================== */
.kbs-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.kbs-tag {
  background: var(--kbs-white);
  border: 1.5px solid var(--kbs-blue);
  color: var(--kbs-blue);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
}

/* サービス一覧チェック箇条書き */
.kbs-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
}
.kbs-service-list li {
  font-size: 0.9rem;
  color: var(--kbs-text);
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
}
.kbs-service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--kbs-blue);
  font-weight: 700;
}
@media (max-width: 600px) {
  .kbs-service-list { grid-template-columns: 1fr; }
}

/* ======================================================
   作業の流れ（ステップ）
====================================================== */
.kbs-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.kbs-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  position: relative;
}
.kbs-flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 60px;
  bottom: -4px;
  width: 2px;
  background: var(--kbs-border);
}
.kbs-flow-num {
  width: 48px;
  height: 48px;
  background: var(--kbs-blue);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kbs-flow-body { padding-top: 6px; flex: 1; }
.kbs-flow-title {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--kbs-navy);
  margin-bottom: 4px;
}
.kbs-flow-text {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #555;
  margin: 0;
}

/* ======================================================
   FAQ
====================================================== */
.kbs-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.kbs-faq-item {
  border: 1px solid var(--kbs-border);
  border-radius: 8px;
  overflow: hidden;
}
.kbs-faq-q {
  background: var(--kbs-navy);
  color: #fff;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
}
.kbs-faq-q::before {
  content: 'Q';
  background: var(--kbs-blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1.4;
}
.kbs-faq-a {
  background: var(--kbs-sky-lt);
  padding: 16px 20px;
  font-size: 0.88rem;
  line-height: 1.85;
  color: #444;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.kbs-faq-a::before {
  content: 'A';
  background: var(--kbs-blue-lt);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ======================================================
   インライン CTA 帯（ページ内）
====================================================== */
.kbs-inline-cta {
  background: var(--kbs-sky);
  border: 1px solid var(--kbs-border);
  border-left: 5px solid var(--kbs-blue);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.kbs-inline-cta__text { flex: 1; }
.kbs-inline-cta__title {
  font-size: 1.0rem;
  font-weight: 800;
  color: var(--kbs-navy);
  margin: 0 0 4px;
}
.kbs-inline-cta__sub {
  font-size: 0.84rem;
  color: var(--kbs-light);
  margin: 0;
}
@media (max-width: 600px) {
  .kbs-inline-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .kbs-btn { width: 100%; text-align: center; }
}

/* ======================================================
   会社概要テーブル
====================================================== */
.kbs-company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 12px 0 32px;
}
.kbs-company-table th {
  width: 28%;
  background: var(--kbs-navy);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.kbs-company-table td {
  padding: 14px 16px;
  color: #333;
  border-bottom: 1px solid var(--kbs-border);
  background: var(--kbs-white);
  vertical-align: top;
  line-height: 1.75;
}
.kbs-company-table tr:last-child th,
.kbs-company-table tr:last-child td { border-bottom: none; }
.kbs-tbd {
  display: inline-block;
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}
@media (max-width: 600px) {
  .kbs-company-table th,
  .kbs-company-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
  }
  .kbs-company-table th { border-bottom: none; }
}

/* ======================================================
   採用情報
====================================================== */
.kbs-recruit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.kbs-recruit-card {
  background: var(--kbs-white);
  border-radius: 10px;
  padding: 22px 20px;
  border: 1px solid var(--kbs-border);
  border-top: 4px solid var(--kbs-blue);
  box-shadow: 0 2px 10px rgba(26,61,110,0.06);
}
.kbs-recruit-card__pos {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--kbs-navy);
  margin-bottom: 10px;
}
.kbs-recruit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.kbs-recruit-table th {
  width: 36%;
  background: var(--kbs-sky);
  color: var(--kbs-navy);
  font-weight: 700;
  padding: 8px 10px;
  border: 1px solid var(--kbs-border);
  vertical-align: top;
}
.kbs-recruit-table td {
  padding: 8px 10px;
  border: 1px solid var(--kbs-border);
  color: #444;
  line-height: 1.65;
}
@media (max-width: 768px) {
  .kbs-recruit-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   お問い合わせ — CF7 スタイル
====================================================== */
.wpcf7-form label { font-weight: 600; font-size: 0.9rem; color: var(--kbs-navy); }
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  border: 1px solid var(--kbs-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  background: var(--kbs-sky-lt);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--kbs-blue);
  background: #fff;
}
.wpcf7-form input[type=submit] {
  background: var(--kbs-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}
.wpcf7-form input[type=submit]:hover { background: var(--kbs-navy); }

/* ======================================================
   スマホ固定 CTA バー
====================================================== */
.kbs-fixed-cta { display: none; }
@media (max-width: 768px) {
  .kbs-fixed-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
  }
  .kbs-fixed-tel {
    flex: 1;
    background: var(--kbs-navy);
    color: #fff !important;
    text-align: center;
    padding: 13px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.2;
  }
  .kbs-fixed-contact {
    flex: 1.2;
    background: var(--kbs-blue);
    color: #fff !important;
    text-align: center;
    padding: 13px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.2;
  }
  body { padding-bottom: 56px; }
}

/* ======================================================
   2カラム グリッド（サービス詳細ページ）
====================================================== */
.kbs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.kbs-info-card {
  background: var(--kbs-white);
  border: 1px solid var(--kbs-border);
  border-radius: 8px;
  padding: 20px 18px;
}
.kbs-info-card__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--kbs-navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--kbs-blue);
}
.kbs-info-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kbs-info-card__list li {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}
.kbs-info-card__list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--kbs-blue);
  font-weight: 700;
}
@media (max-width: 600px) {
  .kbs-two-col { grid-template-columns: 1fr; }
}

/* ======================================================
   [Fix 1] FV → お知らせブロックの余白
   overflow-x:hidden による BFC で margin が効かない場合に備えて
   お知らせ側の margin-top で余白を確保する。
   FV 幅（100vw）は変更しない。
====================================================== */
.kbs-news-band {
  margin-top: 40px;
}
@media (max-width: 768px) {
  .kbs-news-band {
    margin-top: 28px;
  }
}
@media (max-width: 480px) {
  .kbs-news-band {
    margin-top: 24px;
  }
}

/* ======================================================
   [Fix 2] CTA帯内のh2 文字色・装飾リセット
   .entry-content h2 に color !important が付いているため
   CTA内のh2が navy に上書きされる問題を解消する
====================================================== */
.kbs-cta-band h1,
.kbs-cta-band h2,
.kbs-cta-band h3,
.kbs-cta-band h4,
.kbs-cta-band .kbs-cta-band__title {
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  text-align: center !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25) !important;
}
.kbs-cta-band .kbs-cta-band__sub {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* 下層ページのインラインCTA内h見出しも同様に対処 */
.kbs-inline-cta h2,
.kbs-inline-cta h3 {
  color: var(--kbs-navy) !important;
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  border-bottom: none !important;
  padding: 0 !important;
  margin: 0 0 4px !important;
}

/* ======================================================
   [Fix 3 & 4] 投稿者情報・記事フッター・編集者リンク 非表示
   企業サイトとして不要な投稿メタ情報をすべて非表示にする
====================================================== */
.article-footer,
.entry-footer,
.footer-meta,
.author-info,
.author-link,
.post-author,
.post-date-wrap,
.post-update-wrap,
.post-cat-label,
.sns-share,
.tags-links,
.breadcrumb + .sns-share,
.related-entry-heading,
.related-entries {
  display: none !important;
}

/* article-footer 消去後のpadding余白をなくす */
article.post {
  padding-bottom: 0 !important;
}
.entry-content {
  padding-bottom: 0 !important;
}

/* ======================================================
   [Fix 5] 横スクロール防止・コンテナはみ出し対策
   overflow-x: hidden を entry-content/main/article に付けると
   margin-left: calc(50% - 50vw) による 100vw full-width が
   BFC（ブロック整形コンテキスト）によって崩れるため削除。
   html/body への設定（35行目）で十分。
====================================================== */
.entry-content,
.main,
article {
  max-width: 100%;
  box-sizing: border-box;
}

/* ======================================================
   [Fix 6] CTA下の不要な白い空白を削除
   display:none だけでは親のpadding/heightが残るため
   article-footer / entry-footer 自体の高さもゼロに畳む
====================================================== */
.article-footer,
.entry-footer {
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: none !important;
}

/* Cocoon固定ページの article（class="post page…"）のpadding-bottom を完全除去 */
article.post,
article.page,
article[class*="type-page"],
article[class*="type-post"] {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* .content-in / .article-content の底余白も除去 */
.content-in,
.article-content,
.entry-content {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* ======================================================
   ノートバンド（注意・補足）
====================================================== */
.kbs-note-band {
  background: var(--kbs-sky);
  border-left: 4px solid var(--kbs-blue);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #444;
}
.kbs-note-warn {
  background: #fff8e1;
  border-left-color: #f9a825;
}
.kbs-note-tbd {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.88rem;
  color: #856404;
}
