/* ==========================================
   圏域統合最適化センター WEBサイト CSS (Enhanced Version v2)
   ヘッダー部改善: 2行構造で見やすく
   ========================================== */

/* Font Awesome CDNは各HTMLページで読み込み */

/* ==========================================
   カラーシステム（CMS管理推奨）
   ========================================== */
:root {
  /* ブランドカラー */
  --brand: #0f3d5e;
  --brand2: #1f4e79;
  --brand-light: #2a6fbe;
  --accent: #2a6fbe;
  
  /* 背景・カード */
  --bg: #f7f9fc;
  --card: #ffffff;
  
  /* テキスト */
  --text: #222222;
  --text-muted: #555555;
  --text-light: #666666;
  
  /* 効果 */
  --shadow: 0 6px 18px rgba(15, 61, 94, 0.08);
  --shadow-hover: 0 12px 32px rgba(15, 61, 94, 0.15);
  --radius: 14px;
  
  /* グラデーション */
  --gradient-primary: linear-gradient(135deg, var(--brand), var(--brand2));
  --gradient-accent: linear-gradient(135deg, #2a6fbe, #4a8fe7);
  
  /* アニメーション速度 */
  --transition-speed: 0.3s;
  --transition-speed-slow: 0.6s;
}

/* ==========================================
   基本設定
   ========================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  color: var(--text);
  line-height: 1.85;
  background: var(--bg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  transition: all var(--transition-speed) ease;
}

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

/* ==========================================
   スクロールアニメーション用クラス
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-speed-slow) ease, 
              transform var(--transition-speed-slow) ease;
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity var(--transition-speed-slow) ease, 
              transform var(--transition-speed-slow) ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity var(--transition-speed-slow) ease, 
              transform var(--transition-speed-slow) ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================
   ナビゲーション（改善版 - 2行構造）
   ========================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

/* 2行構造のコンテナ */
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

/* 上段: ロゴ + 右側（電話・CTA） */
.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
  border-bottom: 1px solid rgba(15, 61, 94, 0.08);
}

/* 下段: メニュー項目 */
.nav-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

/* ロゴ部分（CMS: ロゴ画像URL変更可能） */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: transform var(--transition-speed) ease;
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-logo {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name-jp {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-name-en {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* 右側グループ（電話 + CTA） */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 電話番号（CMS: 電話番号変更可能） */
.nav-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--brand);
  color: white !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-speed) ease;
}

.nav-phone:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 111, 190, 0.3);
}

.nav-phone i {
  font-size: 1rem;
}

/* メニューリンク（下段） */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}

.nav-links > a,
.nav-links .nav-dropdown {
  color: var(--brand);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-speed) ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links > a:hover {
  color: var(--accent);
}

.nav-links > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-speed) ease;
}

.nav-links > a:hover::after {
  width: 100%;
}

/* サービスドロップダウン（CMS: サービス一覧管理） */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  transition: color var(--transition-speed) ease;
}

.dropdown-toggle:hover {
  color: var(--accent);
}

.dropdown-toggle .fa-chevron-down {
  font-size: 0.7rem;
  transition: transform var(--transition-speed) ease;
}

.nav-dropdown:hover .dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 12px 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 8px);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 11px 22px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

.dropdown-menu a:hover {
  background: var(--bg);
  color: var(--brand);
  padding-left: 28px;
}

.dropdown-menu a i {
  margin-right: 10px;
  color: var(--accent);
  width: 18px;
  font-size: 0.9rem;
}

.dropdown-divider {
  margin: 10px 18px;
  border-top: 1px solid #e8e8e8;
}

/* ボタン（共通コンポーネント - CMS管理推奨） */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-speed) ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white !important;
  box-shadow: 0 4px 12px rgba(15, 61, 94, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 61, 94, 0.3);
}

.btn-outline {
  border: 2px solid var(--brand);
  color: var(--brand) !important;
  background: transparent;
}

.btn-outline:hover {
  background: var(--brand);
  color: white !important;
}

.spacer {
  height: 100px;
}

/* ==========================================
   共通レイアウト（CMS管理推奨）
   ========================================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 92px 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 58px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--brand);
  margin-bottom: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-header h2 i {
  font-size: 1.8rem;
  color: var(--accent);
}

.section-header p {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==========================================
   SVG装飾背景
   ========================================== */

/* 循環パターン背景 */
.bg-pattern-loop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ドットパターン背景 */
.bg-pattern-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, var(--brand) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* 流線背景 */
.bg-pattern-flow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================
   ヒーローセクション（CMS: メイン画像・キャッチコピー管理）
   ========================================== */

.hero {
  position: relative;
  background: var(--gradient-primary);
  color: white;
  padding: 140px 28px 108px;
  overflow: hidden;
}

