

/* 基本のフォントサイズ */
html {
    font-size: 1.1rem; /* 基本のフォントサイズ */
    -webkit-touch-callout: none;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-x: clip;
    overscroll-behavior-x: none;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-x: clip;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
    -ms-touch-action: pan-y pinch-zoom;
}

/* 小さい画面（モバイルデバイス）用のスタイル */
@media (max-width: 767.98px) {
    html {
        font-size: 0.9rem; /* モバイルデバイス用にフォントサイズを小さく設定 */
    }
    .navbar .dropdown-menu {
        position: absolute;
        width: 100%; /* メニューの幅を親要素の幅に合わせる */
        left: 0;
        white-space: normal; /* テキストが折り返されるように設定 */
    }
    .container {
        width: 100%; /* コンテナを全幅にする */
        max-width: 100%; 
        margin: 0; /* マージンをリセット */
        box-sizing: border-box;
    }
    .custom-nav-tabs .nav-link {
        font-size: 0.775rem; /* フォントサイズを小さくする */
    }
    .no-text-center-on-mobile {
        text-align: left !important;
    }
    .full-width-on-mobile {
        width: 100%;
        display: block;
        padding: 10px;
    }
}

/* 中間サイズの画面（タブレットデバイス）用のスタイル */
@media (min-width: 768px) and (max-width: 991.98px) {
    html {
        font-size: 1.0rem; /* タブレットデバイス用にフォントサイズをやや大きく設定 */
    }
    .navbar .dropdown-menu {
        position: absolute;
        width: 100%; /* メニューの幅を親要素の幅に合わせる */
        left: 0;
        white-space: normal; /* テキストが折り返されるように設定 */
    }
    .container {
        padding: 15px; /* タブレットサイズではパディングを適度に設定 */
        max-width: 900px; /* タブレット用の最大幅 */
    }
}

/* 大きい画面（デスクトップデバイス）用のスタイル */
@media (min-width: 992px) {
    .container {
        padding: 20px; /* デフォルトのパディング */
        max-width: 1200px; /* デスクトップ用の最大幅 */
        margin: 0 auto; /* 中央揃え */
    }
}

.auto-fit-text {
    font-size: clamp(12px, 3vw, 18px); /* 最小12px、最大18px、間はビューポートに応じて調整 */
    white-space: nowrap;
    text-align: center;
    margin: 0 auto;
}

#address_search {
    white-space: nowrap;
}

#loadingMessage {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4); 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#loadingMessage p {
    color: white;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

#loadingMessage .loading-title {
    display: block;
    text-align: center;
    font-weight: 600;
}

#loadingMessage .loading-subtitle {
    display: inline-block;
    max-width: min(680px, calc(100vw - 40px));
    margin-top: 0.75rem;
    text-align: left;
    font-size: 0.95em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

.loader {
    /* ローディング画像のスタイル */
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    margin-bottom: 30px;

    /* ローディング画像の配置・位置のスタイル */
    display: flex;
    justify-content: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader img {
    margin-bottom: 10px;
}

.note {
    display: flex; /* フレックスボックスに設定 */
    align-items: flex-start; /* 上端揃え */
    gap: 10px; /* 子要素間のギャップ */
    border: 1px solid #ff0000; 
    padding: 10px; 
    margin: 10px 0; 
    background-color: #ffe6e6;
  }
  
  .note h6 {
    color: #ff0000; 
    font-weight: bold; 
    flex-shrink: 0; /* 「注」が縮まないようにする */
  }
  
  .small-text {
    font-size: 0.8em; /* フォントサイズを80%に */
  }

.help-block {
    color: red; /* エラーメッセージの色を赤に設定 */
    font-size: small; /* フォントサイズを小さくする */
}

.nft-display {
    display: flex;
    justify-content: center; /* 中央揃え */
    align-items: center;
    background: linear-gradient(160deg, #007bff, #0056b3);
    padding: 20px 30px;
    border-radius: 8px;
    color: white;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    flex-wrap: nowrap; /* 一行に強制 */
    white-space: nowrap; /* テキストの折り返しを防ぐ */
}

.nft-title {
    font-size: clamp(15px, 2vw + 10px, 30px); /* フォントサイズを最小15px、最大30pxに制限 */
    white-space: nowrap; /* テキストが折り返されないようにする */
}

.custom-nav-tabs .nav-link {
    border: 1px solid #e0e0e0;
    border-radius: 5px 5px 0 0;
    margin-right: 2px;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-nav-tabs .nav-link:hover {
    background-color: #e9ecef;
    color: #000000;
}

.custom-nav-tabs .nav-link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    border-bottom: none;
}

.custom-nav-tabs .owner-console-tab {
    gap: 0.55rem;
    overflow: visible;
}

.custom-nav-tabs .owner-console-tab__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
    height: 1.8rem;
    padding: 0 0.48rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b7f 0%, #e11d48 58%, #be123c 100%);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    border: 1px solid rgba(190, 18, 60, 0.18);
    margin-left: 0.12rem;
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .custom-nav-tabs .owner-console-tab {
        gap: 0.42rem;
    }

    .custom-nav-tabs .owner-console-tab__badge {
        min-width: 1.62rem;
        height: 1.62rem;
        font-size: 0.7rem;
        padding: 0 0.4rem;
    }
}

.sns-links {
    display: flex;
    gap: 25px;
}

.facebook-color {
    color: #3b5998;
}

.x-color { /* Xの黒色 */
    color: #000000;
}

.instagram-color {
    color: #C13584;
}

.linkedin-color {
    color: #0077B5;
}

.youtube-color {
    color: #FF0000;
}

.discord-color {
    color: #7289DA;
}

.line-color {
    color: #00B900;
}

.generic-color {
    color: #808080; /* 地球アイコンのグレー色 */
}

.globe-icon {
    font-size: 30px; /* 地球アイコンだけ少し大きめ */
}

/* ホバースタイル */
.sns-links a {
    position: relative;
}

.sns-links a:hover .sns-icon {
    opacity: 0.7; /* ホバー時に少し薄く */
}

/* ホバー時にURLを表示 */
.sns-links a:hover::after {
    content: attr(data-url);
    position: absolute;
    top: 35px; /* アイコンの下に表示 */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
