/* ============================================
   佐藤さん暇つぶしチャット Web版
   レトロ出会い系マッチングアプリ風スタイル
   ============================================ */

/* リセット & 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MS PGothic', 'ＭＳ Ｐゴシック', 'Hiragino Kaku Gothic Pro', 'メイリオ', sans-serif;
    background: linear-gradient(180deg, #ff6b9d 0%, #ff8fab 50%, #ffc3d4 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* 背景パターン（レトロなドット柄） */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   ヘッダー
   ============================================ */
.header {
    background: linear-gradient(90deg, #d4145a, #ff6b9d, #d4145a);
    padding: 8px 0;
    text-align: center;
    border-bottom: 3px solid #b8003d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10;
}

.header-inner {
    animation: sparkle 2s ease-in-out infinite;
}

.header-text {
    color: #fff;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   メインコンテンツ
   ============================================ */
.main-content {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 15px;
    position: relative;
    z-index: 1;
}

/* ============================================
   ロゴセクション
   ============================================ */
.logo-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 25px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,240,245,0.95) 100%);
    border-radius: 15px;
    border: 3px solid #ff6b9d;
    box-shadow:
        0 4px 15px rgba(212, 20, 90, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo-heart {
    font-size: 32px;
    color: #ff1493;
    animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.logo-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 28px;
    color: #d4145a;
    font-weight: bold;
    text-shadow: 2px 2px 0 #ffc0cb;
}

.logo-sub {
    font-size: 18px;
    color: #ff6b9d;
    font-weight: bold;
}

.logo-tagline {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    font-style: italic;
}

.member-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(90deg, #ffeb3b, #ffc107);
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid #ff9800;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.count-label {
    font-size: 12px;
    color: #795548;
}

.count-number {
    font-size: 20px;
    font-weight: bold;
    color: #d32f2f;
    animation: countPulse 2s ease-in-out infinite;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.count-unit {
    font-size: 14px;
    color: #795548;
}

/* ============================================
   お知らせバナー
   ============================================ */
.notice-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #fff8e1, #ffecb3);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.notice-icon {
    font-size: 20px;
    margin-right: 10px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.notice-text {
    flex: 1;
    font-size: 12px;
    color: #795548;
    overflow: hidden;
}

.notice-text marquee {
    color: #d32f2f;
    font-weight: bold;
}

/* ============================================
   ナビゲーションボタン
   ============================================ */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.nav-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.nav-btn:active {
    transform: translateY(0);
}

/* チャットボタン */
.btn-chat {
    background: linear-gradient(135deg, #ff4081, #f50057);
    border: 2px solid #c51162;
}

.btn-chat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* マイページボタン */
.btn-mypage {
    background: linear-gradient(135deg, #7c4dff, #651fff);
    border: 2px solid #4a148c;
}

/* ランキングボタン */
.btn-ranking {
    background: linear-gradient(135deg, #ffd740, #ffab00);
    border: 2px solid #ff8f00;
    color: #5d4037;
}

/* ポイントボタン */
.btn-point {
    background: linear-gradient(135deg, #00e676, #00c853);
    border: 2px solid #00a040;
}

.btn-icon {
    font-size: 28px;
    margin-right: 15px;
}

.btn-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.btn-title {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-desc {
    font-size: 11px;
    opacity: 0.9;
}

.btn-badge {
    position: absolute;
    top: -5px;
    right: 10px;
    background: #ff1744;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    animation: badgePulse 1s ease-in-out infinite;
}

.btn-badge.sale {
    background: #ff6d00;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================
   新着メンバー
   ============================================ */
.new-members {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    border: 3px solid #ff6b9d;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(212, 20, 90, 0.2);
}

.section-title {
    text-align: center;
    font-size: 16px;
    color: #d4145a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #ffc0cb;
}

.title-deco {
    color: #ffd700;
    animation: spin 3s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-card {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(90deg, #fff0f5, #ffe4ec);
    border-radius: 10px;
    border: 1px solid #ffb6c1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.member-card:hover {
    background: linear-gradient(90deg, #ffe4ec, #ffd6e0);
    transform: translateX(5px);
}

.member-avatar {
    font-size: 32px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #ff6b9d;
    margin-right: 12px;
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-name {
    font-size: 14px;
    font-weight: bold;
    color: #d4145a;
}

.member-age {
    font-size: 11px;
    color: #888;
}

.member-status {
    font-size: 10px;
    color: #888;
    padding: 3px 8px;
    background: #f0f0f0;
    border-radius: 10px;
}

.member-status.online {
    background: #4caf50;
    color: #fff;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================
   フッター
   ============================================ */
.footer {
    background: linear-gradient(90deg, #4a148c, #7b1fa2);
    padding: 20px 15px;
    text-align: center;
    margin-top: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #e1bee7;
    text-decoration: none;
    font-size: 11px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.copyright {
    font-size: 10px;
    color: #ce93d8;
}

/* ============================================
   レスポンシブ対応
   ============================================ */
@media (min-width: 481px) {
    .main-content {
        padding: 30px 20px;
    }

    .logo-main {
        font-size: 36px;
    }

    .logo-sub {
        font-size: 22px;
    }
}
