/* 
Template Name: Mediumish 
Copyright: Sal, WowThemes.net, https://www.wowthemes.net 
License: https://www.wowthemes.net/freebies-license/ 
*/
.mainheading {
    padding: 0rem 0rem;
}

a {
    color: #d38557;
    transition: all 0.2s;
}

a:hover {
    color: #c4afe5;
    text-decoration: none;
}

pre {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: #E3EDF3 1px solid;
    width: 100%;
    padding: 7px;
    font-family: monospace, sans-serif;
    font-size: 14px;
    white-space: pre;
    overflow: auto;
    background: #fff;
    border-radius: 0px;
    line-height: 1.6;
    color: #333;
    margin-bottom: -rem;
}

.mediumnavigation {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 2px 2px -2px rgba(0, 0, 0, .15);
    transition: top 0.2s ease-in-out;
}

.main-content {
    min-height: 300px;
    padding-top: 20px;
  border-radius: 8px;
    padding: initial;
}

.site-content {
    min-height: 60vh;
    padding-top: 1.5rem;
    margin-top: 57px;
    transition: all 0.4s;
}

section {
    /*margin-bottom: 20px;*/
}

section.recent-posts {
    margin-bottom: 0;
    margin-left: 20px;
    margin-right: 20px;
}

.section-title h2 {
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    margin-bottom: 25px;
    font-weight: 700;
    /*font-size: 1.4rem;*/
    margin-bottom: 27px;
}

.section-title span {
    border-bottom: 1px solid rgba(0, 0, 0, .44);
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: -1px;
}

.article-post ol,
.article-post ul {
    margin-bottom: 1.5rem;
}

.article-post ol ol,
.article-post ul ul {
    list-style: disc;
    margin-bottom: 0rem;
}

@media (min-width:576px) {
    .card-columns.listfeaturedtag {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
    }
}

@media (min-width:992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 0.8rem;
        padding-left: 0.8rem;
    }
}

.listfeaturedtag {
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.listfeaturedtag .wrapthumbnail {
    height: 290px;
    flex: 0 0 auto;
    height: 100%;
}

.maxthumb {
    max-height: 150px;
    overflow: hidden;
}

.listfeaturedtag .card,
.card-footer {
    /*border: 0;*/
    /*display: none;*/
}

.card-footer {
    padding: .5rem 1.25rem;
 }

.listfeaturedtag .thumbnail {
    background-size: cover;
    height: 100%;
    display: block;
    background-position: 38% 22% !important;
    background-origin: border-box !important;
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
}

.listfeaturedtag .card-block {
    padding-left: 0;
}

.listfeaturedtag h2.card-title,
.listrecent h2.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    /*line-height: 1.25;*/
    padding: 3px;
}

.listfeaturedtag h4.card-text,
.listrecent h4.card-text {
    color: rgba(0, 0, 0, .44);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

.featured-box-img-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
    max-height: 100%;
}

@media (max-width:991px) {
    .featured-box-img-cover {
        height: auto;
        width: 100%;
    }
}

.wrapfooter {
    font-size: 12px;
    display: flex;
    align-items: center;
   /* margin-bottom: 15px;*/
   /* display: none;:*/
}

.author-thumb {
    width: 40px;
    height: 40px;
    border-radius: 100%;
}

.post-top-meta {
    margin-bottom: 2rem;
}

.post-top-meta .author-thumb {
    width: 72px;
    height: 72px;
}

.post-top-meta.authorpage .author-thumb {
    margin-top: 40px;
}

.post-top-meta span {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, .44);
    display: inline-block;
}

.post-top-meta .author-description {
    margin-bottom: 5px;
    margin-top: 5px;
    font-size: 0.95rem;
}

.toc ul {
    list-style: decimal;
    font-weight: 400;
}

.author-meta {
    flex: 1 1 auto;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
}

span.post-name,
span.post-date,
span.author-meta {
    display: inline-block;
}

span.post-date,
span.post-read {
    color: rgba(0, 0, 0, .44);
}

span.post-read-more {
    align-items: center;
    display: inline-block;
    float: right;
    /*margin-top: 8px;*/
}

span.post-read-more a {
    color: rgba(0, 0, 0, .44);
}

span.post-name a,
span.post-read-more a:hover {
    color: rgba(0, 0, 0, .8);
}

.dot:after {
    content: "・";
    margin-left: 3px;
    margin-right: 3px;
}

.mediumnavigation .form-control {
    font-size: 0.8rem;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    min-width: 180px;
}

.mediumnavigation .form-inline {
    margin-left: 15px;
}

.mediumnavigation .form-inline .btn {
    margin-left: -50px;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
}

.mediumnavigation .form-inline .btn:hover,
.mediumnavigation .form-inline .btn:active {
    background: transparent;
    color: green;
}

.mediumnavigation .navbar-brand {
    font-weight: 500;
}

.mediumnavigation .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin: .5rem 0 0;
}

