﻿:root {
    --brand-main-color-dark: #0b4271;
    --brand-main-color-normal: #4169e1;
    --brand-main-color-light: #5f96d9;
    --brand-sub-color: #b8860b;
    --brand-dark: #3E3E3E;
    --brand-black: #212529;
    --brand-gray: #7C7C7C;
    --border-gray: #d4d4d4;
    --bk-gray: #F0F0F0;
}

[v-cloak] {
    display: none !important;
}

body {
    position: relative;
    min-height: 100vh;
    background-color: #FFFFFF;
    color: var(--brand-black);
    font-family: 'Noto Sans JP', sans-serif;;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
footer .footer-nav,
.navbar .nav-item,
.mobile-header {
    font-family: 'Noto Sans JP', sans-serif;;
}

a {
    color: var(--brand-main-color-light);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a.btn:hover {
    text-decoration: none;
}

.btn {
    font-size: .85rem;
}

.btn-warning,
.btn-warning:hover {
    color: #FFFFFF;
    background-color: #F58220;
}

.btn-outline-brand-dark {
    color: var(--brand-main-color-dark);
    border-color: var(--brand-main-color-dark);
    background-color: #FFFFFF;
}

.btn-outline-brand-dark:hover {
    border-color: var(--brand-main-color-dark);
    background-color: var(--brand-main-color-dark);
    color: #fff;
}

.btn.btn-white,
btn-white:hover {
    background-color: #FFFFFF;
    color: var(--brand-black);
}

.btn-dark:hover {
    background-color: var(--brand-black);
}

.btn-xs {
    font-size: .7rem;
}

.bg-gray {
    background-color: var(--bk-gray);
}

.btn-gray-outline-brand-dark,
.btn-gray-outline-brand-dark:hover {
    background-color: var(--bk-gray);
    border-color: var(--brand-main-color-dark);
}

.btn-brand-dark,
.btn-brand-dark:hover {
    color: #fff;
    background-color: var(--brand-main-color-dark);
}

.btn-brand-light,
.btn-brand-light:hover {
    color: #fff;
    background-color: var(--brand-main-color-light);
}

.btn-white-block {
    width: 100%;
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #eee;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
    text-align: center;
    color: #333;
    text-decoration: none;
    display: block;
}

.btn-white-block:hover {
    background-color: #f8f9fa;
    color: #111;
    text-decoration: none;
}

.btn-white-block {
    width: 100%;
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #eee;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
    text-align: center;
    color: #333;
    text-decoration: none;
    display: block;
}

.btn-white-block:hover {
    background-color: #f8f9fa;
    color: #111;
    text-decoration: none;
}

.form-control:focus {
    box-shadow: none;
}

.border-main-color-light {
    border-color: var(--brand-main-color-light)!important;
}

/* コンテンツ幅 */
.max-container,
main .container {
    max-width: 1240px;
}

/* ========= ヘッダー ========= */
.header-grid {
    display: grid;
    grid-template-areas:
      "left right"
      "ad ad";
    row-gap: 0.5rem;
}
.header-left {
    margin-block: 10px; /* 広告レイアウトシフト調整 */
    grid-area: left;
}
.header-right {
    grid-area: right;
}
.header-ad {
    grid-area: ad;
}

@media (min-width: 1240px) {
    .header-grid {
        grid-template-areas:
        "left ad right"
    }
    .header-btns-pc {
        flex-direction: column;
    }
}


/* ロゴ（PC用） */
.site-logo {
    width: 283px;
}

.site-logo img {
    width: 100%;
    height: 100%;
}

.site-logo-minpo {
    flex: 1 1 210px;
}

.site-logo-digital {
    flex: 1 1 90px;
}

/* 右端アイコン */
header a.icon-btn .icon-label {
    font-size: 11px;
    font-weight: bold;
    color: var(--brand-main-color-dark);
}

header a.icon-btn i {
    color: var(--brand-main-color-dark);
}

/* ナビのタブ風スタイル（PC・タブレット：md以上） */
.navbar-expand-md {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.05);
}

.navbar-expand-md.navbar .navbar-nav .nav-link {
    width: 100%;
    /* md幅でflex表示に使用 */
    padding: 0 0.2rem;
    color: var(--brand-dark);
    font-weight: bold;
    font-size: 0.8rem;
    text-align: center;
    transition: background-color 0.15s ease, color 0.15s ease, border-radius 0.15s ease;
}

.navbar-expand-md.navbar .navbar-nav .nav-item>a,
.navbar-expand-md.navbar .navbar-nav .nav-item .nav-link>a,
.navbar-expand-md.navbar .navbar-nav .nav-item>button {
    display: inline-block;
    padding-block: 0.45rem;
}

.navbar .nav-item.active {
    background-color: var(--brand-main-color-normal);
    color: #fff !important;
}

.navbar .nav-item.active,
.navbar .nav-item.active a {
    color: #fff !important;
}

.navbar .nav-item .nav-link:hover:after,
.navbar .nav-item .nav-link:focus:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--brand-main-color-dark);
}

