
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
}

header {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    color: #262626;
}

#user-form {
    margin-top: 1rem;
}

#user-form input {
    padding: 0.5rem;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    margin-right: 0.5rem;
}

#user-form button {
    padding: 0.5rem 1rem;
    background-color: #0095f6;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.profile {
    padding: 2rem;
    display: flex;
    align-items: center;
    background-color: white;
    margin: 1rem;
    border-radius: 8px;
}

.profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 2rem;
}

.profile-info h2 {
    margin: 0 0 1rem 0;
}

.profile-info p {
    margin: 0.5rem 0;
    color: #8e8e8e;
}

.content-tabs {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #dbdbdb;
}

.tab-button {
    padding: 0.5rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #8e8e8e;
}

.tab-button.active {
    color: #262626;
    border-bottom: 2px solid #262626;
}

.content-section {
    display: none;
    padding: 1rem;
}

.content-section.active {
    display: block;
}

.story-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.story-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.story-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.story-item p {
    padding: 0.5rem;
    margin: 0;
    color: #262626;
}

.no-content, .error-content {
    text-align: center;
    padding: 2rem;
    color: #8e8e8e;
}

footer {
    text-align: center;
    padding: 1rem;
    color: #8e8e8e;
    margin-top: 2rem;
}

/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-media-container {
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
}

#modal-media, #modal-video {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.story-item {
    cursor: pointer;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 149, 246, 0.2);
    border-radius: 50%;
    border-top-color: #0095f6;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
