
::-webkit-scrollbar {
    width: 12px;
    background-color: #1c1c1c;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#444, #2a2a2a);
    border: 2px solid #b22222;
    border-radius: 10px;
    box-shadow: inset 0 0 5px #000;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(#666, #333);
    border-color: #d4af37; 
}


html, body {
    height: 100%;
    margin: 0;
    font-family: 'Lora', serif;
    background-color: #EBEBEB;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(180, 180, 180, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: mistDrift 120s linear infinite;
    z-index: 1;
    opacity: 0.25;
}

@keyframes mistDrift {
    0% { background-position: 0 0; }
    100% { background-position: 100px 120px; }
}


.main-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: -86px;
    padding: 60px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}


#navigation {
    width: 260px;
    padding: 30px 20px;
    background: none;
    border: 3px solid #d4af37;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(200, 170, 50, 0.25);
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
    position: sticky;
    top: 40px;
    z-index: 10;
}

#navigation a {
    display: block;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    color: #e8e1d0;
    background: linear-gradient(to right, #333, #1a1a1a);
    border: 2px solid #d4af37;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(200, 170, 50, 0.25);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    transform: translateX(0);
}

#navigation a:hover {
    background: #4c2f2f;
    color: #fff;
    box-shadow: 0 0 12px #d4af37;
    transform: translateX(-8px);
}

#navigation a::before {
    content: "◉ ";
    margin-right: 6px;
    color: #d4af37;
}


#content {
    flex: 1;
    max-width: 900px;
}

.contentx {
    padding: 40px 35px;
    font-size: 17.5px;
    line-height: 1.9;
    color: #e6e2da;
    backdrop-filter: blur(5px);
    background: linear-gradient(to right, #2e2e2e, #1a1a1a);
    border: 3px solid #b22222;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.6);
    position: relative;
    z-index: 2;
}



#header {
    background-image: url('images/head.jpg');
    background-repeat: no-repeat;
    background-position: center; 
    height: 698px;
    width: 100%;
    margin-top: -5px;
}


h1 {
    display: block;
    margin: 20px auto;
    padding: 20px 40px;
    font-size: 42px;
    font-family: 'Cinzel Decorative', serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #f7f3e7;
    background: linear-gradient(to bottom, #333, #111);
    border: 4px solid #d4af37;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(180, 20, 20, 0.3);
    text-align: center;
}

h1::before,
h1::after {
    content: "雲";
    font-size: 26px;
    margin: 0 16px;
    color: #b22222;
    text-shadow: 1px 1px 2px #000;
}


a {
    color: #d4af37; 
    text-decoration: none;      
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 2px dashed #b22222;
    transition: all 0.3s ease;
    font-family: 'Lora', serif;
}

a:hover,
a:focus {
    color: #fff3cc;
    border-bottom: 2px solid #d4af37;
    text-shadow: 0 0 6px rgba(220, 190, 80, 0.5);
}

i, em {
    font-style: italic;
    color: #e6d6c2;
    background: linear-gradient(to left, rgba(100,100,100,0.6), rgba(50,50,50,0.2));
    padding: 1px 6px;
    border-left: 3px solid #b22222;
    border-right: 3px solid #d4af37;
    border-radius: 4px;
    text-shadow: 1px 1px 3px rgba(50, 30, 30, 0.5);
}

b, strong {
    background: linear-gradient(to right, #444, #222);
    color: #fffbe6;
    padding: 3px 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(180, 20, 20, 0.6);
}


blockquote {
    position: relative;
    border: 3px double #d4af37;
    padding: 30px 40px;
    background: linear-gradient(to right, #2a2a2a, #1a1a1a);
    box-shadow: 0 0 25px rgba(220, 190, 80, 0.2);
    color: #e6e2da;
    margin: 40px auto;
    max-width: 560px;
    opacity: 0.85;
    font-size: 18px;
    line-height: 1.9;
}

blockquote::before {
    content: "「";
    font-size: 40px;
    color: #b22222;
    position: absolute;
    top: 10px;
    left: 10px;
}

blockquote::after {
    content: "」";
    font-size: 40px;
    color: #d4af37;
    position: absolute;
    bottom: 10px;
    right: 10px;
}


.contentx select,
.contentx textarea,
.contentx input {
    background: linear-gradient(to right, #2a2a2a, #1a1a1a);
    color: #e6e2da;
    border: 2px solid #b22222;
    border-radius: 6px;
    padding: 14px;
    margin: 10px 0;
    width: 100%;
    max-width: 560px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
    font-family: 'Lora', serif;
    font-size: 16px;
}

.contentx select option {
    background: #2a2a2a;
    color: #e6e2da;
}

.contentx select:focus,
.contentx textarea:focus,
.contentx input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 12px rgba(220, 190, 80, 0.4);
    outline: none;
}


@media screen and (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        padding: 30px;
    }

    #navigation {
        position: relative;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        top: 0;
        border-radius: 0;
    }

    #navigation a {
        flex: 1 1 40%;
        font-size: 14px;
        padding: 10px;
    }

    #header {
        height: 300px;
        background-position: center;
    }

    h1 {
        font-size: 30px;
        padding: 12px 24px;
        text-align: center;
    }

    .contentx {
        padding: 20px;
        font-size: 16px;
    }

    blockquote {
        padding: 20px;
        font-size: 16px;
    }
}

@media screen and (max-width: 600px) {
    #navigation a {
        flex: 1 1 100%;
        font-size: 13px;
    }

    h1 {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .main-container {
        padding: 20px;
    }
}
