/* Solution Section */

.l-top__solution {
  background-color: var(--color-light-gray);
  position: relative;
  padding: 80px 30px 80px 30px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  color: var(--color-black);
}

.solution-title {
  position: relative;
}

/* Solution Grid Layout */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
}

/* Solution Item 01 - 横並び大きいアイテム */
.solution-item-main {
  display: flex;
  align-items: stretch;
  height: 312px;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  width: 100%;
}

.solution-item-main .item-image {
  width: 610px;
  height: 312px;
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.solution-item-main .item-content {
  flex: 1;
  position: relative;
  height: 312px;
  min-width: 0;
  padding: 0 0 0 44px;
  box-sizing: border-box;
}

.solution-item-main .item-title {
  font-size: 36px;
  line-height: 3rem;
  text-align: left;
  font-weight: bold;
  margin-top: 55px;
}

.solution-item-main .item-description {
  font-size: 16px;
  line-height: 3rem;
  text-align: left;
}
.solution-item-main .item-link {
  top: 217px;
  left: 44px;
}

/* Solution Items Row - 2-4の横並び */
.solution-items-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
/* Solution Items 02, 03, 04 - 縦並び小さいアイテム */
.solution-item {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  height: 100%;
}
.solution-item .img-zoom-wrap {
  width: 100%;
  height: 220px;
}

.solution-item .item-image {
  width: 100%;
  height: 248px;
}

.solution-item .item-content {
  position: relative;
  padding: 22px 0;
}

.solution-item .item-title {
  font-size: 24px;
  line-height: 2rem;
  text-align: left;
  font-weight: bold;
}

.l-top__solution .item-link-container {
  position: relative;
  display: flex;
  justify-content: space-between;
}
.l-top__solution .solution-item-main .item-link-container {
  flex-direction: column;
}

.solution-item .item-description {
  font-size: 16px;
  line-height: 2rem;
  margin-right: 5px;
  margin-top: 15px;
}

.solution-grid a {
  text-decoration: none;
}
.solution-grid a:hover {
  opacity: 0.9;
  transition: all 0.3s ease;
  cursor: pointer;
}
/* .solution-grid a:hover .item-title {
  color: var(--color-hover);
} */
/* アイコンのベーススタイル */
.item-link {
  position: absolute;
  top: 217px;
  right: 44px;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
  background-image: url(../../images/common/ico-link.svg);
  background-size: contain;
  background-repeat: no-repeat;
  filter: brightness(0); /* 通常時は黒色 */
}

/* ホバー時は別の画像に切り替え */
.solution-grid a:hover .item-link {
  background-image: url(../../images/common/ico-link-hover.svg);
  filter: none; /* ホバー時はフィルターを解除 */
}

/* Solution Items Row のアイコン位置調整 */
.solution-items-row .solution-item .item-link {
  top: 0;
  right: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .l-top__solution {
    padding: 30px 30px;
  }

  .solution-title {
    margin-bottom: 60px;
    width: 100%;
    height: auto;
  }

  .solution-heading {
    font-size: 45px;
    line-height: 50px;
  }

  .solution-subheading {
    font-size: 20px;
  }

  .solution-grid {
    margin-top: 0;
  }

  .solution-item-main {
    flex-direction: column;
    height: auto;
  }
  .solution-item-main .image-container {
    width: 100%;
    aspect-ratio: inherit;
    overflow: hidden;
    border-radius: 0;
  }
  .solution-item-main .item-image {
    width: 100%;
    max-height: 300px;
  }
  .solution-items-row .img-zoom-wrap {
    width: 100%;
    max-height: 300px;
  }
  .solution-items-row .img-zoom-wrap .responsive-image {
    object-position: top;
  }

  .l-top__solution .solution-item-main .item-link-container {
    flex-direction: row;
    justify-content: space-between;
  }
  .solution-item-main .item-content {
    position: relative;
    height: 200px;
    flex: none;
    padding: 0;
  }

  .solution-item-main .item-title {
    font-size: 24px;
    line-height: 30px;
    width: calc(100% - 80px);
    height: auto;
    margin-top: 20px;
  }

  .solution-item-main .item-description {
    width: calc(100% - 80px);
    height: auto;
    margin-top: 15px;
  }

  .solution-item-main .item-link {
    top: 150px;
    right: 30px;
    filter: brightness(0);
  }

  .solution-items-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .solution-item {
    flex-direction: column;
  }

  .solution-item .item-image {
    flex-shrink: 0;
  }

  .solution-item .item-content {
    position: relative;
    padding: 0;
    width: 100%;
  }

  .solution-item .item-title {
    padding: 15px 0 0 0;
    width: calc(100% - 50px);
    color: var(--color-dark);
    margin-top: 20px;
  }

  .solution-item .item-description {
    top: 60px;
    left: 15px;
    font-size: 16px;
    line-height: 1.6rem;
    width: calc(100% - 50px);
    padding-right: 15px;
    height: auto;
    color: var(--color-dark);
  }

  .solution-item .item-link {
    filter: brightness(0);
  }
}

@media (max-width: 480px) {
  .l-top__solution {
    padding: 40px 20px;
  }

  .solution-heading {
    font-size: 32px;
    line-height: 38px;
  }

  .solution-subheading {
    font-size: 18px;
  }

  .solution-item-main .item-image {
    height: 250px;
  }

  .solution-item-main .item-content {
    height: 180px;
  }

  .solution-item-main .item-title {
    top: 20px;
    left: 20px;
    font-size: 22px;
    line-height: 28px;
    width: calc(100% - 60px);
  }

  .solution-item-main .item-description {
    top: 80px;
    left: 20px;
    font-size: 14px;
    line-height: 22px;
    width: calc(100% - 60px);
  }

  .solution-item-main .item-link {
    top: 130px;
    right: 20px;
    width: 24px;
    height: 24px;
  }

  .solution-item {
    flex-direction: column;
    height: auto;
  }
  .image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
  }
  .solution-item .item-image {
    width: 100%;
    height: 150px;
  }

  .solution-item .item-content {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 165px;
    margin-top: -15px;
  }

  .solution-item .item-title {
    top: 20px;
    left: 15px;
    font-size: 22px;
    line-height: 28px;
    width: calc(100% - 30px);
    padding-right: 0;
  }

  .solution-item .item-description {
    top: 55px;
    left: 15px;
    font-size: 14px;
    line-height: 18px;
    width: calc(100% - 30px);
    padding-right: 0;
    height: auto;
  }

  .solution-item .item-link {
    width: 20px;
    height: 20px;
  }
}
