/* ==========================================================================
       Foundation
       --------------------------------------------------------------------------
       基本設定・変数の定義
       ========================================================================== */
    :root {
        /* HOTワードリストパーツで使う */
        /* Color Palette */
        --hot-color-bg-accent: #ffdb26;    /* ラベル背景：黄 */
        --hot-color-text-white: #FFFFFF;   /* テキスト：白 */
        --hot-color-text-alert: #e33535;   /* テキスト：赤 */

        /* Sizes & Spacing */
        --hot-words-height: 37px;
        --size-hot-label-w: 60px;
        --size-hot-label-h: 20px;
        --hot-space-gap: 10px;             /* 固定部分と可動部分の間隔、文字間隔 */
        --hot-font-size-hot-wards: 12px;
        --hot-font-size-hot-label: 13px;

        /* 今週の注目レースパーツで使う */
        /* Colors */
      --ftrace-color-race-primary: #060;
      --ftrace-color-link: #0645AD;
      
      /* grade */
      --ftrace-color-gold: #ffc107;
      --ftrace-color-g1: #ffc107;
      --ftrace-color-silver: #b0b8c1;
      --ftrace-color-g2: #b0b8c1;
      --ftrace-color-bronze: #cd7f32;
      --ftrace-color-g3: #cd7f32;
      --ftrace-color-rank-other: #6c757d;

      /* お気に入り出走通知パーツで使う */
    /* Colors */
    --fave-clr-accent-r: #E33535;    /* ハート、日曜バッジ */
    --fave-clr-accent-g: #009944;  /* アクティブタブ、場所バッジ */
    --fave-clr-accent-b: #1C75CD;  /* 土曜バッジ */
    --fave-clr-text-dark: #7B7B7B;  /* header text、頭数 */
    --fave-clr-text-light: #B8B8B8;  /* インアクティブリンク */
    --fave-clr-text-wht: #FFFFFF;
    --fave-clr-text-date: #323F4C;  /* 日付 */
    --fave-clr-link: #1C75CD;         /* リンク */
    --fave-clr-bg-base: #EEEEEE;
    --fave-clr-bg-disabled: #D8D8D8;
    --fave-clr-bg-sat: #EAF5FF;    /* 土曜バッジ背景 */
    --fave-clr-bg-sun: #FFEDEA;    /* 日曜バッジ背景 */
    --fave-clr-bg-wkday: #EDEDED;    /* 平日バッジ背景 */
    --fave-clr-border: #E1E1E1;

    /* Spacing */
    --fave-space-xs: 2px;
    --fave-space-s: 4px;
    --fave-space-m: 8px;
    --fave-space-l: 10px;
    --fave-space-xl: 12px;
    --fave-space-xxl: 14px;

    /* Font size */
    --fave-fz-xs: 8px;
    --fave-fz-s: 10px;
    --fave-fz-m: 12px;
    --fave-fz-l: 14px;
    --fave-fz-xl: 16px;
    }

