/*
Theme Name: mieru-ka
Description: 中小企業の見える化メディア
Version: 1.0.0
*/

/* ========================================
   Base / Color Palette
   ======================================== */
:root {
  --color-primary: #006C8C;
  --color-primary-dark: #005570;
  --color-primary-light: #e6f4f7;
  --color-link: #0891b2;
  --color-link-dark: #0e7490;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-text: #1e293b;
  --color-text-light: #475569;
  --color-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-light: #f8fafc;
  --color-bg-dark: #f1f5f9;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg-light);
}

/* ========================================
   Links
   ======================================== */
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-link-dark);
  text-decoration: underline;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

h1 { font-size: 1.25rem; }
h2 { font-size: 1.125rem; }
h3 { font-size: 1.0625rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9375rem; }
h6 { font-size: 0.875rem; }

@media (min-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.9375rem; }
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
  background: var(--color-link);
  border-color: var(--color-link);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-link-dark);
  border-color: var(--color-link-dark);
}

.btn-outline-primary {
  color: var(--color-link);
  border-color: var(--color-link);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--color-link);
  border-color: var(--color-link);
}

/* Accent Button */
.btn-accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

/* ========================================
   Badges
   ======================================== */
.badge {
  font-weight: 500;
  padding: 0.4em 0.8em;
  border-radius: 2em;
}

.badge.bg-secondary {
  background: var(--color-bg-dark) !important;
  color: var(--color-text-light) !important;
}

.badge.bg-secondary:hover {
  background: var(--color-primary-light) !important;
  color: var(--color-primary) !important;
}

.badge.bg-primary {
  background: var(--color-primary) !important;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 108, 140, 0.6), rgba(30, 41, 59, 0.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem;
  max-width: 800px;
}

.hero-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.hero-highlight {
  display: inline-block;
  padding: 0.1em 0.4em;
  margin-right: 10px;
  background: linear-gradient(135deg, var(--color-accent), #fbbf24);
  color: #1e293b;
  font-weight: 900;
  border-radius: 4px;
  text-shadow: none;
  box-shadow: 
    0 4px 12px rgba(245, 158, 11, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: rotate(-1deg);
  animation: hero-pop 0.6s ease-out;
}

@keyframes hero-pop {
  0% {
    transform: rotate(-1deg) scale(0.9);
    opacity: 0;
  }
  50% {
    transform: rotate(-1deg) scale(1.05);
  }
  100% {
    transform: rotate(-1deg) scale(1);
    opacity: 1;
  }
}

.hero-text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin: 0;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2rem;
    letter-spacing: 0.03em;
  }

  .hero-text {
    font-size: 1rem;
  }
}

/* ========================================
   Header
   ======================================== */
header.sticky-top {
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.navbar-toggler-sm {
  padding: 0.25rem 0.5rem;
  border: none;
}

.navbar-toggler-sm:focus {
  box-shadow: none;
}

.navbar-toggler-sm .navbar-toggler-icon {
  width: 1.2em;
  height: 1.2em;
}

/* Popup Menu */
.popup-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 960px;
  padding: 1rem;
  background: var(--color-bg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

.popup-menu.show {
  opacity: 1;
  visibility: visible;
}

.popup-menu .nav-link {
  padding: 0.75rem 1rem;
  color: var(--color-text);
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s;
}

.popup-menu .nav-link:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  text-decoration: none;
}

/* ========================================
   Cards & Containers
   ======================================== */
.container {
  max-width: 860px;
}

article {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  article {
    padding: 2.5rem;
  }
}

/* ========================================
   Article Content
   ======================================== */
/* Page Title (h1) */
.single-article article > header h1 {
  position: relative;
  padding-left: 1rem;
}

.single-article article > header h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

/* Content Headings */
.single-article .content h2 {
  position: relative;
  padding: 0.75rem 1rem;
  margin-top: 3rem;
  background: linear-gradient(90deg, var(--color-bg-dark), transparent);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.single-article .content h3 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
  border-bottom: 2px solid var(--color-border);
}

.single-article .content h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 3rem;
  height: 2px;
  background: var(--color-primary);
}

.single-article .content h4,
.single-article .content h5,
.single-article .content h6 {
  margin-top: 2rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--color-muted);
}

.single-article .content p {
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

/* Content Images */
.single-article .content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .single-article .content img {
    max-width: 80%;
  }
}

/* Blockquote */
.single-article .content blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-light);
}

/* Lists */
.single-article .content ul,
.single-article .content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.single-article .content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

/* Code */
.single-article .content code {
  padding: 0.2em 0.4em;
  background: var(--color-bg-dark);
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--color-primary-dark);
}

.single-article .content pre {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--color-text);
  border-radius: var(--radius);
  overflow-x: auto;
}

.single-article .content pre code {
  background: none;
  color: #e2e8f0;
  padding: 0;
}

/* ========================================
   Footer
   ======================================== */
footer {
  background: var(--color-text);
  color: var(--color-muted);
}

footer a {
  color: var(--color-bg-dark);
}

footer a:hover {
  color: var(--color-bg);
}

/* ========================================
   Utilities
   ======================================== */
.text-muted {
  color: var(--color-muted) !important;
}

.bg-white {
  background: var(--color-bg) !important;
}

