@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Orbitron:wght@400;700&display=swap');

:root {
    --primary: #0000FF;
    --secondary: #00FFFF;
    --accent: #FF0000;
    --bg-light: #FFFFFF;
    --glass-bg: #FFFFFF;
    --glass-border: #000000;
    --text-main: #000000;
    --text-muted: #333333;
    --neo-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #FFFFFF;
}

header {
    height: 400px;
    background: url('https://rustic-hydrofoil-951.notion.site/images/page-cover/nasa_earth_grid.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, var(--bg-light));
}

.header-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem 4rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    max-width: 80%;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

main {
    max-width: 1000px;
    margin: -50px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.card {
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--neo-shadow);
    border: 2px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    padding: 20px;
    background: #FFFFFF;
    border-radius: 8px;
    border: 2px solid #EEEEEE;
}

.info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.info-value {
    font-weight: 600;
    color: var(--primary);
}

.description {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

h2::before {
    content: '';
    width: 30px;
    height: 6px;
    background: var(--accent);
    border-radius: 0px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

th:nth-child(2),
td:nth-child(2) {
    min-width: 5.5rem;
    /* 漢字3文字分＋余白を確保 */
}

th:nth-child(4),
td:nth-child(4) {
    min-width: 5.5rem;
    /* 漢字3文字分＋余白を確保 */
}

th {
    background: #0000FF;
    color: #FFFFFF;
    font-weight: 700;
}

tr:hover {
    background: rgba(255, 255, 255, 0.5);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #0000FF;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 2px solid #000000;
}

.btn-resource {
    background: #FF0000;
    border: 2px solid #000000;
}

.btn:hover,
.btn-resource:hover {
    background: #00FFFF;
    color: #000000;
    transform: scale(1.02);
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(20px);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .header-content {
        padding: 1.5rem;
    }

    .card {
        padding: 20px;
    }

    table {
        font-size: 0.9rem;
    }

    th:nth-child(4),
    td:nth-child(4) {
        display: none;
    }

    /* Hide instructor on mobile if needed */
}

.ai-credit {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 40px 0;
    background: linear-gradient(90deg, #ff00de, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.02);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}