body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

a {
  color: #0078d7;
  text-decoration: none;
}

.header {
  background: white;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: #0078d7;
}

.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  margin-left: 20px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 60px 30px;
  background: #f0f7ff;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h1 {
  font-size: 2.2rem;
  color: #0078d7;
}

.hero-img {
  flex: 1;
  text-align: center;
}

.hero-img img {
  max-width: 100%;
  height: auto;
}

.section {
  padding: 60px 20px;
  text-align: center;
}

.gray {
  background: #f9f9f9;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}

.card {
  background: white;
  padding: 20px;
  width: 250px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  height: 120px;
  margin-bottom: 10px;
}

.article-list {
  list-style: none;
  padding: 0;
}

.article-list li {
  margin: 10px 0;
  font-size: 1rem;
}

.cta {
  background: #0078d7;
  color: white;
  padding: 50px 20px;
  text-align: center;
}

.cta-btn {
  background: white;
  color: #0078d7;
  padding: 12px 25px;
  border-radius: 25px;
  display: inline-block;
  margin-top: 20px;
  font-weight: bold;
}

.footer {
  background: #f2f2f2;
  text-align: center;
  padding: 15px;
  font-size: 0.85rem;
}

/*アイコン写真サイズ*/
img {
  max-width: 100%;
  height: auto;
}

/* ========= モバイル対応（レスポンシブ） ========== */
@media screen and (max-width: 768px) {
  /* ヘッダー */
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .nav ul {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .nav li {
    margin: 8px 0;
  }

  /* ヒーロー */
  .hero {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-img {
    margin-top: 20px;
  }

  /* サービス・実績などのカード表示 */
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  /* 記事リスト */
  .article-list li {
    font-size: 0.95rem;
  }

  /* CTA */
  .cta-btn {
    width: 100%;
    max-width: 300px;
    padding: 14px;
    font-size: 1rem;
  }
}

/*ヒーロ*/
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  color: #0078d7;
  font-size: 1.2rem;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: #333;
}

/* スライダー */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  position: absolute;
  top: 40%;
  left: 10%;
  color: white;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.caption h1 {
  font-size: 2.5rem;
  margin: 0 0 10px;
}

.caption p {
  font-size: 1.2rem;
}

@media screen and (max-width: 768px) {
  .caption h1 {
    font-size: 1.5rem;
  }

  .caption p {
    font-size: 1rem;
  }

  .nav ul {
    flex-direction: column;
    gap: 10px;
  }
}


/* ======= ハンバーガーメニュー対応 ======= */
.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: #0078d7;
}

/* ハンバーガーボタンを右端に固定表示 */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #0078d7;
  cursor: pointer;
  margin-left: auto;  /* ← これが重要！右端に寄せる */
}

/* モバイル用レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .header {
    flex-direction: row; /* ← columnからrowに修正 */
    justify-content: space-between; /* 左右にロゴと☰を分ける */
    align-items: center;
    padding: 10px 20px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto; /* ☰ を右寄せに */
  }

  .logo {
    text-align: left;
    margin: 0; /* 中央寄せされないように */
  }

  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    display: none;
    flex-direction: column;
    z-index: 999;
  }

  .nav.open {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav li {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
  }
}