/* ============================================================
   KMG技術コンサルティング — メインスタイルシート
   デザインシステム: カラー / タイポグラフィ / コンポーネント
   ============================================================ */

/* --- デザイントークン（CSS変数） --- */
:root {
  /* カラーパレット */
  --color-primary:       #1B3A5C;
  --color-primary-light:  #254d78;
  --color-primary-dark:   #122840;
  --color-secondary:     #2E86AB;
  --color-secondary-light:#3a9bc4;
  --color-accent:        #F18F01;
  --color-accent-light:  #f9a82e;
  --color-bg:            #F8F9FA;
  --color-bg-alt:        #FFFFFF;
  --color-dark-bg:       #0D1B2A;
  --color-dark-bg-light: #1a2d42;
  --color-text:          #2C3E50;
  --color-text-light:    #6C7A89;
  --color-text-inverse:  #FFFFFF;
  --color-border:        #E2E8F0;
  --color-success:       #27AE60;
  --color-overlay:       rgba(13, 27, 42, 0.7);

  /* タイポグラフィ */
  --font-primary:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --font-accent:   'Inter', 'Noto Sans JP', sans-serif;

  --fs-hero:    clamp(2rem, 5vw, 3.5rem);
  --fs-h1:      clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h2:      clamp(1.5rem, 3vw, 2rem);
  --fs-h3:      clamp(1.15rem, 2vw, 1.5rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-caption: 0.75rem;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;

  --lh-tight:   1.3;
  --lh-normal:  1.7;
  --lh-loose:   1.9;

  /* スペーシング */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;

  /* レイアウト */
  --max-width:  1200px;
  --header-h:   72px;

  /* エフェクト */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.14);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   リセット & ベース
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-primary);
}


/* ============================================================
   レイアウト ユーティリティ
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

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

.section--dark {
  background-color: var(--color-dark-bg);
  color: var(--color-text-inverse);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-text-inverse);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-xs);
  position: relative;
  display: inline-block;
}

/* セクションタイトルの装飾アンダーライン */
.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  margin: var(--space-xs) auto 0;
  border-radius: 2px;
}

.section__subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-light);
  font-weight: var(--fw-regular);
  margin-top: var(--space-xs);
}

.section--dark .section__subtitle {
  color: rgba(255,255,255,0.7);
}


/* ============================================================
   ヘッダー & ナビゲーション
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

/* WordPressのAdmin Bar表示時の位置調整 */
body.admin-bar .header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}

/* スクロール時に影を付ける（JS制御用） */
.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  text-decoration: none;
}

.header__logo:hover {
  color: var(--color-primary);
}

.header__logo-icon {
  width: 40px;
  height: 40px;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__logo-main {
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.header__logo-sub {
  font-size: 0.65rem;
  color: var(--color-text-light);
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__link {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link:hover::after {
  width: 100%;
}

/* ハンバーガーメニュー（モバイル用） */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}


/* ============================================================
   ヒーローセクション
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark-bg) 60%, #0a2540 100%);
  overflow: hidden;
}

/* 背景装飾: グリッドパターン */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* 背景装飾: グラデーションのアクセント光 */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46,134,171,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text-inverse);
  max-width: 800px;
  padding: var(--space-lg);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-md);
  backdrop-filter: blur(4px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
  line-height: 1.25;
}

.hero__title-accent {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* 装飾: ヒーロー下部のフロートカード */
.hero__float-cards {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: var(--space-md);
}

/* ============================================================
   下層ページ ヘッダー
   ============================================================ */
.page-header {
  position: relative;
  min-height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark-bg) 100%);
  color: var(--color-text-inverse);
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-header__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}

.page-header__subtitle {
  font-size: var(--fs-body);
  color: rgba(255,255,255,0.8);
  position: relative;
  z-index: 1;
}



/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #fff;
  box-shadow: 0 4px 14px rgba(241,143,1,0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241,143,1,0.4);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-text-inverse);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline-dark:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--secondary {
  background: var(--color-secondary);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--color-secondary-light);
  transform: translateY(-2px);
  color: #fff;
}

