/* 基本スタイル */
:where([class^="ri-"])::before {
  content: "\f3c2";
}

/* テキスト省略 */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-4 {
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* 初期表示時のちらつき防止 */
html {
  visibility: visible;
  opacity: 1;
}

body {
  font-family: "Noto Serif JP", Georgia, "Times New Roman", serif;
  font-variant-numeric: tabular-nums;
  /* 初期表示時のちらつき防止 */
  background-color: #f9fafb;
}

/* ページ読み込み完了までコンテンツを非表示 */
.js-loading {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease-in-out;
}

.js-loaded {
  visibility: visible;
  opacity: 1;
}

/* Scroll Animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Animation */
.hero-fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s ease-out forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スクロールバー */
.scrollbar-thin::-webkit-scrollbar {
  height: 4px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: #e6eef7;
  border-radius: 2px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: #B08D48;
  border-radius: 2px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: #1E293B;
}

/* セクション交互背景色＋ボーダー強調 */
.section:nth-of-type(even) {
  background: #f0f4f8;
}

.section:nth-of-type(odd) {
  background: #ffffff;
}

.section {
  border-bottom: 1px solid #e0e4ea;
  position: relative;
  overflow: hidden;
}

.section::after {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background: #1E293B;
  opacity: 0.18;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
}

.section-title-accent {
  display: block;
  width: 56px;
  height: 4px;
  margin: 0.5rem auto 0.5rem auto;
  background: #1E293B;
  border-radius: 2px;
}

/* セクションタイトルふわっとアニメーション */
.section-title-animate {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title-animate.is-visible {
  opacity: 1;
  transform: none;
}

.section-title-animate.delay-0 {
  transition-delay: 0s;
}

.section-title-animate.delay-1 {
  transition-delay: 0.1s;
}

.section-title-animate.delay-2 {
  transition-delay: 0.2s;
}

/* グローバルナビゲーションおしゃれ化 */
.global-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px 0 rgba(26, 82, 118, 0.1);
  border-top: 2px solid #1E293B;
}

.reserve-btn {
  background: linear-gradient(to right, #239b56 0%, #28b463 100%) !important;
  color: #fff !important;
  font-weight: bold;
  border-radius: 12px 0 0 12px !important;
  box-shadow: 0 4px 16px 0 rgba(26, 82, 118, 0.15);
  border: none;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.reserve-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px 0 rgba(26, 82, 118, 0.25);
}

/* 事務所の強みカード用あしらい */
.card-strong {
  border: 1.5px solid #e3eaf3;
  box-shadow: 0 4px 16px 0 rgba(26, 82, 118, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card-strong:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px 0 rgba(26, 82, 118, 0.2);
}

.card-strong i {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* スマホ・タブレット等タッチデバイスではホバー効果を無効化 */
@media (hover: none) and (pointer: coarse) {
  .card-strong:hover {
    transform: none;
    box-shadow: 0 4px 16px 0 rgba(26, 82, 118, 0.1);
  }
}

/* カード上部にグラデーションのアクセントライン */
.card-strong::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #1E293B;
  border-radius: 2px 2px 0 0;
  z-index: 2;
}

/* アイコン背景にパルスアニメーション */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(58, 124, 165, 0.3);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(58, 124, 165, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(58, 124, 165, 0);
  }
}

.icon-gradient-expert,
.icon-gradient-support,
.icon-gradient-result {
  background: #1E293B !important;
  animation: pulse 2.5s infinite;
}

/* 吹き出し風カードスタイル */
.speech-bubble-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.speech-bubble-card::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #ffffff;
}

/* FVメッセージふわっとアニメーション */
.fv-title,
.fv-desc {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.fv-title {
  color: #fff;
}

.fv-desc {
  color: #fff;
  font-weight: 500;
}

.fv-fadein {
  position: relative;
  display: inline-block;
  color: #fff;
  opacity: 0;
  transform: translateY(24px);
  animation: fvFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.fv-fadein.delay {
  animation-delay: 0.6s;
}

.fv-fadein::after {
  content: "";
  position: absolute;
  left: -10%;
  top: 0;
  width: 120%;
  height: 100%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.7) 50%,
      rgba(255, 255, 255, 0) 100%);
  opacity: 0.7;
  pointer-events: none;
  transform: translateX(-60%) skewX(-20deg);
  animation: fvLightSweep 1.2s 0.2s forwards;
}

.fv-fadein.delay::after {
  animation-delay: 0.8s;
}

@keyframes fvFadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fvLightSweep {
  from {
    transform: translateX(-60%) skewX(-20deg);
    opacity: 0.7;
  }

  60% {
    opacity: 0.7;
  }

  to {
    transform: translateX(60%) skewX(-20deg);
    opacity: 0;
  }
}

/* CTAボタンのホバー効果 */
.cta-hover-effect {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

@media (min-width: 1024px) {
  .cta-hover-effect:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 82, 118, 0.3);
  }
}

