/* 宣伝部員プロフィールサービス - 共通スタイル */

/* 基本設定 */
body {
    font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* コンテナ */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.container.narrow {
    max-width: 600px;
}

/* ログインページ用 */
.login-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ヘッダー */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #c44569;
    margin-bottom: 10px;
}

.logo.large {
    font-size: 24px;
    margin-bottom: 20px;
}

.heart {
    color: #ff6b9d;
    font-size: 16px;
    margin: 0 3px;
}

.heart.large {
    font-size: 20px;
    margin: 0 5px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* プロフィールヘッダー */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid #ff6b9d;
}

.profile-icon.large {
    width: 100px;
    height: 100px;
    margin-right: 25px;
    border: 4px solid #ff6b9d;
}

.profile-info h1 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 24px;
}

.profile-info h1.large {
    font-size: 28px;
    margin-bottom: 8px;
}

.profile-info .username {
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
}

.profile-info .username.large {
    font-size: 18px;
    margin-bottom: 15px;
}

.profile-url {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    display: inline-block;
}

.profile-url.large {
    padding: 10px 15px;
    border-radius: 25px;
    margin-bottom: 10px;
}

.branch {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.branch.large {
    font-size: 16px;
    margin-top: 8px;
    font-weight: 500;
}

.join-date {
    color: #999;
    font-size: 14px;
    margin-top: 5px;
}

/* フォーム */
.form-group {
    margin-bottom: 20px;
}

.form-group.large {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group label.large {
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input.large, .form-group textarea.large {
    padding: 12px;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #ff6b9d;
    outline: none;
}

.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* セクション */
.section {
    margin-bottom: 30px;
}

.section.large {
    margin-bottom: 35px;
}

.section h2 {
    color: #c44569;
    font-size: 18px;
    margin-bottom: 15px;
    border-left: 4px solid #ff6b9d;
    padding-left: 10px;
}

.section h2.large {
    font-size: 20px;
    margin-bottom: 18px;
    padding-left: 12px;
}

.section-title {
    color: #c44569;
    font-size: 18px;
    margin-bottom: 15px;
    border-left: 4px solid #ff6b9d;
    padding-left: 10px;
}

/* バイオ */
.bio {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.bio.large {
    padding: 20px;
    border-radius: 12px;
    line-height: 1.8;
    font-size: 16px;
}

/* メンバーグリッド */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.members-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.members-grid.large {
    gap: 12px;
}

.member-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.member-option.large {
    padding: 12px;
}

.member-option:hover {
    border-color: #ff6b9d;
    background: #fff5f8;
}

.member-option input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.member-option.selected {
    border-color: #ff6b9d;
    background: #fff5f8;
}

.member-tag {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.member-tag.large {
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

/* メンバーカラー定義 */
.member-option.hakooshi, .member-tag.hakooshi {
    background: #F19300 !important;
    border-color: #F19300 !important;
    color: white !important;
}

.member-option.hakooshi:hover, .member-option.hakooshi.selected {
    background: rgba(241, 147, 0, 0.1) !important;
    border-color: #F19300 !important;
    color: #F19300 !important;
}

.member-option.kanami, .member-tag.kanami {
    background: #4EA2E7 !important;
    border-color: #4EA2E7 !important;
    color: white !important;
}

.member-option.kanami:hover, .member-option.kanami.selected {
    background: rgba(78, 162, 231, 0.1) !important;
    border-color: #4EA2E7 !important;
    color: #4EA2E7 !important;
}

.member-option.julia, .member-tag.julia {
    background: #A469D1 !important;
    border-color: #A469D1 !important;
    color: white !important;
}

.member-option.julia:hover, .member-option.julia.selected {
    background: rgba(164, 105, 209, 0.1) !important;
    border-color: #A469D1 !important;
    color: #A469D1 !important;
}

.member-option.hitoka, .member-tag.hitoka {
    background: #E14D49 !important;
    border-color: #E14D49 !important;
    color: white !important;
}

.member-option.hitoka:hover, .member-option.hitoka.selected {
    background: rgba(225, 77, 73, 0.1) !important;
    border-color: #E14D49 !important;
    color: #E14D49 !important;
}

.member-option.haruka, .member-tag.haruka {
    background: #DC649D !important;
    border-color: #DC649D !important;
    color: white !important;
}

.member-option.haruka:hover, .member-option.haruka.selected {
    background: rgba(220, 100, 157, 0.1) !important;
    border-color: #DC649D !important;
    color: #DC649D !important;
}

.member-option.aki, .member-tag.aki {
    background: #F4D000 !important;
    border-color: #F4D000 !important;
    color: #333 !important;
}

.member-option.aki:hover, .member-option.aki.selected {
    background: rgba(244, 208, 0, 0.1) !important;
    border-color: #F4D000 !important;
    color: #F4D000 !important;
}

.member-option.hiyori, .member-tag.hiyori {
    background: #4FBC75 !important;
    border-color: #4FBC75 !important;
    color: white !important;
}

.member-option.hiyori:hover, .member-option.hiyori.selected {
    background: rgba(79, 188, 117, 0.1) !important;
    border-color: #4FBC75 !important;
    color: #4FBC75 !important;
}

/* メンバータグのシャドウもカラーに合わせる */
.member-tag.hakooshi.large {
    box-shadow: 0 2px 8px rgba(241, 147, 0, 0.3);
}

.member-tag.kanami.large {
    box-shadow: 0 2px 8px rgba(78, 162, 231, 0.3);
}

.member-tag.julia.large {
    box-shadow: 0 2px 8px rgba(164, 105, 209, 0.3);
}

.member-tag.hitoka.large {
    box-shadow: 0 2px 8px rgba(225, 77, 73, 0.3);
}

.member-tag.haruka.large {
    box-shadow: 0 2px 8px rgba(220, 100, 157, 0.3);
}

.member-tag.aki.large {
    box-shadow: 0 2px 8px rgba(244, 208, 0, 0.3);
}

.member-tag.hiyori.large {
    box-shadow: 0 2px 8px rgba(79, 188, 117, 0.3);
}

/* SNS */
.sns-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.sns-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.sns-label {
    min-width: 100px;
    font-weight: bold;
    color: #666;
}

.sns-inputs {
    flex: 1;
    display: flex;
    gap: 10px;
}

.sns-inputs input {
    margin: 0;
}

.sns-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.sns-links.large {
    gap: 18px;
}

.sns-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.sns-link.large {
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 500;
}

.sns-link:hover {
    border-color: #ff6b9d;
    background: #fff5f8;
}

.sns-link.large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

.sns-icon {
    margin-right: 8px;
    font-size: 16px;
}

.sns-icon.large {
    margin-right: 10px;
    font-size: 18px;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn.large {
    padding: 15px 30px;
    margin: 0 12px;
    border-radius: 30px;
    font-size: 16px;
}

.btn-primary {
    background: #ff6b9d;
    color: white;
}

.btn-primary.large {
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-primary:hover {
    background: #e55a8a;
}

.btn-primary.large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    border-color: #ff6b9d;
    color: #ff6b9d;
}

.btn-secondary.large:hover {
    transform: translateY(-2px);
}

.submit-btn {
    background: #ff6b9d;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #e55a8a;
}

.cancel-btn {
    background: #f8f9fa;
    color: #666;
    padding: 15px 30px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
    text-decoration: none;
    display: block;
    text-align: center;
    box-sizing: border-box;
}

.cancel-btn:hover {
    border-color: #ff6b9d;
    color: #ff6b9d;
}

.twitter-login-btn {
    background: #1da1f2;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
    cursor: pointer;
}

.twitter-login-btn:hover {
    background: #0d8bd9;
}

/* アクション */
.actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.actions.large {
    margin-top: 40px;
    padding-top: 25px;
}

/* メッセージ */
.welcome-message {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.error {
    background: #ffe6e6;
    color: #d00;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error.large {
    padding: 15px;
}

.empty-state {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.empty-state.large {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* その他 */
.user-info {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.description {
    margin-top: 30px;
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #ff6b9d;
}

/* ベストランキング */
.best-ranking {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.best-ranking.large {
    padding: 25px;
    border-radius: 12px;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #ff6b9d;
}

.rank-item.large {
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
}

.rank-item:last-child {
    margin-bottom: 0;
}

.rank-medal {
    font-size: 24px;
    margin-right: 15px;
}

.rank-medal.large {
    font-size: 28px;
    margin-right: 18px;
}

.rank-content {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.rank-content.large {
    font-size: 18px;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .container {
        padding: 20px;
    }
    
    .sns-inputs {
        flex-direction: column;
    }
    
    .btn {
        margin: 5px;
        display: block;
        text-align: center;
    }
}