.mediumnavigation .nav-item,
.dropdown-menu {
    font-size: 0.9rem;
}

.mediumnavigation .search-icon {
    margin-left: -40px;
    display: inline-block;
    margin-top: 3px;
    cursor: pointer;
}

.mediumnavigation .navbar-brand img {
    max-height: 30px;
    margin-right: 5px;
}

/* ヘッダーの中身を包んでいるコンテナの最大幅を狭めて、左右の間延びを解消する */
header .container,
.site-header .container,
.navbar {
    margin-left: auto;
    margin-right: auto;
    padding: 5px 200px;
}

.mainheading h1.sitetitle {
    font-family: Righteous;
}

.mainheading h1.posttitle {
    font-weight: 700;
    margin-bottom: 0rem;
}

.footer {
    border-top: 1px solid rgba(0, 0, 0, .05) !important;
    padding-top: 15px;
    padding-bottom: 12px;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, .44);
    margin-top: 30px;
    margin-bottom: 62px;
    position: relative;
    background: #fff;
}

.link-dark {
    color: rgba(0, 0, 0, .8);
}

.article-post {
    font-family: Merriweather;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, .8);
    padding: 20px 10px 0px 15px;
}

blockquote {
    border-left: 4px solid #00ab6b;
    padding: 0 20px;
    font-style: italic;
    color: rgba(0, 0, 0, .5);
}

.article-post p,
.article-post blockquote {
    margin: 0 0 1.5rem 0;
}

.featured-image {
    display: block;
    margin-bottom: 1.5rem;
}

.share {
    text-align: center;
}

.share p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.share ul li {
    display: inline-block;
    margin-bottom: 9px;
}

.share ul {
    padding-left: 0;
    margin-left: 0;
}

.share ul li i.fa {
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
}

.svgIcon {
    vertical-align: middle;
}

.sticky-top-offset {
    top: 100px;
}

@media (min-width:1024px) {
    .share ul li {
        display: block;
    }
}

