/* 追加のスタイル */

/* シェアボタンのスタイル */
.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-button:active {
    transform: translateY(0);
}

#x-share-button:hover {
    background: #333333 !important;
}

#x-share-achievement:hover {
    background: #0d8ed8 !important;
}

/* モバイル時の上部コントロール調整 */
@media (max-width: 768px) {
    .top-controls {
        flex-wrap: wrap;
    }
    
    .top-controls .font-size-btn {
        flex: 1;
    }
    
    .top-controls > div[style*="width: 1px"] {
        display: none;
    }
    
    .top-controls .redsheet-button {
        margin-top: 8px;
    }
}

/* PC画面での調整 */
@media (min-width: 769px) {
    .top-controls {
        align-items: center;
    }
    
    .top-controls .font-size-btn {
        min-width: 80px;
    }
}

/* インラインスタイルからの移行 */
#mobile-warning {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: #f44336;
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 3000;
}

#mobile-warning p {
    margin: 0;
}

/* コントロールボタンのインラインスタイル */
.top-controls {
    width: 100%;
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid #e0f0ff;
    align-items: center;
}

.font-size-btn {
    flex-shrink: 0;
}

#font-size-small {
    background: #28a745;
    font-size: 0.9rem;
    padding: 10px 15px;
}

#font-size-medium {
    background: #ffc107;
    color: #333;
    font-size: 1rem;
    padding: 10px 15px;
}

#font-size-large {
    background: #dc3545;
    font-size: 1.1rem;
    padding: 10px 15px;
}

.font-size-btn i {
    margin-right: 5px;
}

#font-size-small i {
    font-size: 0.8rem;
}

#font-size-medium i {
    font-size: 1rem;
}

#font-size-large i {
    font-size: 1.2rem;
}

.controls-divider {
    width: 1px;
    background: #ccc;
    margin: 0 12px;
    height: 30px;
    flex-shrink: 0;
}

#redsheet-button-full {
    padding: 10px 20px;
    font-size: 1.1rem;
    background: #FFC0CB;
    color: #006400;
    flex-shrink: 0;
}

/* ナビゲーションボタン */
.navigation-buttons {
    width: 100%;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.nav-button {
    flex: 1;
}

/* 絞り込み結果数表示 */
#filter-result-count {
    margin-top: 10px;
    padding: 8px;
    background: #f0f8ff;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    color: #0078a8;
    font-size: 0.9rem;
}

/* ブックマーク管理 */
.bookmark-controls {
    margin-top: 10px;
    display: flex;
    gap: 5px;
}

.bookmark-clear-btn {
    flex: 1;
    padding: 6px 8px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

#bookmark-count {
    flex: 1;
    padding: 6px 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 広告セクション */
.a8-ad-section {
    text-align: center;
    margin: 30px auto;
    padding: 20px;
    background: rgba(248, 248, 248, 0.8);
    border-radius: 12px;
    max-width: 600px;
}

.a8-ad-section p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
    font-weight: bold;
}

.a8-ad-container {
    padding: 10px 0;
    background-color: rgba(248, 248, 248, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* シェアセクション */
.share-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.share-section p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.share-buttons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

#x-share-button {
    background: #000000;
}

#x-share-achievement {
    background: #1DA1F2;
}

/* フッター */
footer {
    background: transparent;
    color: #333;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
    backdrop-filter: none;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #0078a8;
    margin: 0 10px;
    text-decoration: none;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}
