/*====common====*/
:root{
    --header-color: white;
    --body-color: white;
    --footer-color: dimgray;
    --border-color: lightgray;
    --fonts-color: black;
    --footer-fonts-color: white;
    --footer-border-color: gray;

    --header-margin: 135px; 
    --header-negative-margin: -135px; 
    --header-margin: 135px; 
    --header-margin-mobile: 255px; 
    --header-negative-margin-mobile: -255px; 

    --content-width: 75%;
    --content-max-width: 1280px;

    --mobile-text-w: 90vw;
    --mobile-figure-w: 85vw;

    font-family: "Noto Sans JP", sans-serif;
    color: var(--fonts-color);
}

/*body*/
body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100vw;
    background-color: var(--body-color);
    margin: 0;
}

/*header*/
header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    border-bottom: solid 1px;
    background-color: var(--header-color);
}

header img{
    height: 85px;
    width: auto;
    border-radius: 15%
}

header h3{
    font-weight: normal;
    color: var(--fonts-color);
}

nav{
    max-width: 1024px;
    min-width: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-ul{
    display: flex;
    padding-left: 0; /*デフォルトのul左padding削除*/
    list-style-type: none;
    flex-direction: row;
}

.nav-li{
    flex-grow: 1;
    margin: 2px;
    text-align: center;
    width: 33%;
}

.nav-li a{
    color: black;
    display: block;
    font-size: 22px;
    padding: 16px;
}

/*main*/
main{
    max-width: 100vw;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
}

/*footer*/
footer{
    background-color: var(--footer-color);
    max-width: 100vw;
    min-width: 450px;

    margin-top: auto;
    margin-left: 0;
    margin-right: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

footer *{
    color: var(--footer-fonts-color)
}

.container{
    width: var(--content-width);
    max-width: 1536px;
    margin: 0 auto 0 auto;

    display: flex;
    flex-direction: column;
}

.content{
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.author{
    justify-content: stretch;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-color: var(--footer-border-color);
    border-style: none solid none none;
    border-width: 1px;
    width: 40%;
    min-width: 200px;
}

.link{
    margin-left: 10%;
    width: 30vw;
    flex-grow: 1;
}

.link-ul{
    flex-direction: column;
    list-style-type: none;
}

.link-li{
    margin: 5px;
}

#copyright{
    text-align: right;
    margin-right: 5%;
}


/*hyper link*/
a{
    text-decoration: none;
}

/*h*/
h2, 
h3{
    text-align: center;
    font-weight: normal;
}

.abstract{
    width: 100%;
    max-width: 1200px;
    margin: 2%  0 0 0;
    position: relative;
}

.abstract h1{
    position: absolute;
    color: black;
    top: 30%;
    left: 8%;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 5em;
    max-width: 500px;
}

.abstract img{
    width: 100%;
}

.features{
    display: flex;
    width: var(--content-width);
    max-width: 100vw;
    margin: auto;
}

.feature{
    width: 33%;
    max-width: 500px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
}
.feature p{
    width: 80%;
}

.feature figure{
    width: 100%;
    margin: auto;
}

.specifications{
    width: var(--content-width);
    max-width: var(--content-max-width);
    display: flex;
    flex-direction: column;
    margin: auto;
    margin-top: 5vh;
}
.specification{
    width: 100%;
    display: flex;
    margin: auto;
}
.specification p{
    text-align: center;
}
.specification ul{
    width: 30%;
    margin: auto;
}
.specification figure{
    width: 60%;
    margin: auto;
}
.specifications img{
    width: 100%;
}

.download{
    display: flex;
    flex-direction: column;
    align-content: center;

    margin: auto;
    width: var(--content-width);
    max-width: var(--content-max-width);
}
.download p{
    text-align: center;
}

.publications{
    display: flex;
    flex-direction: column;
    align-content: center;

    margin: auto;
    width: var(--content-width);
    max-width: var(--content-max-width);
}
.publications p{
    text-align: center;
}
.publications ul{
    list-style: disc;
    padding-left: 10px;
}
.centering-ul{
    display: flex;
    align-items: center;
    flex-direction: column;
}

.demo{
    display: flex;
    flex-direction: column;
    align-content: center;
    
    width: var(--content-width);
    margin: 0 auto;
    max-width: var(--content-max-width);
}

.demo iframe{
    width: 100%;
    height: calc(75vw * 9 / 16);
    max-height: calc(var(--content-max-width) * 9 / 16);
    margin : 0 auto;
}

.demo p{
    width: 100%;
}

.note{
    width: var(--content-width);
    max-width: var(--content-max-width);
}

article:not(:last-child):after{
    overflow: hidden;
    content: "";
    border-color: var(--border-color);
    border-style: solid none none none;
    border-width: 1px;
    display: block;
    margin: 5% 0;
    width: 90vw;
}

section:last-child, 
article:last-child{
    margin-bottom: 5%;
}

.list .thumbnail{
    margin: 0 auto;
}

.list div:last-of-type{
    margin-bottom: 5%;
}


.note figure{
    float: left;
    width: 25%;
    display: flex-box;
    margin: 1%;
}

figure img{
    justify-content: stretch;
    max-width: 75%;
    margin: 0% 12% 12% 12%;
}

figcaption{
    text-align: center;
    font-size: small;
    margin-top: -12%;
}

.note:nth-of-type(even) figure, 
.note:nth-of-type(odd) figure:nth-of-type(even){
    float: right;
}

.note figure:nth-of-type(even){
    float: left;
}

article:not(:first-of-type) h2{
    margin-top: -3%;
}

.note p{
    text-indent: 1em;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 60%);
}

.modal:target {
  display: flex;
}

.close {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 20px;
  height: 30px;
  width: 90px;
  padding:0px, 40px;
  color: black;
  background-color: #FEFEFE;
  border: 2px solid darkslategray;
  border-radius: 15px;
  text-decoration: none;
  cursor: pointer;
  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-wrapper {
  position: relative;
  width: 80%;
  max-width: 900px;
  max-height: 70%;
  padding: 20px;
  margin: auto;
  overflow: auto;
  background-color: #FEFEFE;
  border-radius: 5px;
}


@media screen and (max-width: 1250px){
    /*header*/
    header a{
       display: flex; 
       justify-content: center;
    }
    header img{
        height: 30%;
        width: auto;
        max-width: 20vw;
    }

    header h3{
        font-size: 24pt;
    }
    .nav-ul{
        display: flex;
        padding-left: 0; /*デフォルトのul左padding削除*/
        list-style-type: none;
        flex-direction: row;
    }

    .nav-li{
        flex-grow: 1;
        margin: 2px;
        text-align: center;
    }

    .nav-li a{
        font-size: 20pt;
        padding: auto auto 16px 8px;
    }

    /*footer*/
    .container{
        width: 100%;
    }
    .content{
        margin: 0 auto;
        width: 100%;
        flex-direction: column;
    }
    .author{
        width: 80%;
        border-style: none;
    }
    .author h1{
        font-size: 24pt;
    }
    .author p{
        margin-left: 10%;
        font-size: 18pt;
    }
    .link{
        margin-left: 0;
        width: 80%;
    }
    .link-ul{
        font-size: 18pt;
    }
    .link-li{
        margin-left: 10%;
    }
    #copyright{
        margin-right: 5%;
        font-size: 18pt;
    }
    
    /*main*/
    .abstract{
        width: 100%;
    }
    .abstract h1{
        top: 27%;
        left: 5%;
        font-size: 7.0vw;
        max-width: 200px;
    }
    
    h2{
        width: 100%;
        font-size: 23pt;
    }
    
    p{
        font-size: 18pt;
    }
   
    article h3{
        font-size: 22pt;
    }
    
    article:not(:last-child):after{
        margin: 10% auto;
        width: 90vw;
    }
    .features{
        flex-direction: column;
    }
    .feature{
        width: var(--mobile-text-w);
        max-width: 100%;
        margin-bottom: 10%;
    }

    .specification{
        flex-direction: column;
    }
    .specification figure{
        width: 100%;
        max-width: none;
        margin-bottom: 2vh;
    }
    .specification img{
        min-width: 80%;
    }
    .specification ul{
        max-width: none;
        width: auto;
        font-size: 200%;
        margin-left:20%;
    }
    .specifications p{
        font-size: 18pt;
    }

    .download p{
        width: 100%;
    }
    .download p, 
    .demo p{
        font-size: 18pt;
    }
    .demo iframe{
        width: var(--mobile-figure-w);
        height: calc(var(--mobile-figure-w) * 9 / 16);
    }

    .publications ul{
        font-size: 18pt;
    }

    .download,
    .demo, 
    .note{
        width: var(--mobile-text-w);
    }

    .note figure{
        float: none;
        width: var(--mobile-figure-w);
        margin: auto;    
    }
    .note:nth-of-type(even) figure, 
    .note:nth-of-type(odd) figure:nth-of-type(even){
        float: none;
    
    }

    .note figure:nth-of-type(even){
        float: none;
    }
}
