:root {
    --main-text:black;
    --main-bg:white;
    --menu-btn-color:#270e6596;
    --menu-bg-color:rgba(221, 147, 253, 0.8);
    --main-a:rgb(0, 150, 219);
    --menu-hover-color:rgba(17,17,17,0.3);
}

@media (prefers-color-scheme: dark){
    :root{
        --main-text:white;
        --main-bg:black;
        --menu-btn-color:#6333dc96;
        --menu-bg-color:rgba(70, 26, 88, 0.8);
        --main-a:rgb(147, 215, 247);
        --menu-hover-color:rgba(17, 17, 17, 0.5);
    }
}

a{
    color:var(--main-a);
}

.ichigyou img{
    vertical-align: middle;
    display: inline-block;
}
.ichigyou span{
    display: inline-block;
}

body{
    display: block;
    color: var(--main-text);
    background-color: var(--main-bg);
}

.main{
    display: grid;
    width:100%; height:100vh;
    grid-template-areas: "a " "c" "d" "e";
    grid-template-columns: 1fr;
    grid-template-rows: 6em 4em 1fr 3em;
    margin: 0 auto;
}

header{
    grid-area: a;
    margin: auto 0;
}

header hr{
    display: none;
}

.header{
    text-decoration: none;
    color: var(--main-text);
}

.hamburger-menu{
    display:none;
}

/*.nav1{
    display: block;
    grid-area: c;
    width: 100%;
    height: 70px;
    background-color: var(--menu-btn-color);
    padding-top: 5px;
    box-sizing: border-box;
}*/

.nav1 ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--menu-btn-color);
    position: -webkit-sticky; /* Safari */
        position: sticky;
    top: 0;
}
.nav1 li {
    float: left;
   border-right: 1px solid var(--main-text);
}

.active {
    background-color: var(--menu-bg-color);
}

.nav1 a{
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.nav1 a:hover {
    background-color: var(--menu-hover-color);
}

.blogimg{
    vertical-align: middle;
    display: inline-block;
    width: 300px;
    border-radius: 10px;
}

.top{
    grid-area: d;
}
.top iframe{
    width:32%;
    aspect-ratio: 560/315;
}

.bottom{
    grid-area: e;
}

@media (max-width:800px){
    .main{
        grid-template-areas: "a" "d" "e";
        grid-template-columns: 1fr;
        grid-template-rows: 8em 1fr 6.75em;
    }
    header hr{
        display: block;
    }
    .nav1{
        display:none;
    }
    
    .top iframe{
        width:48%;
    }

    .blogimg{
        width: 200px;
    }

    .hamburger-menu{
        display: block;
    }

    .menu-btn {
        position: fixed;
        top: 10px;
        right: 10px;
        display: flex;
        height: 60px;
        width: 60px;
        justify-content: center;
        align-items: center;
        z-index: 90;
        background-color: var(--menu-btn-color);
    }

    .menu-btn span,
    .menu-btn span:before,
    .menu-btn span:after {
        content: '';
        display: block;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        background-color: #ffffff;
        position: absolute;
    }
    .menu-btn span:before {
        bottom: 8px;
    }
    .menu-btn span:after {
        top: 8px;
    }

    #menu-btn-check:checked ~ .menu-btn span {
        background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
    }
    #menu-btn-check:checked ~ .menu-btn span::before {
        bottom: 0;
        transform: rotate(45deg);
    }
    #menu-btn-check:checked ~ .menu-btn span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    #menu-btn-check {
        display: none;
    }
    
    .menu-content {
        width: 50%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 100%;/*leftの値を変更してメニューを画面外へ*/
        z-index: 80;
        background-color: var(--menu-bg-color);
        transition: all 0.5s;/*アニメーション設定*/
    }
    .menu-content ul {
        padding: 70px 10px 0;
    }
    .menu-content ul li {
        border-bottom: solid 1px #ffffff;
        list-style: none;
    }
    .menu-content ul li a {
        display: block;
        width: 100%;
        font-size: 15px;
        box-sizing: border-box;
        color:#ffffff;
        text-decoration: none;
        padding: 9px 15px 10px 0;
        position: relative;
    }
    .menu-content ul li a::before {
        content: "";
        width: 7px;
        height: 7px;
        border-top: solid 2px #ffffff;
        border-right: solid 2px #ffffff;
        transform: rotate(45deg);
        position: absolute;
        right: 11px;
        top: 16px;
    }

    .menu-content ul li a:hover {
        background-color: var(--menu-hover-color);
    }

    #menu-btn-check:checked ~ .menu-content {
        left: 50%;/*メニューを画面内へ*/
    }
}

@media (max-width:450px){
    .top iframe{
        width:95%;
    }
    .ichigyou img{
        display:none;
    }
    .blogimg{
        width: 100px;
    }
}