:root {
  --slide-period: 10s;
}

/* navibarをタイトに */
@media (max-width: 768px) {
    .navbar {
        margin-bottom: 0;
        min-height: 40px;
    }
    .navbar-brand {
        padding-top: 13px;
        padding-bottom: 13px;
        height: 50px;
    }
    .navbar-toggle {
        margin-top: 8px;
        margin-bottom: 8px;
    }
    .navbar-header {
        width: calc(100% + 30px);
    }
    .navbar-nav {
        margin: 0 -15px;
    }
}

/* 非表示 */
.hidden {
    visibility: hidden;
}

/* コンテンツを中央寄せ */
.center {
    width: fit-content;
    margin: auto;
}
/* 画像表示ボックス */
#slide_window {
    position: relative;
    max-width: 1024px;
    min-width: 200px;
    /* 市松模様 */
    background-color: #2196f3;
    background-size: 60px 60px;
    background-image: linear-gradient(45deg, white 25%, transparent 25%, transparent 74.99%, white 74.99%, white), linear-gradient(45deg, white 25%, transparent 25%, transparent 74.99%, white 74.99%, white);
    background-position: 0 0, 30px 30px
}
.image_trim {
    position: absolute;
    overflow: scroll;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.image_trim::-webkit-scrollbar {
    /* スクロールバー非表示 ToDo: Firefox等に対応 */
    display: none;
}
.slide_window_under {
    width: calc(100vw - 17px);
    height: calc(100vw - 17px);
}
.slide_window_side {
    width: 100vh;
    height: 100vh;
    float: left;
}
.slide_window_rect {
    width: calc(100vh - 100px);
    height: calc(100vh - 100px);
}
#loading {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0 20px;
    border-top: solid white 1px;
    border-left: solid white 1px;
    z-index: 50;
}
#progress-queue {
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: -1em;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 7px;
    margin: 0 2px 2px 2px;
    z-index: 50;
}
.progress-content {
    display: inline-block;
    width: calc(100% / 8);
    height: 100%;
    opacity: 80%;
    margin-right: 5px;
    background-color: #e7e7e7;
}
.progress-bar{
    background-color: gray;
}
/* スライドアニメーション */
.image_frame {
    position: relative;
}
.image {
    width: 100%;
    height: 100%;
    position: absolute;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.fade-in {
    animation-name: fadeIn;
    animation-duration: 1.5s;
}
@keyframes fadeOut {
    0% {
        opacity: 1;
        display: block;
    }
    99% {
        opacity: 0;
        display: block;
    }
    100% {
        opacity: 0;
        display: none;
    }
}
.fade-out {
    animation-name: fadeOut;
    animation-duration: 1.5s;
    animation-timing-function: ease-in;
}

/* loading アニメーション */
@keyframes spinAnim {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.spin {
    animation-name: spinAnim;
    animation-duration: .8s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

/* プログレスバーアニメーション */
@keyframes progressShiftAnim {
    0% {
        width: calc(100% / 8);
        margin-right: 5px;
    }
    80% {
        width: 0;
        margin-right: 0;
    }
    100% {
        width: 0;
        margin-right: 0;
    }
}
@keyframes progressAnim {
    0% {
        width: 0
    }
    90% {
        width: 100%;
    }
    100% {
        width: 100%;
    }
}
.progress-shift {
    animation-name: progressShiftAnim;
    animation-duration: 1.0s;
}
.progress-move {
    animation-name: progressAnim;
    animation-duration: var(--slide-period);
    animation-timing-function: linear;
}

/* 画像説明 */
#description {
    max-width: 1024px;
}
.description_under {
    width: calc(100vw - 17px);
}
.description_rect {
    width: calc(100vh - 100px);
}
.description_side_max300 {
    float: left;
    width: calc(100vw - 100vh);
    max-width: 340px;
    padding-left: 10px;
    padding-right: 10px;
}
.description_side_160 {
    float: left;
    width: 180px;
    padding-left: 10px;
    padding-right: 10px;
}
.description_side_300 {
    float: left;
    width: 320px;
    padding-left: 10px;
    padding-right: 10px;
}
/* descriptionの文章 */
.description_text {
    padding: 3px 10px;
}
#good_skip {
    margin-bottom: 1px;
}
#good_btn{
    white-space: nowrap;
}
#skip_btn{
    white-space: nowrap;
}
#another_slide {
    margin-top: 1px;
    margin-bottom: 1px;
}
#detail_link {
    margin-top: 1px;
    margin-bottom: 1px;
}
#sleep_btn {
    margin-top: 0;
    margin-bottom: 1px;
}
/* テキスト行数制限 */
.text_1line {
    overflow: hidden;
    white-space:nowrap;
}
.text_2line {
  overflow: hidden;
  height: 4.5em;  /* line-height 3行分*/
  font-size: 16px;
  line-height: 1.5;
}
/* サイトテキストとsnsボタン */
#sns {
    clear: left;
}
#site_text {
    clear: left;
    padding: 10px;
    max-width: 1024px;
    margin: auto;
}
.text_under {
    width: calc(100vw - 17px);
}
.text_rect {
    width: calc(100vh - 100px);
}
.text_side_max300 {
    max-width: calc(100vh + 340px);
}
.text_side_160 {
    width: calc(100vh + 180px);
}
.text_side_300 {
    width: calc(100vh + 320px);
}

