/* Reset-ish */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

/* body は min-height に。height: 100% だと body が1画面で止まり、
   sticky ヘッダーが途中ではずれるため */
body {
    min-height: 100%;
}


body {
    margin: 0;
    width: 100%;
    font-family: "Zen Maru Gothic", system-ui, sans-serif;
    line-height: 1.8;
    background-color: #f0eeee;
    color: #000;
    display: flex;
    flex-direction: column;
}

/* ヘッダー・フッターを body 幅いっぱいに（flex で縮まないように） */
body > header.site-header,
body > footer.site-footer {
    width: 100%;
    flex-shrink: 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

body > main {
    flex: 1;
    width: 100%;
}

.article-nya-transition {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.18s ease;
}

.article-nya-transition span {
    position: relative;
    display: block;
    transform: scale(0.72) rotate(-8deg);
    transition: transform 0.2s ease;
}

.article-nya-transition img {
    display: block;
    width: 8.6rem;
    max-width: 100%;
    height: auto;
}

.article-nya-transition.is-show {
    opacity: 1;
}

.article-nya-transition.is-show span {
    transform: scale(1) rotate(-8deg);
}

@media (max-width: 600px) {
    .article-nya-transition img {
        width: 7.2rem;
    }
}
