/* 【サイト全体背景】 */
/* アニメーションするアンビエント背景 */
body {
  position: relative;
  background-color: #f8fafc;
  z-index: 0;
}
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  filter: blur(100px);
  opacity: 0.6;
}
body::before {
  background:
    radial-gradient(
      circle at 15% 50%,
      rgba(59, 130, 246, 0.4),
      transparent 40%
    ),
    radial-gradient(circle at 85% 30%, rgba(219, 39, 119, 0.4), transparent 40%);
  animation: ambientBlob 20s infinite alternate ease-in-out;
}
body::after {
  background: radial-gradient(
    circle at 50% 80%,
    rgba(139, 92, 246, 0.5),
    transparent 50%
  );
  animation: ambientBlob2 25s infinite alternate ease-in-out;
}
@keyframes ambientBlob {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(5%, 5%);
  }
}
@keyframes ambientBlob2 {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.15) translate(-5%, -5%);
  }
}

@media screen and (min-width: 600px) {
  .l-content {
    padding-top: 0;
  }
}

/* 【グラスモーフィズムベース】 */
/* 背景を半透明にし、ぼかし効果を加えることで背面のグラデーションを透けさせる汎用パーツ */
.is-style-glass {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 8px 32px 0 rgba(31, 38, 135, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border-radius: 16px;
}

/* 【グラスモーフィズム強調】 */
/* 少し不透明度を上げ、影を濃くすることで重要なエリアを浮かび上がらせる汎用パーツ */
.is-style-glass-heavy {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 16px 48px 0 rgba(31, 38, 135, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  border-radius: 16px;
}

/* 【テキストグラデーション】 */
/* 見出しなどのアクセント用。ブランドカラーに合わせたグラデーションを文字に適用する */
.text-gradient {
  background: linear-gradient(90deg, #2563eb, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 【ブログ記事エリアの可読性確保】 */
/* 全体がグラデーションだと文字が読みにくいため、メインコンテンツエリアをグラスモーフィズム化する */
#main_content {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 2rem; /* 枠の内側に余白を持たせる */
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* モバイル表示時の余白調整 */
@media screen and (max-width: 959px) {
  #main_content {
    padding: 1rem;
    margin-top: 1rem;
  }
}

/* 【ヘッダー全体】 */
/* SWELL標準の全幅背景を無効化し、inner要素に対してグラスモーフィズムを適用することで、コンテンツ上に浮遊するピル（カプセル）型のヘッダーを実現します。 */
#header,
#fix_header {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.l-fixHeader:before {
  background: transparent !important;
}

.l-header__inner,
.l-fixHeader__inner {
  max-width: 1200px !important;
  margin: 16px auto !important;
  padding: 12px 24px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3) !important;
  box-shadow:
    0 12px 40px 0 rgba(31, 38, 135, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
  border-radius: 24px !important;
}

@media (max-width: 959px) {
  .l-header__inner,
  .l-fixHeader__inner {
    border-radius: 16px !important;
  }
}

/* 【ロゴ】 */
/* ブランドの視認性を高めるため、太字で文字間隔を広げ、Tailwindで指定されていた深いブルーを再現します。 */
.c-headLogo__link {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: #1e3a8a !important;
  letter-spacing: 0.05em !important;
}

@media (min-width: 768px) {
  .c-headLogo__link {
    font-size: 1.5rem !important;
  }
}

/* 【ナビゲーションメニュー】 */
/* グローバルナビゲーションの各メニュー間に適切な余白を持たせ、ホバー時の色変化（青）を設定して操作のフィードバックをわかりやすくします。 */
.c-gnav {
  gap: 1.5rem;
}

.c-gnav > li > a {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #374151 !important;
  transition: color 0.3s ease;
}

.c-gnav > li > a:hover {
  color: #2563eb !important;
}

/* SWELLデフォルトのホバーエフェクト（下線アニメーションなど）を無効化し、今回のクリーンなデザインに統一します。 */
.c-gnav > li > a::after {
  display: none !important;
}

/* 【お問い合わせボタン（CTA）】 */
/* 他のメニュー項目と明確に差別化し、ユーザーの視線を誘導するためにグラデーション背景と角丸のボタン形状を適用します。 */
li.header-cta > a {
  background: linear-gradient(135deg, #2563eb, #8b5cf6) !important;
  color: #ffffff !important;
  padding: 12px 24px !important;
  border-radius: 24px !important;
  font-weight: 800 !important;
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

li.header-cta > a:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 8px 16px rgba(139, 92, 246, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
  background: linear-gradient(135deg, #3b82f6, #a855f7) !important;
  color: #ffffff !important;
}

li.header-cta .ttl {
  font-size: 0.875rem !important;
}

/* 【モバイル用メニューボタン】 */
/* スマホ表示時に右端に配置されるハンバーガーメニューのアイコンを、グラスモーフィズムの枠内に収まりよく配置するための調整です。 */
.l-header__menuBtn {
  color: #1e3a8a !important;
}



/* =========================================================
   【15. サイドバーのプロフェッショナル化】
   ========================================================= */
/*
  メインコンテンツのSaaS風デザイン（白背景・細ボーダー・淡いシャドウ）と
  サイドバーのトーン＆マナーを完全に統一し、サイト全体のクオリティを引き上げます。
*/

#sidebar {
  padding: 2rem 0;
}


/* ウィジェット全体のカード化 */
#sidebar .c-widget {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 20px !important;
  padding: 32px 24px !important;
  margin-bottom: 40px !important;
  box-shadow: 0 10px 30px rgba(31, 38, 135, 0.04) !important;
}

/* ウィジェットタイトル（見出し）の洗練 */
#sidebar .c-widget__title.-side {
  position: relative !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin-bottom: 24px !important;
  padding: 0 0 16px 0 !important;
  border: none !important;
  background: transparent !important;
  border-bottom: 2px solid rgba(37, 99, 235, 0.1) !important;
}

/* タイトル下部のSWELLデフォルト装飾をリセットし、青いアクセントラインに変更 */
#sidebar .c-widget__title.-side::before {
  content: "" !important;
  position: absolute !important;
  bottom: -2px !important; /* border-bottomに重ねる */
  left: 0 !important;
  width: 40px !important;
  height: 3px !important;
  background: linear-gradient(90deg, #3b82f6, #ec4899) !important;
  border-radius: 24px !important;
  z-index: 1 !important;
}

#sidebar .c-widget__title.-side::after {
  display: none !important; /* デフォルトの下線を消す */
}

/* メニューリスト（ul, li）のモダン化 */
#sidebar .c-listMenu ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#sidebar .c-listMenu li {
  border-bottom: 1px solid rgba(15, 23, 42, 0.05) !important; /* 極細の区切り線 */
}

