@charset "utf-8";
/*
    Theme Name: My Sweets Styles
    Author: buzzlyhan
    Author URI: https://itami.info/
    Description: My Sweets Stylesブロックテーマ　問い合わせは、<a href="mailto:buzzlyhan@gmail.com">buzzlyhan@gmail.com</a>まで。
    Version: 1.0.0
*/

/** common **/
.wp-site-blocks{
    position: absolute;
    width: 100%;

    & .wp-block-cover{
        margin-block-start: 80px;
    }

    & main{
        padding: 0 0.5em;
    } 
}

.page,
.blog,
.archive,
.single{
    & .wp-block-cover{
        & h2{
            font-family: "Parisienne";
            font-size: 2em ;
            font-weight: normal;
        }
    }
}


/** header **/
header.wp-block-template-part{
    position: fixed;
    width: 100%;
    height: 80px;
    z-index: 200;
    background-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
    > .wp-block-group{
        margin: 14px;
    }
    & a.wp-block-navigation-item__content span{
        display: block;
        border-radius: 8px;
        line-height: 30px;
        padding: 0 8px;
        background-color: rgba(255, 50, 255, 0.6);
        color: #fff;
        font-size: 0.9em;
        transition-duration: 0.5s;
        &:hover{
            background-color: rgba(181, 0, 181, 0.6);
        }
    }
}

/** footer **/
footer{
    background-color: rgba(255, 0, 255, 0.5);
    padding: 3px 10px;
    box-shadow: 0px -2px 3px 0px rgba(0, 0, 0, 0.3);
    font-family: "Parisienne";
    text-align: center;
    line-height: 1em;
    color: rgba(255, 255, 255, 0.8);
}

/** Home(Welcome)**/
.home{
    & h2,
    & h3{
        position: relative;
        font-family: "Parisienne";
    }
    & h2{
        font-size: 5vw;
        margin: 0;
        color: #a92323;
    }
    & .greetings{
        line-height: 2em;
        font-size: 1.2em;
        margin-block-start: 2em;
        margin-block-end: 4em;
    }
    & h3{
        font-size: 3em;
        color: #555;
        &::after {
            content: '';
            position: relative;
            width: 3em;
            margin: auto;
            display: block;
            border: dashed 1px #a5a5a5;
        }
    }
    & .wp-block-cover{
        & h2{
            font-size: 3em !important;
        }
    }
    & .wp-block-columns.is-layout-flex{
        gap: 5vw;
        width: 80%;
        & .wp-element-caption{
            font-family: "Parisienne";
        }
    }
    & .wp-block-latest-posts{
        width: fit-content;
        line-height: 2em;
        & li{
            display: flex;
            flex-direction: row-reverse;
            text-align: left;
            justify-content: flex-end;
            & time{
                width: 10em;
                font-size: 1em;
            }
        }
    }
}


/** Gallery**/
/* No need to set the style */


/** Blog Archive **/
.blog,
.archive{
    & .wp-block-columns-is-layout-flex {
        gap: 1em;

        & li.wp-block-post {
            margin-block-end: 3em;

            & h2{
                margin-block-start: 0;
                margin-block-end: 0;

                & a{
                    text-decoration: none;
                }
            }
        } 
        
        & .wp-block-calendar,
        & .wp-block-archives-list{
            margin-block-start: 2em;
        }
    }
}

/** Contact **/
.wpcf7 form {
    display: block;
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;

        & input[type="text"],
        & input[type="email"],
        & input[type="tel"],
        & input[type="submit"] {
            width: 100%;
            height: 2em;
            border: 1px solid #a5a5a5;
            padding: 0 0.8em;
            border-radius: 10px;
            color: #525252;
            font-size: 1.5em;
        }

        & textarea {
            width: 100%;
            height: 10em;
            border: 1px solid #a5a5a5;
            margin-block-end: 1em;
            padding: 5px;
            border-radius: 10px;
            color: #525252;
            font-size: 1.5em;
        }

        & input[type="submit"] {
            display: block;
            width: 80%;
            margin: auto;
            background-color: #968c8c;
            color: #fff;
            height: 2em;
            line-height: 1em;
        }
}

/** Search **/
.search{
    & main{
        padding-block-end:50px;

        & ul{
            margin-block-start: 2em;
            & li{
                display: grid;
                grid-template-columns: 1fr 1fr;
                align-items: center;
                & h2{
                    font-size: 1.5em;
                    font-weight: normal;
                    margin: 0;
                }
            }
        }
    }
}

/** 404 **/
.error404{
    & main{
        padding-block-end:50px;
    }
}