/* =======================================
   index.css - ホーム画面専用のスタイル (統合版)
   ======================================= */

/* -------------------------------------- */
/* 1. メッセージボックス スタイル */
/* -------------------------------------- */
.success-message,
.info-message {
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out;
}

.success-message {
    background: linear-gradient(135deg, #f8bbd0 0%, #d81b60 100%);
    color: white;
}

.info-message {
    background: #fce4ec;
    color: #c2185b;
    border: 2px solid #f06292;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------- */
/* 2. ヒーローセクション スタイル */
/* -------------------------------------- */
.hero {
    background: linear-gradient(to bottom right, #f8bbd0 0%, #e91e63 600px); 
    color: white;
    padding: 60px 20px 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.women-only-badge {
    display: inline-block;
    background: white;
    color: #d81b60;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    margin-bottom: 12px;
    padding: 6px 0;
}

.hero .subtitle {
    font-size: 17px;
    margin-bottom: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.92);
    line-height: 1.7;
}

.hero p {
    font-size: 16px;
    margin-bottom: 28px;
    color: white;
}

/* ヒーロー登録ボタン（非ログイン時） */
.btn-hero-register {
    font-size: 17px !important;
    padding: 14px 40px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* -------------------------------------- */
/* 3. CTAボタン */
/* -------------------------------------- */
.btn {
    padding: 18px 45px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: #d81b60;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #d81b60;
}

/* アウトラインボタン（ログアウト時のイベント作成用） */
.btn-outline {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.btn-outline:hover {
    background: white;
    color: #d81b60;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* -------------------------------------- */
/* 4. 安全性メッセージ スタイル */
/* -------------------------------------- */
.safety-message {
    background: #fff;
    padding: 50px 20px;
    text-align: center;
}

.safety-message h2 {
    color: #d81b60;
    font-size: 32px;
    margin-bottom: 20px;
}

.safety-message p {
    color: #666;
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* -------------------------------------- */
/* 5. スマホ表示時のみ改行を表示 */
/* -------------------------------------- */
.mobile-break {
    display: none;
}

/* -------------------------------------- */
/* 6. メディアクエリ */
/* -------------------------------------- */
/* ============================================
   新規セクション共通
   ============================================ */

.home-section {
    background: #f7f7f7;
    padding: 28px 0 32px;
}

.home-section-alt {
    background: #fff;
}

.home-section-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fce4ec;
}

.home-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #c2185b;
}

.home-section-more {
    font-size: 0.8rem;
    color: #e91e8c;
    text-decoration: none;
    white-space: nowrap;
}

.home-section-more:hover { text-decoration: underline; }

.home-empty {
    color: #bbb;
    font-size: 0.88rem;
    text-align: center;
    padding: 20px 0;
}

/* ============================================
   ⑤ なぜTennis She？
   ============================================ */

.home-features {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    padding: 28px 0 32px;
}

.home-features .home-section-title {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 18px;
    color: #c2185b;
}

.home-features .home-section-inner {
    text-align: center;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 4px;
}

.feature-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 12px;
    box-shadow: 0 2px 8px rgba(233,30,140,0.1);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.feature-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #c2185b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.feature-card p {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   ② 最新イベント
   ============================================ */

.home-event-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-event-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.home-event-card:hover {
    border-color: #f48fb1;
    box-shadow: 0 3px 14px rgba(233,30,140,0.12);
}

.hev-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 38px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border-radius: 10px;
    padding: 6px 8px;
}

.hev-month {
    font-size: 0.65rem;
    color: #c2185b;
    font-weight: 700;
    line-height: 1;
}

.hev-day {
    font-size: 1.3rem;
    font-weight: 800;
    color: #c2185b;
    line-height: 1.1;
}

.hev-wd {
    font-size: 0.68rem;
    color: #555;
    font-weight: 600;
}

.hev-wd.sat { color: #1976d2; }
.hev-wd.sun { color: #d32f2f; }

.hev-info {
    flex: 1;
    min-width: 0;
}

.hev-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.hev-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 3px;
}

.hev-host {
    font-size: 0.73rem;
    color: #aaa;
}

.hev-arrow {
    font-size: 1.3rem;
    color: #e91e8c;
    flex-shrink: 0;
    font-weight: 300;
}

/* ============================================
   ③ テニスしたい投稿
   ============================================ */

.home-post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-post-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    border: 1.5px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: box-shadow 0.15s, border-color 0.15s;
}

.home-post-card:hover {
    border-color: #f48fb1;
    box-shadow: 0 3px 14px rgba(233,30,140,0.1);
}

.home-post-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8bbd0, #e91e8c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.home-post-avatar img {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.home-post-content {
    flex: 1;
    min-width: 0;
}

.home-post-user {
    font-size: 0.82rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-post-pref {
    font-size: 0.73rem;
    color: #aaa;
    font-weight: 400;
}

.home-post-body {
    font-size: 0.88rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 5px;
}

.home-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.home-post-tag {
    font-size: 0.7rem;
    background: #fce4ec;
    color: #c2185b;
    border-radius: 20px;
    padding: 2px 7px;
}

/* ============================================
   メディアクエリ
   ============================================ */

@media (max-width: 768px) {
    /* ヒーロー */
    .hero {
        padding: 32px 16px 48px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-tagline {
        font-size: 17px;
    }

    .hero .subtitle {
        font-size: 15px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .btn {
        padding: 13px 30px;
        font-size: 15px;
    }

    .btn-hero-register {
        padding: 13px 36px !important;
        font-size: 16px !important;
    }

    /* 安全メッセージ */
    .safety-message {
        padding: 28px 16px;
    }

    .safety-message h2 {
        font-size: 20px;
    }

    .safety-message p {
        font-size: 14px;
    }

    .mobile-break {
        display: inline;
    }

    /* なぜTennis She？ - モバイルは縦並び */
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-card {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
        text-align: left;
    }

    .feature-icon {
        font-size: 1.5rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .feature-card h3 {
        margin-bottom: 3px;
    }
}