/*
Theme Name: s-one Design
Author: OMASA
Description: 2026 Immersive & Bento Grid Theme (Full Content Version)
Version: 1.4.0
*/

/* -----------------------------------------------------------------------------
 * 1. Reset & Base (基盤設定)
 * ---------------------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #ffffff;
    font-family: 'Inter', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

/* -----------------------------------------------------------------------------
 * 2. Floating Header (カプセル型ナビゲーション)
 * ---------------------------------------------------------------------------*/
.site-header {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 14px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.5;
}

.nav-menu a:hover {
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 15px rgba(255,255,255,0.6);
}

/* -----------------------------------------------------------------------------
 * 3. Immersive Hero Section (没入型動画背景)
 * ---------------------------------------------------------------------------*/
/* --- 3. Hero Section 修正 --- */
.hero-sticky-wrapper {
    height: 150vh;
    position: relative;
    background: #000;
    /* 修正ポイント：この枠自体はクリックに反応させない（＝すり抜けさせる） */
    pointer-events: none; 
}

/* 明るさ調整用のオーバーレイを新設（filterより圧倒的に軽い） */
.hero-video-wrapper::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    opacity: 0; /* JSでここを動かす */
    z-index: 5;
    pointer-events: none;
}

/* --- 下のコンテンツをHeroより「上」に持ってくる --- */
.philosophy-section,
.bento-container,
.tech-stack-section,
.process-section,
.faq-section,
.contact-section {
    position: relative; /* z-indexを有効にするために必要 */
    z-index: 10;        /* Hero(z-index:1)より上に配置してクリックを通す */
    background-color: inherit; /* 背景色が透けないように念のため */
}

.hero-vibe {
    /* 中身の動画やボタンなどはクリックできるように戻す */
    pointer-events: auto;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 10;
    transform: scale(1);
    border-radius: 0px;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) contrast(1.1);
}

.hero-background-text {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    letter-spacing: 0.12em;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 20;
    pointer-events: none;
}

.hero-title {
    color: #fff;
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #ffffff 30%, #777777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    margin-top: 40px;
    opacity: 0;
    animation: fadeInUp 1.8s forwards 0.8s;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%; /* 左から50%の位置へ */
    transform: translateX(-50%); /* 自身の幅の半分だけ左に戻して完全中央へ */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 30;
    pointer-events: none; /* クリックを邪魔しないように設定 */
}

.mouse {
    width: 26px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

.scroll-text {
    font-size: 10px;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 700;
}

/* -----------------------------------------------------------------------------
 * 4. Philosophy Section (Mesh Gradient Background)
 * ---------------------------------------------------------------------------*/
.philosophy-section {
    padding: 200px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.philosophy-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    animation: rotateMesh 30s linear infinite;
    z-index: 1;
}

.philosophy-content {
    position: relative;
    z-index: 5;
    max-width: 1100px;
    margin: 0 auto;
}

.sub-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-bottom: 30px;
    font-weight: 700;
}

.philosophy-text {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1.4;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
}

.philosophy-text span {
    display: block;
    margin-top: 20px;
    color: #666;
    font-weight: 500;
}

/* -----------------------------------------------------------------------------
 * 5. Bento Grid (実績タイル)
 * ---------------------------------------------------------------------------*/
.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 25px;
    padding: 120px 4%;
    max-width: 1500px;
    margin: 0 auto;
    background-color: #000;
    --bento-bg: #080808;
}

.bento-item {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 35px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.bento-item:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 40px 80px rgba(0,0,0,0.7);
}

.bento-item span {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: 0.4s;
}

.bento-item:hover span {
    background: #fff;
    color: #000;
}

.bento-item.tall { grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }

/* Profile Bento Special */
.profile-link {
    background: #111 !important;
    border-color: #222 !important;
    text-decoration: none;
}
.profile-inner {
    z-index: 2;
    width: 100%;
}
.profile-inner p {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 5px;
}
.profile-inner small {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 0.1em;
}

/* -----------------------------------------------------------------------------
 * 6. Tech Stack Section (Wavy Background Modified)
 * ---------------------------------------------------------------------------*/
