/**
 * DX・AI支援サービスページ専用スタイル
 * Mottu Design WordPress Theme
 */

:root {
  --accent: #0099cc;
  --accent-dark: #0077b3;
  --text-color: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --white: #ffffff;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
}

/* ========================================
   DX Hero Section
   ======================================== */
.dx-hero {
  background-color: var(--white);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.dx-hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

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

.dx-hero__tag {
  display: inline-block;
  background-color: var(--bg-light);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.dx-hero__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.dx-hero__title-accent {
  display: none;
}

.dx-hero__subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.dx-hero__description {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

/* Pipeline Diagram */
.dx-hero__pipeline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--bg-light);
  border-radius: 12px;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.pipeline-step__icon {
  width: 64px;
  height: 64px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 153, 204, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pipeline-step:hover .pipeline-step__icon {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 153, 204, 0.2);
}

.pipeline-step--highlight .pipeline-step__icon {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 153, 204, 0.3);
}

.pipeline-step__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
}

.pipeline-arrow {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Hero CTA */
.dx-hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Right - Mini Results */
.dx-hero__right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.dx-hero__results-badge {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 4px 16px rgba(0, 153, 204, 0.3);
  letter-spacing: 0.05em;
}

.dx-hero__mini-results {
  position: relative;
  width: 100%;
  height: 300px;
}

.mini-result-card {
  position: absolute;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 24px rgba(0, 153, 204, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mini-result-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 153, 204, 0.25);
}

.mini-result-card--1 {
  top: 20px;
  left: 10%;
  width: 180px;
  transform: rotate(-5deg);
  z-index: 3;
  animation: float-mini-1 5s ease-in-out infinite;
}

.mini-result-card--2 {
  top: 80px;
  right: 10%;
  width: 180px;
  transform: rotate(3deg);
  z-index: 2;
  animation: float-mini-2 6s ease-in-out infinite;
}

.mini-result-card--3 {
  bottom: 40px;
  left: 30%;
  width: 180px;
  transform: rotate(-2deg);
  z-index: 1;
  animation: float-mini-3 7s ease-in-out infinite;
}

@keyframes float-mini-1 {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-12px) rotate(-5deg);
  }
}

@keyframes float-mini-2 {
  0%, 100% {
    transform: translateY(0) rotate(3deg);
  }
  50% {
    transform: translateY(-16px) rotate(3deg);
  }
}

@keyframes float-mini-3 {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

.mini-result-card__metric {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.mini-result-card__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
}

/* ========================================
   DX Differentiators Section
   ======================================== */
.dx-differentiators {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-light);
}

.dx-differentiators__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.diff-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: var(--spacing-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 153, 204, 0.15);
}

.diff-card__tag {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.diff-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.diff-card__description {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========================================
   DX Mini Cases Section
   ======================================== */
.dx-mini-cases {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.mini-cases-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.mini-case {
  background-color: var(--bg-light);
  border-radius: 12px;
  padding: var(--spacing-md);
  border-left: 4px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mini-case:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 153, 204, 0.1);
}

.mini-case__header {
  margin-bottom: var(--spacing-sm);
}

.mini-case__tag {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.mini-case__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.4;
}

.mini-case__flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-sm) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.mini-case__before,
.mini-case__after {
  flex: 1;
}

.mini-case__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.mini-case__before .mini-case__label {
  color: #dc3545;
}

.mini-case__after .mini-case__label {
  color: #28a745;
}

.mini-case__flow p {
  font-size: 0.9375rem;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
}

.mini-case__arrow {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.mini-case__metrics {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.mini-case__metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mini-case__metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.mini-case__metric-label {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ========================================
   DX Process Section
   ======================================== */
.dx-process {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-light);
}

.dx-process-timeline {
  margin-top: var(--spacing-lg);
  position: relative;
}

.dx-process-timeline::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 40px;
  bottom: 40px;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--accent-dark) 100%);
}

.dx-process-step {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.dx-process-step:last-child {
  margin-bottom: 0;
}

.dx-process-step__number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 153, 204, 0.3);
  position: relative;
  z-index: 2;
}

