/* ==================================================
   ランキング・商品カード関連スタイル
   ================================================== */

/* カテゴリボタン */
.cate_btn p {
    text-align: right;
    font-weight: bold;
    font-size: 16px;
}

.cate_btn p a {
    text-decoration: underline;
}

.cate_btn p a:after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 16px;
    background-image: url(/img/ranking/sita_y.svg);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-left: 5px;
}

/* ランキング要素 */
p.rank {
    margin: 0;
    color: #BA0303;
    font-weight: bold;
    font-size: 17px;
}

p.rank span {
    font-size: 22px;
    margin-right: 3px;
}

p.name {
    margin: 0;
    font-weight: bold;
    line-height: 1.7;
    text-decoration: underline;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 5px;
    overflow: hidden;
    min-height: 52px;
}

.r_imgbox {
    line-height: 0;
    margin-bottom: 5px;
    overflow: hidden;
}

/* 料金表示 */
p.fee {
    font-weight: bold;
    margin: 5px 0;
    color: #333;
}

span.f_num {
    color: #ff0000;
    font-size: 1.1rem;
}

span.en_m {
    font-size: 0.9rem;
    margin-left: 2px;
}

/* ランキングラッパー */
.ranking_wrap {
    padding: 20px;
}

.ranking_item {
    background: #fff;
}

.ranking_item_inner a:hover {
    opacity: 0.7;
}

.ranking_item img {
    max-width: 100%;
    height: auto;
}

/* ==================================================
   見出し・タイトル
   ================================================== */

h2.h2ttl,
h2.h2ttl02,
h3.h3_ttl {
    position: relative;
}

h2.h2ttl:before,
h3.h3_ttl:before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 25px;
    background-image: url(/img/ranking/oukan.png);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-right: 5px;
}

h2.h2ttl02:before {
    content: '';
    display: inline-block;
    width: 19px;
    height: 22px;
    background-image: url(/img/ranking/musimegane.svg);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-right: 5px;
}

h4.h4_ttl {
    text-align: center;
    font-size: 19px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 5px;
    max-width: 95%;
    margin: 0 auto 5px;
    color: #0069b7;
}

p.strengths {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #0069b7;
}

/* ==================================================
   リスト・フレックス表示
   ================================================== */

ul.list_flex {
    display: flex;
    flex-wrap: wrap;
}

ul.list_flex li {
    width: 33%;
    margin-bottom: 10px;
}

ul.list_flex li a {
    display: flex;
    align-items: center;
    padding: 7px;
    font-size: 13.5px;
    border-radius: 5px;
    color: #0069b7;
    font-weight: bold;
    line-height: 1.4;
}

ul.list_flex li a:hover {
    opacity: 0.7;
    color: #ff0000;
}

ul.list_flex li a:hover img {
    transform: scale(1.1, 1.1);
    transition: 0.3s all;
}

.list_flex_img {
    margin-right: 10px;
    max-width: 36%;
    min-width: 58px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid #ccc;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
}

.list_flex_img img {
    max-width: 87%;
}

ul.list_flex li a::after {
    content: "";
    display: block;
    clear: both;
}

/* ==================================================
   ボタン・リンク
   ================================================== */

.open-popup {
    display: block;
    color: #333;
    background-color: #ffde3d;
    text-align: center;
    padding: 7px;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
}

.pp_link p {
    text-align: center;
}

.pp_link p a {
    display: inline-block;
    padding: 0.5em 2.5em;
    text-decoration: none;
    background: #0069b7;
    color: #FFF;
    border-bottom: solid 4px #034c83;
    font-weight: bold;
    position: relative;
    min-width: 205px;
    border-radius: 5px;
    font-size: 15px;
}

.pp_link p a:after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url(/img/ranking/migi_y.svg);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-left: 5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
}

.pp_link p a:active {
    -webkit-transform: translateY(4px);
    transform: translateY(4px);
    border-bottom: none;
}

td.review_link a {
    position: relative;
    text-decoration: underline;
}

td.review_link a:before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 15px;
    background-image: url(/img/ranking/hoshi_h.svg);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-right: 5px;
}

/* ==================================================
   テーブル
   ================================================== */

