/* Company Page Specific Styles */

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

.overview-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

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

/* Company Information Section */
.company-info {
  padding: 80px 0;
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ① ラッパーごと中央寄せする */
.company-info .content-wrapper{
  max-width:1100px;      /* 他セクションと合わせる */
  margin:0 auto;         /* ← これだけで中央に来る */
}
.info-table {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.info-row {
  display: flex;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s;
}

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

.info-row:hover {
  background-color: #f9f9f9;
}

.info-label {
  width: 30%;
  padding: 20px 30px;
  background-color: #f5f5f5;
  font-weight: 600;
  color: var(--primary);
}

.info-value {
  width: 70%;
  padding: 20px 30px;
  color: #555;
}

/* Company History Section */
.company-history {
  padding: 80px 0;
  background-color: white;
}

.history-timeline {
  margin-top: 50px;
  position: relative;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 30%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary);
  margin-left: -1px;
}

.history-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  position: relative;
}

.history-year {
  width: 30%;
  padding-right: 30px;
  text-align: right;
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
}

.history-content {
  width: 70%;
  position: relative;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px 25px;
  margin-left: 30px;
}

.history-content p {
  margin: 0;
  color: #555;
}

.history-item::before {
  content: '';
  position: absolute;
  left: 30%;
  width: 12px;
  height: 12px;
  background-color: white;
  border: 3px solid var(--primary);
  border-radius: 50%;
  margin-left: -6px;
  top: 5px;
}

/* Map Section */
.map-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.map-container {
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  height: 450px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 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;
  }
  
  .info-row {
    flex-direction: column;
  }
  
  .info-label,
  .info-value {
    width: 100%;
  }
  
  .info-label {
    border-bottom: 1px solid #eee;
  }
  
  .history-timeline::before {
    left: 0;
    margin-left: 11px;
  }
  
  .history-item {
    flex-direction: column;
  }
  
  .history-year {
    width: 100%;
    text-align: left;
    padding-right: 0;
    margin-bottom: 10px;
  }
  
  .history-content {
    width: 100%;
    margin-left: 25px;
  }
  
  .history-item::before {
    left: 0;
  }
}

@media screen and (max-width: 768px) {
  .overview-text p {
    font-size: 16px;
  }
  
  .map-container {
    height: 300px;
  }
  
  .info-label,
  .info-value {
    padding: 15px 20px;
  }
}

@media screen and (max-width: 576px) {
  .history-content {
    margin-left: 0;
  }
  
  .history-timeline::before {
    display: none;
  }
  
  .history-item::before {
    display: none;
  }
}