@import url('reset.css');

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
a:link,
a:visited,
a:hover,
a:active {
    color: #006;
    text-decoration: underline;
    cursor: pointer !important;
}
a:link {
}
a:visited {
}
a:hover {
}
.hidden {
    display: none;
}
blockquote {
    quotes: '\00201c' '\00201e';
    line-height: 1.3em;
}
blockquote:before,
blockquote:after {
    display: block;
    font-size: 150%;
    font-weight: bold;
    color: #999;
}
blockquote:before {
    content: open-quote;
    margin-bottom: -0.4em;
}
blockquote:after {
    content: close-quote;
    margin-top: -0.4em;
    text-align: right;
}
table{
    width:100%;
    font-size: 10pt;
    border:solid gray 1px;
    border-collapse:collapse;
    margin-top:10px;
}
th,td{
    border:solid gray 1px;
}
th{
    text-align:center;
    background-color:#ff9080;
}
td{
    vertical-align:baseline;
    line-height:1.2em;
}
table.no_border,
table.no_border td {
    border: none;
}
/*----------------------------------------------*/
body {
    background-color: #000;
    background-image: url('/images/back.jpg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom left;
    line-height: 1.5em;
    font-size: 16px;
    font-family: sans-serif;
    color: #ffd;
}
#frame {
/*    max-width: 1000px;*/
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 500px) {
    #navi {
        float: right;
        width: 300px !important;
        margin-right: 10px;
    }
    #popup-container {
        max-width: 520px;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
    }
}
@media screen and (min-width: 800px) {
    #popup-container {
        left: 20%;
        margin-left: 0;
        margin-right: 0;
    }
}

#navi {
    position: relative;
    width: 100%;
    margin: 15px auto;
    padding: 15px;
    max-width: 400px;
    min-width: 250px;
    height: auto;
}
#navi h1 img {
    width: 100%;
}
#search {
    position: relative;
    height: 46px;
    margin: 0 0 5px;
}
#search .ui-input-search {
    position: absolute;
    display: inline-block;
    width: 70%;
    background: #333;
    border: solid 1px #111;
    line-height: 1.2;
    color: #fff;
}
#search-key {
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.2;
}
#search .ui-input-btn {
    position: absolute;
    right: 0px;
    width: 25%;
    padding-top: 7.4px;
    padding-bottom: 7.4px;
}
#submit-btn {
    width: 100%;
}
#navi ul {
    list-style: none;
    line-height: 1.7;
}
#tag li {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#navi .last-update {
    padding-left: 0.3em;
    font-size: 80%;
    font-family: 'Courier New';
    font-weight: bold;
    color: #663;
}
#navi .menu-item:before {
    content: '#';
    color: #fa8500;
}
#navi .menu-item.page:before {
    content: url(/images/icon-page16.png);
    position: relative;
    top: 3px;
}
#navi .menu-item:link,
#navi .menu-item:visited,
#navi .menu-item:hover {
    color: inherit;
    text-decoration: none;
}
#menu .menu-item {
    font-size: 120%;
}
#tag .menu-item {
    font-size: 100%;
}
#tag {
    height: 218px;/* 16px x 1.7 x 8 */
    overflow-y: scroll;
/*    -webkit-overflow-scrolling: touch;*/
    margin: 20px 0;
}
#tag::-webkit-scrollbar {
    width:10px;
}
#tag::-webkit-scrollbar-thumb {
    background-color: #222;
    border-radius: 5px;
}

#tag .template {
    display: none;
}
#navi-footer {
    position: absolute;
    bottom: 0;
    right: 15px;
}
#navi-footer .icon {
    height: 20px;
}

