/* =========================================
   ANALYSIS HUB PAGE STYLES
   beginner.css のデザインシステムに準拠
   CSS変数 --neon-cyan / --neon-magenta は
   /assets/css/style.css で定義済み前提
   ========================================= */


/* =========================================
   HERO
   ========================================= */
.analysis-hero {
    position: relative;
    width: 100%;
    height: 52vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* セクション固有背景：深い黒＋マゼンタ残像 */
    background:
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255, 0, 150, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 40% 60% at 15% 50%, rgba(0, 255, 255, 0.06) 0%, transparent 60%),
        #000;
}

/* サイバーグリッド */
.analysis-hero-bg-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* 斜めスキャンライン */
.analysis-hero-scan {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(255, 0, 150, 0.10) 0%,
        rgba(0, 255, 255, 0.06) 40%,
        transparent 60%,
        rgba(255, 0, 150, 0.05) 100%
    );
}

.analysis-hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 60px;
}

.analysis-hero .hero-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.analysis-hero .hero-title {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.15em;
    color: #fff;
    line-height: 1;
    margin-bottom: 16px;
    text-transform: uppercase;
    text-shadow:
        0 0 10px var(--neon-magenta),
        0 0 30px var(--neon-magenta),
        0 0 60px rgba(255, 0, 150, 0.4);
}

.analysis-hero .hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.08em;
    font-weight: 400;
    margin-bottom: 14px;
}

.analysis-hero .hero-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.48);
    letter-spacing: 0.03em;
    line-height: 1.9;
    max-width: 580px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .analysis-hero { height: 42vh; min-height: 300px; }
    .analysis-hero .container { padding: 0 24px; }
    .analysis-hero .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
    .analysis-hero .hero-desc { font-size: 0.82rem; }
}


/* =========================================
   START HERE（おすすめ導線）
   セクション背景：シアン微光・左寄せ光源
   ========================================= */
.analysis-start {
    padding: 80px 40px;
    position: relative;
    /* 個別背景：左下からシアンの淡い光 */
    background:
        radial-gradient(ellipse 70% 90% at 0% 100%, rgba(0, 255, 255, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 100% 0%, rgba(255, 0, 150, 0.04) 0%, transparent 55%),
        #050508;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.start-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* START HEREバッジ */
.start-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 5px 18px;
    margin-bottom: 20px;
    position: relative;
}
.start-badge::before,
.start-badge::after {
    content: '';
    position: absolute;
    width: 6px; height: 6px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}
.start-badge::before { top: -3px; left: -3px; }
.start-badge::after  { bottom: -3px; right: -3px; }

.start-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.05em;
    margin: 0 0 16px;
}

.start-text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.95;
    max-width: 640px;
    margin: 0 auto 48px;
}
.start-text strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

/* 2カラム導線 */
.start-gate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.start-gate {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 40px 36px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.start-gate--cyan {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.07) 0%, transparent 70%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.start-gate--cyan:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.16) 0%, transparent 100%);
}

.start-gate--magenta {
    background: linear-gradient(225deg, rgba(255, 0, 150, 0.07) 0%, transparent 70%);
}
.start-gate--magenta:hover {
    background: linear-gradient(225deg, rgba(255, 0, 150, 0.16) 0%, transparent 100%);
}

