@charset "UTF-8";

html {
    font-size: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

:root {
    /*CSSカスタムプロパティ*/
    --main: #EAC329;
    --main2: #618A67;
    --bg: #F5F2E6;
    --font: #1F1D18;
    --white: #FAF9F5;
    --box-shadow: rgb(70 70 70/25%);
    --header-height: 100px;
}

body {
    font-family: "Zen Maru Gothic", sans-serif;
    color: var(--font);
    line-height: 1.5;
    background-color: var(--bg);
}

img {
    max-width: 100%;
    /*親要素以上はみ出ないように*/
    vertical-align: bottom;
    /*下にわずかな余白ができるのを防ぐ*/
}

ul {
    list-style: none;
}

a {
    color: inherit;
    /*継承*/
    text-decoration: none;
}

.container {
    max-width: calc(1440px + 16px*2);
    /*左右余白（padding分）含めた最大幅*/
    margin: 0 auto;
    padding: 0 16px;
}


/***ローディング***/
.loading {
    position: fixed;
    background-color: var(--main2);
    width: 100%;
    height: 100vh;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 60px;
    justify-content: center;
    align-items: center;
}

.loading-gif {
    width: 350px;
}

.loading-text {
    font-size: 2rem;
    color: var(--white);
    font-weight: 700;
}

/***header***/
#header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: var(--bg);
    box-shadow: 0 4px 7px var(--box-shadow);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.logo {
    height: 50px;
}

.logo a {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

#header .logo a:hover {
    scale: 107%;
}

.logo img {
    height: 100%;
}

.logo span {
    font-size: 16px;
    line-height: 1.25;
}

.g-nav ul {
    display: flex;
    align-items: center;
    gap: min(80px, 5vw);
}

.g-nav li {
    font-weight: 500;
}

.g-nav li a {
    font-size: 1.125rem;
    transition: all 0.2s;
    display: block;
    transform-origin: center;
    position: relative;
}

.g-nav li a:hover {
    scale: 107%;
}


.g-nav li a::before {
    position: absolute;
    content: "";
    bottom: -1px;
    left: -2px;
    width: calc(100% + 2px * 2);
    height: 3px;
    border-radius: 3px;
    background: var(--main);
    scale: 0;
    transform-origin: center left;
    transition: all 0.3s;
}


.g-nav li a:hover::before {
    scale: 100%;
}

#hb {
    display: none;
}

.drawer {
    display: none;
}


/**main***/
.tag-explain img {
    height: 50px;
}

.tag-explain li {
    background-color: var(--white);
    width: fit-content;
    padding: 10px;
    border-radius: 10px;
}

.tag-explain {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 70px;
    gap: 10px;

}




.test-sect-title {
    font-weight: 500;
    text-align: center;
    margin-bottom: 40px;
    font-size: 3rem;
}

.test-sect-title span {
    display: inline-block;
    position: relative;
}

.test-sect-title span::before {
    position: absolute;
    content: "";
    width: calc(100% + 12px *2);
    height: 0.25em;
    background-color: var(--main);
    left: -12px;
    bottom: 2px;
    border-radius: 10px;
    z-index: -1;
}

.test-sect-title span:nth-child(1) {
    margin-right: 150px;
}

.test-sect-title span:nth-child(2) {
    margin-left: 150px;
}


/**about**/
main {
    padding-top: calc(var(--header-height) + 30px);
}

section {
    margin-bottom: 140px;
}



.sect-title {
    font-weight: 500;
    text-align: center;
    position: relative;
    width: fit-content;
    margin: 0 auto 40px;
    font-size: 3rem;
    margin-bottom: 60px;
}

.sect-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 12px *2);
    height: 0.25em;
    background-color: var(--main);
    left: -12px;
    bottom: 2px;
    border-radius: 10px;
    z-index: -1;
}



/**list**/
.sect-title1 {
    width: fit-content;
    position: relative;
    margin-bottom: 40px;
    font-size: 2.625rem;
    font-weight: 500;
}

.sect-title1::before {
    position: absolute;
    content: "";
    width: calc(100% + 8px *2);
    height: 0.25em;
    background-color: var(--main);
    left: -8px;
    bottom: 2px;
    border-radius: 10px;
    z-index: -1;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5%;

}

.list-grid>li {
    background-color: var(--white);
    border-radius: 15px;
    border: 2px solid var(--main2);
    padding: 40px 30px 25px;
    box-shadow: 0 3px 6px var(--box-shadow);
    margin-bottom: 75px;
    transition: scale 0.2s;
}

.list-grid li:hover {
    scale: 105%;
}

.list-grid li>a {
    display: block;
}


