@charset "utf-8";
@import url("https://fonts.googleapis.com/earlyaccess/notosansjapanese.css");
a {
    text-decoration: none;
    border-bottom: 1px dotted #000;
    padding-bottom: -2px;
    color: #666;
}
a:focus {
    outline: ridge 1px;
    outline-offset: 2px;
}
a:visited {
    border-bottom: 1px dashed #000;
    color: #666;
}
/* CSS Document */
html {
    font-size: 62.5%;
    position: relative;
    height: 100%;
    overflow-y: scroll;
}
* {
/*   outline: dotted 1px #ccc;*/
}
body {
    /*	background: */
    margin: 0;
    padding: 0;
    font-family: "Noto Sans Japanese", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", "sans-serif";
    font-size: 1.2em;
    height: 100%;
    background-image: url("../img/bg2.jpg");
    background-position: top right;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: contain;
}
div#container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
}
div#content {
    display: flex;
    flex-grow: 1;
    flex-direction: row;
}
div#left {
	background-color: #444444;
/*    background-image: url("../img/canvas.png");
    background-position: 0% 0%;
    background-repeat: repeat;
    background-attachment: scroll; */
    box-shadow: 0 0 8rem 4rem rgba(32,32,32,0.28) inset;
    width : 160px;
    max-width: 200px;
    flex-shrink: 0;
    flex-grow: 1;
    align-items: stretch;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
	color:white;
}
header {
    text-align: center;
/*    outline: dashed 1px #ccc;*/
    border-bottom: dashed 1px #ccc;
}
main {
    flex-grow: 20;
    align-items: stretch;
    max-width: 800px;
    background-image: url(http://kn-t.jp/ikki/cc/bg/paper.png);
    background-position: 0% 0%;
    background-repeat: repeat;
    background-attachment: scroll;
    box-shadow: 0 0 12rem 4rem rgba(128,64,64,0.15) inset, 0.5rem 0 1.5rem 0.2rem rgba(100,100,100,0.5);
    display: flex;
    flex-direction: column;
}
main::before{
	content:"";
	width:100%;
	height:10px;
	background: #A74547;
}
main>* {
    padding: 1.2em;
}
main>img {
    width: 100%;
    padding: 0em;
}
footer {
    background-color: #EFEFEF;
    height: 3em;
    width: 100%;
    text-align: center;
}
h1, h2, h3, h4, h5 {
    font-size: 12px;
}
nav {
    font-size: 1.4rem
}
ul {
    padding: 0;
}
li {
    text-align: center;
    margin: 0 auto 0.6em;
}
div.cap {
    margin: 0.5rem auto 0.4rem;
    padding: 0.3em;
    text-align: center;
    color: #ccc;
    width: 60%;
    border-top: dashed 1px #999;
    border-bottom: dashed 1px #999;
    font-size: 1rem
}
div.submenu {
    flex-grow: 1;
    font-size: 12px;
}
div.memo {
    padding: 1.2em;
    font-size: 0.8rem;
}
div.tweetbuttons {
    padding: 1.2em;
    font-size: 0.8rem;
}

main div.flex_half {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
}
main div.flex_half>* {
    flex: 1 0 170px;
}
h2 {
    margin : 0;
    padding: 0 0 0 1em;
    border-bottom: 1px dotted #333;
}
dl.link {
    display: flex;
    flex-direction: row;
	flex-wrap: wrap;
    position: relative;
    z-index: 0;
}
dl.link div {
    font-size: 0.9em;
    margin: 0.8em 0.8em;
    padding: 1em;
	padding-left:3rem;
    position: relative;/* グラデーションで折り目がついた感じに */
    background: linear-gradient(to right, #ffffcc 0%, #f1f1c1 0.5%, #f1f1c1 13%, #ffffcc 16%);

}
dl.link div:nth-child(odd) {
    background: linear-gradient(to right, #ffffcc 0%, #f1f1c1 0.5%, #f1f1c1 13%, #ffffcc 16%);
}
dl.link div:nth-child(even) {
    background: linear-gradient(to right, #FDF8E6 0%, #F5ECDA 0.5%, #F5ECDA 13%, #FDF8E6 16%);
    margin: 0.4em 0em 1.2em !important;
}
dl.link div:nth-child(odd)::after {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    bottom: 5px;
    right: 0;
    height: 15px;
    width: 99%;
    background: rgba(0,0,0,0.5);
    box-shadow: 0 5px 5px rgba(0,0,0,0.3);
    transform: rotate(2deg);

}
dl.link div:nth-child(even)::after {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    bottom: 5px;
    right: 0;
    height: 15px;
    width: 99%;
    background: rgba(0,0,0,0.5);
    box-shadow: 0 5px 5px rgba(0,0,0,0.3);
    transform: rotate(2deg);

}
dl.link dt{
	text-align: center;
}
dl.link dt img{
	outline: solid 5px  white;
	margin: 5px;
}
dl.link dd{
	margin-left: 0;
}

dl.link ul{
	padding:0;
	margin: 0;
}
dl.link li{
	padding:0;
	margin: 0;
	list-style:none;
}
dl.link li::before{
	content:"・";
}

dl#recent {
    width: 100%;
    height: 100%;
    min-height: 200px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 1em 0.2em;
    margin: 0;
}
dl#recent dt {
    border-bottom: dashed 1px #999;
    padding-left: 0.6em;
}
dl#recent dd {
    margin: 0.2em 0.2em 0.6em;
    padding: 0 1.0em 0.4em;
    border-bottom: solid 1px #aaa;
}
div.imgbox {
    width: 92%;
    height: auto;
    max-width: 760px;
    margin: 1em auto;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: nowrap;
}
div.imgbox figure {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
div.imgbox a {
    box-sizing: border-box;
    width: auto;
    height: auto;
	border:none;
}
div.imgbox img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border: solid 5px white;
}
div.imgbox figure:first-of-type:nth-last-of-type(n+2), div.imgbox figure:first-of-type:nth-last-of-type(n+2)~figure {
    margin: 0.5em;
}
div.imgbox figure:first-of-type:nth-last-of-type(n+2) img, div.imgbox figure:first-of-type:nth-last-of-type(n+2)~figure img {
    max-height: 220px;
}
/***/

.disabled {
    pointer-events: none;
    opacity: 0.6;
}
div.imgbox figure {
    color: #fff;
    position: relative;
    background-image: url(http://kn-t.jp/ikki/cc/bg/paper.png);
}
div.imgbox figure * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.4s ease-in;
    transition: all 0.4s ease-in;
}
div.imgbox figure img {
}
div.imgbox figure a {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 1;
    display: block;
}
div.imgbox figure a:before, div.imgbox figure a:after {
    width: 2px;
    height: 0;
    background-color: #333;
}
div.imgbox figure a:before {
    right: 0;
    top: -10%;
}
div.imgbox figure a:after {
    left: 0;
    bottom: -10%;
}
div.imgbox figure:before, div.imgbox figure:after, div.imgbox figure a:before, div.imgbox figure a:after {
    position: absolute;
    content: '';
    background-color: #333;
    z-index: 1;
    -webkit-transition: all 0.4s ease-in;
    transition: all 0.4s ease-in;
    opacity: 0.8;
}
div.imgbox figure:before, div.imgbox figure:after {
    height: 2px;
    width: 0%;
}
div.imgbox figure:before {
    top: 0;
    left: -10%;
}
div.imgbox figure:after {
    bottom: 0;
    right: -10%;
}
div.imgbox figure:hover img {
    opacity: 0.50;
}
div.imgbox figure:hover a:before, div.imgbox figure:hover a:after {
    height: 120%;
}
div.imgbox figure:hover:before, div.imgbox figure:hover:after {
    width: 120%;
}
div.imgbox figure:hover:before, div.imgbox figure:hover:after, div.imgbox figure:hover a:before, div.imgbox figure:hover a:after {
    opacity: 0.6;
}
/***/

p.note {
    font-size: 1em;
    line-height: 1.5em;
    font-kerning: normal;
    background-image: linear-gradient(rgba(32,32,32,0.5) .1em, transparent .1em);
    background-size: 100% 1.5em;
    background-repeat: repeat;
    padding: 0 1em 0.2em;
}
main>p.note {
    margin: 0 auto;
    width: 96%;
    padding: 1.5em 1em 1.7em;
}
/*#openIndex {
    background: #222;
    top: 0px;
    right: 0px;
    height: 100%;
    position: fixed;
    width: 1em;
    padding-top: 20px;
    color: #fff;
    font-size: 12px;
    box-shadow: inset 0 0 3px 0px #666;
    cursor: pointer;
    z-index: 500;
}
#autoIndex {
    background: #222;
    top: 0px;
    right: -130px;
    height: 100%;
    position: fixed;
    box-shadow: inset -5px 0 5px 0px #000;
    width: 130px;
    padding-top: 20px;
    color: #fff;
    font-size: 12px;
    z-index: 450;
}
#autoIndex ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
#autoIndex li {
    position: relative;
    padding: 0.5em 1em;
    transition: background 300ms ease;
    border-bottom: 1px dashed rgba(255,255,255,0.4);
}
#autoIndex li:last-of-type {
    border: none;
}
#autoIndex a {
    color: #fff;
    text-decoration: none;
    display: block;
}
#autoIndex a::before {
    content: "▶";
    opacity: 0;
    transition: opacity 300ms ease;
}
#autoIndex .toc-active {
    background: #336699;
    box-shadow: inset 0px 0px 10px -1px #000;
}
#autoIndex .toc-active a::before {
    opacity: 1.0;
}*/
section>h1 {
    font-size: 120%;
    font-weight: 100;
}

@media only screen and (max-width: 750px) {
div#content {
    flex-direction: column;
}
div#left {
    width: auto;
    max-width: none;
}
nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 auto;
    background: #CCCCCC;
}
nav ul li {
    max-width: 12rem;
    flex: 1 0 5rem;
    margin: 0.2em 0.5rem;
    border: solid 1px #999;
	border-radius: 3px;
}
nav ul li a {
    border: none;
    display: inline-block;
    width: 100%;
    height: 1.2em;
}
.button {
    width: 100%;
    font-size: 1rem;
}
div.submenu:empty {
    height: 0.5rem;
}
div.submenu {
    width: 100%;
    margin: 0 auto;
    padding-top: 0.4rem;
}
div.cap {
    display: none;
}
div.submenu>ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4em;
}
.submenu ul li {
    max-width: 12rem;
    margin: 0.2em 0.5rem;
    border: solid 1px #ccc;
    list-style-type: none;
    padding: 0.2rem 0.4rem;
	border-radius: 3px;
}
div.submenu ul li a {
    border: none;
    display: inline-block;
    width: 100%;
    height: 1.2em;
	color:white;
}
div.memo:empty {
    display: none;
	}