.start-gate-tag {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.start-gate h3 {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.35;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.start-gate--cyan:hover h3 {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
}
.start-gate--magenta:hover h3 {
    color: var(--neon-magenta);
    text-shadow: 0 0 20px var(--neon-magenta);
}

.start-gate p {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.75;
    margin: 0;
}

/* CTAボタン：「→」なし・動詞形 */
.start-gate-arrow {
    display: inline-block;
    padding: 8px 28px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid;
    margin-top: 8px;
    transition: all 0.3s ease;
}
.start-gate--cyan .start-gate-arrow {
    color: var(--neon-cyan);
    border-color: rgba(0, 255, 255, 0.45);
}
.start-gate--magenta .start-gate-arrow {
    color: var(--neon-magenta);
    border-color: rgba(255, 0, 150, 0.45);
}
.start-gate:hover .start-gate-arrow {
    background: rgba(255, 255, 255, 0.92);
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
    .analysis-start { padding: 60px 20px; }
    .start-gate-grid { grid-template-columns: 1fr; }
    .start-gate--cyan {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .start-gate { padding: 32px 24px; }
}


/* =========================================
   CONTENTS（4カードグリッド）
   セクション背景：中央収束グロー
   ========================================= */
.analysis-sections {
    padding: 80px 40px 100px;
    position: relative;
    /* 個別背景：中央から沈む光 */
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.02) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 20% 100%, rgba(255, 0, 150, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 80% 80%, rgba(0, 255, 255, 0.04) 0%, transparent 55%),
        #07080e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sections-header {
    text-align: center;
    margin-bottom: 56px;
}

/* グリッド：2×2 */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* カード基本（extra-card を拡張） */
.analysis-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    overflow: hidden;
    transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

/* 上部カラーバー */
.analysis-card-accent {
    height: 2px;
    width: 0;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.analysis-card:hover .analysis-card-accent { width: 100%; }

.analysis-card-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 30px;
    flex: 1;
}

/* ヘッダー行 */
.analysis-card-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.analysis-card-tag {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ラベル（目的ベースの説明） */
.analysis-card-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.4;
}

.analysis-card-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.analysis-card-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin: 0;
    flex: 1;
}
.analysis-card-desc strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.analysis-card-note {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.03em;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.note-icon {
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.5;
}

/* 角アクセント */
.analysis-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 20px; height: 20px;
    transition: border-color 0.3s ease;
}
.analysis-card::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 20px; height: 20px;
    transition: border-color 0.3s ease;
}

/* --- SYSTEM：シアン --- */
.analysis-card--system .analysis-card-accent { background: var(--neon-cyan); }
.analysis-card--system .analysis-card-tag    { color: var(--neon-cyan); }
.analysis-card--system::before {
    border-top: 2px solid rgba(0, 255, 255, 0.35);
    border-left: 2px solid rgba(0, 255, 255, 0.35);
}
.analysis-card--system::after {
    border-bottom: 2px solid rgba(0, 255, 255, 0.35);
    border-right: 2px solid rgba(0, 255, 255, 0.35);
}
.analysis-card--system:hover {
    border-color: rgba(0, 255, 255, 0.28);
    background: rgba(0, 255, 255, 0.05);
    transform: translateY(-3px);
}
.analysis-card--system:hover::before,
.analysis-card--system:hover::after { border-color: var(--neon-cyan); }

/* --- THEORY：マゼンタ --- */
.analysis-card--theory .analysis-card-accent { background: var(--neon-magenta); }
.analysis-card--theory .analysis-card-tag    { color: var(--neon-magenta); }
.analysis-card--theory::before {
    border-top: 2px solid rgba(255, 0, 150, 0.35);
    border-left: 2px solid rgba(255, 0, 150, 0.35);
}
.analysis-card--theory::after {
    border-bottom: 2px solid rgba(255, 0, 150, 0.35);
    border-right: 2px solid rgba(255, 0, 150, 0.35);
}
.analysis-card--theory:hover {
    border-color: rgba(255, 0, 150, 0.28);
    background: rgba(255, 0, 150, 0.05);
    transform: translateY(-3px);
}
.analysis-card--theory:hover::before,
.analysis-card--theory:hover::after { border-color: var(--neon-magenta); }