@media (max-width:999px) {
    .featured-box-img-cover {
        height: 359px;
    }

    .alertbar {
        position: relative !Important;
        margin-bottom: 20px;
        margin-top: 20px;
        box-shadow: none !Important;
        padding-right: 14px !Important;
    }

    #comments {
        margin-right: 15px;
    }

    .jumbotron.fortags {
        margin-bottom: 0 !Important;
    }

    .alertbar form {
        margin-top: 20px;
    }

    .alertbar span,
    .alertbar form {
        display: block;
    }

    .alertbar input[type="submit"] {
        border-radius: 3px !Important;
    }

    .alertbar input[type="email"] {
        margin-right: 0px !Important;
        display: block;
        border-right: 1px solid #ddd !Important;
        margin-bottom: 10px;
    }

    .jumbotron {
        margin-bottom: 0;
        border-radius: 0;
    }

    .listfeaturedtag .card {
        height: auto;
    }

    .listfeaturedtag .wrapfooter {
        position: relative;
        margin-top: 30px;
    }

    .listfeaturedtag .card-block {
        padding: 20px;
    }

    .footer {
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

@media (max-width:1024px) {
    .post-top-meta .col-md-10 {
        text-align: center;
    }
}

@media (max-width:767px) {
    .post-top-meta.authorpage {
        text-align: center;
    }
}

.share,
.share a {
    color: rgba(0, 0, 0, .44);
    fill: rgba(0, 0, 0, .44);
}

.graybg {
    background-color: #fafafa;
    padding: 40px 0 46px;
    position: relative;
}

.listrelated .card {
    box-shadow: 0 1px 7px rgba(0, 0, 0, .05);
    border: 0;
}

ul.tags {
    list-style: none;
    padding-left: 0;
    margin: 0 0 3rem 0;
}

ul.tags li {
    display: inline-block;
    font-size: 0.9rem;
}

ul.tags li a {
    background: rgba(0, 0, 0, .05);
    color: rgba(0, 0, 0, .6);
    border-radius: 3px;
    padding: 5px 10px;
}

ul.tags li a:hover {
    text-decoration: none;
}

.margtop3rem {
    margin-top: 3rem;
}

.sep {
    height: 1px;
    width: 20px;
    background: #999;
    margin: 0px auto;
    margin-bottom: 1.2rem;
}

.btn.follow {
    border-color: #02B875;
    color: #1C9963;
    padding: 3px 10px;
    text-align: center;
    border-radius: 999em;
    font-size: 0.85rem;
    display: inline-block;
}

.btn.subscribe {
    background-color: #1C9963;
    border-color: #1C9963;
    color: rgba(255, 255, 255, 1);
    fill: rgba(255, 255, 255, 1);
    border-radius: 30px;
    font-size: 0.85rem;
    margin-left: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.post-top-meta .btn.follow {
    margin-left: 5px;
    margin-top: -4px;
}

.alertbar {
    box-shadow: 0 -3px 10px 0 rgba(0, 0, 0, .0785);
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #fff;
    width: 100%;
    padding: 14px 0;
    z-index: 1;
    display: none;
}

.alertbar form {
    display: inline-block;
}

.alertbar input[type="email"] {
    font-size: 0.85rem;
    padding: 3px 5px 3px 10px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    border: 1px solid #ddd;
    border-right: 0;
    margin-right: -10px;
    height: 34px;
    letter-spacing: 0.5px;
    margin-left: 5px;
}

.alertbar input[type="submit"] {
    background-color: #1C9963;
    border: 1px solid #1C9963;
    color: rgba(255, 255, 255, 1);
    fill: rgba(255, 255, 255, 1);
    font-size: 0.85rem;
    border-radius: 0;
    padding: 4px 10px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    font-weight: 600;
    height: 34px;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.form-control::-webkit-input-placeholder {
    color: rgba(0, 0, 0, .5);
}

.form-control:-moz-placeholder {
    color: rgba(0, 0, 0, .5);
}

.form-control::-moz-placeholder {
    color: rgba(0, 0, 0, .5);
}

.form-control:-ms-input-placeholder {
    color: rgba(0, 0, 0, .5);
}

.form-control::-ms-input-placeholder {
    color: rgba(0, 0, 0, .5);
}

.authorpage h1 {
    font-weight: 700;
    font-size: 30px;
}

.post-top-meta.authorpage .author-thumb {
    float: none;
}

.authorpage .author-description {
    font-size: 1rem;
    color: rgba(0, 0, 0, .6);
}

.post-top-meta.authorpage .btn.follow {
    padding: 7px 20px;
    margin-top: 10px;
    margin-left: 0;
    font-size: 0.9rem;
}

.graybg.authorpage {
    border-top: 1px solid #f0f0f0;
}

.authorpostbox {
    width: 760px;
    margin: 0px auto;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.authorpostbox .img-thumb {
    width: 100%;
}

.sociallinks {
    margin: 1rem 0;
}

.sociallinks a {
    background: #666;
    color: #fff;
    width: 22px;
    height: 22px;
    display: inline-block;
    text-align: center;
    line-height: 22px;
    border-radius: 50%;
    font-size: 12px;
}

#comments {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.h1, h1 {
    padding-bottom: 20px;
}

.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #68a3a0;
}

h3 {
 color: #7aafad;/*文字色*/
  /*線の種類（点線）2px 線色*/
  border-bottom: dashed 2px #7aafad;
  margin-top: 40px;   /* 見出しの上の余白 */
  margin-bottom: 15px;  /* 見出しの下の余白 */
}


h4 {
 color: #7aafad;/*文字色*/
position: relative;
display: inline-block;
  padding: 0.25em 1em;
  border-top: solid 2px #7aafad;
  border-bottom: solid 2px #7aafad;
  margin-top: 20px;    /* ← 上の余白を広げる */
  margin-bottom: 20px; /* ← 下の余白を広げる */
}

h5 {
 color: #7aafad;/*文字色*/
}



.article-post .h1,
.article-post .h2,
.article-post .h3,
.article-post .h4,
.article-post .h5,
.article-post .h6,
.article-post h1,
.article-post h2,
.article-post h3,
.article-post h4,
.article-post h5,
.article-post h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.h2, h2 {
    padding: 0 0 20px;
}

.article-post img.shadow {
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.30);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.30);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.30);
}

.layout-page .article-post {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
}

.layout-page .article-post p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
}

.bottompagination span.navigation {
    display: block;
    font-size: 0.93rem;
    padding: 15px 0 0 0;
    text-align: center;
    margin-bottom: 0rem;
    color: #999;
    border-top: 1px solid #ddd;
}

.pointerup {
    margin-bottom: -17px;
    margin-left: 49%;
    font-size: 30px;
}

.pointerup i.fa {
    color: #eaeaea;
}

.bottompagination span.navigation i {
    display: inline-block;
}

span.navigation {
    display: inline-block;
    font-size: 0.93rem;
    font-weight: 700;
    text-align: center;
}

.pagination {
    display: block;
}

iframe {
    max-width: 100%;
}

.transpdark {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
}

@media (min-width:768px) {
    .jumbotron.fortags {
        margin-bottom: -50px;
        margin-top: 3rem;
        padding: 0;
        height: 350px;
        border-radius: 0;
        background-image: url(../images/jumbotron.jpg);
        background-size: cover;
    }

    .jumbotron.fortags .col-md-4 {
        background: rgba(0, 0, 0, 0.75);
        color: #fff;
    }


.tags a:hover {
  background-color: #e2e8f0;
}.top-hero-image

    .jumbotron.fortags .row {
        margin: 0;
    }
}

.row {
    margin-left: 0px;
}

.jumbotron.fortags {
    margin-top: 3rem;
    padding: 0;
    border-radius: 0;
    background-image: url(../images/jumbotron.jpg);
    background-size: cover;
}

