* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 120px;
}

header {
    background-color: #111;
    padding: 1rem;
    border-bottom: 2px solid #333;
    position: relative;
}

header h1 a {
    color: #00cccc;
    text-decoration: none;
    font-size: 1.8rem;
}

header h1 a:hover {
    color: #00aaaa;
}

.user-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.9rem;
}

.user-status a {
    color: #00cccc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #00cccc;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.user-status a:hover {
    background-color: #00cccc;
    color: #000;
}

.filter-buttons {
    margin-top: 1rem;
    display: none; /* 月別と色別ボタンを非表示 */
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.month-section {
    margin-bottom: 2rem;
}

.month-header {
    background-color: #222;
    padding: 1rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.month-header:hover {
    background-color: #333;
}

.announcements {
    transition: all 0.3s ease;
}

.announcements.collapsed {
    max-height: 0;
    overflow: hidden;
}

.announcements.expanded {
    max-height: none;
}

.announcement-item {
    background-color: #111;
    margin: 0.5rem 0;
    padding: 1rem;
    border-left: 4px solid #333;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
}

.announcement-item:hover {
    background-color: #222;
}

.announcement-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.label {
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 1rem;
    font-weight: bold;
}

.label.error {
    background-color: #ff4444;
    color: #fff;
}

.label.update {
    background-color: #44ddff;
    color: #000;
}

.label.change {
    background-color: #ffdd44;
    color: #000;
}

.label.maintenance {
    background-color: #44aa44;
    color: #fff;
}

.title {
    font-weight: bold;
    margin-right: 1rem;
    flex: 1;
}

.datetime {
    color: #888;
    font-size: 0.9rem;
}

.preview {
    color: #ccc;
    font-size: 0.9rem;
}

.back-link {
    text-align: center;
    padding: 2rem;
}

.back-link a {
    color: #00cccc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #00cccc;
    border-radius: 4px;
}

.back-link a:hover {
    background-color: #00cccc;
    color: #000;
}

footer {
    background-color: #111;
    padding: 1rem;
    border-top: 2px solid #333;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.admin-link {
    text-align: center;
    margin-bottom: 0.5rem;
}

.admin-link a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-link a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* ログイン画面改善 */
.login-container {
    max-width: 450px;
    margin: 10vh auto;
    padding: 3rem;
    background: linear-gradient(135deg, #111, #222);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #00cccc;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background-color: #222;
    border: 2px solid #444;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00cccc;
    box-shadow: 0 0 10px rgba(0, 204, 204, 0.3);
}

.login-container button {
    width: 100%;
    background: linear-gradient(135deg, #00cccc, #008888);
    color: #000;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.login-container button:hover {
    background: linear-gradient(135deg, #00aaaa, #006666);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 204, 204, 0.3);
}

.login-container .back-link {
    text-align: center;
    padding: 1rem 0 0 0;
}

.login-container .back-link a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
}

.login-container .back-link a:hover {
    color: #00cccc;
}

/* ダッシュボード */
.dashboard {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background-color: #111;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #00ffff;
    margin-top: 0.5rem;
}

.dashboard-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.dashboard-btn {
    background-color: #222;
    color: #fff;
    padding: 1rem;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #555;
    transition: all 0.3s ease;
}

.dashboard-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* 作成画面 */
.create-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.create-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.form-section, .preview-section {
    background-color: #111;
    padding: 2rem;
    border-radius: 8px;
}

.form-group select, .form-group textarea {
    width: 100%;
    padding: 0.5rem;
    background-color: #222;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
}

.form-group textarea {
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #111;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.detail-content {
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 10px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.detail-content::-webkit-scrollbar {
    display: none;
}

.modal-content,
.detail-content {
    -webkit-overflow-scrolling: touch;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #ccc;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.close:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.announcement-detail {
    padding: 1rem 0;
}

.detail-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.detail-header h2 {
    margin: 0.5rem 0;
    color: #fff;
}

.detail-date {
    color: #888;
    font-size: 0.9rem;
}

.detail-content {
    color: #ccc;
    line-height: 1.8;
    font-size: 1rem;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.detail-content::-webkit-scrollbar {
    display: none;
}

/* タグ検索 */
.tag-search {
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: #111;
    border-radius: 8px;
}

.tag-search h3 {
    margin-bottom: 0.8rem;
    color: #ccc;
    text-align: center;
    font-size: 1rem;
}

.tag-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
}

.tag-btn {
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
}

.tag-btn.active {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.tag-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.tag-btn.all {
    background: linear-gradient(135deg, #666, #888);
    color: #fff;
}

.tag-btn.error {
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: #fff;
}

.tag-btn.update {
    background: linear-gradient(135deg, #44ddff, #66eeff);
    color: #000;
}

.tag-btn.change {
    background: linear-gradient(135deg, #ffdd44, #ffee66);
    color: #000;
}

.tag-btn.maintenance {
    background: linear-gradient(135deg, #44aa44, #66cc66);
    color: #fff;
}

/* タグ統計（ダッシュボード用） */
.tag-stats {
    margin: 2rem 0;
}

.tag-stats h2 {
    color: #ccc;
    margin-bottom: 1rem;
}

.tag-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tag-stat-item {
    background-color: #111;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #333;
}

.tag-stat-label {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.tag-stat-label.error {
    background-color: #ff4444;
    color: #fff;
}

.tag-stat-label.update {
    background-color: #44ddff;
    color: #000;
}

.tag-stat-label.change {
    background-color: #ffdd44;
    color: #000;
}

.tag-stat-label.maintenance {
    background-color: #44aa44;
    color: #fff;
}

.tag-stat-count {
    color: #00cccc;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 予約投稿機能 */
.publish-options {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #222;
    border-radius: 8px;
    border: 1px solid #333;
}

.option-group {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.option-group input[type="radio"] {
    margin-right: 0.5rem;
}

.option-group label {
    color: #ccc;
    cursor: pointer;
}

.schedule-time {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.schedule-time label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.schedule-time input[type="datetime-local"] {
    width: 100%;
    padding: 0.5rem;
    background-color: #222;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
}

/* 予約投稿一覧 */
.scheduled-list {
    margin-top: 2rem;
}

.scheduled-item {
    background-color: #111;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #333;
    border-left: 4px solid #00cccc;
    position: relative;
}

.scheduled-item.overdue {
    border-left-color: #ff4444;
    background-color: #221111;
}

.scheduled-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.schedule-time {
    color: #00cccc;
    font-weight: bold;
    margin-left: auto;
}

.overdue-notice {
    color: #ff4444;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.countdown {
    color: #888;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.scheduled-preview {
    color: #ccc;
    margin: 0.5rem 0;
}

.scheduled-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-publish {
    background-color: #00cc00;
    color: #fff;
    padding: 0.3rem 0.8rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-publish:hover {
    background-color: #00aa00;
    transform: translateY(-1px);
}

/* 自動公開機能 */
.header-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.update-btn {
    background-color: #00cccc;
    color: #000;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.update-btn:hover {
    background-color: #00aaaa;
    transform: scale(1.05);
}

.auto-publish-notice {
    background-color: #00aa00;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.info-message {
    background-color: #004444;
    color: #fff;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    text-align: center;
}

/* 次回予約投稿 */
.next-scheduled {
    background-color: #111;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid #333;
}

.next-scheduled h3 {
    color: #ccc;
    margin-bottom: 1rem;
}

.schedule-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.schedule-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.schedule-link:hover {
    background-color: #222;
    transform: translateY(-1px);
}

.schedule-title {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.schedule-time {
    color: #00cccc;
    font-weight: bold;
    font-size: 1rem;
}

.time-remaining {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    white-space: nowrap;
}

/* シェアボタン - モーダル内のみ */
.share-btn {
    background: rgba(0, 204, 204, 0.1);
    color: #00cccc;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(0, 204, 204, 0.3);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: normal;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.7;
}

.share-btn:hover {
    background: rgba(0, 204, 204, 0.2);
    border-color: rgba(0, 204, 204, 0.6);
    opacity: 1;
    transform: scale(1.05);
}

.share-btn::before {
    content: "🔗";
    font-size: 0.8rem;
}

.share-success {
    background: rgba(0, 204, 0, 0.2) !important;
    border-color: rgba(0, 204, 0, 0.6) !important;
    color: #00cc00 !important;
}

.share-success::before {
    content: "✓";
}

/* モーダル内のシェアボタン - 重ならない位置 */
.modal-share-btn {
    background: rgba(0, 204, 204, 0.1);
    color: #00cccc;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(0, 204, 204, 0.3);
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    align-self: flex-end;
    margin-top: 0.5rem;
}

.modal-share-btn:hover {
    background: rgba(0, 204, 204, 0.2);
    border-color: rgba(0, 204, 204, 0.6);
    opacity: 1;
}

.modal-share-btn::before {
    content: "🔗 ";
    font-size: 0.8rem;
}

.detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
    gap: 1rem;
}

/* アナウンス紹介セクション */
.announcement-intro {
    background: linear-gradient(135deg, #111, #222);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid #333;
    text-align: center;
}

.announcement-intro h2 {
    color: #00cccc;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.announcement-intro p {
    color: #ccc;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.public-link-section {
    margin-top: 1.5rem;
}

.public-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #00cccc, #008888);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 204, 204, 0.3);
    border: 2px solid transparent;
}

.public-link:hover {
    background: linear-gradient(135deg, #00aaaa, #006666);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 204, 204, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-icon {
    font-size: 1.2rem;
}

.link-text {
    flex: 1;
}

.link-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.public-link:hover .link-arrow {
    transform: translateX(5px);
}

/* ハッカー風リンク集 */
.hacker-links-container {
    background: #000;
    border: 2px solid #00ff00;
    border-radius: 0;
    margin: 2rem 0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    font-family: 'Courier New', monospace;
    min-height: 70vh;
}

.terminal-header {
    background: linear-gradient(90deg, #001100, #003300);
    padding: 1rem;
    border-bottom: 1px solid #00ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
    animation: pulse-green 2s infinite;
}

.terminal-status {
    color: #ff0000;
    font-size: 0.9rem;
    animation: blink 1s infinite;
}

@keyframes pulse-green {
    0%, 100% { text-shadow: 0 0 5px #00ff00; }
    50% { text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.links-grid {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1rem;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #00ff00 #000;
}

.links-grid::-webkit-scrollbar {
    width: 8px;
}

.links-grid::-webkit-scrollbar-track {
    background: #000;
}

.links-grid::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 0;
    box-shadow: 0 0 10px #00ff00;
}

.hacker-link-item {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #00ff00;
    padding: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.hacker-link-item:hover {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    background: rgba(0, 30, 30, 0.9);
}

.hacker-link-item:before {
    content: attr(data-index);
    position: absolute;
    top: -10px;
    left: -10px;
    background: #000;
    color: #00ff00;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid #00ff00;
}

.link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.link-id {
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
}

.link-type {
    padding: 0.2rem 0.5rem;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 0 0 5px currentColor;
}

.link-type.error {
    color: #ff0000;
    border: 1px solid #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.link-type.update {
    color: #00ffff;
    border: 1px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

.link-type.change {
    color: #ffff00;
    border: 1px solid #ffff00;
    background: rgba(255, 255, 0, 0.1);
}

.link-type.maintenance {
    color: #ff8800;
    border: 1px solid #ff8800;
    background: rgba(255, 136, 0, 0.1);
}

.link-date {
    color: #888;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.link-title {
    color: #fff;
    font-size: 1.1rem;
    margin: 0.5rem 0;
    text-shadow: 0 0 5px #fff;
    font-weight: bold;
}

.link-url-container {
    margin: 0.5rem 0;
}

.hacker-url {
    width: 100%;
    background: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hacker-url:hover, .hacker-url:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.05);
}

.link-preview {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.5rem;
    border-left: 2px solid #00ff00;
    padding-left: 0.5rem;
}

.terminal-footer {
    background: #001100;
    padding: 0.5rem 1rem;
    border-top: 1px solid #00ff00;
    text-align: center;
}

.footer-text {
    color: #00ff00;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px #00ff00;
}

.no-data-hacker {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #ff0000;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #ff0000;
}

.glitch {
    animation: glitch 0.3s infinite;
}

.glitch-effect {
    animation: glitch 0.15s;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.hacker-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #000;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
    z-index: 10000;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

/* マトリックスエフェクト */
.matrix-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.matrix-line {
    position: absolute;
    top: 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00ff00;
    white-space: nowrap;
    animation: matrixFall 3s linear forwards;
    text-shadow: 0 0 5px #00ff00;
}

.matrix-line:nth-child(1) { left: 10%; }
.matrix-line:nth-child(2) { left: 30%; }
.matrix-line:nth-child(3) { left: 50%; }
.matrix-line:nth-child(4) { left: 70%; }
.matrix-line:nth-child(5) { left: 90%; }

@keyframes matrixFall {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* システム情報パネル強化 */
.system-info-panel {
    background: #000;
    border: 2px solid #00cccc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 20px rgba(0, 204, 204, 0.3);
}

.system-info-panel h3 {
    color: #00cccc;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #00cccc;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 204, 204, 0.05);
    border: 1px solid rgba(0, 204, 204, 0.3);
    border-radius: 4px;
}

.info-label {
    color: #00cccc;
    font-weight: bold;
    font-size: 0.9rem;
}

.info-value {
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    text-align: right;
    word-break: break-word;
}

/* 最後のアクセス情報 */
.last-access-info {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
}

.last-access-info h4 {
    color: #00ff00;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 5px #00ff00;
    font-size: 1rem;
}

.access-details {
    display: grid;
    gap: 0.4rem;
}

.access-item {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

.access-label {
    color: #00ff00;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 100px;
}

.access-value {
    color: #ccc;
    font-size: 0.85rem;
    text-align: right;
    word-break: break-word;
    flex: 1;
    margin-left: 1rem;
}

/* アクセス履歴ログ */
.recent-access-log {
    background: rgba(255, 255, 0, 0.05);
    border: 1px solid rgba(255, 255, 0, 0.3);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
}

.recent-access-log h4 {
    color: #ffff00;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 5px #ffff00;
    font-size: 1rem;
}

.access-log-list {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ffff00 transparent;
}

.access-log-list::-webkit-scrollbar {
    width: 4px;
}

.access-log-list::-webkit-scrollbar-thumb {
    background: #ffff00;
    border-radius: 2px;
}

.log-item {
    display: flex;
    gap: 1rem;
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 0, 0.1);
    font-size: 0.8rem;
}

.log-time {
    color: #ffff00;
    min-width: 60px;
    font-weight: bold;
}

.log-ip {
    color: #fff;
    min-width: 100px;
    font-family: 'Courier New', monospace;
}

.log-page {
    color: #ccc;
    flex: 1;
}

/* リンク生成制限メッセージ */
.disabled-message {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #003333, #006666);
    border: 2px solid #00cccc;
    border-radius: 8px;
    margin: 2rem 0;
}

.disabled-message h2 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-shadow: 0 0 10px #00ffff;
}

.disabled-message p {
    color: #ccc;
    margin: 1rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.error-code {
    color: #00cccc;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-top: 2rem;
    padding: 0.5rem;
    background: rgba(0, 204, 204, 0.1);
    border: 1px solid #00cccc;
    border-radius: 4px;
    text-shadow: 0 0 5px #00cccc;
}

/* 無効化された投稿のシェア制限表示 */
.disabled-share-notice {
    background: rgba(255, 102, 102, 0.1);
    color: #ff6666;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 102, 102, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    text-align: center;
    opacity: 0.8;
    align-self: flex-end;
    margin-top: 0.5rem;
    text-shadow: 0 0 5px #ff6666;
}

.detail-header-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-title-section {
    flex: 1;
}

/* モーダル内シェアボタン位置調整 */
.modal-share-btn {
    background: rgba(0, 204, 204, 0.1);
    color: #00cccc;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(0, 204, 204, 0.3);
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    align-self: flex-end;
    margin-top: 0.5rem;
}

.modal-share-btn:hover {
    background: rgba(0, 204, 204, 0.2);
    border-color: rgba(0, 204, 204, 0.6);
    opacity: 1;
}

.modal-share-btn::before {
    content: "🔗 ";
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .detail-header-row {
        gap: 0.5rem;
    }
    
    .modal-share-btn,
    .disabled-share-notice {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    
    .matrix-line {
        font-size: 10px;
    }
    
    .disabled-message {
        padding: 2rem 1rem;
    }
    
    .disabled-message h2 {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .access-item,
    .log-item {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .access-label,
    .log-time {
        min-width: auto;
    }
    
    .access-value {
        text-align: left;
        margin-left: 0;
    }
}