div#navtw {
	position:fixed;
	bottom:0;
	right:1em;
}
	div#navtw>iframe{
box-shadow: 0 2px 5px rgba(0,0,0,0.26);
}
}

@media only screen and (min-width:751px) {
.button {
    width: 60%;
    color: #bababa;
    background: transparent;
    border-width: 2px;
    border-style: solid;
    border-color: #bababa;
    position: relative;
    display: inline-block;
    padding: 0.2em auto;
    transition: all 0.3s ease-in-out;
    text-align: center;
    font-weight: bold
}
.button:before, .button:after {
    content: '';
    display: block;
    position: absolute;
    border-color: #bababa;
    box-sizing: border-box;
    border-style: solid;
    width: 1em;
    height: 1em;
    transition: all 0.3s ease-in-out
}
.button:before {
    top: -6px;
    left: -6px;
    border-width: 2px 0 0 2px;
    z-index: 5;
}
.button:after {
    bottom: -6px;
    right: -6px;
    border-width: 0 2px 2px 0;
}
.button:hover:before, .button:hover:after {
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border-color: #fff
}
.button:hover {
    color: #cacaca;
    background-color: #fff;
    border-color: #fff
}
.borderless .button {
    border-color: rgba(0,0,0,0);
    color: #999
}
.borderless .button:hover {
    border-color: #cacaca;
    background-color: transparent;
    color: #cacaca
}
.borderless .button:before, .borderless .button:after {
    border-color: transparent;
}
.borderless .button:hover:before, .borderless .button:hover:after {
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border-color: #cacaca
}
.bw .button {
    color: #ccc;
    border-color: #ccc;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.1) inset
}
.bw .button:before, .bw .button:after {
    border-color: #ccc;
    opacity: 0.0;
}
.bw .button:hover:before, .bw .button:hover:after {
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border-color: #cacaca;
    opacity: 1.0;
}
.bw .button:hover {
    color: #000;
    background-color: #cacaca;
    border-color: #cacaca;
}
	
}