.navbar .nav-link button.dropdown-toggle {
    background-color: transparent;
    border: none;
    color: inherit;
    padding: 0;
    cursor: pointer;
}

.navbar .nav-link.pc-search-btn i {
    margin-inline: 0.25rem;
    font-size: 0.9rem;
}

.nav-show-subnav-btn {
    background-color: transparent;
    padding: 0;
    padding-right: 0.25em;
    border: none;
    color: inherit;
    cursor: pointer;
}

.nav-show-subnav-btn i {
    margin-left: 0.2em;
    font-size: 0.6rem;
    vertical-align: super;
}

.navbar .nav-item {
    display: flex;
    position: relative;
    flex: 1 0 auto;
}

/* 2個目以降の nav-item にだけ適用 */
.navbar .nav-item+.nav-item {
    padding-left: 1px;
}

/* 区切り線 */
.navbar .nav-item+.nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    /* padding の先頭に線を置く */
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1.4em;
    /* 文字高さくらいの長さに */
    background-color: #ccc;
}

.navbar .nav-item a {
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0px;
}

.navbar .nav-item a:hover {
    text-decoration: none;
}

/* ▼ サブナビゲーション（JSで制御） ▼ */
#pc-subnav-wrapper {
    position: absolute;
    width: 100%;
    height: 0;
    background-color: #dbd3c5;
    transition: height 0.2s ease;
}

#pc-subnav-wrapper.show-bg {
    pointer-events: auto;
    height: 100%;
    min-height: 49px;
}

#pc-subnav-content {
    display: flex;
    width: 100%;
    position: relative;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    background-color: #dbd3c5;
}

.subnav-item {
    display: flex;
    align-items: center;
    position: relative;
}

.subnav-link {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: #000;
    padding: 10px 15px;
    text-decoration: none;
    line-height: 1.5;
    display: inline-block;
}

.subnav-link:hover {
    text-decoration: underline;
    color: #000;
}

/* サブナビ内の検索欄 (Figma 16:7339) */
.subnav-search-wrapper {
    padding: 0 15px;
}

.subnav-search-input-group {
    background-color: rgba(255, 255, 255, 0.82);
    border-radius: 6.571px;
    display: flex;
    align-items: center;
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.1), 0px 0px 14px 0px rgba(150, 150, 150, 0.2);
    overflow: hidden;
}

.search-range-wrapper {
    width: 120px;
    padding: 0 10px;
}

.search-range-wrapper .js-range {
    border: none;
    background-color: transparent;
    font-size: 14px;
    font-weight: normal;
    color: #2b2b2b;
    width: 100%;
    cursor: pointer;
}

.keyword-input-wrapper {
    width: 320px;
    position: relative;
    padding-left: 12px;
}

.keyword-input-wrapper .js-keyword {
    border: none;
    background-color: transparent;
    font-size: 14px;
    color: #2b2b2b;
    height: 100%;
    width: 100%;
}

.keyword-input-wrapper .js-keyword::placeholder {
    color: #888;
}

.subnav-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 100%;
    background-color: #fff;
    /* アイコン背景は白 */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 8px rgba(150, 150, 150, 0.1);
}

.subnav-search-submit i {
    color: #0b4271;
    font-size: 18px;
}

/* ▼ 各 dropdown-item の基本デザインを調整 */
.navbar .dropdown-item {
    border-radius: 0;
    /* 角丸リセット */
    padding: 8px 16px;
    position: relative;
}

/* ▼ 各項目の上に「影っぽい境界線」を入れる */
.navbar .dropdown-item+.dropdown-item::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    /* ★ 線ではなく“影”の仕切り ★ */
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

