/* =========================================
   top.css
   トップページ専用
========================================= */

.top-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 58%, rgba(0,102,204,.36), transparent 28%),
    radial-gradient(circle at right top, rgba(0,102,204,.28), transparent 34%),
    linear-gradient(135deg, #050505 0%, #111 52%, #1f1f1f 100%);
  border-radius: 0;
  padding: 10px;
  color: #fff;
}

.top-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: .24;
  pointer-events: none;
}

.top-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(0,102,204,.24);
  pointer-events: none;
}

.top-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.top-hero__text {
  max-width: 680px;
}

.top-hero__label {
  display: inline-block;
  margin: 0 0 14px;
  color: #9bd0ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.top-hero h1 {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.34;
  letter-spacing: .02em;
}

.top-hero p {
  color: rgba(255,255,255,.88);
  font-size: 16px;
  line-height: 1.95;
}

.top-hero__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.top-hero .btn-main {
  background: #fff;
  color: #111;
  min-width: 150px;
}

.top-hero .btn-light {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  min-width: 140px;
}

.top-hero__visual {
  text-align: center;
}

.top-hero__visual img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 26px 44px rgba(0,0,0,.42));
}

.top-category-section,
.top-case-section,
.top-news-section,
.top-guide-section {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.category-card {
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.category-card__image {
  background: #fff;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-card__body {
  padding: 16px;
}

.category-card__body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.45;
}

.category-card__body p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.top-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.top-case-card {
  background: #fff;
}

.top-case-card__image {
  background: #f5f5f5;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
}

.top-case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-case-card__body h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.55;
}

.top-case-card__body p {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.top-news-section {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.top-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-news-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #eee;
}

.top-news-list li:last-child {
  border-bottom: 0;
}

.top-news-list time {
  color: #666;
  font-size: 14px;
  white-space: nowrap;
}

.top-news-list a {
  font-weight: 700;
}

.top-news-list a:hover {
  color: #0066cc;
  text-decoration: underline;
}

.top-guide-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 28px;
}

.top-guide-box h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.top-guide-box p {
  color: #555;
  line-height: 1.9;
  margin-bottom: 0;
}

.top-guide-box .btn-main {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .top-hero {
    padding: 25px 16px;
  }

  .top-hero__content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .top-hero h1 {
    font-size: 30px;
  }

  .top-hero__visual img {
    max-height: 420px;
  }
}

@media (max-width: 900px) {
  .top-hero__content {
    grid-template-columns: 1fr;
  }

  .top-hero__visual {
    order: -1;
  }

  .top-hero__visual img {
    max-height: 320px;
  }

  .category-grid,
  .top-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-guide-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-hero {
    padding: 25px 16px;
  }

  .top-hero h1 {
    font-size: 24px;
  }

  .top-hero p {
    font-size: 16px;
  }

  .top-hero__buttons {
    display: grid;
  }

  .top-hero__buttons a {
    width: 100%;
  }

  /* ==========================
     カテゴリー
  ========================== */

  .category-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .category-card {
    flex: 0 0 180px;
  }

  .category-card__image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .category-card__image img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
  }

  .category-card__body {
    padding: 12px;
  }

  .category-card__body h3 {
    font-size: 16px;
  }

  .category-card__body p {
    font-size: 12px;
  }

  /* ==========================
     作成事例
  ========================== */

  .top-case-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .top-case-card {
    flex: 0 0 180px;
  }

  .top-case-card__image {
    height: 180px;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
  }

  .top-case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .top-case-card__body h3 {
    font-size: 14px;
    line-height: 1.5;
  }

  .top-case-card__body p {
    font-size: 12px;
  }

.top-more-link {
  text-align: center;
  margin: 12px 0 0;
}

.top-more-link .text-link {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
}

  /* ==========================
     お知らせ
  ========================== */

  .top-news-list li {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 12px 0;
  }

.top-more-link {
  text-align: center;
  margin: 12px 0 0;
}

.top-more-link .text-link {
  display: inline-block;
  font-weight: 700;
}

  /* ==========================
     ガイド
  ========================== */

  .top-guide-box {
    padding: 22px;
    border-radius: 16px;
  }
}