﻿
@charset "utf-8";
/*
Theme Name: rb_portal_theme
Author: Hiroki Ikawa @ RagingBull Inc.
Author URI: ikawa_h@st-ragingbull.com
Version: 0.0.251127
*/

#primary-sidebar {
    /* 初期幅を設定 */
    width: 300px; 
    /* リサイズ機能は、親要素に対して相対的に配置されるため、positionが重要 */
    position: relative; 
    /* デフォルトのサイドバーの境界線（あれば） */
    border-right: 4px solid #000; 
}

#main-content {
    /* サイドバーの残りスペースを埋める */
    flex-grow: 1; 
}

/* jQuery UI が挿入するリサイズハンドル用のスタイル */
.ui-resizable-handle {
    /* ハンドルをサイドバーの右端に配置 */
    position: absolute;
    right: -5px; /* 見やすいように少し外に出す */
    top: 0;
    width: 15px;
    height: 100%;
    cursor: col-resize; /* マウスカーソルを左右変更の形にする */
    background: transparent; /* 背景は透明にしても良い */
    z-index: 10;
}


body {
    margin:0;
    padding:0;
    overflow-x: hidden;
    font-family: "Sawarabi Gothic", "Noto Sans JP", sans-serif;
    background-color: #fff;
    text-align: center;
    word-break: break-all;

    animation: fadeIn 2s ease 0s 1 normal;
    -webkit-animation: fadeIn 2s ease 0s 1 normal;
}

@keyframes fadeIn {
    0% {opacity: 0}
    100% {opacity: 1}
}

@-webkit-keyframes fadeIn {
    0% {opacity: 0}
    100% {opacity: 1}
}

.serif {
    font-family: serif;
}

.news-column h2 {
    font-size: 1em;
}

.cat-name {
    position: absolute;
    top: 0;
    background:#000;
    text-align: center;
    padding: 4px;
    color: #ff0;
    font-size: 3em;
    font-family: serif;
}

.mt-10 {
    margin-top: 10px;
}

a {
    text-decoration-line: underline;
}

a:link {
    color: #04c;
}

a:visited {
    color: #808;
}

li {
    list-style-type: none;
}

.center {
    text-align: center;
}

.bread ul {
    display: flex;
    margin: 0;
    padding: 0;
}

.bread li {
    margin: 0 10px;
}

.bread li:first-child {
    margin: 0;
    margin-right: 10px;
}

header {
    background: #ccc;
    color: #000;
}

.header-text {
    display: flex;
    position: relative;    
}

.header-text h1 {
    position: relative;
    padding-left: 50px;
    font-size: 4em;
    /*margin-right: 1em;*/
}

.header-text p {
    position: relative;
    padding-left: 50px;
    margin: 20px;
}

.header-text.search {
    position: absolute;
    right: 40px;
    top: 60px;
}

.search {
    position: absolute;
    right: 40px;
    top: 40px;
    font-size: 2em;
}

.single-img-post {
    height: 400px;
}

.img-post-text {
    position: absolute;
    font-family: serif;
    left: 40px;
    top: 50%;
    color: #fff;
}

.layout {
    display: grid;
    min-height: 100dvh;
    grid-template-columns: 300px 1fr;
}

.text-gray {
    color: #aaa;
}

section {
    position: relative;
    padding: 40px;
}

h1 {
    font-size: 3em;
}

h2, h3, h4 {
    position: relative;
}

.underline::before {
    content: '';
    display: block;
    background: #333;
    height: 1px;
    width: 20px;
    position: absolute;
    bottom: -10px;
    left: 0;
}

.no-padding {
    padding: 0;
}

.flex-box {
    display: -webkit-box;
    display: box;
}

.flex-box div {
    -webkit-box-flex: 1;
    box-flex: 1;
    width: 100%;
    margin: 4px;
}

.flex-box trim {
    overflow: hidden;
    width: auto;    /*トリミングしたい枠の幅*/
    height: 240px;      /*トリミングしたい枠の高さ*/
    position: relative;
}

.flex-box .trim img {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
}

#container {
    position: relative;
}

.contents-area {
    padding: 40px 200px;
    margin: 0px;
}

.sidebar {
    position: relative;
    background: #ddd;
    text-align: left;
    word-break: break-all;
    top: 0;
    margin: 0px;
    padding: 0px;
}

.sidebar-scrollable {
    height: 100vh;
    background: #ddd;
    overflow-y: auto;
    overflow-x: auto;
    word-break: break-all;
    white-space: nowrap;
    padding: 20px;
}
/*
.current-cat a {
    background-color: #ff0;
}
*/
.post-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.post-image {
    margin-right: 10px;
    margin-left: 50px;
}

.post-image img {
    display: block;
    max-width: 400px;
    max-height: 300px;
    height: auto;
}

.post-title h2 {
    margin-left: 50px;
    font-size: 2.0em;
}

.fixed-box {
    position: fixed;
    z-index: 8;
    left: 10px;
    top: 10px;
    height: 300px;
    width: 90px;
    background: rgba(255,255,255,0.8);
}

.b-none {
    border: none;
    background: none;
}

footer {
    position: static;
    padding: 2rem;
    color: #00f;
    background: #cff;
}


footer section {
    background: #00f;
    color: #fff;
}

footer a {
    color: #f0f;
}



@media screen and(max-width:680px) {
    .menu {
        display: block;
        height: 100%;
        position: relative;
        padding: 1em;
    }

    .single-img-post {
        height: 200px;
    }

    .img-post-text {
        top: 100%;
        color: #333;
    }

    .home .single-img-post {
        margin-bottom: 120px;
        border-bottom: 4px solid #f4f4f4;
    }

    .flex-box div {
        margin: 0;
    }

    .header-text .search, .cat-name {
        display: none;
    }

    .header-text {
        display: block;
    }

    .header-text p {
        top: 0;
        left: 20px;
    }

    section {
        padding: 10px;
    }

    .flex-box {
        display: block;
    }

    .flex-box .block {
        width: 100%;
    }

    .contents-area {
        padding: 40px 10px;
    }

    .sidebar {
        position: relative;
    }

    .button-area {
        display: flex;
    }

    .button-area div {
        width: 30px;
    }

}
