@charset "UTF-8";
/* CSS Document */

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(to bottom right, rgba(255,245,247,0.8), rgba(255,241,193,0.8), rgba(255,211,165,0.8)),
  url("../img/bg.jpg") no-repeat center center / cover;;
  min-height: 100vh;
  display: flex;
  justify-content: right;
  align-items: center;
  padding: 0 5em;
  color: #333;
}

.container {
  max-width: 700px;
  width: 100%;
}

h1 {
  font-size: 10em;
  letter-spacing: 0.05em;
  margin: 0 0 .5em;
  color: #cc9a5a;
  font-family: "Snippet", sans-serif;
  opacity: .5;
  text-align: left;
  line-height: 1;
  display: table;
  width: 50%;
  font-weight: normal;
}

.episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.2em;
  font-family: "Snippet", sans-serif;
}

.episode-list a:first-child {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.4);
  font-size: .8em;
  text-align: left;
}

.episode {

 background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 1.2em;
  text-align: center;
  color: #333;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.episode:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgb(141 109 86 / 25%);
}

.ep-number {
  font-size: 1.8em;
  /* font-weight: 700; */
  color: #d8b383;
}

.is-about {
  background: rgba(255, 255, 255, 0.5);
  color: #555;
}

.is-about .ep-title {
  font-size: 0.9em;
  margin-top: 0.4em;
  color: #999;
}

/* モーダル全体（非表示） */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
}

/* モーダルの中身 */
.modal-content {
  background: white;
  border-radius: 12px;
  padding: 1.5em;
  width: 80%;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

/* 閉じるボタン */
.close-btn {
  float: right;
  font-size: 1.2em;
  cursor: pointer;
  color: #aaa;
}
.close-btn:hover {
  color: #333;
}

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  body { padding: 0 2em;}
  h1 {
    font-size: 5em;
  }
  .episode-list a:first-child { font-size: .8em;}
  .ep-number { font-size: 1.4em;}
}