body {
  margin: 0;
  font-family: 'Kiwi Maru', sans-serif;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgb(0, 0, 0);
  text-shadow: 2px 2px 500px rgb(0, 183, 255);
}

/* トップページ背景 */
.hero-top {
  background-image: url('./haikei/top2.jpg');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  color: rgb(2, 82, 255);
  text-shadow: 2px 2px 100px rgba(0, 0, 0, 0.6);
}

/* 2ページ目以降の背景 */
.hero-products,
.hero-bento,
.hero-tenpo,
.hero-bumon,
.hero-company {
  background-image: url('./haikei/haikei5.jpg');
  background-size: cover;
  background-position: center;
  padding: 40px;
  color: rgb(0, 212, 53);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hero h1 {
  font-size: 4rem;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

/* 縦1列（PC） */
.products {
  display: flex;
  flex-direction: column; /* 縦一列に並べる */
  gap: 20px;
  padding: 20px;
}

.product-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  color: #333;
}

.product-card img {
  max-width: 100%;
  border-radius: 8px;
}

.product-card p {
  color: #333;
}

.large-text {
  font-size: 1.8rem;
  font-weight: bold;
}

/* ナビアイコン */
.icon-nav {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap; /* スマホ時折り返し対応 */
}

.icon-nav a {
  display: flex;
  flex-direction: column; /* 画像→テキストの縦並び */
  align-items: center;
  text-align: center;
  color: rgb(0, 119, 255);
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease;
  width: 100px; /* 任意でサイズ統一 */
}

.icon-nav a:hover {
  transform: scale(1.1);
}

.icon-nav img {
  width: 60px;
  height: 60px;
  margin-bottom: 6px;
}

/* 地図表示用 */
.map-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 30px auto 0;
}

.map-box {
  flex: 1 1 350px;
  max-width: 500px;
  background-color: #fff;
  color: #333;
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.map-box:hover {
  transform: scale(1.02);
}

.map-box h3 {
  color: #007acc;
  margin-bottom: 5px;
}

/* スマホ画面では1列（縦並び） */
@media screen and (max-width: 768px) {
  .products {
    display: flex;
    flex-direction: column;
  }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #007acc;
  color: white;
  padding: 12px 16px;
  font-size: 24px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: none; /* 初期は非表示 */
  z-index: 999;
  transition: opacity 0.3s, transform 0.3s;
}

.back-to-top:hover {
  background-color: #005fa3;
  transform: scale(1.1);
}

/* アニメーションのキーフレーム定義 */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px); /* 下から */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* h2・h3 にフェードインスタイルを追加 */
.hero-top h2,
.hero-top h3 {
  color: #000000;
  font-family: '', serif;
  opacity: 0; /* 最初は見えない */
  animation: fadeInUp 1.5s ease-out forwards;
}

/* h2 は少し早く表示 */
.hero-top h2 {
  font-size: 1.8rem;
  animation-delay: 0.5s;
}

/* h3 は少し遅れて表示 */
.hero-top h3 {
  font-size: 1.4rem;
  animation-delay: 1.2s;
}
