@charset "utf8";

:root {
    --font-family-jp: "Noto Sans JP";
    --font-color: #2e2930;
    --line-color: #adadad;
    --bg-color-primary: #dddcd6;
    --category-bg-color: #316745;
    --ingredient-bg-color: #165e83;
}

html {
    font-size: 16px;
    color: var(--font-color);
    background-color: var(--bg-color-primary);
}

html[lang=en_US], html[lang=es_ES] {
    font-family: var(--font-family-jp);
}

html[lang=en_US] h2, html[lang=es_ES] h2 {
    font-size: 1.5rem;
}

html[lang=ko_KR] {
    font-family: "Noto Sans KR";
}

html[lang=ko_KR] h2 {
    font-size: 1.5rem;
}

html[lang=zh_CN] h2 {
    font-family: "Noto Sans CJK TC";
    font-size: 1.5rem;
}

html[lang=zh_CN] p {
    font-family: "Gen Jyuu Gothic";
}

.main-header {
    margin: 1rem 0;
}

header h1 {
    font-size: 2rem;
}

h2 {
    font-weight: bold;
}
.mv {
    margin-bottom: .5rem;
}

.mv img {
    width: 100%;
}

.heading--decorated::before {
    content: "◆";
    display: inline-block;
    font-size: 1em;
    margin-right: 0.5em;
}

section {
    margin: 2rem 0;
}

.container {
    width: 1080px;
    margin: 0 auto;
}

.page .container {
    width: 28rem;
}

.page h1 {
    text-align: center;
}

.page .content p {
    line-height: 1.8;
    margin: 2rem 0;
}

.site-title, .site-title__en {
    font-family: var(--font-family-jp);
    text-align: center;
}

.site-title {
    font-size: 2rem;
}

.site-title__en {
    font-size: 1.2rem;
}

.content {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    
}

main {
  flex: 1;
}

.item-name {
    font-family: var(--font-family-jp);
}

.kind-of {
    display: grid;
    grid-template-columns: 11.5rem 1fr;
    column-gap: 1rem;
    row-gap: 0.25rem; 
    margin: 1rem 0;
}

.kind-of dd {
    display: flex;
    align-items: center;
}

.description {
    font-size: .8rem;
}

.label {
    font-size: .8rem;
    color: #f8fbf8;
    display: inline-block;
    width: 100%;
    text-align: center;
    line-height: 1;
    padding: 8px 0;
}

.label--category {
    background-color: var(--category-bg-color);

}

.label--ingredient {
    background-color: var(--ingredient-bg-color);
}

.list-area {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: .3rem;
}

.list-area__tag a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

header .list-area.list-area__tag {
    margin: 1rem 0;
}

.single .list-area:not(.list-area__footer) li:not(:last-child)::after {
    content: ' 、';
    display: inline-block;
    margin-right: -0.5rem;
    margin-left: 0.2rem;
}

.sidebar {
    width: 420px;
}

.term-area .list-area {
    margin-bottom: 3rem;
}

.tag-area {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    column-gap: 1rem;
    row-gap: 0.25rem;
    margin: 1rem 0;
}

.mark__tag {
    font-size: 3rem;
}

footer {
    margin: 1.8rem 0;
}

.list-area__footer {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 1rem;
}

.copyright {
    text-align: center;
    font-size: .8rem;
}

.archive-area {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1.25%;
    row-gap: 13.5px;
}

.card {
    width: 19%;
    aspect-ratio: 52 / 73;
    border: solid 1px var(--line-color);
    position: relative;
}

.card .card-header {
    padding: 2px 4px;
}

.post-title {
    font-size: 1.2rem;
}

.post-excerpt {
    margin-top: .5rem;
    font-size: .9rem;
}

.post-thumbnail {
    position: absolute;
    bottom: 0;
}


/* スマホ */
@media (max-width: 1023px) {

    .container, .page .container {
        width: 90vw;
        margin: 0 auto;
    }

    .single .content {
        display: block;
    }

    .sidebar {
        width: 100%;
        margin-top: 2rem;
    }

    .item-name span {
        display: block;
        font-size: 1.25rem;
    }
    
    .single p:not(.copyright) {
        font-size: 1.25rem;
    }

    .kind-of {
        grid-template-columns: 100px 1fr;
        column-gap: .5rem;
    }

    .list-area__footer {
        margin-bottom: 1rem;
    }

    .list-area__footer a {
        font-size: 1.25rem;
    }

    .archive-area {
        gap: 1.5rem;
    }

    .card {
        width: 100%;
    }

    .card .card-header {
        padding: .6rem 1rem;
    }

    .post-title {
        font-size: 3rem;
    }

    .post-excerpt {
        font-size: 1.45rem;
    }

    .page .content p {
        font-size: 1.4rem;
        line-height: 1.6;
    }
}


/* タブレット（縦） */
@media (min-width: 768px) and (max-width: 1023px) {
    .archive-area {
        column-gap: 2%;
        row-gap: 14.5px;
    }

    .card {
        width: 32%;
    }

    .card .card-header {
        padding: .1rem .5rem;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .post-excerpt {
        margin-top: 0;
        font-size: 1.15rem;
	    line-height: 1.35;
    }

    .kind-of {
        grid-template-columns: 300px 1fr;
        column-gap: .5rem;
    }

    .label, .kind-of dd {
        font-size: 1.25rem;
    }

    .single p:not(.copyright), .single .list-area:not(.list-area__footer) a, .list-area__tag span {
        font-size: 1.5rem;
    }

}
