/* 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: #fff !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;
}