/* ===== トップページ専用スタイル ===== */

/* --- ヒーローセクション --- */
.home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 56px 24px;
    margin-bottom: 24px;
    text-align: center;
    color: #fff;
    background: linear-gradient(160deg, #0f2942 0%, #133b5c 55%, #0d5c63 100%);
}
.home-hero-mascot {
    position: absolute;
    font-size: 120px;
    opacity: 0.08;
    right: -10px;
    bottom: -30px;
    transform: rotate(-8deg);
    pointer-events: none;
}
.home-hero-content { position: relative; z-index: 1; }
.home-hero h1 {
    font-size: 26px;
    margin: 0 0 14px;
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
}
.home-hero p {
    font-size: 15px;
    opacity: 0;
    margin: 0 0 24px;
    color: rgba(255,255,255,0.88);
    animation: fadeInUp 0.7s ease 0.15s forwards;
}
.home-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.7s ease 0.3s forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.home-btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.home-btn:hover { transform: translateY(-2px); }
.home-btn-primary { background: #fff; color: #0d5c63; box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.home-btn-outline { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }

/* --- サービス名の由来 --- */
.home-name-origin {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin: -8px 0 24px;
}
.home-name-origin strong { color: var(--text); }

/* ヘッダーのログイン/登録ボタンのスタイルは style.css 側で全ページ共通に定義しています */

/* --- セクション共通 --- */
.home-section { margin: 40px 0; }
.home-section-head { text-align: center; margin-bottom: 24px; }
.home-section-head h2 { font-size: 20px; margin: 0 0 8px; }
.home-section-head p { color: var(--muted); font-size: 14px; margin: 0; }

/* --- 機能紹介グリッド --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.feature-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.2s ease;
}
.feature-card.is-visible { opacity: 1; transform: translateY(0); }
.feature-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.feature-icon { font-size: 30px; margin-bottom: 10px; display: block; }
.feature-card h3 { font-size: 15px; margin: 0 0 8px; }
.feature-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }

/* --- 使い方ステップ --- */
.steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    position: relative;
}
.step-card {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.step-card.is-visible { opacity: 1; transform: translateY(0); }
.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(160deg, #0f2942, #0d5c63);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 12px;
    font-size: 16px;
}
.step-card h3 { font-size: 14px; margin: 0 0 6px; }
.step-card p { font-size: 12px; color: var(--muted); margin: 0; }

/* --- CTAバナー --- */
.cta-banner {
    text-align: center;
    padding: 40px 24px;
    border-radius: 18px;
    background: linear-gradient(160deg, #0f2942, #0d5c63);
    color: #fff;
    margin: 40px 0;
}
.cta-banner h2 { font-size: 20px; margin: 0 0 10px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 14px; margin: 0 0 20px; }

/* --- スクロールで表示するフェードイン全般 --- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 600px) {
    .home-hero { padding: 40px 18px; border-radius: 14px; }
    .home-hero h1 { font-size: 21px; }
}

@media (max-width: 480px) {
    .hide-sp { display: none; }
}

/* --- 利用状況の簡易統計ストライプ --- */
.home-stats-strip {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    text-align: center;
    padding: 20px 10px;
    margin-bottom: 8px;
}
.home-stats-strip div { display: flex; flex-direction: column; }
.home-stats-strip strong { font-size: 22px; color: var(--main); font-weight: 800; }
.home-stats-strip span { font-size: 12px; color: var(--muted); }

/* --- 機能紹介グリッドが奇数枚(7枚)になった場合、最後の1枚を中央幅広に --- */
.feature-grid > .feature-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
}
