/* * カラー設定 */
:root {
    --primary-color: #C8FF00;
    --accent-color: #C8FF00;
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
}

/* リセットCSS & 基本設定 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    padding-top: 80px;
}

/* 3D背景 (Canvas) */
#webgl-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

/* コンテナ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ROAR文字列スタイル */
#company-name,
#footer-name,
#profile-name {
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    letter-spacing: 1px;
}

/* ナビゲーションバー */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(200, 255, 0, 0.2);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.app-store-badge {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.app-store-badge:hover {
    opacity: 0.8;
}

.app-store-badge img {
    display: block;
    height: 40px;
    width: auto;
}

.app-store-badge-large {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-store-badge-large:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.app-store-badge-large img {
    display: block;
    height: 60px;
    width: auto;
}

.app-store-badge-modal {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.app-store-badge-modal:hover {
    opacity: 0.8;
}

.app-store-badge-modal img {
    display: block;
    height: 50px;
    width: auto;
}

.nav-icon {
    font-size: 1.2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .navbar-content {
        padding: 1rem 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 1.5rem;
        padding: 100px 2rem 2rem;
        align-items: flex-start;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid rgba(200, 255, 0, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .app-store-badge {
        text-align: center;
    }

    .app-store-badge img {
        height: 45px;
    }
}

/* フッター */
footer {
    background: #000000;
    color: #fff;
    padding: 4rem 0 3rem;
    border-top: 1px solid rgba(200, 255, 0, 0.15);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}
.footer-left {
    flex: 1;
    min-width: 280px;
}
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
}
.footer-logo {
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}
.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.85rem;
}
.footer-links a:hover {
    color: var(--primary-color);
}
.footer-copyright {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0 2rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-right {
        align-items: flex-start;
    }
    .footer-links {
        align-items: flex-start;
    }
}

/* アニメーション定義 */
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* ページヘッダー (privacy, terms共通) */
.page-header {
    padding: 4rem 0 2rem;
    border-bottom: 1px solid rgba(200, 255, 0, 0.3);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.3s;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.back-link:hover {
    opacity: 0.7;
}

/* 言語切替ボタン（privacy, terms共通） */
.lang-switch {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    appearance: none;
    background: transparent;
    color: #cfcfcf;
    border: 1px solid rgba(200, 255, 0, 0.5);
    border-radius: 9999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn:hover {
    border-color: rgba(200, 255, 0, 0.9);
    color: #ffffff;
}

.lang-btn.active,
.lang-btn[aria-pressed="true"] {
    background: var(--primary-color);
    color: #0a0a0a;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(200, 255, 0, 0.12);
}

.lang-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(200, 255, 0, 0.25);
}

/* コンテンツセクション (privacy, terms共通) */
.content-section {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid rgba(200, 255, 0, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin: 4rem 0;
}

.content-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.content-section p {
    margin-bottom: 1.5rem;
    color: #c0c0c0;
    font-size: 1rem;
}

.content-section ul {
    margin: 1rem 0 1.5rem 2rem;
    color: #c0c0c0;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* 本文中のリンク色（白） */
.content-section a {
    color: #ffffff;
}

/* ページフッター調整 */
.page-footer {
    margin-top: 4rem;
}

.page-footer .footer-content {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    display: block;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .footer-content { flex-direction: column; }
    .page-title { font-size: 2rem; }
    .content-section { padding: 2rem; }
}