/* Selection */
::selection {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* ========================================
   Service Page - Rich Design
   ======================================== */

/* Base Service Styles */
.single-service article {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.single-service .content {
  font-size: 1rem;
  line-height: 1.8;
}

.single-service .content > p:empty {
  display: none;
}

.single-service .content section {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: 0;
  padding-right: 0;
}

/* Section Eyebrow */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-eyebrow-light {
  color: rgba(255, 255, 255, 0.7);
}

/* Section Titles */
.section-title-lg {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .section-title-lg {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: #fff;
  width: 100%;
  margin: 0 auto;
}

.section-subtitle-dark {
  font-size: 1.125rem;
  color: var(--color-muted);
}

/* ========================================
   Service Hero - Full Width
   ======================================== */
.service-hero-full {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.service-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 40, 60, 0.92) 0%, rgba(0, 80, 100, 0.85) 100%);
}

.min-vh-75 {
  min-height: 75vh;
  margin: 3rem 0;
}

.service-hero-tag {
  display: inline-block;
  padding: 0.5em 1em;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2em;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.service-hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .service-hero-title {
    font-size: 2.75rem;
  }
}

@media (min-width: 992px) {
  .service-hero-title {
    font-size: 2.5rem;
  }
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-hero-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 500px;
}

@media (min-width: 768px) {
  .service-hero-lead {
    font-size: 1.125rem;
  }
}

/* Hero Buttons */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-hero-primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
  text-decoration: none;
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  text-decoration: none;
}

/* Hero Stats */
.service-hero-stats {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.single-service .service-hero-stats {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
}

.stat-item {
  text-align: left;
}

.service-hero-stats .stat-divider,
.single-service .service-hero-stats .stat-divider {
  display: none !important;
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Mockup */
.service-hero-mockup {
  position: relative;
  padding: 1rem;
}

.mockup-image {
  width: 100%;
  display: block;
}

.mockup-browser .mockup-image {
  border-radius: 0;
}

.mockup-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  animation: float 3s ease-in-out infinite;
}

.mockup-float-1 {
  top: 20%;
  right: -10px;
}

.mockup-float-2 {
  bottom: 25%;
  left: -10px;
  animation-delay: -1.5s;
}

.float-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: 8px;
  font-size: 1rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========================================
   Logo Band
   ======================================== */
.service-logos {
  padding: 3rem 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.logos-title {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
}

.logo-item img {
  max-height: 32px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.3s;
}

.logo-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

/* ========================================
   Problem Section
   ======================================== */
.service-problem {
  padding: 5rem 0;
  background: var(--color-bg-light);
}

.problem-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.problem-list {
  margin-top: 2rem;
}

.problem-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--color-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
}

.problem-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.problem-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-dark);
  border-radius: 12px;
  font-size: 1.5rem;
}

.problem-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.problem-item p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

/* ========================================
   Solution Section
   ======================================== */
.service-solution {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.solution-card {
  background: var(--color-bg);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.solution-card:hover {
  transform: translateY(-8px);
}

.solution-card-image {
  height: 180px;
  overflow: hidden;
}

.solution-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.solution-card:hover .solution-card-image img {
  transform: scale(1.1);
}

.solution-card-body {
  padding: 1.5rem;
}

.solution-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.solution-card-body p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.7;
}

/* ========================================
   Trial Section
   ======================================== */
.service-trial {
  padding: 3rem 0;
  background: var(--color-bg);
}

.trial-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0891b2 100%);
  border-radius: 20px;
  padding: 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.trial-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.trial-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.trial-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.trial-description {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 0.5rem;
}

.trial-note {
  font-size: 0.8125rem;
  opacity: 0.8;
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .trial-card {
    padding: 2rem;
    text-align: center;
  }
  
  .trial-title {
    font-size: 1.5rem;
  }
  
  .trial-description {
    font-size: 1rem;
  }
}

/* ========================================
   Flow Section
   ======================================== */
.service-flow {
  padding: 5rem 0;
  background: var(--color-bg);
}

.flow-visual {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
}

.flow-visual-item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 180px;
  text-align: center;
}

.flow-visual-arrow {
  flex: 0 0 auto;
}

.flow-visual-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: 1rem;
}

.flow-visual-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-primary-light);
  box-shadow: 0 8px 24px rgba(0, 108, 140, 0.15);
}

.flow-visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-visual-item h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.flow-visual-item p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
}

.flow-visual-arrow {
  display: flex;
  align-items: center;
  padding-top: 4rem;
  color: var(--color-border);
}

@media (max-width: 991px) {
  /* Hero Mockup - Tablet size */
  .service-hero-mockup {
    max-width: 50%;
    margin: 2rem auto 0;
  }
  
  .flow-visual {
    flex-direction: column;
    align-items: center;
  }
  
  .flow-visual-item {
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: 16px;
  }
  
  .flow-visual-number {
    font-size: 2rem;
    margin-bottom: 0;
    min-width: 60px;
  }
  
  .flow-visual-image {
    width: 80px;
    height: 80px;
    margin: 0;
    flex-shrink: 0;
  }
  
  .flow-visual-arrow {
    display: none;
  }
}

/* ========================================
   Features Visual
   ======================================== */
