@charset "UTF-8";

/* ========== Page Specific Settings ========== */
:root {
    /* サイト全体のカラーパレット定義 */
    --bg-body: #ffffff;
    --bg-card: #f8f9fa;
    --bg-header-gray: #e9ecef;
    
    /* 分野別アクセントカラー */
    --neon-blue: #0077cc;      /* 基礎系 */
    --neon-purple: #9333ea;    /* ソフトウェア */
    --neon-green: #059669;     /* ハードウェア */
    --neon-red: #dc2626;       /* 実験実習 */
    
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    
    /* 分野別背景色（薄い色） */
    --zone-blue-bg: #f0f9ff;
    --zone-purple-bg: #faf5ff;
    --zone-green-bg: #ecfdf5;
    --zone-red-bg: #fef2f2;

    --border-color: #e2e8f0;
}

/* ページ内リンクで飛んだ際の位置調整 */
html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 0;
}

/* ========== Background ========== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #ffffff;
}
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ========== Hero Section ========== */
.hero-section {
    padding: 160px 0 60px; 
    text-align: left;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 120px;
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple), var(--neon-green), var(--neon-red));
    border-radius: 0 3px 3px 0;
}
.hero-inner {
    padding-left: 20px;
}

.hero-title {
    font-family: 'Orbitron','M PLUS 1p', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #0056b3, #7e22ce, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Orbitron', 'M PLUS 1p', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0056b3, #7e22ce, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.1rem;
        margin-top: 10px !important;
    }
    .hero-section {
        padding: 130px 0 40px;
    }
}

.hero-description {
    max-width: 650px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}
.hero-description strong {
    color: var(--text-primary);
    background: linear-gradient(transparent 70%, rgba(147, 51, 234, 0.2) 70%);
}

/* ========== Hero Nav Cards ========== */
.nav-card {
    display: block;
    position: relative;
    border-radius: 12px;
    padding: 24px 16px;
    height: 100%;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    color: white;
    z-index: 1;
}
.nav-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.nav-number {
    position: absolute;
    top: -10px;
    right: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.15;
    z-index: -1;
    transition: all 0.4s ease;
}
.nav-card:hover .nav-number {
    transform: translate(-5px, 5px) scale(1.1);
    opacity: 0.25;
}

.nav-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
}