.list-grid h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.list-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 25px;
}

.comment {
    display: flex;
    gap: 20px;
    align-items: start;
    margin-bottom: 30px;
}

.comment-chara {
    width: 50px;
}

.comment-text {
    background-color: #F6F0D6;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.125rem;
    font-weight: 500;
    position: relative;
}

.comment-text::before {
    position: absolute;
    content: "";
    width: 18px;
    height: 18px;
    background-color: inherit;
    clip-path: polygon(100% 0%, 0% 50%, 100% 100%);
    left: -14px;
    top: 20px;
}

.tag-list {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.tag-list img {
    height: 35px;
}

.readmore {
    display: block;
    text-align: center;
    text-decoration: underline;
    font-size: 1.25rem;
}

.btn {
    display: block;
    width: fit-content;
    background-color: var(--main);
    padding: 20px 80px;
    margin: 0 auto;
    border-radius: 78px;
    font-weight: 900;
    font-size: 1.5rem;
    -webkit-text-stroke-width: 0.4px;
    -webkit-text-stroke-color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 2;
    color: var(--font);
}

.btn::before {
    position: absolute;
    content: "";
    clip-path: circle();
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #FBE386;
    top: 50%;
    left: 0;
    translate: 0% -50%;
    z-index: -1;
    scale: 0.1;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.btn:hover::before {
    opacity: 1;
    scale: 1;
}



/***footer***/
#footer {
    background-color: var(--main2);
    padding: 20px 0 20px;
    color: var(--white);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.footer-chara {
    width: 150px;
}

.copy {
    text-align: right;
}


@media screen and (max-width:834px) {
    :root {
        --header-height: 85px;
    }

    /***ローディング画面***/
    .loading {
        gap: 40px;
    }

    .loading-gif {
        width: 220px;
    }

    .loading-text {
        font-size: 1.5rem;
    }

    /*header*/
    #header {
        padding: 15px 0;
    }

    .g-nav {
        display: none;
    }

    #hb {
        display: block;
        width: 50px;
        height: 27px;
        position: absolute;
        right: 16px;
        top: 50%;
        translate: 0 -50%;
        cursor: pointer;
        z-index: 100;
    }

    #hb span,
    #hb::before,
    #hb::after {
        position: absolute;
        content: "";
        height: 3px;
        width: 100%;
        background-color: var(--font);
        left: 0;
        border-radius: 3px;
        transition: all 0.3s;
        transform-origin: center;
    }

    #hb span {
        top: 0;
    }

    #hb::before {
        top: 50%;
        translate: 0 -50%;
    }

    #hb::after {
        bottom: 0;
    }

    .open #hb span {
        top: 50%;
        translate: 0 -50%;
        rotate: 40deg;
    }

    .open #hb::before {
        opacity: 0;
    }

    .open #hb::after {
        bottom: 50%;
        translate: 0 50%;
        rotate: -40deg;
    }

    .open .drawer {
        translate: 0 0;
    }

    .drawer {
        display: block;
        position: absolute;
        width: 100%;
        height: 100vh;
        z-index: 90;
        top: 0;
        background-color: var(--bg);
        padding: 16px 0 16px;
        transition: all 0.3s;
        translate: 100% 0;
    }

    .drawer .logo {
        margin: 0 0 30px 16px;
        width: fit-content;
    }

    .drawer nav li:first-child a {
        border-top: 1px solid var(--font);
    }

    .drawer nav a {
        display: block;
        font-size: 1.25rem;
        padding: 20px 36px 20px 16px;
        border-bottom: 1px solid var(--font);
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 500;
    }

    .drawer nav a img {
        height: 20px;
        transition: translate 0.2s;
    }

    .drawer nav a:hover img {
        translate: 15px 0;
    }

    /*main*/

    section {
        margin-bottom: 100px;
    }

    .sect-title {
        font-size: 1.875rem;
        margin-bottom: 40px;
    }

    .tag-explain {
        margin-bottom: 50px;
    }

    .tag-explain img {
        height: 35px;
    }

    .tag-explain li {
        border-radius: 6px;
        padding: 6px;
    }

    .sect-title1 {
        font-size: 1.625rem;
        margin-bottom: 30px;
    }

    .list-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 55px;
        row-gap: 30px;
        column-gap: 20px;
    }

    .list-grid>li {
        padding: 30px 25px 15px;
        margin: 0;
        min-height: 0;
        height: 100%;
    }

    /*footer*/
    #footer {
        padding: 30px 0;
    }

    .footer-chara {
        display: none;
    }
}


@media screen and (max-width:600px) {
    .list-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 25px;
    }
}