@charset "utf-8";

/*
 *
 * Usage: Base layout
 *
 * Name: style.css
 *
 */

/* FONT size
---------------------------------------------------------------------
[ px ]	[ % ]
10px 	83  %		19px 	158 %
11px 	92  %		20px 	167 %
12px 	100 %		21px 	175 %
13px 	108 %		22px 	183 %
14px 	117 %		23px 	192 %
15px 	125 %		24px 	200 %
16px 	133 %		25px 	208 %
17px 	142 %		26px 	217 %
18px 	150 %
---------------------------------------------------------------------*/


/*---------------------------------------------------------------------
Page layout
---------------------------------------------------------------------*/

html,body{
    height:100%;
    scroll-behavior: smooth;
}
body{
    background:#ecece7;
}
#wrapper{
    width:54%;
    margin:0 auto;
    padding:110px 0;
    position:relative;
}

h2{
    font-size: 120%;
}


.font{
    font-family:'Economica';
    font-size:108%;
    letter-spacing:0.1em;
}

::selection{
    background: #e2e9e2;
    color: #f0f4f4; /* Safari */
}
::-moz-selection{
    background: #e2e9e2;
    color: #f0f4f4; /* Firefox */
}

/*---------------------------------------------------------------------
Common parts
---------------------------------------------------------------------*/
/* about */
#about{
    background:#fff;
    position:fixed;
    left:0;
    top:0;
    z-index:999;
    width:100%;
    display:none;
}
    #aboutInner{
        width:90%;
        margin:0 auto;
        padding:100px 0 100px 0;
        display: flex;
        justify-content: space-between;
    }
        #aboutInner dl{
            display: flex;
            flex-wrap: wrap;
            width:50%;
            /*font-size: 1.1em;*/
        }
        #aboutInner dt{
            width:30%;
            line-height:100%;
        }
        #aboutInner dd{
            width: 70%;
            margin-bottom: 30px;
        }
        #aboutInner .last{
            margin-bottom:0;
        }

.rightImg{}     
.right_img{
    width: fit-content;
    margin: 0 auto;
}   

/*profile on*/
.open_sub_window {
    display: block;
    width: 16em;
    font-size: 1.5em;
    cursor: pointer;
    position: fixed;
    top: 320px;
    left: 15%;
    border-bottom: 1px solid;
    width: fit-content;
    padding-bottom: 0.5em;
    transition: all .3s;
}
.open_sub_window:hover {
    opacity: 0.5;
    transition: all .3s;
}

.check_sub_window {
    display: none;
}

.bg_sub_window {
    display: block;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.bg_sub_window:hover {
    transition: 0.5s;
}

.check_sub_window:checked + .bg_sub_window {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: 0.5s;
}

.sub_window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    padding: 30px;
    max-height: 90%;
    background-color: #fff;
    overflow-y: auto;
}
@media screen and (max-width: 767px) {
    .sub_window {
        width: calc(100% - 90px);
    }        
}
@media print, (min-width: 768px) {
    .sub_window {
        width: 90%;
        max-width: 900px;
    }
}

.close_sub_window {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: rotate(45deg);
    border: none;
    outline: none;
    width: 30px;
    height: 30px;
}
.close_sub_window::before,
.close_sub_window::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: #000;
    content: "";
}
.close_sub_window::before {
    width: 60%;
    height: 3px;
}
.close_sub_window::after {
    width: 3px;
    height: 60%;
}
.close_sub_window:hover {
    cursor: pointer;
}

.sub_window_content {
    /*display: table;*/
    margin: 0px auto;
}

/* header */
#header{}
    #logo{
        position:fixed;
        top:125px; left:15%;
        z-index:900;
    }

/* container */
#container{
    width: fit-content;
}

    /* articleContainer */
    #articleContainer{
        padding-left:150px;
    }
        #articleContainer .section{}
        #articleContainer .hgroup{
            text-align:right;
            margin-bottom:20px;
            font-size:83%;
            background:url(../img/line_title.gif) no-repeat 100% 0;
            padding-top:15px;
            line-height:100%;
        }
            #articleContainer .hgroup h2{
                font-weight:bold;
                margin-bottom:5px;
            }
            #articleContainer .hgroup .cate,
            #articleContainer .hgroup .date{
                color:#636161;
                margin-bottom:5px;
                font-family:'Economica';
                font-size:108%;
                letter-spacing:0.1em;
            }

        #articleContainer .section .article{}
            
            #articleContainer .section .article .works{
                /*margin-bottom:55px;*/
            }
            #articleContainer .section .article .works img{
                max-width:660px;
            }
            #articleContainer .section .article .entry_txt{
                /*margin:-45px 0 55px 0;*/
                font-size:90%;
                margin-bottom: 0.5em;
            }
            .section{
                width: fit-content;
                margin-bottom: 100px;
            }
    
    /* lnav */
        #Inav{
            position: fixed;
            bottom: 40px;
            right: 30px;
        }

        #pagetop{
            width: 100px;
            height: 100px;
            line-height: 100px;
            font-family: 'Economica';
            font-size: 108%;
            letter-spacing: 0.1em;
            border: 1px solid #000;
            border-radius: 50%;
            text-align: center;
        }
        #pagetop.invert{
            border: 1px solid #fff; 
            color: #fff;
        }

    /* footr */    
        #footer{
            width: 100%;
            height: 30vh;
            background-color: #191919;
            color: #fff;
            text-align: center;
            font-size: 2.5em;
            font-family: 'Economica';
            line-height: 30vh;
            letter-spacing: 0.3em;
        }


        @media screen and (max-width: 959px){
            img{
                width: 100%;
            }
            #wrapper{
                width: 90%;
                padding-bottom: 0;
            }
            #container{
                width: 100%;
                margin-top: 60px;
            }
            #articleContainer{
                padding: 0;
            }
            #logo{
                position:absolute;
                top:30px;
                left:0;
                z-index:900;
                width: 35%;
            }
            .open_sub_window {
                position: absolute;
                top: 75px;
                left: 82%;
                font-size: 1em;
            }
            h2{
                margin-bottom: 3px;
            }
            .cate,.date{
                margin-bottom: 3px;
            }
            #articleContainer .hgroup{
                margin-bottom: 5px;
                padding-top: 10px;
            }
            #articleContainer .section .article .entry_txt{
                margin-bottom: 0;
            }
            .entry_text2{
                font-size: 90%;
            }
            #about{
                width:90%;
            }
            #aboutInner{
                width:100%;
                padding:50px 0 50px 0;
                display: block;
            }
            #aboutInner dl{
                /*display: flex;*/
                flex-wrap: wrap;
                width:fit-content;
                align-items: flex-start;
                margin: 0 auto;
                /*font-size: 1.1em;*/
            }
            #aboutInner dt{
                width:25%;
                font-size: 0.9em;
                line-height:100%;
            }
            #aboutInner dd{
                width: 75%;
                font-size: 0.9em;
                margin-top: -0.3em;
                /*margin-bottom: 30px;*/
            }
            #aboutInner .last{
                margin-bottom:0;
            }
            .rightImg{
                width: fit-content;
                margin: 0 auto;
                margin-top: 30px;
            }     
            .right_img{
                width: 100%;
            }
            #Inav{
                position: fixed;
                bottom: 20px;
                right: 10px;
            }
    
            #pagetop{
                width: 17vw;
                height: 17vw;
                line-height: 17vw;
                font-family: 'Economica';
                font-size: 108%;
                letter-spacing: 0.1em;
                border: 1px solid #000;
                border-radius: 50%;
                text-align: center;
            }



            #footer{
                font-size: 1.8em;
            }
            
        }