.nav-card-title {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-card-arrow {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-card.card-blue { background: linear-gradient(135deg, #0056b3, #3b82f6); border: 1px solid rgba(255, 255, 255, 0.2); }
.nav-card.card-blue:hover { background: linear-gradient(135deg, #004494, #2563eb); box-shadow: 0 10px 25px rgba(0, 86, 179, 0.4); }

.nav-card.card-purple { background: linear-gradient(135deg, #6b21a8, #a855f7); border: 1px solid rgba(255, 255, 255, 0.2); }
.nav-card.card-purple:hover { background: linear-gradient(135deg, #581c87, #9333ea); box-shadow: 0 10px 25px rgba(107, 33, 168, 0.4); }

.nav-card.card-green { background: linear-gradient(135deg, #047857, #10b981); border: 1px solid rgba(255, 255, 255, 0.2); }
.nav-card.card-green:hover { background: linear-gradient(135deg, #065f46, #059669); box-shadow: 0 10px 25px rgba(4, 120, 87, 0.4); }

.nav-card.card-red { background: linear-gradient(135deg, #b91c1c, #ef4444); border: 1px solid rgba(255, 255, 255, 0.2); }
.nav-card.card-red:hover { background: linear-gradient(135deg, #991b1b, #dc2626); box-shadow: 0 10px 25px rgba(185, 28, 28, 0.4); }

/* ========== Section Spacing & Headers ========== */
.overview-section { padding-top: 60px; padding-bottom: 50px; }
.stage-section { padding-top: 40px; padding-bottom: 60px; }

.section-header { margin-bottom: 40px; padding-left: 15px; border-left: 5px solid; }

.stage-blue .section-header { border-color: var(--neon-blue); }
.stage-blue .section-number { color: var(--neon-blue); }

.stage-mixed .section-header { border-image: linear-gradient(180deg, var(--neon-purple), var(--neon-green)) 1; border-left-width: 5px; border-left-style: solid; }
.stage-mixed .section-number { color: var(--neon-purple); }

.stage-red .section-header { border-color: var(--neon-red); }
.stage-red .section-number { color: var(--neon-red); }

.section-number { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; font-weight: 900; letter-spacing: 2px; margin-bottom: 4px; }
.section-title { font-family: 'Orbitron', sans-serif; font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; color: var(--text-primary); }

/* ========== Overview Diagram (STAGE 01) ========== */
.overview-diagram { display: flex; gap: 15px; padding: 10px; }
@media (max-width: 992px) { .overview-diagram { flex-direction: column; gap: 15px; } }

.ov-column {
    flex: 1; display: flex; flex-direction: column;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); overflow: hidden;
}
.ov-column.specialized { flex: 2; }

.ov-column::before { content: ''; display: block; height: 4px; width: 100%; }
.ov-column.foundation::before { background: var(--neon-blue); }
.ov-column.specialized::before { background: linear-gradient(90deg, var(--neon-purple), var(--neon-green)); }
.ov-column.practical::before { background: var(--neon-red); }

.ov-header {
    font-weight: 700; font-size: 1rem; padding: 12px 16px;
    background: var(--bg-header-gray); border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 8px; color: var(--text-primary);
}

.ov-header-icon { width: 10px; height: 10px; border-radius: 50%; }
.foundation .ov-header-icon { background: var(--neon-blue); }
.specialized .ov-header-icon { background: linear-gradient(90deg, var(--neon-purple), var(--neon-green)); }
.practical .ov-header-icon { background: var(--neon-red); }

.ov-content { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ov-row { display: flex; gap: 12px; flex: 1; padding: 16px; }
@media (max-width: 576px) { .ov-row { flex-direction: column; } }

.ov-subcol {
    flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px;
    border-radius: 6px; background: #ffffff; border: 1px solid var(--border-color);
}
.ov-subcol.soft { border-top: 3px solid var(--neon-purple); background: var(--zone-purple-bg); }
.ov-subcol.hard { border-top: 3px solid var(--neon-green); background: var(--zone-green-bg); }

.ov-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 4px; }
.ov-subcol.soft .ov-label { color: var(--neon-purple); }
.ov-subcol.hard .ov-label { color: var(--neon-green); }

.ov-box {
    background: #ffffff; padding: 12px 14px; font-size: 0.9rem; font-weight: 600;
    border: 1px solid var(--border-color); border-left: 4px solid; border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: transform 0.2s ease; color: var(--text-primary);
}
.ov-box:hover { transform: translateX(2px); box-shadow: 0 3px 6px rgba(0,0,0,0.08); }

.ov-box.base { border-left-color: var(--neon-blue); }
.ov-box.applied-soft { border-left-color: var(--neon-purple); }
.ov-box.applied-hard { border-left-color: var(--neon-green); }
.ov-box.experiment { border-left-color: var(--neon-red); }

.ov-arrow { text-align: center; font-size: 0.8rem; color: var(--text-secondary); padding: 2px 0; }

/* ========== Curriculum Table ========== */
.curriculum-wrapper { width: 100%; box-shadow: 0 4px 12px rgba(0,0,0,0.03); margin-bottom: 10px; }
.curriculum-table {
    display: grid; grid-template-columns: 140px repeat(5, 1fr);
    border: 1px solid var(--border-color); background: #ffffff;
    border-radius: 8px; overflow: hidden;
}
.table-header { display: contents; }
.table-header-cell {
    background: var(--bg-header-gray); padding: 15px; text-align: center;
    font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.9rem;
    border-bottom: 2px solid #cbd5e1; color: var(--text-primary);
}
.mobile-year-label { display: none; }
.table-row { display: contents; }

.row-label {
    padding: 15px 10px; font-weight: 700; font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    display: flex; flex-direction: column; justify-content: center; background: #ffffff;
}
.label-badge {
    font-size: 0.65rem; background: #e2e8f0; color: #475569;
    padding: 2px 6px; border-radius: 3px; margin-top: 4px;
    display: inline-block; width: fit-content;
}

.table-cell {
    padding: 10px; border-right: 1px dashed var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex; flex-direction: column; gap: 8px; min-height: 80px;
}

.row-blue .row-label { color: var(--neon-blue); border-left: 4px solid var(--neon-blue); }
.row-blue .table-cell { background: var(--zone-blue-bg); }
.row-purple .row-label { color: var(--neon-purple); border-left: 4px solid var(--neon-purple); }
.row-purple .table-cell { background: var(--zone-purple-bg); }
.row-green .row-label { color: var(--neon-green); border-left: 4px solid var(--neon-green); }
.row-green .table-cell { background: var(--zone-green-bg); }
.row-red .row-label { color: var(--neon-red); border-left: 4px solid var(--neon-red); }
.row-red .table-cell { background: var(--zone-red-bg); }

@media (max-width: 768px) {
    .curriculum-table { display: block; border: none; background: transparent; }
    .table-header { display: none; }
    .table-row {
        display: flex; flex-direction: column; margin-bottom: 20px;
        border: 1px solid var(--border-color); border-radius: 8px;
        overflow: hidden; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .row-label {
        width: 100%; border-bottom: 2px solid var(--border-color);
        flex-direction: row; justify-content: space-between; align-items: center;
        padding: 12px 16px; background: #f8fafc;
    }
    .table-cell {
        width: 100%; border-right: none; border-bottom: 1px solid var(--border-color);
        padding: 12px 16px; min-height: auto;
    }
    .table-cell:last-child { border-bottom: none; }
    .mobile-year-label {
        display: block; font-size: 0.75rem; font-weight: 700;
        color: var(--text-secondary); margin-bottom: 6px;
    }
    .table-cell:empty { display: none; }
}

/* ========== Subject Chips ========== */
.subject-chip {
    font-size: 0.85rem; font-weight: 500; padding: 8px 10px;
    border-radius: 4px; line-height: 1.4; position: relative;
    background: #ffffff; color: var(--text-primary); transition: all 0.2s;
    border: 1px solid var(--border-color); border-left-width: 4px;
    border-left-style: solid; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.subject-chip:hover { transform: translateX(4px); box-shadow: 0 4px 6px rgba(0,0,0,0.08); }

.chip-blue { border-left-color: var(--neon-blue); }
.chip-purple { border-left-color: var(--neon-purple); }
.chip-green { border-left-color: var(--neon-green); }
.chip-red { border-left-color: var(--neon-red); }

.chip-elec {
    background: transparent; border: 1px dashed #cbd5e1; border-left-width: 4px;
    border-left-style: solid; color: var(--text-secondary);
}
.chip-elec::after { content: ' (選択)'; font-size: 0.7em; opacity: 0.7; }

/* ========== Subsections ========== */
.subsection-header { margin: 40px 0 20px; padding-left: 12px; border-left: 4px solid; }
.subsection-header.purple { border-color: var(--neon-purple); }
.subsection-header.purple h4 { color: var(--neon-purple); }
.subsection-header.green { border-color: var(--neon-green); }
.subsection-header.green h4 { color: var(--neon-green); }
.subsection-header h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.subsection-header p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

/* ========== Legend ========== */
.legend-grid {
    display: flex; gap: 20px; padding: 20px; background: var(--bg-card);
    margin-top: 30px; border-radius: 8px; flex-wrap: wrap; border: 1px solid var(--border-color);
}
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-primary); font-weight: 500; }
.dot { width: 14px; height: 14px; border-radius: 3px; }
.dot.blue { background: var(--neon-blue); }
.dot.purple { background: var(--neon-purple); }
.dot.green { background: var(--neon-green); }
.dot.red { background: var(--neon-red); }

/* ========== Study Model Cards ========== */
.model-card {
    background: #ffffff; border: 1px solid var(--border-color);
    border-radius: 12px; overflow: hidden; height: 100%;
    display: flex; flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.model-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }

.model-header { padding: 25px 20px; color: #ffffff; position: relative; }
.model-soft .model-header { background: linear-gradient(135deg, var(--neon-purple), #7c3aed); }
.model-hard .model-header { background: linear-gradient(135deg, var(--neon-green), #047857); }
.model-balance .model-header { background: linear-gradient(135deg, #0056b3, var(--neon-purple)); }

.model-badge {
    font-family: 'Orbitron', sans-serif; font-size: 0.75rem; letter-spacing: 1px;
    opacity: 0.9; margin-bottom: 8px; text-transform: uppercase;
}
.model-title { font-size: 1.4rem; font-weight: 700; margin: 0; line-height: 1.3; }
.model-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.model-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }
.model-career { background: var(--bg-card); padding: 15px; border-radius: 8px; }
.model-career span { font-size: 0.8rem; font-weight: 700; display: block; margin-bottom: 8px; color: var(--text-primary); }
.model-career ul { margin: 0; padding-left: 1.2rem; font-size: 0.9rem; color: var(--text-secondary); }
.model-career li { margin-bottom: 4px; }
.subject-label { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); display: block; margin-bottom: 8px; }

/* ========== Utilities ========== */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

.crayon-underline { position: relative; display: inline-block; z-index: 1; }
.crayon-underline::after {
    content: ''; position: absolute; left: 0; bottom: 2px; width: 100%; height: 12px;
    background: linear-gradient(100deg, rgba(255, 255, 0, 0) 0%, rgba(255, 241, 54, 0.6) 5%, rgba(255, 215, 0, 0.8) 100%);
    z-index: -1; transform: skewX(-15deg) rotate(-1deg); border-radius: 2px;
}

/* ========== Floating Menu ========== */
:root {
    --fm-size: 60px;
    --fm-bg: linear-gradient(135deg, #0056b3, #7e22ce, #dc2626);
    --fm-text: #ffffff;
    --fm-z-index: 9999;
}

.floating-menu-container {
    position: fixed; bottom: 30px; right: 30px;
    z-index: var(--fm-z-index); display: flex; flex-direction: column-reverse; align-items: center; gap: 15px;
}

.floating-toggle-btn {
    width: var(--fm-size); height: var(--fm-size); border-radius: 50%;
    background: var(--fm-bg); color: var(--fm-text); border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-toggle-btn:hover { transform: scale(1.1); }
.floating-toggle-btn .close-icon { display: none; }
.floating-menu-container.active .floating-toggle-btn .open-icon { display: none; }
.floating-menu-container.active .floating-toggle-btn .close-icon { display: block; }

.floating-menu-items {
    display: flex; flex-direction: column-reverse; gap: 10px;
    opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease;
}
.floating-menu-container.active .floating-menu-items { opacity: 1; visibility: visible; transform: translateY(0); }

.menu-item {
    width: 50px; height: 50px; border-radius: 50%; background: #ffffff; color: #4a5568;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15); font-size: 1.2rem; position: relative;
    transition: all 0.2s ease; border: 1px solid #e2e8f0;
}
.menu-item:hover { background: #f8f9fa; color: #7e22ce; transform: translateX(-3px); }

.menu-item .label {
    position: absolute; right: 60px; background: rgba(0, 0, 0, 0.8); color: #fff;
    padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.2s; font-family: 'Orbitron', sans-serif;
}
.menu-item:hover .label { opacity: 1; }

@media (max-width: 768px) {
    .floating-menu-container { bottom: 20px; right: 20px; }
    :root { --fm-size: 50px; }
    .menu-item { width: 45px; height: 45px; }
    .menu-item .label { display: none; }
}

/* ========== Concept Note ========== */
.concept-note {
    display: inline-block; background: #fff3cd; color: #856404;
    border: 1px solid #ffeeba; padding: 8px 15px; border-radius: 6px;
    font-size: 0.85rem; font-weight: 700; margin-bottom: 15px;
}
.concept-note i { margin-right: 5px; }

/* ========== Step Label ========== */
.meister-step-label {
    text-align: left; font-family: 'Orbitron', sans-serif; font-size: 0.9rem;
    letter-spacing: 2px; color: var(--text-secondary); font-weight: 700;
    margin: 40px 0 20px; position: relative;
    display: flex; align-items: center; justify-content: flex-start; gap: 15px;
}
.meister-step-label::after { content: ''; height: 1px; flex-grow: 1; background: var(--border-color); opacity: 0.6; }

/* ========== Badge Cards ========== */
.badge-card-horizontal {
    background: #ffffff; border: 1px solid var(--border-color); border-radius: 12px;
    padding: 20px; display: flex; align-items: flex-start; gap: 20px;
    height: 100%; transition: transform 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-left: 5px solid;
}
.badge-card-horizontal:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.06); }
.badge-academic { border-left-color: var(--neon-blue); }
.badge-activity { border-left-color: var(--neon-red); }

.bc-icon {
    font-size: 2rem; min-width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--bg-card);
}
.badge-academic .bc-icon { color: var(--neon-blue); }
.badge-activity .bc-icon { color: var(--neon-red); }

.bc-content { flex: 1; }
.bc-title { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 2px; color: var(--text-primary); }
.bc-sub { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); display: block; margin-bottom: 8px; }
.bc-text { font-size: 0.9rem; line-height: 1.5; margin: 0; color: var(--text-secondary); }

@media (max-width: 576px) {
    .badge-card-horizontal { flex-direction: column; align-items: center; text-align: center; }
    .bc-icon { margin-bottom: 10px; }
}

/* ========== Field Cards ========== */
.field-card {
    background: #ffffff; border: 1px solid var(--border-color); border-radius: 12px;
    padding: 25px 15px; text-align: center; height: 100%; position: relative;
    overflow: hidden; transition: transform 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.field-card:hover { transform: translateY(-5px); }

.field-soft { border-top: 4px solid var(--neon-purple); }
.field-soft .field-icon { color: var(--neon-purple); background: var(--zone-purple-bg); }
.field-soft .field-bar { background: var(--neon-purple); }

.field-hard { border-top: 4px solid var(--neon-green); }
.field-hard .field-icon { color: var(--neon-green); background: var(--zone-green-bg); }
.field-hard .field-bar { background: var(--neon-green); }

.field-net { border-top: 4px solid var(--neon-blue); }
.field-net .field-icon { color: var(--neon-blue); background: var(--zone-blue-bg); }
.field-net .field-bar { background: var(--neon-blue); }

.field-ai { border-top: 4px solid var(--neon-red); }
.field-ai .field-icon { color: var(--neon-red); background: var(--zone-red-bg); }
.field-ai .field-bar { background: var(--neon-red); }

.field-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 15px; }
.field-title { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 1rem; line-height: 1.2; margin-bottom: 10px; color: var(--text-primary); }
.field-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-bottom: 15px; }
.field-tags span { font-size: 0.65rem; color: var(--text-secondary); background: #f1f5f9; padding: 2px 6px; border-radius: 4px; }
.field-bar { width: 40px; height: 3px; border-radius: 2px; margin-top: auto; }

/* ========== Grand Meister ========== */
.grand-meister-wrapper { margin-top: 40px; position: relative; text-align: center; }
.gm-connector { display: flex; justify-content: center; gap: 20px; margin-bottom: -2px; height: 30px; position: relative; z-index: 0; }
.line { width: 2px; height: 100%; position: relative; }
.line-soft { background: linear-gradient(to bottom, var(--neon-purple), #fbbf24); }
.line-hard { background: linear-gradient(to bottom, var(--neon-green), #fbbf24); }
.line-net { background: linear-gradient(to bottom, var(--neon-blue), #fbbf24); }
.line-ai { background: linear-gradient(to bottom, var(--neon-red), #fbbf24); }

.grand-meister-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 16px; padding: 40px 20px;
    position: relative; overflow: hidden; color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1);
    z-index: 1; max-width: 800px; margin: 0 auto;
}
.gm-bg-glow {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(251,191,36,0.15) 0%, transparent 60%);
    animation: rotateGlow 10s linear infinite; pointer-events: none; z-index: 0;
}
@keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.gm-header { position: relative; z-index: 1; margin-bottom: 20px; }
.gm-crown { font-size: 3rem; color: #fbbf24; margin-bottom: 10px; filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6)); }
.gm-title {
    font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 2.2rem; letter-spacing: 2px;
    background: linear-gradient(to right, #fbbf24, #f59e0b, #fbbf24);
    background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    margin: 0;
}
.gm-subtitle { font-size: 0.9rem; letter-spacing: 4px; color: #cbd5e1; font-weight: 700; margin-top: 5px; }
.gm-body { position: relative; z-index: 1; }
.gm-desc { color: #e2e8f0; font-size: 1rem; line-height: 1.8; margin-bottom: 25px; }

@media (max-width: 768px) {
    .field-card { padding: 15px 10px; }
    .field-icon { width: 45px; height: 45px; font-size: 1.4rem; }
    .field-title { font-size: 0.85rem; }
    .gm-title { font-size: 1.6rem; }
    .gm-connector { display: none; }
}

/* ========== Facilities Styles ========== */
.facilities-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.facility-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.15);
    border-color: rgba(0, 119, 204, 0.3);
}

.fc-content {
    padding: 40px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fc-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 119, 204, 0.1); /* 背景に薄く表示 */
    position: absolute;
    top: 10px;
    left: 30px;
    line-height: 1;
    z-index: 0;
}

/* 日本語タイトル */
.fc-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px; /* 英語名が入るため少し広げる */
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

/* 追加: 英語タイトル */
.fc-title-en {
    display: block; /* 改行して表示 */
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--neon-blue); /* テーマカラーを使用 */
    margin-top: 5px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.fc-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 1;
    border-bottom: 1px dashed var(--border-color); /* 区切り線を追加 */
    padding-bottom: 10px;
    width: fit-content;
}
.fc-location i { color: var(--neon-blue); }

.fc-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.fc-features {
    margin-top: 20px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative; z-index: 1;
}

.fc-features li {
    background: var(--zone-blue-bg);
    color: var(--neon-blue);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(0, 119, 204, 0.2);
}

.fc-image-area {
    height: 100%;
    min-height: 380px; /* 画像エリアを少し高く */
    background: #000;
    position: relative;
}

.fc-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 380px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.facility-card:hover .fc-image-area img {
    opacity: 1;
}

.carousel-control-prev, .carousel-control-next {
    width: 10%;
    background: rgba(0,0,0,0.2);
}
.carousel-indicators {
    margin-bottom: 1rem;
}

/* スマホ対応 */
@media (max-width: 991px) {
    .fc-content { padding: 30px 20px; }
    .fc-number { font-size: 2.5rem; top: 10px; right: 20px; left: auto; }
    .fc-image-area, .fc-image-area img { min-height: 250px; }
    .fc-title { font-size: 1.3rem; }
    .fc-title-en { font-size: 0.75rem; }
}
/* ========== Rank Flow System (ランクシステム) ========== */

/* 全体のコンテナ：ここが flex になっていないと横並びになりません */
.rank-flow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* 各ステップ（丸と文字のセット） */
.rank-step {
    display: flex;
    flex-direction: column; /* ここは縦並び（丸の下に文字） */
    align-items: center;
    z-index: 2;
    position: relative;
}

/* 丸いバッジ部分 */
.rank-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.rank-step:hover .rank-circle {
    transform: scale(1.1);
}

/* 各ランクの色設定 */
.rank-circle.bronze { border-color: #cd7f32; color: #cd7f32; background: #fffaf0; }
.rank-circle.silver { border-color: #a0aec0; color: #718096; background: #f7fafc; }
.rank-circle.gold { border-color: #ecc94b; color: #d69e2e; background: #fffff0; }
.rank-circle.meister-mini { 
    border: none;
    background: linear-gradient(135deg, #b45309, #f59e0b);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* 下のテキストラベル */
.rank-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 700;
}

/* 間の線（矢印） */
.rank-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 10px 25px; /* Circleの高さに合わせて位置調整 */
    position: relative;
    z-index: 1;
}
.rank-line::after {
    content: '▶';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #cbd5e1;
    font-size: 0.8rem;
}

/* スマホ表示時の調整 */
@media (max-width: 991px) {
    .rank-flow-container {
        flex-wrap: wrap;
        gap: 20px;
    }
    .rank-line {
        display: none; /* スマホでは線を消す */
    }
    .rank-step {
        width: 45%; /* 2列にする */
        margin-bottom: 20px;
    }
}
/* ========== License Section ========== */
.license-section { background: #f8fafc; border: 1px solid var(--border-color); border-radius: 16px; padding: 40px; position: relative; overflow: hidden; }
.license-section::before {
    content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px;
    background: rgba(0, 119, 204, 0.05); border-radius: 50%; z-index: 0;
}

.license-hl {
    font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 1.8rem; margin-bottom: 15px;
    background: linear-gradient(90deg, #2563eb, #0077cc); background-clip: text; -webkit-background-clip: text; color: transparent;
}
.license-desc { font-size: 0.95rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 25px; }
.license-desc strong { color: #d69e2e; }

.license-benefits { list-style: none; padding: 0; }
.license-benefits li { font-weight: 700; color: var(--text-primary); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.license-benefits li i { color: #059669; font-size: 1.1rem; }

.license-cards-wrapper { position: relative; height: 240px; display: flex; justify-content: center; }
.license-card {
    position: absolute; width: 320px; background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 12px; padding: 20px; color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1); transition: transform 0.3s;
}
.license-card.card-1 { top: 0; left: 20px; z-index: 1; transform: rotate(-3deg); }
.license-card.card-2 { top: 40px; left: 140px; z-index: 2; transform: rotate(2deg); background: linear-gradient(135deg, #0f172a, #1e293b); border: 1px solid rgba(0, 119, 204, 0.3); }
.license-card:hover { transform: scale(1.05) rotate(0deg); z-index: 10; }

.lc-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin-bottom: 15px; }
.lc-type { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; letter-spacing: 1px; color: #38bdf8; }
.lc-header i { font-size: 1.2rem; color: #fbbf24; }
.lc-req {
    font-family: 'Orbitron', sans-serif; font-size: 0.8rem; color: #fbbf24; margin-bottom: 10px;
    background: rgba(251, 191, 36, 0.1); display: inline-block; padding: 2px 8px; border-radius: 4px;
}
.lc-detail { font-size: 0.8rem; line-height: 1.5; color: #cbd5e1; margin: 0; }

@media (max-width: 991px) {
    .license-cards-wrapper { height: auto; flex-direction: column; gap: 20px; align-items: center; margin-top: 30px; }
    
    /* スマホでカードが縦並びになるよう強制的にリセット */
    .license-card,
    .license-card.card-1,
    .license-card.card-2 {
        position: relative; top: auto; left: auto; 
        transform: none; width: 100%; max-width: 350px;
    }
    
    .rank-flow-container { flex-wrap: wrap; gap: 10px; }
    .rank-line { display: none; }
    .rank-step { width: 45%; margin-bottom: 20px; }
}