.jumbotron.fortags a {
    padding: 5px 10px 7px;
    background: #222;
    border-radius: 30px;
    color: #fff;
    font-weight: 500;
    text-transform: lowercase;
    font-size: 0.8rem;
    display: inline-block;
}

.layout-page .jumbotron.fortags {
    display: none;
}

.mb-30px {
    margin-bottom: 10px;
    padding: 5px;
}

.flex-first {
    -webkit-box-ordinal-group: 0;
    -webkit-order: -1;
    -ms-flex-order: -1;
    order: -1;
}

@media (min-width: 768px) {
    .flex-md-unordered {
        -webkit-box-ordinal-group: 1;
        -webkit-order: 1;
        -ms-flex-order: 1;
        order: 1;
    }

    .flex-first {
        -webkit-box-ordinal-group: 0;
        -webkit-order: 1;
        -ms-flex-order: 1;
        order: 1;
    }
}

@media (max-width: 768px) {
    .share {
        margin-top: 30px;
    }
}

.card .img-fluid {
    width: 100%;
}

.sticky-top-80 {
    top: 80px;
}


/* ギャラリー一覧などのサムネイル画像のサイズを一括調整 */
.card-text:last-child {
    margin-bottom: 0;
    height: 0;
    overflow: hidden;
}


/* 記事本文内にある画像のサイズを一括指定 */
.article-post img, .post-content img {
    width: 100%;          /* あるいはお好みのサイズ（例: 600px など） */
    max-width: 500px;     /* 大きくなりすぎないように制限 */
    height: auto;         /* 縦横比を自動で綺麗に保つ */
    display: block;
    margin: 0 auto;       /* 中央寄せにしたい場合 */
}

/* 2. 画像を囲んでいるリンク（<a>）を、画像（中身）の幅だけにぴったり合わせる */
.article-post a:has(img), .post-content a:has(img) {
    display: table;     /* ★ここがポイント：コンテンツ（画像）の幅に自動で縮まるブロックになる */
    margin: 0 auto;     /* ★これでテーブル（＝リンク全体）を中央寄せにする */
}

/* カード内の抜粋テキストだけを非表示にする */
.card-text p, .card-body p {
    display: none !important;
}

/* 記事下のカテゴリーの余白 */
.categories {
    margin-bottom:15px;
}

/* ホーム画面の巨大タイトルを非表示にする例 */
.mainheading h1.sitetitle {
    display: none;
}

.my-red {
  color: #e74c3c !important;
}

/* シェアボタンのエリアを非表示にする */
.share, .share-area, .social-share {
  display: none !important;
}

/* Aboutページの一番下のセクション（Exploreとタグ）全体を非表示にする */
/* テーマによってクラス名が異なる可能性があるため、代表的なものを指定します */
.post-navigation, /* 記事ナビゲーション */
.jumbotron.fortags,
.related-posts,    /* 関連記事 */
.section-explore,  /* このような名前のセクションクラス */
#footer-widgets {  /* フッターウィジェットエリア */
    display: none !important;
}

/* トップページの画像調整 */
.top-hero-image {
    width: 100%;          /* あるいはお好みのサイズ（例: 600px など） */
    max-width: 600px;     /* 大きくなりすぎないように制限 */
    height: auto;         /* 縦横比を自動で綺麗に保つ */
    max-height: 400px;
    display: block;
    margin: 0 auto;       /* 中央寄せにしたい場合 */
  object-fit: cover; /* この一行を追加するだけ！ */
}

/* 画面幅が「768px以下」（スマホやタブレットの縦画面など）になったとき */
@media screen and (max-width: 768px) {
    .top-hero-image {
    max-width: 500px;     /* 大きくなりすぎないように制限 */
    height: auto;         /* 縦横比を自動で綺麗に保つ */
    }
}


/* 画面幅が「768px以下」（スマホやタブレットの縦画面など）になったとき */
@media screen and (max-width: 450px) {
    .top-hero-image {
    max-width: 330px;     /* 大きくなりすぎないように制限 */
    height: auto;         /* 縦横比を自動で綺麗に保つ */
    }
}


/* トップ画像のライトボックス（拡大・リンク）を無効化する */
.top-hero-image a.glightbox {
    pointer-events: none; /* リンクとしてのクリックを完全に無効化する */
    cursor: default;
}

/* 親コンテナ全体の最大幅を制限して、左右に広がりすぎるのを防ぐ */
.top-flex-container {
    display: flex;
    gap: 20px;
    align-items: center; /* ← ここを 'flex-start' から 'center' に変更！ */
    max-width: 700px;
    margin: 0 auto;
}

/* 左側の画像エリアの最大幅を固定する（広がりすぎ防止） */
.top-image-area {
    flex: 0 1 400px; /* 基準の幅を400pxくらいにする */
}
.top-image-area img {
    width: 100%; /* 画像を親ボックスいっぱいに表示 */
    height: auto;
    border-radius: 8px; /* 角を丸く */
}

