body {
  font-family: "Yu Gothic", sans-serif;
  background: #fff8f8;
  color: #444;
  text-align: center;
  margin: 0;
  padding: 0;
}

header {
  padding: 2em 1em;
  background: #ffe4f2;
  border-bottom: 2px solid #ffc0cb;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}
@media screen and (max-width: 1100px) {
	main {
	  max-width: 900px;
	}
}	
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5em;
  padding: 2em;
}

.zodiac-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  cursor: pointer;
  padding: 1em;
}

.zodiac-card:hover {
  transform: scale(1.05);
}

.zodiac-card img {
  width: 100px;
  height: auto;
}

footer {
  padding: 1em;
  background: #ffe4f2;
  font-size: 0.9em;
  color: #888;
}

/* モーダル用スタイル */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-content {
  background: #fff;
  padding: 2em;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 80%;
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
}

#modal-lucky {
  font-size: 1rem;
  margin-top: 0.5em;
  white-space: pre-line;
}


.hidden {
  display: none;
}

.modal-content {
  animation: fadeInUp 0.5s ease;
  position: relative;
}

@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media screen and (max-width: 768px) {
	.zodiac-container {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		justify-items: center;

		width: 100%;
		max-width: 100%;
		margin: 0 auto;
		padding: 10px;
	}
}

@media screen and (max-width: 479px) {
	.zodiac-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 480px) and (max-width: 767px) {
	.zodiac-container {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
	.zodiac-container {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media screen and (min-width: 1025px) {
	.zodiac-container {
		grid-template-columns: repeat(6, 1fr);
	}
}
	.zodiac-card {
		width: 80%;
		max-width: none;
	}	

