/* =========================================================
   Stアドバンス株式会社
   Bootstrap 5.3.8 / Custom CSS
========================================================= */


/* =========================================================
   Base
========================================================= */

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

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


/* =========================================================
   Logo / Navigation
========================================================= */

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

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

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

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

/* ========================================
   業務案内 Dropdown
======================================== */

/* PC：マウスオーバーで表示 */
@media (min-width: 992px) {

  .navbar .dropdown {
    position: relative;
  }

  .navbar .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);

    margin-top: 0;
    padding: 8px 0;

    min-width: 220px;
    border: 0;
    border-radius: 0;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);

    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .navbar .dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .navbar .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
  }

  .navbar .dropdown-item:hover {
    background-color: #f3f6fb;
    color: var(--site-primary);
  }
}

/* スマホ */
@media (max-width: 991.98px) {

  .navbar .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin-top: 0;
    border: 0;
    box-shadow: none;
    background: #f8f9fa;
  }

  .navbar .dropdown-item {
    padding: 10px 20px 10px 35px;
    font-size: 14px;
  }

}

/* =========================================================
   Common
========================================================= */

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

.section-title h2,
.section-heading {
  margin-bottom: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}


/* =========================================================
   Cards
========================================================= */

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

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

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

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

.company-card h3 {
  line-height: 1.4;
}


/* =========================================================
   Hero Slider
========================================================= */

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slider .carousel-item {
  height: 650px;
}

.hero-slide-image {
  width: 100%;
  height: 650px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .38);
}

.hero-slider .carousel-caption {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 10%;
  width: 80%;
  max-width: 700px;
  text-align: left;
  transform: translateY(-50%);
}

.hero-subtitle {
  margin-bottom: 15px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
}

.hero-slider h1 {
  margin-bottom: 25px;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.25;
}

.hero-slider .carousel-caption p:not(.hero-subtitle) {
  font-size: 18px;
  line-height: 1.8;
}


/* =========================================================
   Strength / 選ばれる理由
========================================================= */

.strength-card {
  padding: 40px 30px;
  background: #fff;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.strength-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

.strength-number {
  margin-bottom: 20px;
  color: var(--site-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

.strength-card h3 {
  margin-bottom: 15px;
  font-size: 21px;
  font-weight: 700;
}

.strength-card p {
  margin-bottom: 0;
  color: var(--site-muted);
  line-height: 1.9;
}


/* =========================================================
   Philosophy / 経営理念
========================================================= */

.philosophy-section {
  background: #fff;
}

.philosophy-section h2 {
  font-size: clamp(30px, 4vw, 45px);
  font-weight: 700;
}


/* =========================================================
   Contact Section
========================================================= */

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


/* =========================================================
   Footer
========================================================= */

.footer-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

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

/* スマホ */
@media (max-width: 767.98px) {
  .footer-nav {
    justify-content: left;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}


/* =========================================================
   Company Page
========================================================= */

.page-header {
  border-bottom: 1px solid var(--site-border);
}


/* ---------------------------------------------------------
   Company Table
--------------------------------------------------------- */

.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 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;
  color: #f8f9fa;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}


/* 年月の背景 */

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


/* 中央の丸 */

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


/* ---------------------------------------------------------
   履歴内容
--------------------------------------------------------- */

.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: var(--site-muted);
  line-height: 1.8;
}


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

.client-list {
  background: #fff;
  border-top: 3px solid var(--site-primary);
  box-shadow: 0 5px 20px rgba(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: var(--site-primary);
  font-size: 14px;
  font-weight: 700;
}

.client-name {
  flex: 1;
  padding: 20px 30px;
  color: var(--site-text);
  font-weight: 600;
}


/* Hover */

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

.client-item:hover .client-name {
  color: var(--site-primary);
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 991.98px) {

  .navbar .nav-item {
    margin-top: .25rem;
  }

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

}


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

@media (max-width: 767.98px) {

  /* Hero */

  .hero-slider .carousel-item,
  .hero-slide-image {
    height: 600px;
  }

  .hero-slider .carousel-caption {
    left: 8%;
    width: 84%;
  }

  .hero-slider h1 {
    font-size: 38px;
  }

  .section-title h2,
  .section-heading {
    font-size: 24px;
  }

  .hero-slider .carousel-caption p:not(.hero-subtitle) {
    font-size: 15px;
  }


  /* Company Table */

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


  /* History Timeline */

  .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;
    margin-bottom: 12px;
    padding: 0;
    color: var(--site-primary);
    text-align: left;
  }

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

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

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

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


  /* Clients */

  .client-item {
    display: block;
  }

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

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


  /* Cards */

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

}


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

@media (max-width: 575.98px) {

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

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

}

/* =========================================================
   Site map
========================================================= */
.service-detail-card h3 a {
  color: var(--site-text);
  text-decoration: none;
}

.service-detail-card h3 a:hover {
  color: var(--site-primary);
}