#popup-container {
    top: 25px;
    overflow-y: hidden;
    width: 100%;
}
#content-popup {
    width: auto;
    height: 100%;
    max-width: 500px;
    background: #fff;
    margin: 10px 20px 10px 10px;
    padding: 15px;
    color: #000;
}
#content-popup .ui-btn-icon-notext {
    border: none !important;
}
#content-popup .ui-btn-icon-notext:after {
    background-color: rgba(120,120,120,1) !important;
}
#content-head {
    font-size: 130%;
    color: #333;
    margin: 0 0 15px;
}
#content-head.hash:before {
    content: '# ';
    color: #fa8500;
}
#content-head.search:before {
    content: url(/images/magnifier.png);
    position: relative;
    top: 3px;
    margin-right: 2px;
}
#content-head.single,
#content-head.tweet,
#content-head.contact {
    margin: 0 0 20px;
    padding: 0 0 0.5em;
    line-height: 1.2;
    border-bottom: solid 1px #ccc;
}
#content-head.single:before,
#content-head.tweet:before,
#content-head.contact:before {
    position: relative;
    top: 3px;
}
#content-head.single:before {
    content: url(/images/icon-page.png) " ";
}
#content-head.tweet:before {
    content: url(/images/icon-twitter.png) " ";
}
#content-head.contact:before {
    content: url(/images/icon-mail.png) " ";
}
#content-box {
    height: 600px;/* javascriptによって最適化される。 */
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    margin-right: -35px;/* スクロールバーはみ出し幅 */
}
#content-box::-webkit-scrollbar {
    width:10px;
}
#content-box::-webkit-scrollbar-thumb {
    background-color: #222;
    border-radius: 5px;
}
#content-inner {
    width: 100%;
    min-height: 500px;/* javascriptによって最適化される。 */
}
#content-box .article {
    margin-right: 35px;/* スクロールバーはみ出し幅 */
    margin-bottom: 15px;
}
#content-box .article.template {
    display: none;
}
#content-box .article .cont-title {
    margin: 0 0 10px;
    padding: 0.5em 0;
    line-height: 1.2;
    font-weight: bold;
    border-bottom: solid 2px #ccc;
}
#content-box .article .cont-title a:link,
#content-box .article .cont-title a:visited {
    color: inherit;
    text-decoration: none;
}
#content-box .article .cont-text {
    height: auto;
    overflow: visible;
    margin-bottom: 15px;
    font-family:inherit;
/*
    white-space:pre-wrap;
    white-space:-moz-pre-wrap;
    white-space:-o-pre-wrap;
    white-space:-pre-wrap;
*/
    word-wrap:break-word;
}
#content-box .article .cont-text p {
    margin-bottom: 1.3em;
}
#content-box .article .matched {
/*    font-weight: bold;*/
    color: #fa8500;
}
#content-box .article .shorten-mark {
    width: 2em;
    margin-top: -17px;
    cursor: pointer;
}
#content-box .article .close-mark {
    font-weight: bold;
    cursor: pointer;
}
#content-box .article .shorten {
    height: 120px;/* 16px x 1.5 x 5行 */
    overflow: hidden;
}
#content-box .article .date {
    text-align: right;
    font-size: 80%;
}
#content-box .article img.left {
    float:left;
    margin-right: 10px;
}
#content-box .article img.right {
    float:right;
    margin-left: 10px;
}
#content-box .article img.small {
    width: 150px;
}
#content-box .article img.small_h {
    height: 150px;
}
#content-box .article img.full {
    width: 100%;
}
#content-box .article iflame {
    width: auto;
}
#content-box .article .strong {
    font-weight: bold;
}
#content-box .article .youtube {
    position: relative;
    padding-bottom : 56.25%;
}
#content-box .article .youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#content-box .article .tag-list {
    font-size: 80%;
}
#content-box .article .tag-list .tag:before {
    content: '#';
    color: #fa8500;
}
#content-box .article .tag-list .tag:not(:first-child) {
    margin-left: 0.5em;
}
#content-box .article .tag-list .tag a:link,
#content-box .article .tag-list .tag a:visited,
#content-box .article .tag-list .tag a:hover,
#content-box .article .tag-list .tag a:active {
    color: #003;
    text-decoration: none;
}
#content-box .article .tag-list .tag a:hover {
    text-decoration: underline;
}

#tweets {
    height: auto;
}
#twitter-widget-0 {
/*    width: auto !important;*/
}
.twitter-timeline___ {
    height: 100% !important;
}

#contact-form {
    
}
#contact-form .ui-input-text {
    margin-top: 0;
    background: #fff;
    color: #333;
}
#contact-form label {
    display: inline;
    width: 4em;
    vertical-align: top;
    font-weight: bold;
}
#contact-form input {
    line-height: 1.2;
}
#contact-form textarea {
    height: 7em !important;
    line-height: 1.2;
}
#contact-form .alert {
    text-align: center;
    color: #ff9900;
}
#contact-confirm .content {
    white-space : pre-wrap;
    background: #eee;
    padding: 5px;
}
#contact-confirm .conf_msg {
    text-align: center;
}
#contact-confirm {
    display: none;
}
#contact-accepted {
    display: none;
}