/*
page-home.css — トップページ（index.php）専用スタイル

ヒーローセクション、統計バー、特徴グリッド、ロードマップ、CTAカードなど、
トップページにしか出てこない装飾をまとめる。
他ページでは読み込まれないため、ここに置く分だけ他ページの
レンダリングコストが下がる。
*/

/* ================================================================
    HERO (トップページ)
================================================================ */
.hero {
    width: 100%; /* 全幅 */
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 60%, #0096c7 100%);
    color: var(--white);
    padding: 60px 0 48px;
    position: relative;
    overflow: hidden;
}

/* ヒーローセクション内は .container で幅を制御 */
.hero .container {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 右上の光彩 — WP.orgのシグネチャ装飾 */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0,166,251,.22) 0%, transparent 65%);
    pointer-events: none;
}

/* グリッドオーバーレイ — テック感の演出 */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.9);
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.04;
    color: var(--white);
    max-width: 860px;
    margin-bottom: 28px;
}

.hero h1 em {
    font-style: normal;
    color: #7dd3fc; /* 空色アクセント */
    position: relative;
}

.hero-sub {
    font-size: 1.2rem;
    line-height: 1.75;
    color: rgba(255,255,255,.82);
    max-width: 580px;
    margin-bottom: 48px;
}

.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 44px;
    align-items: center;
}

.hero-meta {
    font-size: 0.88rem;
    color: rgba(255,255,255,.6);
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    align-items: center;
}

.hero-meta span { color: rgba(255,255,255,.85); }
.hero-meta .sep { color: rgba(255,255,255,.3); padding: 0 4px; }

/* Terminal block */
.hero-code {
    margin-top: 64px;
    max-width: 560px;
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r-md);
    overflow: hidden;
    font-family: var(--mono);
    font-size: 0.875rem;
    backdrop-filter: blur(8px);
}

.hero-code .bar {
    background: rgba(0,0,0,.5);
    padding: 11px 18px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.hero-code .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.hero-code .dot:nth-child(1) { background: #ff5f57; }
.hero-code .dot:nth-child(2) { background: #ffbd2e; }
.hero-code .dot:nth-child(3) { background: #28c840; }

.hero-code .code-body {
    padding: 24px 28px;
    color: #cbd5e1;
    line-height: 1.9;
}

.hero-code .comment { color: #64748b; }
.hero-code .cmd    { color: #7dd3fc; font-weight: 500; }
.hero-code .path    { color: #86efac; }

/* ================================================================
    STATS ROW
================================================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    margin: 40px 0 0;
    box-shadow: var(--shadow-sm);
}

.stat-item {
    padding: 24px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: background .15s;
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--gray-0); }

.stat-num {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--blue-5);
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-4);
}

/* ================================================================
    FEATURES GRID
================================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-5), var(--accent));
    opacity: 0;
    transition: opacity .2s;
}

.feature-card:hover {
    border-color: var(--blue-1);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--blue-0);
    color: var(--blue-5);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    border: 1px solid var(--blue-1);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.78;
    margin: 0;
}

/* ================================================================
    ROADMAP
================================================================ */
.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.roadmap-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--r-sm);
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--gray-5);
    border: 1px solid transparent;
    transition: background .15s;
}

.roadmap-item:hover { background: var(--white); }

.done-item {
    color: var(--text);
}

.roadmap-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--gray-3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: transparent;
    transition: all .15s;
}

.roadmap-check.done {
    background: #16a34a;
    border-color: #16a34a;
    color: white;
    font-size: 0.75rem;
}

/* ================================================================
    CTA CARD
================================================================ */
.cta-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 56px 48px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card .btn-primary {
    background: var(--blue-5);
    color: var(--white) !important;
    border: 2px solid var(--blue-5);
    box-shadow: 0 4px 14px rgba(0,115,170,.3);
}

.cta-card .btn-primary:hover {
    background: var(--blue-6);
    border-color: var(--blue-6);
}

.cta-card .cta-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue-5);
    margin-bottom: 14px;
}

.cta-card h2 {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 12px;
}

.cta-card .cta-desc {
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto 28px;
    font-size: 0.95rem;
    line-height: 1.75;
}

.btn-doc-link {
    color: #fff !important;
    border-color: rgba(255,255,255,0.45) !important;
    background: transparent !important;
}

.hero-code .code-body .gap-top { margin-top: 6px; }

.stats-section { margin-top: 48px; margin-bottom: 0; }

.roadmap-wrap { max-width: 560px; margin: 0 auto; }

/* ================================================================
    RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stats-row .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 900px) {
    .hero { padding: 64px 0 52px; }
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .cta-group { flex-direction: column; align-items: stretch; }
    .hero h1 { font-size: 2.4rem; }
    .cta-card { padding: 36px 24px; }
}