/* Fix: Prevent alignfull overflow caused by negative margins */
body {
    --wp--style--root--padding-left: 0px;
    --wp--style--root--padding-right: 0px;
}

/* Columns inner padding - center content */
.entry-content .wp-block-columns.is-layout-flex {
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box;
}

.entry-content {
	  padding-top: 0 !important;
	  padding-left: 0 !important;
	  padding-right: 0 !important;
	  padding-bottom: 0 !important;
}

.has-global-padding {
	  padding-right: 0 !important;
	  padding-left: 0 !important;
}

.vp-wrap {
	  max-width: none !important;
	  width: 100% !important;
}

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	  max-width: none !important;
	  margin-left: 0 !important;
	  margin-right: 0 !important;
}

/*  */
.contact-form label abbr,
.grunion-field-label.required abbr,
.contact-form .required abbr,
.contact-form label .required,
.grunion-label-required {
	  color: #e00 !important;
	  text-decoration: none !important;
}

/* Case Studies  */
@media (max-width: 768px) {
	#cases > div {
		    display: flex !important;
		    flex-direction: column !important;
		    gap: 16px !important;
	}
	#cases a[href] {
		    flex-direction: column !important;
		    align-items: flex-start !important;
		    width: 100% !important;
	}
	#cases img {
		    width: 100% !important;
		    height: auto !important;
		    flex-shrink: unset !important;
		    border-radius: 12px 12px 0 0 !important;
	}
}

/* LINE */
.vp-line-btn {
	  display: inline-flex !important;
	  align-items: center !important;
	  gap: 10px !important;
	  background: #06C755 !important;
	  color: #fff !important;
	  border-radius: 8px !important;
	  padding: 14px 28px !important;
	  font-size: 15px !important;
	  font-weight: 700 !important;
	  text-decoration: none !important;
	  margin-top: 20px !important;
	  transition: opacity 0.2s !important;
}
.vp-line-btn:hover {
	  opacity: 0.85 !important;
}
.vp-line-section {
	  text-align: center !important;
	  padding: 28px 0 8px !important;
}
.vp-line-section p {
	  font-size: 14px !important;
	  color: #555 !important;
	  margin-bottom: 12px !important;
}
}
}
}
}
	}
	}
	}
}
}
}
}
}
}

/* ===== ヘッダーロゴ横テキスト ===== */
#logo-header-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 10px 20px !important;
  background: #eef4fb !important;
  margin: 0 !important;
}

#logo-header-wrapper img {
  display: block !important;
  margin-top: 0 !important;
  flex-shrink: 0 !important;
}

.logo-text-block {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px !important;
}

.logo-text-main {
  font-family: 'Noto Serif JP', '游明朝', serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1a237e !important;
  letter-spacing: 0.18em !important;
  line-height: 1.4 !important;
}

.logo-text-sub {
  font-family: 'Noto Serif JP', '游明朝', serif !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
  color: #3a4a7a !important;
  letter-spacing: 0.15em !important;
  line-height: 1.4 !important;
}


/* シヒョー士業ページ - ヒーローセクションと次のセクションの間の不自然な空白を除去 */
.shigyo-hero {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
}

.shigyo-hero + .wp-block-group {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
}

/* ヒーローセクションのpaddingBottomを除去して不自然な空白を完全に解消 */
.shigyo-hero {
    padding-bottom: 0 !important;
}


/* ヒーローと次のセクションの間のギャップを濃い青で埋める */
.shigyo-hero {
    padding-bottom: 25px !important;
}

