:root {
    --bg-color: #f4f6f9;
    --text-main: #333333;
    --text-light: #555555;
    --accent-color: #4A90E2;
    --card-bg: #ffffff;
}

* { box-sizing: border-box; }

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

header {
    background-color: var(--card-bg);
    padding: 20px 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
}

.back-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.back-btn:hover { text-decoration: underline; }

.container {
    max-width: 1000px;
    margin: 32px auto;
    padding: 0 16px;
}

.profile-wrapper {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.profile-image {
    flex: 1 1 340px;
    min-height: 280px;
    background: #eee center/cover no-repeat;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
    display: block;
}

.profile-info {
    flex: 1 1 400px;
    padding: 36px;
}

.profile-info h2 {
    font-size: 1.8rem;
    margin: 0 0 8px;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
}

.profile-info .unit-name {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.profile-info .unit-name a {
    color: #fff;
    text-decoration: none;
}

.profile-info h3 {
    font-size: 1.15rem;
    color: var(--accent-color);
    margin: 28px 0 10px;
}

.profile-info p,
.profile-info li {
    color: var(--text-light);
}

.profile-info a {
    color: var(--accent-color);
}

.album-list,
.history-list,
.social-links {
    padding-left: 1.2em;
    margin: 0;
}

.social-links {
    list-style: none;
    padding-left: 0;
}

.social-links li { margin: 6px 0; }

.link-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.link-group a {
    display: inline-block;
    text-decoration: none;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 5px 14px;
    border-radius: 20px;
}

.link-group a:hover {
    background: var(--accent-color);
    color: #fff;
}

.store-banner {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
}

.store-banner img {
    display: block;
    max-width: 240px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 8px;
}

.activity-category {
    font-weight: bold;
    margin: 14px 0 6px;
    color: #333;
}

.note-box {
    text-align: left;
    padding: 16px 20px;
    border-left: 4px solid #444;
    background: #f9f9f9;
    border-radius: 0 8px 8px 0;
    margin: 12px 0 24px;
}

footer {
    text-align: center;
    padding: 28px;
    color: #888;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .profile-wrapper { flex-direction: column; }
    .profile-image { min-height: 240px; }
    .profile-info { padding: 22px; }
    .back-btn {
        position: static;
        display: inline-block;
        transform: none;
        margin-bottom: 8px;
    }
    header { text-align: left; }
}