/* ▼ 最初の dropdown-item（1個目）だけは上の影なし */
.navbar .dropdown-item:first-child::before {
    display: none;
}

/* ▼ 最後の item は下側だけ角丸（自然な締まりに） */
.navbar .dropdown-item:last-child {
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.navbar .dropdown-submenu {
    padding-left: 0;
}

.navbar .dropdown-submenu>li {
    list-style: none;
}

.navbar .dropdown-submenu>li>a {
    padding-left: 2rem;
}

@media (min-width: 992px) and (max-width: 1020px) {
    #globalNav input {
        width: 150px;
    }
}

/* ========= スマホ用ヘッダー・ナビゲーション ========= */

.mobile-header {
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-header {
        display: block;
        background: #ffffff;
        border-bottom: 1px solid var(--border-gray);
        padding: 0.4rem 0.6rem;
    }

    .mobile-header .mh-icon {
        font-size: 1.2rem;
    }

    .mobile-header .mh-icon div {
        font-size: .6rem;
        color: var(--brand-dark);
    }
}

.mobile-header .site-logo {
    width: 180px;
}

/* タブレット用検索フォーム（mdのみ表示＆スライド） */
.tablet-search-box {
    display: none;
    /* jQueryでslideDown/Up */
    background: #fff;
    border-bottom: 1px solid var(--border-gray);
}

/* サブヘッダーボタン (Figma 16:7623, 100:1389) */
.btn-gold-fill {
    background-color: #b8860b;
    border: 1px solid #b8860b;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-gold-fill:hover {
    background-color: #a0750a;
    border-color: #a0750a;
    color: #fff;
}

.btn-gold-outline {
    background-color: #fff;
    border: 1px solid #b8860b;
    color: #b8860b;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-gold-outline:hover {
    background-color: #fcf8ee;
    color: #b8860b;
}

.btn-header-pc {
    width: 125px;
    height: 30px;
}

.btn-tablet {
    width: 110px;
    /* タブレット幅では少し小さめに */
}

/* カテゴリ横スクロール (Figma 357:560) */
.mh-scroll-menu {
    background-color: #fff;
}

.scroll-menu-item {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    border-left: 1px solid #eee;
}

.scroll-menu-item:first-child {
    border-left: none;
}

/* スマホ検索 (メニュー内) カスタム (Figma 357:542 対応) */
.menu-search-wrapper {
    background-color: #f8f9fa;
}

.search-form-offcanvas .d-flex {
    padding: 0;
}

/* 期間選択ボックス */
.search-range-box {
    height: 50px;
    border-radius: 6.571px;
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.1), 0px 0px 14px 0px rgba(150, 150, 150, 0.2);
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.search-range-box .js-range {
    font-size: 14px;
    color: #2b2b2b;
    padding-right: 25px;
    background-position: right center;
    background-size: 12px;
}

/* 検索入力ボックス */
.search-input-box {
    height: 50px;
    border-radius: 6.571px;
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.1), 0px 0px 14px 0px rgba(150, 150, 150, 0.2);
    overflow: hidden;
    padding-left: 10px;
}

.search-input-box .js-keyword {
    font-size: 14px;
    color: #2b2b2b;
    height: 100%;
}

.search-input-box .js-keyword::placeholder {
    color: #999;
}

/* 検索ボタンボックス (アイコン部分) */
.search-icon-box {
    width: 51px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 8px rgba(150, 150, 150, 0.1);
    /* 入力欄との境目を出す */
    border-radius: 0 6.571px 6.571px 0;
    margin-left: auto;
}

