@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    color: #000;
}

main {
    padding-top: 64px;
    padding-bottom: 64px;
    padding-left: 0px;
    padding-right: 0px;
    z-index: 7;
}
#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer {
    margin-top: auto;
    width: 100%;
    background-color: #888;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    min-height: calc(120px + env(safe-area-inset-bottom));
}
.footer a {
    color: #fff;
}
.footer a:hover {
    color: #fff;
}

/* 記事一覧上部に表示するバナーのスタイル */
.pr {
    width: 100%;
    height: 80px;  /* config > const.php > banner_height と同じ */
    position: fixed;
    z-index: 8;
    background-color: black;
    text-align: center;
}

.pr img {
    max-width: 430px;
    max-height: 80px;  /* config > const.php > banner_height と同じ */
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.banner {
    position: fixed;
    background-color: #ccc;
    width: 100%;
    display: block;
    height: 40px;
    z-index: 8;
}

.banner .logo {
    height: 100%;
}

.banner > a > h1 {
    color: black;
    font-size: 21px;
    display: inline-block;
    padding-left: 4px;
    vertical-align: bottom;
}

.drawer-overlay {
    z-index: 29;
}

.drawer-nav {
    z-index: 300;
}

.drawer-hamburger {
    z-index: 300;
    top: 40px;
    padding: 9px 8px 0 12px;
    height: 33px;
    width: 1.5rem;
}

.drawer-hamburger-icon{
    margin-top:2px;
}

.drawer-hamburger-icon:after, .drawer-hamburger-icon:before {
    top:-6px;
}
.drawer-hamburger-icon:after {
    top: 6px;
}

.drawer-hamburger-capt {
    margin-left: -2px;
}

.drawer-open .drawer-hamburger-capt::after {
    content: "CLOSE";
    font-size: 0.6rem;
}

.drawer-close .drawer-hamburger-capt::after {
    content: "MENU";
    font-size: 0.6rem;
}

.navbar {
    z-index: 8;
    background-color: #bbb;
    position: fixed;
    width: 100%;
    top: 40px;
    height: 45px;
    padding: 0;
    margin: 0;
}

.navtitle {
    display: inline-block;
    margin-left: 44px;
    margin-right: 44px;
    width: 100%;
    text-align: center;
}

.navsearch {
    position: absolute;
    width: 50px;
    /* margin: 0; */
    right: 0px;
    text-align: center;
    display: inline-block;
    margin-bottom: 5px;
}

#category_button {
    vertical-align: middle;
    right:40px;
    margin-bottom:5px;
    border: none;
    background-color: transparent;
    outline: none;
    box-shadow: none;
}

#favorite_button {
    vertical-align: middle;
    right:90px;
    margin-bottom:5px;
}

.nav_header_icon {
    width: 40px;
    color: #4b4b4b;
    font-size: 22px;
    vertical-align:bottom;
    margin-bottom: -10px;
}

#setting_icon {
    width: 40px;
    color: black;
    font-size: 22px;
    vertical-align:bottom;
}

.navtitle > h1 {
    padding-top: 8px;
    width: 100%;
    font-size: 21px;
    font-weight: bold;
    text-align: center;
}

.navsearch_cap {
    vertical-align: bottom;
    color: black;
    font-size: 0.6rem;
    white-space: nowrap;
}

.setting_cap {
    vertical-align: bottom;
    color: black;
    font-size: 0.6rem;
    white-space: nowrap;
}

.fade-scale {
    transform: scale(0);
    opacity: 0;
    -webkit-transition: all 0.25s linear;
    -o-transition: all 0.25s linear;
    transition: all 0.25s linear;
}

.fade-scale.in {
    opacity: 1;
    transform: scale(1);
}

.menu_icon {
    width: 24px;
    height: 24px;
}

.nav-link {
    color: black;
}

.nav-link.active {
    background-color: #eee;
    color: deepskyblue;
}

