/* Service Page Styles (事業内容) */

/* ========================================
   Hero Section
   ======================================== */
.service-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1500 / 401;
  background-image: url('../img/architecture/service-hero.jpg');
  background-size: cover;
  background-position: center;
  overflow: visible;
}

/* Vertical Line - page-specific positioning */
.service-hero-line {
  bottom: -98px;
  height: 232px;
}

/* ========================================
   Service List Section
   ======================================== */
.service-list {
  background-color: #fff;
  padding: 130px 40px 80px;
  text-align: center;
}

.service-list-title {
  margin-bottom: 15px;
}

.service-list-subtitle {
  margin-bottom: 60px;
}

/* Service Items Container */
.service-items {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Each Service Item - CSS Grid */
.service-item {
  display: grid;
  grid-template-columns: 145px 1fr;
  grid-template-rows: auto auto;
  gap: 0 30px;
  text-align: left;
}

/* Circle Icon */
.service-item-icon {
  grid-row: 1 / 3;
  grid-column: 1;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
}

.service-item-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(67%) sepia(13%) saturate(1548%) hue-rotate(131deg) brightness(93%) contrast(84%);
}

/* Title Row with Horizontal Line */
.service-item-header {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 15px;
  margin-bottom: 15px;
}

.service-item-name {
  font-family: var(--font-serif-jp);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1.8px;
  line-height: 29px;
  color: var(--color-text);
  white-space: nowrap;
}

.service-item-line {
  flex: 1;
  height: 1px;
  background-color: var(--color-text);
}

/* Description */
.service-item-desc {
  grid-row: 2;
  grid-column: 2;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1.125px;
  line-height: 32px;
  color: var(--color-text);
}

/* ========================================
   Responsive - Tablet (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .service-items {
    max-width: 700px;
  }

  .service-item {
    grid-template-columns: 120px 1fr;
    gap: 0 20px;
  }

  .service-item-icon {
    width: 120px;
    height: 120px;
  }

  .service-item-icon img {
    width: 50px;
    height: 50px;
  }
}

/* ========================================
   Responsive - Mobile (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
  .service-hero {
    aspect-ratio: 377 / 217;
  }

  .service-page .page-hero-title {
    line-height: 43px;
  }

  .service-page .page-hero-subtitle {
    line-height: 17px;
  }

  .service-hero-line {
    bottom: -54px;
    height: 109px;
  }

  .service-list {
    padding: 73px 20px 60px;
  }

  .service-list-subtitle {
    line-height: 17px;
    margin-bottom: 41px;
  }

  .service-items {
    gap: 38px;
  }

  /* SP: icon+title in row, desc below full width */
  .service-item {
    grid-template-columns: 88px 1fr;
    grid-template-rows: auto auto;
    gap: 0 15px;
  }

  .service-item-icon {
    grid-row: 1;
    grid-column: 1;
    width: 88px;
    height: 88px;
    align-self: center;
  }

  .service-item-icon img {
    width: 37px;
    height: 37px;
  }

  .service-item-header {
    grid-row: 1;
    grid-column: 2;
    padding-top: 0;
    margin-bottom: 0;
    min-height: 88px;
    align-items: center;
  }

  .service-item-name {
    font-size: 20px;
    letter-spacing: 1.5px;
    line-height: 24px;
    white-space: normal;
  }

  .service-item-line {
    display: none;
  }

  /* SP: description spans full width */
  .service-item-desc {
    grid-row: 2;
    grid-column: 1 / -1;
    margin-top: 24px;
    font-size: 14px;
    letter-spacing: 1.05px;
    line-height: 28px;
  }
}
