* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: #f5f5f5;
}

.main-container {
    display: flex;
    height: 100vh;
    gap: 2px;
}

.article-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    overflow: hidden;
}

.article-title {
    padding: 0.5svw 0 0.5svw 0;
    background-color: #fff;
    margin: 1svw 5vw 0 5vw;
}

.title-underline {
    height: 0.25svw;
    background-color: #ff4130;
    margin: 0 0 1svw 5vw;
}

.article-title h1 {
    font-family: "BIZ UDGothic", sans-serif;
    font-size: 1.8svw;
    font-weight: 700;
    font-style: normal;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0 0 0 0;
    text-align: center;
}

.article-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.article-image {
    flex: 1;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 1svw 2svw 2svw 2svw;
    width: 20svw;
    height: 20svw;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #ffffff;
    padding: 0;
    margin: 0;
    display: block;
}

.article-text {
    flex: 1;
    margin-top: 1svw;
    padding: 0 1svw 0 0;
    overflow-y: auto;
    background-color: #fff;
}

.article-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-text {
    font-family: "BIZ UDGothic", sans-serif;
    font-size: 1.25svw;
    font-weight: bold;
    line-height: 1.5;
    color: #333;
    margin: 0 0 1.5rem 0;
}

.article-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5svw 1svw 1svw 0svw;
}

.article-date {
    font-size: 1.25svw;
    color: #666;
    font-weight: 500;
}

.article-logo {
    display: flex;
    align-items: center;
}

.article-logo img {
    height: 3svw;
    width: auto;
    object-fit: contain;
}

/* 投稿者情報スタイル */
.article-info {
    display: flex;
    align-items: center;
    gap: 1svw;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.2svw;
    font-size: 1svw;
}

.author-label {
    color: #999;
    font-weight: 500;
    white-space: nowrap;
}

.editable-author {
    padding: 0.4svw 0.6svw;
    border: 1px dashed #ddd;
    border-radius: 3px;
    font-size: 1svw;
    font-weight: 600;
    color: #333;
    outline: none;
    min-width: 10svw;
    display: inline-flex;
    align-items: center;
}

.editable-author:empty:before {
    content: "名前";
    color: #aaa;
    font-weight: 400;
}

.editable-author:focus {
    border: 1px dashed #4285f4;
    background: #fafafa;
}

.author-type-badge {
    display: inline-block;
    padding: 0.15svw 0.4svw;
    border-radius: 3px;
    font-size: 0.75svw;
    font-weight: 600;
    white-space: nowrap;
}

.author-type-badge.badge-child {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.author-type-badge.badge-adult {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1rem;
}

.error {
    color: #e74c3c;
    padding: 2rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        gap: 2px;
    }

    .article-column {
        height: 50vh;
    }

    .article-title h1 {
        font-size: 1.5rem;
    }

    .article-body {
        flex-direction: column;
    }

    .article-image,
    .article-text {
        flex: 1;
    }

    .article-text {
        padding: 1.5rem;
    }
}