.sidebar-header {
    background-color: #ccc;
    text-align: center;
    height: 60px;
    padding-top: 14px;
    font-size: 24px;
}

.sidebar-header span {
    text-shadow: 2px 2px 2px #777;
}

.sidebar-heading {
    padding: 4px 4px 4px 16px;
    color: #777;
    background-color: #ddd;
    margin-block-end: 0;
}

.article_title {
    font-size: 14px;
    color: navy;
    padding-bottom: 7px;
}

.article_info {
    font-size: 8px;
    white-space: nowrap;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a.externallink {
    text-decoration: none;
    color: #3399f3;
}

.align-items-end {
    color: #777;
}
.swipe-navi {
    height: 40px;
    background-color: #eee;
    position: fixed;
    z-index: 8;
    top: 80px;
    font-size: 10px;
    vertical-align: bottom;
    text-align: center;
}

.swipe-navi-item {
    text-overflow: ellipsis;
    padding-top: 10px;
    overflow-x: hidden;
    /* white-space: nowrap; */
}
/*.swiper-slide-active{
    background-color: #333;
    color: white;

}
.swiper-slide-thumb-active {
    background-color: #333;
    color: white;
}*/
.swipe-item-active {
    background-color: #333 !important;
    color: white !important;
}

.turbolinks-progress-bar {
    height: 10px;
    background-color: green;
}

.container {
    width: 100%;
}

.loader,
.loader:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}
.loader {
    margin: 50% auto;
    font-size: 6px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(0, 0, 0, 0.2);
    border-right: 1.1em solid rgba(0, 0, 0, 0.2);
    border-bottom: 1.1em solid rgba(0, 0, 0, 0.2);
    border-left: 1.1em solid #333;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}
@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.thumbnail {
    width: 90%;
    height: 75px;
    object-fit: contain;
    margin: auto;
    display: block;
}

@media screen and (min-width: 640px) {
    .thumbnail {
        width: 90%;
        height: 75px;
        object-fit: contain;
        margin: auto;
        display: block;
    }
}
.modaal-wrapper .modaal-close {
    background-color: black!important;
}

.padding-right-0{
    padding-right: 0px;
}

.orijinal-btn{
    background-image: none;
    height: 60px;
    color: black;
    border: 1px solid black!important;
    border-radius: 0px!important;
    font-weight: bold;
}

.box {
    position: relative;
}

.box img {
    pointer-events: none;
}

.box p {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    margin:0;
    padding:0;
    color: rgba(165, 165, 165, 0.4);
    font-size: 4rem;
}

.ranking-tab {
    width: 100px!important;
}

/* ニュースカテゴリメニューのスタイル */
.news-category-menu-div {
    top: 135%;
    right:15px;
    width:360px;
    padding: 20px 15px 20px 15px;
    color: black;
    border:gray 2px solid;
    border-radius: 10px;
}

.news-category-menu-div > i {
    margin-top: -15px;
    font-size: 20px;
}

.news-category-menu-div  div {
    font-weight: bold;
    font-size: 18px;
}

.news-category-menu-div  table {
    width: 100%;
    text-align: center;
    font-size: 14px;
    margin-top:5px;
    margin-bottom:20px;
}

.news-category-menu-div table td {
    width: 50%;
    padding: 5px;
    border-top: gray 1px dashed;
    border-bottom: gray 1px dashed;
}

.news-category-menu-div table td a {
    color: black;
}

.news-category-menu-div:before {
    content: "";
    position: absolute;
    top: -25px;
    right: 32px;
    border: 12px solid transparent;
    border-bottom: 13px solid #FFF;
    z-index: 2;
}

.news-category-menu-div:after {
    content: "";
    position: absolute;
    top: -30px;
    right: 30px;
    border: 14px solid transparent;
    border-bottom: 15px solid gray;
    z-index: 1;
}

.btn-to-link {
    font-size: 18px;
    color: #1e90ff;
    border: none;
    background-color: white;
}
.btn-to-link:hover{
    opacity: 70%;;
}
