@charset "UTF-8";

/*/ --------------- 
****** media break-point memomain
* phone ~767px
* table 768px ~ 1199px
* pc ~1200px
--------------- */

* {
    margin: 0;
    padding: 0;
    border: 0;
    text-decoration: none;
    line-height: 100%;
    list-style: none;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    word-break: break-all;
}

html {
    color: #333;
    font-family: "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", 
        "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", 
        "MS PGothic", sans-serif;
}


body * {
    box-sizing: border-box;
}

header {
    text-align: center;
    color: brown;
    font-size: 24px;
}

a {
    color: #333;
    text-decoration: none;
}

/*/ ----- navbar ----- */
.nav_container {
    display: flex;
    background-color: lightcoral;
    justify-content: flex-end;
    list-style-type: none;
    margin: 0 auto;
    width: 100%;
}

.nav_container .logo {
    color: #fff;
    margin-right: auto;
    padding: 5px;
}

.nav_container .nav {
    font-size: 16px;
    padding: 10px;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.nav_container .nav:hover {
    background-color: #555;
    color: aliceblue;
}

/*/ ----- main  ----- */

picture {
    background-repeat: no-repeat;
}

.card_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    flex: 0 1 480px;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    margin-top: 50px;
}

.card_container > *:first-child {
    background-color: lightsalmon;
}

.card_container > *:nth-child(2) {
    background-color: palevioletred;
}

.card_container > *:nth-child(3) {
    background-color: lightskyblue;
}

.card_container > *:nth-child(4) {
    background-color: lightsalmon;
}

.card_container > *:nth-child(5) {
    background-color: palevioletred;
}

.card_container > *:nth-child(6) {
    background-color: lightskyblue;
}

.card_container > *:nth-child(7) {
    background-color: lightsalmon;
}

.card_container > *:nth-child(8) {
    background-color: palevioletred;
}

.card_container > *:nth-child(9) {
    background-color: lightskyblue;
}

.card .card_img {
    display: flex;
    justify-content: center;
    justify-items: center;
}

.card .title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.card .desc {
    font-size: 14px;
    font-weight: 300;
    margin-top: 12px;
}

.card .desc::after {
    content: '...';
} 

.card a {
    font-size: 16px;
    font-weight: 300;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
}
/*/ 
.card a::after {
    content: '...';

} 
*/

/*/ ----- footer ----- */


@media all and (max-width: 767px){
    .nav_container {
        flex-direction: column;
    }
    .nav_container .logo {
        margin: auto;
    }

    .nav_container .nav {
        text-align:right
    }

    .card img {
        width: 100%;
    }
}
