/* 事业内容 */
.card.service-card {
  min-height: 300px; /* 增加卡片整体高度，图片更大 */
  background-size: 120%; /* 背景图默认放大一点 */
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-size 0.3s ease;
  color: white;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.card.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* 黑色半透明遮罩 */
  z-index: 1;
  transition: background-color 0.3s ease;
}

.card.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  background-size: 130%; /* 鼠标悬停时图片进一步放大 */
}

.card.service-card:hover::before {
  background-color: rgba(0, 0, 0, 0.3); /* 鼠标放上去减少遮罩 */
}

.card.service-card .card-body {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem; /* 增加文字区域 padding，更协调 */
}

/*鼠标悬停显示下拉菜单的 CSS*/
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}
.dropdown-menu {
  transition: all 0.3s ease;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #333;
}
.navbar {
  background-color: #002b5e;
}
.navbar-brand {
  font-weight: bold;
}
.navbar-nav .nav-link {
  color: #fff !important;
}

.banner {
  height: 100vh;
  background: url("../images/1111.jpg") no-repeat center center/cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  animation: bgScroll 10s infinite alternate;
}

/* 两张背景图轮播 */
@keyframes bgScroll {
  0% {
    background-image: url("../images/1111.jpg");
  }
  100% {
    background-image: url("../images/2222.jpg");
  }
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 48%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 1.5s infinite;
}

.scroll-text {
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.arrow {
  font-size: 2rem;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

.banner h1 {
  background: rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  border-radius: 10px;
  color: #fff;
  font-size: 2rem;
}
.section-title {
  font-weight: bold;
  color: #002b5e;
  border-left: 6px solid #005bac;
  padding-left: 10px;
}
.services .card {
  border: none;
  border-top: 4px solid #005bac;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}
.services .card:hover {
  transform: translateY(-5px);
}
.card-title {
  color: #005bac;
}
.greeting-section .card {
  border-left: 6px solid #005bac;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

footer {
  background-color: white;
  color: black;
  padding: 2rem 0;
}

footer a {
  color: black;
  text-decoration: none;
}

footer a:hover {
  color: blue;
}

footer h5 {
  color: rgb(64, 64, 195); /* 小标题变蓝 */
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
}

/* 内容块之间加一条美观的分隔线 */
footer .col-md-3 {
  border-right: 1px solid #ccc;
  padding-right: 1rem;
  margin-bottom: 1rem;
}

footer .col-md-3:last-child {
  border-right: none;
}

/* 加一点呼吸感 */
footer ul {
  padding-left: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

.footer-logo img {
  width: 100px;
  height: auto;
}
/* 页脚*/
#footer {
  background-color: #2e5980; /* 深蓝背景 */
  color: white; /* 白色文字 */
  text-align: center; /* 文字居中 */
  padding: 15px 0; /* 上下内边距 */
  font-size: 14px;
  font-family: Arial, sans-serif;
}

/*あいさつ*/
.greeting-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem 1rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
  color: #333;
}
.greeting-section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  color: #0052cc;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.greeting-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.signature {
  margin-top: 3rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.signature img {
  width: 200px;
  height: auto;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.1));
}