.search-icon-box .js-submit {
    color: #0b4271;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* スマホメニュー Offcanvas カスタム */
.menu-quick-categories {
    background-color: #fff;
}

.category-icon-circle {
    width: 50px;
    height: 50px;
    background-color: #E3DED1;
    border-radius: 50%;
}

.menu-quick-categories a:hover .category-icon-circle {
    opacity: 0.8;
}

.menu-footer .btn-white {
    font-weight: bold;
    color: var(--brand-dark);
}

/* アコーディオンメニュー調整 -> フラットリストへ */
.menu-section h6 {
    font-size: 0.95rem;
    color: #111;
}

.menu-link {
    display: block;
    color: #333;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.15s;
}

.menu-link:hover {
    color: var(--brand-main-color-normal);
    text-decoration: none;
}

.menu-banners img {
    border-radius: 4px;
    width: 100%;
}

.menu-footer-link {
    display: block;
    color: #333;
    font-size: 0.85rem;
    font-weight: bold;
    padding-bottom: 4px;
}

.menu-footer-link:hover {
    text-decoration: underline;
}

/* ========= フッタ ========= */
footer {
    position: sticky;
    top: 100vh;
    font-size: .8rem;
    background-color: var(--brand-main-color-dark);
    padding-top: 20px;
}

footer .input-group {
    max-width: 210px;
}

footer .input-group .btn-outline-brand-dark,
footer .input-group .btn-outline-brand-dark:hover {
    border-color: #FFFFFF;
}

footer .form-select,
.navbar .form-select {
    max-width: 90px;
}

footer .search-row>div:first-child {
    text-align: right;
}

footer .search-row>div:last-child {
    text-align: left;
}

@media (max-width: 767.98px) {
    footer .form-select {
        max-width: none;
        width: 25%
    }

    footer .input-group {
        max-width: none;
    }

    footer .search-row a {
        width: 40%;
    }

    footer .search-row>div:first-child>div {
        width: 55%;
    }

    footer .search-row>div:first-child,
    footer .search-row>div:last-child {
        text-align: center;
    }
}

footer .footer-nav {
    margin-top: 20px;
}

footer .footer-nav>div>div {
    font-weight: bold;
    display: block;
}

footer .footer-nav ul {
    list-style: none;
}

footer .footer-nav a {
    color: #FFFFFF;
}

/* 下部固定バナー */
.fixed-banner {
    background: linear-gradient(to bottom, #962424 20%, #6E1919 80%);
    color: #fff;
    font-size: 1.2rem;
    padding: 0.7rem 0;
    z-index: 1030;
}

.fixed-banner a {
    color: #FFFFFF;
    font-weight: bold;
    text-decoration: none;
}

.fixed-banner button {
    border-color: #FFFFFF;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
}

.fixed-banner button:hover {
    border: 1px solid;
}


/* ============== ADS =============== */
.sp-size-banners {
  display: flex;
  justify-content: center;
}
.sp-size-banners figure {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* 記事下部 */
.ads {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
/* PCヘッダー */
header .ads figure {
    margin-bottom: 0;
}


/* ========= モーダル・カルーセル ========= */

.modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    font-size: 1.5rem;
}

.article-carousel {
    margin-bottom: 20px;
}

@media screen and (min-width: 768px) {
    .article-carousel {
        float: left;
        width: 360px;
        margin-right: 30px;
    }
}

/* メインカルーセルの大きい画像 */
#mainCarousel img {
    width: 100%;
    object-fit: contain;
    /* ← 比率維持・全表示 */
    background-color: #FFFFFF;
    /* ← 余白が黒になる */
    aspect-ratio: 690 / 450;
}

/* モーダル内の画像 */
#modalCarousel img {
    width: 100%;
    /*height: 70vh;*/
    object-fit: contain;
    background-color: #FFFFFF;
    aspect-ratio: 690 / 450;
}

.carousel-img-click {
    cursor: pointer;
}

/* キャプション共通（画像の下） */
.caption-box {
    display: grid;
    place-items: center;
    margin-top: 5px;
    min-height: 2.4em;
    font-size: 0.8rem;
    line-height: 1.2;
}

.caption-text {
    margin: 0;
}

.dot-indicators {
    position: static;
    margin-bottom: 0;
}

.dot-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-gray);
}

.dot-indicators [data-bs-target].active {
    background-color: var(--brand-main-color-normal);
}

/* ボタンの外側（白の丸い背景・透明感あり） */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    /* 半透明の白丸 */
    border-radius: 50%;
    opacity: 1 !important;
    /* Bootstrap の薄くなる仕様を打ち消す */
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* アイコン（矢印）の色を濃いグレーに変更） */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(30%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(40%) contrast(90%);
    width: 1.5rem;
    height: 1.5rem;
    /* これで濃いグレーのアイコンに変換される */
}

/* hover時は背景を少し濃く */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* カルーセルモーダル調整 */
/* 画像をいっぱいに表示 */
#carouselModal .carousel {
    height: 100%;
    padding: 10px;
}

