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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0;
}

.header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #000;
    padding: 15px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 300;
}

.header-url {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.main-content {
    padding: 20px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    flex: 1;
    justify-content: center;
}

.footer {
    width: 100%;
    background: #fff;
    border-top: 1px solid #000;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.container {
    background: #fff;
    padding: 40px 20px;
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: block;
}

h1 {
    color: #000;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 300;
}

.subtitle {
    color: #000;
    margin-bottom: 30px;
    font-size: 1.2em;
}

.intro {
    margin-bottom: 30px;
    font-size: 1em;
    line-height: 1.8;
    color: #000;
}

.intro p {
    margin-bottom: 15px;
}

.intro p:last-child {
    margin-bottom: 0;
}

.intro-expandable {
    display: none;
}

.intro-expandable.expanded {
    display: block;
}

.intro-toggle {
    margin-top: 15px;
    color: #666;
    font-size: 0.85em;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.intro-toggle:hover {
    color: #000;
}

.expandable-list {
    display: none;
    margin-top: 10px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.expandable-list.expanded {
    display: block;
}


.toggle-button {
    margin-top: 10px;
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #666;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.expandable-list:empty + .toggle-button {
    display: none;
}

.toggle-button:hover {
    background: #e8e8e8;
    color: #000;
    border-color: #ccc;
}

.skills {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.skills h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-tag {
    background: #fff;
    color: #000;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    font-size: 0.9em;
}

.contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.contact h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.domains {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.domains h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.domain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.domain-item {
    background: #fff;
    color: #000;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    font-size: 0.9em;
    font-family: monospace;
}

.subscriptions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.subscriptions h3 {
    color: #000;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.subscription-summary {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.summary-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 600;
}

.summary-value {
    font-size: 1.4em;
    color: #000;
    font-weight: 700;
    font-family: monospace;
}

.subscription-category {
    margin-top: 25px;
}

.subscription-category:first-of-type {
    margin-top: 0;
}

.subscription-category-title {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    border-left: 3px solid #666;
}

.subscription-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.subscription-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.service-name {
    font-weight: 600;
    font-size: 1em;
    color: #000;
}

.service-cost {
    font-size: 0.9em;
    color: #333;
    font-family: monospace;
}

.service-renewal {
    font-size: 0.85em;
    color: #666;
}

.gaming-container {
    margin-top: 0;
}

.gaming-info,
.gaming-ids,
.gaming-profiles,
.favorite-people,
.favorite-musicians,
.favorite-subculture-music,
.favorite-characters,
.favorite-vtubers {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.gaming-info {
    border-top: none;
    padding-top: 0;
}

.gaming-info h3,
.gaming-ids h3,
.gaming-profiles h3,
.favorite-people h3,
.favorite-musicians h3,
.favorite-subculture-music h3,
.favorite-characters h3,
.favorite-vtubers h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.profile-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.profile-item {
    background: #fff;
    color: #000;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-item:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.game-category {
    margin-top: 20px;
    padding-top: 15px;
}

.game-category:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

.category-title {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    border-left: 3px solid #666;
}

.game-list {
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.game-item {
    display: block;
    background: none;
    color: #000;
    padding: 6px 12px;
    border: none;
    border-left: 2px solid #e0e0e0;
    font-size: 0.9em;
    margin-bottom: 5px;
    text-align: left;
}

.game-item small {
    color: #666;
    font-size: 0.8em;
}

.id-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.id-item {
    background: #fff;
    color: #000;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    font-size: 0.9em;
    font-family: monospace;
}

.people-list,
.musician-list,
.subculture-music-list,
.character-list,
.vtuber-list {
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.person-item,
.musician-item,
.subculture-music-item,
.character-item,
.vtuber-item {
    display: block;
    background: none;
    color: #000;
    padding: 6px 12px;
    border: none;
    border-left: 2px solid #e0e0e0;
    font-size: 0.9em;
    margin-bottom: 5px;
    text-align: left;
}

.person-item small,
.musician-item small,
.subculture-music-item small,
.character-item small,
.vtuber-item small {
    color: #666;
    font-size: 0.8em;
}

@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
        width: 95%;
    }

    h1 {
        font-size: 1.5em;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        font-size: 50px;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-link {
        width: 100%;
    }

    .skill-tags,
    .game-list,
    .people-list,
    .musician-list,
    .subculture-music-list,
    .character-list,
    .vtuber-list,
    .domain-list {
        gap: 8px;
    }

    .skill-tag,
    .game-item,
    .person-item,
    .musician-item,
    .subculture-music-item,
    .character-item,
    .vtuber-item,
    .domain-item {
        padding: 6px 12px;
        font-size: 0.85em;
    }
}
