#service {
  position: relative;
  background: #fcfcfc;
  padding: 4rem 2rem;
  z-index: var(--z-bg);
}

body.modal-open {
  overflow: hidden !important;
}

body.modal-open #site-header,
body.modal-open #firstview,
body.modal-open #workflow,
body.modal-open #workflow .workflow-container {
  pointer-events: none;
  z-index: -2000 !important;
  filter: blur(1px);
}

body.modal-open #site-header,
body.modal-open footer {
  z-index: 0 !important;
  transform: none !important;
  pointer-events: none !important;
  filter: blur(2px);
}

body.modal-open .modal {
  z-index: 10001 !important;
}

body.modal-open .modal-bg {
  z-index: var(--z-modal-bg) !important;
}

body.modal-open #hero-logo,
body.modal-open #hero-copy,
body.modal-open .firstview-inner ,
body.modal-open #firstview {
  z-index: -2000 !important;
  pointer-events: none;
  filter: blur(2px);
  pointer-events: none;
}

body.modal-open  .section-title {
  z-index: -2000 !important;
  pointer-events: none;
  filter: blur(2px);
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-content: center;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
}

.card {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  position: relative;
  z-index: var(--z-card);
}

.card i {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  color: #00aaff;
}

.card h3 {
  font-size: 1.3rem;
  margin: 0.4rem 0;
}

.card p {
  font-size: 1rem;
  color: #555;
  margin: 0;
  padding-top: 0.4rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

@keyframes popBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  30% {
    transform: translateY(-4px) scale(1.05);
  }
  60% {
    transform: translateY(3px) scale(0.98);
  }
}

.service-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
  animation: popBounce 2s ease-in-out infinite;
}



/* モーダル関連 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal) ;
}

.modal-content {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  min-height: 300px;
  z-index: 10002 !important;
}

.modal-content h3 {
  text-align: center;
  padding-bottom: 30px;
}
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
}


.br-mobile{
  display: none;
}


@media (max-width: 600px) {
  .modal-visual {
    position: static;
    margin-top: 1rem;
    width: 100px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

.price-link {
  display: inline-block;
  margin-top: 1rem;
  color: #007acc;
  text-decoration: underline;
}

/* 画面幅が960px未満で2カラム */
@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 画面幅が600px未満で1カラム・中央寄せ */
@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 5rem;
    justify-items: center;
  }

  .card {
    max-width: 90%; 
    width: 100%;
    aspect-ratio: 4 / 3; 
    word-break: break-word;
    padding: 1.2rem 1rem;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .service-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 0.8rem;
  }

  .card p {
    font-size: 0.7rem;
  }

  .modal-content {
    background-size: 100px;
    padding: 1.5rem;
  }

  .br-mobile{
    display: inline;
  }
}


.tap-hint-icon {
  position: absolute;
  bottom: 8px;
  right: 10px;
  width: 25px;
  opacity: 1;
  pointer-events: none;
  z-index: var(--z-content);
}



.service-location-info{
  text-align: center;
  padding-top: 30px;
  padding-bottom: 45px;
}

