/* Path:/css/top/style.css */

@charset "UTF-8";


.icon{
  width: 50px;
  height: 50px;
}

.hide {
	bottom: -70px;
}

.hide_top {
	top: -70px;
}

.hide_top_2 {
	top: -140px;
}

.top_margin{
  margin-top: 90px;
}

.marginright5{
	margin-right: 10px;
}

.under {
  border-bottom: solid 3px #87CEFA;
}

.right {
    text-align: right;
}

.comm_top {
	width: 100%;
	display: grid;
  grid-template-columns: 1fr 1fr;
}

.comm_main {
	width: 100%;
	min-height: 35px;
}

a.inherit,a.inherit:hover,a.inherit:visited{
    color: inherit;
		text-decoration: none;
		width: 100%;
}


.thumb {

 }
 .thumb__items {
	 display: flex;
	 flex-flow: wrap;
	 position: relative;
	 z-index: 10;
 }
 .thumb__items > li {
	 flex: 0 1 25%;
	 list-style: none;
	 cursor: pointer;
	 position: relative;
 }
 .thumb__items > li img {
	 max-width: 100%;
	 position: relative;
	 vertical-align: bottom;
 }
 .thumb__items > li:before {
	 content: "";
	 display: block;
	 opacity: 0;
	 background: rgba(0, 0, 0, 0.6);
	 width: 100%;
	 height: 100%;
	 position: absolute;
	 left: 0;
	 top: 0;
	 z-index: 10;
	 transition: all 0.5s 0.3s ease;
 }
 .thumb__items > li:hover::before {
	 opacity: 1;
 }

 .modal {
     display: none;
     position: fixed !important;
     top: 0 !important;
     left: 0 !important;
     width: 100vw !important;
     height: 100vh !important;
     height: 100dvh !important; /* スマホのアドレスバー対応 */
     background-color: rgba(0,0,0,0.95) !important; /* 真っ黒に近い半透明 */
     z-index: 2147483647 !important; /* ブラウザの限界値 */
     margin: 0 !important;
     padding: 0 !important;
 }

 .modal-overlay {
    display: none !important; /* 古い黒幕はもう不要 */
}



 .modal.visible {
	display: block;
 }

 .modal__close {
 	position: fixed;
 	top: 10px;
 	right: 10px;
 	z-index: 9999;
 }

 .fas {
	height: 40px;
 	cursor: pointer;
 }

 .fadein {
 animation: fadein .3s;
 }

 .fadeout {
 	animation: fadeout .3s;
 	animation-fill-mode: forwards;
 }
 @keyframes fadein {
 	0% {
 			opacity: 0;
 	}
 	100% {
 			opacity: 1;
 	}
 }
 @keyframes fadeout {
 	0% {
 			opacity: 1;
 	}
 	100% {
 			opacity: 0;
 			display: none;
 	}
 }

 .share_messeage{
    padding: 0.5em 1em;
    margin: 2em 0;
    background: #FFF;
    border: solid 1px;/*線*/
    border-radius: 10px;/*角の丸み*/
}

/* ▼▼▼ トップページ用：サブタブ（レイアウトのみ・色は common.css） ▼▼▼ */
.top_sub_tab {
    position: fixed;
    top: 44px;
    left: 0;
    width: 100%;
    z-index: 95;
    transition: .6s;
}

.top_sub_tab.hide_top_2 {
    top: -100px;
}

.sub_tab_box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    position: relative;
}
/* ▲▲▲ ここまで ▲▲▲ */

/* ▼▼▼ トップページ用：コンテンツスライダー ▼▼▼ */
.content_slider_window {
    width: 100%;
    max-width: 100%;
    overflow: hidden !important; /* はみ出したスライドを隠す */
    background-color: #f5f7fa;
}

.content_slider {
  display: flex;
  width: 200%; /* ★修正：デフォルトは未ログインの2画面（200%）に */
  transition: transform 0.3s ease, height 0.3s ease;
  align-items: flex-start;
  overflow: hidden;
}

.content_slide {
    width: 50%; /* ★修正：200%のうちの半分＝画面ぴったり100%に */
    max-width: 50%;
    box-sizing: border-box !important;
    padding: 0 15px;
    /* カードが少なくても画面下までタッチ領域を確保（横スワイプでタブ移動） */
    min-height: calc(100vh - 160px);
    min-height: calc(100dvh - 160px);
}
/* ▲▲▲ ここまで ▲▲▲ */