/* アニメーション背景 */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* 浮遊アニメーション */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  margin: 0 0 22px;
  line-height: 1.3;
  font-weight: 700;
  animation: fade-in-up 0.8s ease-out;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-lead {
  font-size: 1.15rem;
  margin: 0 0 28px;
  line-height: 1.9;
  opacity: 0.95;
  animation: fade-in-up 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s ease-out 0.4s backwards;
}

/* ヒーロー内のボタン（白スタイル） */
.hero .btn-outline {
  border: 2px solid white;
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.hero .btn-outline:hover {
  background: white;
  color: var(--brand) !important;
  border-color: white;
}


/* ==========================================
   カードデザイン（共通コンポーネント - CMS管理推奨）
   ========================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 42px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

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

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: 50%;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: white;
  transition: all 0.4s ease;
}

.card:hover .card-icon {
  transform: rotate(360deg) scale(1.1);
  animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42, 111, 190, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(42, 111, 190, 0); }
}

.card h3 {
  font-size: 1.3rem;
  color: var(--brand);
  margin-bottom: 14px;
  font-weight: 700;
}

.card p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 18px;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tag {
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 20px;
  background: #eef5ff;
  color: var(--brand);
  transition: all var(--transition-speed) ease;
}

.tag:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-2px);
}

/* ==========================================
   機能グリッド（CMS: 機能説明ブロック管理）
   ========================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-item {
  text-align: center;
  padding: 28px;
  transition: all var(--transition-speed) ease;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--accent);
  position: relative;
  transition: all 0.4s ease;
}

.feature-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--accent);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.feature-item:hover .feature-icon::before {
  opacity: 0.3;
  transform: scale(1.2);
  animation: ripple 1.5s ease-in-out infinite;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.4); opacity: 0; }
}

.feature-icon i {
  font-size: 2.2rem;
  color: var(--accent);
  transition: transform 0.4s ease;
}

.feature-item:hover .feature-icon i {
  transform: rotate(12deg) scale(1.1);
}

.feature-item h3 {
  font-size: 1.15rem;
  color: var(--brand);
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================
   アイコン付きリスト（CMS管理推奨）
   ========================================== */

.icon-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.icon-list li {
  padding: 10px 0;
  padding-left: 32px;
  position: relative;
  line-height: 1.8;
  animation: fade-in-left 0.5s ease-out backwards;
}

.icon-list li:nth-child(1) { animation-delay: 0.1s; }
.icon-list li:nth-child(2) { animation-delay: 0.2s; }
.icon-list li:nth-child(3) { animation-delay: 0.3s; }
.icon-list li:nth-child(4) { animation-delay: 0.4s; }
.icon-list li:nth-child(5) { animation-delay: 0.5s; }

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.icon-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1rem;
}

/* ==========================================
   CTAセクション（CMS: CTAテキスト・リンク管理）
   ========================================== */