/* 右側の履歴エリアの幅を調整 */
.top-history-area {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}



/* 履歴エリア内の見出しやリストの見た目を整える */
.top-history-area h3 { margin-top: 0; }
.top-history-area ul { list-style: none; padding: 0; margin: 0; }
.top-history-area li { margin-bottom: 10px; display: flex; gap: 15px; }
.top-history-area time { color: #777; }

/* 画面幅が「768px以下」（スマホやタブレットの縦画面など）になったとき */
@media screen and (max-width: 768px) {
    .top-flex-container {
        flex-direction: column; /* 横並びから縦並びに切り替える */
        gap: 20px;
       /*  align-items: flex-start;*/
    }
}

    /* 縦並びになったとき、画像と履歴の幅をいっぱいに広げる */
    .top-image-area,
    .top-history-area {
        width: 100%;
        flex: 1 1 100%;
    }


.news-posts {
    background: #f8fbff; /* ごく薄いブルーの背景 */
    border: 1px solid #e1ecf4; /* 細い枠線 */
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); /* うっすら影をつける */
}

/* 見出しの左側にアクセントの縦棒をつける */
.news-posts {
    border-left: 5px solid #3498db; /* 先ほどの青色 */
    padding-left: 10px;
    margin-bottom: 15px;
}



/* スマホやタブレット（992px未満）のときは2列にする */
@media (max-width: 991.98px) {
    .row > .col-lg-4,
    .row > .col-md-6,
    .row > .col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}





/* 1. デスクトップなど広い画面（1000px以上）では「5つ」並べる */
@media (min-width: 1000px) {
    .gallery-item-5 {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }
}

/* 2. タブレットなどの中間画面（768px〜999px）では「3つ」並べる */
@media (min-width: 768px) and (max-width: 999px) {
    .gallery-item-5 {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }
}

/* 3. スマホなど狭い画面（767px以下）では「2つ」並べる */
@media (max-width: 767px) {
    .gallery-item-5 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}





.card-body {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 5px 7px 7px
}

.card-title {
    margin-bottom: .0rem;
}

body {
    background-color: #fdfbf7;
}

/* 左側の空きスペース（col-md-2）を非表示にして、本文エリア（col-md-9など）を横幅いっぱいに広げる */
.row > .col-md-2 {
    display: none !important;
}

.row > .col-md-9, 
.row > .col-lg-9 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}


@media (min-width: 992px) {
    .container {
        max-width: 1000px;
    }
}


@media (max-width: 999px) {
    .footer {
        margin-top: 30px;
        margin-bottom: 0px;
    }
}


.index-title {
    color: rgba(0, 0, 0, .84);
    margin-top: 0px !important;
}

.text-muted {
    text-align: end !important;
}




/* 画面全体に高さを確保する */
html, body {
  height: 100%;
  margin: 0;
}

/* フレックスボックスを使って縦方向に並べ、最小の高さを画面いっぱいに設定 */
.footer {
  display: flex;
  flex-direction: column;
  min-height: 50vh;
}

/* メインコンテンツを伸縮させて、フッターを押し下げる */
main {
  flex: 1;
}

/* フッターのスタイル（白色の背景など） */
.footer {
  background-color: #9fb9b7;
  /* 必要に応じてパディングやテキスト中央寄せなど */
  text-align: center;
  padding: 20px 0;
}

/* フッター全体、またはコピーライト部分の文字色を変更する */
footer, .footer, .copyright {
    color: #e7eded; /* ここをお好みの色（グレーや好みのカラーコード）に変更する */
}

/* フッター内のリンクの色を変更する */
footer a, .footer a {
    color: #974787; /* お好みのカラーコード（例: 濃いグレーなど）に変更 */
}

/* マウスを乗せたときの色を変えたくない場合（必要に応じて） */
footer a:hover, .footer a:hover {
    color: #eddabe;
}

.custom-video {
    width: 100%;       /* スマホなどのときは親要素いっぱいにしつつ */
    max-width: 500px;  /* パソコンなどでは最大600pxまでに制限する */
    height: auto;      /* 高さは比率を維持して自動調整 */
    display: block;
    margin: 0 auto;    /* 中央寄せにする場合 */
}


/* サムネイル画像のクラス名（例）に対する指定 */
.row.listrecent img, 
.gallery-box img, 
.post-thumb img { /* ←テーマに合わせてクラス名を調整してください */
    width: 100%;
    height: 180px;      /* お好みの固定の高さ（例：180px） */
    object-fit: cover;  /* ★これで横長でも縦長でも比率を保ったまま枠に綺麗に収まります */
    object-position: center;
}


/* ページネーション全体を中央寄せにして、余白を整える */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 30px 0;
    gap: 8px; /* 数字やボタン同士の間隔 */
}

/* ページネーションのリンクや数字のボタンデザイン */
.pagination li a, 
.pagination li span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
    background-color: #fff;
    transition: background-color 0.2s;
}

