body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  height: 40px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* スライダー全体 */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0; /* ← -1を0に変更。背景より前に出す */
  overflow: hidden;
}

/* 各スライド */
.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

/* 表示中のスライド */
.hero-slider .slide.active {
  opacity: 1;
  z-index: 1; /* ← 表示中スライドを最前面に */
}

/* コンテンツ */
.hero-content {
  position: relative; /* ← z-indexを有効にするために追加 */
  z-index: 2;
  background: rgba(0,0,0,0.4);
  padding: 2rem;
  border-radius: 8px;
}


.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  z-index: -1;
}

.hero-content {
  z-index: 2;
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: #0078ff;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
}

/* Section */
.section {
  padding: 4rem 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item img {
  width: 100%;
  border-radius: 8px;
}

.contact {
  text-align: center;
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 2px solid #0078ff;
  color: #0078ff;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: #f4f4f4;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}
