@charset "UTF-8"; /* お知らせ表示用の共通スタイル */
.notice-container {
display: none;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.notice-item {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

.notice-item h3 {
    font-size: 1.45rem;
    font-weight: 600;
    color: #fe2d17;
    margin-bottom: 0.5rem;
}

.notice-item .notice-content {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    line-height: 1.8;
    white-space: pre-wrap;
}
.notice-item .notice-content a{
    color: #005cdc;
}
.notice-item small {
    color: #6b7280;
    font-size: 0.875rem;
}
#notice-board {
    position: relative; /* 子要素を絶対配置するための基準点になります */
    min-height: 120px; /* ローディング中にコンテナの高さを確保するための指定 */
}
#notice-board .loading-spinner {
    box-sizing: content-box; /* サイズ計算の基準を明確化 */
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s ease infinite;
    
    /* 絶対配置を使って、親要素のど真ん中に配置するテクニック */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0; /* 以前のmargin指定をリセット */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#notice-board .error-message {
    color: #991b1b;
    background-color: #fee2e2;
    padding: 1rem;
    border-radius: 0.375rem;
    text-align: center;
}
@media screen and (max-width: 640px) {
.notice-item .notice-content {
    font-size: 0.9rem;
}
.notice-item {
    padding: 1.0rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}
}