.service-features-visual {
  padding: 5rem 0;
  background: var(--color-bg-light);
}

.feature-description {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.feature-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--color-text);
}

.feature-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.feature-image-card {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.feature-image-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.feature-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 108, 140, 0.1) 0%, transparent 50%);
  pointer-events: none;
  border-radius: 16px;
}

/* ========================================
   Pricing - Modern
   ======================================== */
.service-pricing {
  padding: 5rem 0;
  background: var(--color-bg);
}

.pricing-card-modern {
  position: relative;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s;
}

.pricing-card-modern:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 10px 40px rgba(0, 108, 140, 0.1);
}

.pricing-card-featured {
  border-color: var(--color-primary);
  box-shadow: 0 10px 40px rgba(0, 108, 140, 0.15);
}

.pricing-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 2em;
}

.pricing-card-top {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.pricing-card-img {
  display: block;
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
  border-radius: var(--radius);
}

.pricing-plan-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.pricing-plan-desc {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

.pricing-card-price {
  text-align: center;
  margin-bottom: 1.5rem;
}

.price-prefix {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.price-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.price-suffix {
  font-size: 1rem;
  color: var(--color-text);
}

.price-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.pricing-card-features li {
  position: relative;
  padding: 0.625rem 0 0.625rem 1.75rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-bg-dark);
}

.pricing-card-features li:last-child {
  border-bottom: none;
}

.pricing-card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.btn-pricing-primary {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-pricing-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
}

.btn-pricing-featured {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-pricing-featured:hover {
  background: var(--color-accent-dark);
  color: #fff;
  text-decoration: none;
}

/* ========================================
   Comparison - Modern
   ======================================== */
.service-comparison {
  padding: 5rem 0;
  background: var(--color-bg-light);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.comparison-table-modern {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: var(--color-bg);
}

.comparison-table-modern th,
.comparison-table-modern td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table-modern thead th {
  background: var(--color-text);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}

.comparison-table-modern thead th:first-child {
  border-radius: 16px 0 0 0;
}

.comparison-table-modern thead th:last-child {
  border-radius: 0 16px 0 0;
}

.comparison-table-modern .highlight-col {
  background: var(--color-primary-light);
}

.comparison-table-modern thead .highlight-col {
  background: var(--color-primary);
}

.comparison-table-modern tbody tr:last-child td {
  border-bottom: none;
}

.check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #22c55e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
}

/* ========================================
   Testimonials
   ======================================== */
.service-testimonials {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.testimonial-card {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  position: relative;
}

.testimonial-quote {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--color-primary-light);
  line-height: 1;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.testimonial-name {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.testimonial-company {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* ========================================
   FAQ - Custom Style
   ======================================== */
.service-faq-section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-bg-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item.active {
  background: var(--color-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
}

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

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-muted);
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ========================================
   CTA Final
   ======================================== */
.service-cta-final {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.service-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.service-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 40, 60, 0.95) 0%, rgba(0, 80, 100, 0.9) 100%);
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.5rem;
  }
}

.cta-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-cta-primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.5);
  text-decoration: none;
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  text-decoration: none;
}

/* ========================================
   Footnote / Annotation Styles
   ======================================== */
.footnote-section {
  background: transparent !important;
  padding: 1rem 0;
}

.footnote-text {
  font-size: 14px !important;
  color: var(--color-muted);
  line-height: 1.8;
  margin: 0;
  padding-left: 2rem;
}

.single-service .content .footnote-section {
  margin-left: 0;
  margin-right: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

.awards-grid .footnote-text {
  width: 100%;
  text-align: center;
  padding-left: 0;
  margin-top: 1rem;
}

/* ========================================
   Service Header (for WordPress title)
   ======================================== */
.service-header {
  display: none;
}

.service-title {
  display: none;
}

/* ========================================
   Enhanced Service Page Styles
   ======================================== */

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

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

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease forwards;
}

.animate-fade-left {
  animation: fadeLeft 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Hero Decorations */
.hero-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  top: -200px;
  right: -100px;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  bottom: -150px;
  left: -100px;
}

/* Hero Tag Dot */
.tag-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  animation: scrollLine 2s infinite;
}

