@charset "UTF-8";

header {
    grid-area: header;
    display: grid;
    grid-template: 
        "menu   menu   menu   menu   menu" 9rem
        "line   line   line   line   line" 3.6rem
        "tree   tree   tree   tree   tree" auto/
        8rem    1fr    6.5rem 2fr    8rem; 
}
header .pc_menu {
    grid-area: menu;
    display: grid;
    grid-template: 
        "....  h1   ....   nav  ...." 8rem/
         4rem  1fr  1%     2fr  auto;
}

header .mobile_menu {
    display: none;
}
header .top_menu {
    display: none;
}
header h1 {
    position: relative;
    grid-area: h1;
    font-size: 3.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;

    min-width: 30rem;
}



header h1 a{
    display: flex;
}
header h1 a img {
    display: inline-block;
    height: auto;
    width : auto;
    padding-top: 1.6rem;
}
header h1 p {
    width: auto;
    display: inline-block;
}
header h1 .name {
    padding-top: 1rem;
    font-family: "Hina Mincho", "Hannari", serif;
}


header h1 .subtitle {
    position: absolute;
    top: 5.9rem;
    left: 10rem;
    font-size: 1.4rem;
    font-family: "Hina Mincho", "Hannari", serif;
}
header h1 .logo {
    display: inline-block;
    /*width: 8.8rem;*/
    width: auto;
    height: auto;
}
header h1 p {
    width: auto;
    display: inline-block;
    margin-bottom: 1.0rem;
}
header nav {
    grid-area: nav;
}
header .menu {
    display: none;
}
header nav ul {
    padding-top: 5.1rem;
    padding-right: 4.8rem;
    display: flex;
    justify-content: flex-end;
    list-style-type: none;
}
header nav ul li {
    position: relative;
    width: 14.5rem;
    height: 2.5rem;
    font-size: 1.6rem;
    text-align: center;
    border-right: 0.32rem solid rgba(87, 86, 86, 0.671);
}
header nav ul li a {
    color: black;
    text-decoration: none;
}
header nav ul li .under{
    position: absolute;
    top: 2.2rem;
    left: 1rem;
    width: 12rem;
    height: 0.3rem;
    background-color: rgba(0, 0, 0, 0.651);
    border-radius: 0.16rem;
}
header nav ul .login {
    margin-left: 0.32rem;
    border-right: none;
    border-radius: 3.2rem;
    background-color: rgba(250, 127, 127, 0.897);
}
header .line {
    height: 0.48rem;
    grid-area: line;
    background-color: rgba(250, 127, 127, 0.829);
    z-index: 3;
}
header .image .pc_side {
    position: fixed;
    top: 0;
    left: 0;
    width: 20rem;
    height: 100vh;
    background-color: rgba(107, 107, 107, 0.774);
}
header .image img {
    display: block;
    height: 100%;
} 
header .image .mobile {
    display: none;
} 
header .image section h2 {
    padding-top: 0.7rem;
    height: 4rem;
    font-size: 2rem;
    color: white;
    text-align: center;
    background-color: rgba(32, 32, 32, 0.863);
}
header .image section ul {
    list-style-type: none;
    overflow: auto;
}
header .image .pc ul a {
    text-decoration: none;
}
header .image .pc ul li {
    padding: 0.5rem;
    width: 20rem;
    font-size: 1.4rem;
    color: black;
    text-align: left;
    background-color: rgba(241, 241, 241, 0.87);
    border: 0.16rem solid rgba(107, 107, 107, 0.774);
    border-radius: 0.64rem;
}
header .image .pc ul li:nth-of-type(n):hover {
    border-color: black;
    color: white;
}
header .tree {
    grid-area: tree;
    margin-top: 1rem;
    font-size: 1.2rem;
    padding-left: 3rem
}
@media (max-width: 1240px){
    header .pc_menu {
        display: none;
    }
    header .mobile_menu {
        display: block;
        grid-area: menu;
        height: 5rem;
        width: 100%;
        position: relative;
        background-color: white;
    }

    header .mobile_menu .title {
        display: none;
    }

    header h1 {
        position: relative;
        grid-area: h1;
        font-size: 3.2rem;
        font-weight: bold;
        display: flex;
        align-items: center;
        padding-top: 1.0rem;
        margin-left: 4rem;
    }
    header h1 p {
        font-size: 3.2rem;
    }
    header h1 .subtitle {
        position: absolute;
        top: 6.6rem;
        left: 11.5rem;
        font-size: 1.4rem;
    }
    header nav {
        display: none;
    }
    header .menu {
        display: block;
        position: absolute;
        top: 2rem;
        right: 10rem;
    }
    header .menu button {
        padding: 0 0.5rem 0;
        background-color: rgba(70, 70, 70, 0.521);
    }
    header .menu_reject button {
        padding: 0 1.5rem 0;
        background-color: rgba(70, 70, 70, 0.521);
    }
    header .menu_reject button p {
        font-size: 3rem;
        color:rgba(0, 0, 0, 0.651);
    } 
    header .top_menu {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        overflow: hidden;
        background-color: rgb(221, 221, 221);
        z-index: 5;
    }
    header .top_menu ul {
        padding: 1rem 0 2rem;
    }
    header .top_menu ul li {
        font-size: 1.6rem;
        text-align: center;
        padding: 0.5rem;
        height: 3.5rem;
        overflow: hidden;
    }
    header .top_menu ul li a {
        text-decoration: none;
        color: black;
    }
    header .top_menu ul li a:hover {
        text-decoration: underline;
        color: white;
    }
}
@media (max-width: 1010px){
    header {
        grid-area: header;
        display: grid;
        grid-template: 
        ".... .... ...." 6.5rem
        ".... .... ...." 1.5rem
        "img  img  img " auto
        "tree tree tree" auto/
        1fr   3rem 1fr   ;
    }
    header .pc_menu {
        display: none;
    }


    header .mobile_menu {
        display: grid;
        height: 6.6rem;
        grid-template: 
            "h1 .... .... " 6.6rem/
            1fr 3rem 1fr;
        position: fixed;
        top: 0;
        background-color: white;
        z-index: 3;
    }
    header h1 {
        position: relative;
        grid-area: h1;
        font-size: 3rem;
        font-weight: bold;
        display: flex;
        align-items: center;
        padding-top: 0.5rem;
    }


    header h1 a img {
        padding-top: 0.2rem;
    }
    header h1 .name {
        padding-top: 0.6rem;
    }    


    header h1 p {
        font-size: 2.8rem;
    }
    header h1 .subtitle {
        position: absolute;
        top: 4.9rem;
        font-size: 1.2rem;
    }
    header nav {
        display: none;
    }
    header .menu {
        display: block;
        grid-area: menu;
        position: fixed;
        top: 0.7rem;
        right: 4rem;
    }
    header .menu button {
        padding: 0 0.5rem 0;
        background-color: rgba(70, 70, 70, 0.521);
    }
    header .menu_reject button {
        padding: 0 1.5rem 0;
        background-color: rgba(70, 70, 70, 0.521);
    }
    header .menu_reject button p {
        font-size: 3rem;
        color:rgba(0, 0, 0, 0.651);
    } 
    header .top_menu {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        overflow: hidden;
        background-color: rgb(221, 221, 221);
        z-index: 5;
    }
    header .top_menu ul {
        padding: 1rem 0 2rem;
    }
    header .top_menu ul li {
        font-size: 1.6rem;
        text-align: center;
        padding: 0.5rem;
    }
    header .top_menu ul li a {
        text-decoration: none;
        color: black;
    }
    header .top_menu ul li a:hover {
        text-decoration: underline;
        color: white;
    }
    header .line {
        width: 100%;
        height: 0.3rem;
        position: fixed;
        top: 6.4rem;
        background-color: rgba(250, 127, 127, 0.829);
    }    
    header .image {
        position: static;
        height: auto;
        width: 100%;
        grid-area: img;
        display: grid;
        grid-template: 
            "mobile1 .....   mobile2" 5rem/
            1fr      0.09rem 1fr  ;
        background-color: rgba(250, 127, 127, 0.808);
    }
    header .image section h2 {
        padding-top: 0.7rem;
        height: 5rem;
        text-align: center;
        background-color: rgba(32, 32, 32, 0.863);
    }
    header .image .mobile h2 button{
        font-size: 2rem;
        color: white;
    }
    header .image .mobile1 {
        grid-area: mobile1;
        display: block;
        position: relative;
        min-width: 18.5rem;
    }
    header .image .mobile2 {
        grid-area: mobile2;
        display: block;
        position: relative;
        min-width: 18.5rem;
    }
    header .image .mobile ul  a {
        text-decoration: none;
        color: black;
    }
    header .image .mobile ul {
        overflow: hidden;
        width: 100%;
        position: absolute;
        top: 5rem;
        z-index: 2;
    }
    header .image .mobile ul li {
        margin-top: 0.1rem;
        font-size: 1.7rem;
        padding: 0.3rem 0 0.3rem 2rem;
        background-color: rgb(202, 202, 202);
        border: 0.2rem solid rgba(221, 221, 221, 0.692);
    }
    header .image .mobile ul a li:nth-of-type(n):hover{
        background-color: rgb(230, 230, 230);
    }
    header .image .pc_side {
        display: none;
    }
}
@media (max-width: 662px){
    header h1 {
        position: relative;
        grid-area: h1;
        font-size: 3rem;
        font-weight: bold;
        display: flex;
        align-items: center;
        padding-top: 0.5rem;
        margin-left: 1rem;

    }
    header .line {
        width: 100%;
        height: 0.3rem;
        position: fixed;
        top: 6.7rem;
        background-color: rgba(250, 127, 127, 0.829);
    }    

    header h1 .subtitle {
        position: absolute;
        top: 5.0rem;
        font-size: 1.2rem;
    }

}
@media (max-width: 420px){
    header .image .mobile2 {
        grid-area: mobile2;
        display: block;
        position: relative;
        min-width: 18.5rem;    
        border-left: 0.1rem solid white;
    }
    header .menu {
        display: block;
        position: fixed;
        top: 0.8rem;
        right: 2rem;
        z-index: 7;
    }

    header .mobile_menu .title {
        display: block;
        position: absolute;
        top: 0;
        left: 27%;
        font-weight: bold;
        
    }
    header .mobile_menu .title .name {
        font-size: 2.6rem;
        padding-top: 0.8rem;
        font-family: "Hina Mincho", "Hannari", serif;
    }
    header .mobile_menu .title .subtitle {
        font-size: 1.2rem;
        font-family: "Hina Mincho", "Hannari", serif;
        text-align: center;
    }

    header h1 .name {
        display: none;
    }    
    header h1 .subtitle {
        display: none;
    }
}
