@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;700;900&display=swap');

@font-face {
    font-family: 'UniSansHeavyCAPS';
    src: url('assets/webfonts_UniSansHeavyCAPS/UniSansHeavyCAPS.ttf.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* --- Palette --- */
    --main-green: #689F38;
    /* Primary Color (Text, Buttons, Borders) */
    --bg-forest: #DCEDC8;
    /* Page Background */
    --card-cream: #fafde0;
    /* Section Background */
    --accent-green: #8BC34A;
    /* Accent Green for special buttons */

    /* --- Measurements --- */
    --radius-pop: 30px;
    --shadow-pop: 5px 5px 0px rgba(27, 94, 32, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-forest);
    background-image:
        radial-gradient(var(--main-green) 1px, transparent 1px),
        radial-gradient(var(--main-green) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    /* Polka dot pattern */
    color: var(--main-green);
    font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Meiryo', sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--main-green);
    font-weight: 800;
}

a {
    color: var(--main-green);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy */
}

a:hover {
    color: var(--main-green);
}

/* --- Layout --- */

.container {
    max-width: 1200px;
    /* Increased from 1000px for wider split layout */
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 40px;
    margin: 40px 20px;
    border-radius: var(--radius-pop);
    background: var(--card-cream);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.05),
        var(--shadow-pop);
    position: relative;
    border: 4px solid var(--card-cream);
}

section::before {
    /* Decorative Leaf or Dot */
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--main-green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--card-cream);
}

section:last-child {
    margin-bottom: 60px;
}

/* --- Hero Section --- */
#hero {
    min-height: auto;
    padding: 60px 0 10px 0;
    /* Reduced bottom padding */
    text-align: center;
    background: transparent;
    box-shadow: none;
    border: none;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Specific Font for Logo */
#hero h1 {
    font-family: 'UniSansHeavyCAPS', sans-serif;
    font-size: 6rem;
    color: #689F38;
    /* Green Text */
    -webkit-text-stroke: 0;
    /* No Outline */
    paint-order: stroke fill;
    text-shadow: none;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
    transform: none;
    /* No rotation */
}

#hero::before {
    display: none;
}

/* No dot for hero */

/* --- Language Switcher --- */
.lang-switch {
    margin-top: 40px;
    /* Pushed lower */
    display: flex;
    gap: 15px;
    justify-content: center;
}

.lang-btn {
    border: none;
    padding: 8px 24px;
    border-radius: 50px;
    background: var(--card-cream);
    color: var(--main-green);
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 5px 0 rgba(27, 94, 32, 0.1);
    /* Soft green shadow */
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--main-green);
}

.lang-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 rgba(27, 94, 32, 0.1);
    background: var(--bg-forest);
}

.lang-btn.active {
    background: var(--main-green);
    color: #fff;
    border-color: var(--main-green);
    box-shadow: 0 0 0 transparent;
    transform: translateY(2px);
    /* Pressed effect */
}

/* Language Toggle Logic */
body.lang-ja [data-lang="en"] {
    display: none !important;
}

body.lang-en [data-lang="ja"] {
    display: none !important;
}

/* --- Game Sections --- */
/* --- Game Sections --- */
.game-section {
    display: flex;
    flex-direction: column;
    /* Stack Title, Body, Button vertical */
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.game-header {
    text-align: center;
    margin-bottom: 10px;
}

.game-header h2 {
    font-size: 3rem;
    color: var(--main-green);
    margin-top: 0;
    margin-bottom: 15px;
    /* Added space below title */
}

.game-split-body {
    display: flex;
    flex-direction: row;
    /* Split Text and Video */
    align-items: center;
    /* Center vertically */
    justify-content: space-between;
    gap: 80px;
    /* Increased gap to push content outwards */
    width: 100%;
}

.game-desc-col {
    flex: 1;
    text-align: center;
    /* User requested center alignment */
    /* Text stays left */
    padding-right: 0;
    /* Removed padding as gap handles it */
}

.game-media-col {
    flex: 1.2;
    /* Give video slightly more space for impact */
    width: 100%;
    /* Max width controlled by internal elements */
}

/* Game Visual Removed */



.game-description {
    font-size: 1.1rem;
    color: var(--main-green);
    font-weight: 700;
    /* Bold for readability on light bg */
    margin: 1.5rem 0;
    line-height: 1.9;
}

/* --- Store Links --- */
.store-links-container {
    display: flex;
    justify-content: center;
    gap: 10px 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    min-width: 260px;
    /* Increased width to match widest button */
    margin: 0;
    /* Override generic .btn margin */
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.btn-label {
    font-size: 1.25rem;
    /* Larger Text */
    line-height: 1.2;
}

.platform-text {
    font-size: 0.8rem;
    opacity: 0.9;
    /* font-weight removed to match bold button style */
    margin-top: 2px;
}

/* Base btn style remains, but btn-sm overrides specific props */
.btn {
    display: table;
    /* Allows centering with margin auto while keeping size */
    margin: 1rem auto 0 auto;
    /* Center button */
    padding: 15px 35px;
    background: var(--main-green);
    /* Revert to Pink */
    border-radius: 50px;
    color: #fff;
    /* Revert to White */
    font-weight: 800;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(124, 179, 66, 0.4);
    /* Green Shadow */
}

.btn:hover {
    background: #689F38;
    /* Deep Forest on Hover */
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(51, 105, 30, 0.4);
}

/* Game Image & Video Modal Specifics */
.game-image-container {
    width: 100%;
    max-width: 800px;
    height: auto;
    position: relative;
    border-radius: var(--radius-pop);
    border: 4px solid var(--main-green);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-pop);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-image-container:hover {
    transform: scale(1.02);
}

.game-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Preview Container (Click to Modal) */
.game-video-preview,
.video-placeholder {
    width: 100%;
    /* Fill column */
    aspect-ratio: 16/9;
    position: relative;
    border-radius: var(--radius-pop);
    border: 4px solid var(--main-green);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-pop);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #000;
}

/* Specific fix for text placeholder centering */
.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main-green);
    color: #fff;
    cursor: default;
    /* No click for placeholder */
}