/* Browser Mockup */
.mockup-browser {
  background: var(--color-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.mockup-browser-header {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--color-bg-dark);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
}

.browser-dot:nth-child(1) { background: #ef4444; }
.browser-dot:nth-child(2) { background: #f59e0b; }
.browser-dot:nth-child(3) { background: #22c55e; }

/* Float Cards */
.mockup-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  animation: float 4s ease-in-out infinite;
}

.mockup-float-1 {
  top: 15%;
  right: -20px;
}

.mockup-float-2 {
  bottom: 30%;
  left: -30px;
  animation-delay: -1s;
}

.mockup-float-3 {
  bottom: 10%;
  right: 10%;
  animation-delay: -2s;
}

.float-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1rem;
}

.float-icon.success { background: #dcfce7; color: #16a34a; }
.float-icon.info { background: var(--color-primary-light); color: var(--color-primary); }
.float-icon.warning { background: #fef3c7; color: var(--color-accent-dark); }

.float-text {
  white-space: nowrap;
}

/* Stat Plus/Unit */
.stat-plus, .stat-unit {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.8;
}

/* Logo Slider */
.logos-slider {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-track {
  display: flex;
  gap: 3rem;
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Awards Section */
.service-awards {
  padding: 3.5rem 0 !important;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.single-service .content .service-awards {
  padding: 3.5rem 0 !important;
}

.awards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-bg-light);
  border-radius: 50px;
  transition: all 0.3s;
}

.award-item:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.award-icon {
  font-size: 1.5rem;
}

.award-title {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.2;
}

.award-subtitle {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
}

/* Problem Image Badge */
.problem-image-wrapper {
  position: relative;
}

.problem-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  padding: 1.25rem;
  border-radius: 16px;
  text-align: center;
}

.problem-image-badge .badge-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.problem-image-badge .badge-text {
  font-size: 0.75rem;
  color: var(--color-text-light);
  line-height: 1.3;
}

/* Solution Background Pattern */
.solution-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

/* Solution Card Overlay */
.solution-card-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.solution-card-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

.solution-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s;
}

.solution-card-link:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
  transform: translateX(4px);
}

/* Before/After Section */
.service-before-after {
  padding: 5rem 0;
  background: var(--color-bg);
}

.comparison-visual {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--color-bg-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.comparison-side {
  flex: 1;
  padding: 2rem;
}

.comparison-before {
  background: #fef2f2;
}

.comparison-after {
  background: #f0fdf4;
}

.comparison-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.comparison-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 2em;
  margin-bottom: 0.5rem;
}

.comparison-badge.before {
  background: #fee2e2;
  color: #dc2626;
}

.comparison-badge.after {
  background: #dcfce7;
  color: #16a34a;
}

.comparison-header h4 {
  font-size: 1.125rem;
  margin: 0;
}

.comparison-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.comparison-item .item-icon {
  font-size: 1.25rem;
}

.comparison-item .item-text {
  font-size: 0.9375rem;
  color: var(--color-text);
}

.comparison-item.negative {
  border-left: 3px solid #ef4444;
}

.comparison-item.positive {
  border-left: 3px solid #22c55e;
}

.comparison-arrow {
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.arrow-circle {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 108, 140, 0.3);
}

@media (max-width: 767px) {
  .comparison-visual {
    flex-direction: column;
  }
  
  .comparison-arrow {
    justify-content: center;
    padding: 1rem 0;
    background: var(--color-bg-light);
  }
  
  .arrow-circle {
    transform: rotate(90deg);
  }
}

/* Video Section */
.service-video {
  padding: 5rem 0;
  background: var(--color-bg-light);
}

.video-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.video-highlights li {
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--color-text);
}

.video-player-wrapper {
  position: relative;
}

.video-player {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  width: 100%;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.4);
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 15px 50px rgba(245, 158, 11, 0.5);
}

.video-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--color-primary-light);
  border-radius: 20px;
  z-index: -1;
}

/* Feature Image Float */
.feature-image-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  z-index: 10;
}

.float-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.float-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.float-stat-icon {
  font-size: 2rem;
}

.float-stat-label {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Integration Section */
.service-integrations {
  padding: 5rem 0;
  background: var(--color-bg-dark);
}

.integration-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  background: var(--color-bg);
  border-radius: 16px;
  transition: all 0.3s;
  min-width: 140px;
}

.integration-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.integration-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
}

.integration-item span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Pricing Background */
.pricing-bg-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

/* Pricing Guarantee */
.pricing-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.25rem 2rem;
  background: var(--color-bg-light);
  border-radius: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.guarantee-icon {
  font-size: 1.5rem;
}

