/* 2ch Classic Style */
body {
    margin: 0;
    padding: 10px;
    font-family: "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 12px;
    line-height: 1.4;
    background-color: #efefef;
    color: #000000;
}

/* ヘッダー */
.header {
    background-color: #ffccaa;
    border: 1px solid #aa8866;
    padding: 5px;
    margin-bottom: 10px;
}

.header h1 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #800000;
}

.header .breadcrumb {
    font-size: 11px;
    color: #666666;
    margin-top: 3px;
}

.header .breadcrumb a {
    color: #0000ee;
    text-decoration: underline;
}

/* 板一覧 */
.board-list {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    margin-bottom: 10px;
}

.board-list h2 {
    background-color: #ccccff;
    margin: 0;
    padding: 3px 5px;
    font-size: 13px;
    font-weight: bold;
    border-bottom: 1px solid #aaaaaa;
}

.board-item {
    padding: 2px 5px;
    border-bottom: 1px solid #eeeeee;
}

.board-item:hover {
    background-color: #f0f0f0;
}

.board-item a {
    color: #0000ee;
    text-decoration: none;
    font-size: 12px;
}

.board-item a:hover {
    text-decoration: underline;
}

.board-description {
    color: #666666;
    font-size: 11px;
    margin-left: 10px;
}

/* スレッド一覧 */
.thread-list {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    margin-bottom: 10px;
}

.thread-list h2 {
    background-color: #ccccff;
    margin: 0;
    padding: 3px 5px;
    font-size: 13px;
    font-weight: bold;
    border-bottom: 1px solid #aaaaaa;
}

.thread-item {
    padding: 2px 5px;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
}

.thread-item:hover {
    background-color: #f0f0f0;
}

.thread-number {
    color: #666666;
    font-size: 11px;
    margin-right: 5px;
    min-width: 20px;
}

.thread-title {
    flex-grow: 1;
}

.thread-title a {
    color: #0000ee;
    text-decoration: none;
    font-size: 12px;
}

.thread-title a:hover {
    text-decoration: underline;
}

.thread-info {
    color: #666666;
    font-size: 11px;
    margin-left: 10px;
}

/* レス表示 */
.post-form {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    padding: 5px;
    margin-bottom: 10px;
}

.post-form h3 {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #800000;
}

.post-form table {
    font-size: 12px;
}

.post-form table td {
    padding: 2px;
    vertical-align: top;
}

.post-form input[type="text"], .post-form textarea {
    font-family: "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 12px;
    border: 1px solid #999999;
    padding: 2px;
}

.post-form input[type="submit"] {
    font-family: "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 12px;
    background-color: #f0f0f0;
    border: 1px solid #999999;
    padding: 2px 10px;
    cursor: pointer;
}

.post-form input[type="submit"]:hover {
    background-color: #e0e0e0;
}

/* レス */
.post {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    margin-bottom: 5px;
    padding: 5px;
}

.post-header {
    font-size: 11px;
    color: #666666;
    margin-bottom: 3px;
}

.post-number {
    font-weight: bold;
    color: #000000;
}

.post-name {
    color: #117743;
    font-weight: bold;
}

.post-email {
    color: #0000ee;
}

.post-date {
    color: #666666;
}

.post-content {
    font-size: 12px;
    line-height: 1.4;
    margin: 3px 0;
    word-wrap: break-word;
}

/* リンク */
a {
    color: #0000ee;
}

a:visited {
    color: #551a8b;
}

/* ナビゲーション */
.navigation {
    text-align: center;
    margin: 10px 0;
    font-size: 11px;
}

.navigation a {
    color: #0000ee;
    text-decoration: none;
    margin: 0 5px;
}

.navigation a:hover {
    text-decoration: underline;
}

/* フッター */
.footer {
    text-align: center;
    font-size: 10px;
    color: #666666;
    margin-top: 20px;
    border-top: 1px solid #cccccc;
    padding-top: 10px;
}

/* エラーメッセージ */
.error {
    background-color: #ffcccc;
    border: 1px solid #cc0000;
    padding: 5px;
    margin: 10px 0;
    color: #cc0000;
    font-size: 12px;
}

/* 成功メッセージ */
.success {
    background-color: #ccffcc;
    border: 1px solid #00cc00;
    padding: 5px;
    margin: 10px 0;
    color: #006600;
    font-size: 12px;
}

/* レスのハイライト */
.post.highlight {
    background-color: #ffffcc;
    border-color: #ffcc00;
}

/* スマートフォン対応 */
@media (max-width: 480px) {
    body {
        padding: 5px;
        font-size: 11px;
    }
    
    .post-form input[type="text"], .post-form textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    .thread-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .thread-info {
        margin-left: 0;
        margin-top: 2px;
    }
}