/* ==========================================================
   home.css — ホーム画面専用スタイル
   ========================================================== */

#content-home { padding-bottom: 40px; }

/* ── Hero ── */
.home-hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fd79a8 0%, #a29bfe 50%, #6c5ce7 100%);
    padding: 40px 28px 32px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(232, 67, 147, 0.25);
}
.home-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.18) 0, transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(255,255,255,0.14) 0, transparent 40%);
    pointer-events: none;
}
.home-hero-content { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.home-tagline {
    font-size: 0.9rem; font-weight: 600; letter-spacing: 0.18em;
    opacity: 0.85; text-transform: uppercase; margin-bottom: 8px;
}
.home-title {
    font-size: 2.1rem; font-weight: 800; line-height: 1.25;
    margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.home-title-sub { font-size: 1.5rem; font-weight: 700; opacity: 0.95; }
/* 統合ホーム: 「総合攻略サイト」を「デート・ア・ライブLLB」と同じサイズに */
.home-title.home-title-onesize .home-title-sub {
    font-size: inherit;
    font-weight: inherit;
    opacity: 1;
}
/* 非公式ディスクレーマ */
.home-desc-disclaimer {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.82rem;
    opacity: 0.88;
    font-weight: 500;
}
.home-desc {
    font-size: 0.95rem; line-height: 1.8; opacity: 0.95;
    margin-bottom: 22px; max-width: 720px;
}

/* ── Visitor Counter ── */
.home-counter-card {
    display: inline-flex; align-items: center; gap: 16px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.home-counter-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.22);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
    flex-shrink: 0;
}
.home-counter-label {
    font-size: 0.72rem; font-weight: 600; opacity: 0.9; letter-spacing: 0.05em;
}
.home-counter-number {
    font-size: 1.9rem; font-weight: 800; line-height: 1.1;
    font-variant-numeric: tabular-nums; color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.home-counter-number.bumping { animation: counter-pop 0.4s ease; }
@keyframes counter-pop {
    0% { transform: scale(1); } 50% { transform: scale(1.08); color: #fff170; }
    100% { transform: scale(1); }
}
.home-counter-note { font-size: 0.7rem; opacity: 0.78; margin-top: 2px; }

/* ── Section title ── */
.home-section-title {
    font-size: 1.15rem; font-weight: 800; color: var(--text);
    display: flex; align-items: center; gap: 10px;
    margin: 8px 0 14px;
}
.home-section-title i { color: var(--accent); }

/* ── Shortcut cards ── */
.home-shortcuts { margin-bottom: 30px; }
.home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.home-card {
    display: block; text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 16px;
    color: var(--text);
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative; overflow: hidden;
}
.home-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(108, 92, 231, 0.18);
    border-color: var(--accent);
}
.home-card i {
    font-size: 1.6rem; color: var(--accent);
    margin-bottom: 10px; display: block;
}
.home-card h3 {
    font-size: 1.0rem; font-weight: 800;
    margin-bottom: 6px; color: var(--text);
}
.home-card p {
    font-size: 0.8rem; line-height: 1.55;
    color: var(--text-muted); margin: 0;
}
.home-card.hc-skill::before { background: linear-gradient(90deg, #fd79a8, #ff9eb5); }
.home-card.hc-skill i { color: #fd79a8; }
.home-card.hc-ex::before { background: linear-gradient(90deg, #00b894, #55efc4); }
.home-card.hc-ex i { color: #00b894; }
.home-card.hc-table::before { background: linear-gradient(90deg, #f39c12, #ffe27a); }
.home-card.hc-table i { color: #f39c12; }
.home-card.hc-battle::before { background: linear-gradient(90deg, #e74c3c, #ff7979); }
.home-card.hc-battle i { color: #e74c3c; }
.home-card.hc-speed::before { background: linear-gradient(90deg, #e67e22, #ffb86c); }
.home-card.hc-speed i { color: #e67e22; }
.home-card.hc-date::before { background: linear-gradient(90deg, #9b59b6, #c39bd3); }
.home-card.hc-date i { color: #9b59b6; }
.home-card.hc-reroll::before { background: linear-gradient(90deg, #00cec9, #81ecec); }
.home-card.hc-reroll i { color: #00cec9; }
.home-card.hc-spine::before { background: linear-gradient(90deg, #6c5ce7, #a29bfe); }
.home-card.hc-spine i { color: #6c5ce7; }
.home-card.hc-master::before { background: linear-gradient(90deg, #b0399a, #d987c4); }
.home-card.hc-master i { color: #b0399a; }

/* ── Info block (更新履歴・お問い合わせ・運営) ── */
.home-info-block { display: flex; flex-direction: column; gap: 16px; }
.home-info-block .info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.home-info-block .section-title {
    font-size: 1.05rem; font-weight: 800;
    color: var(--text);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 14px;
}
.home-info-block .section-title i { color: var(--accent); }

/* 更新履歴: 既存info.cssの代替 */
.update-log-scroll-area {
    max-height: 400px; overflow-y: auto;
    padding: 4px 8px 4px 4px;
}
.update-log { display: flex; flex-direction: column; gap: 14px; }
.update-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 14px;
    background: linear-gradient(180deg, #fff5fa 0%, #fff 100%);
    border-radius: 10px;
    border-left: 3px solid var(--accent);
    margin-bottom: 2px;
}
.update-item .version-tag {
    flex-shrink: 0;
    background: #f3eef5;
    color: #8a6a99;
    border: 1px solid #e3d9ea;
    padding: 3px 10px; border-radius: 999px;
    font-size: 0.7rem; font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
}
.update-item p {
    font-size: 0.84rem; line-height: 1.55;
    color: var(--text); margin: 0;
}

.profile-section { padding: 6px 4px; }
.somo-name {
    font-size: 1.2rem; color: var(--text);
    margin-bottom: 10px;
}
.somo-name strong {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4rem; letter-spacing: 0.02em;
}
.profile-bio {
    font-size: 0.88rem; line-height: 1.7;
    color: var(--text-muted);
    background: #faf5fa;
    padding: 12px 14px; border-radius: 8px;
    border-left: 3px solid var(--primary-light);
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .home-hero { padding: 28px 18px 22px; }
    .home-title { font-size: 1.55rem; }
    .home-title-sub { font-size: 1.1rem; }
    .home-title.home-title-onesize .home-title-sub { font-size: inherit; }
    .home-desc { font-size: 0.85rem; }
    .home-desc-disclaimer { font-size: 0.75rem; }
    .home-counter-number { font-size: 1.5rem; }
    .home-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .home-card { padding: 14px 12px; }
    .home-card i { font-size: 1.3rem; }
    .home-card h3 { font-size: 0.92rem; }
    .home-card p { font-size: 0.82rem; }
    .home-counter-note { font-size: 0.72rem; }
    .home-counter-label { font-size: 0.74rem; }
}
