/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

h1 {
    font-family: 'Anton', sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 100, 50, 0.9); /* 炎っぽい光 */
    letter-spacing: 2px;
}


/* ✅ まず、スクロールできるようにする */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 横スクロールのみ無効化 */
    overflow-y: auto; /* 縦スクロールを有効化！ */
    font-family: 'Oswald', sans-serif;
    background: black;
    color: white;
    text-align: center;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.black-swan {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: -2;
    opacity: 0.7; /* 画像の透過度を設定 */
    filter: brightness(0.5) contrast(1.3) blur(1px);
}

#particleCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* ✅ タイトルエリアをナビのすぐ下に固定しつつ、スクロール領域を確保 */
.content {
    position: fixed;
    top: 60px; /* ナビの高さに合わせる */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 0;
    z-index: 999;
    height: auto; /* 高さを固定しないように */
}

h1 {
    font-size: 4rem;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0, 255, 153, 0.8);
}

.catchphrase {
    font-size: 1.5rem;
    margin-top: -10px;
    text-shadow: 0 0 10px rgba(0, 255, 153, 0.5);
}

.cta-button {
    background: transparent;
    border: 2px solid #00ff99;
    color: #00ff99;
    font-size: 1.5rem;
    padding: 10px 30px;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.cta-button:hover {
    background: #00ff99;
    color: black;
    text-shadow: none;
}
/* 魔晄エネルギーの強調（グラデーション追加） */
.background::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,255,150,0.4) 0%, rgba(0,0,0,0) 80%);
    z-index: -1;
}
/* スクロール時に魔晄光が上昇する */
.background::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,255,150,0.3) 0%, rgba(0,0,0,0) 80%);
    z-index: -1;
    transition: opacity 0.5s, transform 1s;
}

/* スクロール時のエネルギー変化 */
.scrolled .background::before {
    opacity: 0.6;
    transform: translateY(-50px); /* 上昇 */
}


/* ナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    text-align: center;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    display: inline;
    margin: 0 15px;
}

.navbar ul li a {
    color: #00ff99;
    text-decoration: none;
    font-size: 1.2rem;
}



/* ✅ コンテンツエリアの高さを一時的に増やしてスクロールを確認 */
.container {
    max-width: 900px;
    margin-top: 450px !important; /* 余白はそのまま */
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 10px;
    text-align: center;
}

/* ✅ スマホ & タブレット対応 */
@media (max-width: 1024px) {
    .content {
        top: 50px;
        max-width: 95%;
        padding: 15px 0;
    }
    .container {
        max-width: 90%;
        margin-top: 500px !important; /* さらに余白を確保 */
    }
}

/* ✅ PC版のみに適用 */
@media (min-width: 1024px) {
    .content {
        padding-bottom: 50px; /* タイトル下に余白を追加 */
    }
    .container {
        margin-top: 550px !important; /* PC版の余白を増やして衝突回避 */
    }
}

@media (max-width: 768px) {
    .content {
        top: 45px;
        padding: 10px 0;
        font-size: 0.9rem;
    }
    .container {
        max-width: 95%;
        margin-top: 550px !important; /* モバイルでもスクロール可能に */
    }
}

/* 魔晄エネルギーゲージ */
.energy-bar {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 10px;
    background: rgba(0, 255, 150, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.energy-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00ff99, #ff9900);
    transition: width 0.5s ease-in-out;
}
/* タイトルを少し上に移動 */
.content {
    position: absolute;
    top: 40%; /* 元の50%から40%へ変更 */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

/* コンテンツとの重なりを防ぐための余白追加 */
.container {
    max-width: 800px;
    margin: 200px auto 100px auto; /* 上のマージンを増やして、タイトルと被らないように */
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 10px;
    text-align: center;
}
/* ✅ 既存のセクションデザインに追記 */
.container section {
    margin-bottom: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;

/* テーブルデザイン */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 15px;
    border: 1px solid white;
    text-align: center;
}

th {
    background-color: #00ff99;
    color: black;
}

/* AI魔晄炉のプロセス */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    padding: 10px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* シンクロ率比較 */
.comparison-box {
    display: flex;
    justify-content: space-around;
}

.sync-high, .sync-low {
    width: 45%;
    padding: 20px;
    background: rgba(0, 255, 150, 0.3);
    border-radius: 10px;
}

.sync-low {
    background: rgba(255, 50, 50, 0.3);
}

/* ✅ 次のステップセクション（余白調整） */
#next-step {
    text-align: center;
    font-size: 1.2rem;
    padding: 30px;
    background: rgba(255, 165, 0, 0.4);
    border-radius: 10px;
    margin-top: 0px; /* 100px → 40px に減少 */
}

/* ✅ 各セクションの余白調整 */
.container section {
    margin-bottom: 30px; /* 50px → 30px に減少 */
}


/* ✅ ステップデザインを追加（重複を避けて統合） */
#step-1, #step-2, #step-3 {
    border-left: 5px solid #00ff99;
    padding-left: 20px;
    background: rgba(0, 255, 150, 0.2);
}

/* ✅ 活用例の見出しデザイン */
#use-case h3 {
    color: #ff9900;
    margin-top: 20px;
}
html {
    scroll-behavior: smooth;
}

/* スクロール時のズレを調整 */
h2 {
    scroll-margin-top: 80px; /* ナビゲーション分の余白を確保 */
}