@media screen and (min-width: 768px) {
    #carouselModal .carousel {
        padding: 5%;
    }
}

#carouselModal .carousel-inner {
    height: 100%;
}

#carouselModal .carousel-item.active,
#carouselModal .carousel-item-next,
#carouselModal .carousel-item-prev {
    display: flex;
    height: 100%;
    flex-direction: column;
}

#carouselModal img {
    flex: 1 1 0;
    min-height: 0;
    background: transparent;
}

#carouselModal .caption-box {
    flex-basis: min-content;
}

/* ========= 右カラム ========= */

/* 右カラム動画 */
#sideMovie {
    max-width: 300px;
    margin: auto;
}

/* 右カラム カルーセル内カード */
#sideLinkCarousel {
    max-width: 300px;
    margin: auto;
}

#sideLinkCarousel .carousel-control-prev {
    left: 5px;
}

#sideLinkCarousel .carousel-control-next {
    right: 5px;
}

/* ========= トップバナー ========= */
.top-banner a {
    display: block;
    width: 100%;
    max-height: 270px;
}

.top-banner a img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: auto;
}

/* ========= 下に並んだバナー、右に並んだバナー ========= */
.bottom-banners>div {
    padding-left: .5rem;
    padding-right: .5rem;
}

.side-banners {
    padding: 0;
}

.bottom-banners a,
.side-banners a {
    display: block;
    width: 100%;
}

.bottom-banners a img,
.side-banners a img {
    width: 100%;
}

/* ========= 記事（リスト表示） ========= */

.section-title {
    color: var(--brand-main-color-dark);
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 4px solid var(--brand-main-color-dark);
    padding-left: 0.5rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.6;
}

.section-title i {
    color: var(--brand-main-color-dark);
    font-size: 0.9rem;
}

.section-title a {
    color: var(--brand-main-color-dark);
    text-decoration: none;
}

.section-title a:hover {
    text-decoration: underline;
}

#sideMovie .section-title {
    font-size: 1rem;
    color: var(--brand-dark);
    border-bottom: 4px solid var(--brand-dark);
}

.article-row {
    display: flex !important;
    min-height: 182px;
    /* 横並びを強制 */
    align-items: stretch;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 1rem 0;
}

.article-list .article-row + .article-row {
    border-top: 1px solid var(--border-gray);
}

/* SP1列PC2列の場合 */
.article-col--2 + .article-col--2 > .article-row {
    border-top: 1px solid var(--border-gray);
}
@media (min-width: 768px) {
    /* PCでは2つ目の線はなし */
    .article-col--2:nth-of-type(2) > .article-row {
        border-top: none;
    }
}

.article-row .article-body {
    flex: 1 1 auto;
    min-width: 0;
}

.article-new-icon {
    flex: 0 0 auto;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #FA503D;
}

.article-title {
    line-height: 1.5;
}

.article-row .article-title {
    display: block;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    height: 3em;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
}

.right-side .article-row .article-title {
    font-size: 0.85rem;
}

