/* 管理画面専用スタイル */

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    background: #050814;
    color: #ffffff;
}

/* ログイン画面 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.login-box h1 {
    color: var(--warm-gold);
    font-size: 2em;
    margin-bottom: 10px;
}

.login-box h2 {
    color: #ffffff;
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 400;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--warm-gold);
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1em;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--warm-gold);
    background: rgba(255, 255, 255, 0.15);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--warm-gold) 0%, #d4af37 100%);
    border: none;
    border-radius: 8px;
    color: #0a0e27;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9em;
    margin-top: 15px;
    min-height: 20px;
}

/* 管理画面 */
.admin-container {
    min-height: 100vh;
    background: #050814;
}

.admin-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    color: var(--warm-gold);
    font-size: 1.5em;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* ボタン */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--warm-gold);
    color: #0a0e27;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.3);
}

/* お知らせ一覧 */
.admin-main {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-list {
    display: grid;
    gap: 20px;
}

.loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 60px 20px;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: var(--warm-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.news-date,
.news-category {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.news-date i,
.news-category i {
    color: var(--warm-gold);
    margin-right: 5px;
}

.news-actions {
    display: flex;
    gap: 8px;
}

.news-title {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 10px;
}

.news-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-link {
    color: var(--warm-gold);
    text-decoration: none;
    font-size: 0.9em;
}

.news-link:hover {
    text-decoration: underline;
}

/* トースト通知 */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--warm-gold);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #0a0e27;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: var(--warm-gold);
    margin: 0;
    font-size: 1.3em;
}

.modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 25px;
}

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

.form-group label {
    display: block;
    color: var(--warm-gold);
    font-size: 0.9em;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--warm-gold);
    background: rgba(255, 255, 255, 0.08);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
    }

    .btn {
        flex: 1;
        justify-content: center;
    }

    .admin-main {
        padding: 20px 15px;
    }

    .news-card-header {
        flex-direction: column;
        gap: 15px;
    }

    .news-actions {
        width: 100%;
    }

    .news-actions .btn {
        flex: 1;
    }
}