/* Business Page Specific Styles */

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

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

.overview-text {
  flex: 1;
}

.overview-text p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.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);
}

.btn-more {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 10px;
}

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

.overview-cta {
  margin-top: 30px;
}

/* Business Services Section */
.business-services {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.service-item {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 40px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-header {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.service-icon {
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
}

.service-content {
  padding: 30px;
  display: flex;
  gap: 30px;
}

.service-text {
  flex: 6;
}

.service-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #555;
}

.service-image {
  flex: 4;
  overflow: hidden;
  border-radius: 8px;
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  margin-top: 15px;
  transition: color 0.3s;
}

.service-link:hover {
  color: var(--accent);
}
.service-link i {
  margin-left: 8px;
  transition: transform 0.3s;
}

.service-link:hover i {
  transform: translateX(5px);
}
.service-link:after {
  content: '';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-left: 8px;
  transition: transform 0.3s;
}

.service-link:hover:after {
  transform: translateX(5px);
}

/* Advanced Technology Section */
.advanced-tech {
  padding: 80px 0;
  background: linear-gradient(to bottom, #f8f9fa, white);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.tech-item {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tech-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.tech-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 36px;
}

.tech-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.tech-item p {
  color: #666;
  line-height: 1.6;
}

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

.materials-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.materials-text {
  flex: 1;
}

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

.materials-list {
  list-style: none;
  margin: 25px 0;
}

.materials-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-size: 18px;
  color: #333;
}

.materials-list li i {
  color: var(--accent);
  margin-right: 10px;
  font-size: 16px;
}

.materials-image {
  flex: 1;
}

.materials-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.material-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

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

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

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

.case-study-slider {
  margin-top: 50px;
  position: relative;
  display: flex;
  overflow: hidden;
}

.case-study-item {
  flex: 0 0 100%;
  padding: 0 15px;
  transition: transform 0.5s ease;
}

.case-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

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

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

.case-content {
  text-align: center;
  padding: 15px;
}

.case-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.case-content p {
  color: #666;
  margin-bottom: 15px;
}

.case-study-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.prev-btn, .next-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  transition: background-color 0.3s, transform 0.3s;
}

.prev-btn:hover, .next-btn:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.case-dots {
  display: flex;
  margin: 0 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--primary);
}

/* 加工事例リスト（ビジネスページ用）*/
.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-item .case-image {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  height: 200px;
  margin-bottom: 0;
}

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

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

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

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

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

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

.case-more .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;
}

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

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

.case-more .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;
}

.img-zoom {
  transition: transform 0.5s ease;
}

.img-zoom:hover {
  transform: scale(1.1);
}

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

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .overview-content,
  .service-content,
  .materials-content {
    flex-direction: column;
  }
  
  .service-header h3 {
    font-size: 20px;
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cases-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .overview-text p,
  .service-text p {
    font-size: 16px;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .materials-gallery {
    grid-template-columns: 1fr;
  }
  
  .service-content {
    flex-direction: column-reverse;
  }
  
  .service-image {
    margin-bottom: 20px;
  }
  
  .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;
  }
}

/* 業務内容とサービスアイテムの間隔調整 */
.business-services .section-title {
  margin-bottom: 50px; /* 元の40pxから50pxに増加 */
}

/* AOSアニメーションを考慮した調整 */
[data-aos="fade-up"] {
  transform: translate3d(0, 20px, 0); /* AOSのデフォルト値がある場合に備えて */
}

/* サービスアイテム間の間隔調整 */
.service-item {
  margin-top: 30px; /* 上部に余白を追加 */
  margin-bottom: 60px; /* 下部の余白を増加（元の40pxから60pxに） */
}

.service-item:first-of-type {
  margin-top: 0; /* 最初のアイテムは上部の余白をなしに */
}

.service-item:last-of-type {
  margin-bottom: 0; /* 最後のアイテムは下部の余白をなしに */
}