@charset "UTF-8";

/* 全体設定
------------------------------*/

html {
    font-size: 100%;
}
body {
    margin: 8px;
    background-color: #f8f8f8;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
}



/* 個別設定
------------------------------*/

header h1 {
    font-size: 2rem;
    margin: 36px 0;
    font-weight: bold;
    text-align: center;
}

section#itemList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    justify-items: center;

    max-width: 1200px;
    margin: 0 auto 24px;
}
section#itemList div.item {
    display: grid;
    border: 1px solid #333;
    border-radius: 2rem;
    width: 300px;
    height: 300px;
    padding: 30px 0 20px 0;
    justify-items: center;

    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5);
}
section#itemList div.item:hover {
    opacity: 0.8;
}
section#itemList div.item img {
    width: 150px;
    height: 150px;
    margin-bottom: 16px;
}
section#itemList div.item p.title {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

p.l-txt {
    font-size: 2rem;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 12px;
}
p.r-txt {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    text-align: center;
}




/* #bigPhoto
------------------------------*/

section#bigPhoto {
    display: none;
    padding: 32px;

    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(0 0 0 /50%);  /* 今の背景色の書き方はこれが最近の流行りみたい... */
}

section#bigPhoto p button#close {
    color: #333;
    background-color: #f1f1f1;
    border-radius: 6px;
    padding: 8px 16px;
    margin-bottom: 16px;
}
section#bigPhoto img.bigImagePhoto {
    margin-bottom: 16px;
    width: 500px;
    height: 500px;
}
section#bigPhoto p.bigImageCaption {
    color: #fff;
}



/* アニメーション
------------------------------*/

/* ふわっとコンテンツを表示
------------------------------*/

header h1,
section.animation {
    animation: fade-in 3s;
    animation-fill-mode: forwards;
}
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* テキストの点滅
------------------------------*/

p.l-txt,
p.r-txt {
    animation: blinking 1.5s ease-in-out infinite alternate;
}
@keyframes blinking {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}