:root {
    --brand-main-color-dark: #0b4271;
    --brand-main-color-normal: #4169e1;
    --brand-main-color-light: #5f96d9;
    --brand-sub-color: #b8860b;
    --brand-red: #962324;
    --brand-red-soft: rgba(150, 35, 36, 0.05);
    --brand-dark: #3E3E3E;
    --brand-black: #212529;
    --brand-gray: #7C7C7C;
    --border-gray: #d4d4d4;
    --bk-gray: #F0F0F0;
}

body {
    background-color: #FFFFFF;
    color: var(--brand-black);
    font-family: 'Arial', 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', 'Noto Sans', 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-danger {
    color: var(--brand-main-color-light);
    border-color: var(--brand-main-color-light);
    background-color: #FFFFFF;
}

.btn-outline-danger:hover {
    border-color: var(--brand-main-color-light);
    background-color: var(--brand-main-color-light);
}

.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-red,
.btn-gray-red:hover {
    background-color: var(--bk-gray);
    border-color: var(--brand-main-color-light);
}

.btn-danger,
.btn-danger:hover {
    background-color: var(--brand-red);
}

.btn-primary,
.btn-primary:hover {
    border-color: var(--brand-main-color-light);
    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;
}

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

/* ========= ヘッダー ========= */

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

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

header a.icon-btn>div {
    font-size: .7rem;
    color: var(--brand-dark);
}

/* ナビのタブ風スタイル（PC・タブレット：md以上） */
.navbar-expand-md {
    border-bottom: 4px solid #DBD3C5;
}

.navbar-expand-md.navbar .navbar-nav .nav-link {
    padding: 0.45rem 0.7rem;
    color: var(--brand-dark);
    font-weight: bold;
    transition: background-color 0.15s ease, color 0.15s ease, border-radius 0.15s ease;
}

.navbar .nav-link.active,
.navbar .nav-link:hover,
.navbar .nav-link:focus {
    background-color: var(--brand-main-color-light);
    color: #fff !important;
    border-radius: 10px 10px 0 0;
    /* 上だけ10px角丸 */
}

.navbar .nav-link i {
    font-size: 0.9rem;
}

/* 2個目以降の nav-item にだけ適用 */
.navbar .nav-item+.nav-item {
    position: relative;
    margin-left: 6px;
    /* 前のリンクとの間隔 */
    padding-left: 6px;
    /* この中に縦線を描くスペース */
}

/* 区切り線 */
.navbar .nav-item+.nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    /* padding の先頭に線を置く */
    top: 50%;
    transform: translateX(-50%);
    color: #969696;
    white-space: nowrap;
    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;
}

/* ▼ PC（md 以上）では hover で開く ▼ */
@media (min-width: 768px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        /* 好みに応じて調整 */
    }

    .navbar .dropdown-menu[data-bs-popper] {
        transform: none !important;
        /* Popper の translate3d を無効化 */
        left: 0 !important;
        /* ドロップダウン親の左端から表示 */
        margin-top: 0;
        /* 上の余白もホバー時と同じに */
    }
}

/* ▼ dropdown 全体のボーダー（外枠）は残すならこのまま */
.navbar .dropdown-menu {
    border-radius: 0.25rem;
    /* Bootstrap標準の角丸 */
    overflow: hidden;
    /* 角丸に合わせて item をクリップ */
    padding-top: 0;
    /* 上余白をなくす */
    padding-bottom: 0;
    /* 下余白をなくす */
}

/* ▼ 各 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;
}

@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: 210px;
}

/* スマホ検索フォームのスライド用 */
#mobileSearchBox {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--border-gray);
    padding: 0.6rem;
}

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

/* アコーディオンメニュー */
#mobileMenuPanel {
    border-bottom: 1px solid var(--border-gray);
    font-weight: bold;
    display: none;
}

/* 外枠 */
.mobile-menu-accordion {
    padding: 0.4rem 0;
}

/* 1階層：共通スタイル */
.mm-item {
    border-top: 1px solid var(--border-gray);
}

.mm-item:first-child {
    border-top: none;
}

/* 「トップ」などリンクだけの行 */
.mm-link-row {
    display: block;
    padding: 0.55rem 0.25rem;
    font-size: 0.9rem;
    color: var(--brand-dark);
    text-decoration: none;
}

/* アコーディオンの見出しボタン */
.mm-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.55rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--brand-dark);
}

