@import "ress.css";
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@700&display=swap');

html {
    font-size: 14px;
    font-family: 'Hiragino Kaku Gothic ProN', Meiryo, 'MS PGothic', sans-serif;
}
body {
    background:linear-gradient(#efeee6,#ebe0d7);
    color: #5e3824;
}
a {
    color: #336600;
}


header {
    padding: 20px 10px 10px;
    border-bottom: 10px solid #69884a;
    background-image: url(images/bg_header.jpg);
    background-position: center center;
    background-repeat: repeat;

    display: flex;
    justify-content: space-around;
    align-items: center;
}
header #pagetitle {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 17px;
    text-align: center;

    flex-basis: 65%;
}
header #pagetitle .en {
    font-size: 70%;
    color: #fff;
    background-color: #5e3824;
    padding: 0 1em;
    border-radius: 3px;
}
header figure {
    flex-basis: 15%;
    margin: 0;
    padding: 0;
}
header figure img {
    max-width: 100%;
}
header figure img.pconly {
    display: none;
}
#bodywrap {
    background-color: #fff;
    padding: 30px 15px;
    position: relative;
}

nav h2 {
    text-align: center;
    font-size: 15px;
    margin-bottom: 15px;
    color: #ff8212;
}
nav h2::after {
    content: "";
    display: block;
    width: 20vw;
    height: 1px;
    margin: 5px auto 0;
    border-bottom: 1px solid;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    font-size: 12px;
}

nav li {
    text-align: center;
    flex-basis: 33%;
    margin-bottom: 20px;
    cursor: pointer;
    color: #336600;
}
/*
nav li.active {
    display: block;
}
 */
nav li.active {
    color: #ff8212;
}
nav li::after {
    content: "";
    display: block;
    border-bottom: 1px solid ;
    border-right: 1px solid;
    width: 5px;
    height: 5px;
    margin: 0 auto;
    transform: rotate(45deg);
}
nav li span {
    display: block;
}
nav li .jp {
    font-size: 0.9em;
}
nav li .native {
    font-weight: bold;
}


.infobox {
    word-break:break-all;
    word-break:break-word;
    border: 1px solid #ccc;
    background-color: #fcfcfc;
    padding: 12px;
    border-radius: 3px;
    margin-top: 10px;
    display: none;
}

.infobox.active {
    display: block;
    -webkit-animation: 0.3s fadein;
    animation: 0.3s fadein;
}

 .infobox .lang {
    text-align: center;
    margin-bottom: 15px;
    font-size: 15px;
    color: #ff8212;
}
.infobox .lang::after {
    content: "";
    display: block;
    width: 15vw;
    height: 1px;
    margin: 5px auto 0;
    border-bottom: 1px solid;
}
.infobox .lang span {
    display: block;
    font-weight: normal;
}
.infobox .lang .jp {
    font-size: 0.8em;
}

.infobox .lang .native {
    font-weight: bold;
}
.infobox .title {
    margin-bottom: 10px;
}
.infobox .txt .link {
    display: inline-block;
    margin-top: 5px;
}
footer {
    border:5px solid #e0e0e0;
    border-top-width:15px;
    background-color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
footer .link {
    flex-basis: 65%;
}
footer .logopref {
    flex-basis: 30%;
    text-align: right;
}
footer .logopref img {
    max-width: 100%;
}

/* Tablet */
@media (min-width:768px) {
    header {
        justify-content: center;
        margin-bottom: 30px;
        background-color: #fff;
    }
    header #pagetitle {
        font-size: 30px;
    }
    #bodywrap {
        max-width: 96%;
        margin: 0 auto;
        padding: 30px;
        border-radius: 6px;
    }
    nav li {
        flex-basis: 24%;
    }
    #information {
        padding: 0 5%;
    }
    .infobox {
        margin-top: 30px;
    }
    footer {
        margin-top: 30px;
        border-width: 15px;
    }
}

/* Desktop */
@media (min-width:1025px) {
    header {
        margin-bottom: 60px;
        background-color: #fff;
    }
    header #pagetitle {
        flex-basis: auto;
        padding: 0 60px;
    }
    header figure {
        flex-basis: 20%;
    }
    header figure img.mobileonly {
        display: none;
    }
    header figure img.pconly {
        display: inline;
    }
    
    #bodywrap {
        max-width: 1025px;
    }
    nav h2 {
        margin-bottom: 30px;
        font-size: 17px;
    }
    nav li {
        flex-basis: 16%;
    }
    nav li::after {
        position: relative;
        top: 0;
        transition-property: all;
        transition-duration: 0.2s;
    }
    nav li:hover {
        color: #ff8212;
    }
    nav li:hover::after {
        top: 3px;
    }
    .infobox {
        padding: 18px 24px;
    }
    .infobox .lang {
        font-size: 17px;
        margin-bottom: 25px;
    }

    footer {
        margin-top: 60px;
    }
}

@-webkit-keyframes fadein {
    from { opacity: 0;}
    to { opacity: 1.0;}
}
@keyframes fadein {
    from { opacity: 0;}
    to { opacity: 1.0;}
}