.btn--sm {
  padding: 10px 22px;
  font-size: var(--fs-small);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}


/* ============================================================
   カード
   ============================================================ */
.card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
}

.card__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.card__text {
  color: var(--color-text-light);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-sm);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  color: var(--color-secondary);
}

.card__link:hover {
  color: var(--color-accent);
  gap: 10px;
}


/* ============================================================
   3つの強みセクション
   ============================================================ */
.strengths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.strength-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.strength-card__number {
  font-family: var(--font-accent);
  font-size: 3rem;
  font-weight: var(--fw-bold);
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.strength-card__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.strength-card__text {
  color: var(--color-text-light);
  font-size: var(--fs-small);
}


/* ============================================================
   ターゲット別導線セクション
   ============================================================ */
.target-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.target-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
}

.target-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: height var(--transition);
}

.target-card:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.target-card:hover::before {
  height: 6px;
}

.target-card__label {
  display: inline-block;
  background: rgba(46,134,171,0.1);
  color: var(--color-secondary);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.03em;
}

.target-card__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.target-card__list {
  margin: var(--space-sm) 0;
}

.target-card__list li {
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 0.5em;
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

.target-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: var(--fw-bold);
}


/* ============================================================
   ブログカード（最新記事ピックアップ）
   ============================================================ */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
}

.blog-card__body {
  padding: var(--space-md);
}

.blog-card__category {
  display: inline-block;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--color-secondary);
  background: rgba(46,134,171,0.1);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: var(--space-xs);
}

.blog-card__title {
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__date {
  font-size: var(--fs-caption);
  color: var(--color-text-light);
}


/* ============================================================
   CTAバナー（お問い合わせ誘導）
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark-bg) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(241,143,1,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner__title {
  font-size: var(--fs-h2);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}

.cta-banner__text {
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}


/* ============================================================
   フッター
   ============================================================ */
.footer {
  background: var(--color-dark-bg);
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}

.footer__description {
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  color: rgba(255,255,255,0.6);
}

.footer__heading {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__list li {
  margin-bottom: var(--space-xs);
}

.footer__list a {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer__list a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-caption);
  color: rgba(255,255,255,0.4);
}


/* ============================================================
   アニメーション（スクロール連動フェードイン）
   ============================================================ */

/* 初期状態: 非表示 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* JSで .is-visible クラスが付与されたら表示 */
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 段階的な遅延（子要素のスタガー表示） */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }


/* ============================================================
   ページトップに戻るボタン
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}


/* ============================================================
   ブロックパターン専用スタイル（Gutenberg対応）
   ============================================================ */