/* メインCTAボタンのスタイル */
.cta-main-button {
  background: linear-gradient(to right, #239b56 0%, #28b463 100%);
}

/* サービス紹介タイトル背景画像スタイル */
.service-title-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  margin-bottom: 1rem;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-title-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 82, 118, 0.15);
}

.service-title-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.45;
  filter: blur(0.5px);
  z-index: 0;
  transition: all 0.3s ease;
}

.service-title-wrap:hover .service-title-bg {
  opacity: 0.55;
  transform: scale(1.05);
}

.service-title {
  position: relative;
  z-index: 1;
  color: #1E293B;
  font-weight: bold;
  font-size: 1.125rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  margin: 0.5rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.service-title-wrap:hover .service-title {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* モバイルメニューアニメーション */
#mobileMenu {
  transition: all 0.3s ease-in-out;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobileMenu.is-open {
  max-height: 800px;
  opacity: 1;
}

#menuButton .icon {
  transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
  position: absolute;
}

#menuButton .icon.close {
  opacity: 0;
  transform: rotate(-180deg);
}

#menuButton.is-open .icon.menu {
  opacity: 0;
  transform: rotate(180deg);
}

#menuButton.is-open .icon.close {
  opacity: 1;
  transform: rotate(0deg);
}

/* 解決事例カードのグラデーションライン */
.case-card-gradient-line {
  content: "";
  display: block;
  height: 5px;
  width: 100%;
  background: #1E293B;
  border-radius: 4px 4px 0 0;
  margin-bottom: 0.5rem;
}

/* カテゴリバッジ */
.case-category-badge {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 2;
  padding: 0.25rem 1.1rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 9999px;
  background: #1E293B;
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 82, 118, 0.12);
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 2px solid #fff;
}

/* カード浮き上がりアニメーション */
.case-card-animate {
  box-shadow: 0 4px 16px 0 rgba(26, 82, 118, 0.1);
  position: relative;
  overflow: visible;
  border-radius: 18px;
}

/* 上品な解決事例カード用スタイル */
.case-block-before {
  background: #f6f8fa;
  border-left: 4px solid #fca5a5;
  position: relative;
  padding-left: 1.2rem;
}

.case-block-support {
  background: #f6f8fa;
  border-left: 4px solid #7fa7c7;
  position: relative;
  padding-left: 1.2rem;
}

.case-block-after {
  background: #f6f8fa;
  border-left: 4px solid #a3c7b7;
  position: relative;
  padding-left: 1.2rem;
}

.case-block-icon {
  position: absolute;
  left: 0.7rem;
  top: 1.1rem;
  font-size: 1.2rem;
  opacity: 0.5;
  color: #7fa7c7;
}

.case-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.case-year {
  font-size: 0.95rem;
  color: #7fa7c7;
  font-weight: 500;
  white-space: nowrap;
  margin-left: auto;
}

.case-block-title {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-bottom: 0.3em;
}

.case-block-title i {
  font-size: 1.1em;
  opacity: 0.8;
  margin-right: 0.1em;
}

/* Beforeブロックのアイコン */
.case-block-before .case-block-title i {
  color: #dc2626;
}

