.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 88px;          /* ← 明示的に縦幅を決める */

  transition: box-shadow 0.3s, background-color 0.3s;
}

.nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a.active::after {
  width: 100%;
}


.nav a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 1px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: #0300cc;
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

body {
  margin: 0;
  padding-top: 80px;
}

.indent {
  text-indent: 1em;
  margin-bottom: 1.5em;
}

/* ヒーローエリア */
.hero {
  position: relative;
  height: 100vh;
  background-image: url("../pic_new/company5.png");
  background-size: cover;
  background-position: center;
}

/* 暗幕 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

/* 文字 */
.hero-text {
  position: relative;
  z-index: 2;
  color: white;
  padding: 120px 60px;
}

/* スクロール後 */
.site-header.is-scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.Toservices {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 偶数番目だけ左右反転 */
.service-item:nth-child(even) {
  flex-direction: row-reverse;
}

.service-image img {
  width: 15%;
}

.service-text h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.site-footer {
  background: #f5f5f5;
  color: #333;
  padding: 40px 20px;
  font-size: 14px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer a {
  color: #333;
  text-decoration: none;
}

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

.footer-company {
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-copy {
  display: block;
  margin-top: 20px;
  color: #777;
}

/* 今月のトピックス */
.Topics {
  max-width: 900px;
  margin: 100px auto;
  padding: 50px 40px;
  background: #fafafa;
  border-left: 4px solid #0300cc;
}

/* 見出し */
.Topics h2 {
  margin: 0 0 25px;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: #222;
}

/* 本文 */
.Topics p {
  margin: 0;
  font-size: 16px;
  line-height: 2.0;
  color: #333;
}

/* ふわっと表示（控えめ） */
.Topics {
  animation: topicsFade 0.8s ease;
}

@keyframes topicsFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #222;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 1000;
}

#page-top.show {
  opacity: 0.8;
  visibility: visible;
}

#page-top:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.departments {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列 */
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.dept-card {
  position: relative;
  text-decoration: none;
  color: inherit;
}

.dept-image {
  border: 2px solid #0a2a44;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.dept-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;     /* 余白を白で埋める */
}

/* 部署名ラベル */
.dept-label {
  position: absolute;
  top: -20px;
  left: 0;
  background: #fff;
  border: 2px solid #0a2a44;
  padding: 12px 24px;
  font-size: 20px;
  font-weight: bold;
  z-index: 2;
}

.dept-card:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.dept-card:hover .dept-label {
  background: #0a2a44;
  color: #fff;
  transition: 0.3s;
}

.main-title {
  align-items: center;   /* ← 縦中央揃え */
  justify-content: center; /* ← 中央寄せ（不要なら消す） */
  text-align: center;
  font-size: 28px;
  letter-spacing: 0.15em;
  margin: 100px 0 60px;
  position: relative;
}

.main-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0300cc;
  margin: 15px auto 0;
}

.title-icon {
  width: 70px;
  height: auto;
  transition: transform 0.3s ease;
}