body {
    background: url('pic/Monster_Hunter_Dragons_Battles_Warriors_Wings_515053_1920x1080.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
  }
  html {
    scroll-behavior: smooth;
  }
  
  
h1 {
    background-color: red;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 4px solid #8b0000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    font-size: 3em;
    margin: 0;
    color: #f0f0f0;
    text-shadow: 2px 2px 6px #000;
  }
  
nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}
  
nav li {
    margin: 0 10px;
}
  
nav a {
    font-size: 1.2em;
    padding: 12px 20px;
    background-color: rgba(139, 0, 0, 0.85);
    color: #ffe400;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
    padding-left: 40px;
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 20px;
    font-weight: bold;
}
  
nav a:hover {
  color: #ffffff;
}
  


section {
  padding-top: 120px;
    color: yellow;
    margin-bottom: 40px;
  }

h2 {
    margin-bottom: 80px;
  }
  
p {
    margin-top: 80px;
  }

#intro {
    margin-top: 80px;
  }

.m2004{
  color: red;

}

.m2006{
  color: red;

}

.m2008{
  color: red;

}

.m2018{
  color: red;

}

.m2021{
  color: red;

}

.gallery-bata{
  overflow: hidden;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);

}

.garllery-kaiten{
  display: flex;
  gap: 20px;
  animation: scrollmawaru 40s linear infinite;
  width: max-content;
}

.gallery-img {
  position: relative;
  height: 200px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

@keyframes scrollmawaru {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.monster-box {
  position: relative;
  display: inline-block;
}

.monster-box::after {
  content: attr(data-name);
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: rgba(0,0,0,0.7);
  padding: 4px 8px;
  font-size: 0.8em;
  color: white;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.monster-box:hover::after {
  opacity: 1;
}