#sidebar .c-listMenu li:last-child {
  border-bottom: none !important;
}

/* メニューリンクのホバーアニメーション */
#sidebar .c-listMenu a {
  position: relative !important;
  display: block !important;
  padding: 16px 8px 16px 24px !important;
  color: #475569 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

#sidebar .c-listMenu .header-cta a {
  background: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* リンク先頭のアイコン（矢印など） */
#sidebar .c-listMenu a::before {
  content: "›" !important; /* シンプルな矢印に変更 */
  position: absolute !important;
  left: 4px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #94a3b8 !important;
  font-size: 18px !important;
  font-family: sans-serif !important;
  transition: all 0.3s ease !important;
}

/* ホバー時のブランドカラー化と右への微細なスライド */
#sidebar .c-listMenu a:hover {
  color: #2563eb !important;
  background: rgba(255, 255, 255, 0.9) !important;
  padding-left: 28px !important; /* 右にずらす */
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05) !important;
}

/* スマホ版（デフォルトの画面幅600px未満を想定した安全な指定） */
/* 余白を確保しつつ全体の文字量や圧迫感を調整 */
body .post_content .wp-block-image {
  margin-bottom: 32px !important;
  max-width: 100% !important;
  width: auto !important;
}

body .post_content .wp-block-image img {
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
}

#sidebar .c-listMenu a:hover::before {
  color: #2563eb !important;
  left: 8px !important; /* 矢印も連動して動かす */
}

/* 現在いるページ（カレント）のハイライト */
#sidebar .c-listMenu li.current-menu-item > a {
  color: #2563eb !important;
  background: #eff6ff !important;
  border-radius: 8px !important;
}

#sidebar .c-listMenu li.current-menu-item > a::before {
  color: #2563eb !important;
}

/* 階層メニュー（サブメニュー）のインデント調整 */
#sidebar .c-listMenu .sub-menu {
  padding-left: 16px !important;
  margin-bottom: 8px !important;
}

#sidebar .c-listMenu .sub-menu a {
  font-size: 14px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  color: #64748b !important;
}