/* 左側ラベル */
.mm-label {
    display: inline-block;
    font-weight: bold;
}

/* 右端アイコン */
.mm-icon {
    width: 1.2rem;
    text-align: right;
}

/* サブメニュー（2階層目） */
.mm-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 0.35rem 0.75rem;
    /* 少し右に下げる */
    font-size: 0.85rem;
}

.mm-submenu li+li {
    margin-top: 0.15rem;
}

.mm-submenu a {
    display: block;
    padding: 0.2rem 0;
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: bold;
}

.mm-submenu a:hover {
    text-decoration: underline;
}

/* 開閉時のアイコン回転 */
.mm-toggle[aria-expanded="true"] .mm-icon i {
    transform: rotate(180deg);
}

.mm-toggle .mm-icon i {
    transition: transform 0.15s ease;
}

/* スマホメニュー：アクティブ表示 */

/* トップなど単独リンク */
.mm-link-row.active {
    background-color: var(--brand-main-color-light);
    color: #fff !important;
}

/* 第2階層のリンク */
.mm-submenu a.active {
    background-color: var(--brand-main-color-light);
    color: #fff !important;
    border-radius: 4px;
}

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

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

footer .input-group .btn-outline-danger,
footer .input-group .btn-outline-danger: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;
}

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

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

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

/* メインカルーセルの大きい画像 */
#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;
}

/* キャプション共通（画像の下） */
.caption-box {
    background: rgba(0, 0, 0, 0.5);
    color: #333;
    padding: 8px 14px;
    text-align: left;
    margin-top: 5px;
}

.caption-text {
    text-align: center;
    margin: 0;
    font-weight: bold;
    color: #FFFFFF;
    font-size: 0.9rem;
}

/* サムネイルエリア（メインカルーセルの下） */
.article-carousel .thumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}

/* サムネイル1個分の枠 */
.article-carousel .thumb-item {
    width: 15%;
    /* 横に並べる数はここで調整 */
    background: #FFF;
    /* 余白の色（黒） */
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    /* 中央寄せ用 */
    align-items: center;
    justify-content: center;
}

/* サムネイル画像：比率維持＋全体表示 */
.article-carousel .thumb-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    aspect-ratio: 690 / 450;
    object-fit: contain;
    /* 念のため指定（なくてもOKなブラウザが多いです） */
}

/* アクティブなサムネイルは青枠 */
.article-carousel .thumb-active {
    border-color: #0d6efd;
}

/* ボタンの外側（白の丸い背景・透明感あり） */
.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: 20px;
}

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

/* アイコン（矢印）の色を濃いグレーに変更） */
.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);
}

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

/* 右カラム動画 */
#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 {
    padding: .5rem;
}

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

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

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

.article-row {
    display: flex !important;
    /* 横並びを強制 */
    align-items: stretch;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.article-row .article-row .article-main {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    flex: 1 1 auto;
    min-width: 0;
    /* 狭い画面での崩れ防止 */
}

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

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

.article-row .article-title {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

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

.article-row .article-text {
    font-size: .85rem;
    line-height: 1.5;
}

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

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

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

.article-row .article-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.top-article .article-row .article-thumb {
    max-width: 300px;
    max-height: 300px;
}

/* 左上のアイコン（複数画像用） */
.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 */
    .article-row .article-thumb {
        max-width: 100px;
    }

    .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-light);
    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-light);
    color: var(--brand-main-color-light);
    background: transparent;
    font-weight: 600;
}

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

/* ========= 記事（詳細ページ） ========= */
.article-detail .article-title a {
    color: var(--brand-dark);
    font-weight: bold;
}

.article-detail .article-row {
    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-light);
}

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

.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: 2rem;
    line-height: 1.8;
}

@media (min-width: 768px) {

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

    .article-detail .article-text {
        margin-top: .5rem;
    }
}



/* 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;
    border-bottom: 1px solid var(--border-gray);
}

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

.breadcrumb-item a {
    color: var(--brand-gray);
    font-size: 0.75rem;
    font-weight: bold;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: var(--border-gray);
}

.breadcrumb-current {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--brand-main-color-light);
}

/* ========= ページング ========= */
.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-light);
    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: 275px;
    margin: auto;
}

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

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

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

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

/* ================================ */
/* =====購読申し込み関連ここから===== */
/* ================================ */

