body{
    display: flex;
    justify-content: center; /* 横方向の中央揃え */
    align-items: center;     /* 縦方向の中央揃え */
    height: 100vh;
}

.content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 80%;
    text-align: center;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 4px 4px 16px -4px #4c444d;
    font-family: "fot-tsukuardgothic-std", sans-serif;
    color: #4c444d;
}

h1{
    margin-top:-0.5em ;
}


.image{
    width:50%;
    margin: 0 auto;
}

.image img{
    width: 100%;
    height: auto;
}

.text{
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

#randomText{
    font-weight: bold;
    color: #cc6666;
    font-size: 1.8em;
    background-image: linear-gradient(rgba(0 0 0/0)60%,#eff2b4 60%);
    font-family: "zen-maru-gothic", sans-serif;
}

button {
    width: 35%;
    height: 15%;
    background-color: #d8b1b2;
    color: #4c444d;
    border: none;
    border-radius: 4px;
    padding: 0.5em 1em;
    font-size: 1.5em;
    font-weight: bold;
    font-family: "fot-tsukuardgothic-std", sans-serif;
}




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

  /* 画像、テキスト、ボタンにアニメーションを適用 */
#randomImage, .text, button {
    animation: fadeInUp 0.8s forwards;
  }
  

  @media (max-width: 768px) {

    .content{
        height: 100%;
        width: 100%;

    }

    h1{
        font-size: 1.5em;
    }

    .image{
        width: 100%;
    }
    .text{
        display:block;
    }
    button {
        width: 80%;
        height: 15%;
        font-size: 1.2em;
  }

}