.popup_tbl table,
.popup_tbl td,
.popup_tbl th {
    border: 1px solid #c0c0c0;
    border-collapse: collapse;
}

.popup_tbl td,
.popup_tbl th {
    padding: 10px;
    width: 30px;
    height: 25px;
    width: 33%;
}

.popup_tbl th {
    background: #0069b7;
    color: #ffffff;
}

.popup_tbl table {
    width: 95%;
    margin: 0 auto;
}

.even {
    background: #fbf8f0;
}

.odd {
    background: #fefcf9;
}

/* ==================================================
   スワイパー・スライダー
   ================================================== */

.swiper-slide {
    height: auto !important;
}

.swiper-scrollbar {
    position: relative !important;
    margin-top: 20px;
    height: var(--swiper-scrollbar-size, 6px) !important;
}

.swiper-scrollbar-drag {
    background: #0069b7 !important;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    pointer-events: auto !important;
    background: none !important;
}

.swiper-button-next.swiper-button-disabled:hover:after,
.swiper-button-prev.swiper-button-disabled:hover:after {
    color: #c6171e !important;
}

.swiper-button-next,
.swiper-button-prev {
    border: 1px solid #c6171e;
    border-radius: 50%;
    z-index: 10;
    width: 50px !important;
    height: 50px !important;
    background: #ffffff;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #c6171e;
}

.swiper-button-next:hover:after,
.swiper-button-prev:hover:after {
    color: #ffffff !important;
}

.swiper-button-next:after {
    content: '→' !important;
}

.swiper-button-prev:after {
    content: '←' !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 22px !important;
    color: #c6171e;
}

/* ==================================================
   ポップアップ・モーダル
   ================================================== */

/* 背景（全画面） */
.popup {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;

    /* フェード制御 */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;

    /* センタリング */
    display: grid;
    place-items: center;
}

/* 開いている状態 */
.popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 白枠コンテンツ */
.popup-content {
    position: relative;
    background: #fff;
    width: min(90vw, 625px);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #0069b7;
    
    /* コンテンツのアニメ（transform競合を回避） */
    transform: scale(0.98);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
}

.popup.is-open .popup-content {
    transform: scale(1);
    opacity: 1;
}

/* バツボタン */
.close {
    position: absolute;
    right: 0;
    top: -48px;
    font-size: 37px;
    cursor: pointer;
    color: #fff;
    transition: color .2s;
}

.close:hover {
    color: #e00;
}

/* bodyのスクロール禁止 */
body.no-scroll {
    overflow: hidden;
}

/* ==================================================
   タブ機能
   ================================================== */

.tab-nav {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tab-nav .tab-button:nth-of-type(1) {
    font-weight: bold;
}

.tab-button {
    background: #dcdddd;
    padding: 10px 15px;
    margin-right: 3px;
    margin-bottom: 3px;
    cursor: pointer;
}

.tab-content {
    min-width: 200px;
}

.tab-button:hover {
    background-color: #0069b7;
    color: #ffffff;
}

.tab-button.active {
    background-color: #0069b7;
    color: #ffffff;
}

.tab-panel {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tab-panel.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* ==================================================
   スイッチャー
   ================================================== */

.switcher-box {
    margin: 20px 0;
    border-radius: 5px;
    min-height: 150px;
    position: relative;
}

.switcher-header {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.switch-item {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    user-select: none;
    width: 50%;
    text-align: center;
    color: #999;
    font-size: 17px;
}

.switch-item:hover {
    background-color: #e9e9e9;
}

.switch-item.current {
    background-color: white;
    border-bottom-color: #0069b7;
    color: #0069b7;
}

.panel-area {
    max-width: 100%;
    padding: 20px 0 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    position: absolute;
    width: 100%;
}

.panel-area.show {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* ==================================================
   固定リンク・ナビゲーション
   ================================================== */

.link_cate {
    position: fixed;
    bottom: 270px;
    right: 30px;
    background: #eee;
    padding: 10px 15px;
    border-radius: 5px;

    /* 初期状態 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}

.link_cate p a:before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 15px;
    background-image: url(/img/ranking/ue_y.svg);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-right: 5px;
}

.link_cate.show {
    opacity: 1;
    visibility: visible;
}

.link_cate p {
    margin: 0;
}