/* ========= 共通変数とフレーム ========= */
.stack {
    display: flex;
    flex-direction: column;
}

.stack--50 {
    gap: 50px;
}

.stack--40 {
    gap: 40px;
}

.stack--30 {
    gap: 30px;
}

.stack--25 {
    gap: 25px;
}

.stack--20 {
    gap: 20px;
}

.stack--18 {
    gap: 18px;
}

.stack--16 {
    gap: 16px;
}

.stack--8 {
    gap: 8px;
}

.subscription-shell {
    width: min(100%, 979px);
    margin: 0 auto;
}

.subscription-page {
    background: #fff;
    font-family: 'Noto Sans JP', 'Noto Sans', sans-serif;
}

/* ========= 共通：新規登録ページ用ヘッダー PC用 ========= */
.subscription-header {
    background: #fff;
    box-shadow: 0 4px 12px rgba(210, 210, 210, 0.35);
    position: relative;
    z-index: 1;
}

.subscription-logo img {
    width: 100%;
    max-width: 456px;
    padding-inline: 10px;
    height: auto;
}

@media (max-width: 767.98px) {
    .subscription-logo img {
        width: 200px;
    }
}

/* ========= 購読プランページ用メイン PC用 ========= */

.subscription-main {
    background: #fff;
}

.subscription-frame {
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
    padding: clamp(24px, 3vw, 40px);
}

.subscription-inner {
    max-width: 802px;
    margin: 0.625rem auto;
}

.subscription-label {
    letter-spacing: 0.2em;
    color: var(--brand-gray);
}

.subscription-title {
    font-size: clamp(1.4rem, 3vw, 1.95rem);
    font-weight: 800;
}

.subscription-desc {
    border: 1px solid #e4e4e4;
    padding: 10px 15px;
    font-size: 0.875rem;
}

.subscription-plan h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.subscription-highlight {
    display: inline-flex;
    align-self: center;
    max-width: fit-content;
    background: #fff82a;
    font-weight: 700;
    font-size: 0.9rem;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.625rem;
}

.plan-card {
    border: 1px solid #e4e4e4;
}

.plan-card__cap {
    background: var(--brand-main-color-light);
    color: #fff;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 0.2rem;
}

.plan-card__body {
    background: #f3f3f3;
    text-align: center;
    padding: 0.5rem 0px;
    display: grid;
    gap: 0.3125rem;
    align-content: center;
    max-height: 130px;
}

.plan-desc {
    font-size: 0.9375rem;
    color: var(--black);
    line-height: 2;
}

.plan-price {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.2;
}

.plan-sub {
    font-size: 1.0625rem;
    color: var(--black);
    line-height: 1.2;
}

.plan-note {
    font-size: 0.9375rem;
    color: var(--black);
    line-height: 1.2;
    padding-bottom: 0.75rem;
}

.plan-footnote {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--black);
}

.section-bar {
    width: 10px;
    height: 28px;
    background: var(--brand-main-color-light);
    display: inline-block;
}

/* ===== 機能比較テーブル ===== */

.subscription-table {
    --bs-table-border-color: #e4e4e4;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
    font-size: clamp(0.82rem, 1.6vw, 0.95rem);
    border-collapse: separate;
    border-spacing: 0;
}

.subscription-table th {
    font-weight: 700;
}

.subscription-table td {
    font-weight: 600;
    text-align: center;
}

.subscription-table th,
.subscription-table td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.125rem;
}

.subscription-table thead th {
    border-bottom: 1px solid #e4e4e4;
    color: #000;
    text-align: center;
    background: #fff;
}

.subscription-table thead th:not(:first-child) {
    white-space: nowrap;
    min-width: 90px;
}

.subscription-table thead th:first-child {
    text-align: left;
}

.subscription-table tbody tr+tr td,
.subscription-table tbody tr+tr th {
    border-top: 1px solid #e4e4e4;
}