.article-row .article-text {
    display: block;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    height: 4.5em;
    font-size: .85rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-row .article-text:after {
    content: "…";
    margin-left: 0.1em;
}

.article-row .article-meta {
    font-size: 0.7rem;
    color: #777;
}

.article-row .article-thumb {
    width: 150px;
    height: 150px;
    flex-shrink: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* ★追加：アイコンの基準にする */
}

.article-row .article-thumb a {
    display: block;
    width: 100%;
    position: relative;
    /* こちらを基準にしたい場合はここにrelativeでもOK */
}

.article-row .article-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.top-article .article-row .article-thumb {
    height: auto;
    width: 30%;
    min-width: 100px;
    min-height: 100px;
    max-width: 300px;
    max-height: 300px;
}

.top-article .article-row .article-thumb img {
    aspect-ratio: auto;
}

/* 左上のアイコン（複数画像用） */
.article-row .thumb-multi-icon {
    position: absolute;
    z-index: 2;
    font-size: 0.7rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 必要なら、複数画像のものだけ表示したいときに絞る */
.article-row .article-thumb:not(.has-multi-image) .thumb-multi-icon {
    display: none;
}

@media (min-width: 768px) {

    /* md */
    .top-article .article-row {
        gap: 1rem;
    }

    .top-article .article-row .article-title {
        font-size: 1.3rem;
    }

    .top-article .article-row .article-text {
        font-size: 1rem;
    }
}

.article-row .article-meta {
    font-size: 0.8rem;
    color: var(--brand-gray);
}

.article-row .article-meta .date {
    padding-right: .3rem;
    margin-right: .2rem;
    border-right: 1px solid var(--border-gray);
}

.article-row .article-meta .category {
    font-weight: bold;
    color: var(--brand-gray);
}

/* ランキング専用：赤丸の番号 */
.ranking-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-main-color-dark);
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 期間タブ（直近 / 昨日 / 一週間）: 角丸無し + 下線 */
.period-tabs {
    border-bottom: 1px solid var(--border-gray);
    justify-content: space-between;
}

.period-tabs .nav-item {
    width: 30%;
}

.period-tabs .nav-link {
    border-radius: 0;
    font-size: 0.85rem;
    padding: 0.25rem 0.8rem;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #555;
    background: transparent;
    width: 100%;
}

.period-tabs .nav-link.active {
    border-bottom-color: var(--brand-main-color-dark);
    color: var(--brand-main-color-dark);
    background: transparent;
    font-weight: 600;
}

/* カテゴリーページタイトル */
.category-title {
    color: var(--brand-main-color-dark);
    font-weight: bold;
}

/* ========= 記事（詳細ページ） ========= */
.article-body h1 {
    font-size: 42px;
    line-height: 110%;
}

.article-body h2 {
    font-size: 27px;
    line-height: 120%;
}

.article-body h3 {
    font-size: 20px;
    line-height: 140%;
}

.article-body h4 {
    font-size: 18px;
    line-height: 140%;
}

.article-body h5 {
    font-size: 16px;
    line-height: 140%;
}

.article-body h6 {
    font-size: 13px;
    line-height: 150%;
}

.thepaper .readmore a {
	color: #FFF;
}

/* ========= 記事（詳細ページ） ========= */
.article-body h1 {
    font-size: 42px;
    line-height: 110%;
}

.article-body h2 {
    font-size: 27px;
    line-height: 120%;
}

.article-body h3 {
    font-size: 20px;
    line-height: 140%;
}

.article-body h4 {
    font-size: 18px;
    line-height: 140%;
}

.article-body h5 {
    font-size: 16px;
    line-height: 140%;
}

.article-body h6 {
    font-size: 13px;
    line-height: 150%;
}

.article-detail .article-title a {
    color: var(--brand-dark);
    font-weight: bold;
}

.article-detail .article-main {
    border-top: 1px solid var(--border-gray);
    padding-top: .5rem;
    border-bottom: none;
}

.card .btn {
    font-weight: bold;
}

.article-detail .article-meta {
    font-weight: bold;
    font-size: .85rem
}

.article-detail .article-meta .category {
    color: var(--brand-main-color-dark);
}

.article-detail .article-meta .date {
    border: none;
}

.article-detail .article-body {
    display: flow-root;
}

.article-detail .article-thumb {
    max-height: 350px;
    min-height: 250px;
    max-width: 500px;
    min-width: 330px;
    width: auto;
    margin: auto;
    margin-top: 1rem;
    display: block;
}

.article-detail .article-thumb-title {
    font-size: .85rem;
    font-weight: bold;
    margin-top: 1rem;
}

.article-detail .article-text {
    font-size: 1rem;
    margin-top: 1rem;
    line-height: 1.8;
}

.article-detail .article-video>iframe {
    width: 100%;
    height: 275px;
}

@media (min-width: 768px) {

    /* md */
    .article-detail .article-thumb {
        float: left;
        margin-right: 20px;
        min-height: unset;
        max-width: 330px;
    }

    .article-detail .article-video>iframe {
        height: 388px;
    }
}



/* SNS アイコン丸ボタン */
.sns-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    margin-left: 6px;
    text-decoration: none;
}

.sns-fb {
    background: #3b5998;
}

.sns-x {
    background: #000;
}

.sns-line {
    background: #06c755;
}

.sns-icon:hover {
    opacity: 0.8;
    color: #fff;
    text-decoration: none;
}

/* ========= パンくず ========= */
.breadcrumb-wrapper {
    padding: 15px 8px;
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
}

.breadcrumb-item a {
    color: var(--brand-main-color-dark);
    font-size: 0.75rem;
    font-weight: 400;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    padding-right: 0.2rem;
    font-size: 0.75rem;
    float: none;
}

