/* Global Styles */
:root {
    --primary-color: #4AA0D5;
    --secondary-color: #FF9C6B;
    --accent-color: #FFE66D;
    --dark-color: #121212;
    --light-color: #1E1E1E;
    --text-color: #EEEEEE;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --border-radius: 8px;
}

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

html, body {
    background-color: #000000;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #000000;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Header Styles */
header {
    background-color: var(--dark-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--text-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 64px; /* 猫アイコンの高さに合わせる */
}

nav ul li {
    margin-left: 25px;
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(to right, #000000, #121212);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    width: 50%;
    padding-right: 30px;
}

.hero-image {
    width: 45%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-cat-animation {
    width: 128px;
    height: 128px;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 1280px 128px; /* 10コマ x 128px */
    display: inline-block;
    animation: playHeroSprite 1.5s steps(10) infinite;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-right: 15px;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

@keyframes playHeroSprite {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -1280px 0;
    }
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: white;
}

.cta-button.primary:hover {
    background-color: #3a8bc0;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: var(--dark-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--dark-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #2A2A2A;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: #121212;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.step {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.step-cat-animation {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.feature-cat {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: block;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.step-image {
    width: 300px;
    flex-shrink: 0;
}

.step-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Download Section */
.download {
    padding: 80px 0;
    background-color: var(--dark-color);
    text-align: center;
}

.download-description {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.app-badge img {
    height: 60px;
    transition: transform 0.3s ease;
}

.app-badge img:hover {
    transform: scale(1.05);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: #121212;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #2A2A2A;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #2A2A2A;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #3A3A3A;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-color);
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Support Section */
.support {
    padding: 80px 0;
    background-color: var(--dark-color);
}

.support-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-info a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #ff4757;
    text-decoration: underline;
}

.contact-info i {
    margin-right: 5px;
    color: #ff6b6b;
}

/* Footer */
footer {
    background-color: #000000;
    color: var(--text-color);
    padding: 50px 0 20px;
}

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

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

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h4, .footer-social h4, .footer-legal h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links a, .footer-legal a {
    color: white;
    opacity: 0.8;
}

.footer-links a:hover, .footer-legal a:hover {
    opacity: 1;
    color: var(--accent-color);
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

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

/* Slideshow container */
.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px;
}

.mySlides {
    display: none;
    text-align: center;
}

.mySlides:first-child {
    display: block;
}

.mySlides img {
    max-width: 100%;
    max-height: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots-container {
    text-align: center;
    padding: 10px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot, .dot:hover {
    background-color: var(--primary-color);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Sprite Animation */
.sprite-animation {
    width: 64px;
    height: 64px;
    background-repeat: no-repeat;
    background-position: 0 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.cat-icon {
    background-image: url('/images/nekoanim/Idle.png');
    background-size: 384px 64px; /* 6コマ x 64px */
    animation: playSprite6 1s steps(6) infinite;
}

.cat-jump {
    background-image: url('/images/nekoanim/Jump.png');
    background-size: 768px 64px; /* 12コマ x 64px */
    animation: playSprite12 1.8s steps(12) infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: relative;
}

.cat-attack {
    background-image: url('/images/nekoanim/Attack.png');
    background-size: 448px 64px; /* 7コマ x 64px */
    animation: playSprite7 1.2s steps(7) infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: relative;
}

.cat-excited {
    background-image: url('/images/nekoanim/Excited.png');
    background-size: 192px 64px; /* 3コマ x 64px */
    animation: playSprite3 0.6s steps(3) infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: relative;
}

.cat-running {
    background-image: url('/images/nekoanim/Running.png');
    background-size: 384px 64px; /* 6コマ x 64px */
    animation: playSprite6 0.8s steps(6) infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: relative;
}

.cat-tickle {
    background-image: url('/images/nekoanim/Tickle.png');
    background-size: 256px 64px; /* 4コマ x 64px */
    animation: playSprite4 0.8s steps(4) infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: relative;
}

.cat-number {
    width: 64px;
    height: 64px;
    background-image: url('/images/nekoanim/Running.png');
    background-size: 256px 64px; /* 4コマ x 64px */
    animation: playSprite4 0.8s steps(4) infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: relative;
}

.cat-happy {
    background-image: url('/images/nekoanim/Happy.png');
    background-size: 256px 64px; /* 4コマ x 64px */
    animation: playSprite4 0.8s steps(4) infinite;
}

@keyframes playSprite3 {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -192px 0;
    }
}

@keyframes playSprite4 {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -256px 0;
    }
}

@keyframes playSprite6 {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -384px 0;
    }
}

@keyframes playSprite7 {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -448px 0;
    }
}

@keyframes playSprite8 {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -512px 0;
    }
}

@keyframes playSprite10 {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -640px 0;
    }
}

@keyframes playSprite12 {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -768px 0;
    }
}

/* Placeholder Styling */
#logo-placeholder, #hero-placeholder, #step1-placeholder, #step2-placeholder, #step3-placeholder, #step4-placeholder, #appstore-placeholder, #footer-logo-placeholder {
    background-color: #333333;
    display: inline-block;
}

#logo-placeholder {
    width: 50px;
    height: 50px;
}

#hero-placeholder {
    width: 100%;
    height: 300px;
}

#step1-placeholder, #step2-placeholder, #step3-placeholder, #step4-placeholder {
    width: 100%;
    height: 200px;
}

#appstore-placeholder {
    width: 135px;
    height: 40px;
}

#footer-logo-placeholder {
    width: 40px;
    height: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-image {
        width: 70%;
    }

    .cta-buttons {
        justify-content: center;
    }

    .step {
        flex-direction: column;
    }

    .step-image {
        width: 100%;
        max-width: 300px;
        order: -1;
    }

    .support-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 20px;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 0 10px 10px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-content > div {
        width: 100%;
    }
}

/* Main Promo Section */
.main-promo {
    padding: 80px 0;
    background-color: #f5f7fa;
    background: linear-gradient(to right, #000000, #121212);
}

.main-promo .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.promo-content {
    width: 50%;
    padding-right: 30px;
    color: var(--text-color);
}

.promo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.promo-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.promo-image {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.big-cat-animation {
    width: 128px;
    height: 128px;
    background-image: url('/images/nekoanim/Happy.png');
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 1280px 128px; /* 10コマ x 128px */
    animation: playHeroSprite 1.5s steps(10) infinite;
}

@keyframes playHeroSprite {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -1280px 0;
    }
} 