* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, #flex {
    height: 100%;
    min-height: 100%;
}

body {
    color: #333;
    font-size: 11px;
    letter-spacing: 1px;
    font-family: 'メイリオ', 'Meiryo', '游ゴシック体', 'Yu Gothic', 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro', 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
    overflow-y: hidden;
}

#flex {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    -webkit-align-items: center;
    align-items: center;
    -webkit-align-content: center;
    align-content: center;
}

.header {
    flex-basis: 150px;
    height: 100%;
    margin-right: 20px;
    border-right: 0px solid #aaa;
    box-shadow: 0 0 10px 0 rgba(170,170,170,.9) inset;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-align-content: center;
    align-content: center;
    background: url(image/365.jpg) repeat scroll center center; /* 好きなものに変えてください */
}

.header p {
    height: 200px; /* タイトル部分が長くなる場合はここで調整してください */
    background-color: #fff;
    width: 34px;
    left: 72px;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    padding: 4px 8px 0 0;
    position: relative;
    text-align: center;
    color: #666;
    font-size: 0.9em;
    font-weight: bold;
    letter-spacing: 6px;
    box-shadow: 0 0 0 1px #aaa,
                0 0 0 2px #fff,
                -2px 0 5px 0 rgba(170,170,170,.9);
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
}

.month {
    flex-basis: 30px;
    height: 100%;
    padding: 20px 30px 0;
}

.month p {
    width: 30px;
    color: #ddd;
    font-size: 5em;
    font-family: 'Clicker Script';
    font-weight: normal;
    text-align: center;
    margin: 50px auto 0;
}

.title, .info {
    padding: 0px 20px 0;
}

.info {
    flex-basis: 400px;
}

.title span {
    color: #aaa;
    font-size: 0.9em;
    padding: 0 12px 0 0;
}

h1 {
    color: #666;
    font-size: 0.9em;
    font-weight: normal;
    line-height: 30px;
    letter-spacing: 4px;
    margin: 0px 0px;
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
}

h2 {
    font-size: 1em;
    font-weight: normal;
    text-decoration: underline;
    margin-top: 20px;
}

a {
    color: #aaa;
}

/* 縦701px以上 */

@media screen and (min-height: 701px) {
    #flex {
        width: 7100px;
    }
    .title, .info {
        flex-basis: 400px;
        height: 675px;
        line-height: 22px;
    }
    .title div {
        width: 400px;
        float: none;
    }
}

/* 縦700px */

@media screen and (max-height: 700px) {
    #flex {
        width: 11400px;
    }
    .title {
        flex-basis: 800px;
        height: 420px;
    }
    .title div, .info {
        width: 380px;
        float: left;
        line-height: 26px;
    }
}
