.service-image-gallery {
  /* 既存のスタイルに追加 */
  scrollbar-width: none; /* Firefox用 */
  -ms-overflow-style: none; /* IE10+用 */
}
.service-wrapper {
  display: flex;
  background-color: transparent;
}


.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 150px;
    height: 100vh;
    padding: 20px 10px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .logo {
    width: 100%;
    margin-bottom: 20px;
  }

.sidebar nav ul {
  list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.sidebar nav li {
  text-align: left;
  padding-left: 20px;
}

.sidebar nav a {
  color: white;
  text-decoration: none;
}

.sidebar nav a.active {
  color: #00ffff;
}

/* ===== メインエリア ===== */
.service-main-area {
  margin-left: 150px;
  width: calc(100% - 150px);
  height: 100vh;
  display: flex;
  background-color: transparent;
}

.service-image-gallery {
  width: 30%;
  margin: 80px auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 50px;
}

.service-image-item img {
  filter: grayscale(100%);
  transition: transform 0.3s, filter 0.3s;
  transform: scale(0.9);
  cursor: pointer;
  max-width: 90%;
}

.service-image-item.active img {
  filter: none;
  transform: scale(1);
}

.service-image-display {
  width: 70%;
  margin: 30px 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.display-scroll-content {
  height: 90vh;
  display: flex;
  flex-direction: column;
  margin: 20px;
  gap: 20px;
  overflow-y: auto;
}

/* スクロールバー装飾（必要に応じて） */
.display-scroll-content::-webkit-scrollbar {
  width: 6px;
}

.display-scroll-content::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 3px;
}

.service-image-display img {
  max-width: 90%;
  max-height: 80vh;
  display: block;
}

.service-image-item img {
  filter: grayscale(100%);
  transition: transform 0.4s ease, filter 0.4s ease;
  transform: scale(0.9);
  cursor: pointer;
  max-width: 90%;
}

.service-image-item:hover img,
.service-image-item.active img {
  filter: grayscale(0%);
  transform: scale(1.05);
}
.image-area {
  position: relative;
  text-align: left;
  overflow: hidden;
  width: 85%;
}

.image-area img {
  max-width: 100%;
  display: block;
  margin-left: 0;
}

.image-text {
  color: white;
  padding: 20px;
  border-radius: 8px;
  max-height: 25vh;       /* ✨ テキストの高さ制限 */
  overflow-y: auto;  
  text-align: left;     /* ✨ テキストだけスクロール */
}

.image-text h2 {
  font-size: 46px;
  font-family: 'Abel', sans-serif;
  letter-spacing: 3px;
}

.image-text p {
  font-size: 16px;
  line-height: 1.6;
  padding-right: 8px;
}
.ruby-text {
  display: block;
  font-size: 18px;
  margin-top: -10px;
  margin-bottom: 15px;
}

/* スクロールバー装飾 */
.image-text::-webkit-scrollbar {
  width: 6px;
}

.image-text::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.3);
  border-radius: 3px;
}
/* スクロールバー装飾（任意） */
.image-text p::-webkit-scrollbar {
  width: 6px;
}

.image-text p::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.3);
  border-radius: 3px;
}

/* hover効果 */

.hover-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 42px;
  letter-spacing: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  font-family: 'Abel', sans-serif;
  z-index: 2;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
/* 画像暗くするなら */
/* .image-area:hover img {
  filter: brightness(80%);
} */

.hover-link:hover .hover-overlay {
  opacity: 1;
}

a {
  text-decoration: none;
}
.sp {
  display: none;
}
/* PC専用はスマホで非表示 */
@media screen and (max-width: 768px) {
  .pc {
    display: none !important;
  }
  .sp {
    display: block;
  }
  .service-wrapper {
    display: initial!important;
  }
  .service-main-area {
    display: none;
  }
  .service-sp-list {
    padding: 80px 40px 40px 40px;
  }
  .service-sp-list h1 {
    font-size: 32px;
    text-align: center;
    font-weight: 200;
    margin-bottom: 30px;
  }
  .service-sp-card {
    background: #272727;
    color: #fff;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border-radius: 0;
    overflow: hidden;
  }

  .service-sp-card .card-img {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
  }
  .service-sp-card a {
    display: inline-block;
  }
  .more-button {
    text-align: right;
  }
  .service-sp-card .arrow {
    display: block;
    margin-left: auto;
    margin-right: 20px;
    margin-bottom: 30px;
    width: 60px;
    height: auto;
  }

  .service-sp-content {
    padding: 20px 20px 10px 20px;
  }

  .service-sp-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #0FFDCD;
  }

  .service-sp-content p {
    font-size: 14px;
    line-height: 1.7;
  }
  .copy-text {
    text-align: center;
    padding: 20px;
  }
}