.subscription-table thead th:first-child,
.subscription-table tbody th {
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.premium-head {
    border: 1px solid var(--brand-main-color-light) !important;
    background-color: var(--brand-main-red-soft) !important;
}

.premium-head__label {
    color: var(--brand-main-color-light);
}

.subscription-table tbody .premium-col {
    background-color: #f5f5f5 !important;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
}

.subscription-table img {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.table-mark-cross {
    color: #969696 !important;
    font-weight: 700;
}

.feature-note {
    font-size: 0.95rem;
    color: var(--brand-gray);
    text-align: center;
}

.subscription-btn {
    display: block;
    width: min(100%, 400px);
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    background: var(--brand-main-color-light);
    border: 2px solid var(--brand-main-color-light);
    color: #fff;
    border-radius: 0.25rem;
}

.subscription-btn:hover {
    background: #7a1d1f;
    border-color: #7a1d1f;
    color: #fff;
}

/* ===== 複数契約案内 ===== */

.multi-box {
    border: 2px solid var(--brand-black);
    padding: clamp(1.5rem, 1vw, 2.5rem);
    background: #fff;
}

.multi-box__inner {
    max-width: 610px;
    margin: 0 auto;
    text-align: center;
}

.multi-title {
    font-weight: 700;
}

.multi-box__lead {
    max-width: 610px;
    text-align: left;
    line-height: 1.7;
    color: var(--brand-black);
    font-size: clamp(0.75rem, 1.6vw, 0.875rem);
}

.multi-box__cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.multi-box__btn {
    display: block;
    width: min(100%, 400px);
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    background: var(--brand-main-color-light);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 0.25rem;
    border: 2px solid var(--brand-main-color-light);
    text-align: center;
}

.multi-box__btn:hover {
    background: #7a1d1f;
    border-color: #7a1d1f;
    color: #fff;
}

.multi-box__footnote {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--brand-black);
    line-height: 1.6;
}

/* ===== 共通：お問い合わせ ===== */

.subscription-contact {
    background: #fff;
}

.contact-panel {
    background: #e4e4e4;
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-panel__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    padding-top: 1rem;
}

.contact-panel__cta {
    flex: 1 1 100%;
    max-width: 412px;
}

.contact-panel__title {
    color: var(--brand-black);
    justify-self: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.contact-panel__link {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: #fff;
    border-radius: 0.6rem;
    padding: 1.2rem 1.8rem;
    font-weight: 700;
    color: var(--brand-main-color-light);
    text-decoration: none;
    box-shadow: inset 0 0 0 1px #d0d0d0;
}

.contact-panel__link:hover {
    color: #fff;
    background: var(--brand-main-color-light);
    box-shadow: none;
}

@media (max-width: 767.98px) {
    .contact-panel__link {
        gap: 1rem;
        padding: 1.2rem 1rem;
    }

    .contact-panel__content {
        padding-top: 0;
        gap: 2rem;
    }
}

.contact-panel__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-main-color-light);
    color: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.contact-note {
    font-size: 0.8rem;
    color: var(--brand-black);
}

.contact-panel__info {
    flex: 1 1 100%;
    color: var(--brand-black);
    font-weight: 500;
    max-width: 380px;
}

.contact-panel__org {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-panel__site a {
    color: var(--brand-black);
    font-weight: 700;
    text-decoration: underline;
}

.contact-panel__link:hover .contact-panel__icon {
    background: #fff;
    color: var(--brand-main-color-light);
}

.contact-panel__info p {
    margin-bottom: 0.75rem;
}

.contact-panel__details li+li {
    margin-top: 0.25rem;
}

.contact-inline {
    display: inline-block;
    margin-right: 0.4rem;
}

.contact-inline--dept {
    font-weight: 600;
}

.contact-inline-break {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.contact-inline-break .contact-inline {
    margin-right: 0;
}

@media (max-width: 991.98px) {
    .contact-panel__content {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-panel__link {
        border-radius: 1rem;
    }
}

@media (min-width: 992px) {
    .contact-panel__cta {
        flex: 1 1 320px;
    }

    .contact-panel__info {
        flex: 1 1 360px;
    }
}

/* ========= 共通：新規登録ページ用フッター PC用 ========= */
.subscription-footer {
    background: #fff;
    box-shadow: 0 -4px 12px rgba(210, 210, 210, 0.35);
}

/* ========= 共通：申込みステップ進展状況 =========*/

.stepHeader__title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}

.stepProgress {
    --progress-pad-x: 0px;
    position: relative;
    width: min(100%, 930px);
    margin: 0 auto 1rem;
    display: block;
    padding-top: 0;
    padding-bottom: 2.75rem;
    background-image: linear-gradient(#969696, #969696);
    background-repeat: no-repeat;
    background-size: calc(100% - 20px) 1px;
    background-position: 10px 10px;
}

.stepProgress__line {
    display: none;
}

.stepProgress__item {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    width: auto;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.stepProgress__item:nth-child(2) {
    left: 10px;
}

.stepProgress__item:nth-child(3) {
    left: calc(10px + (100% - 20px) / 3);
}

.stepProgress__item:nth-child(4) {
    left: calc(10px + (100% - 20px) * 2 / 3);
}

.stepProgress__item:nth-child(5) {
    left: calc(100% - 10px);
}

.stepProgress--7 .stepProgress__item:nth-child(2) {
    left: 10px;
}

.stepProgress--7 .stepProgress__item:nth-child(3) {
    left: calc(10px + (100% - 20px) / 5);
}

.stepProgress--7 .stepProgress__item:nth-child(4) {
    left: calc(10px + (100% - 20px) * 2 / 5);
}

.stepProgress--7 .stepProgress__item:nth-child(5) {
    left: calc(10px + (100% - 20px) * 3 / 5);
}

.stepProgress--7 .stepProgress__item:nth-child(6) {
    left: calc(10px + (100% - 20px) * 4 / 5);
}

.stepProgress--7 .stepProgress__item:nth-child(7) {
    left: calc(100% - 10px);
}

.stepProgress__item::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #e4e4e4;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.stepProgress__item--active::before {
    border-color: var(--brand-main-color-light);
}

.stepProgress__item--active::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--brand-main-color-light);
    border-radius: 50%;
    z-index: 3;
}

.stepProgress__text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #e4e4e4;
    white-space: nowrap !important;
    overflow: visible;
}

@media (min-width: 768px) {
    .stepProgress__text wbr {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .stepProgress__text {
        white-space: normal !important;
        word-break: keep-all;
        text-wrap: balance;
    }
}

.stepProgress__item--active .stepProgress__text {
    color: #000;
}

/* ========= プラン選択ページ用 ========= */

.payment-block,
.contract-block,
.member-block {
    text-align: center;
    width: min(100%, 980px);
    margin: 0 auto;
}

.payment__title {
    font-size: 1.25rem;
    font-weight: 700;
}

.step-label {
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--brand-gray);
    font-size: 0.85rem;
}

.step-eyebrow {
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

.planSection__head {
    display: flex;
    flex-direction: column;
}

.planSection__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-main-color-light);
    letter-spacing: 0.1em;
}

