:root {
    --primary: #f67280;
    --primary-light: #fbeee0;
    --accent: #f8b195;
    --text-main: #4a403f;
    --text-muted: #8e807e;
    --bg-color: #fffaf7;
    --bg-card: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 30px rgba(246, 114, 128, 0.1);
    --hover-shadow: 0 15px 40px rgba(246, 114, 128, 0.2);
    --radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

h1, h2, h3, .title, .subtitle {
    font-family: 'Kiwi Maru', serif;
}

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

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: #fff5f5;
}

/* Typography */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
    transition-duration: 0.8s;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7f8 0%, #fae1e1 100%);
}

.hero-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(246,114,128,0.05) 50%, transparent 100%);
    animation: rotate 80s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 1;
    position: relative;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 480px;
}

.title {
    font-size: 4rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 500;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
}

.subtitle {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 40px;
    font-weight: 400;
}

.store-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: var(--transition);
    background: #000;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    gap: 8px;
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.store-btn.google-play {
    background: #fff;
    color: #000;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(246, 114, 128, 0.2);
    transform: rotate(2deg);
    transition: var(--transition);
    border: 8px solid #fff;
}

.hero-image-wrapper:hover .hero-image {
    transform: rotate(0deg) scale(1.02);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    animation: bounce 2s infinite ease-in-out;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-main);
    border-radius: 20px;
    position: relative;
    margin-bottom: 8px;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-main);
    border-radius: 2px;
}

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

/* What's New */
.news-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.news-list {
    margin: 0;
}

.news-date {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

/* Synopsis */
.synopsis-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-main);
}

.synopsis-content p {
    margin-bottom: 25px;
}

.synopsis-content p:last-child {
    margin-bottom: 0;
}

.synopsis-content strong {
    color: var(--primary);
    font-weight: bold;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 40px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    background: rgba(255, 255, 255, 0.95);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Characters */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.character-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.room-number {
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    background: var(--primary);
    padding: 2px 10px;
    border-radius: 10px;
}

.char-avatar {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    position: relative;
    border-bottom: 1px solid #eee;
}

/* Placeholder gradients for different characters */
.char-101 {
    background: url('assets/characters/rico_scene_opening.webp') center center / cover no-repeat;
}
.char-102 {
    background: url('assets/characters/mio_scene_opening.webp') center center / cover no-repeat;
}
.char-103 {
    background: url('assets/characters/go_scene_opening.webp') center center / cover no-repeat;
}
.char-104 {
    background: url('assets/characters/shin_scene_opening.webp') center center / cover no-repeat;
}
.char-201 { background: linear-gradient(135deg, #f3e5f5 0%, #fff 100%); }
.char-202 { background: linear-gradient(135deg, #e0f7fa 0%, #fff 100%); }
.char-203 { background: linear-gradient(135deg, #fbe9e7 0%, #fff 100%); }
.char-204 { background: linear-gradient(135deg, #fff3e0 0%, #fff 100%); }
.char-205 { background: linear-gradient(135deg, #e8eaf6 0%, #fff 100%); }
.char-206 { background: linear-gradient(135deg, #eceff1 0%, #fff 100%); }

.char-info {
    padding: 20px;
    text-align: center;
}

.char-name {
    font-size: 1.2rem;
    color: var(--text-main);
}

/* Links Section */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.link-card {
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.link-card.plain-card {
    background: #fff;
    color: var(--text-main);
}

.gradient-1 {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.link-card p {
    margin-bottom: 25px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.plain-card p {
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.btn-solid {
    background: #fff;
    color: var(--primary);
}

.btn-solid:hover {
    background: var(--bg-color);
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-note {
    background: #41c9b4;
    color: #fff;
}
.btn-note:hover { background: #33b19e; }

.btn-x {
    background: #000;
    color: #fff;
}
.btn-x:hover { background: #333; }

.history-list {
    list-style: none;
    text-align: left;
    width: 100%;
}

.history-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}
.history-list li:last-child {
    border-bottom: none;
}

.version {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 15px;
}

.desc {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: #fff;
    padding: 60px 0 20px;
    border-top: 1px solid #fce4ec;
}

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

.credit {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
}

.credit-sub {
    color: var(--text-muted);
    font-weight: 500;
}

.x-link {
    color: var(--text-muted);
    transition: var(--transition);
}

.x-link:hover {
    color: #000;
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .store-buttons {
        justify-content: center;
    }
    
    .title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 60px 0;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .store-buttons {
        flex-direction: column;
    }
    
    .store-btn {
        width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .synopsis-content {
        font-size: 1rem;
        text-align: left;
        padding: 0 10px;
    }
}