/* フォーム */
#form > form > label{
    margin-right: 10px;
}
/* 注意書き */
.notation {
    font-size: small;
    margin-top: 20pt;
}
/* 広告 */
.ad {
    text-align: center;
    overflow: hidden;
    margin-top: 1px;
    margin-bottom: 1px;
    /* 市松模様 */
    background-color: #2196f3;
    background-size: 60px 60px;
    background-image: linear-gradient(45deg, white 25%, transparent 25%, transparent 74.99%, white 74.99%, white), linear-gradient(45deg, white 25%, transparent 25%, transparent 74.99%, white 74.99%, white);
    background-position: 0 0, 30px 30px
}
.top_ad {
    text-align: center;
    overflow: hidden;
    margin-top: 1px;
    margin-bottom: 1px;
    /* 市松模様 */
    background-color: #2196f3;
    background-size: 60px 60px;
    background-image: linear-gradient(45deg, white 25%, transparent 25%, transparent 74.99%, white 74.99%, white), linear-gradient(45deg, white 25%, transparent 25%, transparent 74.99%, white 74.99%, white);
    background-position: 0 0, 30px 30px
}
iframe {
    margin-bottom: -6px;
}
iframe.ad_728x90 {
    margin-right: auto;
    margin-left: auto;
    border: none;
    width: 728px;
    height: 90px;
}
iframe.ad_468x60 {
    margin-right: auto;
    margin-left: auto;
    border: none;
    width: 468px;
    height: 60px;
}
iframe.ad_320x100 {
    margin-right: auto;
    margin-left: auto;
    border: none;
    width: 320px;
    height: 100px;
}
iframe.ad_300x250 {
    margin-right: auto;
    margin-left: auto;
    border: none;
    width: 300px;
    height: 250px;
}
iframe.ad_160x600 {
    margin-right: auto;
    margin-left: auto;
    border: none;
    width: 160px;
    height: 600px;
}
iframe.ad_300x250_v2 {
    margin-right: auto;
    margin-left: auto;
    border: none;
    width: 300px;
    height: 500px;
}

/* 英語用オーバーレイ広告 */
#footer_app{
	height:100px;
	position:fixed;
	bottom:0;
	left:50%;
	width:320px;
	color:#FFF;
	z-index:2;
	line-height: 100%;
    transform:translateX(-50%);
}
.banner{
	text-align:center;
	background-color:gray;
}
.footer_app_close{
	background-color:#f9f9f9;
	color:#333;
    position: fixed;
    right: 0;
	border:solid 1px #333;
	border-radius:5px;
	cursor:pointer;
	width:20px;
    height: 20px;
	font-size:16px;
	line-height:20px;
}
#footer_ad {
    border: none;
    margin: 0;
}