* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
  line-height: 1.6;
  background: #fefcf3;
  color: #333;
}

header {
  position: relative;
  background: url('himawari.jpeg') center/cover no-repeat;
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

header h1,
header p {
  position: relative;
  z-index: 0;
}

main {
  max-width: 800px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.activity {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.activity img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.activity a:hover img {
  transform: scale(1.05);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 128, 255, 0.5);
}

.activity h2 {
  font-size: 1.2rem;
  color: #cc3333;
  margin-bottom: 0.5rem;
}

.activity p {
  font-size: 1rem;
}

footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #666;
  background: #fafafa;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }
  .activity h2 {
    font-size: 1.1rem;
  }
}

.image-wrapper {
  position: relative;
  margin-bottom: 0.5rem;
}

.image-wrapper img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.image-wrapper .icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  line-height: 28px;
  border-radius: 50%;
  pointer-events: none;
  user-select: none;
}

.image-wrapper.linked a:hover img {
  transform: scale(1.05);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 128, 255, 0.4);
}

.sindan-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #cc3333;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.sindan-link:hover {
  background: #a11d1d;
}


#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fefcf3;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
 
.dot {
  width: 15px;
  height: 15px;
  margin: 0 8px;
  background-color: #cc3333;
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}


.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}


@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-20px);
  }
}

.image-wrapper img[src*="draib.png"] {
  object-position: center bottom;  
  max-height: 300px;            
}
.top-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #cc3333;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.top-link:hover {
  background: #a11d1d;
  text-decoration: underline;
}

