/* style.css */

/* 基本的なスタイル */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #0a0a14; /* さらに少し暗く調整 */
    color: #e0e0e0; /* 基本的な文字色を少し明るく */
}

/* three.jsの描画領域 */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    outline: none;
}

/* コンテンツコンテナ */
.content-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none; /* デフォルトではイベントを透過 */
    text-align: center; /* テキストを中央揃え */
    padding: 20px; /* 端に寄りすぎないようにパディング */
    box-sizing: border-box; /* パディングをサイズ計算に含める */
}

/* テキストとボタンをまとめるコンテナ */
.text-content {
    display: flex;
    flex-direction: column; /* 要素を縦に並べる */
    align-items: center; /* 水平中央揃え */
    pointer-events: auto; /* このエリアのイベントは有効にする */
    max-width: 600px; /* 横幅が広がりすぎないように */
}

/* アプリタイトル */
.app-title {
    font-size: 4.5rem; /* 大きめのサイズ */
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px; /* 下のマージン */
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3); /* 少し光るような影 */
}

/* アプリ概要 */
.app-description {
    font-size: 1.2rem;
    color: #c0c0c0; /* 少し落ち着いた色 */
    margin-bottom: 40px; /* ボタンとのマージン */
    line-height: 1.6;
    max-width: 80%; /* 説明文が長すぎないように */
}

/* ログインボタンのスタイル (微調整) */
.login-button {
    padding: 16px 50px; /* 少し横長に */
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(45deg, #4a90e2, #7b43ef); /* グラデーション調整 */
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    /* pointer-events: auto; は .text-content で指定したので不要 */
}

.login-button:hover {
    transform: translateY(-3px) scale(1.02); /* 少し大きく、上に */
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.5); /* ホバー時の影を調整 */
}

.login-button:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* レスポンシブ対応（画面が小さい場合） */
@media (max-width: 768px) {
    .app-title {
        font-size: 3rem;
    }
    .app-description {
        font-size: 1rem;
        max-width: 90%;
    }
    .login-button {
        padding: 14px 40px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 2.5rem;
    }
    .app-description {
        font-size: 0.9rem;
    }
}

/* フッター */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 15px 0;
    background-color: rgba(10, 10, 20, 0.7);
    text-align: center;
    z-index: 10;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* フッターのコピーライト */
.footer p.copyright {
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #777;
}

/* レスポンシブ対応（フッター） */
@media (max-width: 480px) {
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
}

/* コンテンツページ共通スタイル */
.content-page {
    max-width: 800px; /* about.html などと合わせる */
    margin: 80px auto 100px; /* 上下左右にマージン */
    padding: 30px;
    background-color: rgba(10, 10, 20, 0.8); /* 背景色 */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
    position: relative; /* z-index を有効にするため */
    z-index: 1;
}

.content-page h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
}

.content-page h2 {
    font-size: 1.6rem;
    color: #4a90e2;
    margin-top: 30px; /* h2の上マージン */
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.content-page p,
.content-page ul {
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-page ul {
    padding-left: 20px;
}

.content-page li {
    margin-bottom: 5px;
}

/* privacy.html, terms.html 用のヘッダースタイル */
.content-page + footer {
    /* .content-page の margin-bottom とフッターの高さで調整 */
    /* フッターが fixed なので、これ以上の調整は不要かも */
}

/* レスポンシブ対応（フッター） */
@media (max-width: 480px) {
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
}