/* ---------------------------------------------------- */
/* 2000年代風の基本デザイン */
/* ---------------------------------------------------- */

/* 背景デザイン: 懐かしのタイルパターン風 */
body {
    /* 淡いブルーのテクスチャをタイル状に敷き詰めるイメージ */
    background-color: #e0f7fa; /* 薄い水色 */
    background-image: repeating-linear-gradient(
        45deg,
        #fff 0,
        #fff 1px,
        #e0f7fa 1px,
        #e0f7fa 20px
    );
    font-family: 'MS PGothic', 'Osaka', sans-serif; /* 昔の標準フォント風 */
    color: #333;
    margin: 0;
    padding: 20px;
    text-align: center; /* 昔はセンター寄せが多かった */
}

/* リンクの色も懐かしい感じに */
a {
    color: #0000ff; /* 青 */
    text-decoration: underline;
}

a:visited {
    color: #800080; /* 紫 */
}

/* ---------------------------------------------------- */
/* テーブルレイアウトのスタイル */
/* ---------------------------------------------------- */

#main-layout {
    width: 80%; /* 昔は固定幅が多かった */
    max-width: 1000px;
    margin: 20px auto;
    border-collapse: collapse;
    /* 懐かしの「枠線」 */
    border: 3px solid #000; 
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); /* 影もつけて立体感を */
    background-color: #ffffff; /* 中身は白くする */
}

#sidebar {
    width: 250px;
    border-right: 2px solid #000;
    padding: 10px;
    vertical-align: top;
    background-color: #f0f0f0; /* サイドバーは薄いグレーで区切る */
}

#content {
    padding: 20px;
    text-align: left; /* メインコンテンツは左寄せ */
}

/* ---------------------------------------------------- */
/* 各要素のスタイル */
/* ---------------------------------------------------- */

#header h1 {
    /* ワードアートっぽく影を付ける */
    color: #ff6699; /* モモちゃんカラーのピンク風に */
    text-shadow: 2px 2px 0px #000000; 
    font-size: 32px;
    margin-bottom: 5px;
    border-bottom: 1px dashed #cccccc;
    padding-bottom: 5px;
}

#header p {
    font-size: 14px;
    font-style: italic;
    color: #666;
}

hr {
    border: 1px solid #ccc; /* 昔ながらの区切り線 */
}

/* 懐かしの「流れるニュースティッカー」風 */
#news-ticker {
    background-color: #ffffcc; /* 黄色っぽい背景 */
    border: 1px solid #ffcc00;
    padding: 5px;
    margin-bottom: 10px;
}

/* サイドバーの箱デザイン */
.side-box {
    border: 1px solid #999;
    background-color: #fff;
    padding: 10px;
    margin-bottom: 15px;
}

.side-box h3 {
    border-bottom: 2px solid #000000;
    padding-bottom: 3px;
    margin-top: 0;
    color: #3333ff; /* 青文字で目立たせる */
}

.side-box ul {
    list-style-type: none;
    padding: 0;
}

.side-box li {
    margin-bottom: 5px;
}

.side-box a {
    display: block;
    padding: 2px;
    text-decoration: none;
    font-weight: bold;
}

.side-box a:hover {
    background-color: #ccffcc; /* マウスオーバーで色が変わる */
}

/* アクセスカウンター風の装飾 */
#counter {
    text-align: center;
    border: 3px double #ff6699;
    padding: 10px;
    margin: 20px 0;
    background-color: #ffeeff;
    font-weight: bold;
    font-size: 18px;
}

.small-text {
    font-size: 10px;
    color: #999;
}

/* ---------------------------------------------------- */
/* JavaScript用エフェクトのCSS */
/* ---------------------------------------------------- */

.sparkle {
    position: absolute;
    /* マウスポインタの裏に来るようにz-indexを調整 */
    z-index: 9999; 
    font-size: 16px;
    opacity: 1;
    /* マウスポインタの少し右下にずらして配置 */
    transform: translate(-50%, -50%); 
    pointer-events: none; /* エフェクト自体がクリックを邪魔しないように */
    
    /* きらきらアニメーションの指定 */
    animation: sparkle-fade-out 1s forwards;
}

/* きらきらがフェードアウトして上に飛んでいくアニメーション */
@keyframes sparkle-fade-out {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        /* 少し上に移動しながら消える */
        transform: translate(-50%, -100px) scale(0.5); 
    }
}