﻿:root {
    --surface-color: #fff;
    --curve: 40;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #fef8f8;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 5vw;
    padding: 0;
    list-style-type: none;

    display: flex;
    justify-content: center;
}

.cardtour {
    position: relative;
    display: block;
    height: 100%;
    border-radius: calc(var(--curve) * 1px);
    overflow: hidden;
    text-decoration: none;
    max-width: 400px;
    max-height: 300px;
    aspect-ratio: 19/16;
}

.card__image {
    width: 100%;
    height: auto;
}

.card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    border-radius: calc(var(--curve) * 1px);
    background-color: var(--surface-color);
    transform: translateY(100%);
    transition: .2s ease-in-out;
}

.cardtour:hover .card__overlay {
    transform: translateY(0);
}

.card__overlay p {
    font-size: 14px;
}

.card__header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2em;
    padding: 2em;
    border-radius: calc(var(--curve) * 1px) 0 0 0;
    background-color: var(--surface-color);
    transform: translateY(-100%);
    transition: .2s ease-in-out;
}

.card__arc {
    width: 80px;
    height: 80px;
    position: absolute;
    bottom: 100%;
    right: 0;
    z-index: 1;
}

.card__arc path {
    fill: var(--surface-color);
    d: path("M 40 80 c 22 0 40 -22 40 -40 v 40 Z");
}

.cardtour:hover .card__header {
    transform: translateY(0);
}

.card__thumb {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.card__title {
    font-size: 1em;
    margin: 0 0 .3em;
    color: #6A515E;
}

.card__tagline {
    display: block;
    margin: 1em 0;
    font-family: "MockFlowFont";
    font-size: .8em;
    color: #D7BDCA;
}

.card__status {
    font-size: .8em;
    color: #5955D7;
}

.card__description {
    padding: 0 2em 1em;
    margin: 0;
    color: #4E3AAC;
    font-family: "MockFlowFont";
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.card__previous {
    padding: 0 2em 1em;
    font-size: 0.9em;
    color: #4E3AAC;
}

.previous-title-card {
    font-weight: 600;
    display: block;
    margin-bottom: 0.3em;
    color: #6A515E;
}

.previous-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.previous-link {
    background: #e8e6ff;
    color: #5955D7;
    text-decoration: none;
    padding: 0.2em 0.6em;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .previous-link:hover {
        background: #5955D7;
        color: white;
        transform: scale(1.05);
    }

@media (max-width: 900px){

}

@media (max-width: 600px){
    .cards {
        margin: 4vw 2vw;
    }
}