.cta {
  position: relative;
  background: #f0f7ff;
  text-align: center;
  padding: 98px 28px;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(42,111,190,0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-slow 6s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

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

.cta h2 {
  font-size: 2rem;
  color: var(--brand);
  margin: 0 0 14px;
  font-weight: 700;
}

.cta p {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cta .btn-primary {
  padding: 16px 42px;
  font-size: 1.05rem;
}

/* ==========================================
   フッター（共通パーツ - CMS管理推奨）
   ========================================== */

.site-footer {
  background: var(--brand);
  color: white;
  padding: 68px 28px 28px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  border-radius: 50%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 38px;
  position: relative;
  z-index: 1;
}

.footer-col h4 {
  font-weight: 700;
  margin: 0 0 18px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col h4 i {
  color: var(--accent);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: block;
  margin: 10px 0;
  transition: all var(--transition-speed) ease;
  padding-left: 0;
}

.footer-col a:hover {
  color: white;
  padding-left: 8px;
}

.footer-col a i {
  margin-right: 8px;
  width: 18px;
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 42px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.footer-bottom a:hover {
  color: white;
}

/* ==========================================
   レスポンシブデザイン
   ========================================== */

/* タブレット（1024px以下） */
@media (max-width: 1024px) {
  .nav-inner {
    padding: 0 24px;
  }
  
  .nav-links {
    gap: 20px;
    font-size: 0.9rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.4rem;
  }
}

/* タブレット小（768px以下） */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 16px;
  }
  
  /* 2行構造を維持 */
  .nav-top {
    padding: 12px 0 10px;
  }
  
  .nav-bottom {
    padding: 10px 0;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .brand-logo {
    height: 38px;
  }
  
  .brand-name-jp {
    font-size: 0.9rem;
  }
  
  .brand-name-en {
    font-size: 0.68rem;
  }
  
  .nav-phone {
    font-size: 0.88rem;
    padding: 8px 14px;
  }
  
  .btn-primary {
    font-size: 0.88rem;
    padding: 8px 16px;
  }
  
  .nav-links {
    gap: 18px;
    font-size: 0.88rem;
  }
  
  .dropdown-menu {
    left: 0;
    transform: none;
    min-width: 220px;
  }
  
  .spacer {
    height: 130px;
  }
  
  .hero {
    padding: 110px 20px 84px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-lead {
    font-size: 1rem;
  }
  
  .section {
    padding: 68px 0;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .card {
    padding: 28px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .cta h2 {
    font-size: 1.65rem;
  }
  
  .cta p {
    font-size: 0.95rem;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
  /* 1列表示に変更 */
  .nav-top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 0;
  }
  
  .brand {
    justify-content: center;
  }
  
  .nav-right {
    justify-content: space-between;
  }
  
  .nav-phone,
  .btn-primary {
    flex: 1;
    justify-content: center;
    font-size: 0.85rem;
    padding: 9px 14px;
  }
  
  .nav-bottom {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  
  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  
  .spacer {
    height: 180px;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  
  .card-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
}

/* ==========================================
   追加ユーティリティ
   ========================================== */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ==========================================
   印刷用スタイル
   ========================================== */

@media print {
  nav, .cta, .site-footer {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  body {
    background: white;
  }
}


/* ==========================================
   サービス一覧ページ専用スタイル
   ========================================== */

.service-list-section {
  background: linear-gradient(180deg, #f7f9fc 0%, white 100%);
  padding: 64px 0;
}

.service-category {
  margin-top: 64px;
  padding: 32px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 61, 94, 0.08);
}

.service-category:first-child {
  margin-top: 44px;
}

.category-title {
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  border-radius: 2px;
}

.category-desc {
  color: var(--text-muted);
  margin: 0 0 24px 0;
  font-size: 0.95rem;
}

.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border: 2px solid #e8ecf1;
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(42, 111, 190, 0.15);
}

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

.service-card .tags {
  margin-bottom: 16px;
}

.service-card h3 {
  margin: 0;
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--accent);
}

.service-note-card {
  margin-top: 64px;
  padding: 32px;
  background: linear-gradient(135deg, #f7f9fc 0%, #e8ecf1 100%);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  text-align: center;
}

.note-text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ==========================================
   サービス詳細ページ専用スタイル
   ========================================== */

.service-detail-section {
  background: linear-gradient(180deg, white 0%, #f7f9fc 50%, white 100%);
  padding: 64px 0;
}

.service-detail-card {
  background: white;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(15, 61, 94, 0.06);
  transition: all 0.3s ease;
}

.service-detail-card:hover {
  box-shadow: 0 4px 16px rgba(15, 61, 94, 0.12);
  transform: translateY(-2px);
}

.service-detail-card .tags {
  margin-bottom: 20px;
}

.service-detail-card h2 {
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8ecf1;
}

.service-detail-card .muted {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-detail-card .list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.service-detail-card .list li {
  padding: 12px 0 12px 32px;
  position: relative;
  color: var(--text);
  line-height: 1.7;
  border-bottom: 1px solid #f0f2f5;
}

.service-detail-card .list li:last-child {
  border-bottom: none;
}

.service-detail-card .list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .service-category {
    padding: 24px 16px;
    margin-top: 48px;
  }
  
  .category-title {
    font-size: 1.3rem;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .service-detail-card {
    padding: 24px 16px;
  }
  
  .service-detail-card h2 {
    font-size: 1.2rem;
  }
}


/* ==========================================
   モバイルナビゲーション改善
   ========================================== */

/* ドロップダウンメニューの表示制御 */
.dropdown-menu {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-toggle.active {
  color: var(--accent) !important;
}

/* タッチデバイス対応 */
@media (hover: none) and (pointer: coarse) {
  .nav-dropdown:hover .dropdown-menu {
    display: none;
  }
  
  .dropdown-menu.show {
    display: block;
  }
}

/* スマートフォン対応（768px以下） */
@media (max-width: 768px) {
  .nav-dropdown {
    position: relative;
  }
  
  .dropdown-toggle {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  .dropdown-menu {
    position: relative;
    box-shadow: none;
    border-radius: 8px;
    margin-top: 8px;
    width: 100%;
  }
  
  .dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* 会社情報スタイル */
.company-info {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 61, 94, 0.08);
  line-height: 1.8;
}

.company-info h3 {
  color: var(--brand);
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8ecf1;
}

.company-info p {
  margin: 8px 0;
  color: var(--text);
}

.company-info strong {
  color: var(--brand);
  font-weight: 600;
}

.company-info a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.company-info a:hover {
  color: var(--brand);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .company-info {
    padding: 20px;
  }
  
  .company-info h3 {
    font-size: 1.3rem;
  }
}
