body {
    font-size: 12px;
    background-color: #f8f5ff;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.header {
    background: linear-gradient(to bottom,
            #ddc7ff 0%,
            #c7a7ff 10%,
            #b187ff 20%,
            #9b67dd 30%,
            #8547bb 40%,
            #7237aa 50%,
            #8547bb 60%,
            #9b67dd 70%,
            #b187ff 80%,
            #c7a7ff 90%,
            #ddc7ff 100%);
    background-image:
        /* リボンの織り目パターン */
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.1) 0px,
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px,
            transparent 3px),
        repeating-linear-gradient(-45deg,
            rgba(0, 0, 0, 0.05) 0px,
            rgba(0, 0, 0, 0.05) 1px,
            transparent 1px,
            transparent 3px),
        /* 光沢効果 */
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.1) 25%,
            rgba(0, 0, 0, 0.1) 75%,
            rgba(0, 0, 0, 0.2) 100%);
    box-shadow:
        0 3px 5px rgba(0, 0, 0, 0.49),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 56px;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.8),
        2px 2px 2px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    overflow: hidden;
    border-radius: 0;
}

/* リボンの左端の折り返し効果 */
.header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 15px;
    height: 100%;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            transparent 100%);
    z-index: 1;
}

/* リボンの右端の折り返し効果 */
.header::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 15px;
    height: 100%;
    background: linear-gradient(to left,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            transparent 100%);
    z-index: 1;
}

/* 中央のハイライト効果 */
.header .header-text {
    position: relative;
    z-index: 2;
}

.header .header-text::before {
    content: "";
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 10px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    border-radius: 50%;
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(-50%) scaleX(1);
    }

    50% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(1.5);
    }
}

.navigation {
    background: linear-gradient(to bottom, #f0f0ff 0%, #e0d5ff 50%, #d0c5ff 100%);
    border: 2px outset #c5b8dd;
    margin: 8px 0;
    padding: 8px;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.navigation strong {
    color: #4c1d95;
    text-shadow: 1px 1px 0px #ffffff;
}

.thread-list {
    margin: 10px;
}

.thread-item {
    border-bottom: 1px dotted #c4b5fd;
    padding: 3px 0;
    font-size: 12px;
}

.thread-title {
    color: #7c3aed;
    text-decoration: underline;
}

.thread-title:visited {
    color: #a855f7;
}

.thread-info {
    color: #7c2d92;
    font-size: 10px;
}

.thread-header,
.page-title {
    margin: 10px;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 14px;
    color: #5b21b6;
    background: linear-gradient(to bottom, #f8f5ff 0%, #f0ebff 100%);
    border: 1px solid #c4b5fd;
    border-radius: 2px;
    text-shadow: 1px 1px 0px #ffffff;
    box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.1);
}

.posts-container {
    margin: 10px;
}

.post {
    border: 1px solid #c4b5fd;
    padding: 8px;
    font-size: 12px;
    background-color: #ffffff;
    margin: 3px 0;
}

/* 基本レス（レベル0） */
.post {
    margin-left: 0;
}

/* レス返信（レベル1） - 20px右にずれる */
.post.reply-1 {
    margin-left: 20px;
    border-left: 3px solid #c4b5fd;
}

/* レス返信（レベル2） - 40px右にずれる */
.post.reply-2 {
    margin-left: 40px;
    border-left: 3px solid #ddd6fe;
}

/* レス返信（レベル3） - 60px右にずれる */
.post.reply-3 {
    margin-left: 60px;
    border-left: 3px solid #ede9fe;
}

@media (max-width: 800px) {
    .post.reply-1 {
        margin-left: 10px;
    }

    .post.reply-2 {
        margin-left: 20px;
    }

    .post.reply-3 {
        margin-left: 30px;
    }
}

.post-header {
    color: #7c3aed;
    font-weight: bold;
    margin-bottom: 3px;
}

.post-number {
    color: #8b5cf6;
    margin-right: 5px;
}

.post-content {
    margin-left: 15px;
    white-space: pre-wrap;
}

.sage {
    color: #be185d;
}

.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 10px;
    color: #6b21a8;
    background: linear-gradient(to bottom, #f8f5ff 0%, #e9d5ff 100%);
    border-top: 2px solid #c4b5fd;
    border-bottom: 1px solid #ffffff;
    padding: 12px;
    text-shadow: 1px 1px 0px #ffffff;
    box-shadow: inset 0 1px 0 #ffffff, 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.info-box {
    background-color: #f8f5ff;
    border: 1px solid #c4b5fd;
    margin: 10px;
    padding: 8px;
    font-size: 11px;
}

.info-box.warning {
    background-color: #fef7ff;
    border: 1px solid #f3e8ff;
}

.rules {
    background-color: #f8f5ff;
    border: 1px solid #c4b5fd;
    margin: 10px;
    padding: 10px;
    font-size: 11px;
}

.rules ul {
    margin: 5px 0;
    padding-left: 20px;
}

.rules li {
    margin: 3px 0;
}

.anchor {
    color: #dc2626;
    text-decoration: none;
}

.anchor:hover {
    background-color: #fef3c7;
}

/* リンクのスタイル */
a {
    color: #7c3aed;
}

a:visited {
    color: #a855f7;
}