@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;
}

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;
}

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;
    position: fixed;
    top: 0;
    width: 100%;
}

.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) {
    top: 50%;
    transform: rotate(135deg);
}

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

.header-nav {
    display: none;
}

.header-nav a {
    text-decoration: 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);
}

.top-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.top-container img {
    border-radius: 10px;
}

/* 写真用の設定 */

td {
    display: flex;
    flex-direction: column;
    gap: var(--space);
}

@media screen and (min-width: 576px) {
    td {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

td p {
    margin-bottom: 0px !important;
}

td p img{
    margin: 0 !important;
    padding: 0;
    width: 100%;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ここまで */

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

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

footer {
    background-color: var(--beige);
    color: var(--black);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 80px;
    padding: var(--space);
    padding-bottom: 60px;
}

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

.grid-container {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    /* 全体の横幅は100% */
}

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

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

article p {
    line-height: 1.8;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

article hr {
    margin-top: 40px;
    margin-bottom: 40px;
}

article h3 {
    font-size: 1.7rem;
    margin-top: 70px;
    margin-bottom: 30px;
    font-weight: 600;
}

article blockquote {
    padding: 20px;
    background-color: var(--gray);
    margin: 20px 0;
    border-radius: 10px;
}

article h4 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 20px;
    margin-top: 40px;
    text-decoration: underline;
}

article img {
    margin: 40px auto;
    width: 80%;
    border-radius: 10px;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.50);
}

ol {
    margin-left: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.post_navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.move-btn {
    margin-top: 40px;
    display: inline-block;
    text-decoration: none;
    border: 1px solid var(--black);
    background-color: var(--white);
    padding: 8px 13px;
    box-shadow: 2px 2px 0 0 var(--black);
    border-radius: 7px;
    font-size: 1.2rem;
}

.intro {
    align-items: center;
    border: 1px solid var(--black);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin: var(--space);
}

.intro-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.icon {
    border-radius: 100%;
    width: 100px;
    height: 100px;
}

.intro-sns {
    align-items: center;
    display: flex;
    gap: 30px;
}

.intro-sns svg {
    width: 25px;
}

.recommend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.rec-post {
    display: flex;
    gap: 10px;
    text-decoration: none;
}

.rec-post img {
    width: 145px;
    height: 76px;
    border-radius: 6px;
}


.recommend-wrapper {
    padding: var(--space);
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.title {
    font-size: 1.2rem;
    font-weight: 500;
}

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

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

.share-btn svg {
    width: 30px;
}

.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 0px 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;
}

@keyframes rainbow-shadow {
    0% {
        box-shadow: 0 0 10px 2px #fb0094;
    }
    14% {
        box-shadow: 0 0 10px 2px orange;
    }
    28% {
        box-shadow: 0 0 10px 2px yellow;
    }
    42% {
        box-shadow: 0 0 10px 2px green;
    }
    57% {
        box-shadow: 0 0 10px 2px blue;
    }
    71% {
        box-shadow: 0 0 10px 2px indigo;
    }
    85% {
        box-shadow: 0 0 10px 2px violet;
    }
    100% {
        box-shadow: 0 0 10px 2px red;
    }
}

.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;
    text-decoration: none;
}

.mail-submit-btn:hover {
    animation: rainbow-shadow 2s infinite;
    border: 1px solid #000;
}

.mail-submit-btn a {
    text-decoration-line: none;
}

#copyButton {
    background: none;
    border: none;
}

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

    .top-items {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    .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: 80px;
    }

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

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

    .recommend {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width:992px) {
    #container {
        flex-direction: column;
        display: flex;
        align-items: center;
    }

    main {
        width: 992px;
        padding-bottom: 0;
    }

    .top-container {
        gap: 40px;
    }

    article p {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2.3rem;
    }

    .date {
        font-size: 1.2rem;
    }

    .category {
        font-size: 1rem;
    }

    .intro {
        margin-bottom: 20px;
        width: 832px;
    }

    .move-btn {
        font-size: 1.5rem;
        padding: 10px 20px;
    }

    .recommend-wrapper {
        margin-top: 0;
    }

    .intro {
        flex-direction: row;
        padding: 40px;
        gap: 40px;
    }

    .intro-right {
        align-items: start;
    }

    .intro-left {
        width: 50%;
    }

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

    footer {
        width: 100%;
    }

    footer span {
        font-size: 1rem;
    }

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

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

@media screen and (min-width:1200px) {
    header {
        padding: 40px var(--space);
    }
}