.breadcrumb-current {
    color: var(--brand-main-color-light);
    font-weight: 700;
    font-size: 0.75rem;
}

/* ========= ページング ========= */
.custom-pagination .page-link {
    border: none;
    background-color: #f2f2f2;
    color: #666;
    width: 36px;
    height: 36px;
    padding: 0;
    text-align: center;
    line-height: 36px;
    border-radius: 0;
    font-weight: 500;
}

.custom-pagination .page-item+.page-item .page-link {
    margin-left: 4px;
}

.custom-pagination .page-item.active .page-link {
    background-color: var(--brand-main-color-dark);
    color: #fff;
}

.custom-pagination .page-link:focus {
    box-shadow: none;
}

.custom-pagination .page-link:hover {
    background-color: #e4e4e4;
    color: #333;
}

/* ========= ログイン画面 ========= */
.login-wrapper form,
.forget-password-wrapper form {
    max-width: 400px;
    margin: auto;
}

.login-wrapper form label,
.forget-password-wrapper form label {
    font-size: .88rem;
    margin-bottom: .3rem;
}

.login-wrapper .form-control,
.forget-password-wrapper .form-control {
    background: #f5f5f5;
    border: none;
    border-radius: 0;
    font-size: 0.88rem;
    padding: 14px 10px;
}

.notice-small {
    font-size: 0.88rem;
    line-height: 1.2;
}

.login-wrapper .form-control {
    font-size: 14px;
}

.forget-password-wrapper .btn-white-block {
    font-size: .9rem;
}

/* サイドバー */
@media(min-width: 992px) {
    .right-side {
        flex: 0 0 auto;
        width: 312px;
    }
}


/* 新しいランキングサイドバーのデザイン */
.ranking-new .ranking-header {
    border-bottom: 4px solid var(--brand-main-color-dark);
    padding: 0 0 4px 0;
    /* Reduced vertical padding */
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    /* Prevent wrapping */
}

.ranking-new .ranking-title {
    color: var(--brand-main-color-dark);
    font-size: 1.1rem;
    /* Slightly smaller */
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
}

.ranking-new .ranking-period {
    font-size: 12px;
    color: var(--brand-main-color-dark);
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
}

.ranking-new .ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-new .ranking-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.3;
}

.ranking-new .ranking-num-text {
    min-width: 14px;
    line-height: 1.3;
}

/* Rank colors */
.ranking-new .ranking-item:nth-child(1) .ranking-num-text {
    color: #c79f47;
}

.ranking-new .ranking-item:nth-child(2) .ranking-num-text {
    color: #abb2b5;
}

.ranking-new .ranking-item:nth-child(3) .ranking-num-text {
    color: #cd8460;
}

.ranking-new .ranking-item:nth-child(n+4) .ranking-num-text {
    color: #000;
}

.ranking-new .ranking-text {
    color: #000;
    /* Ensure text wrapping */
    word-break: break-all;
}

.ranking-new .ranking-more-btn {
    background-color: var(--brand-main-color-light);
    color: #fff;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
    transition: opacity 0.2s;
    width: 100%;
    border: none;
}

.ranking-new .ranking-more-btn:hover {
    color: #fff;
    opacity: 0.9;
}

/* 紙面ビューアー */
.paper-viewer {
    background: #fff;
    /* Add padding/margin if needed, existing mb-4 on section handles spacing */
}

/* PV Header */
.paper-viewer .pv-header {
    border-bottom: 4px solid var(--brand-main-color-dark);
    padding: 0 0 4px 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
}

.paper-viewer .pv-title {
    color: var(--brand-main-color-dark);
    font-size: 1.1rem;
    font-weight: bold;
    white-space: nowrap;
    margin: 0;
}

.paper-viewer .pv-date {
    display: flex;
    align-items: baseline;
    gap: 2px;
    white-space: nowrap;
    color: var(--brand-main-color-dark);
    font-size: 12px;
}

.pv-date-main {
    font-size: 14px;
    font-weight: bold;
}

.pv-date-sub {
    font-size: 10px;
    font-weight: bold;
}

/* PV Content */
.pv-content {
    display: flex;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto 10px auto;
}

.pv-image {
    width: 65%;
    height: auto;
    flex-shrink: 0;
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    aspect-ratio: 16/9;
}

