/* メインビジュアル全体のスタイル */
.main-visual {
  position: relative;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fafafa;
}

/* テキスト部分のスタイル */
.main-visual .texts {
  position: absolute;
  z-index: 1;
  text-align: center;
  color: #333;
  padding: 0.5rem 3rem;
  /* backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); */
  top: 38%;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.main-visual .texts h1 {
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
  font-weight: lighter;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.main-visual .texts p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  font-weight: lighter;
}

/* Krebsアニメーションのスタイル */
#krebs-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

#krebs-canvas.loaded {
  opacity: 1;
}

/* 静的背景 */
.static-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

#krebs-canvas.loaded + .static-background {
  opacity: 0;
}

.static-background picture,
.static-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* グラデーション背景 */
#gradient-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,1) 20%, rgba(248,248,255,1) 100%);
  z-index: 0;
}

/* ニュースセクション */
#top .news {
  max-width: 768px;
  margin: 0 auto;
  padding: 80px 0;
}

#top .news h2 {
  font-size: 30px;
  font-weight: lighter;
  line-height: 28px;
}

#top .news ul {
  margin-top: 40px;
}

#top .news li {
  border-bottom: 2px solid rgb(243 244 246);
}

#top .news a {
  display: flex;
  column-gap: 32px;
  align-items: center;
  padding: 16px 0;
}

#top .news a:hover p {
  text-decoration: underline;
  text-underline-offset: 2px;
}

#top .news time {
  flex-shrink: 0;
}

#top .news p {
  width: max-content;
}

#top .news i {
  flex-shrink: 0;
  margin-left: auto;
}

/* アバウトセクション */
#top .about {
  padding: 80px 16px;
  border-top: 1px solid rgb(243 244 246);
}

#top .about > .inner {
  gap: 32px;
  justify-content: space-between;
  max-width: 1024px;
  margin: 0 auto;
}

#top .about h2 {
  font-size: 36px;
  font-weight: lighter;
  line-height: 1.625;
}

#top .about p {
  font-size: 18px;
  line-height: 2;
}

/* サービスセクション */
#top .service {
  padding: 80px 16px;
}

#top .service > .inner {
  max-width: 1024px;
  margin: 0 auto;
}

#top .service h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  line-height: 1.625;
}

#top .service ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

#top .service li {
  display: flex;
  gap: 8px;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
  /* border-right: 1px solid rgb(221 221 221); */
}

#top .service li:first-child {
  padding-left: 0;
}

#top .service li:last-child {
  padding-right: 0;
  border: none;
}

#top .service li > div {
  width: 96px;
  height: 96px;
}

#top .service li img {
  width: 100%;
  height: auto;
}

#top .service li p {
  font-size: 14px;
  font-weight: bold;
  line-height: 20px;
}

/* メディアクエリ */
@media (max-width: 767px) {
  .main-visual .texts {
    padding: 1rem;
    margin: 0 1rem;
    width: calc(100% - 2rem);
    /* padding: 2rem;
    margin: 0 1rem;
    width: 90%; */
    top: 30%;
  }
  
  .main-visual .texts h1 {
    font-size: 2rem;
  }
  
  .main-visual .texts p {
    font-size: 1rem;
  }
  
  .quadrant-label {
    display: none;
  }
  
  #top .news {
    padding: 40px 16px;
  }
  
  #top .about > .inner {
    display: block;
  }
  
  #top .about h2 {
    font-size: 28px;
  }
  
  #top .about p {
    margin-top: 32px;
  }
  
  #top .service ul {
    gap: 16px;
  }
  
  #top .service li {
    padding: 0 16px;
  }
  
  #top .service li > div {
    width: 64px;
    height: 64px;
  }
}
  