/* Base Styles */
:root {
    --primary-color: #1ac442;
    --primary-light: #75ff75;
    --primary-dark: #49b345;
    --secondary-color: #34c759;
    --text-dark: #1c1c1e;
    --text-light: #8e8e93;
    --background-light: #ffffff;
    --background-dark: #f5f5f7;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

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

/* Header */
header {
    background-color: var(--background-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

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

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.logo-link:hover {
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    top: -2px;
}

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

nav a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

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

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f8fc, var(--background-light));
    overflow: hidden;
}

.hero .container {
    display: flex;
    justify-content: center;
}

.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
}


.hero-centered h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    margin-top: 40px;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    font-size: 1.5em;
    margin: auto 0.1em;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    bottom: 4px;
    left: 0;
    background-color: rgba(88, 86, 214, 0.2);
    z-index: -1;
}

.hero-centered p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 24px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(88, 86, 214, 0.25);
}

.primary-btn:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 86, 214, 0.35);
}

.secondary-btn {
    background-color: var(--background-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: rgba(88, 86, 214, 0.1);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    max-width: 600px;
}

.hero-image img {
    max-width: 100%;
    width: 200px;
    height: auto;
}

.hero-image p {
    color: var(--text-dark);
    font-weight: bold;
    position: relative;
    top: -10px;
    margin: 0;
}

.mobile-only {
    display: none;
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background-color: var(--background-dark);
    overflow-x: hidden;
}

.screenshots h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 550px;
    border-radius: var(--border-radius);
    overflow: visible;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.carousel-slide img,
.video-container video {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    display: block;
}

.video-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.caption {
    margin-top: 24px;
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
    max-width: 80%;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0 20px;
    position: relative;
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    width: 50px;
    height: 50px;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: absolute;
    top: 38%;
    z-index: 20;
    background-color: transparent;
}

.carousel-prev {
    left: 15px;
    transform: rotateZ(180deg);
}

.carousel-prev:hover {
    transform: rotateZ(180deg) scale(1.1);
}

.carousel-next {
    right: 15px;
}

.carousel-next:hover {
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 10px;
    margin: 0 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

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

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

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

.feature-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease, opacity 0.6s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
    }
}

.feature-icon {
    background-color: rgba(99, 214, 86, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon img {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
}


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

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.download p {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 32px;
}

.app-store-button {
    display: inline-block;
}

.app-store-button img {
    height: 60px;
}

/* Requirements Section */
.requirements-section {
    padding: 80px 0;
    background-color: var(--background-light);
    text-align: center;
}

.requirements {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--background-light);
    padding: 32px;
    border-radius: var(--border-radius);
}

.requirements h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.requirements ul {
    list-style-position: inside;
    text-align: left;
}

.requirements li {
    margin-bottom: 8px;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: var(--background-dark);
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-dark);
}

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

.faq-item {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

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

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.footer-links li {
    text-align: right;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

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

.credit-line {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-centered h2 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel-slide img,
    .video-container video {
        max-height: 400px;
    }

    .carousel-slides {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-centered h2 span {
        display: inline-block;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-end;
        gap: 24px;
    }

    .footer-logo {
        align-items: center;
    }

    .footer-links ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .carousel-slides {
        height: 450px;
    }

    .carousel-slide img,
    .video-container video {
        max-height: 300px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .mobile-only {
        display: block;
    }
}

/* Hide carousel buttons on touch devices */
.touch-device .carousel-prev,
.touch-device .carousel-next {
    display: none;
}

.touch-device .carousel-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;

    /* スクロールバーを非表示 */
    -ms-overflow-style: none; /* IE、Edge */
    scrollbar-width: none; /* Firefox */
}

.touch-device .carousel-container::-webkit-scrollbar {
    display: none; /* Chrome、Safari */
}

.touch-device .carousel-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    transform: none !important;
    transition: none !important;

    /* スクロールバーを非表示 */
    -ms-overflow-style: none; /* IE、Edge */
    scrollbar-width: none; /* Firefox */
}

.touch-device .carousel-slides::-webkit-scrollbar {
    display: none; /* Chrome、Safari */
}

.touch-device .carousel-slide {
    scroll-snap-align: start;
    min-width: 100%;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .screenshots {
        padding: 20px 0;
    }

    .features {
        padding: 40px 0;
    }

    .download {
        padding: 40px 0;
    }

    .requirements-section {
        padding: 20px 0;
    }

    .carousel-slides {
        height: 400px;
    }

    .carousel-slide img,
    .video-container video {
        max-height: 250px;
    }

    .caption {
        font-size: 1rem;
    }

    .hero-centered h2 {
        font-size: 2rem;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 12px;
    }

    .faq-section {
        padding: 60px 0;
    }

    .faq-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .faq-item {
        padding: 24px;
        margin-bottom: 16px;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .requirements h2 {
        font-size: 2rem;
    }
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-selector select {
    background-color: var(--background-light);
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.language-selector select:hover {
    border-color: var(--primary-color);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 196, 66, 0.1);
}

/* Translation Notice */
.translation-notice {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
    padding: 12px;
    background-color: #313131;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}
