:root {
  --site-primary: #3461ac;
  --site-primary-dark: #2a4e8a;
  --site-text: #333;
}

body {
  color: var(--site-text);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.8;
}

.logo {
  width: 80px;
  height: auto;
}

.logo-footer {
  filter: brightness(0) invert(1);
}

.navbar .nav-link {
  font-weight: 600;
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar .nav-link:hover {
  color: var(--site-primary);
}

.hero {
  background: linear-gradient(135deg, #f5f8fc 0%, #ffffff 100%);
}

.min-vh-50 {
  min-height: 50vh;
}

.hero h1 {
  letter-spacing: .02em;
}

.hero-image img,
.company-image img {
  width: 100%;
  object-fit: cover;
}

.section-padding {
  padding: 6rem 0;
}

.section-title h2,
.section-heading {
  font-weight: 700;
}

.service-card {
  padding: 2rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 2rem rgba(0,0,0,.08);
}

.service-number {
  color: var(--site-primary);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.35rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.news-list .list-group-item {
  border-color: #e5e7eb;
}

.contact-section {
  color: #fff;
  background: var(--site-primary);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .navbar .nav-item {
    margin-top: .25rem;
  }

  .section-padding {
    padding: 4rem 0;
  }
}

@media (max-width: 575.98px) {
  .logo {
    width: 80px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .service-card {
    padding: 1.5rem;
  }
}

/* Company */

.page-header {
  border-bottom: 1px solid #e5e7eb;
}

.company-table {
  margin-bottom: 0;
  border: 1px solid #dee2e6;
}

.company-table th,
.company-table td {
  padding: 1.25rem 1.5rem;
  vertical-align: middle;
  border-color: #dee2e6;
}

.company-table th {
  width: 30%;
  background: #f8f9fa;
  font-weight: 700;
}

.company-card {
  padding: 2rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.company-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .08);
}

.company-card-number {
  color: var(--site-primary);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.company-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding-bottom: .5rem;
    border-bottom: 0;
  }

  .company-table td {
    padding-top: .5rem;
  }
}


/* =========================================
   Company History Timeline
========================================= */

.history-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

/* 中央の縦線 */
.history-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #dee2e6;
  transform: translateX(-50%);
}

.history-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 130px;
  margin-bottom: 20px;
}

/* 年月 */
.history-date {
  position: relative;
  width: 50%;
  padding-right: 60px;
  text-align: right;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.history-date::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 16px;
  height: 16px;
  background: #0d6efd;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #0d6efd;
  transform: translateY(-50%);
}

.history-date {
  color: #f8f9fa;
}

.history-date::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 25px;
  width: 150px;
  height: 38px;
  background: #858686;
  border-radius: 20px;
  transform: translateY(-50%);
  z-index: -1;
}

/* 右側コンテンツ */
.history-content {
  width: 50%;
  padding-left: 60px;
}

.history-content h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
}

.history-content p {
  margin: 0;
  color: #666;
  line-height: 1.8;
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 767px) {

  .history-timeline {
    padding-left: 25px;
  }

  .history-timeline::before {
    left: 8px;
    transform: none;
  }

  .history-item {
    display: block;
    min-height: auto;
    margin-bottom: 35px;
    padding-left: 35px;
  }

  .history-date {
    width: auto;
    padding: 0;
    margin-bottom: 12px;
    text-align: left;
    color: #0d6efd;
  }

  .history-date::before {
    display: none;
  }

  .history-date::after {
    top: 50%;
    right: auto;
    left: -35px;
    width: 14px;
    height: 14px;
    background: #0d6efd;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #0d6efd;
  }

  .history-content {
    width: auto;
    padding-left: 0;
  }

  .history-content h3 {
    font-size: 17px;
  }

}

/* =========================================
   Major Domestic Clients
========================================= */

.client-list {
  background: #fff;
  border-top: 3px solid #0d6efd;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.client-item {
  display: flex;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid #e9ecef;
}

.client-item:last-child {
  border-bottom: none;
}

.client-category {
  width: 180px;
  padding: 20px 25px;
  background: #f8f9fa;
  color: #0d6efd;
  font-size: 14px;
  font-weight: 700;
}

.client-name {
  flex: 1;
  padding: 20px 30px;
  color: #333;
  font-weight: 600;
}


/* Hover */
.client-item:hover .client-category {
  background: #e9f2ff;
}

.client-item:hover .client-name {
  color: #0d6efd;
}


/* Mobile */
@media (max-width: 767px) {

  .client-item {
    display: block;
  }

  .client-category {
    width: 100%;
    padding: 10px 18px;
    font-size: 13px;
  }

  .client-name {
    padding: 15px 18px 18px;
  }

}