.game-video-preview:hover {
    transform: scale(1.02);
}

.game-video-preview iframe {
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Make iframe click-through to container */
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent dark */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--main-green);
    pointer-events: none;
    transition: all 0.3s;
}

.play-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

.game-video-preview:hover .play-overlay {
    background: var(--main-green);
    border-color: var(--main-green);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Modal */
#video-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#video-modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-pop);
    box-shadow: 0 0 30px rgba(124, 179, 66, 0.5);
    border: none;
    /* User requested no border for large view */
    overflow: hidden;
    /* Ensure corners don't poke out if radius is kept */
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--main-green);
    transform: scale(1.1);
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--main-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 20px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    position: relative;
    overflow: hidden;
    overflow: hidden;
    border: 4px solid var(--accent-green);
    /* Unified Green Border */
}

/* --- Footer / SNS --- */
#sns {
    text-align: center;
    background: var(--card-cream);
    padding: 40px 0;
}

#sns h2 {
    color: var(--main-green);
    /* Match Game Title Color */
}

.sns-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.sns-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--main-green);
    font-weight: 700;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sns-item:hover {
    transform: translateY(-10px);
    color: var(--main-green);
}

.sns-icon {
    width: 70px;
    /* Increased size */
    height: 70px;
    background: transparent;
    /* No white background */
    border: none;
    /* No border */
    display: flex;
    align-items: center;
    justify-content: center;
    /* font styles removed as we use images now */
    box-shadow: none;
    /* No shadow */
}

.sns-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(3px 3px 0 rgba(27, 94, 32, 0.2));
    /* Add shadow to image itself */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sns-item:hover .sns-icon img {
    transform: scale(1.1);
    /* Bounce effect on hover */
}

/* --- Footer --- */
.site-footer {
    margin-top: 50px;
    color: var(--main-green);
    /* Yellow-green */
    font-size: 0.8rem;
    font-family: 'Helvetica Neue', 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    font-weight: 700;
    /* Bold for readability */
}

/* Development Warning Text */
.dev-warning {
    color: var(--main-green);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    font-weight: 900;
}

/* --- Mobile Responsiveness --- */
/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .game-split-body {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .game-desc-col {
        text-align: center;
        /* Center text on mobile */
        padding-right: 0;
    }

    .game-visual {
        order: 1;
    }

    /* Prevent Logo Wrap and scale text */
    #hero h1 {
        font-size: 12vw;
        /* Scales with screen width */
        white-space: nowrap;
        /* Forces single line */
    }

    h2 {
        font-size: 1.2rem;
        /* Drastic reduction for long titles */
        line-height: 1.3;
    }

    /* Tighter spacing for game headers on mobile */
    .game-header h2 {
        margin-top: 2px;
        margin-bottom: 2px;
    }

    .game-header {
        margin-bottom: 10px;
        /* Reduced overall header spacing */
    }

    section {
        margin: 20px 5px;
        /* Reduced margin */
        padding: 30px 10px;
        /* Reduced padding to make video larger */
    }

    /* Reduce spacing between description and store buttons on mobile */
    .game-description {
        margin-bottom: 0;
        /* Removed margin completely */
    }

    .store-links-container {
        margin-top: 0;
        /* Removed margin completely */
    }
}

/* Demo Download Button Specifics */
.demo-download-btn {
    background-color: var(--main-green) !important;
    border-color: #fff !important;
    color: #fff !important;
}

.demo-download-btn:hover {
    background-color: var(--main-green) !important;
    color: #fff !important;
    transform: translateY(-5px) scale(1.05);
}
/* Direct Buy Button (Stripe) */
.direct-buy-btn {
    background-color: #635bff !important; /* Stripe Blurple */
    border-color: #fff !important;
}

.direct-buy-btn:hover {
    background-color: #0a2540 !important; /* Stripe Dark */
    color: #fff !important;
    transform: translateY(-5px) scale(1.05);
}
