/* ----------------------------------------
service-problem
---------------------------------------- */
.service-problem {
  padding: 0;
  position: relative;
  margin-top: 10rem;
  background: #eee;
}

.service-problem__inner {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-direction: row-reverse;
  height: 30vw;
  min-height: 400px;
}

.service-problem__content {
  padding: 0 5%; 
  width: 45%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center; 
}

.service-problem__title {
  font-size: min(2.75cqw, 2rem);
  font-weight: 600;
  color: var(--color-primary);
}

.service-problem__list {
  margin-top: 2rem;
}

.service-problem__list li {
  position: relative;
  padding-left: 28px;
  font-size: 1.5cqw;
  line-height: 2;
}

.service-problem__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  background-image: url('../img/service/check.png');
  background-size: cover;
  width: 1.5cqw;
  height: 1.5cqw;
}

.service-problem__text {
  margin-top: 2rem;
  color: var(--color-primary);
  font-size: min(2.5cqw, 2rem);
  line-height: 1.5;
  font-weight: 600;
}

.service-problem__img {
  position: relative;
  width: 55%;
  height: 100%;
  z-index: 1;
}

.service-problem__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ←ここがキモ（フェード） */
.service-problem__img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(245,245,245,0) 40%,
    rgba(245,245,245,0.7) 65%,
    #eee 100%
  );
}

@media screen and (max-width: 900px) {
  .service-problem__content {
    width: 55%;
  }

  .service-problem__title {
    font-size: min(3.75cqw, 1.5rem);
  }

  .service-problem__list {
    margin-top: 2rem;
  }

  .service-problem__list li {
    position: relative;
    padding-left: 7%;
    font-size: min(2.5cqw, 1.15rem);
    line-height: 2;
  }

  .service-problem__list li::before {
    left: 1%;
    width: min(2.5cqw, 1.15rem);
    height: min(2.5cqw, 1.15rem);
  }

  .service-problem__text {
    margin-top: 2rem;
    color: var(--color-primary);
    font-size: min(4cqw, 1.5rem);
    line-height: 1.5;
    font-weight: 600;
  }

  .service-problem__img {
    width: 45%;
  }
}

@media screen and (max-width: 580px) {
  .service-problem {
    margin-top: 5rem;
  }

  .service-problem__inner {
    position: relative;
    display: block;
    height: auto;
    min-height: 0;
  }

  .service-problem__img {
    width: 100%;
    height: 200px;
  }

  .service-problem__img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
  }

  .service-problem__content {
    padding: 2rem 1rem; 
    width: 100%;
    display: block;
    box-sizing: border-box;
  }

  .service-problem__title {
    font-size: 6cqw;
    text-align: center;
  }

  .service-problem__list {
    margin-top: 2rem;
  }

  .service-problem__list li {
    position: relative;
    padding-left: 2rem;
    font-size: 4cqw;
    line-height: 2;
  }

  .service-problem__list li::before {
    left: 8px;
    width: 4cqw;
    height: 4cqw;
  }

  .service-problem__text {
    margin-top: 2rem;
    color: var(--color-primary);
    font-size: 5cqw;
    text-align: center;
  }
}

/* ----------------------------------------
service-nav
---------------------------------------- */
.service-nav__inner {
  margin-top: 5rem;
}

.service-nav__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4rem;
}

/* ボタン */
.service-nav__btn {
  display: flex;               /* ←追加 */
  flex-direction: column;      /* ←縦並び */
  justify-content: center;     /* ←縦中央 */
  align-items: center;         /* ←横中央 */
  gap: 10px;     
  width: 140px;
  height: 140px;
  background: #fff;
  text-align: center;
  border: none;
  box-shadow: 0px 1px 5px 1px rgba(114, 114, 114, 0.35);
  transition: all 0.3s ease;
}

/* hover */
.service-nav__btn:hover {
  box-shadow: 0px 8px 15px 3px rgba(114, 114, 114, 0.35);
  border: none;
}