/* 規定ページ用ボックス */
.kmg-policy-box {
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.kmg-policy-box h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.kmg-policy-box h2:first-child { margin-top: 0; }
.kmg-policy-box p,
.kmg-policy-box li { line-height: var(--lh-loose); color: var(--color-text); }
.kmg-policy-box ul { padding-left: 1.5em; list-style-type: disc; margin-bottom: var(--space-md); }

/* 特定商取引法テーブル */
.kmg-tokushoho-table { width: 100%; border-collapse: collapse; }
.kmg-tokushoho-table th,
.kmg-tokushoho-table td { padding: 14px 16px; border: 1px solid var(--color-border); text-align: left; vertical-align: top; line-height: var(--lh-loose); }
.kmg-tokushoho-table th { width: 30%; background-color: var(--color-bg); font-weight: var(--fw-semibold); }

/* 事例カード（実績ページ） */
.kmg-works-primary-card { border-left: 4px solid var(--color-primary) !important; }
.kmg-works-secondary-card { border-left: 4px solid var(--color-secondary) !important; }
.kmg-label-primary { display: inline-block; background: rgba(27,58,92,0.1); color: var(--color-primary); padding: 2px 10px; border-radius: 4px; font-size: var(--fs-caption); font-weight: var(--fw-bold); margin-bottom: var(--space-xs); }
.kmg-label-secondary { display: inline-block; background: rgba(46,134,171,0.1); color: var(--color-secondary); padding: 2px 10px; border-radius: 4px; font-size: var(--fs-caption); font-weight: var(--fw-bold); margin-bottom: var(--space-xs); }
.kmg-result { font-weight: var(--fw-bold); color: var(--color-success); }
.kmg-text-meta { font-size: var(--fs-small); color: var(--color-text-light); text-align: right; margin-top: var(--space-xl); }

/* お問い合わせ情報ボックス */
.kmg-contact-box { padding: var(--space-lg); background: var(--color-bg-alt); border-radius: var(--radius-lg); border: 1px solid var(--color-border); }

/* 連絡先ラベル */
.kmg-contact-label { display: block; font-size: var(--fs-small); color: var(--color-primary); font-weight: var(--fw-bold); margin-bottom: 4px; }

/* ============================================================
   WordPressナビゲーションメニュー スタイル上書き
   wp_nav_menu() が生成する .nav__list 内の <a> に
   .nav__link と同等のスタイルを適用する
   ============================================================ */

/* 全メニュー項目のリスト表示 */
.nav__list,
.nav__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* WordPressメニューの <a> に nav__link スタイルを適用 */
.nav__list > li > a {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  position: relative;
  padding: var(--space-xs) 0;
  text-decoration: none;
}

/* オレンジアンダーラインアニメーション */
.nav__list > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__list > li > a:hover {
  color: var(--color-primary);
}

.nav__list > li > a:hover::after,
.nav__list > li.current-menu-item > a::after,
.nav__list > li.current_page_item > a::after {
  width: 100%;
}

/* アクティブページは常にオレンジアンダーライン */
.nav__list > li.current-menu-item > a,
.nav__list > li.current_page_item > a {
  color: var(--color-primary);
}

/* 最後のメニュー項目（お問い合わせ）をボタン化 */
.nav__list > li:last-child > a {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.nav__list > li:last-child > a::after {
  display: none;
}

.nav__list > li:last-child > a:hover {
  background: #d97d00;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ============================================================
   Gutenberg ボタンブロックスタイル修正
   ============================================================ */

.wp-block-buttons.hero__actions {
  justify-content: center !important;
  width: 100%;
}

.wp-block-button.btn {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.wp-block-button.btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.wp-block-button.btn--primary .wp-block-button__link {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(241,143,1,0.3);
  border: none;
}

.wp-block-button.btn--primary:hover .wp-block-button__link {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241,143,1,0.4);
}

.wp-block-button.btn--outline .wp-block-button__link {
  background: transparent;
  color: var(--color-text-inverse) !important;
  border: 2px solid rgba(255,255,255,0.4);
}

.wp-block-button.btn--outline:hover .wp-block-button__link {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff !important;
}

/* ============================================================
   ターゲット・解決策カード (.target-card)
   ============================================================ */
.target-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.target-card {
  background: var(--color-bg);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.target-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.target-card__label {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}

.target-card__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
  line-height: var(--lh-normal);
}

.target-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
  flex-grow: 1;
}

.target-card__list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 8px;
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: var(--lh-loose);
}

.target-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* ============================================================
   サービス詳細ページ カード (.kmg-service-card)
   ============================================================ */
.service-category__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 10px;
}

.kmg-service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.kmg-service-card__title {
  font-size: var(--fs-h4);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--color-border);
}

.kmg-service-card__desc {
  color: var(--color-text);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-sm);
}

.kmg-service-card__list {
  padding-left: 1.5em;
  color: var(--color-text);
  list-style-type: disc;
  margin-bottom: var(--space-sm);
}

.kmg-service-card__list li {
  margin-bottom: 4px;
}

/* ============================================================
   CTAバナー (.cta-banner)
   ============================================================ */
.cta-banner {
  background-color: var(--color-dark-bg);
  color: #fff;
  padding: 80px 0;
}

.cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-banner__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
  line-height: var(--lh-normal);
  color: #fff;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
  line-height: var(--lh-loose);
}

.cta-banner .wp-block-buttons {
  justify-content: center !important;
  width: 100%;
}
