/* 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;
}

/* ========================
   Page Hero
   ======================== */
.page-hero {
  position: relative;
  height: 40vh;
  min-height: 280px;
  max-height: 400px;
  background-image: url('../img/company/hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(13,56,124,0.55) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 0.2em;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  font-family: var(--font-serif);
}

.page-subtitle {
  font-size: 1.3em;
  font-weight: 400;
  opacity: 0.9;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

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