/* ======================================
    FUN ZONE ホラー寄せ ＋ ノイズ背景
====================================== */

/* ノイズ生成用（単色ノイズを重ねる） */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,\
    <svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'>\
      <filter id='noiseFilter'>\
        <feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/>\
      </filter>\
      <rect width='120' height='120' filter='url(%23noiseFilter)'/>\
    </svg>");
    opacity: 0.08;
    z-index: 1;
}

/* 背景そのもの（暗闇の奥から光る感じ） */
body {
    margin: 0;
    background: radial-gradient(circle at 50% -10%, #2b2427, #0c0b0c 65%, #000 100%);
    color: #f5f5f5;
    font-family: 'ShinRetro', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 画面全体のコンテンツ */
.wrapper {
    width: min(90%, 850px);
    margin: 0 auto;
    padding: 40px 0;
    position: relative;
    z-index: 2;
    animation: fadeIn 0.7s ease-out;
}

/* タイトル（ゆるい不気味さ） */
.page-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
    transform: rotate(-2deg);
    text-shadow: 0 0 8px rgba(255,255,255,0.08);
}

/* タイトル下の矢印 */
.page-title-arrow {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    transform: rotate(2deg);
    opacity: 0.9;
}

/* 日記リスト */
.diary-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-bottom: 60px;
}

/* 風船（ベース） */
.diary-item {
    background: #d63434;
    color: #fff;
    font-size: 1.4rem;
    padding: 16px 20px;
    border-radius: 18px;
    text-decoration: none;
    width: fit-content;
    letter-spacing: 1px;
    position: relative;
    box-shadow: 0 10px 0 #5f0f0f;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: floating 3s ease-in-out infinite;
}

/* ゆらゆら浮く */
@keyframes floating {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-4px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* ホバー時 */
.diary-item:hover {
    transform: translateY(-6px) rotate(-3deg);
    box-shadow: 0 14px 0 #3a0a0a;
}

/* 各色（Diary1〜5用） */

/* 鈍いホラー赤（Diary1） */
.balloon-red {
    background: #c12c2c;
    box-shadow: 0 10px 0 #4c0d0d;
}
.balloon-red:hover {
    box-shadow: 0 14px 0 #2b0606;
}

/* 黄（Diary2） */
.balloon-yellow {
    background: #ffdd4d;
    color: #2a1808;
    box-shadow: 0 10px 0 #b09026;
}
.balloon-yellow:hover {
    box-shadow: 0 14px 0 #7a6518;
}

/* 青（Diary3） */
.balloon-blue {
    background: #3a7df7;
    box-shadow: 0 10px 0 #1e3d8c;
}
.balloon-blue:hover {
    box-shadow: 0 14px 0 #112553;
}

/* 紫（Diary4：ホラー補強） */
.balloon-purple {
    background: #7d3df5;
    box-shadow: 0 10px 0 #401c84;
}
.balloon-purple:hover {
    box-shadow: 0 14px 0 #2a1158;
}

/* 黒赤（Diary5：最ホラー） */
.balloon-dark {
    background: #2b0e12;
    color: #ff4d4d;
    box-shadow: 0 10px 0 #120407;
}
.balloon-dark:hover {
    box-shadow: 0 14px 0 #070103;
}

/* 風船のヒモ */
.diary-item::after {
    content: "";
    position: absolute;
    left: 40%;
    bottom: -28px;
    width: 2px;
    height: 28px;
    background: #ffffff;
    opacity: 0.6;
    animation: stringShake 2s ease-in-out infinite;
}

@keyframes stringShake {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

/* フェードイン */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* スマホ調整 */
@media (max-width: 480px) {
    .page-title { font-size: 2.2rem; }
    .diary-item {
        font-size: 1.2rem;
        padding: 12px 16px;
    }
}