.guarantee-text strong {
  display: block;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.guarantee-text span {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* Text Gradient Inline */
.text-gradient-inline {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Testimonials Decoration */
.testimonials-decoration {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
}

/* Testimonial Rating */
.testimonial-rating {
  color: var(--color-accent);
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* CTA Enhancements */
.cta-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(245, 158, 11, 0.2);
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 2em;
  margin-bottom: 1.5rem;
}

.cta-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.trust-item {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* CTA Particles */
.cta-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(2) {
  top: 60%;
  right: 15%;
  animation: float 8s ease-in-out infinite;
  animation-delay: -2s;
}

.particle:nth-child(3) {
  bottom: 30%;
  left: 30%;
  animation: float 7s ease-in-out infinite;
  animation-delay: -4s;
}

/* ========================================
   SP Responsive Fixes
   ======================================== */
@media (max-width: 767px) {
  /* Bootstrap g-5 to g-4 on SP */
  .g-5 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }
  
  /* Overall font size reduction for SP */
  .service-hero-title {
    font-size: 1.5rem;
  }
  
  .service-hero-lead {
    font-size: 0.875rem;
  }
  
  .section-title-lg {
    font-size: 1.375rem;
  }
  
  .section-subtitle,
  .section-subtitle-dark {
    font-size: 0.9375rem;
  }
  
  /* Hero section SP fixes */
  .service-hero-full {
    min-height: auto;
    padding: 3rem 0;
  }
  
  .min-vh-75 {
    min-height: auto;
    margin: 2rem 0;
  }
  
  .service-hero-tag {
    font-size: 0.75rem;
    padding: 0.375em 0.75em;
    margin-bottom: 1rem;
  }
  
  .btn-hero-primary,
  .btn-hero-outline {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
  
  /* Hero mockup SP */
  .service-hero-mockup {
    margin-top: 2rem;
    padding: 0;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .mockup-browser {
    border-radius: 12px;
  }
  
  .mockup-browser .mockup-image {
    border-radius: 0 0 12px 12px;
  }
  
  .mockup-float {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .mockup-float .float-icon {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
  
  .mockup-float-1 {
    top: 10%;
    right: -10px;
  }
  
  .mockup-float-2 {
    bottom: 35%;
    left: -10px;
  }
  
  .mockup-float-3 {
    bottom: 5%;
    right: 5%;
  }
  
  .service-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.6875rem;
  }
  
  .hero-scroll-indicator {
    display: none;
  }
  
  /* Awards SP */
  .service-awards,
  .single-service .content .service-awards {
    padding: 2.5rem 0 !important;
  }
  
  .awards-grid {
    gap: 0.75rem;
  }
  
  .award-item {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
  
  .award-icon {
    font-size: 1.25rem;
  }
  
  .award-subtitle {
    font-size: 0.8125rem;
  }
  
  /* Problem section SP */
  .service-problem {
    padding: 3rem 0;
    overflow-x: hidden;
  }
  
  .problem-image-wrapper {
    position: relative;
  }
  
  .problem-image-badge {
    position: absolute;
    bottom: -10px;
    right: 10px;
    padding: 0.75rem;
  }
  
  .problem-image-badge .badge-number {
    font-size: 1.5rem;
  }
  
  .problem-image-badge .badge-text {
    font-size: 0.625rem;
  }
  
  .problem-item {
    padding: 1rem;
  }
  
  .problem-item h4 {
    font-size: 0.9375rem;
  }
  
  .problem-item p {
    font-size: 0.8125rem;
  }
  
  /* Solution section SP */
  .service-solution {
    padding: 3rem 0;
  }
  
  .solution-card-body h3 {
    font-size: 1rem;
  }
  
  .solution-card-body p {
    font-size: 0.8125rem;
  }
  
  /* Before/After SP */
  .service-before-after {
    padding: 3rem 0;
  }
  
  .comparison-side {
    padding: 1.5rem;
  }
  
  .comparison-item {
    padding: 0.75rem;
  }
  
  .comparison-item .item-text {
    font-size: 0.8125rem;
  }
  
  /* Video section SP */
  .service-video {
    padding: 3rem 0;
    overflow-x: hidden;
  }
  
  .video-player-wrapper {
    margin: 0;
  }
  
  .video-highlights li {
    font-size: 0.875rem;
  }
  
  .video-decoration {
    display: none;
  }
  
  /* Flow section SP - Fix horizontal scroll */
  .service-flow {
    padding: 3rem 0;
  }
  
  .flow-visual {
    flex-direction: column;
    gap: 1rem;
  }
  
  .flow-visual-item {
    display: grid;
    grid-template-columns: 36px 50px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.25rem 0.75rem;
    max-width: 100%;
    text-align: left;
    padding: 1rem;
    background: var(--color-bg-light);
    border-radius: 12px;
  }
  
  .flow-visual-number {
    grid-row: 1 / 3;
    font-size: 1.25rem;
    min-width: auto;
    margin-bottom: 0;
  }
  
  .flow-visual-image {
    width: 50px;
    height: 50px;
  }
  
  .flow-visual-image {
    grid-row: 1 / 3;
    width: 60px;
    height: 60px;
    margin: 0;
    flex-shrink: 0;
  }
  
  .flow-visual-item h4 {
    grid-column: 3;
    grid-row: 1;
    font-size: 0.9375rem;
    margin-bottom: 0;
    align-self: end;
  }
  
  .flow-visual-item p {
    grid-column: 3;
    grid-row: 2;
    font-size: 0.75rem;
    align-self: start;
  }
  
  .flow-visual-arrow {
    display: none;
  }
  
  /* Features Visual SP - Fix overflow */
  .service-features-visual {
    padding: 3rem 0;
    overflow-x: hidden;
  }
  
  .feature-description {
    font-size: 0.875rem;
  }
  
  .feature-check-list li {
    font-size: 0.875rem;
  }
  
  .feature-image-card {
    margin: 0;
  }
  
  .feature-image-float {
    position: static;
    display: inline-block;
    margin-top: 1rem;
  }
  
  /* Integration SP */
  .service-integrations {
    padding: 3rem 0;
  }
  
  .integration-grid {
    gap: 1rem;
  }
  
  .integration-item {
    padding: 1rem;
    min-width: 100px;
  }
  
  .integration-item img {
    width: 40px;
    height: 40px;
  }
  
  .integration-item span {
    font-size: 0.75rem;
  }
  
  /* Pricing SP */
  .service-pricing {
    padding: 3rem 0;
  }
  
  .pricing-card-modern {
    padding: 1.5rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  .pricing-card-features li {
    font-size: 0.8125rem;
  }
  
  .pricing-guarantee {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  /* Comparison table SP */
  .service-comparison {
    padding: 3rem 0;
  }
  
  .comparison-table-modern th,
  .comparison-table-modern td {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    text-align: center;
  }
  
  .comparison-table-modern .highlight-col {
    min-width: 80px;
    max-width: 100px;
  }
  
  /* Testimonials SP */
  .service-testimonials {
    padding: 3rem 0;
  }
  
  .testimonial-text {
    font-size: 0.875rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  /* FAQ SP */
  .service-faq-section {
    padding: 3rem 0;
  }
  
  .faq-question {
    font-size: 0.9375rem;
    padding: 1rem;
  }
  
  .faq-answer p {
    font-size: 0.8125rem;
    padding: 0 1rem 1rem;
  }
  
  /* CTA SP */
  .service-cta-final {
    padding: 3rem 0;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .cta-subtitle {
    font-size: 0.9375rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }
  
  .cta-trust {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .trust-item {
    font-size: 0.75rem;
  }
  
  .cta-badge {
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
  }
}

/* ========================================
   TOP Page - Service Showcase
   ======================================== */
.service-showcase {
  padding: 2rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: #fff;
  width: 100%;
  margin: 0;
}

/* Service Card */
.service-card {
  display: block;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 108, 140, 0.15);
}

.service-card-image {
  position: relative;
  aspect-ratio: 1075 / 600;
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .service-card-overlay {
  opacity: 1;
}

.service-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.service-card-content {
  padding: 1.25rem 1.5rem 1.5rem;
}

.service-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-excerpt {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-link);
  transition: gap 0.2s ease;
}

.service-card:hover .service-card-link {
  gap: 0.625rem;
}

.service-card-link svg {
  transition: transform 0.2s ease;
}

.service-card:hover .service-card-link svg {
  transform: translateX(2px);
}

/* SP対応 */
@media (max-width: 767px) {
  .service-showcase {
    padding: 1.5rem 0;
  }
  
  .section-title {
    font-size: 1.375rem;
  }
  
  .section-subtitle {
    font-size: 0.875rem;
  }
  
  .service-card-image {
    aspect-ratio: 1075 / 600;
  }
  
  .service-card-content {
    padding: 1rem 1.25rem 1.25rem;
  }
  
  .service-card-title {
    font-size: 1rem;
  }
  
  .service-card-category {
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.625rem;
    padding: 0.1875rem 0.625rem;
  }
}

/* ========================================
   TOP Page - Article Showcase
   ======================================== */
.article-showcase {
  padding: 2rem 0;
}

/* カテゴリー2階層表示 */
.article-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.category-group {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.category-group:hover {
  box-shadow: var(--shadow);
}

.category-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.category-parent-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  transition: color 0.2s;
}

.category-parent:hover .category-parent-name {
  color: var(--color-primary);
}

.category-parent-count {
  font-size: 0.75rem;
  color: var(--color-muted);
  background: var(--color-bg-dark);
  padding: 0.125rem 0.5rem;
  border-radius: 100px;
}

.category-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-child {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  background: var(--color-bg-light);
  border-radius: 100px;
  transition: all 0.2s;
}

.category-child:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.category-child-count {
  font-size: 0.6875rem;
  color: var(--color-muted);
  margin-left: 0.125rem;
}

/* 最新の記事（リストデザイン） */
.article-section {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.article-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
}

.article-section-icon {
  font-size: 1.25rem;
}

.article-list {
  display: flex;
  flex-direction: column;
}

.article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
}

.article-item:last-child {
  border-bottom: none;
}

.article-item:hover {
  background: var(--color-bg-light);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.article-item-main {
  flex: 1;
  min-width: 0;
}

.article-item-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.375rem;
}

.article-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-item:hover .article-item-title {
  color: var(--color-primary);
}

.article-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.article-item-date {
  font-size: 0.75rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.article-item-arrow {
  color: var(--color-muted);
  transition: transform 0.2s, color 0.2s;
}

.article-item:hover .article-item-arrow {
  transform: translateX(3px);
  color: var(--color-primary);
}

/* SP対応 */
@media (max-width: 767px) {
  .article-showcase {
    padding: 1.5rem 0;
  }
  
  .article-categories {
    grid-template-columns: 1fr;
  }
  
  .category-group {
    padding: 1rem;
  }
  
  .category-parent-name {
    font-size: 0.9375rem;
  }
  
  .category-child {
    font-size: 0.75rem;
    padding: 0.1875rem 0.625rem;
  }
  
  .article-section {
    padding: 1.25rem 1rem;
  }
  
  .article-section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }
  
  .article-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.875rem 0;
  }
  
  .article-item:hover {
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .article-item-meta {
    width: 100%;
    justify-content: space-between;
  }
  
  .article-item-title {
    font-size: 0.875rem;
  }
}

/* ========================================
   Taxonomy Page - Article Category
   ======================================== */
.taxonomy-header {
  text-align: center;
  padding: 1.5rem 0;
}

.taxonomy-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.taxonomy-breadcrumb a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.taxonomy-breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: var(--color-muted);
  margin: 0 0.25rem;
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

.taxonomy-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.taxonomy-description {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin: 0 0 0.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.taxonomy-count {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.25rem 1rem;
  border-radius: 100px;
  margin: 0;
}

/* 子カテゴリー一覧 */
.child-categories {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.child-categories-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.child-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.child-category-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
}

.child-category-item:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.child-category-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.child-category-item:hover .child-category-name {
  color: var(--color-primary);
}

.child-category-count {
  font-size: 0.75rem;
  color: var(--color-muted);
  background: var(--color-bg);
  padding: 0.125rem 0.5rem;
  border-radius: 100px;
}

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

.pagination-nav .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  margin: 0 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination-nav .page-numbers:hover {
  background: var(--color-bg-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination-nav .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pagination-nav .page-numbers.dots {
  border: none;
  background: none;
}

/* SP対応 */
@media (max-width: 767px) {
  .taxonomy-header {
    padding: 1rem 0;
  }
  
  .taxonomy-breadcrumb {
    font-size: 0.75rem;
  }
  
  .taxonomy-title {
    font-size: 1.375rem;
  }
  
  .taxonomy-description {
    font-size: 0.875rem;
  }
  
  .child-categories {
    padding: 1rem;
  }
  
  .child-categories-title {
    font-size: 0.75rem;
  }
  
  .child-category-item {
    padding: 0.375rem 0.75rem;
  }
  
  .child-category-name {
    font-size: 0.8125rem;
  }
  
  .pagination-nav .page-numbers {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
  }
}

/* ========================================
   Single Article - 記事詳細ページ
   ======================================== */

/* パンくずリスト */
.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border-radius: var(--radius);
}

.article-breadcrumb a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s;
}

.article-breadcrumb a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.article-breadcrumb .breadcrumb-sep {
  color: var(--color-border);
  margin: 0 0.25rem;
}

.article-breadcrumb .breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* メイン記事 */
.article-main {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.article-category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.article-category-badge:hover {
  background: var(--color-primary);
  color: #fff;
}

.article-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin: 0 0 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.article-meta time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.article-meta svg {
  opacity: 0.7;
}

/* サムネイル */
.article-thumbnail {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.article-thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 記事フッター */
.article-footer {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--color-bg-light);
  border-radius: var(--radius);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.article-tags-label {
  font-size: 0.8125rem;
  color: var(--color-muted);
  font-weight: 500;
}

.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-text);
  background: var(--color-bg);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: all 0.2s;
}

.article-tag:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* 関連記事セクション */
.related-articles-section {
  margin-top: 2.5rem;
}

.related-section {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.related-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
}

.related-section-icon {
  font-size: 1.125rem;
}

/* 関連記事リスト */
.related-article-list {
  display: flex;
  flex-direction: column;
}

.related-article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
}

.related-article-item:last-child {
  border-bottom: none;
}

.related-article-item:hover {
  background: var(--color-bg-light);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.related-article-title {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.related-article-item:hover .related-article-title {
  color: var(--color-primary);
}

.related-article-date {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.related-section-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.related-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-link);
  text-decoration: none;
  transition: all 0.2s;
}

.related-more-link:hover {
  color: var(--color-primary);
}

.related-more-link svg {
  transition: transform 0.2s;
}

.related-more-link:hover svg {
  transform: translateX(3px);
}

.related-empty {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
  padding: 1rem 0;
  margin: 0;
}

/* 関連カテゴリ */
.related-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related-category-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.related-category-item:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.related-category-count {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.related-category-item:hover .related-category-count {
  color: var(--color-primary);
}

.sidebar-category-item:hover .sidebar-category-count {
  color: var(--color-primary);
}

/* SP対応 - Single Article */
@media (max-width: 767px) {
  .article-breadcrumb {
    font-size: 0.75rem;
    padding: 0.625rem 0.875rem;
    margin-bottom: 1rem;
  }
  
  .article-breadcrumb .breadcrumb-current {
    max-width: 150px;
  }
  
  .article-main {
    padding: 1.25rem;
  }
  
  .article-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
  
  .article-title {
    font-size: 1.25rem;
  }
  
  .article-meta {
    font-size: 0.8125rem;
  }
  
  .article-thumbnail {
    margin-bottom: 1.5rem;
  }
  
  .article-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
  
  .related-articles-section {
    margin-top: 1.5rem;
  }
  
  .related-section {
    padding: 1.25rem;
  }
  
  .related-section-title {
    font-size: 0.9375rem;
  }
  
  .related-article-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem 0;
  }
  
  .related-article-item:hover {
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .related-article-title {
    font-size: 0.875rem;
  }
}

/* ========================================
   Fixed Page Styles
   ======================================== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
}

.page-thumbnail {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
}

.page-content .content {
  padding: 2rem 0;
}

.page-content .content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

.page-content .content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content .content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.page-content .content ul,
.page-content .content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.page-content .content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.page-content .content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.page-content .content a:hover {
  color: var(--color-primary-dark);
}

.page-content .content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.page-content .content blockquote p:last-child {
  margin-bottom: 0;
}

.page-content .content table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
}

.page-content .content th,
.page-content .content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
}

.page-content .content th {
  background: var(--color-bg-light);
  font-weight: 600;
  text-align: left;
}

@media (max-width: 767.98px) {
  .page-title {
    font-size: 1.5rem;
  }
  
  .page-content .content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
  }
  
  .page-content .content h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
  }
}

/* ========================================
   Download Page Styles
   ======================================== */
.download-page .download-service-name {
  text-align: center;
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

.download-page .download-label {
  font-weight: normal;
}

.download-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.download-description {
  text-align: center;
  color: var(--color-text-light);
}

.download-alert {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 0 auto;
}

.download-alert-warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}

.download-alert-info {
  background: #dbeafe;
  border: 1px solid #3b82f6;
  color: #1e40af;
}

.download-alert p {
  margin-bottom: 0;
}

.download-alert code {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  font-size: 0.8125rem;
}

.download-form .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.download-form .form-group label .required {
  color: #dc3545;
}

.download-form .wpcf7-form-control-wrap {
  display: block;
}

.download-form .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.download-form .form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.download-form .wpcf7-list-item {
  margin: 0;
}

.download-form .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

.download-form .privacy-link {
  font-size: 0.875rem;
  margin-left: 0.5rem;
  color: var(--color-primary);
}

.download-form .wpcf7-submit {
  margin-top: 1.5rem;
}

.download-form .wpcf7-spinner {
  display: block;
  margin: 1rem auto 0;
}

.download-form .wpcf7-response-output {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
}

.download-form .wpcf7-mail-sent-ok {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}

.download-form .wpcf7-validation-errors,
.download-form .wpcf7-acceptance-missing {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.download-form .wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
  .download-page .download-service-name {
    font-size: 1rem;
  }
  
  .download-form-wrapper {
    padding: 0 0.5rem;
  }
}

/* ========================================
   Contact Page Styles
   ======================================== */
.contact-page .contact-service-name {
  text-align: center;
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

.contact-page .contact-label {
  font-weight: normal;
}

.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.contact-description {
  text-align: center;
  color: var(--color-text-light);
}

.contact-alert {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 0 auto;
}

.contact-alert-warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}

.contact-alert-info {
  background: #dbeafe;
  border: 1px solid #3b82f6;
  color: #1e40af;
}

.contact-alert p {
  margin-bottom: 0;
}

.contact-alert code {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  font-size: 0.8125rem;
}

/* form-group内のpタグ調整 */
.contact-form .form-group > p,
.wpcf7-form .form-group > p {
  margin-bottom: 0;
}

/* label後のbrを非表示 */
.contact-form .form-group > p > label + br,
.wpcf7-form .form-group > p > label + br {
  display: none;
}

/* フォームのラベルスタイル */
.contact-form .form-group > p > label,
.wpcf7-form .form-group > p > label {
  display: block !important;
  font-weight: bold !important;
  margin-bottom: 8px !important;
  color: var(--color-text) !important;
}

.contact-form .form-group label .required,
.wpcf7-form .form-group label .required {
  color: #dc3545;
}

.contact-form .form-text,
.wpcf7-form .form-text {
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}

.contact-form .wpcf7-form-control-wrap,
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}

.contact-form .form-control,
.wpcf7-form .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-control:focus,
.wpcf7-form .form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.contact-form textarea.form-control,
.wpcf7-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* チェックボックス・ラジオボタン - 縦並び */
.contact-form .wpcf7-checkbox,
.contact-form .wpcf7-radio,
.wpcf7-form .wpcf7-checkbox,
.wpcf7-form .wpcf7-radio {
  display: flex !important;
  flex-direction: column !important;
  gap: 0;
}

.contact-form .wpcf7-checkbox .wpcf7-list-item,
.contact-form .wpcf7-radio .wpcf7-list-item,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item,
.wpcf7-form .wpcf7-radio .wpcf7-list-item {
  display: block !important;
  margin: 0 !important;
}

.contact-form .wpcf7-list-item label,
.wpcf7-form .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
  padding: 0.375rem 0;
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.contact-form .wpcf7-list-item label:hover,
.wpcf7-form .wpcf7-list-item label:hover {
  background: var(--color-bg-light);
}

.contact-form .wpcf7-list-item input[type="checkbox"],
.contact-form .wpcf7-list-item input[type="radio"],
.wpcf7-form .wpcf7-list-item input[type="checkbox"],
.wpcf7-form .wpcf7-list-item input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--color-primary);
}

/* 同意チェックボックス */
.contact-form .wpcf7-acceptance label,
.wpcf7-form .wpcf7-acceptance label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

.contact-form .privacy-link,
.wpcf7-form .privacy-link {
  font-size: 0.875rem;
  margin-left: 0.5rem;
  color: var(--color-primary);
}

.contact-form .wpcf7-submit,
.wpcf7-form .wpcf7-submit {
  margin-top: 1.5rem;
}

.contact-form .wpcf7-spinner,
.wpcf7-form .wpcf7-spinner {
  display: block;
  margin: 1rem auto 0;
}

.contact-form .wpcf7-response-output,
.wpcf7-form .wpcf7-response-output {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
}

.contact-form .wpcf7-mail-sent-ok,
.wpcf7-form .wpcf7-mail-sent-ok {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}

.contact-form .wpcf7-validation-errors,
.contact-form .wpcf7-acceptance-missing,
.wpcf7-form .wpcf7-validation-errors,
.wpcf7-form .wpcf7-acceptance-missing {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.contact-form .wpcf7-not-valid-tip,
.wpcf7-form .wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
  .contact-page .contact-service-name {
    font-size: 1rem;
  }
  
  .contact-form-wrapper {
    padding: 0 0.5rem;
  }
}
