/*
	松葉		#829a5b
	千歳緑	#31663e
	黒茶		#4b2c15
	裏柳		#b5bb7e
	香色		#c6b083
	朽葉		#907346
	薄鼠		#cacbd2
	白土		#f2e2d5
	庭石		#746c5f
*/

body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-size: 14pt;
    overflow-x: hidden;
    display: flex;
    flex-flow: column;
    min-height: 100vh;
    font-family: BIZ UDPGothic, sans-serif;
}

header {
    background: #b5bb7e;
    height: auto;
}

header section {
    display: flex;
    background: #f2e2d5;
}

#title {
    width: 280px;
    font-size: 140%;
    margin: 0 1em;
}

#top {
    width: 700px;
    position: absolute;
    right: 0;
}

#top ul {
    display: flex;
    justify-content: flex-end;
}

#top li {
    margin: 0 1em;
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: #4b2c15;
}

a:hover {
    color: #907346;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    text-align: center;
    padding: 0 15px;
    border: 2px #000 solid;
    margin: 1em;
    border-radius: 4px;
    width: 270px;
    background: #cacbd2;
    height: auto;
}

nav ul li:hover {
    background: #fff;
    transition: .2s;
}

nav ul li:hover ul li {
    background: #fff;
    transition: .2s;
}

nav ul li p {
    border-bottom: 2px #000 solid;
}

nav ul ul {
    display: flex;
    flex-direction: column;
    padding: 0;
}

nav ul ul li {
    text-align: left;
    margin: .5em .5em;
    border: none;
    width: auto;
    height: auto;
}

nav ul ul a:last-child li {
    margin-bottom: 1em;
}

header article {
    height: 200px;
    background: #829a5b;
}

header article figure {
    margin: 0;
    padding: 0;
}

header article img {
    width: 100%;
    height: auto;
}

main {
    width: 95%;
    padding: 20px;
    margin: 0 auto;
    flex: 1;
    z-index: 10;
    background: #fff;
}

main *+* {
	line-height: 2;
}

main article p,
main article ul,
main article figure,
main table,
main h2,
main h3 {
	max-width: 35em;
	margin: 0 auto;
}

main div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

main div figure {
    width: 200px;
    height: 230px;
    padding: 10px;
}

main div figure img {
    max-width: 140px;
    max-height: 190px;
}

main div figure img:hover {
    transform: scale(1.1);
    transition: transform .2s;
}

table td {
    padding: 4px;
    text-align: left;
}

footer {
    width: 100%;
    background: #31663e;
}

footer p {
    text-align: center;
    color: #fff;
}

aside {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
    background: #cacbd2;
    opacity: .8;
    padding: 6px 8px;
}

aside li {
    padding: 1px;
    font-size: 90%;
}

aside figure {
    font-size: 120%;
    position: absolute;
    right: 0;
    top: 0;
}

@media screen and (max-width: 966px) {
    #top {
        display: none;
    }

    main {
    	padding: 0;
    }

    nav ul {
        display: none;
    }

    aside {
        display: block;
    }
}