.planSection__eyebrow {
    font-size: 1.2rem;
    font-weight: 700;
}

.planSection__title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.planSection__desc {
    font-size: 0.9rem;
    margin: 0;
    color: var(--brand-dark);
}

.planCards {
    width: 100%;
    max-width: 748px;
    margin: 0 auto;
}

.planCards--flush>.col {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.planCards--flush>.col:first-child {
    padding-left: 0;
}

.planCards--flush>.col:last-child {
    padding-right: 0;
}

@media (max-width: 767.98px) {
    .planCards {
        gap: 30px;
        color: #000;
    }

    .planCards--flush>.col {
        padding-left: 0;
        padding-right: 0;
    }

    .planCards--flush>.col+.col {
        margin-top: 1.5rem;
    }

    .paymentCards {
        gap: 30px;
    }
}

.planCard {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.planCard__cap {
    width: 100%;
    display: flex;
    margin-bottom: 1.5rem;
    align-items: center;
    gap: 5px;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
}

.planCard__cap>img {
    width: 1.5rem;
    height: 1.5rem;
}

.planCard__body {
    width: 100%;
    filter: grayscale(1);
    opacity: 0.7;
}

.planCard--active .planCard__body {
    filter: none;
    opacity: 1;
}

@media (max-width: 767.98px) {
    .planCard__cap {
        margin-bottom: .5rem;
    }
}

/* ========= 支払方法選択ページ用 ========= */

.payment-plan-card {
    border: 1px solid #ccc;
    border-radius: 0.75rem;
    padding: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-plan-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ccc;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.payment-plan-card__body {
    background: rgba(150, 35, 36, 0.05);
    padding: 1.25rem;
    display: grid;
    gap: 0.4rem;
}

.payment-plan-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.payment-plan-card__unit {
    font-size: 0.9rem;
}

.payment-plan-card__note {
    font-weight: 700;
}

.payment-plan-card__subtext {
    font-size: 0.85rem;
    color: var(--brand-gray);
}

.payment-plan-card--active {
    border-color: var(--brand-main-color-light);
}

.payment-plan-card--active .payment-plan-card__head {
    background: var(--brand-main-color-light);
}

.payment-plan-card--active .payment-plan-card__body {
    background: rgba(150, 35, 36, 0.1);
}

/* ラジオボタン本体は隠す */
.option-input {
    display: none;
}

.option-pills label.option-pill {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    border: 0;
    border-radius: 0.75rem;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

/* カスタムラジオの外枠 */
.option-pills label.option-pill::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-gray);
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

/* チェック時のスタイル */
.option-input:checked + .option-pill {
    color: var(--brand-main-color-light);
}

.option-input:checked + .option-pill::before {
    border-color: var(--brand-main-color-light);
}

/* チェック時の内側の点 */
.option-input:checked + .option-pill::after {
    content: "";
    position: absolute;
    left:5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--brand-main-color-light);
    border-radius: 50%;
}

.member-btn {
    border: 1px solid #ccc;
    border-radius: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: #fff;
    font-weight: 700;
    min-width: 140px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.option-pill--active {
    background-color: #9623240D;
    color: var(--brand-main-color-light);
}

.member-btn--active {
    background-color: #9623240D;
    color: var(--brand-main-color-light);
}

.payment-divider {
    border: 2px solid #e4e4e4;
    margin: 0;
}

.additionalMemberDivider {
    height: 1px;
    background: #e4e4e4;
    width: 100%;
}

.btn-add-member {
    background: #969696;
    border-color: #969696;
    color: #fff;
}

.btn-add-member:hover,
.btn-add-member:focus {
    background: #8a8a8a;
    border-color: #8a8a8a;
    color: #fff;
}

/*========== 共通：次へ/戻るボタン ==========*/

.planNav {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 0 8rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.planNav--payment {
    width: min(100%, 620px);
    padding: 0;
}

.planNav--payment .btn-wire {
    flex: 0 0 auto;
    width: min(260px, 45vw);
}

.btn-wire {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 516px);
    height: 52px;
    padding: 0 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--brand-sub-color);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-wire:focus {
    outline: none;
    box-shadow: none;
}

.btn-wire--sub {
    background: #fff;
    color: var(--brand-sub-color);
}

.btn-wire--sub:hover {
    background: rgba(184, 134, 11, 0.06);
    color: var(--brand-sub-color);
    text-decoration: none;
}

.btn-wire--primary {
    background: var(--brand-sub-color);
    color: #fff;
}

.btn-wire--primary:hover {
    background: rgb(134, 98, 8);
    border-color: rgb(134, 98, 8);
    color: #fff;
    text-decoration: none;
}

.membersInputRow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.membersInput {
    width: 200px;
    height: 44px;
    border: 1px solid #E4E4E4;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 16px;
}

.membersUnit {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.paymentSection__title {
    font-size: 18px;
    font-weight: 700;
}

.paymentSection__desc {
    font-size: 14px;
    color: #000;
}

.paymentCards {
    width: min(100%, 860px);
    margin-left: auto;
    margin-right: auto;
}

.paymentCard {
    width: min(100%, 260px);
    padding: 1rem;
    border: 1px solid #E4E4E4;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.paymentCard[disabled],
.paymentCard[aria-disabled="true"] {
    cursor: not-allowed;
}

.paymentCard[disabled] *,
.paymentCard[aria-disabled="true"] * {
    cursor: not-allowed;
}

.option-pill[disabled],
.option-pill[aria-disabled="true"] {
    cursor: not-allowed;
}

.option-pill[disabled] *,
.option-pill[aria-disabled="true"] * {
    cursor: not-allowed;
}

.paymentCard__cap {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #969696;
    font-size: 14px;
    font-weight: 600;
}

.paymentCard__cap img {
    opacity: 0.35;
    filter: grayscale(100%);
}

.paymentCard--active {
    border-color: var(--brand-main-color-light);
    box-shadow: 0 0 0 1px var(--brand-main-color-light);
}

.paymentCard__cap--active {
    color: var(--brand-main-color-light);
}

.paymentCard__cap--active img {
    opacity: 1;
    filter: none;
}

/* ========= 申し込み内容確認ページテーブル ========= */

.confirmBlock__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.confirmTable {
    background: #fff;
    border-collapse: separate !important;
    border-spacing: 0;
}

.confirmTable__head {
    width: 32%;
    background-color: #e5e5e5;
    font-weight: 700;
    padding: 1rem;
}

.confirmTable> :not(caption)>*>th.confirmTable__head {
    background-color: #e5e5e5 !important;
}

.confirmTable> :not(caption)>*>th.confirmTable__head {
    border-color: #ffffff !important;
}

.confirmTable> :not(caption)>*>td {
    border-color: #e5e5e5 !important;
}

.confirmTable> :not(caption)>*>th,
.confirmTable> :not(caption)>*>td {
    padding: 1rem 0.625rem !important;
}

.confirmTable> :not(caption)>*>th,
.confirmTable> :not(caption)>*>td {
    border-style: solid;
    border-width: 1px;
    border-top-width: 0;
}

.confirmTable> :not(caption)> :first-child>th,
.confirmTable> :not(caption)> :first-child>td {
    border-top-width: 1px;
}

.confirmTable> :not(caption)>*>td {
    border-left-width: 0;
}

.subscription-page .form-label {
    font-weight: 500;
    margin: 0;
}

/* ========= お客様情報入力フォーム用 ========= */

#customerForm .form-control {
    padding: 0.75rem 0.9rem;
}

#customerForm .form-select {
    padding: 0.75rem 0.9rem;
}

.contact-form .form-control {
    padding: 0.75rem 0.9rem;
}

.contact-form .form-select {
    padding: 0.75rem 0.9rem;
}

#customerAgree.form-check-input {
    border-color: #000;
}

#customerAgree.form-check-input:not(:checked) {
    background-color: #fff;
}

#customerAgree.form-check-input:checked {
    background-color: var(--brand-main-color-light);
    border-color: var(--brand-main-color-light);
}

