/* style.CSS */

:root {
    --bg-color: #1a1a2e;
    --text-color: #ffffff;
    --border-color: #2a2a3e;
    --shadow-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    /* font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; */
}

/* トップセクション */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 55px;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.8) 0%, rgba(26, 26, 46, 0) 100%);
    padding: 0 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-color);
    transition: color 0.3s;
}

.social-links a:hover {
    color: #007bff;
}

/* プロフィールセクション */
.banner {
    width: 100%;
    height: 300px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.user-icon {
    width: 100px;
    height: 100px;
    background: var(--border-color);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-text {
    text-align: center;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* タグリストセクション */
.tag-list-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 10px;
    background-color: #0d0d22;
}

.tag-list-wrapper {
    /* Firefox用 */
    scrollbar-width: thin; /* スクロールバーの幅 (auto, thin, none) */
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent; /* 親指(thumb)の色 トラック(track)の色 */
    /* --- 既存のスタイル --- */
    width: 100%;
    overflow-x: auto;
    padding: 10px;
    background-color: #0d0d22;
}

.tag-list-wrapper::-webkit-scrollbar {
    height: 4px;
    background: transparent;
}

.tag-list-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.tag-list-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

/* Firefox用スクロールバースタイル */
body {
    /* Firefox用 */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    /* --- 既存のスタイル --- */
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

body::-webkit-scrollbar {
    width: 4px;
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}



.tag-list {
    display: flex;
    gap: 10px;
    padding: 0 10px;
    width: max-content;
}

.tag-btn {
    width: 200px;
    height: 100px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tag-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.tag-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}

.tag-btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 0 10px;
}

/* ホバー時のスタイル */
.tag-btn:hover .tag-image {
    transform: scale(1.1);
  }

.tag-btn.active {
    border: 1px solid #5a5a5a;
}

/* アクティブ時のスタイル - カラー表示に変更 */
.tag-btn.active .tag-image {
    filter: grayscale(0%); /* グレースケールを解除 */
    transform: scale(1.05);
  }
  
  .tag-btn.active::after {
    background: rgba(0, 0, 0, 0.2); /* 暗さを軽減 */
  }

/* ギャラリーセクション */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    padding: 20px;
}

.square-img-container {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.square-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.square-img-container:hover img {
    transform: scale(1.1);
}