/* グローバルスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* スクロールバー */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* アニメーション */
@keyframes floatingParticles {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes breathe {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(1deg); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700, 0 0 60px #ffd700; }
    50% { box-shadow: 0 0 40px #ff6b6b, 0 0 80px #ff6b6b, 0 0 120px #ff6b6b; }
}

@keyframes buttonPulse {
    0% { transform: translateY(0px); box-shadow: 0 4px 0 #8B4513, 0 8px 15px rgba(0,0,0,0.3); }
    50% { transform: translateY(2px); box-shadow: 0 2px 0 #8B4513, 0 4px 10px rgba(0,0,0,0.3); }
    100% { transform: translateY(0px); box-shadow: 0 4px 0 #8B4513, 0 8px 15px rgba(0,0,0,0.3); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes sparkle {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(180deg); opacity: 1; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes scrollAnimation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes heartFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

@keyframes gratitudePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 140, 0, 0.6);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 140, 0, 0.9), 0 0 40px rgba(255, 215, 0, 0.5);
    }
}

/* パーティクル背景 */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatingParticles 15s infinite linear;
}

/* メインコンテンツ */
#main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* ヒーローセクション */
.hero-container {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    height: 80px;
    width: auto;
    z-index: 10;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    opacity: 0;
    animation: fadeInLeft 1s ease-out 0.5s forwards;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.navigation-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 15px;
    opacity: 0;
    animation: fadeInRight 1s ease-out 0.7s forwards;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.famicom-button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Arial', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    position: relative;
    border: 3px solid #2c1810;
    box-shadow: 0 4px 0 #8B4513, 0 8px 15px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
}

.famicom-button[data-color="#4ecdc4"] { background: linear-gradient(145deg, #4ecdc4, #4ecdc4dd); }
.famicom-button[data-color="#ff6b6b"] { background: linear-gradient(145deg, #ff6b6b, #ff6b6bdd); }
.famicom-button[data-color="#ffd700"] { background: linear-gradient(145deg, #ffd700, #ffd700dd); }
.famicom-button[data-color="#96ceb4"] { background: linear-gradient(145deg, #96ceb4, #96ceb4dd); }

.famicom-button:hover {
    animation: buttonPulse 0.6s ease-in-out infinite;
    transform: scale(1.05);
}

.famicom-button:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #8B4513, 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.main-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: white;
    padding: 0 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ffd700;
    text-shadow: 2px 2px 0 #8B4513, 4px 4px 0 #654321, 6px 6px 10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.8);
    animation: float 3s ease-in-out infinite;
    font-family: serif;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    max-width: 900px;
    line-height: 1.8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cta-button {
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(145deg, #ff6b6b, #ff4444);
    border: 4px solid #2c1810;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: sans-serif;
    box-shadow: 0 6px 0 #cc3333, 0 12px 20px rgba(0, 0, 0, 0.4), inset 0 3px 0 rgba(255, 255, 255, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
}

.cta-button:hover {
    animation: buttonPulse 0.8s ease-in-out infinite;
    transform: scale(1.05);
}

.cta-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #cc3333, 0 6px 15px rgba(0, 0, 0, 0.4), inset 0 3px 0 rgba(255, 255, 255, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scroll-indicator span {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: float 2s ease-in-out infinite;
}

/* ストーリーセクション */
.story-container {
    min-height: 100vh;
    padding: 3rem 2rem;
    background: 
        radial-gradient(ellipse 500px 300px at 30% 20%, rgba(92, 51, 23, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 400px 200px at 70% 80%, rgba(61, 35, 14, 0.3) 0%, transparent 50%),
        repeating-linear-gradient(90deg, 
            #3D230E 0px, 
            #5C3317 8px, 
            #4A2C17 16px,
            #6B3E1A 24px,
            #3D230E 32px,
            #4F2F1A 40px
        ),
        linear-gradient(180deg, #2D1B0E 0%, #1A0F08 100%);
    background-size: 100% 100%, 100% 100%, 120px 120px, 100% 100%;
    color: #F4E5D3;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
    color: #d4af37;
    text-shadow: -0.5px -0.5px 0 #f4e5d3, 0.5px -0.5px 0 #f4e5d3, -0.5px 0.5px 0 #f4e5d3, 0.5px 0.5px 0 #f4e5d3, 2px 2px 6px rgba(26, 15, 8, 0.6);
    position: relative;
    z-index: 10;
    font-weight: bold;
}

.section-title::after {
    content: '✦ ◆ ✦';
    display: block;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: #cd853f;
    opacity: 0.8;
    text-shadow: -0.5px -0.5px 0 #f4e5d3, 0.5px -0.5px 0 #f4e5d3, -0.5px 0.5px 0 #f4e5d3, 0.5px 0.5px 0 #f4e5d3, 1px 1px 3px rgba(26, 15, 8, 0.5);
}

.book-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    perspective: 1500px;
    z-index: 5;
}

.page-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 0 auto;
    transform-style: preserve-3d;
    z-index: 5;
}

.book-spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(180deg, #654321, #3d2817);
    transform: translateX(-50%);
    z-index: 10;
    border-radius: 4px;
    box-shadow: -3px 0 6px rgba(0, 0, 0, 0.4), 3px 0 6px rgba(0, 0, 0, 0.4);
}

.page {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #faf8f2 0%, #f4f1e8 50%, #ede5d3 100%);
    border: 2px solid #d4af37;
    padding: 1.5rem;
    overflow: hidden;
    backface-visibility: hidden;
}

.page-left {
    left: 0;
    border-radius: 12px 3px 3px 12px;
    box-shadow: inset -3px 0 8px rgba(139, 69, 19, 0.1), -3px 3px 10px rgba(0, 0, 0, 0.2);
    transform-origin: right center;
}

.page-right {
    right: 0;
    border-radius: 3px 12px 12px 3px;
    box-shadow: inset 3px 0 8px rgba(139, 69, 19, 0.1), 3px 3px 10px rgba(0, 0, 0, 0.2);
    transform-origin: left center;
}

.chapter-number {
    font-size: 2.5rem;
    font-family: 'Cinzel', serif;
    color: #cd853f;
    text-align: center;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.3);
    position: relative;
}

.chapter-number::before {
    content: '〜';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.chapter-number::after {
    content: '〜';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.chapter-title {
    font-size: 1.4rem;
    color: #8b4513;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    position: relative;
}

.chapter-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #cd853f, transparent);
}

.chapter-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #654321;
    text-align: justify;
    font-family: 'Crimson Text', serif;
    position: relative;
    margin-bottom: 1rem;
}

.chapter-description::first-letter {
    float: left;
    font-size: 3rem;
    line-height: 2.5rem;
    padding-right: 6px;
    margin-top: 2px;
    font-family: 'Cinzel', serif;
    color: #cd853f;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.3);
}

.tease-text {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid #cd853f;
    font-style: italic;
    color: #8b4513;
    border-radius: 0 5px 5px 0;
    font-size: 0.9rem;
}

.tease-text::before {
    content: '"';
    font-size: 1.5rem;
    color: #cd853f;
    font-family: 'Cinzel', serif;
    float: left;
    line-height: 1;
    margin-right: 4px;
}

.tease-text::after {
    content: '"';
    font-size: 1.5rem;
    color: #cd853f;
    font-family: 'Cinzel', serif;
    float: right;
    line-height: 1;
    margin-left: 4px;
}

.chapter-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
    margin-bottom: 0.8rem;
    filter: sepia(20%) contrast(1.1);
}

.character-portrait-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0.8rem auto;
}

.character-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #cd853f;
    object-fit: cover;
    box-shadow: 0 6px 12px rgba(139, 69, 19, 0.4);
    filter: sepia(10%);
}

.navigation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    z-index: 10;
    position: relative;
}

.nav-button {
    width: 60px;
    height: 60px;
    border: 3px solid #cd853f;
    border-radius: 50%;
    background: linear-gradient(145deg, #f4f1e8, #e6dcc7);
    color: #8b4513;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-button:hover {
    animation: float 1s ease-in-out infinite;
    box-shadow: 0 6px 12px rgba(139, 69, 19, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.nav-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.3), inset 0 2px 4px rgba(139, 69, 19, 0.2);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-indicator {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.page-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.3);
    border: 2px solid #8b4513;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-dot.active {
    background: #cd853f;
}

.page-dot:hover {
    transform: scale(1.2);
}

/* キャラクターセクション */
.character-container {
    height: 100vh;
    padding: 2rem;
    background: radial-gradient(ellipse at top, rgba(30, 144, 255, 0.2) 0%, transparent 60%), linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.character-container .section-title {
    color: #ff6b6b;
    z-index: 10;
    flex-shrink: 0;
}

.akita-map {
    position: absolute;
    border-radius: 50% 40% 60% 30%;
    pointer-events: none;
    z-index: 3;
    opacity: 0.6;
}

.akita-map::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 40%;
    background: url('images/akitapref.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(1.5) contrast(1.2);
}

@keyframes akitaFloat1 {
    0% { transform: translate(0px, 0px) rotate(0deg) scale(1); opacity: 0.7; }
    25% { transform: translate(-15px, -20px) rotate(90deg) scale(1.1); opacity: 0.5; }
    50% { transform: translate(10px, -30px) rotate(180deg) scale(0.9); opacity: 0.8; }
    75% { transform: translate(20px, -10px) rotate(270deg) scale(1.2); opacity: 0.6; }
    100% { transform: translate(0px, 0px) rotate(360deg) scale(1); opacity: 0.7; }
}

@keyframes akitaFloat2 {
    0% { transform: translate(0px, 0px) rotate(0deg) scale(0.8); opacity: 0.6; }
    33% { transform: translate(25px, -15px) rotate(120deg) scale(1.1); opacity: 0.8; }
    66% { transform: translate(-10px, -25px) rotate(240deg) scale(0.9); opacity: 0.5; }
    100% { transform: translate(0px, 0px) rotate(360deg) scale(0.8); opacity: 0.6; }
}

@keyframes akitaFloat3 {
    0% { transform: translate(0px, 0px) rotate(0deg) scale(1.1); opacity: 0.5; }
    40% { transform: translate(-20px, -30px) rotate(144deg) scale(0.8); opacity: 0.7; }
    80% { transform: translate(30px, -5px) rotate(288deg) scale(1.3); opacity: 0.4; }
    100% { transform: translate(0px, 0px) rotate(360deg) scale(1.1); opacity: 0.5; }
}

.slider-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    z-index: 5;
}

.card-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-card {
    position: relative;
    width: 800px;
    height: 450px;
    background: linear-gradient(145deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    border-radius: 20px;
    border: 4px solid #ffd700;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.2), 0 0 40px rgba(255, 215, 0, 0.3);
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 2rem;
    align-items: center;
    transform-style: preserve-3d;
    animation: floatAnimation 4s ease-in-out infinite;
}

.character-image-display {
    width: 250px;
    height: 250px;
    object-fit: contain;
    grid-row: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-emoji {
    font-size: 10rem;
    position: relative;
    grid-row: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-emoji::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    animation: sparkle 3s ease-in-out infinite;
}

.character-name {
    color: #ffd700;
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    grid-column: 2;
    grid-row: 1;
    align-self: end;
}

.character-role {
    color: #ff6b6b;
    font-weight: bold;
    margin: 0;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    grid-column: 2;
    grid-row: 2;
    align-self: start;
}

.character-description {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1.2rem;
    margin: 0;
    grid-column: 2;
    grid-row: 3;
    align-self: start;
}

.navigation-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-shrink: 0;
}

.card-indicators {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    border: 2px solid #ffd700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #ffd700;
}

.indicator:hover {
    transform: scale(1.2);
}

/* ゲームセクション */
.game-container {
    height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.8) 0%, rgba(15, 20, 25, 0.9) 100%), url('images/kantou.png') center/cover;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-container .section-title {
    color: #4ecdc4;
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    align-items: center;
}

.game-description {
    font-size: 1.2rem;
    text-align: left;
    line-height: 1.6;
    color: #e0e0e0;
}

.game-image {
    width: 100%;
    height: 300px;
    background: url('images/game-preview.png') center/cover;
    border-radius: 15px;
    border: 3px solid #4ecdc4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.themes-list {
    text-align: center;
    margin-bottom: 2rem;
}

.themes-text {
    font-size: 1.4rem;
    color: #ff6b6b;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(145deg, #2563eb 0%, #1e40af 100%);
    border-radius: 15px;
    border: 3px solid #4ecdc4;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.2);
}

.feature-title {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.feature-description {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ECセクション */
.ec-container {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.ec-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 0;
    color: #f5e6d3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    transform-origin: top center;
    z-index: 25;
    padding: 1.5rem 3rem;
    background: radial-gradient(ellipse at top, rgba(92, 51, 23, 0.9) 0%, rgba(74, 41, 18, 0.95) 50%, rgba(61, 34, 15, 1) 100%), repeating-linear-gradient(90deg, rgba(43, 25, 10, 0.8) 0px, rgba(61, 35, 14, 0.8) 2px, rgba(43, 25, 10, 0.8) 4px, rgba(51, 30, 12, 0.8) 6px, rgba(43, 25, 10, 0.8) 8px), linear-gradient(180deg, #5C3317 0%, #3D230E 100%);
    border: 3px solid #2b190a;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.4);
}

.ec-title::before {
    content: '•';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    color: #8B7355;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ec-title::after {
    content: '•';
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    color: #8B7355;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#character-image-wrapper {
    position: absolute;
    bottom: 50vh;
    left: 0;
    width: 40%;
    height: calc(50vh - 100px);
    z-index: 15;
}

#ec-character-image {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 3px solid #ffd700;
    border-bottom: none;
    border-left: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

.character-tab {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 195, 0, 0.95) 100%);
    border: 3px solid #fff;
    border-left: none;
    border-top: none;
    border-radius: 0 0 0 10px;
    padding: 8px 24px;
    color: #333;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    z-index: 16;
    white-space: nowrap;
}

.shop-frame1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 50vh;
    background: linear-gradient(135deg, rgba(30, 40, 60, 0.95) 0%, rgba(20, 30, 50, 0.95) 100%);
    border: 3px solid #ffd700;
    border-bottom: none;
    border-left: none;
    border-radius: 0 15px 0 0;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.shop-frame2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 50vh;
    background: linear-gradient(135deg, rgba(30, 40, 60, 0.95) 0%, rgba(20, 30, 50, 0.95) 100%);
    border: 3px solid #ffd700;
    border-bottom: none;
    border-right: none;
    border-radius: 15px 0 0 0;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.menu-button {
    background: rgba(255, 215, 0, 0.9);
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 20px 40px;
    color: #333;
    font-weight: bold;
    font-size: 32px;
    cursor: pointer;
    z-index: 20;
    width: 90%;
    max-width: 500px;
    transition: all 0.3s ease;
}

.menu-button:hover {
    background: rgba(255, 215, 0, 1);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.dialogue-text {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 40px;
    color: #fff;
    font-size: 36px;
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

#dialogue-content div {
    margin-bottom: 0.5rem;
}

.continue-prompt {
    position: absolute;
    bottom: 20px;
    right: 30px;
    color: #ffd700;
    font-size: 28px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* ビジョンセクション */
.vision-container {
    height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(139, 69, 19, 0.8) 100%), url('images/concept.png') center/cover no-repeat;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vision-container .section-title {
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 140, 0, 0.5);
    flex-shrink: 0;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.vision-section {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem 3rem 3rem 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 140, 0, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 140, 0, 0.3);
}

.vision-title {
    font-size: 1.8rem;
    color: #ffffff;
    background: rgba(255, 94, 0, 0.9);
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    position: absolute;
    top: -23px;
    left: 20px;
    border: 2px solid rgba(255, 140, 0, 0.5);
    backdrop-filter: blur(10px);
}

.vision-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
    max-width: 800px;
    margin: 1rem auto 0;
    text-align: center;
}

.team-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.team-title {
    text-align: center;
    font-size: 1.8rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 140, 0, 0.6);
    margin-bottom: 1.5rem;
}

.team-scroll-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.team-scroll-track {
    display: flex;
    animation: scrollAnimation 20s linear infinite;
    width: calc(200%);
}

.team-card {
    background: rgba(0, 0, 0, 0.6);
    padding: 1.2rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 140, 0, 0.6);
    text-align: center;
    transition: all 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    width: calc(20% - 1rem);
    margin-right: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 140, 0, 0.2);
}

.team-card:hover {
    background: rgba(255, 140, 0, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 140, 0, 0.4);
}

.team-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.team-member-role {
    color: #4ecdc4;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: bold;
}

.team-description {
    color: #e0e0e0;
    line-height: 1.4;
    font-size: 0.8rem;
}

/* 感謝オーバーレイ */
.gratitude-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

.heart-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    font-size: 2rem;
    color: #ff6b6b;
    animation: heartFloat 3s ease-in-out infinite;
}

.sparkle-effect {
    position: absolute;
    font-size: 1.5rem;
    color: #ffd700;
    animation: sparkle 2s ease-in-out infinite;
}

.gratitude-text {
    font-size: 4rem;
    color: #ffffff;
    text-align: center;
    animation: gratitudePulse 2s ease-in-out infinite;
    margin-bottom: 2rem;
}

.gratitude-subtext {
    color: #ff8c00;
    font-size: 1.5rem;
    text-align: center;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* フッター */
.footer-container {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.game-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-text {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.logo-subtext {
    color: #b8b8b8;
    font-style: italic;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-link {
    color: #e0e0e0;
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffd700;
}

.contact-info p {
    color: #e0e0e0;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: #ffd700;
    transform: translateY(-3px);
}

.newsletter {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter p {
    color: #e0e0e0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 1rem;
}

.newsletter-input::placeholder {
    color: #b8b8b8;
}

.newsletter-input:focus {
    outline: none;
    border-color: #ffd700;
}

.newsletter-button {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #b8b8b8;
    font-size: 0.9rem;
}

.copyright p:last-child {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* Back to Top ボタン */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .logo {
        height: 60px;
        top: 15px;
        left: 15px;
    }

    .navigation-menu {
        top: 15px;
        right: 15px;
        gap: 10px;
        flex-wrap: wrap;
        max-width: 200px;
    }

    .famicom-button {
        width: 50px;
        height: 50px;
        font-size: 0.7rem;
    }

    .game-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
        padding: 12px 16px;
        white-space: normal;
        max-width: 95%;
    }

    .cta-button {
        padding: 16px 35px;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .ec-title {
        font-size: 1.8rem;
        top: 1rem;
        padding: 1rem 2rem;
    }

    .page-container {
        height: 400px;
    }

    .chapter-number {
        font-size: 2rem;
    }

    .chapter-title {
        font-size: 1.2rem;
    }

    .chapter-description {
        font-size: 0.85rem;
    }

    .chapter-description::first-letter {
        font-size: 2.5rem;
        line-height: 2rem;
    }

    .tease-text {
        font-size: 0.8rem;
    }

    .tease-text::before,
    .tease-text::after {
        font-size: 1.2rem;
    }

    .character-card {
        width: 350px;
        height: 500px;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        grid-template-columns: none;
        grid-template-rows: none;
    }

    .character-emoji {
        font-size: 6rem;
        margin-bottom: 1.5rem;
        grid-row: auto;
    }

    .character-name {
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 0.5rem;
        grid-column: auto;
        grid-row: auto;
        align-self: auto;
    }

    .character-role {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 1rem;
        grid-column: auto;
        grid-row: auto;
        align-self: auto;
    }

    .character-description {
        font-size: 1rem;
        text-align: center;
        grid-column: auto;
        grid-row: auto;
        align-self: auto;
    }

    .nav-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .content-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .game-description {
        font-size: 1rem;
        text-align: center;
    }

    .game-image {
        height: 250px;
    }

    .themes-text {
        font-size: 1.2rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }

    .shop-frame1 {
        width: 35%;
        height: 40vh;
    }

    .shop-frame2 {
        width: 65%;
        height: 40vh;
        padding: 20px;
    }

    .menu-button {
        font-size: 24px;
        padding: 16px 32px;
        width: 95%;
    }

    .dialogue-text {
        font-size: 28px;
        padding: 30px;
    }

    #character-image-wrapper {
        width: 35%;
        height: calc(60vh - 100px);
    }

    .character-tab {
        font-size: 16px;
        padding: 6px 16px;
    }

    .vision-section {
        padding: 1.5rem 2rem 2rem 2rem;
        margin-bottom: 1.5rem;
    }

    .vision-title {
        font-size: 1.3rem;
        padding: 0.6rem 1rem;
        top: -19px;
        left: 15px;
    }

    .vision-text {
        font-size: 1rem;
        line-height: 1.6;
        margin: 0.8rem auto 0;
    }

    .team-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .team-card {
        min-height: 120px;
        padding: 1rem;
        width: calc(50% - 1rem);
    }

    .team-icon {
        font-size: 1.5rem;
    }

    .team-member-role {
        font-size: 0.9rem;
    }

    .team-description {
        font-size: 0.75rem;
    }

    .gratitude-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .subtitle {
        font-size: 1rem;
        padding: 10px 14px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}