/* ==========================================================================
    HOTワードリストパーツ
    ========================================================================== */
    /* Block: Hot Words */
    .p-hot-words {
        position: relative;
        display: flex;
        align-items: center;
        width: 528px;
        height: var(--hot-words-height);
        padding: 0;
        overflow: hidden;
        gap: var(--hot-space-gap);
    }


    /* Element: Fixed Area (左側の固定部分) */
    .p-hot-words__fixed {
        flex-shrink: 0; /* 収まりきらない場合でも縮まない */
        position: relative;
        z-index: 2;
    }

    /* Modifier: Hot Type */
    .p-hot-words__label {
        display: inline-flex;
        align-items: center;
        vertical-align: middle;
        justify-content: center;
        width: var(--size-hot-label-w);
        height: var(--size-hot-label-h);
        background-color: var(--hot-color-bg-accent);
        border-radius: 999px;
    }

    /* Element: Icon within Label */
    .p-hot-words__icon {
        display: block;
        margin-right: 1px;
        object-fit: contain;
    }
    
    .p-hot-words__text {
        font-size: var(--hot-font-size-hot-label);
        font-family: "Roboto", sans-serif;
        color: var(--hot-color-text-alert);
        font-weight: bold;
    }

    /* Element: Scroll Area (右側の可動部分) */
    .p-hot-words__scroll {
        flex: 1;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
        
        /* fire-fox/edgeスクロールバー非表示 */
        scrollbar-width: none; 
        -ms-overflow-style: none; 
    }

    /* Chrome/Safari用スクロールバー非表示 */
    .p-hot-words__scroll::-webkit-scrollbar {
        display: none;
    }

    /* ドラッグ中のカーソル */
    .p-hot-words__scroll.is-dragging {
        cursor: grabbing;
        user-select: none;
    }

    /* Element: List */
    .p-hot-words__list {
        display: flex;
        align-items: center;
        height: 100%;
        list-style: none;
        gap: var(--hot-space-gap); /* 文字間隔: 10px */
    }

    /* Element: Item */
    .p-hot-words__item {
        flex-shrink: 0;
    }

    /* Element: Link */
    a.p-hot-words__link {
        display: block;
        color: var(--hot-color-text-white);
        font-size: var(--hot-font-size-hot-wards);
        font-weight: medium;
        text-decoration: none;
        transition: opacity 0.2s;
        white-space: nowrap;
        /* タップ領域の確保 */
        padding: auto 0; 
    }

    .p-hot-words__link:hover {
        text-decoration: none;
        opacity: 0.7;
    }

    .p-hot-words__link:visited {
        color: var(--hot-color-text-white);
    }

    /* State: JSで制御する場合 */
    .is-dragging .p-hot-words__link {
        pointer-events: none; /* ドラッグ中にリンクが反応しない */
    }

    /* ==========================================================================
    HOTワード関連リンクまとめページ
    ========================================================================== */
    .p-hotword-result{
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.p-todbCard{
    /* display: flex;
    align-items: center;
    gap: 10px; */
    padding: 15px;
    background-color: #fff;
    border: 1px solid #B8B8B8;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease-in-out, opacity 0.2s ease-in-out;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.p-todbCard img{
    vertical-align: middle !important;
}


/* State: Hover/Active */
.p-todbCard:hover {
    background-color: #f9f9f9;
    text-decoration: none;
}

.p-todbCard:visited{
    color: inherit;
}

.p-todbCard__fuku{
    flex-shrink: 0;
    width: 50px;
    height: auto;
}

.p-todbCard__fuku img{
    width: 100%;
    height: auto;
}

.p-todbCard__body {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.p-todbCard__body::after{
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border: 0;
    border-bottom: solid 2px #717171;
    border-right: solid 2px #717171;
    transform: rotate(-45deg);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.p-todbCard__name-wrap{
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 3px;
}

.p-todbCard__header {
    display: flex;
    align-items: center;
    gap:8px;
}

.post .p-todbCard .p-todbCard__name{
    font-size: 1.3rem;
    color: #333;
    font-weight: bold;
}


.c-dbCard__lbl-location{
    font-size: 0.9rem;
    color: #009944;
}


.p-todbCard__detail{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.c-dbCard__lbl-leading{
    display:flex;
    gap: 5px;
    align-items: center;
    font-size: 0.9rem;
    background: #f4f4ff;
    position: relative;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
}

.c-dbCard__lbl-leading.is-1{
    background: #fffcd9;
}

.c-dbCard__lbl-leading.is-2{
    background: #f2f8ff;
}

.c-dbCard__lbl-leading.is-3{
    background: #fff5ec;
}

.c-dbCard__lbl-leading .ico__lbl-leading{
    position: relative;
    width: 1.1em;
    height: auto;
    top: -0.1em;
}

.c-dbCard__lbl-leading .ico__lbl-leading img{
filter: brightness(0) saturate(100%) invert(36%) sepia(7%) saturate(5567%) hue-rotate(204deg) brightness(103%) contrast(66%);
}

.c-dbCard__lbl-leading.is-1 .ico__lbl-leading img{
filter: brightness(0) saturate(100%) invert(86%) sepia(37%) saturate(3965%) hue-rotate(351deg) brightness(101%) contrast(105%);
}

.c-dbCard__lbl-leading.is-2 .ico__lbl-leading img{
filter: brightness(0) saturate(100%) invert(85%) sepia(2%) saturate(1510%) hue-rotate(162deg) brightness(86%) contrast(91%);
}

.c-dbCard__lbl-leading.is-3 .ico__lbl-leading img{
filter: brightness(0) saturate(100%) invert(66%) sepia(98%) saturate(1401%) hue-rotate(335deg) brightness(84%) contrast(89%);
}

.p-todbCard__ph{
    width: 100%;
    aspect-ratio: 1 / 0.35;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
    border: 1px solid #e4e4e4;
    box-sizing: border-box;
    margin-top: 8px;
}

.p-todbCard__ph img{
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    object-fit: cover;
}


/* ==========================================================================
今週の注目レースパーツ
========================================================================== */
    .p-feat-race__container{
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .c-bdg--primary{
      background-color: var(--ftrace-color-race-primary);
    }

    .c-bdg-race{
        display: flex;
        flex-direction: column;
        gap: 5px;
        line-height: 1;
        align-items: center;
        justify-content: center;
        padding:6px 8px;
        font-weight: bold;
        border-radius: 5px;
        font-size: 1rem;
        color: #fff;
    }
    .p-todbCard .c-bdg-race{
      font-size: 1.2rem;
      padding: 8px;
    }

    .p-hdr-race{
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .p-todbCard .p-hdr-race{
      flex-direction:row;
      gap: 8px;
    }

    .p-hdr-race__name-wrap{
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .c-hdr-race_main{
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .c-hdr-race_name{
      color: var(--ftrace-color-link);
      font-weight: bold;
      font-size: 1.2rem;
      position: relative;
    }

    .p-todbCard .c-hdr-race_name{
      font-size: 1.3rem;
    }

    .p-todbCard__body .c-hdr-race_name{
      padding: 0;
      line-height: 1.2em;
    }

    .c-badge-grade{
      background: var(--ftrace-color-rank-other);
      color: #fff;
      font-weight: bold;
      font-size: 0.8rem;
      padding: 3px 8px;
      border-radius: 4px;
      position: relative;
      top: -0.2em;
    }
    a.c-hdr-race_name:hover{text-decoration: none;}

    .c-badge--g1{
      background: var(--ftrace-color-g1);
    }

    .c-badge--g2{
      background: var(--ftrace-color-g2);
    }

    .c-badge--g3{
      background: var(--ftrace-color-g3);
    }

    .p-hdr-race__info{
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
      font-size: 0.8rem;
      color: #7f7f7f;
    }
    .p-hdr-race__info p{font-size: 0.8rem; color: #7f7f7f;}

    .p-todbCard .p-hdr-race__info p{font-size: 0.9rem;}

    .p-hdr-race__info .start-time{
      font-weight: bold;
      color: #333;
    }

    .p-feat-race__ph{
      width: 100%;
      aspect-ratio: 1 / 0.35;
      overflow: hidden;
      position: relative;
      border-radius: 6px;
      border: 1px solid #e4e4e4;
      box-sizing: border-box;
    }

    .p-feat-race__ph img{
      width: 100%;
      height: auto;
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      margin: auto;
      object-fit: cover;
    }

    .p-pop-rank{
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .p-pop-rank h3.ttl{
      font-size: 0.9rem;
      font-weight: bold;
    }

    #leftsideWrap section .p-pop-rank h3.ttl, #rightsideWrap section .p-pop-rank h3.ttl{
       margin-bottom: 0;
    }

    .p-pop-rank-list{
      display: flex;
      flex-direction: column;
      gap:8px;
    }


    .p-pop-rank-list__item{
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .c-rank-icon{
      position: relative;
      width: 2.2rem;
      height: 2.2rem;
      font-weight: bold;
      line-height: 1;
      text-align: center;
      flex-shrink: 0;
    }
    .c-rank-icon img{
      position: absolute;
      width: 100%;
      height: auto;
      bottom: 0;
      left: 0;
    }

    .c-rank-icon--1 img{
      filter: brightness(0) saturate(100%) invert(82%) sepia(51%) saturate(2759%) hue-rotate(354deg) brightness(102%) contrast(101%);
    }

    .c-rank-icon--2 img{
      filter: brightness(0) saturate(100%) invert(77%) sepia(15%) saturate(162%) hue-rotate(172deg) brightness(94%) contrast(86%);
    }

    .c-rank-icon--3 img{
      filter: brightness(0) saturate(100%) invert(81%) sepia(46%) saturate(4706%) hue-rotate(337deg) brightness(85%) contrast(86%);
    }

    .c-rank-icon .num{
      position: relative;
      font-size: 0.7rem;
      line-height: 2.85rem;
      font-weight: bold;
      color: #fff;
    }

    .p-pop-rank__horse-name__wrap{
      display: flex;
      flex-direction: column;
    }
    .p-pop-rank__horse-name__wrap-row{
      display: flex;
      flex-grow: 1;
      justify-content:space-between;
    }

    .p-pop-rank__horse-name{
      font-weight: bold;
      color: var(--ftrace-color-link);
      font-size: 1.1rem;
    }

    .p-pop-rank__horse-name:hover{text-decoration: none;}

    .p-pop-rank__meta{
      display: flex;
      align-items: center;
      gap: 3px;
      font-size: 0.8rem;
    }

    .p-pop-rank__meta a.jky{color: #000;}
    .p-pop-rank__meta a.jky:hover{opacity: 0.7; text-decoration: none;}

.p-pop-rank-list__item--others .c-rank-icon{
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-pop-rank-list__item--others .c-rank-icon .num{
  background: #6666B3;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
}

.p-pop-rank-list__item--others .p-pop-rank__horse-name{
  font-size: 1rem;
}


/* ==========================================================================
オススメ掲示板パーツ
========================================================================== */
h3.bbs-feat-li_hdr{
    display: flex;
    gap: 3px;
    align-items: center;
    /* border-bottom: 1px solid #34b93f; */
}
#leftsideWrap section h3, #rightsideWrap section h3.bbs-feat-li_hdr{
    margin-bottom: 0;
}

.bbs-feat-li_hdr-ico{
    width: 1.5em;
    height: auto;
    display: flex;
    align-items: center;
}

.bbs-feat-li_hdr-ico img{
filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7486%) hue-rotate(23deg) brightness(99%) contrast(107%);
}

.bbs-feat-li_list-wrap{
    display: flex;
    flex-direction: column;
}

.bbs-feat-li_list-wrap li{
    border-bottom: 1px solid #34b93f;
    padding: 6px 0;
}

.bbs-feat-li_list-wrap li:last-child{
    border-bottom: none;
}

.bbs-feat-li_item{
    color: #333;
}

.bbs-feat-li_item:visited{
    color: #333;
}

.bbs-feat-li_item:hover{text-decoration: none;}

.bbs-feat-li_item__hdr{
    display: flex;
    align-items: center;
}
.bbs-feat-li_item__hdr__ttl{
    display: flex;
    align-items: center;
    gap: 8px;
}

.bbs-feat-li_item__ttl{
    font-size: 1rem;
    font-weight: bold;
}

.bbs-feat-li_cmt-num{
    display: flex;
    align-items: center;
    gap: 5px;
    color: #34b93f;
    font-weight: bold;
    font-size: 1.1rem;
    margin-left: auto;
}

.cmt-num_ico{
    width: 1em;
    height: auto;
    display: flex;
    align-items: center;
}

.cmt-num_ico img{
filter: brightness(0) saturate(100%) invert(55%) sepia(79%) saturate(444%) hue-rotate(74deg) brightness(91%) contrast(93%);
}

.bbs-feat-li_cmt-expt{
    /* display: flex;
    gap: 3px; */
    font-size: 0.8rem;
    line-height: 1.6;
    position: relative;
}

.bbs-feat-li_cmt-expt .c-badge{
    display: inline-block;
}

.bbs-feat-li_item .p-comment-item__date{
    position: absolute;
    right: 0;
    bottom: 0;
}


/* ==========================================================================
トップお知らせモーダルパーツ
========================================================================== */
.p-notice-list{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

a.p-notice-list_item{
        display: flex;
        gap: 8px;
      align-items: center;
      padding: 12px 26px 12px 8px;
      border: 1px solid #094;
      border-radius: 8px;
      background-color: #fff;
      text-decoration: none;
      color: #094;
      position: relative;
      font-size: 0.9rem;
      border-left: 6px solid #094;
}

a.p-notice-list_item::after{
    content: "";
      position: absolute;
      top: 50%;
      right: 12px;
      width: 8px;
      height: 8px;
      border-top: 2px solid #094;
      border-right: 2px solid #094;
      transform: translateY(-50%) rotate(45deg);
}

.p-notice-list_item__ico{
    width: 1.3em;
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.p-notice-list_item__ico img{
    filter: brightness(0) saturate(100%) invert(33%) sepia(92%) saturate(953%) hue-rotate(115deg) brightness(99%) contrast(102%);
}

.p-notice-article{
    font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック",Osaka,sans-serif;
}


/* ==========================================================================
お気に入り出走通知パーツ
========================================================================== */
.p-favo-races ul {
  list-style: none;
}

.p-favo-races a {
  text-decoration: none;
  color: inherit;
}

.p-favo-races button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
        
.p-favo-races {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

/* --- Header  --- */
.p-favo-races__header {
  display:flex;
  flex-flow: column;
  gap: var(--fave-space-s);
  background-color: var(--fave-clr-bg-base);
  padding: var(--fave-space-s);
  border-radius: 3px;
}

.p-favo-races__title{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--fave-space-xs);
  font-size: var(--fave-fz-m);
  font-weight: bold;
  color: var(--fave-clr-text-dark);
}

/* ハートアイコンの色 filterで#E33535を生成 */
.p-favo-races__icon {
  width: 12px;
  height: 12px;
  filter: invert(33%) sepia(58%) saturate(4643%) hue-rotate(341deg) brightness(88%) contrast(106%);
}

/* --- Tab Navigation (Accordion Triggers) --- */
.p-favo-races__tabs {
  display: flex;
  gap: var(--fave-space-s);
}

.p-favo-races__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--fave-clr-text-wht);
  border-radius: 4px;
  padding: var(--fave-space-s) var(--fave-space-m);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
  transition: background-color 0.3s, color 0.3s;
  gap: 1px;
}

/* 曜日バッジ */
.p-favo-races__date-row {
  display: flex;
  align-items: center;
  gap: var(--fave-space-xs);
  margin-bottom: var(--fave-space-xs);
}

.p-favo-races__date {
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  font-size: var(--fave-fz-m);
  color: var(--fave-clr-text-date);
  letter-spacing: 0.02em;
}

.p-favo-races__day-badge {
  font-size: var(--fave-fz-xs);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  line-height: 1;
}

/* 曜日別カラー */
.p-favo-races__day-badge.is-sat {
  background-color: var(--fave-clr-bg-sat);
  color: var(--fave-clr-accent-b);
}
.p-favo-races__day-badge.is-sun {
  background-color: var(--fave-clr-bg-sun);
  color: var(--fave-clr-accent-r);
}
/* 平日用 */
.p-favo-races__day-badge.is-wkday {
  background-color: var(--fave-clr-bg-wkday);
  color: var(--fave-clr-text-date);
}

/* 頭数・矢印エリア */
.p-favo-races__info-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: var(--fave-space-s);
  font-size: var(--fave-fz-s);
  font-weight: bold;
  letter-spacing: 0.08em;
  color: var(--fave-clr-text-dark);
  background-color: var(--fave-clr-bg-base);
  border-radius: 999px;
  padding: var(--fave-space-xs) 0;
}

.p-favo-races__arrow {
  display: block;
  width: 4px;
  height: 4px;
  border-bottom: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s;
  margin-top: -1.5px;
}

/* --- State: Active (Tab) --- */
/* 緑色の背景、白文字 */
.p-favo-races__tab.is-active {
  background-color: var(--fave-clr-accent-g);
}

.p-favo-races__tab.is-active .p-favo-races__date {
  color: var(--fave-clr-text-wht); 
}

/* アクティブ時は矢印が上向き */
.p-favo-races__tab.is-active .p-favo-races__arrow {
  transform: rotate(225deg);
  margin-top: 3px;
}

/* --- State: off / 出走馬が0頭の場合 --- */
.p-favo-races__tab.is-off {
  background-color: var(--fave-clr-bg-disabled);
  box-shadow: none;
  cursor: default;
}

/* 0頭の場合は矢印なし */
.p-favo-races__tab.is-off .p-favo-races__arrow {
  display: none;
}

/* --- Body (Accordion Area) --- */
.p-favo-races__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease-out;
  background-color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  position: absolute;
  width: 100%;
  margin-top: var(--fave-space-s);
}

/* 隙間（margin-top）をマウスが離れたと判定されないようにする */
.p-favo-races__body::before {
  content: "";
  display: block;
  position: absolute;
  top: calc(var(--fave-space-s) * -1); 
  left: 0;
  width: 100%;
  height: var(--fave-space-s); 
  background: transparent;
  z-index: 1;
}

.p-favo-races__body.is-open {
  grid-template-rows: 1fr;
}

.p-favo-races__inner {
  overflow: hidden;
}

/* --- Race List --- */
.p-favo-races__race-row {
  display: flex;
  align-items: flex-start;
  padding: var(--fave-space-m) var(--fave-space-xl);
  border-bottom: 1px solid var(--fave-clr-border);
}

/* 開催場所バッジ */
.p-favo-races__place {
  background-color: var(--fave-clr-accent-g);
  color: var(--fave-clr-text-wht);
  font-size: var(--fave-fz-s);
  font-weight: bold;
  letter-spacing: 0.06em;
  padding: var(--fave-space-s) var(--fave-space-l);
  border-radius: 999px;
  text-align: center;
  margin-right: var(--fave-space-xl);
  white-space: nowrap;
  flex-shrink: 0;
}

/* レース番号リスト */
.p-favo-races__race-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fave-space-s) var(--fave-space-l);
  align-items: center;
}

.p-favo-races__race-link {
  min-width: 35px;
  padding: var(--fave-space-xs) 0;
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  font-size: var(--fave-fz-l);
  color: var(--fave-clr-link);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-favo-races__race-link__no {
  flex-grow: 1;
  text-align: center;
}

.p-favo-races__race-link:visited {
  color: var(--fave-clr-link);
}

.p-favo-races__race-link::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-top: 2px solid var(--fave-clr-link);
  border-right: 2px solid var(--fave-clr-link);
  transform: rotate(45deg);
}

/* リンク無効状態 */
.p-favo-races__race-link.is-disabled {
  color: var(--fave-clr-text-light);
}

.p-favo-races__race-link.is-disabled::after {
  border-top: 2px solid var(--fave-clr-text-light);
  border-right: 2px solid var(--fave-clr-text-light);
}

/* --- Footer --- */
.p-favo-races__ft {
  text-align: right;
  padding: var(--fave-space-s) var(--fave-space-xl) var(--fave-space-l);
}

.p-favo-races__ft-link {
  color: var(--fave-clr-link);
  font-size: var(--fave-fz-s);
  font-weight: bold;
  display: inline-flex;
  position: relative;
  align-items: center;
  border-bottom: 1px solid var(--fave-clr-link);
}

.p-favo-races__ft-link::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}

.p-favo-races__ft-link:hover {
  text-decoration: none;
}

.p-favo-races__ft-link:visited {
  color: var(--fave-clr-link);
}


/* ==========================================================================
トップリーディングランキングパーツ
========================================================================== */
.p-rank-ldg-list__container{
    background-color: #f3f9f4;
    padding: 15px 5px;
}

.p-rank-ldg__tab{
    display: flex;
    justify-content: center;
    margin: 0 auto;
    gap: 0 5px;
}

.p-rank-ldg__tab label{
    padding: 8px 0;
    font-size: 1rem;
    border: 1px solid var(--ftrace-color-race-primary);
    border-bottom: none;
    cursor: pointer;
    text-align: center;
    line-height: 1;
    font-size: 0.9rem;
    color: var(--ftrace-color-race-primary);
    width: 49px;
}

.p-rank-ldg__tab label:has(:checked){
    background: var(--ftrace-color-race-primary);
    color: #fff;
}

.p-rank-ldg__tab input{display: none;}

.p-rank-ldg__ctr{
    background: #fff;
    border: 1px solid var(--ftrace-color-race-primary);
    padding: 10px;
}

.p-rank-ldg__ctr.is-active{
    display: block;
}

.p-rank-ldg__ctr.is-disabled{
    display: none;
}

.p-pop-rank__meta .wins{
    min-width: 3em;
    text-align: right;
    color: #E33535;
}

.p-pop-rank__meta .reg{
    color: #959595;
}

.p-rank-ldg__btn-more{
    display: block;
    text-align: center;
    color: #959595;
    font-size: 0.9rem;
    line-height: 1;
    padding: 10px 15px;
    border: 1px solid #bababa;
    margin-top: 15px;
}


.p-rank-ldg__btn-more:link{
    color: #959595;
}

.p-rank-ldg__btn-more:visited{
    color: #959595;
}

.p-rank-ldg__btn-more:hover{
  text-decoration: none;
}