/* Supportブロックのアイコン */
.case-block-support .case-block-title i {
  color: #2563eb;
}

/* Afterブロックのアイコン */
.case-block-after .case-block-title i {
  color: #16a34a;
}

/* スライダー内中央カード浮き上がり */
.card-strong.is-center {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 12px 32px 0 rgba(26, 82, 118, 0.18);
  z-index: 3;
}

/* 吹き出しのしっぽを強調 */
.speech-bubble-card::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -12px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 12px solid #fff;
  filter: drop-shadow(0 2px 4px rgba(26, 82, 118, 0.06));
}

/* アイコンのグラデーション */
.icon-gradient-expert {
  background: #1E293B;
}

.icon-gradient-support {
  background: linear-gradient(135deg, #B08D48 60%, #6c9dc4 100%);
}

.icon-gradient-result {
  background: linear-gradient(135deg, #6c9dc4 60%, #9ebedc 100%);
}

/* 幾何学模様背景 */
.geometric-pattern-bg {
  background-color: #f0f8ff !important;
  background-image: radial-gradient(#d3e0ea 1px, transparent 1px) !important;
  background-size: 20px 20px !important;
}

/* ニュース一覧ページ用スタイル */
.news-item {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.news-item:hover {
  border-left-color: #1E293B;
  background-color: #f8fafc;
  transform: translateX(4px);
}

.news-date {
  color: #6b7280;
  font-size: 0.875rem;
}

.news-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-category.primary {
  background-color: #1E293B;
  color: white;
}

.news-category.secondary {
  background-color: #B08D48;
  color: white;
}

.news-category.success {
  background-color: #239b56;
  color: white;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pagination-item:hover {
  background-color: #1E293B;
  color: white;
}

.pagination-item.active {
  background-color: #1E293B;
  color: white;
}

.pagination-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-item.disabled:hover {
  background-color: transparent;
  color: inherit;
}

/* ========================================
   コラム記事用スタイル
   ======================================== */

/* 見出しのスタイル */
.column-content h2 {
  position: relative;
  padding: 1rem 1.5rem;
  background: #1E293B;
  color: white;
  border-radius: 8px;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.column-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px 0 0 8px;
}

.column-content h3 {
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid #1E293B;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: #1E293B;
}

.column-content h4 {
  position: relative;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-left: 3px solid #B08D48;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #2c5282;
}

/* 小見出し（h5）: 太字でやや大きめ、派手すぎない控えめな見出し */
.column-content h5 {
  font-size: 1rem;
  /* 少し大きめ */
  font-weight: 700;
  color: #1E293B;
  /* ページのアクセントカラーに合わせる */
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  padding-left: 0;
  /* 左のスペースを無くす */
  display: inline-block;
  /* 下線をテキスト幅に合わせる */
  border-bottom: 2px solid rgba(26, 82, 118, 0.18);
  /* 少し濃く */
  padding-bottom: 0.25rem;
}

/* h5 内で strong/b を使っても、既存の黄マーカー背景がつかないようにリセット */
.column-content h5 strong,
.column-content h5 b {
  background: none;
  background-image: none;
  padding: 0;
}

/* リストのスタイル */
.column-content ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.column-content ul li {
  /* フレックスにしてマーカーを行頭に固定、折り返しではテキストが揃うようにする */
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  box-sizing: border-box;
  padding-left: 0;
  /* マーカーは ::before 側で余白を取る */
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.column-content ul li::before {
  content: "✓";
  /* フレックスの先頭要素として動作させる（絶対配置は使わない） */
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  background: #1E293B;
  color: white;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  margin-top: 0.15rem;
  /* 1行目の中心に近づける微調整 */
}

.column-content ol {
  counter-reset: list-counter;
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.column-content ol li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  box-sizing: border-box;
  padding-left: 0;
  /* マーカーは ::before 側で余白を持つ */
  margin-bottom: 0.75rem;
  line-height: 1.8;
  counter-increment: list-counter;
}

/* li 内に段落が入る場合の余白リセット（折り返しでマーカーが間に入る印象を防ぐ） */
.column-content ul li p,
.column-content ol li p {
  margin: 0;
}

.column-content ol li::before {
  content: counter(list-counter);
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  background: #1E293B;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  margin-top: 0.15rem;
  /* 先頭行に合わせる微調整 */
}

/* テーブルのスタイル */
.column-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.column-content table thead {
  background: #1E293B;
  color: white;
}

.column-content table th {
  padding: 1rem;
  font-weight: bold;
  text-align: left;
}

.column-content table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.column-content table tbody tr:hover {
  background: #f8f9fa;
}

/* 引用のスタイル */
.column-content blockquote {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  background: #f0f9ff;
  border-left: 4px solid #B08D48;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #2c5282;
}

.column-content blockquote::before {
  content: '"';
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  font-size: 3rem;
  color: #B08D48;
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

/* 強調テキスト */
.column-content strong,
.column-content b {
  color: #1E293B;
  font-weight: 700;
  background: linear-gradient(transparent 60%, #fef3c7 60%);
}

/* リンク */
.column-content a {
  color: #B08D48;
  text-decoration: underline;
  transition: color 0.2s;
}

.column-content a:hover {
  color: #1E293B;
}

/* コードブロック */
.column-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

.column-content code {
  background: #f1f5f9;
  color: #e11d48;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
}

.column-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* 画像のスタイル */
.column-content img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.column-content figure {
  margin: 2rem 0;
  text-align: center;
}

.column-content figure img {
  margin: 0 auto 1rem;
}

.column-content figcaption {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

/* ================================
   ページネーション
   ================================ */
.pagination-nav {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-item {
  margin: 0;
}

.pagination-item a,
.pagination-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: 0.375rem;
  line-height: 1;
}

/* 通常のページ番号 */
.pagination-item a {
  background: white;
  color: #1E293B;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination-item a:hover {
  background: #1E293B;
  color: white;
  border-color: #1E293B;
  box-shadow: 0 4px 6px rgba(26, 82, 118, 0.2);
  transform: translateY(-1px);
}

/* 現在のページ */
.pagination-item.current span,
.pagination-item span.current {
  background: #1E293B;
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px rgba(26, 82, 118, 0.3);
  font-weight: 700;
  cursor: default;
}

/* 前へ・次へボタン */
.pagination-item a[class*="prev"],
.pagination-item a[class*="next"] {
  background: #1E293B;
  color: white;
  border: 1px solid transparent;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
}

.pagination-item a[class*="prev"]:hover,
.pagination-item a[class*="next"]:hover {
  background: linear-gradient(135deg, #0d3a57 0%, #2a5c85 100%);
  box-shadow: 0 6px 12px rgba(26, 82, 118, 0.4);
  transform: translateY(-2px);
}

/* 省略記号 */
.pagination-item span.dots {
  background: transparent;
  color: #9ca3af;
  border: none;
  box-shadow: none;
  min-width: auto;
  padding: 0 0.25rem;
  cursor: default;
}

/* アイコンのスタイル */
.pagination-item i {
  font-size: 1.25rem;
  line-height: 1;
}

/* 前へ・次へボタンのテキストを非表示 */
.pagination-item a[class*="prev"] span,
.pagination-item a[class*="next"] span {
  display: none;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
  .pagination-list {
    gap: 0.375rem;
  }

  .pagination-item a,
  .pagination-item span {
    min-width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }

  .pagination-item a[class*="prev"],
  .pagination-item a[class*="next"] {
    padding: 0.375rem 0.875rem;
  }
}

/* FV画像の明るさ・コントラスト調整 */
.fv-img-adjust {
  filter: brightness(1.08) contrast(1.08) saturate(1.08);
}

/* -----------------------------
   目次 (TOC) 表示の見た目強化
   ----------------------------- */
.column-toc {
  border-left: 4px solid rgba(26, 82, 118, 0.06);
  background: #fff;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 8px;
}

.column-toc h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 0.5rem 0;
}

.column-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.column-toc li {
  margin: 0.35rem 0;
}

.column-toc a {
  color: #2c5282;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  /* 文字間を詰める */
  padding: 0.2rem 0.2rem;
  border-radius: 4px;
  letter-spacing: -0.02em;
  /* 文字のトラッキングを少し詰める */
}

.column-toc a:hover {
  background: rgba(26, 82, 118, 0.04);
  color: #1E293B;
}

.column-toc a::after {
  /* 矢印は不要のため表示しない */
  content: none;
  display: none;
}

.column-toc .toc-level-3 {
  padding-left: 0.75rem;
  font-size: 0.92rem;
}

.column-toc .toc-level-4 {
  padding-left: 1.5rem;
  font-size: 0.9rem;
}

.column-toc .toc-level-5 {
  padding-left: 2.25rem;
  font-size: 0.88rem;
}

.column-toc a[aria-current="true"] {
  font-weight: 700;
  color: #1E293B;
}

/* Breadcrumb: 最後の項目を1行に収めて長ければ省略する */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  /* 全体で折り返さない */
  overflow: hidden;
  /* はみ出しを隠す */
}

.breadcrumb a,
.breadcrumb i {
  flex: 0 0 auto;
  /* リンクと区切りはサイズ固定 */
}

.breadcrumb-current {
  flex: 1 1 auto;
  /* 最後の要素が残りスペースを取る */
  min-width: 0;
  /* flexアイテムで省略を有効にするために必要 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* 最後の要素自体でも折り返さない */
  display: block;
  /* text-overflow を確実に効かせる */
}

/* =============================
   entry-hero 共通スタイル
   ============================= */
.entry-hero {
  position: relative;
  background: #fff;
  padding: 0;
  margin-bottom: 0rem;
}

.entry-hero__breadcrumb {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.entry-hero__inner {
  padding: 0;
}

.entry-hero__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.entry-hero .badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.entry-hero .bg-blue-600 {
  background: #2563eb;
}

.entry-hero .bg-green-600 {
  background: #16a34a;
}

.entry-hero .bg-primary {
  background: #1E293B;
}

.entry-hero__title {
  font-weight: 700;
  font-size: 1.75rem;
  /* fallback */
  margin: 0.5rem 0 0.5rem 0;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .entry-hero__title {
    font-size: 2.1rem;
  }
}

@media (min-width: 1280px) {
  .entry-hero__title {
    font-size: 2.3rem;
  }
}

.entry-hero__lead {
  margin-top: 0.5rem;
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.7;
}

.entry-hero__bg {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.entry-hero__bg img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(26, 82, 118, 0.1);
}

@media (min-width: 1024px) {

  /* 固定ヘッダーとの重なりを防ぐための上余白（PC） */
  .entry-hero {
    padding-top: 4rem;
  }

  .entry-hero .entry-hero__inner,
  .entry-hero__breadcrumb {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========================================
   Fee Page Styles
   ======================================== */

/* Fee Accordion */
.fee-accordion-item {
  border: 1px solid #e2e8f0;
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.fee-accordion-header {
  background-color: #f8fafc;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.fee-accordion-header:hover {
  background-color: #f1f5f9;
}

.fee-accordion-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #1e293b;
  display: flex;
  align-items: center;
}

.fee-accordion-icon {
  margin-right: 0.75rem;
  color: #b08d48;
}

.fee-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  background-color: #fff;
}

.fee-accordion-item.active .fee-accordion-content {
  max-height: 2000px;
  transition: max-height 0.8s ease-in;
}

.fee-accordion-item.active .fee-accordion-header {
  border-bottom: 1px solid #e2e8f0;
  background-color: #fff;
}

.fee-accordion-item.active .toggle-icon {
  transform: rotate(180deg);
}

/* Fee Table */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.5rem;
}

.fee-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.fee-table th {
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #cbd5e1;
  white-space: nowrap;
  vertical-align: middle;
}

.fee-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  line-height: 1.6;
  vertical-align: top;
}

.fee-table tr:last-child td {
  border-bottom: none;
}

/* ========================================
   Case Studies Masonry Layout
   ======================================== */
.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  display: inline-block;
  /* Fixes some break-inside issues */
  width: 100%;
}

/* Card Hover Lift Effect */
.case-card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ========================================
   Contact Form 7 Styles
   ======================================== */
#footer-contact-form .wpcf7 {
  font-family: "Noto Serif JP", Georgia, "Times New Roman", serif;
}

/* 2列レイアウト */
#footer-contact-form .wpcf7 .cf7-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  #footer-contact-form .wpcf7 .cf7-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 全幅レイアウト */
#footer-contact-form .wpcf7 .cf7-full {
  margin-bottom: 1.5rem;
}

/* ラベル */
#footer-contact-form .wpcf7 label {
  display: block;
  font-size: 0.875rem;
  line-height: 1rem;
  color: #e5e7eb !important;
  margin-bottom: 0 !important;
  font-weight: 500;
}

/* ラベル内のアスタリスク */
#footer-contact-form .wpcf7 label::after {
  content: none;
}

/* 入力フィールド */
#footer-contact-form .wpcf7 input[type="text"],
#footer-contact-form .wpcf7 input[type="email"],
#footer-contact-form .wpcf7 input[type="tel"],
#footer-contact-form .wpcf7 textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0.125rem;
  font-size: 1rem;
  font-family: "Noto Serif JP", Georgia, "Times New Roman", serif;
}

#footer-contact-form .wpcf7 input::placeholder,
#footer-contact-form .wpcf7 textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#footer-contact-form .wpcf7 input:focus,
#footer-contact-form .wpcf7 textarea:focus {
  border-color: #B08D48;
  outline: none;
}

/* テキストエリア */
#footer-contact-form .wpcf7 textarea {
  resize: none;
  min-height: 150px !important;
  max-height: 150px !important;
}

