/* ========================================
   買取サービス詳細ページ専用CSS
======================================== */

/* ========================================
   Page Hero
======================================== */
.services-hero {
  padding: 150px 0 80px;
  background: linear-gradient(135deg, #2a4d7a 0%, #3a6ea5 100%);
  text-align: center;
  margin-top: 80px;
}

.services-hero h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 20px;
  font-family: var(--font-serif);
}

.services-hero p {
  font-size: 1.125rem;
  color: #dfeefd;
}

/* ========================================
   Service Tabs
======================================== */
.services-tabs-section {
  padding: var(--space-10) 0;
  background: white;
}

.services-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.service-tab {
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  background: white;
  border: 3px solid var(--color-gray);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.service-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-tab.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ========================================
   Service Detail
======================================== */
.service-detail {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.service-detail.active {
  display: block;
}

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

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.service-detail-content h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  font-family: var(--font-serif);
}

.service-lead {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  line-height: 1.8;
}

/* Feature Badges */
.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--color-light-blue);
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  font-weight: 600;
  color: var(--color-primary);
}

.feature-badge svg {
  color: var(--color-accent);
}

/* Service Flow */
.service-flow {
  margin-bottom: var(--space-6);
}

.service-flow h3 {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-gray);
}

.flow-steps-vertical {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.flow-step-vertical {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  position: relative;
}

.flow-step-vertical:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 60px;
  width: 2px;
  height: calc(100% + 32px);
  background: var(--color-accent);
}

.step-number {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, #d4a822 100%);
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(245, 205, 53, 0.3);
  z-index: 1;
}

.step-content h4 {
  font-size: 1.25rem;
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}

.step-content p {
  color: var(--color-text);
  line-height: 1.8;
}

/* Service Notes */
.service-notes {
  margin-bottom: var(--space-6);
}

.service-notes h3 {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-gray);
}

.service-notes ul {
  list-style: none;
  padding: 0;
}

.service-notes li {
  padding: var(--space-2) 0;
  padding-left: var(--space-4);
  position: relative;
  color: var(--color-text);
  line-height: 1.8;
}

.service-notes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 900;
  font-size: 1.25rem;
}

/* Service CTA */
.service-cta {
  text-align: center;
  margin-top: var(--space-6);
}

/* Service Image */
.service-detail-image {
  position: sticky;
  top: 120px;
}

.service-detail-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-large);
}

/* ========================================
   Schedule (催事買取専用)
======================================== */
.service-schedule {
  margin-bottom: var(--space-6);
}

.service-schedule h3 {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-gray);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.schedule-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-light-blue);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
  transition: var(--transition);
}

.schedule-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.schedule-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: var(--space-2);
  background: white;
  border-radius: var(--radius);
  border: 2px solid var(--color-primary);
}

.schedule-date .month {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 600;
}

.schedule-date .day {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-primary);
  font-family: var(--font-serif);
}

.schedule-info h4 {
  font-size: 1.125rem;
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}

.schedule-info p {
  color: var(--color-text);
  font-size: 0.9375rem;
}

/* ========================================
   Responsive - Tablet
======================================== */
@media (max-width: 1024px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-image {
    position: relative;
    top: 0;
    order: -1;
  }

  .services-hero h1 {
    font-size: 2.5rem;
  }
}

/* ========================================
   Responsive - Mobile
======================================== */
@media (max-width: 768px) {
  .services-hero {
    padding: 120px 0 60px;
    margin-top:60px;
  }

  .services-hero h1 {
    font-size: 2rem;
  }

  .services-tabs {
    gap: var(--space-1);
  }

  .service-tab {
    padding: var(--space-2) var(--space-3);
    font-size: 1rem;
  }

  .service-detail-content h2 {
    font-size: 1.75rem;
  }

  .service-lead {
    font-size: 1rem;
  }

  .feature-badge {
    font-size: 0.875rem;
    padding: var(--space-1) var(--space-2);
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .flow-step-vertical:not(:last-child)::after {
    left: 25px;
    top: 50px;
    height: calc(100% + 32px);
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .schedule-date {
    flex-direction: row;
    gap: var(--space-2);
    min-width: auto;
  }

  .schedule-date .day {
    font-size: 1.5rem;
  }
}
