#service-page {
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}

.service-page-title {
  display: flex;
  margin-top: 80px;
  justify-content: center;
}

.service-page-title-image {
  width: 30%;
  height: auto;
}

/* 全体のコンテナ */
.service-item {
  width: 80%;
  margin: 10px auto 80px auto;
  padding: 10px;
  border: 6px dashed #ccc;
  border-top: none;
  border-left: none;
  /* border-right: none; */
  text-align: left;
}

/* ヘッダー部分 (番号とタイトル) */
.service-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

/* サービス番号 */
.service-number {
  font-size: 4.5rem;
  font-weight: normal;
  line-height: 1;
  margin-right: 15px;
  /* color: #333; */
  color: var(--navy);
  padding: 0 7px 0 0;
  border: 2px dashed #ccc;
  border-top: none;
  border-left: none;
  /* border-bottom: none; */
}


/* メインタイトル */
.service-main-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  /* color: #333; */
  color: var(--navy);
}

/* サブタイトル (英語表記) */
.service-sub-title {
  font-size: 0.8rem;
  /* color: #666; */
  color: var(--orange);
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.2;
}

/* 説明文 */
.service-description {
  /* border: 2px dashed grey; */
  border-top: none;
  /* border-right: none; */
  border-left: none;
  border-bottom: none;
  padding-right: 10px;
  padding-bottom: 20px;
}

.service-description p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}




/* プロジェクト例セクション */
.project-section {
  margin-top: 10px;
  text-align: left;
}

.project-section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.project-tags-container {
  display: inline-grid;
  grid-template-rows: auto auto;
  row-gap: 10px;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-left: none;
  border-top: none;
}

.project-tags-container::-webkit-scrollbar {
  display: none;
}


.scroll-left {
  animation: scroll-left 40s linear infinite;
}

.scroll-right {
  animation: scroll-right 60s linear infinite;
}

/* 各タグのスタイル */
.project-tag {
  display: inline-block;
  background-color: #e0f2f7;
  color: #007bb5;
  padding: 8px 15px;
  border-radius: 20px;
  margin: 0 8px;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
  /* cursor: pointer; */
}

.project-tag:hover {
  background-color: #007bb5;
  color: #fff;
  transform: scale(1.1);
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}