/* チェックボックスコンテナ */
#footer-contact-form .wpcf7 .cf7-checkbox {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
  margin-bottom: 1rem;
  flex-direction: row !important;
}

#footer-contact-form .wpcf7 .cf7-checkbox label {
  font-size: 0.875rem;
  line-height: 1rem;
  color: #e5e7eb !important;
  margin-bottom: 0;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
}

#footer-contact-form .wpcf7 .cf7-checkbox .privacy-link {
  color: white;
  text-decoration: underline;
  transition: color 0.15s;
}

#footer-contact-form .wpcf7 .cf7-checkbox .privacy-link:hover {
  color: #B08D48;
}

#footer-contact-form .wpcf7 .cf7-checkbox .required {
  color: #ef4444 !important;
  font-weight: bold;
}

/* チェックボックス */
#footer-contact-form .wpcf7 input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #B08D48;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
  cursor: pointer;
  margin-top: 0;
  flex-shrink: 0;
}

/* 送信ボタンコンテナ */
#footer-contact-form .wpcf7 .cf7-submit {
  text-align: center;
  padding-top: 0.5rem;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* CF7が自動挿入するpタグの余白を削除 */
#footer-contact-form .wpcf7 p {
  margin-bottom: 0 !important;
}

/* フォーム全体の余分な下部余白を削除 */
#footer-contact-form .wpcf7 form {
  margin-bottom: 0 !important;
}

/* 送信ボタン */
#footer-contact-form .wpcf7 input[type="submit"] {
  background-color: #B08D48;
  color: white;
  font-weight: 500;
  padding: 1rem 3rem;
  border-radius: 0.125rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  font-family: "Noto Serif JP", Georgia, "Times New Roman", serif;
}

#footer-contact-form .wpcf7 input[type="submit"]:hover {
  background-color: white;
  color: #B08D48;
}

/* レスポンスメッセージ */
#footer-contact-form .wpcf7-response-output {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

#footer-contact-form .wpcf7-mail-sent-ok {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: rgb(34, 197, 94);
}

#footer-contact-form .wpcf7-validation-errors,
#footer-contact-form .wpcf7-mail-sent-ng {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: rgb(239, 68, 68);
}

#footer-contact-form .wpcf7-not-valid-tip {
  color: rgb(239, 68, 68);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}

#footer-contact-form .wpcf7-spinner {
  display: none;
}