.body{
    overflow-x: hidden;
}

.caststaff-section{
    width: 100%;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  padding: 30px 0px;
  margin: 0 auto;
}

:root {
    --main-color: #df5446;
    --base-color: #F7CDC2;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  .container h2 {
    text-align: center;
    color: var(--main-color);
    margin-bottom: 24px;
    font-size: 2em;
  }
  .character {
    display: grid;
    grid-template-columns: 500px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 8px;
    border-bottom: 1px solid var(--main-color);
    padding: 16px 0;
  }
  .character:last-child { border-bottom: none; }
  .top { display: contents; }
  .character img {
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }
  .info {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .info h3 {
    margin: 0;
    color: var(--main-color);
    font-size: 1.8em;
  }
  .info h4 {
    margin: 4px 0 0;
    color: #555;
    font-size: 1.2em;
    font-weight: normal;
  }
  .description {
    grid-row: 2;
    grid-column: 2;
    margin: 0;
    color: #333;
    line-height: 1.5;
    text-align: left;
    font-size: 2rem;
    max-width: 500px;
  }
  .toggle { display: none; }

  @media (max-width: 768px) {
    .character { display: block; padding-bottom: 8px; }
    .top {
      display: flex;
      align-items: center;
      position: relative;
    }
    .top img {
      width: 100%;
      height: auto;
      object-fit: cover;
      border-radius: 8px;
      margin: 0;
      flex-shrink: 0;
    }

    .top .info {
      width: 55%;
      padding-left: 16px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .top .info h3,
    .top .info h4 { margin: 0; }
    .top .toggle {
      display: flex;
      position: absolute;
      bottom: 8px;
      right: 16px;
      background: none;
      border: none;
      color: var(--main-color);
      font-size: 50px;
      line-height: 1;
      padding: 0;
      cursor: pointer;
      transition: transform 0.3s ease;
      background-color: rgba(255, 237, 223, 0.5);
      border-radius: 50%;
    }
    .top .toggle.opened {
      transform: rotate(180deg);
    }
    .description {
      font-size: 1rem;
      margin: 8px 16px 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
    .character.opened .description {
      max-height: 300px;
    }
  }