/* active（選択中） */
.service-nav__btn.is-active {
  background: #aaa;
}

.service-nav__btn.is-active span {
  color: #fff;
}

.service-nav__btn img {
  width: 40%;
  margin: 0 auto;
  display: block;
}

.service-nav__btn span {
  display: inline-block;
  font-size: 1cqw;
  font-weight: 500;
  color: var(--color-primary);
}

@media screen and (max-width: 900px) {
  .service-nav__list {
    gap: 2rem;
  }

  /* ボタン */
  .service-nav__btn {
    width: 13vw;
    height: 13vw;
  }

  .service-nav__btn span {
    font-size: 1.5cqw;
  }
}

@media screen and (max-width: 580px) {
  .service-nav__inner {
    margin-top: 3rem;
  }

  .service-nav__list {
    gap: 1.5rem;
  }

  .service-nav__btn {
    width: 22vw;
    height: 22vw;
  }

  .service-nav__btn span {
    font-size: 0.75rem;
  }
}

/* ----------------------------------------
service-detail
---------------------------------------- */
.service-detail__inner {
  position: relative;
}

.service-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 0.5s ease;
  position: absolute; /* ←重ねるため */
  inset: 0;
  width: 100%;
  scroll-margin-top: 10rem;
}

.service-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
  pointer-events: none;
  transition: all 0.5s ease;
}

.service-panel__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-primary);
  text-align: center;
}

.service-panel__title::before,
.service-panel__title::after {
  content: "";
  flex: 1;
  height: 2px;
}

.service-panel__title::before {
  background: linear-gradient(to right, transparent, #ccc);
}

.service-panel__title::after {
  background: linear-gradient(to left, transparent, #ccc);
}

.service-panel__list {
  margin-top: 5rem;
}

.service-item + .service-item {
  margin-top: 4rem;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

.service-item--reverse .service-item__img {
  order: 2;
}

.service-item--reverse .service-item__body {
  order: 1;
}

.service-item__img {
  overflow: hidden;
}

.service-item__img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.service-item__body {
  margin-top: 1rem;
}

.service-item__title {
  position: relative;
  margin-left: 1rem;
  font-size: 1rem;
  font-weight: 400;
  color: #999;
}

.service-item__title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.service-item:nth-of-type(1) .service-item__title::before {
  background: #130095;
}
.service-item:nth-of-type(2) .service-item__title::before {
  background: #009525;
}
.service-item:nth-of-type(3) .service-item__title::before {
  background: #950000;
}
.service-item:nth-of-type(4) .service-item__title::before {
  background: #DDA200;
}
 
.service-item__catch {
  margin-top: 1rem;
  color: #444;
  font-size: 1.5rem;
  font-weight: 600;
}

.service-item__text {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 2;
  color: #111;
}

.service-panel__message {
  margin-top: 8rem;
  color: #444;
  font-size: 2rem;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
}

@media screen and (max-width: 900px) {
  .service-panel__title {
    gap: 1rem;
    font-size: min(4.5cqw, 2rem);
  }

  .service-item__img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
  }

  .service-item__body {
    margin-top: 0;
  }

  .service-item__title {
    font-size: 0.9rem;
  }

  .service-item__catch {
    margin-top: 1rem;
    color: #444;
    font-size: max(3cqw, 1rem);
    font-weight: 600;
  }

  .service-item__text {
    margin-top: 1rem;
    font-size: max(2cqw, 0.8rem);
    line-height: 2;
    color: #111;
  }

  .service-panel__message {
    margin-top: 5rem;
    font-size: max(3.5cqw, 1.5rem);
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
  }
}

@media screen and (max-width: 580px) {
  .service-panel__list {
    margin-top: 3rem;
  }

  .service-item {
    display: block;
  }

  .service-item__img img {
    aspect-ratio: 16 / 9;
  }

   .service-item__body {
    margin-top: 1.5rem;
  }

    .service-panel__message {
      font-size: 4.5cqw;
    }
}