/* --- RANKING：ゴールド（注目枠） --- */
.analysis-card--ranking {
    border-color: rgba(255, 200, 0, 0.18);
    background: rgba(255, 200, 0, 0.025);
}
.analysis-card--ranking .analysis-card-accent { background: linear-gradient(to right, #ffc800, #ff9500); }
.analysis-card--ranking .analysis-card-tag    { color: #ffc800; }
.analysis-card--ranking::before {
    border-top: 2px solid rgba(255, 200, 0, 0.45);
    border-left: 2px solid rgba(255, 200, 0, 0.45);
}
.analysis-card--ranking::after {
    border-bottom: 2px solid rgba(255, 200, 0, 0.45);
    border-right: 2px solid rgba(255, 200, 0, 0.45);
}
.analysis-card--ranking:hover {
    border-color: rgba(255, 200, 0, 0.32);
    background: rgba(255, 200, 0, 0.06);
    transform: translateY(-3px);
}
.analysis-card--ranking:hover::before,
.analysis-card--ranking:hover::after { border-color: #ffc800; }

/* 注目ラベル */
.analysis-card-hot-label {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 10;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #ffc800;
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.32);
    padding: 4px 10px;
    animation: hot-pulse 2.5s ease-in-out infinite;
}
@keyframes hot-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* --- COLUMN：ニュートラル --- */
.analysis-card--column .analysis-card-accent { background: rgba(255, 255, 255, 0.45); }
.analysis-card--column .analysis-card-tag    { color: rgba(255, 255, 255, 0.45); }
.analysis-card--column::before {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}
.analysis-card--column::after {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    border-right: 2px solid rgba(255, 255, 255, 0.2);
}
.analysis-card--column:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}
.analysis-card--column:hover::before,
.analysis-card--column:hover::after { border-color: rgba(255, 255, 255, 0.55); }

/* CTAボタン共通（extra-card-arrow を流用） */
.analysis-card:hover .extra-card-arrow {
    background: rgba(255, 255, 255, 0.92);
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.35);
}

@media (max-width: 900px) {
    .analysis-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .analysis-sections { padding: 60px 20px 80px; }
}


/* =========================================
   HOW TO USE（役割比較早見表）
   セクション背景：下方向シアン収束
   ========================================= */
.analysis-compare {
    padding: 72px 40px 88px;
    position: relative;
    /* 個別背景：下からシアンの淡い光源 */
    background:
        radial-gradient(ellipse 90% 70% at 50% 110%, rgba(0, 255, 255, 0.05) 0%, transparent 65%),
        radial-gradient(ellipse 40% 30% at 5% 50%, rgba(255, 0, 150, 0.03) 0%, transparent 50%),
        #050507;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.compare-title-wrap {
    text-align: center;
    margin-bottom: 52px;
}

.compare-subtitle {
    margin-top: 8px;
}

/* 横並び比較 */
.compare-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.compare-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 20px;
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.compare-divider {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
    padding: 0 6px;
    align-self: center;
}

/* タグ */
.compare-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    padding: 5px 14px;
    border: 1px solid;
}
.compare-tag--cyan {
    color: var(--neon-cyan);
    border-color: rgba(0, 255, 255, 0.35);
    background: rgba(0, 255, 255, 0.05);
}
.compare-tag--magenta {
    color: var(--neon-magenta);
    border-color: rgba(255, 0, 150, 0.35);
    background: rgba(255, 0, 150, 0.05);
}
.compare-tag--white {
    color: #ffc800;
    border-color: rgba(255, 200, 0, 0.35);
    background: rgba(255, 200, 0, 0.05);
}
.compare-tag--dim {
    color: rgba(255, 255, 255, 0.52);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.compare-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.75;
    margin: 0;
}

/* 各アイテムのリンク（新規追加） */
.compare-link {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid;
    transition: all 0.3s ease;
    margin-top: 2px;
}
.compare-link--cyan {
    color: var(--neon-cyan);
    border-color: rgba(0, 255, 255, 0.3);
}
.compare-link--magenta {
    color: var(--neon-magenta);
    border-color: rgba(255, 0, 150, 0.3);
}
.compare-link--gold {
    color: #ffc800;
    border-color: rgba(255, 200, 0, 0.3);
}
.compare-link--dim {
    color: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.15);
}
.compare-link:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

@media (max-width: 900px) {
    .compare-grid { flex-direction: column; align-items: center; }
    .compare-divider { transform: rotate(90deg); padding: 4px 0; }
    .compare-item { padding: 20px 16px; min-width: unset; width: 100%; max-width: 400px; }
}
@media (max-width: 768px) {
    .analysis-compare { padding: 50px 20px 64px; }
}