/* ホバー時のデザイン */
.pagination li a:hover {
    background-color: #f5f5f5;
}

/* 現在のページのスタイル（アクティブ時） */
.pagination li.active span,
.pagination li.active a {
    background-color: #007bff; /* お好みのテーマカラーに変更してください */
    color: #fff;
    border-color: #007bff;
}


/* 狭い画面でも片方のリンク（PrevまたはNext）を適切な位置に固定する */
@media (min-width: 400px) and (max-width: 999px) {
    .PageNavigation a {
        width: 100%;
    }
    /* 次の記事（PrevInSectionに相当するもの）が右側にある場合のスマホ用右寄せ調整 */
    .PageNavigation a.text-lg-right,
    .PageNavigation a:last-child:not(:first-child) {
        text-align: right;
    }
}

/* PageNavigation内のリンクの横幅が伸びてしまうのを完全に防ぐ */
div.row.PageNavigation a.d-block {
    display: inline-block !important;
    width: auto !important;
    max-width: fit-content !important;
    flex: 0 0 auto !important;
}

/* 片方しかないリンクが右側にあるときに右端へ寄せる */
div.row.PageNavigation a.text-lg-right {
    margin-left: auto !important;
}

/* 両方ある場合のスペース配分 */
div.row.PageNavigation {
    display: flex !important;
    justify-content: space-between !important;
}


/* サイドバーのウィジェット全体（白背景・カード風） */
.sidebar-widget {
  background: #f9f9f9;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

/* ウィジェットのタイトル */
.sidebar-widget .widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee; /* お好みで薄い下線を引くのもアリ */
}

/* カテゴリーリスト */
.sidebar-widget .categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget .categories-list li {
  margin-bottom: 10px;
}

.sidebar-widget .categories-list li:last-child {
  margin-bottom: 0;
}

/* リンクのデザイン */
.sidebar-widget .categories-list a {
  text-decoration: none;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}


/* 記事数の数字 */
.sidebar-widget .cat-count {
  font-size: 0.85rem;
  color: #888888;
}


/* --- 2カラム全体のレイアウト --- */
.site-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* メインコンテンツ */
.site-container .main-content {
  flex: 1;
  min-width: 0;
}

/* サイドバー（幅を固定） */
.site-container .sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* --- 画面幅が狭くなったとき（スマホ等）は下に落とす --- */
@media screen and (max-width: 768px) {
  .site-container {
    flex-direction: column; /* 縦並びに切り替え */
    gap: 20px;
  }

  .site-container .sidebar {
    width: 100%; /* 幅いっぱいに広げる */
  }
}


/* --- 1カラム用（HomeやAboutなど） --- */
.site-container-1col {
  max-width: 900px; /* お好みに合わせて調整 */
  margin: 0 auto;
  padding: 20px;
}

/* --- 2カラム用（GalleryやBlog） --- */
.site-container-2col {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.site-container-2col .main-content {
  flex: 1;
  min-width: 0;
}

.site-container-2col .sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* --- スマホ表示などのレスポンシブ（2カラムのときだけ下に落とす） --- */
@media screen and (max-width: 993px) {
  .site-container-2col {
    flex-direction: column;
    gap: 20px;
  }

  .site-container-2col .sidebar {
    width: 100%;
  }
}


/* サイドバー全体をスクロール追従させる */
.sidebar {
  position: sticky;
  top: 80px; /* 画面の上からどのくらいの位置でピタッと止まるか（ヘッダーの高さに合わせて調整） */
  align-self: flex-start; /* これがないとうまく追従しないことがあるのでセットで */
}


/* 記事下のメタ情報エリア全体を囲む共通のコンテナがあればそこ、なければそれぞれの親をスッキリさせる */
/* カテゴリーとタグが縦にバラつかないように、まとめて綺麗に並べる設定です */

.categories,
.after-post-tags {
  flex-wrap: wrap;
  gap: 8px; /* 項目の間隔 */
  align-items: center;
  margin: 10px 0;
   color: #67aba6;
}

.bold {
  font-weight: bold;
}

/* カテゴリーのリンク（もし文字だけのリンクになっている場合、タグと同じようなバッジ風にする） */
.categories a {
  display: inline-block;
  padding: 4px 12px;
  background-color: #f1f3f5; /* タグに合わせた薄いグレーの背景 */
  color: #495057;
  /* border-radius: 4px; 角を丸く */
  font-size: 0.85rem;
  text-decoration: none;
}

.categories a:hover {
  background-color: #e2e8f0;
}

#back-to-top:focus {
  outline: none;
}

/* トップへ戻るボタンのデザインと配置 */
#back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background-color: #3e5251; /* お好みの色*/
  color: #ffffff;
  border: none;
  border-radius: 50%; /* 丸型にする */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
  
  /* デフォルトでは非表示にしておき、少しスクロールしたら浮き出させる場合 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

/* スクロールして表示状態になったとき */
#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ホバーしたときのちょっとした浮き上がり */
#back-to-top:hover {
  background-color: #d8dfc6;
  transform: translateY(-3px);
}


