/* Processing Page Specific Styles */

/* Processing Overview Section */
.processing-overview {
  padding: 80px 0;
  background-color: white;
}

.overview-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: row-reverse;
}

.overview-text {
  flex: 1;
}

.overview-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
}

.overview-image {
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  position: relative;
}

.overview-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.overview-image:hover img {
  transform: scale(1.05);
}

/* Specification Section */
.specifications {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.specifications .section-title {
  position: relative;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 40px;
  text-align: left;
  border-left: 5px solid var(--accent);
  padding-left: 15px;
}

.spec-table {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.spec-row {
  display: flex;
  border-bottom: 1px solid #eee;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  width: 150px;
  padding: 20px;
  background-color: var(--primary);
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-value {
  flex: 1;
  padding: 20px;
}

.spec-value ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-value li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #555;
}

.spec-value li:last-child {
  margin-bottom: 0;
}

/* Case Studies Section */
.case-studies {
  padding: 80px 0;
  background-color: white;
}

.case-studies .section-title {
  position: relative;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 40px;
  text-align: left;
  border-left: 5px solid var(--accent);
  padding-left: 15px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* 修正した加工事例セクションのスタイル */
.case-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.case-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.case-image {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  height: 200px;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.case-item:hover .case-image img {
  transform: scale(1.1);
}

.case-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(0,0,0,0.7);
  color: white;
  font-size: 14px;
  text-align: center;
}

.case-details {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.case-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.case-type {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 15px;
}

.case-description {
  color: #666;
  font-size: 14px;
}

.case-notes {
  text-align: center;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 10px;
  margin-top: 20px;
}

.case-notes p {
  margin-bottom: 10px;
  color: #555;
}

.case-notes p:last-child {
  margin-bottom: 0;
}

.case-more {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-more:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.btn-more i {
  margin-left: 8px;
  transition: transform 0.3s;
}

.btn-more:hover i {
  transform: translateX(5px);
}

.no-cases {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  background-color: #f5f5f5;
  border-radius: 8px;
  color: #666;
}

/* Animation Classes */
.fade-in-image {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

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

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .overview-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .overview-image {
    width: 100%;
  }
  
  .spec-row {
    flex-direction: column;
  }
  
  .spec-label {
    width: 100%;
    padding: 15px;
  }
  
  .cases-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .processing-overview,
  .specifications,
  .case-studies {
    padding: 60px 0;
  }
  
  .specifications .section-title,
  .case-studies .section-title {
    font-size: 24px;
  }
  
  .spec-value li {
    font-size: 14px;
  }
  
  .cases-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
}

@media screen and (max-width: 576px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .case-notes {
    padding: 20px;
  }
}