.tech-stack-section {
    padding: 150px 0;
    position: relative;
    background-color: #1C1C1C;
    /* 背景スタック: 動く波線、スポットライト、グリッド縦、グリッド横 */
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='400' viewBox='0 0 1000 400'%3E%3Cpath d='M0 200 Q 250 100 500 200 T 1000 200' fill='none' stroke='white' stroke-opacity='0.08' stroke-width='1'/%3E%3Cpath d='M0 220 Q 250 120 500 220 T 1000 220' fill='none' stroke='white' stroke-opacity='0.04' stroke-width='1'/%3E%3Cpath d='M0 180 Q 250 80 500 180 T 1000 180' fill='none' stroke='white' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E"),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1.5px, transparent 1.5px);
    background-size: 1000px 400px, 100% 100%, 70px 70px, 70px 70px;
    background-repeat: repeat, no-repeat, repeat, repeat;
    /* 波線レイヤーのみを動かすアニメーション */
    animation: techWaveFlow 30s linear infinite;
}

.tech-stack-section::before,
.tech-stack-section::after {
    content: "";
    position: absolute;
    left: 0; width: 100%; height: 150px; z-index: 1;
}
.tech-stack-section::before { top: 0; background: linear-gradient(to bottom, #000, transparent); }
.tech-stack-section::after { bottom: 0; background: linear-gradient(to top, #000, transparent); }

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 5;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    transition: all 0.4s;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* -----------------------------------------------------------------------------
 * 7. Process Section (枠内収容・レイアウト調整)
 * ---------------------------------------------------------------------------*/
/* --- 7. Process (グラデーションで繋ぐ) --- */
.process-section {
    padding: 150px 0;
    background: linear-gradient(to bottom, #000 0%, #080808 100%);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; /* 間隔を少し詰め、まとまり感を出しつつ枠を確保 */
    margin-top: 80px;
}

.process-card {
    position: relative;
    padding: 80px 40px 50px;
    background: rgba(255,255,255,0.02);
    border-radius: 32px; /* Bentoと同じ32pxへ */
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-card:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
}

.process-card .step {
    font-size: 7rem;
    font-weight: 900;
    color: #fff;
    opacity: 0.05; /* さりげない存在感に */
    position: absolute;
    top: -5px;      /* 枠の頂点に合わせる */
    left: 15px;     /* 左に少し余白を持たせて落ち着かせる */
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    font-style: normal; /* 斜めを解除して「垂直」に！ */
    letter-spacing: -0.05em; /* 数字を少し詰めると、よりロゴっぽく見えます */
}

.process-card h4 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 2; /* 文字を数字の前面に */
}

.process-card p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* -----------------------------------------------------------------------------
 * 8. FAQ Section (Accordion)
 * ---------------------------------------------------------------------------*/
/* --- 8. FAQ (背景を少し浮かせてセパレート) --- */
.faq-section {
    padding: 150px 0;
    background-color: #0c0c0c;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    
    /* 修正ポイント：Hero（z-index: 10など）よりも確実に上に配置 */
    position: relative;
    z-index: 100; 
    pointer-events: auto; /* 念のためクリックを許可 */
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 24px;
    margin-bottom: 20px;
    padding: 30px;
    cursor: pointer;
    transition: 0.4s;
}

.faq-item[open] {
    border-color: rgba(255,255,255,0.2);
    background: #111;
}

.faq-item summary {
    font-weight: 700;
    font-size: 1.2rem;
    list-style: none;
    outline: none;
    position: relative;
    padding-right: 50px;
    display: block; /* クリックできる範囲を横いっぱいに広げる */
    cursor: pointer;
    padding: 10px 0;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: 0.4s;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    margin-top: 25px;
    color: #999;
    font-size: 1.05rem;
    line-height: 1.9;
    padding-left: 10px;
    border-left: 2px solid rgba(255,255,255,0.1);
}

/* -----------------------------------------------------------------------------
 * 9. Contact Section (Form Design)
 * ---------------------------------------------------------------------------*/
/* --- 9. Contact (再び深い黒へ) --- */
.contact-section {
    padding: 150px 0;
    background-color: #000;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 22px;
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 20px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.4s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #fff;
    background: #151515;
    outline: none;
    box-shadow: 0 0 30px rgba(255,255,255,0.05);
}

.submit-btn {
    width: 100%;
    padding: 24px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 20px;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-btn:hover {
    background: #ccc;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255,255,255,0.1);
}

/* -----------------------------------------------------------------------------
 * 10. Footer & Animations
 * ---------------------------------------------------------------------------*/
.site-footer {
    padding: 120px 0 60px;
    border-top: 1px solid rgba(255,255,255,0.03);
    text-align: center;
    background: #000;
}

.site-footer p {
    color: #444;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

@keyframes scroll-wheel {
    0% { top: 10px; opacity: 1; }
    100% { top: 28px; opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* 波線のみを動かすアニメーション設定 */
@keyframes techWaveFlow {
    from { background-position: 0 0, 0 0, 0 0, 0 0; }
    to { background-position: 1000px 0, 0 0, 0 0, 0 0; }
}


/* -----------------------------------------------------------------------------
 * 11. レスポンシブ
 * ---------------------------------------------------------------------------*/

@media (max-width: 768px) {
    /* 1. Philosophy Section: 垂直の視線誘導 */
    .philosophy-section {
        padding: 100px 0;
    }
    .sub-label::after {
        content: "";
        display: block;
        width: 1px;
        height: 40px;
        background: linear-gradient(to bottom, #666, transparent);
        margin: 20px auto 0;
    }
    .philosophy-text {
        font-size: 1.6rem;
        line-height: 1.5;
        padding: 0 10px;
    }

    /* 2. Tech Stack: 2列のグリッドと質感の向上 */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr); /* 2列にする */
        gap: 12px;
        padding: 0 15px;
    }
    .tech-item {
        padding: 20px 10px;
        font-size: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 80px;
    }

    /* 3. Process Section: タイムライン（導線）の追加 */
    .process-grid {
        gap: 30px;
        position: relative;
    }
    /* ステップ間を繋ぐ縦線 */
    .process-grid::before {
        content: "";
        position: absolute;
        top: 0;
        left: 40px; /* 数字の位置に合わせる */
        width: 1px;
        height: 100%;
        background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
        z-index: 0;
    }
    .process-card {
        padding: 40px 30px 30px 70px; /* 左側に余白を作って線を逃がす */
        background: rgba(255,255,255,0.02);
        border-radius: 24px;
        text-align: left;
    }
    .process-card .step {
        font-size: 3.5rem; /* スマホ用にサイズ調整 */
        top: 10px;
        left: 15px;
        opacity: 0.1;
    }
    .process-card h4 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    .process-card p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* その他微調整 */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    /* --- 5. Bento Grid (スマホ最適化) --- */
    .bento-container {
        display: grid;
        /* 案A: 1カラムでいく場合 */
        grid-template-columns: 1fr; 
        /* 案B: 2カラムで見せたい場合はこちら -> grid-template-columns: repeat(2, 1fr); */
        
        grid-auto-rows: minmax(160px, auto); /* 高さを160px以上に保ちつつコンテンツに合わせる */
        gap: 15px;
        padding: 60px 4%;
    }

    /* 重要：スマホでは「縦長・横長」の指定を一度リセットする */
    .bento-item.tall, 
    .bento-item.wide {
        grid-row: span 1 !important;
        grid-column: span 1 !important;
        min-height: 200px; /* 少し高さを出して「見栄え」を確保 */
    }

    /* プロフィール用のBentoだけはスマホでも少し目立たせる */
    .bento-item.profile-link {
        min-height: 160px;
        background: #111;
    }

    .bento-item span {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
}
/* =============================================
   1. 共通フェードアップ設定（初期状態）
   ============================================= */
/* トップのHeroセクション(.hero-sticky-wrapper)を除外することで、
   最初の画面が真っ白になるのを防ぎます。
*/
.fadeup, 
section:not(.hero-sticky-wrapper), 
.grid-item, 
.bento-item, 
.tech-item, 
.process-card, 
.insight-card,
.philosophy-content,
.entry-title, 
.page-title {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
}

/* 表示状態（JSでクラスが付与されたら実行） */
.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* =============================================
   2. プロフィールページ：Bento Grid 専用調整
   ============================================= */
/* 03/STACK のくっつき解消 */
.item-stack {
    margin-top: 120px !important;
}

@media (max-width: 768px) {
    .item-stack { margin-top: 0 !important; }
}

/* =============================================
   2. 実行状態（表示・定位置）
   ============================================= */
.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    will-change: opacity, transform;
}

/* =============================================
   3. 特定要素のカスタマイズ（微調整）
   ============================================= */

/* ヒーローエリア：最初から視界に入るため、少し速く（0.8秒）表示 */
.hero-inner.is-visible {
    transition-duration: 0.8s;
}

/* プロフィールページ：Bento Grid 03/STACK のくっつき解消 */
.item-stack {
    margin-top: 120px !important;
}

/* スマホでは余白をリセット */
@media (max-width: 768px) {
    .item-stack { 
        margin-top: 0 !important; 
    }
}

/* -----------------------------------------------------------------------------
 * 12. Back to Top Button (統合版)
 * ---------------------------------------------------------------------------*/
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999; /* 最前面に */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto; /* クリックを有効に */
}

/* スクロール後にJSで付与されるクラス */
#back-to-top.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.btt-inner {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

#back-to-top:hover .btt-inner {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #back-to-top { bottom: 20px; right: 20px; }
    .btt-inner { width: 50px; height: 50px; }
}