/* トップページ */

.home-page {
  background:
    linear-gradient(180deg, #eef4fb 0%, #f7f9fc 180px, #ffffff 420px);
  min-height: 60vh;
  padding-top: 28px;
  overflow-x: clip;
}

.home-page > .catalog-coming-soon {
  margin: 0 auto 20px;
  padding: 0 16px;
}

.home-page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.home-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  --hero-slide-width: min(960px, 76vw);
}

.home-hero-viewport {
  overflow: hidden;
}

.home-hero-track {
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform 0.55s ease;
  will-change: transform;
}

.home-hero-slide {
  flex: 0 0 var(--hero-slide-width);
  min-width: var(--hero-slide-width);
  cursor: pointer;
}

.home-hero-slide.is-active {
  cursor: default;
}

.home-hero-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.55s ease, opacity 0.55s ease;
  transform: scale(0.94);
  opacity: 0.5;
}

.home-hero-slide.is-active .home-hero-link {
  transform: scale(1);
  opacity: 1;
}

.home-hero-link:focus-visible {
  outline: 3px solid #002A65;
  outline-offset: 2px;
}

.home-hero-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1000;
  object-fit: cover;
  object-position: center;
}

.home-hero-slide:not(:has(.home-hero-link)) img {
  border-radius: 4px;
  transition: transform 0.55s ease, opacity 0.55s ease;
  transform: scale(0.94);
  opacity: 0.5;
}

.home-hero-slide.is-active:not(:has(.home-hero-link)) img {
  transform: scale(1);
  opacity: 1;
}

.home-hero-controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(10px, calc((100vw - var(--hero-slide-width)) / 2 - 52px));
  pointer-events: none;
}

.home-hero-btn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 42, 101, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.home-hero-btn:hover {
  background: rgba(0, 42, 101, 0.8);
}

.home-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.home-hero-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.home-hero-dot.is-active {
  background: #fff;
}

.home-section {
  margin-top: 48px;
}

.home-section-title {
  text-align: center;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: #002A65;
  margin: 0 0 24px;
  font-weight: 800;
}

.home-news-list {
  background: #fff;
  border-top: 2px solid #002A65;
  border-bottom: 1px solid #d7e0ea;
}

.home-news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 18px 8px;
  border-bottom: 1px dashed #cfd8e3;
}

.home-news-item:last-child {
  border-bottom: none;
}

.home-news-date {
  font-size: 13px;
  color: #5a6b7d;
  font-variant-numeric: tabular-nums;
}

.home-news-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a2b3c;
  margin: 0 0 6px;
}

.home-news-body {
  font-size: 14px;
  color: #445566;
  line-height: 1.7;
  white-space: pre-wrap;
}

.home-news-empty {
  text-align: center;
  color: #777;
  padding: 28px 12px;
  font-size: 14px;
}

.home-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.home-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e3ebf3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 42, 101, 0.12);
}

.home-product-image {
  aspect-ratio: 1 / 1;
  background: #f4f7fb;
  overflow: hidden;
}

.home-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-product-body {
  padding: 14px 14px 18px;
}

.home-product-name {
  font-size: 14px;
  font-weight: 700;
  color: #002A65;
  line-height: 1.5;
  min-height: 42px;
}

.home-product-price {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.home-product-cta {
  margin-top: 12px;
  display: inline-block;
  padding: 8px 12px;
  background: #002A65;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 800px) {
  .home-section-title {
    font-size: 22px;
  }

  .home-news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .home-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-product-name {
    min-height: 0;
  }
}
