/* お知らせ詳細ページのスタイル */
.notice-detail-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--bg-elevated);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notice-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--link-color);
    padding-bottom: 0.5rem;
}

.notice-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: right;
}

.notice-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Markdownコンテンツのスタイル */
.notice-content h1,
.notice-content h2,
.notice-content h3,
.notice-content h4,
.notice-content h5,
.notice-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.notice-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.notice-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
}

.notice-content h3 {
    font-size: 1.25rem;
}

.notice-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.notice-content ul,
.notice-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.notice-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.notice-content code {
    background-color: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.notice-content pre {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.notice-content pre code {
    background-color: transparent;
    padding: 0;
}

.notice-content blockquote {
    border-left: 4px solid var(--link-color);
    padding-left: 1rem;
    margin-left: 0;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.notice-content a {
    color: var(--link-color);
    text-decoration: none;
}

.notice-content a:hover {
    text-decoration: underline;
}

.notice-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.notice-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.notice-content table th,
.notice-content table td {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    text-align: left;
}

.notice-content table th {
    background-color: var(--bg-secondary);
    font-weight: 600;
}

.notice-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 2rem 0;
}

.notice-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    background-color: var(--link-color);
    color: var(--text-on-dark);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--link-hover);
}

/* お知らせ一覧ページ */
.notice-list-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--bg-elevated);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notice-list-page-title {
    color: var(--text-primary);
    border-bottom: 2px solid var(--link-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.notice-list-item {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color, #eee);
}

.notice-list-item:last-child {
    border-bottom: none;
}

.notice-list-item .notice-date {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: left;
}

.notice-list-item .notice-title-link {
    color: var(--link-color);
    text-decoration: none;
    word-break: break-word;
}

.notice-list-item .notice-title-link:hover {
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .notice-detail-container,
    .notice-list-container {
        margin: 1rem;
        padding: 1rem;
    }

    .notice-title {
        font-size: 1.5rem;
    }

    .notice-content {
        font-size: 0.95rem;
    }

    .notice-list-item {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .notice-detail-container {
        margin: 0.5rem;
        padding: 0.8rem;
    }

    .notice-title {
        font-size: 1.3rem;
    }

    .notice-date {
        font-size: 0.8rem;
    }

    .notice-content {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }
}