.mb-2, .my-2 {
    margin-bottom: .0rem !important;
}


.card-img-top.custom-thumb {
    height: 120px; /* PCなど広いとき */
    object-fit: cover;
}

/* スマホなど画面が狭くなったとき（例: 幅768px以下） */
@media (max-width: 1200px) {
    .card-img-top.custom-thumb {
        height: 100px; /* 小さめの高さにする */
    }
}

/* スマホなど画面が狭くなったとき（例: 幅768px以下） */
@media (max-width: 1000px) {
    .card-img-top.custom-thumb {
        height: 80px; /* 小さめの高さにする */
    }
}

/* スマホなど画面が狭くなったとき（例: 幅768px以下） */
@media (max-width: 800px) {
    .card-img-top.custom-thumb {
        height: 80px; /* 小さめの高さにする */
    }
}


/* スマホなど画面が狭くなったとき（例: 幅768px以下） */
@media (max-width: 600px) {
    .card-img-top.custom-thumb {
        height: 80px; /* 小さめの高さにする */
    }
}


/* PCなど広い画面のときの2カラムコンテナ */
.site-container-2col {
    display: flex;
    /* gap: 30px; */
    align-items: flex-start;
    max-width: 1100px; /* 全体の最大幅はお好みで調整 */
    margin: 0 auto;    /* 全体を中央寄せ */
    padding: 0 20px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}



/* スマホなど画面が狭くなってサイドバーが下に落ちる場合 */
@media (max-width: 992px) {
    .site-container-2col {
        flex-direction: column; /* 縦並びにする */
        align-items: center;    /* 全体を中央に寄せる */
    }

/* メインとサイドバーで「同じ最大幅」を指定する */
    .main-content,
    .sidebar {
        width: 100%;
        max-width: 650px; /* お好みの幅（例: 650px）に統一 */
        margin: 0 auto;
    }
}

/* Bootstrapやテーマのデフォルト container の制限を解除・上書きする */
@media (min-width: 576px) {
    .container {
        max-width: none !important; /* またはお好みの幅、あるいは 100% など */
    }
}



/* 記事本文の段落の行間と下の余白を広げる */
.article-post p, 
.post-content p {
    line-height: 1.8;       /* 行の高さ（お好みで 1.7〜1.9 くらい） */
    margin-bottom: 1.5rem;  /* 段落と段落の間の余白 */
}