/* サイドバー目次（TOC）の専用スタイル */
#sidebar .p-toc {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

#sidebar .p-toc__list {
  margin: 0 !important;
  padding: 0 !important;
}

#sidebar .p-toc__list li {
  margin-bottom: 8px !important;
}

#sidebar .p-toc__link {
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  display: block !important;
  padding: 4px 0 !important;
  transition: color 0.2s ease !important;
}

#sidebar .p-toc__link:hover {
  color: #2563eb !important;
}

/* 目次のインデント（H3以降） */
#sidebar .p-toc__childList {
  padding-left: 16px !important;
  margin-top: 4px !important;
  border-left: 2px solid #f1f5f9 !important;
}

#sidebar .p-toc__childList .p-toc__link {
  font-size: 13px !important;
  color: #64748b !important;
  font-weight: 400 !important;
}


/* =========================================================
   【17. カスタムCTAセクション】
   ========================================================= */
.p-customCTA {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 58, 138, 0.8)), url("../../assets/img/cta.webp") no-repeat center center;
  background-size: cover;
  position: relative;
}


.p-customCTA__title {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 40px;
}

.p-customCTA__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #ec4899);
  border-radius: 1000px;
  margin: 16px auto 0;
}

.p-customCTA__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.p-customCTA__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(31, 38, 135, 0.05);
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  z-index: 1;
}

/* カードホバー時の背景効果（SaaS風の微細なグラデーション） */
.p-customCTA__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(219, 39, 119, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.p-customCTA__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(31, 38, 135, 0.1);
  border-color: #cbd5e1;
}

.p-customCTA__card:hover::before {
  opacity: 1;
}

.p-customCTA__cardTitle {
  font-size: 20px;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 12px;
}

.p-customCTA__cardDesc {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  flex-grow: 1;
}

.p-customCTA__cardIcon {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 16px;
  background: #f1f5f9;
  border-radius: 50%;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.p-customCTA__cardIcon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.p-customCTA__card:hover .p-customCTA__cardIcon {
  background: #2563eb;
  color: #ffffff;
}

.p-customCTA__card:hover .p-customCTA__cardIcon svg {
  transform: translateX(4px);
}

@media (max-width: 599px) {
  .p-customCTA {
    padding: 40px 16px;
  }
  .p-customCTA__title {
    font-size: 22px;
  }
  .p-customCTA__card {
    padding: 24px;
  }
}

/* =========================================================
   【18. カスタムフッターセクション】
   ========================================================= */
.p-customFooter {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  padding: 64px 20px 32px;
  position: relative;
  z-index: 10;
  box-shadow: 0 -10px 30px rgba(31, 38, 135, 0.03);
  margin-top: 40px;
}


/* ナビゲーションメニュー */
.p-customFooter__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 32px;
  list-style: none;
  padding: 0;
  margin: 0 0 48px 0;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 40px;
}

.p-customFooter__nav li {
  margin: 0;
  padding: 0;
}

/* リストアイテムの装飾をリセット */
.p-customFooter__nav li::before {
  display: none !important;
}

.p-customFooter__nav a {
  font-size: 15px;
  font-weight: 700;
  color: #475569;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.p-customFooter__nav a:hover {
  color: #2563eb;
}

/* メイン（企業情報＆コンタクト） */
.p-customFooter__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.p-customFooter__info {
  flex: 1;
}

.p-customFooter__logo {
  font-size: 28px;
  font-weight: 900;
  color: #1e3a8a;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.p-customFooter__address {
  font-size: 14px;
  color: #64748b;
  line-height: 1.8;
  margin: 0;
}

.p-customFooter__address a {
  color: #3b82f6;
  text-decoration: none;
}

.p-customFooter__address a:hover {
  text-decoration: underline;
}

/* 右側：コンタクトボタン */
.p-customFooter__action {
  flex-shrink: 0;
  margin-left: 32px;
}

.c-richContactBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  padding: 24px 64px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
  border: none !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.c-richContactBtn:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
}

/* コピーライト */
.p-customFooter__copyright {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}

.p-customFooter__copyright a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 767px) {
  .p-customFooter {
    padding: 48px 16px 24px;
  }
  
  .p-customFooter__nav {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .p-customFooter__main {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .p-customFooter__action {
    margin-left: 0;
    width: 100%;
  }

  .c-richContactBtn {
    width: 100%;
    text-align: center;
    padding: 16px 0 !important;
  }
}


