@charset "utf-8";

/* =============================================
   1. 基本レイアウト・共通設定
   ============================================= */
/*
#list-area {
    width: 50%;
    margin: 0 auto;
} */

#list-area {
    flex-grow: 1;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    width: auto !important;   /* ← これが重要 */
}

/* 10文字制限（三点リーダー） */
.limit-10 {
    display: inline-block;
    width: 10em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ハイライト */
.hilite {
    background-color: #90ee90;
    font-weight: bold;
}

/* =============================================
   2. ヘッダー・ナビゲーション
   ============================================= */
/* サイトヘッダー */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    background-color: #fff8dc;
    border-bottom: 2px solid #ff42ad;
    padding: 10px 0;
}

.site-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ff42ad;
    text-shadow: 1px 1px 2px #ccc;
    margin: 0 auto 10px auto;
    padding: 0 0 10px 0;
    letter-spacing: 0.1em;
    border-bottom: none !important;
}

.site-title mark {
    color: #008000;
    background-color: transparent;
    padding: 5px 12px;
    border: 2px solid #fff;
    border-radius: 6px;
}

/* メニューコンテナ */
.menu-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 2px solid #ccc;
    margin-bottom: 16px;
}

.menu-item {
    width: 140px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-item a {
    color: #333;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 0;
}

.menu-item a:hover {
    text-decoration: underline;
}

/* ホームリンク */
.home-link {
    text-align: center;
}

.home-link a {
    font-size: 1.1em;
    color: #0000ff;
    text-decoration: none;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 6px;
    background-color: #e0f0ff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.home-link a:hover {
    background-color: #c0e0ff;
    text-decoration: underline;
}

/* =============================================
   3. ボックス・カード要素（記事・イベント）
   ============================================= */
/* 共通の枠組み（comment-box / event-box） */
.comment-box, .event-box {
    border: 1px solid #ccc;
    padding: 12px;
    margin: 16px auto;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
}

.comment-box {
    max-width: 800px;
    line-height: 1.2;
}

.event-box {
    width: 100%;
    margin-bottom: 18px;
    background: #fafafa;
}

/* カードヘッダー・タイトル */
.card-header, .event-header {
    margin: 0;
    padding: 0;
    line-height: 1.1;
}

.card-header p {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
}

.card-header .display-name {
    color: #fdba74; /* orange-300 */
    display: flex;
    align-items: center;
}

.card-header .big-date {
    font-size: 1rem;
    font-weight: 500;
}

.card-title-row {
    margin: 2px 0 4px 0;
}

.event-title, .page-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.card-title-link, .event-title {
    text-decoration: none;
    color: blue;
}

.card-title-link:hover, .event-title:hover {
    text-decoration: underline;
}

/* コンテンツ本体 */
.comment-box .box2, .event-body {
    margin-top: 4px;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

/* 埋め込み要素 */
.comment-box img,
.comment-box video,
.comment-box iframe,
.comment-box embed,
.svg-item {
    width: 80%;
    height: auto;
    display: block;
    margin: 8px auto;
    border-radius: 10px;
    overflow: hidden;
}

/* =============================================
   4. コメントエリア（koment-）
   ============================================= */
/* コメント全体を囲む枠（楕円） */
.koment-wrapper {
    margin-top: 12px;
    padding: 15px;
    border: 2px solid #888;
    border-radius: 15px;
    background: #fafafa;
}

.koment-wrapper::before {
    content: "── コメント ──";
    display: block;
    text-align: center;
    color: #555;
    font-weight: bold;
    margin-bottom: 10px;
}

/* コメント1件ごとのスタイル */
.koment-item {
    padding: 4px 6px;
    margin: 4px 0;
    border-bottom: 1px solid #ddd;
    border-left: none !important; /* 既存の上書き */
}

.koment-item:last-child {
    border-bottom: none;
}

.koment-header {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 2px;
}

.koment-label {
    font-weight: bold;
    color: #333;
}

.koment-title {
    font-weight: bold;
    margin: 0;
    line-height: 1.1;
}

.koment-body pre {
    margin-top: 2px;
    margin-bottom: 0;
    padding: 0;
    line-height: 1.15;
    white-space: pre-wrap;
    font-family: inherit;
}

.koment-field {
    margin-bottom: 6px;
}

.koment-edit-link {
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
}

.koment-btn {
    display: inline-block;
    background: #ff9900;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

/* =============================================
   5. ボタン・モーダル
   ============================================= */
.btn-small {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transform: scale(0.8);
    transform-origin: left top;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
