/* company-profile.css */

body.company-profile-bg {
  background: linear-gradient(135deg, #f5fafd 0%, #e3f0fa 100%);
  font-family: 'M PLUS 1p', 'Roboto', 'Arial', 'sans-serif';
  color: #222;
}

.company-hero {
  width: 100%;
  min-height: 340px;
  background-image: linear-gradient(120deg, #00000027 60%, #e9e9e99c 100%), url('../img/company/sei-00.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 48px;
  padding: 48px 0 36px 0;
  box-shadow: 0 8px 40px #b3d4fc33;
  position: relative;
  overflow: hidden;
}

.company-hero::before {
  content: none;
}

.company-hero-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding-left: 4vw;
  z-index: 2;
  position: relative;
}
.company-hero-title {
  font-size: 2.6em;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 2px 2px 8px #1462b1cc;
}
.company-hero-catch {
  font-size: 1.3em;
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  opacity: 0.95;
}
.company-hero-shaze {
  flex: 0 0 220px;
  max-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.company-hero-shaze img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 4px 32px #0002;
  background: #fff;
  padding: 8px;
}
.company-hero-shaze-caption {
  text-align: center;
  color: #fff;
  font-size: 1.1em;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 8px #1462b1cc;
}

.company-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px #e3f0fa;
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 40px 32px 32px 32px;
  position: relative;
}
.company-section:not(:first-of-type) {
  margin-top: 32px;
}
.company-section-title {
  font-size: 1.7em;
  font-weight: 800;
  color: #1462b1;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  position: relative;
}
.company-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #1462b1);
  border-radius: 2px;
  margin-top: 8px;
}
.company-section-text {
  font-size: 1.13em;
  line-height: 1.9;
  color: #222;
  margin-bottom: 12px;
}

.company-profile-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fafdff;
  border-radius: 12px;
  box-shadow: 0 2px 12px #e3f0fa;
  overflow: hidden;
  margin-bottom: 24px;
}
.company-profile-table th, .company-profile-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e3f0fa;
  text-align: left;
  font-size: 1.05em;
}
.company-profile-table th {
  background: #f5fafd;
  color: #1462b1;
  font-weight: 700;
  width: 160px;
  letter-spacing: 0.05em;
}
.company-profile-table tr:last-child th,
.company-profile-table tr:last-child td {
  border-bottom: none;
}

.company-profile-map-flex {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.company-profile-map {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 600px;
}
.company-profile-map iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 12px;
}

/* --- 沿革タイムライン --- */
.company-history-section {
  background: #fafdff;
  box-shadow: 0 4px 32px #e3f0fa;
  border-radius: 18px;
  margin-top: 32px;
  padding: 40px 32px 32px 32px;
}
.company-history-timeline {
  position: relative;
  margin: 0 auto;
  max-width: 700px;
  padding-left: 16px;
}
.company-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.company-history-list::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #3498db 0%, #1462b1 100%);
  border-radius: 2px;
  opacity: 0.18;
}
.company-history-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 22px;
  position: relative;
  padding-left: 36px;
}
.company-history-item:last-child {
  margin-bottom: 0;
}
.company-history-date {
  min-width: 90px;
  font-weight: 700;
  color: #1462b1;
  font-size: 1.08em;
  margin-right: 18px;
  position: relative;
  z-index: 2;
}
.company-history-content {
  font-size: 1.08em;
  color: #222;
  background: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  box-shadow: 0 2px 8px #e3f0fa;
  position: relative;
  z-index: 2;
}
.company-history-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 10px;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 3px solid #3498db;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 2px 8px #3498db22;
}

.history-hidden {
  display: none;
}
.history-toggle-btn {
  display: block;
  margin: 18px auto 0 auto;
  padding: 8px 28px;
  background: linear-gradient(90deg, #3498db, #1462b1);
  color: #fff;
  font-size: 1.08em;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  box-shadow: 0 2px 8px #3498db22;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.history-toggle-btn:hover {
  background: linear-gradient(90deg, #1462b1, #3498db);
  box-shadow: 0 4px 16px #3498db33;
}

@media (max-width: 900px) {
  .company-hero {
    flex-direction: column;
    gap: 18px;
    min-height: 220px;
    padding: 32px 0 24px 0;
  }
  .company-hero-shaze img {
    height: 180px;
  }
  .company-section {
    padding: 24px 8px 18px 8px;
  }
  .company-profile-map-flex {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}
@media (max-width: 600px) {
  .company-hero-title {
    font-size: 1.5em;
  }
  .company-hero-shaze img {
    height: 100px;
  }
  .company-section-title {
    font-size: 1.1em;
  }
  .company-section {
    margin: 18px auto 0 auto;
    padding: 12px 2vw 10px 2vw;
  }
  .company-profile-map iframe {
    height: 180px;
  }
  .company-history-section {
    padding: 18px 4px 12px 4px;
  }
  .company-history-timeline {
    padding-left: 0;
  }
  .company-history-date {
    min-width: 70px;
    font-size: 0.98em;
  }
  .company-history-content {
    font-size: 0.98em;
    padding: 4px 8px;
  }
}

/* シャープな角丸 */
.company-section, .company-profile-table, .company-profile-map, .company-hero-shaze img, .company-hero-shaze, .company-hero {
  border-radius: 4px !important;
} 