@font-face {
    font-family: "Sora";
    src: url("./fonts/Sora-Regular.ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.author-info {
    font-size: 14px;
    text-align: center;
    color: rgb(55, 65, 81);
    margin-top: auto;
    padding-bottom: 16px;
}

.author-info a {
    text-decoration: none;
}

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.card {
    display: flex;
    flex-direction: column;
    width: 336px;
    height: 400px;
    padding: 16px 16px 20px 16px;
    border-radius: 16px;
    box-shadow: 4px 4px 8px 8px #FAFAF9;
    overflow: hidden;
    background-color: #fff;
}

.card-img {
    width: 100%; /* 親の要素で幅いっぱい */ 
    object-fit: cover;
    border-radius: 8px;
}

.card-tag {
    align-self: flex-start;
    font-family: "Sora";
    font-size: 0.625rem;
    font-weight: bold;
    margin-top: 16px;
    padding: 6px 16px 6px 16px;
    color: #7C19EE;
    background-color: #F2EAFD;
    border-radius: 8px;
    text-align: center;
}

.card-title {
    font-family: "Sora";
    font-size: 1.125rem;
    margin-top: 16px;
    color: #20293A;
}

.card-desc {
    font-size: 0.875rem;
    color: #6C727F;
    margin-top: 8px;
    line-height: 1.5;
    flex-grow: 1;
}

hr {
    border: none;
    height: 1px;
    background-color: #E5EAF0;
    margin: 16px 0;
    width: 100%;
}

.card-author {
    font-size: 0.75rem;
    color: #6C727F;
    margin-top: auto;
    margin-bottom: 0;
}