:root {
    --primary-color: #0066cc;
    --primary-hover: #0052a3;
    --border-color: #e2e8f0;
    --text-main: #2d3748;
    --text-muted: #718096;
    --bg-card: #ffffff;
    --bg-tag: #edf2f7;
}

.about-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* 共通カードスタイル */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 2rem;
}

/* プロフィール */
.profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* プロフィールアバター容器 */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden; /* 枠外の余白をカット */
    border: 2px solid var(--border-color); /* 枠線は容器側につける */
    flex-shrink: 0;
    background-color: #fff;
}

/* 画像自体の調整 */
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像上部のイラスト位置に合わせて切り抜き位置を微調整 */
    object-position: center 15%; 
    border: none;
    border-radius: 0;
}

.profile-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--text-main);
}

.profile-handle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.profile-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
}

.profile-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

/* セクションタイトル */
.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

/* サークル・活動 */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.activity-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.activity-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: #ebf8ff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.activity-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--text-main);
}

.activity-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.activity-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* リンク集 */
.links-section {
    margin-bottom: 2.5rem;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.link-icon {
    font-size: 1.75rem;
}

.link-details {
    display: flex;
    flex-direction: column;
}

.link-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.link-url {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 環境・技術スタック */
.env-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.env-category {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
    border-bottom: 2px solid #ebf8ff;
    padding-bottom: 0.4rem;
}

.env-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.env-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.env-list li:last-child {
    border-bottom: none;
}

@media (max-width: 640px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}