.top_active_bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    transition: transform 0.3s ease;
}

/* ▼▼▼ ログイン時の3〜4分割タブ・スライダー用設定 ▼▼▼ */
.tab_3_cols {
    grid-template-columns: 1fr 1fr 1fr !important;
}
.tab_4_cols {
    grid-template-columns: 1fr 1fr 1fr 1fr !important;
}
.top_active_bar_3 {
    width: 33.333% !important;
}
.top_active_bar_4 {
    width: 25% !important;
}
.slider_3_panes {
    width: 300% !important;
}
.slider_4_panes {
    width: 400% !important;
}
.slide_3_panes {
    width: 33.333% !important;
    max-width: 33.333% !important;
}
.slide_4_panes {
    width: 25% !important;
    max-width: 25% !important;
}

.feed_nft_card {
    position: relative;
    padding-top: 18px;
}
.top_nft_see_all {
    padding: 10px 15px 6px;
    text-align: right;
}
.top_nft_see_all_link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1E90FF;
    text-decoration: none;
}
.top_nft_see_all_link:hover {
    text-decoration: underline;
}
.feed_nft_card_badge {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #5b21b6;
    background: #ede9fe;
    padding: 2px 8px;
    border-radius: 999px;
}
.feed_nft_card_title {
    margin: 8px 0 4px;
    font-size: 1.05rem;
}
.feed_nft_card_meta,
.feed_nft_card_seller,
.feed_nft_card_date {
    margin: 0 0 4px;
    font-size: 0.88rem;
    color: #64748b;
}
.feed_nft_card_thumb {
    margin: 8px 0 0;
}
.feed_nft_card_thumb img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
}
.feed_nft_card_clickable {
    cursor: pointer;
}
/* ▲▲▲ ここまで ▲▲▲ */

/* ドラッグ＆ドロップ中のアイテムのスタイル */
.sortable-ghost {
    opacity: 0.4;
    background-color: #e0f0ff !important;
}
.sortable-fallback {
    opacity: 1 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* 掴んでいるアイテムに影をつける */
}
.drag_handle:active {
    cursor: grabbing !important; /* 掴んでいる時のカーソル */
}

#comment_pict_opentop {
    margin-top: 0;
    flex-grow: 1;
    margin-right: 15px;
    background-color: #f0f4f8;
    color: #444;
    border: 1px solid #e8ecf0;
}

#comment_pict_opentop:hover {
    background-color: #e8eef3;
}

/* タイムライン上の画像サムネイル */
.post_delete_btn {
    background-color: #FFA500; /* オレンジ */
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85em;
    transition: 0.2s;
    margin-left: auto; /* 右端に配置 */
}

.post_delete_btn:hover {
    background-color: #FF8C00; /* ホバー時に少し濃いオレンジ */
    opacity: 0.9;
}

.post_delete_btn:active {
    transform: translateY(1px); /* 押した時に少し沈む */
}

/* カメラボタンのデザイン（投稿ボタンと統一） */
.post_camera_btn {
    background-color: #1E90FF; /* 投稿ボタンと同じ青 */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%; /* 正円にする */
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.post_camera_btn img {
    height: 25px;
    width: 25px;
    filter: brightness(0) invert(1); /* アイコンを白くする */
}

.post_camera_btn:active {
    background-color: #1674cc;
    transform: scale(0.95);
}

/* タイムライン上の画像サムネイル */
.timeline_thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-top: 10px;
}

/* モーダル全体のコンテナ */
.modal_slider_container {
    width: 100%;
    height: 100%;
}

/* スライドを横に並べるトラック */
.modal_track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 100%;
}

/* スクロールバーを隠す（iOS/Chrome/Safari） */
.modal_track::-webkit-scrollbar {
    display: none;
}

/* 各スライド（画像1枚の枠）：ここが上書きのポイントです */
.modal_slide {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100%;
    scroll-snap-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* スライド内の画像本体 */
.modal_slide img {
    max-width: 100vw;
    max-height: 100%;
    object-fit: contain;
    pointer-events: auto;
}

/* 閉じるボタン（×）を右上に固定 */
.modal__close {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 2147483647 !important;
}

.modal__close img {
    height: 35px;
}

.nice_btn {
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
}
