/* チャックルン ゲームランディングページのスタイル - 森をイメージした配色 */
:root {
    --primary-color: #2e8b57; /* シーグリーン */
    --secondary-color: #3a7ca5; /* ブルー */
    --accent-color: #8bc34a; /* ライム */
    --dark-color: #1b5e20; /* ダークグリーン */
    --light-color: #f1f8e9; /* 薄い緑がかった白 */
    --gradient-bg: linear-gradient(135deg, #2e8b57 0%, #3a7ca5 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #f0f2f5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.game-header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.back-to-home {
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.back-to-home i {
    margin-right: 5px;
}

.back-to-home:hover {
    color: var(--primary-color);
}

.game-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.game-nav a {
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

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

.game-nav a:not(.nav-download)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.game-nav a:hover::after {
    width: 100%;
}

.nav-download {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 4px 8px rgba(27, 94, 32, 0.2); /* 森の影 */
}

.nav-download:hover {
    background-color: #1b5e20; /* より濃い森のグリーン */
    transform: translateY(-2px);
}

/* ヒーローセクション */
.hero-section {
    background: var(--gradient-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 50px 50px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    color: white;
    z-index: 5; /* キャラクターより前面に配置 */
    max-width: 500px;
    position: relative;
}

.hero-logo {
    margin-bottom: 20px;
    max-width: 350px;
}

.hero-logo img {
    width: 100%;
    height: auto;
}

.hero-tagline {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.download-btn {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(27, 94, 32, 0.15);
    margin-bottom: 30px;
    border: 2px solid rgba(139, 195, 74, 0.3); /* 薄い緑の境界線 */
}

.btn-inner {
    display: flex;
    align-items: center;
}

.download-btn i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.game-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-left: 20px; /* コンテンツとの間隔を調整 */
}

.main-visual {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.floating-characters {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none; /* クリックイベントを下層に通過させる */
}

.character-visual {
    position: absolute;
    width: 200px;
    height: auto;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
}

.character-1 {
    bottom: -20px;
    right: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.character-2 {
    bottom: 30px;
    right: 25%;
    animation: float 7s ease-in-out infinite;
    animation-delay: 0.5s;
    z-index: 2;
}

.character-3 {
    bottom: -10px;
    right: 0;
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translatey(0px) rotate(10deg);
    }
    50% {
        transform: translatey(-20px) rotate(15deg);
    }
    100% {
        transform: translatey(0px) rotate(10deg);
    }
}

/* セクション共通スタイル */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
}

.accent-text {
    color: var(--primary-color);
    position: relative;
}

/* ストーリーセクション */
.story-section {
    background-color: white;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.story-image {
    flex: 1;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.story-image.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.story-text {
    flex: 1;
}

.story-description {
    font-size: 1.1rem;
    line-height: 1.8;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* 特徴セクション */
.features-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(46, 139, 87, 0.15); /* 森のグリーン */
    border-radius: 50%;
    top: -150px;
    left: -150px;
    z-index: 0;
}

.features-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(58, 124, 165, 0.15); /* 森の湖のブルー */
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.8s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: #666;
}

/* ゲームプレイセクション */
.gameplay-section {
    background-color: var(--dark-color);
    color: white;
}

.gameplay-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.gameplay-text {
    flex: 1;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.gameplay-text.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.gameplay-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.gameplay-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.gameplay-features {
    margin-top: 30px;
}

.gameplay-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.gameplay-feature i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-right: 15px;
}

.gameplay-image {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gameplay-image.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.gameplay-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* トレーラーセクション */
.trailer-section {
    background-color: var(--dark-color);
    padding: 80px 0;
    color: white;
}

.trailer-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9のアスペクト比 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 縦スクリーンショット */
.vertical-screenshot {
    max-height: 500px;
    width: auto;
    margin: 0 auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    object-fit: contain; /* アスペクト比を保持 */
}

/* キャラクターセクション */
.characters-section {
    background-color: white;
    position: relative;
}

.characters-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100px;
    background: linear-gradient(to right, #ff6b6b, #ffd166);
    bottom: 0;
    left: 0;
    clip-path: polygon(0 70%, 100% 30%, 100% 100%, 0% 100%);
    z-index: 0;
}

.characters-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px 40px;
    margin: 0 -20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.characters-slider::-webkit-scrollbar {
    display: none;
}

.character-card {
    min-width: 300px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.character-image {
    height: 350px;
    background: linear-gradient(to bottom, #ffefba, #ffffff);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.character-image img {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.character-info {
    padding: 20px;
}

.character-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.character-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.coming-soon {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: #666;
}

/* ダウンロードセクション */
.download-section {
    background: var(--gradient-bg);
    color: white;
    position: relative;
    z-index: 1;
}

.download-subtitle {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 60px;
    font-weight: 600;
}

.download-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.download-qr {
    text-align: center;
}

.download-qr img {
    width: 180px;
    height: 180px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.download-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-store-btn {
    display: flex;
    align-items: center;
    background-color: white;
    color: var(--dark-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.app-store-btn i {
    font-size: 2rem;
    margin-right: 15px;
}

.app-store-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.download-note {
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.share-buttons {
    text-align: center;
}

.social-share {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: scale(1.1);
}

.twitter {
    background-color: #1da1f2;
}

.line {
    background-color: #00b900;
}

.facebook {
    background-color: #1877f2;
}

.share-btn i {
    color: white;
    font-size: 1.5rem;
}

/* フッター */
.game-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* スクロールアニメーション用のクラス */
.scroll-reveal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
}

.scroll-reveal.from-left {
    transform: translateX(-50px);
}

.scroll-reveal.from-right {
    transform: translateX(50px);
}

.scroll-reveal.from-bottom {
    transform: translateY(30px);
}

.scroll-reveal.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(0);
}

/* レスポンシブデザイン */
@media (max-width: 991px) {
    .hero-section {
        flex-direction: column;
        padding-top: 100px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 50px;
        max-width: 100%;
    }
    
    .hero-tagline {
        font-size: 2.5rem;
    }
    
    .game-badges {
        justify-content: center;
    }
    
    .story-content, .gameplay-content {
        flex-direction: column;
    }
    
    .floating-characters {
        position: relative;
        height: 200px;
        margin-top: 30px;
    }
    
    .character-1 {
        right: 60%;
        bottom: 0;
    }
    
    .character-2 {
        right: 30%;
        bottom: 20px;
    }
    
    .character-3 {
        right: 0%;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    .game-nav ul {
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .character-card {
        min-width: 250px;
    }
    
    .character-image {
        height: 250px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-tagline {
        font-size: 2rem;
    }
    
    .download-btn, .app-store-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .character-visual {
        width: 120px; /* モバイルでのキャラクターサイズを小さく */
    }
    
    .floating-characters {
        height: 150px;
    }
    
    .video-container {
        padding-bottom: 65%; /* モバイルでの動画アスペクト比調整 */
    }
}
