@font-face {
    font-family: fot-tsukubrdgothic-std;
    font-weight: bold;
    src: url("/src/font/b.otf") format("opentype");
}

@font-face {
    font-family: fot-tsukubrdgothic-std;
    src: url("/src/font/r.otf") format("opentype");
}

:root {
    --black: #000;
    --gray: #999;
    --space: 20px;
    --white: #f2f0e8ff;
    --beige: #e4decb;
}

#container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

html {
    font-size: 16px;
    position: relative;
    width: 100vw;
}

body {
    background-color: var(--white);
    color: var(--black);
    font-family: fot-tsukubrdgothic-std;
    font-style: normal;
}

h2 {
    font-size: 1.5rem;
}

select {
    background-color: var(--white);
    padding: 5px 10px;
    border-radius: 10px;
}

.pagination{
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.recommend-wrapper, .intro {
    display: none;
}

header {
    align-items: center;
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: var(--space);
    padding-top: 20px;
    padding-bottom: 20px;
    top: 0;
    width: 100%;
}

#header.fixed {
    position: fixed;
}

.logo {
    width: 180px;
}

.hamburger {
    background: none;
    border: none;
    height: 20px;
    position: relative;
    width: 40px;
    z-index: 100;
}

.bar {
    background-color: var(--black);
    display: block;
    height: 2px;
    position: absolute;
    transition: top 0.24s, transform 0.24s, opacity 0.24s;
    width: 100%;
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: 100%;
}

.bar.active:nth-child(1) {
    background-color: var(--black);
    top: 50%;
    transform: rotate(135deg);
}

.bar.active:nth-child(2) {
    background-color: var(--black);
    top: 50%;
    transform: rotate(-135deg);
}

.header-nav {
    display: none;
}

.header-nav span {
    border-top: 1px solid var(--black);
    max-width: 600px;
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: var(--space);
    padding-top: var(--space);
    width: 100%;
}

.header-nav.active {
    align-items: center;
    color: var(--black);
    display: flex;
    flex-direction: column;
    gap: var(--space);
    height: 100vh;
    justify-content: center;
    left: 0;
    padding-left: 40px;
    padding-right: 40px;
    position: absolute;
    text-align: center;
    top: 0;
    width: 100vw;
    z-index: 98;
}

.header-nav.active a {
    font-size: 1.7rem;
    font-weight: 600;
}

.nav-sns {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    gap: 20px;
}

.nav-sns a {
    align-items: center;
    border-radius: 100%;
    display: flex;
    height: 50px;
    padding: 10px;
    width: 50px;
}

/* reference:https://coco-factory.jp/ugokuweb/move01/5-1-24/ */
.circle-bg {
    background: var(--beige);
    border-radius: 50%;
    height: 100px;
    left: calc(50% - 50px);
    position: fixed;
    top: calc(50% - 50px);
    transform: scale(0);
    transition: all .6s;
    width: 100px;
    z-index: 3;
}

.circle-bg.active {
    transform: scale(50);
}

main {
    margin-top: 80px;
    padding: var(--space) !important;
}

main a {
    text-decoration: none;
}

.filter-date select {
    background-color: var(--white);
    height: 35px;
    padding: 0 10px;
    border: none;
    border-bottom: 2px solid var(--black);
    border-radius: 0;
}

.filter-taxonomy select {
    background-color: var(--white);
    height: 35px;
    padding: 0 10px;
    border: none;
    border-bottom: 2px solid var(--black);
    border-radius: 0;
}

.filter-search input {
    background-color: var(--white);
    border: none;
    border-bottom: 2px solid var(--black);
    height: 35px;
    padding: 0 10px;
    border-radius: 0;
}

.filter-search form {
    display: flex;
    gap: 20px;
    border-radius: 0;
}

.submit-btn {
    border: 2px solid var(--black) !important;
    border-radius: 7px !important;
    background-color: var(--white);
    box-shadow: 1px 1px 0 0 var(--black);
}

::placeholder {
    color: var(--gray);
}

.aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aside-top {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.top-title {
    margin-bottom: 20px;
}

.article-wrapper {
    margin-top: 40px;
    display: grid;
    gap: 40px;
}

.title {
    font-size: 1.3rem;
    font-weight: bold;
}

.post {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}

.post-contents {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post img {
    border-radius: 10px;
    width: 100%;
}

.category {
    border: 1px solid var(--black);
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 5px 10px;
}

.elements {
    display: flex;
    align-items: center;
    gap: 20px;
}

footer {
    width: 100%;
    background-color: var(--beige);
    color: var(--black);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    padding-left: var(--space);
    padding-right: var(--space);
    padding-bottom: var(--space);
    padding-bottom: 60px;
}

footer span {
    font-size: 0.6rem;
    margin-top: var(--space);
    text-align: center;
}


.grid-container {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.list {
    display: flex;
    flex-direction: column;
}

.list a {
    font-size: 0.8rem;
}

.mail-wrapper {
    margin: 100px 20px 0 20px;
    border: 1px solid var(--black);
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 10px;
    padding: 40px 20px 40px 20px;
}

.mail-wrapper h2 {
    margin-bottom: 20px;
}

.mail-wrapper h3 {
    margin-bottom: 40px;
}

.mail-wrapper input {
    border: 1px solid var(--black);
    background-color: var(--white);
}

.mail-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mail-wrapper svg {
    width: 100px;
    height: 100px;
}

.mail-text-input {
    width: 250px;
    height: 44px;
    text-align: center;
}

.btn {
    background-color: var(--white);
    border: 1px solid var(--black);
    border-radius: 10px;
    box-shadow: 2.5px 2.5px 0 0 var(--black);
    display: inline-block;
    padding: 10px 20px;
}

@media screen and (min-width:576px) {
    :root {
        --space: 30px;
    }

    .article-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .mail-wrapper form {
        flex-direction: row;
    }

    .mail-wrapper {
        padding: 40px 30px 40px 30px;
        margin-left: 60px;
        margin-right: 60px;
    }

    .mail-wrapper form {
        margin-left: 30px;
    }
}

@media screen and (min-width:768px) {
    :root {
        --space: 40px;
    }

    .header-nav.active {
        gap: 30px;
    }

    .header-nav span {
        margin-top: 30px;
        padding-top: 30px;
    }
}

@media screen and (min-width:992px) {
    .article-wrapper {
        grid-template-columns: 1fr 1fr 1fr;
    }

    :root {
        --space: 60px;
    }

    h2 {
        font-size: 2rem;
    }

    .filter-date select {
        height: 50px;
        font-size: 1.3rem;
    }

    .filter-taxonomy select {
        background-color: var(--white);
        height: 50px;
        font-size: 1.3rem;
        border: none;
        border-bottom: 2px solid var(--black);
    }

    .filter-search input {
        background-color: var(--white);
        border: none;
        border-bottom: 2px solid var(--black);
        height: 50px;
        font-size: 1.3rem;
    }

    .mail-wrapper {
        width: 880px;
        padding: 50px 200px;
    }

}

@media screen and (min-width:1200px) {
    :root {
        --space: 80px;
    }

    footer span {
        font-size: 1rem;
    }

    .logo, .logo-top {
        font-size: 2rem;
    }

    .list a {
        font-size: 1rem;
    }

    h4 {
        font-size: 1.3rem;
    }

    main {
        padding-top: 60px;
    }

    .article-wrapper {
        margin-top: 80px;
    }

    header {
        padding: 40px var(--space);
    }
}

@media screen and (min-width:1400px) {
    :root {
        --space: 120px;
    }

    .article-wrapper {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}