.pv-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 250px;
    gap: 12px;
}

.pv-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    height: 25px;
    text-decoration: none;
    color: var(--brand-main-color-dark);
    font-weight: bold;
    gap: 2px;
    transition: background-color 0.2s;
}

.pv-item:hover {
    background-color: #e0e0e0;
    text-decoration: none;
    color: var(--brand-main-color-dark);
}

.pv-item-date {
    font-size: 12.25px;
}

.pv-item-day {
    font-size: 8.75px;
}

/* PV infotext */
.pv-info {
    font-size: 12px;
    text-align: center;
    padding-bottom: 10px;
    color: #000;
}

/* Section More Link - 一覧を見る */

.more-link {
    display: block;
    width: 100%;
    border: 1px solid #e4e4e4;
    background-color: #ffffff;
    color: #0b4271;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.more-link:hover {
    background-color: var(--brand-main-color-light);
    border-color: var(--brand-main-color-light);
    text-decoration: none;
    color: #ffffff;
}

/* ========= 汎用情報セクション ========= */
.info-section {
    background-color: #ffffff;
    margin: 0 auto;
}

.info-section-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.info-item {
    text-align: left;
}

.info-item+.info-item {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e4e4e4;
}

.info-link {
    font-weight: normal;
    color: #000000;
    line-height: 1.5;
    text-decoration: none;
    display: block;
}

/* ========= 紙面一覧 ========= */
.newspaper-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.newspaper-item-wrapper {
    width: 100%;
}

.newspaper-item {
    display: flex;
    width: 100%;
    padding: 10px;
    gap: 10px;
}

.newspaper-pagecount {
    background: #333;
    color: #fff;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-weight: bold;
}

.newspaper-image {
    width: 30%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.newspaper-image img {
    width: 100%;
    height: auto;
    display: block;
}

.newspaper-content {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.newspaper-content .article-title {
    margin: 0;
    padding: 2px 0;
    color: #000;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.newspaper-content .article-title a {
    color: #000;
}

@media screen and (max-width: 800px) {
	.newspaper-item {
        flex-direction: column;
        align-items: center;
    }
	
    .newspaper-image {
        width: auto;
        text-align: center;
        margin-bottom: 20px;
    }
	
	.newspaper-image img {
        height: auto;
        display: block;
        margin: 0 auto;
    }
	
	.newspaper-content {
        width: 100%;
        padding: 0 20px;
    }
}

/* =========================================
   ログイン中ローディング
========================================= */
.cms-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

    .cms-loading.is-active {
        display: block;
    }

.cms-loading__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(1px);
}

.cms-loading__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.cms-loading__spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 5px solid #d8e0ea;
    border-top-color: var(--brand-red);
    animation: cms-spin 0.8s linear infinite;
}

.cms-loading__text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-blue);
    letter-spacing: 0.02em;
}

@keyframes cms-spin {
    to {
        transform: rotate(360deg);
    }
}

.cms-login-error {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--brand-red);
    line-height: 1.5;
}

.cms-login-error-box,
.cms-login-success-box {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cms-login-error-box {
    color: var(--brand-red);
    border: 1px solid rgba(172, 31, 36, 0.18);
    background: rgba(172, 31, 36, 0.06);
}

.cms-login-success-box {
    color: var(--brand-blue);
    border: 1px solid rgba(51, 77, 110, 0.18);
    background: rgba(51, 77, 110, 0.06);
}

.pre-line {
    white-space: pre-line;
}

.preload body {
    visibility: hidden;
}

[v-cloak] {
    display: none !important;
}

/* 上部のお知らせ */
.announcement-display-wrapper {
    margin-inline: calc(-.5 * var(--bs-gutter-x));
    border: 1.5px solid var(--brand-red);
    background-color: #F1F1F1 !important;
    margin-bottom: 10px !important;
}

ul.announcement-display {
    padding: 5px 0 !important;
}

li.announcement-item {
    padding: 5px 10px !important;
}

.announcement-item {
    line-height: 1.5;
}

    .announcement-item .news-flash {
        display: inline-flex;
        justify-content: center;
        min-width: 5em;
        padding: 5px 7px 5px 10px;
        border-radius: 4px;
    }

    .announcement-item a {
        vertical-align: baseline !important;
        font-size: 16px;
    }

.clamp-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}