.shigyo-hero + div {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* ====== Restore vp-wrap main styles ====== */
.vp-wrap { margin-top: 0; font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif; color: #1a1a2e; background: #fff; line-height: 1.7; }
.vp-nav { display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; padding: 18px 32px; background: #fff; border-bottom: 1px solid #e8e8f0; }
.vp-nav > p { display: none; }
.vp-logo { font-size: 18px; font-weight: 700; color: #1a1a2e; text-decoration: none; }
.vp-nav-links { display: flex !important; gap: 18px; list-style: none; flex-wrap: nowrap; justify-content: center; width: 100%; }
.vp-nav-links a { font-size: 14px; color: #444; text-decoration: none; }
.vp-nav-cta { background: #1a5fa8; color: #fff !important; border-radius: 6px; padding: 10px 22px; font-size: 13px; font-weight: 600; text-decoration: none; }
.vp-hero { padding: 60px 32px 48px; max-width: 1400px; margin: 0 auto; }
.vp-hero-inner { display: grid !important; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.vp-hero h1 { font-size: 44px; font-weight: 700; line-height: 1.2; letter-spacing: -1px; margin-bottom: 20px; }
.vp-hero h1 em { font-style: normal; color: #1a5fa8; }
.vp-hero-sub { font-size: 16px; color: #555; max-width: 580px; margin-bottom: 36px; }
.vp-hero-btns { display: flex !important; gap: 14px; flex-wrap: wrap; }
.vp-btn-primary { background: #1a5fa8; color: #fff !important; border-radius: 6px; padding: 14px 32px; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-block; }
.vp-btn-outline { background: transparent; color: #1a1a2e !important; border: 1px solid #ccc; border-radius: 6px; padding: 14px 32px; font-size: 15px; text-decoration: none; display: inline-block; }
.vp-divider { border: none; border-top: 1px solid #e8e8f0; margin: 0; }
.vp-section { padding: 48px 32px; max-width: 1400px; margin: 0 auto; }
.vp-section-label { font-size: 11px; font-weight: 700; color: #1a5fa8; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.vp-section-title { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.vp-section-sub { font-size: 15px; color: #555; max-width: 580px; margin-bottom: 40px; }
.vp-services-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vp-service-card { background: #fff; border: 1px solid #e8e8f0; border-radius: 12px; padding: 28px; }
.vp-service-icon { width: 44px; height: 44px; border-radius: 10px; display: flex !important; align-items: center; justify-content: center; margin-bottom: 16px; }
.vp-service-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.vp-service-card p { font-size: 14px; color: #555; line-height: 1.7; }
.vp-plans-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vp-plan-card { background: #fff; border: 1px solid #e8e8f0; border-radius: 12px; padding: 28px; display: flex !important; flex-direction: column; position: relative; }
.vp-plan-name { font-size: 11px; font-weight: 700; color: #1a5fa8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.vp-plan-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.vp-plan-desc { font-size: 13px; color: #777; margin-bottom: 20px; line-height: 1.6; }
.vp-plan-features { list-style: none; font-size: 14px; color: #333; display: flex !important; flex-direction: column; gap: 8px; margin-bottom: 28px; flex: 1; }
.vp-plan-features li::before { content: "✓ "; color: #1a5fa8; font-weight: 700; }
.vp-plan-btn { display: block; text-align: center; padding: 11px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.vp-plan-btn-outline { border: 1px solid #ccc; color: #333 !important; background: transparent; }
.vp-contact-bg { background: #f4f7fb; padding: 1px 0; }
.vp-contact-grid { display: grid !important; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.vp-contact-info h2 { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.vp-contact-info p { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 28px; }
.vp-contact-points { list-style: none; display: flex !important; flex-direction: column; gap: 10px; }
.vp-contact-points li::before { content: ""; display: block; width: 7px; height: 7px; border-radius: 50%; background: #1a5fa8; flex-shrink: 0; }
.vp-contact-points li { display: flex !important; align-items: center; gap: 10px; font-size: 14px; color: #333; }
.vp-form-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px; }
.vp-form-group { display: flex !important; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.vp-form-group label { font-size: 12px; font-weight: 700; color: #444; }
.vp-form-group input, .vp-form-group select, .vp-form-group textarea { padding: 10px 14px; border: 1px solid #d0d0e0; border-radius: 6px; font-size: 14px; color: #1a1a2e; background: #fff; width: 100%; font-family: inherit; }
.vp-form-group textarea { height: 100px; resize: vertical; }
.vp-submit-btn { width: 100%; background: #1a5fa8; color: #fff; border: none; border-radius: 6px; padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.vp-footer { padding: 28px 48px; display: flex !important; align-items: center; justify-content: center; border-top: 1px solid #e8e8f0; }
.vp-footer-copy { font-size: 12px; color: #888; }
.vp-slideshow { position: relative !important; width: 100%; height: 420px !important; border-radius: 16px; overflow: hidden !important; box-shadow: 0 8px 32px rgba(26,95,168,0.13); }
.vp-slide { position: absolute !important; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s ease-in-out; }
.vp-slide.active { opacity: 1 !important; }
.vp-slide-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-slide-caption { position: absolute !important; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(26,26,46,0.75)); color: #fff; padding: 24px 20px 16px; font-size: 14px; font-weight: 600; }
.vp-slide-dots { position: absolute !important; bottom: 10px; right: 14px; display: flex !important; gap: 6px; }
.vp-slide-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0; }
.vp-slide-dot.active { background: #fff; }

/* ====== About / Philosophy section new design ====== */
#about { background: #f0f4fa !important; }
.vp-philosophy-header { text-align: center; margin-bottom: 24px; }
.vp-philosophy-inner { background: #fff; border-radius: 16px; padding: 36px 40px; box-shadow: 0 2px 12px rgba(26,95,168,0.07); }
.vp-philosophy-lead { color: #1a5fa8 !important; font-size: 17px !important; font-weight: 600 !important; margin-bottom: 20px !important; line-height: 1.8 !important; }
.vp-philosophy-body { color: #333 !important; font-size: 15px !important; line-height: 1.9 !important; margin-bottom: 12px !important; }
.vp-philosophy-body2 { color: #333 !important; font-size: 15px !important; line-height: 1.9 !important; margin-bottom: 32px !important; }
.vp-phil-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.vp-phil-card { background: #fff !important; border: 1px solid #e0e6f0 !important; border-radius: 12px !important; overflow: hidden; display: flex !important; flex-direction: column; }
.vp-phil-card-top { padding: 22px 22px 18px; }
.vp-phil-card-header { display: flex !important; align-items: center; gap: 14px; margin-bottom: 14px; }
.vp-phil-icon { width: 50px; height: 50px; border-radius: 50%; display: flex !important; align-items: center; justify-content: center; flex-shrink: 0; font-size: 22px; line-height: 1; }
.vp-phil-icon-blue { background: #1a5fa8; }
.vp-phil-icon-orange { background: #d4820a; }
.vp-phil-icon-red { background: #c5274e; }
.vp-phil-title { font-size: 16px !important; font-weight: 700 !important; margin: 0 !important; line-height: 1.3 !important; }
.vp-phil-title-blue { color: #1a5fa8 !important; }
.vp-phil-title-orange { color: #d4820a !important; }
.vp-phil-title-red { color: #c5274e !important; }
.vp-phil-desc { font-size: 13.5px !important; color: #555 !important; line-height: 1.75 !important; margin: 0 !important; }
.vp-phil-img { height: 185px; background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.vp-phil-img-1 { background-color: #1a5fa8; background-image: url("https://images.unsplash.com/photo-1600880292089-90a7e086ee0c?w=600") !important; }
.vp-phil-img-2 { background-color: #d4820a; background-image: url("https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=600") !important; }
.vp-phil-img-3 { background-color: #c5274e; background-image: url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=600") !important; }
.vp-phil-banner { background: linear-gradient(135deg, #1a3f80 0%, #1a5fa8 50%, #2070c8 100%) !important; border-radius: 14px !important; padding: 30px 40px !important; display: flex !important; align-items: center !important; gap: 30px !important; margin-bottom: 30px !important; margin-top: 20px !important; }
.vp-phil-banner-icon { width: 72px !important; height: 72px !important; border-radius: 50% !important; border: 2.5px solid rgba(255,255,255,0.45) !important; display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; background: rgba(255,255,255,0.08) !important; font-size: 30px !important; line-height: 1 !important; }
.vp-phil-banner-text { color: #fff !important; font-size: 15.5px !important; line-height: 1.85 !important; }
.vp-phil-banner-text strong { color: #ffc107 !important; font-weight: 700 !important; }
.vp-phil-cta { display: flex !important; align-items: center !important; justify-content: center !important; gap: 24px !important; padding: 8px 0 !important; }
.vp-phil-cta p { font-size: 15px !important; color: #444 !important; margin: 0 !important; }
.vp-phil-cta-btn { background: #1a5fa8 !important; color: #fff !important; text-decoration: none !important; border-radius: 6px !important; padding: 13px 32px !important; font-size: 15px !important; font-weight: 600 !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; }

@media (max-width: 768px) {
  .vp-nav-links, .vp-nav-cta { display: none !important; }
  .vp-hero-inner { grid-template-columns: 1fr !important; }
  .vp-hero h1 { font-size: 28px !important; }
  .vp-slideshow { height: 240px !important; }
  .vp-services-grid, .vp-plans-grid, .vp-phil-grid { grid-template-columns: 1fr !important; }
  .vp-contact-grid, .vp-form-row { grid-template-columns: 1fr !important; }
  .vp-phil-banner { flex-direction: column !important; text-align: center !important; }
  .vp-phil-cta { flex-direction: column !important; gap: 12px !important; }
}


/* Fix: Case Studies - compact card layout */
.vp-cases-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 24px !important;
}

.vp-case-card {
  display: flex !important;
  flex-direction: column !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  text-decoration: none !important;
  color: inherit !important;
  background: #fff !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.vp-case-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

.vp-case-card-img {
  overflow: hidden !important;
  height: 180px !important;
  flex-shrink: 0 !important;
}

.vp-case-card-img img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.vp-case-card-body {
  padding: 16px !important;
  flex: 1 !important;
}

/* ===== shigyo-dx-partner ページの修正 ===== */

/* 1. 不自然な空白（wp-block-groupのmargin-top）を削除 */
.page-id-252 .entry-content > .wp-block-group,
.page-id-252 .entry-content > .pricing-section-wrap,
.page-id-252 .entry-content > .flow-section-redesign {
  margin-top: 0 !important;
}

/* 2. サービス内容セクション内の上部空白を削除 */
.page-id-252 .entry-content > div:not([class]) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 3. 全体フォントを高級感ある明朝体（Noto Serif JP）に変更 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;600;700;900&display=swap');

.page-id-252 .entry-content,
.page-id-252 .entry-content *:not(.dashicons):not(.material-icons) {
  font-family: 'Noto Serif JP', 'YuMincho', '游明朝', 'Hiragino Mincho ProN', 'ヒラギノ明朝 ProN', serif !important;
}

/* アイコンフォントは除外 */
.page-id-252 .entry-content .dashicons,
.page-id-252 .entry-content [class*="icon"],
.page-id-252 .entry-content svg {
  font-family: dashicons !important;
}

/* ===== Astecia-style Motion Design ===== */

/* --- フェードイン・スライドアップ（スクロール時） --- */
.vp-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.vp-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- フェードイン左から --- */
.vp-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.vp-fade-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- フェードイン右から --- */
.vp-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.vp-fade-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- スケールイン --- */
.vp-scale-in {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.vp-scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* --- ストagger遅延 --- */
.vp-stagger-1 { transition-delay: 0.05s !important; }
.vp-stagger-2 { transition-delay: 0.12s !important; }
.vp-stagger-3 { transition-delay: 0.20s !important; }
.vp-stagger-4 { transition-delay: 0.28s !important; }
.vp-stagger-5 { transition-delay: 0.36s !important; }
.vp-stagger-6 { transition-delay: 0.44s !important; }

/* --- ヒーロータイトル テキストアニメーション --- */
@keyframes vp-hero-text-in {
  0% { opacity: 0; transform: translateY(30px) skewY(2deg); }
  100% { opacity: 1; transform: translateY(0) skewY(0deg); }
}
.vp-hero h1 {
  animation: vp-hero-text-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.vp-hero-sub {
  animation: vp-hero-text-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.vp-hero-btns {
  animation: vp-hero-text-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

/* --- ヒーロー画像スライドショーのスケール演出 --- */
.vp-slideshow {
  animation: vp-hero-text-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* --- カーソルエフェクト --- */
.vp-cursor {
  width: 12px;
  height: 12px;
  background: #1a5fa8;
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
  mix-blend-mode: multiply;
}
.vp-cursor-follower {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(26, 95, 168, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(a:hover) .vp-cursor,
body:has(button:hover) .vp-cursor {
  width: 20px;
  height: 20px;
  background: #1a5fa8;
}

/* --- ナビゲーション スクロール時の影 --- */
.vp-nav {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.vp-nav.scrolled {
  box-shadow: 0 2px 20px rgba(26, 95, 168, 0.12);
}

/* --- セクションラベル アンダーライン演出 --- */
@keyframes vp-label-slide {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.vp-section-label {
  position: relative;
  display: inline-block;
}
.vp-section-label::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #1a5fa8;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.is-visible .vp-section-label::after,
.vp-section-label.is-visible::after {
  transform: scaleX(1);
}

/* --- ホバー時のカードリフト --- */
.vp-service-card,
.vp-plan-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease !important;
}
.vp-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26, 95, 168, 0.13);
}
.vp-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26, 95, 168, 0.13);
}

/* --- ボタンのホバーアニメーション --- */
.vp-btn-primary,
.vp-nav-cta,
.vp-submit-btn,
.vp-plan-btn,
.vp-thanks-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}
.vp-btn-primary:hover,
.vp-nav-cta:hover,
.vp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 95, 168, 0.35);
}

/* --- ロゴのホバー回転 --- */
.vp-logo {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}
.vp-logo:hover {
  transform: scale(1.08) rotate(-2deg);
}

/* --- 数字カウントアップ演出用 --- */
@keyframes vp-count-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- ページロード用オーバーレイ --- */
.vp-page-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.vp-page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.vp-loader-bar {
  width: 60px;
  height: 3px;
  background: #e8e8f0;
  border-radius: 2px;
  overflow: hidden;
}
.vp-loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  background: #1a5fa8;
  animation: vp-loader-anim 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes vp-loader-anim {
  from { width: 0%; }
  to { width: 100%; }
}

/* --- スクロール進行バー --- */
.vp-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a5fa8, #4a9ff5);
  z-index: 99997;
  width: 0%;
  transition: width 0.1s ease;
}

/* --- 区切り線アニメーション --- */
.vp-divider {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.vp-divider.is-visible {
  transform: scaleX(1);
}


/* ============================================
   Astecia風 スクロールアニメーション CSS
   ============================================ */

/* アニメーションの初期状態（非表示） */
.vp-anim {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}

.vp-anim.vp-fade-in { opacity: 0; }

.vp-anim.vp-fade-up {
  transform: translateY(50px);
  opacity: 0;
}

.vp-anim.vp-fade-left {
  transform: translateX(-60px);
  opacity: 0;
}

.vp-anim.vp-fade-right {
  transform: translateX(60px);
  opacity: 0;
}

.vp-anim.vp-rotate-in {
  transform: rotate(-10deg) scale(0.9);
  opacity: 0;
}

.vp-anim.vp-zoom-in {
  transform: scale(0.85);
  opacity: 0;
}

/* アニメーション発火後 */
.vp-anim.vp-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* 遅延バリエーション */
.vp-delay-100.vp-visible { transition-delay: 0.1s; }
.vp-delay-200.vp-visible { transition-delay: 0.2s; }
.vp-delay-300.vp-visible { transition-delay: 0.3s; }
.vp-delay-400.vp-visible { transition-delay: 0.4s; }
.vp-delay-500.vp-visible { transition-delay: 0.5s; }
.vp-delay-700.vp-visible { transition-delay: 0.7s; }
.vp-delay-900.vp-visible { transition-delay: 0.9s; }

/* ============================================
   ヒーローセクション：テキスト登場アニメーション
   ============================================ */
.shigyo-hero-title {
  animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.3s;
}

@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
    letter-spacing: 0.15em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: normal;
  }
}

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

/* ============================================
   セクション見出し：アンダーライン伸びる演出
   ============================================ */
.shigyo-section-h2 {
  position: relative;
  display: inline-block;
}

.shigyo-section-h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: currentColor;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.shigyo-section-h2.vp-visible::after {
  width: 100%;
}

/* ============================================
   カード類：ホバーエフェクト（Astecia風）
   ============================================ */
.shigyo-issues-section .wp-block-column,
.shigyo-ai-section .wp-block-column,
.shigyo-usecase-section .wp-block-column {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shigyo-issues-section .wp-block-column:hover,
.shigyo-ai-section .wp-block-column:hover,
.shigyo-usecase-section .wp-block-column:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* ============================================
   ナビゲーション：スクロール時に背景を付ける
   ============================================ */
.site-header,
header.wp-block-template-part {
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header-scrolled {
  background-color: rgba(238,244,251,0.97) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1) !important;
}

/* ============================================
   スムーズスクロール
   ============================================ */
html {
  scroll-behavior: smooth;
}

/* ============================================
   ページ読み込みオーバーレイ（Astecia風）
   ============================================ */
#vp-page-loader {
  position: fixed;
  inset: 0;
  background: #1a2a4a;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#vp-page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#vp-page-loader .loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#vp-page-loader .loader-logo img {
  width: 120px;
  opacity: 0;
  animation: loaderLogoFade 0.5s ease 0.1s forwards;
}

#vp-page-loader .loader-bar-wrap {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}

#vp-page-loader .loader-bar {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0;
  animation: loaderProgress 0.9s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}

@keyframes loaderLogoFade {
  to { opacity: 1; }
}

@keyframes loaderProgress {
  to { width: 100%; }
}


/*  */
.shigyo-quicknav-inner {
	  justify-content: center;
}

/* Fix: Remove dark blue gap between deliverables and flow sections */
.shigyo-flow-section {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}