/* styles.css */

/* 共通スタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* 子要素が横幅いっぱいに広がるように設定 */
}

header {
    background-color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid #eee;
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav-links li {
    display: inline;
}

/* 3D球体ナビゲーションスタイル */
.nav-sphere {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 40px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.sphere-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    /* 白色の3D球体効果 */
    background: radial-gradient(ellipse at 30% 30%, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.8) 30%, 
        rgba(200, 200, 200, 0.6) 100%);
    box-shadow: 
        0 0 8px rgba(0, 0, 0, 0.3),
        inset -3px -3px 6px rgba(0, 0, 0, 0.2),
        inset 3px 3px 6px rgba(255, 255, 255, 0.8);
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nav-text {
    position: relative;
    z-index: 2;
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.nav-sphere:hover .sphere-bg {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 15px rgba(0, 0, 0, 0.4),
        inset -3px -3px 6px rgba(0, 0, 0, 0.3),
        inset 3px 3px 6px rgba(255, 255, 255, 0.3);
}

.nav-sphere.active .sphere-bg {
    background: radial-gradient(ellipse at 30% 30%, 
        rgba(150, 150, 150, 1) 0%, 
        rgba(120, 120, 120, 0.8) 30%, 
        rgba(80, 80, 80, 0.6) 100%);
    box-shadow: 
        0 0 12px rgba(0, 0, 0, 0.4),
        inset -3px -3px 6px rgba(0, 0, 0, 0.4),
        inset 3px 3px 6px rgba(200, 200, 200, 0.6);
}

.nav-sphere.active .nav-text {
    color: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    header {
        padding: 5px 10px;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-sphere {
        width: 60px;
        height: 32px;
        font-size: 11px;
    }
    
    .sphere-bg {
        border-radius: 16px;
    }
}

@media (max-width: 360px) {
    header {
        padding: 3px 5px;
    }
    
    .nav-links {
        gap: 4px;
    }
    
    .nav-sphere {
        width: 50px;
        height: 28px;
        font-size: 10px;
    }
    
    .sphere-bg {
        border-radius: 14px;
    }
}

/* ページ見出しのスタイル */
.page-heading {
    text-align: center;
    margin: 20px 0;
    background-color: #ffffff;
    padding: 20px 0;
}

.page-heading h1 {
    font-size: 2.5em;
    margin: 0;
    color: #333;
}

/* フッターのスタイル */
footer {
    text-align: center;
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}
