#island * {
    box-sizing: border-box;
}
  
  .island {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-right: 1rem;
  }
  
  .illustration {
    position: absolute;
    bottom: 0;
    right: 0;
    max-height: 240px;
    max-width: 220px;
    width: auto; 
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.container {
    background-image: url('/assets/images/about-me/journal.png');
    background-size: cover;
    position: absolute;
    width: 1270px;
    height: 715px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.diary {
    position: absolute;
    width: 550px;
    height: 460px; 
    right: -18px; 
    bottom: 90px;
    top: 19%;
    overflow: auto;
}

.diary iframe {
    transition: opacity 0.3s ease;
}



.memo {
    position: absolute;
    width: 318px;
    height: 275px;
    left: 115px;
    top: 40px;
    padding: 10px;
    overflow: auto;
    border: none; 
    background: transparent;
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}
.memo::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: transparent;
}

.memo::-webkit-scrollbar-thumb {
    background: rgba(93, 166, 255, 0.341);
    border-radius: 4px;
}



.header-special {
    background-color: rgba(255, 255, 255, 0);
    background-image: url("/assets/images/banners/03.png");
    background-size: cover;
    background-repeat: no-repeat;
    width: 93%;
    height: 20px;
    top: 0;
    border: none;
    padding: 8px;
    font-size: 25px;
    color: rgb(255, 255, 255);
    font-family: 'ZHFont', sans-serif;
    z-index: 1; 
}
.header-zodiac {
    background-color: rgba(255, 255, 255, 0);
    background-image: url("/assets/images/banners/03.png");
    background-size: cover;
    background-repeat: no-repeat;
    width: 93%;
    height: 20px;
    top: 0;
    border: none;
    padding: 8px;
    font-size: 25px;
    color: rgb(255, 255, 255);
    font-family: 'ZHFont', sans-serif;
    z-index: 1; 
}
.header-pets {
    background-color: rgba(255, 255, 255, 0);
    background-image: url("/assets/images/banners/03.png");
    background-size: cover;
    background-repeat: no-repeat;
    width: 93%;
    height: 20px;
    top: 0;
    border: none;
    padding: 8px;
    font-size: 25px;
    color: rgb(255, 255, 255);
    font-family: 'ZHFont', sans-serif;
    z-index: 1; 
}

.memo a {
    text-decoration: none;
    font-family: 'ZHFont', sans-serif;
    color: #87b5ff;
    transition: opacity 0.2s ease;
    font-weight: 200;
}

.memo a:hover {
    opacity: 0.7;
  }
  .memo b {
    text-decoration: none;
    font-family: 'ZHFont', sans-serif;
    color: #87b5ff;
    transition: opacity 0.2s ease;
    font-weight: 200;
}

body ::selection {
    background: #91ceff;
  }

@media (max-width: 768px) {
    .container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: auto;
        height: auto;
        margin: 90px 16px 120px;
        background-image: none;
    }

    .memo,
    .diary {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: auto;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(135, 181, 255, 0.45);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(10, 14, 32, 0.25);
    }

    .memo {
        order: -1;
        height: 260px;
        padding: 12px;
    }

    .diary {
        height: calc(70 * var(--vh, 1vh));
        overflow: hidden;
    }

    .diary iframe {
        width: 100%;
        height: 100%;
    }

    .illustration {
        max-height: 140px;
        max-width: 130px;
    }
}