.dx-process-step__content {
  background-color: var(--white);
  border-radius: 12px;
  padding: var(--spacing-md);
  flex: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dx-process-step__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.dx-process-step__description {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.dx-process-step__deliverables {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ========================================
   DX Pricing Section
   ======================================== */
.dx-pricing {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.dx-pricing-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background-color: var(--bg-light);
  border-radius: 12px;
}

.pricing-flow-step {
  text-align: center;
  flex: 1;
  max-width: 200px;
}

.pricing-flow-step__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.pricing-flow-step__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-color);
}

.pricing-flow-arrow {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.dx-pricing-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.dx-pricing-plan {
  background-color: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: var(--spacing-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.dx-pricing-plan:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 153, 204, 0.15);
}

.dx-pricing-plan--featured {
  border-color: var(--accent);
  border-width: 3px;
  box-shadow: 0 4px 16px rgba(0, 153, 204, 0.2);
}

.dx-pricing-plan__badge {
  position: absolute;
  top: -12px;
  right: var(--spacing-md);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.dx-pricing-plan__header {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--bg-light);
}

.dx-pricing-plan__name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.dx-pricing-plan__subtitle {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.5;
}

.dx-pricing-plan__price {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.dx-pricing-plan__amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  display: block;
}

.dx-pricing-plan__period {
  font-size: 1rem;
  color: var(--text-light);
}

.dx-pricing-plan__included h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
}

.dx-pricing-plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-md) 0;
}

.dx-pricing-plan__features li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-color);
  line-height: 1.6;
}

.dx-pricing-plan__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.125rem;
}

.dx-pricing-plan__cta {
  margin-top: var(--spacing-md);
}

.dx-pricing-note {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background-color: var(--bg-light);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
}

.dx-pricing-note p {
  margin: 0.5rem 0;
}

/* ========================================
   DX FAQ Section
   ======================================== */
.dx-faq {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-light);
}

/* ========================================
   DX CTA Section
   ======================================== */
.dx-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.dx-cta__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

.dx-cta__description {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  opacity: 0.95;
}

.dx-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dx-cta .c-btn {
  background-color: var(--white);
  color: var(--accent);
}

.dx-cta .c-btn:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Floating CTA
   ======================================== */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 6rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.scrolled .floating-cta {
  opacity: 1;
  visibility: visible;
}

.floating-cta__button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 153, 204, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-cta__button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 153, 204, 0.6);
}

.floating-cta__button svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   Common Elements
   ======================================== */
.section__header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section__title {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
}

.section__title-accent {
  display: none;
}

.section__description {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.7;
}

.deliverable-tag {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 0.375rem 0.875rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: 12px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item__question,
.faq-item__answer {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.faq-item__question {
  margin-bottom: var(--spacing-sm);
}

.faq-item__icon {
  width: 32px;
  height: 32px;
  background-color: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.faq-item__question h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.faq-item__answer .faq-item__icon {
  background-color: var(--bg-light);
  color: var(--accent);
}

.faq-item__answer p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .dx-hero__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .dx-hero__title {
    font-size: 2rem;
  }

  .dx-differentiators__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dx-pricing-plans {
    grid-template-columns: 1fr;
  }

  .dx-hero__mini-results {
    height: 250px;
  }

  .mini-result-card {
    width: 160px !important;
    padding: 1rem 1.5rem;
  }

  .mini-result-card__metric {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .dx-hero__pipeline {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pipeline-step {
    flex: 0 0 auto;
  }

  .pipeline-arrow {
    display: none;
  }

  .dx-differentiators__grid {
    grid-template-columns: 1fr;
  }

  .dx-hero__title {
    font-size: 1.75rem;
  }

  .dx-hero__title-accent {
    height: 50px;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .section__title-accent {
    height: 35px;
  }

  .mini-case__flow {
    flex-direction: column;
    gap: 0.75rem;
  }

  .mini-case__arrow {
    transform: rotate(90deg);
  }

  .dx-process-timeline::before {
    left: 30px;
  }

  .dx-process-step {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .dx-process-step__number {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }

  .dx-pricing-flow {
    flex-direction: column;
  }

  .pricing-flow-arrow {
    transform: rotate(90deg);
  }

  .floating-cta {
    right: 1rem;
    bottom: 1rem;
  }

  .floating-cta__button {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
  }

  .dx-hero__mini-results {
    height: 200px;
  }

  .mini-result-card {
    width: 140px !important;
    padding: 0.875rem 1.25rem;
  }

  .mini-result-card__metric {
    font-size: 1.75rem;
  }

  .mini-result-card__label {
    font-size: 0.75rem;
  }
}