#customerAgree.form-check-input:focus {
    box-shadow: none;
    border-color: #000;
}

#customerAgree.form-check-input:checked:focus {
    border-color: var(--brand-main-color-light);
}

.form-control::placeholder {
    color: #e4e4e4;
}

.splitTel {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.splitTel__input {
    min-width: 0;
    flex: 1 1 0;
}

.splitTel__input--s {
    flex: 0 0 4.5rem;
}

.splitTel__sep {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* ===== 電話入力欄3つ横並びレスポンシブ =====*/

@media (max-width: 420px) {
    .splitTel {
        gap: 0.35rem;
    }

    .splitTel__input--s {
        flex-basis: 3.75rem;
    }
}

.customerPolicy__body {
    padding: 2rem clamp(24px, 5vw, 72px);
}

.customerPolicy__inner {
    max-height: 334px;
    overflow: auto;
    box-sizing: border-box;
}

.deliveryChoice .form-check {
    padding-left: 0;
}

.readerChoice .form-check {
    padding-left: 0;
}

.deliveryChoice .form-check-input {
    margin-left: 0;
}

.readerChoice .form-check-input {
    margin-left: 0;
}

.is-hidden {
    display: none !important;
}

/*========= 次へ/戻るボタンのレスポンシブ =========*/
@media (max-width: 767.98px) {
    .planNav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 0.75rem;
        padding: 0;
    }

    .planNav .btn-wire {
        flex: 1 1 0;
        width: auto;
        padding: 0;
    }
}

/* ===== メールアドレス登録 =====*/

.mail-form {
    margin-right: 1.5rem;
    margin-left: 1.5rem;
    padding: 0;
}

.mail-form .form-control {
    padding: 0.625rem;
}

.mail-form .input-group:focus-within {
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.mail-form .input-group:focus-within .form-control {
    box-shadow: none;
    border-color: var(--bs-primary);
}

.mail-form .input-group:focus-within .passwordToggle {
    border-color: var(--bs-primary);
}

.mail-form .passwordToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    border: 1px solid var(--bs-border-color);
    border-left: 0;
    background: #fff;
    color: #111;
}

.mail-form .passwordToggle:focus {
    box-shadow: none;
}

.mail-form .passwordToggle__icon--hide {
    display: none;
}

.mail-form .passwordToggle.is-visible .passwordToggle__icon--show {
    display: none;
}

.mail-form .passwordToggle.is-visible .passwordToggle__icon--hide {
    display: inline;
}

/* =========================================
   ログイン中ローディング
========================================= */
.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-main-color-light);
    animation: cms-spin 0.8s linear infinite;
}

.cms-loading__text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334D6E;
    letter-spacing: 0.02em;
}