:root {
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --profile-text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-text: #333333;
    --card-hover-bg: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    color: var(--card-text);
}

.container {
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.profile {
    margin-bottom: 30px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 12px;
}

.profile h1 {
    font-size: 1.6rem;
    color: var(--profile-text-color);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.profile ruby rt {
    font-size: 0.5em;
    font-weight: normal;
    letter-spacing: 0.05em;
}

.profile p {
    font-size: 0.95rem;
    color: var(--profile-text-color);
    opacity: 0.95;
    line-height: 1.5;
    white-space: pre-wrap;
}

.items-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 1. リンクカード */
.item-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--card-bg);
    color: var(--card-text);
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.item-link-card:hover {
    transform: translateY(-2px);
    background: var(--card-hover-bg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.link-icon-fa,
.link-icon-img {
    position: absolute;
    left: 20px;
}

.link-icon-fa {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.link-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

/* 2. テキストボックス */
.item-text-card {
    background: var(--card-bg);
    color: var(--card-text);
    padding: 18px 22px;
    border-radius: 16px;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* 3. 画像カード */
.item-image-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.item-image-card a {
    display: block;
    text-decoration: none;
}

.item-image-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.item-image-caption {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--card-text);
    text-align: center;
}