@charset "UTF-8";
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.cast {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  /* 背景画像 */
}
.cast::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/back.png") center center/cover no-repeat;
  transform: scale(1.03);
  filter: brightness(0.95) saturate(0.85);
  will-change: transform;
}
.cast {
  /* 白いベール */
}
.cast::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.28));
  z-index: 0;
}
.cast__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.08);
}
.cast__content {
  width: min(1200px, 100%);
}
.cast__title {
  margin-bottom: 3rem;
  text-align: center;
  color: #222;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

/* ==========================
    Grid
========================== */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* ==========================
    Card
========================== */
.cast-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(195, 155, 0, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cast-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}
.cast-card__image-wrapper {
  overflow: hidden;
}
.cast-card__image {
  width: 100%;
  aspect-ratio: 4/5;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center top;
     object-position: center top;
  display: block;
}
.cast-card__body {
  padding: 1.5rem;
}
.cast-card__name {
  margin: 0 0 0.5rem;
  color: #222;
  font-size: 1.3rem;
  font-weight: 700;
}
.cast-card__role {
  margin: 0 0 1rem;
  color: #4969d8;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.cast-card__description {
  margin: 0;
  color: #555;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ==========================
    Modal
========================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
}
.modal.is-open {
  display: flex;
}

.modal-content {
  position: relative;
  width: 60%;
}

#modal-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ==========================
    Responsive
========================== */
@media (max-width: 1024px) {
  .cast-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .cast__overlay {
    padding: 2rem 1rem;
  }
  .cast-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .cast-card__image {
    aspect-ratio: 1;
  }
  .cast-card__body {
    padding: 1.2rem;
  }
  .cast-card__name {
    font-size: 1.2rem;
  }
  .modal-content {
    width: 90%;
  }
}
@media (max-width: 480px) {
  .cast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}/*# sourceMappingURL=cast.css.map */