/* テーマの干渉を防ぐため、メタ内のリンク（バッジ）のスタイルを完全に固定・統一する */
.post-meta-tags .categories a,
.post-meta-tags .tags a {
    display: inline-flex !important;
    align-items: center !important;
    height: 30px !important;              /* 高さを完全に固定 */
    padding: 0 10px !important;           /* 左右の余白を固定 */
    background-color: #f8f9fa !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    color: #333 !important;
    font-size: 0.85rem !important;        /* 文字サイズを強制統一 */
    line-height: 1 !important;
    text-decoration: none !important;
    margin-right: 6px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

/* アイコンのサイズと余白も完全に固定 */
.post-meta-tags .categories a i,
.post-meta-tags .tags a i {
    font-size: 0.85rem !important;
    margin-right: 0.4rem !important;
    line-height: 1 !important;
}

/* ホバー時の挙動 */
.post-meta-tags .categories a:hover,
.post-meta-tags .tags a:hover {
    background-color: #e9ecef !important;
    text-decoration: none !important;
}

/* 小説の本文や記事エリアにNoto Serif JPを適用する */
.content-novel p, .single article p {
    font-family: "Noto Serif JP", serif;
    font-weight: 400; /* 通常の太さ */
    letter-spacing: 0.05em; /* 文字間を少し空ける */
    line-height: 1.8;      /* 行間を広めにする */
}

/* 小説全体を囲む枠の調整（pxで統一） */
.content-novel, .single article {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px 30px;
    background-color: #fdfbf7;
    border-radius: 8px;
}

/* 小説全体を囲む枠の調整（pxで統一） */
@media (max-width: 700px) {
.content-novel, .single article {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px 0px;
    background-color: #fdfbf7;
    border-radius: 8px;
}
}

/* ポータル全体の囲み */
.content-portal-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

/* 各コンテンツの入り口カード */
.portal-card {
    background-color: #fdfbf7;
    border: 1px solid #e0dad0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

/* カード内のリンクや文字の調整 */
.portal-card a {
    text-decoration: none;
    color: #333333;
}

.portal-card h3 {
    margin-top: 0;
    font-size: 20px;
}


/* リスト全体を中央寄せにして幅を絞る */
.novel-list-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 黒丸（リストのデフォルトのポチ）を消す */
.novel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 各話の行（カード状のデザイン） */
.novel-list li {
    background-color: #fdfbf7;
    border: 1px solid #e0dad0;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* リンクを左右に広げて、タイトルと日付を両端に配置する */
.novel-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: #333333;
    background: #fff
}

/* マウスを乗せたときに少し色を変える（お好みで） */
.novel-list li a:hover {
    background-color: #f5f2eb;
}

.novel-back-link {
    text-align: center;
    margin: 40px 0 20px 0;
}

.novel-back-link a {
    text-decoration: none;
    color: #555555;
    padding: 8px 16px;
    border: 1px solid #e0dad0;
    border-radius: 4px;
    background-color: #fff;
}

.novel-back-link a:hover {
    background-color: #f5f2eb;
}

.novel-list-item {
  border: 1px solid #ddd;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 4px;
  background-color: #fff;
}

.novel-list-item a {
  text-decoration: none;
  color: #333;
  display: block;
}

@media (max-width: 700px) {
  .navbar, .site-header .container {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
}


.gallery-grid {
    display: grid;
    /* デフォルト（大画面）：5列 */
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.gallery-item {
    display: none;
}
.gallery-item.active {
    display: block;
}

/* 画面幅が1024px以下になったら：4列 */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 画面幅が700px以下になったら：3列 */
@media (max-width: 700px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 画面幅が480px以下（スマホ等）の場合はお好みで2列に維持するか調整 */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ページネーション全体を完全に折り返し可能にし、はみ出しを防ぐ */
#pagination-controls {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap; /* 画面が狭くなったら確実に折り返す */
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

/* ボタンや省略記号（...）が縮んだり変形したりしないようにする */
#pagination-controls button,
#pagination-controls span {
    flex-shrink: 0;
}

#pagination-controls button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

#pagination-controls button:hover {
    background: #f0f0f0;
}



.novel-page-container {
  padding: 20px 0;
}


/* タイトル下の一ブロックめだけを中央寄せにする */
.novel-info-block,
.novel-jump {
  text-align: center;
  margin-bottom: 30px;
}

.novel-subtitle,
.novel-genre,
.novel-keywords {
  margin: 0px 0;
}

/* その他の部分は左揃えに戻す */
.novel-description-block,
.novel-content-box,
.chapter-section {
  text-align: left;
}


/* 登場人物欄へのリンクボタン */
.novel-jump {
  text-align: center; /* ボタン自体を中央に配置する場合 */
  margin-top: 30px;
}

.novel-jump-btn {
  display: inline-block;
  padding: 10px 24px;
  background-color: #d0a286; /* サイトのテーマカラー（タイトルと同系色）に合わせる例 */
  color: #ffffff !important;   /* 文字色は白 */
  text-decoration: none;
  border-radius: 4px;          /* 角を少し丸くする */
  font-weight: bold;
  transition: background-color 0.2s ease;
}

/* ホバー時（マウスを乗せたとき）の演出 */
.novel-jump-btn:hover {
  background-color: #c4afe5;   /* 少しだけ暗くする */
}

.gallery-container {
    padding: 20px 0;
}


.work-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.work-keywords {
    margin-bottom: 20px;
}

.keyword-tag {
    display: inline-block;
    margin-right: 8px;
    /* 必要に応じて背景色やパディングを調整してください */
}

/* ジャンルとキーワードの上下の余白（幅）を狭くする */
.work-genre {
    margin-bottom: 5px; /* ここを小さくして隙間を詰める */
}

.custom-thumb {
  width: 100% !important;
  height: 120px !important; /* お好みの高さ（例: 180px〜220pxなど）に調整してください */
  object-fit: cover !important; /* 画像の縦横比を維持したまま、枠に合わせてトリミングする */
}


/* 左上タイトル付きボックス */
.box-title-topleft {
  --box-color: #CCA99D; /* 基本色 */
  margin: 20px 0 30px; /* 外側余白 */
  position: relative; /* タイトル基準 */
  border: 2px solid var(--box-color); /* 枠線 */
  border-radius: 3px; /* 角丸 */
}

.box-title-topleft .box-title {
  background: var(--box-color); /* 背景 */
  color: #fff; /* 文字色 */
  padding: 0.2em 1em; /* 内側余白 */
  position: absolute; /* 左上固定 */
  top: -0.9em;
  left: 0.7em; /* 位置 */
  display: inline-block; /* 内容幅 */
  font-size: 1.2em; /* サイズ */
  font-weight:bold; /* 太字 */
  border-radius: 3px; /* 角丸 */
  max-width: calc(100% - 2em); /* 幅調整 */
  white-space: nowrap; /* 折返しなし */
  overflow: hidden; text-overflow: ellipsis; /* 省略 */
}

.box-title-topleft .box-content {
  padding: 2.3em 2em 2em; /* タイトル分の余白 */
}

/* 段落の余白なし */
.box-title-topleft p { margin: 0; }


.pb-5, .py-5 {
    padding-top: 0rem !important;
}