@charset "UTF-8";

/* ---------------------------------------------
 layout調整
 --------------------------------------------- */
#wrapper {
    background-color: var(--bg-sub1-color);
    margin-top: 120px;
}

header{
    padding-left: 0px;
    padding-right: 0px;
    height: 120px;
}

.header-inner {
    height:auto;
    max-width: 1140px;
    margin-left:auto;
    margin-right:auto;
    padding-right: var(--bs-gutter-x, 1.5rem);
    padding-left: var(--bs-gutter-x, 1.5rem);        
}

.logo .menu-btn{
    display:none;
}

.category-contents{
    display:none;
}

.item-list-content .item-contents {
  width: 100%;
}

@media (min-width: 1400px) {
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 1140px;
    }
}

@media only screen and (max-width: 992px) {
    #wrapper {
        margin-top: 130px;
    }
    header {
        height: 130px;
    }
}

/* ---------------------------------------------
 component
 --------------------------------------------- */
/* 親要素：ゲージの土台 */
.gauge-wrapper {
    position: relative;
    width: 100%;
    height: 15px;
    background-color: #eee;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);

    /* --- 設定エリア --- */
    --percent: 88.4%;
    /* JSやサーバーサイドでここを計算して出力 */
}

/* 動くゲージ部分 */
.gauge-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--percent);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.5s;

    /* 色の条件分岐ロジック (CSSのみで判定) */
    /* 緑: > 50%, 黄: 21-50%, 赤: <= 20% */
    background-color: #4caf50;
    /* デフォルトは緑 */
}

/* 割合に応じて色を上書きする例（手動またはJSでクラス付与） */
/* ※より高度なCSS関数(color-mix等)を使わない場合、以下のクラスで制御するのが確実です */
.gauge-wrapper.warning .gauge-bar {
    background-color: #ffc107;
}

/* 黄 */
.gauge-wrapper.danger .gauge-bar {
    background-color: #f44336;
}

/* 赤 */

/* テキスト部分 */
.gauge-text {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    color: #333;
    font-weight: bold;
    /* ゲージが重なっても見やすくする処理 */
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

#current-val {
    font-size: 1.1rem;
}

/* 抽選一覧スタイル
------------------------------------------*/
.item-card {
    background-color: var(--bg-color);
    border-radius: var(--radius);
}

.item-card:not(.collection) {
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
}

.card-footer .oripa-card-stock,
.card-footer .oripa-card-price {
    display: inline-block;
    font-weight: bold;
    width: 50%;
}

.card-footer .price-value {
    font-size: var(--fs-md);
}

.card-footer .price-value i {
    color: rgb(211, 172, 0);
}

/* 抽選一覧スタイル(oripa_c)
------------------------------------------*/
.oripa-c.item-card{
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.oripa-c .card-header{
    padding:var(--sm);
}    
.oripa-c .card-footer {
    position: relative;
    max-width:400px;
    margin: 0 auto;
    display: block;
    text-align: center;
    z-index: 1;
}
.oripa-c .gauge-wrap {
    position: relative;
    height: 50px;
}

.oripa-c .gauge-wrapper {
    position: absolute;
    top:15px;
    left:0;
    height: 25px;
    border:1px solid #ccc;
    background-color: #ccc;
    border-radius: 0px;
}

.oripa-c .oripa-card-price{
    position: absolute;
    top:0;
    left:50%;
    border:1px solid #ccc;
    background: var(--bg-color);
    width: 120px;
    z-index: 1;
    margin-left: -60px;
}
.oripa-c i{
    color: rgb(211, 172, 0);
}

/* 抽選詳細スタイル
------------------------------------------*/
.item-detail-wrap {
    background: white;
    padding: var(--md);
}

@media (max-width: 568px) {
    .item-detail-wrap {
        padding: var(--sm);
    }

    .collection .item-card-img,
    .nft-card-front .item-card-img {
        padding-bottom: 100%;
    }

    .item-card .item-main {
        padding: var(--sm) var(--xs);
    }

    .item-card.collection .item-main {
        padding: var(--sm) 0;
    }

    .item-card .item-title {
        font-size: var(--sm);
    }

}

/* タクソノミーナビ
---------------------------------------*/
.taxonomy-nav {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE, Edge */
  list-style: none;
  padding: 0;
  scroll-behavior: smooth;
}

.taxonomy-nav::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.taxonomy-nav li {
  flex: 0 0 auto;
}

.taxonomy-nav li a {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  background: #fff;
  font-weight: 500;
  font-size: var(--fs-normal);
  font-weight: bold;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease-in-out;
}

.taxonomy-nav li a:hover,
.taxonomy-nav li.active a,
.taxonomy-nav li a.active {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

.taxonomy-nav li a:hover,
.taxonomy-nav li.active a,
.taxonomy-nav li a.active {
  color: var(--main-color);
}

.sticky-top {
  position: -webkit-sticky;
  position: sticky;
  z-index: 100;
}