/* ヒーローセクション */
.hero {
  position: relative;
  text-align: center;
  padding: 120px 20px 80px;
  background: #f9f9f9; /* デフォルト背景 */
  color: #fff;
}

/* 背景画像をdata-bgから設定 */
.hero {
  background-image: url('/hmjncloud/hero-bg.jpg'); /* HTMLのdata-bgと同じ画像を指定 */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* オーバーレイ */
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

/* コンテンツを前面に */
.hero-content {
  position: relative;
  z-index: 1;
}

/* ボタン */
.btn-primary {
  display: inline-block;
  background: #007acc;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #005f99;
}

/* 特徴セクション */
.features {
  padding: 80px 20px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature h3 {
  color: #007acc;
  margin-bottom: 10px;
}

/* プランセクション */
.plans {
  padding: 80px 20px;
  text-align: center;
}

.plan-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.plan-card {
  background: #f2f2f2;
  padding: 25px;
  border-radius: 10px;
  width: 220px;
  border: 1px solid #ddd;
}

.plan-card h3 {
  margin-bottom: 10px;
}

.price {
  font-weight: bold;
  margin-top: 10px;
}

/* WEBパネルセクション */
.panel {
  text-align: center;
  padding: 80px 20px;
  background: #f9f9f9;
}

.panel-img {
  width: 80%;
  max-width: 700px;
  margin-top: 30px;
  border-radius: 10px;
}

/* ===== モバイル共通 ===== */
@media screen and (max-width: 768px) {

  /* ヒーローセクション */
  .hero {
    padding: 80px 15px 60px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* 特徴セクション */
  .features {
    padding: 60px 15px;
  }
  .feature-grid {
    grid-template-columns: 1fr; /* 縦並びに変更 */
    gap: 20px;
  }
  .feature h3 {
    font-size: 1.2rem;
  }

/* ===== モバイル版プランカード ===== */
@media screen and (max-width: 768px) {
  .plan-row {
    flex-direction: column; /* 縦並び */
    align-items: center;
    gap: 20px;
  }

  .plan-card {
    width: 90%; /* 画面幅に合わせて広げる */
    max-width: 400px; /* 最大幅を制限 */
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 立体感 */
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  /* ホバーで少し浮き上がる効果（モバイルでは押下時に反応） */
  .plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }

  .plan-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #007acc;
  }

  .plan-card p {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .plan-card .price {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
  }
}

/* 小型スマホ向け微調整 */
@media screen and (max-width: 480px) {
  .plan-card h3 {
    font-size: 1.2rem;
  }
  .plan-card p {
    font-size: 0.95rem;
  }
  .plan-card .price {
    font-size: 1rem;
  }
}

  /* WEBパネルセクション */
  .panel {
    padding: 60px 15px;
  }
  .panel-img {
    width: 100%; /* 幅いっぱいに表示 */
    max-width: 100%;
  }

  /* フッター */
  .footer {
    padding: 30px 15px;
    font-size: 0.85rem;
  }
}

/* ===== 小型スマホ用微調整 ===== */
@media screen and (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }
  .hero-content p {
    font-size: 0.9rem;
  }
  .btn-primary {
    width: 100%;
    padding: 12px 0;
  }
  .feature h3 {
    font-size: 1.1rem;
  }
}
