/* 変数定義 */
:root {
    --primary-color: #0e0e52;
    --primary-dark: #080838;
    --primary-light: #1a1a7a;
    --secondary-color: #ff3e55;
    --secondary-dark: #cc1f35;
    --secondary-light: #ff6b78;
    --accent-color: #00e5ff;
    --accent-dark: #00b5cc;
    --accent-light: #80f2ff;
    --text-color: #f4f4f8;
    --text-light: #ffffff;
    --text-muted: rgba(244, 244, 248, 0.7);
    --dark-color: #111;
    --dark-overlay: rgba(17, 17, 17, 0.85);
    --dark-overlay-light: rgba(17, 17, 17, 0.6);
    --light-color: #f8f8f8;
    --line-color: #06C755;
    /* トランジション */
    --transition-slow: 0.7s cubic-bezier(0.77, 0, 0.175, 1);
    --transition-medium: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: 0.3s ease;
    --transition-bounce: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 全体設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.alt-bg {
    background-color: rgba(14, 14, 82, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-divider {
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 1rem auto;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color);
}

.section-divider::before {
    left: -10px;
}

.section-divider::after {
    right: -10px;
}

.section-subheading {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 1rem 0;
    transition: transform 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header h1 a {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

header h1 a::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

header h1 a:hover::before {
    width: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ヒーローセクション */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.7), rgba(14, 14, 82, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text .highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero-text .highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    bottom: 5px;
    left: 0;
    background-color: rgba(0, 229, 255, 0.2);
    z-index: -1;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.animate-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.animate-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 1.1s;
}

.line-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--line-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.line-button:hover {
    background-color: #05a847;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.3);
    color: white;
}

.line-button i {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

.line-button.large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.outline-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
}

.outline-button i {
    margin-left: 0.5rem;
}

.hero-image {
    flex: 1;
    position: relative;
    max-width: 600px;
    padding: 2rem;
}

.led-display-mock {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 229, 255, 0.5);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5),
                inset 0 0 15px rgba(0, 229, 255, 0.3);
    height: 400px;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: neonGlow 3s infinite ease-in-out;
}

.led-display-mock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.8), transparent);
    animation: scanline 4s linear infinite;
    opacity: 0.5;
    z-index: 2;
}

.led-display-mock.flicker {
    opacity: 0.8;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(400px);
    }
}

.message-container {
    padding: 1rem;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.message {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.8rem;
    max-width: 80%;
    align-self: flex-start;
    animation: messageAppear 0.5s ease-out forwards;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 0;
    position: relative;
    transition: all 0.3s ease;
}

.message:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

.message:nth-child(odd) {
    align-self: flex-end;
    background-color: rgba(0, 229, 255, 0.2);
    border-top-left-radius: 8px;
    border-top-right-radius: 0;
}

.message:nth-child(odd):hover {
    background-color: rgba(0, 229, 255, 0.3);
}

.message::after {
    content: '';
    position: absolute;
    height: 2px;
    bottom: -2px;
    left: 0;
    width: 0;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: width 0.3s ease;
}

.message:hover::after {
    width: 100%;
}

.message p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.sending {
    opacity: 0;
    transform: translateY(20px);
}

.message.show {
    animation: messageAppear 0.5s ease-out forwards;
}

.message.hide {
    animation: messageDisappear 0.5s ease-out forwards;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageDisappear {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s, bounce 2s infinite 1.5s;
    z-index: 2;
    cursor: pointer;
}

.scroll-indicator span {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    text-align: center;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.rounded-image {
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* How to Use Section */
.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.step-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.step-card.animate-in, .page-loaded .step-card {
    opacity: 1;
    transform: translateY(0);
}

.step-card:nth-child(1) {
    transition-delay: 0.1s;
}

.step-card:nth-child(3) {
    transition-delay: 0.2s;
}

.step-card:nth-child(5) {
    transition-delay: 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 229, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.step-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-connector {
    font-size: 1.5rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.qr-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 2rem;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    max-width: 200px;
    border: 5px solid white;
    border-radius: 8px;
}

.qr-text {
    max-width: 300px;
}

.qr-text h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-light);
}

.qr-text p {
    margin-bottom: 1.5rem;
}

/* Message Examples Section */
.message-examples {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.message-category {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
}

.message-category h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-category h3 i {
    color: var(--accent-color);
}

.message-example {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-bubble {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 100%;
}

.message-bubble p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.swipe-indicator {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Points Section */
.points-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.point-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    transition: all 0.3s ease;
}

.point-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

.point-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.point-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(14, 14, 82, 0.8), rgba(17, 17, 17, 0.9)),
                url('img/night-city.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.qr-display {
    margin-top: 2rem;
}

.qr-display img {
    max-width: 200px;
    border: 5px solid white;
    border-radius: 8px;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--dark-color);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.button i {
    margin-right: 0.5rem;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: linear-gradient(to bottom, var(--dark-color) 0%, var(--primary-dark) 100%);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-info {
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contact-item i {
    width: 20px;
    margin-right: 1rem;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.social-links a.twitter:hover {
    background-color: #1DA1F2;
}

.social-links a.facebook:hover {
    background-color: #4267B2;
}

.social-links a.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-links a.youtube:hover {
    background-color: #FF0000;
}

.social-links a.line:hover {
    background-color: #06C755;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-newsletter {
    flex: 1;
    min-width: 250px;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px 0 0 4px;
    color: var(--text-color);
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-muted);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes neonGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 229, 255, 0.5), 0 0 10px rgba(0, 229, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 229, 255, 0.8), 0 0 30px rgba(0, 229, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 229, 255, 0.5), 0 0 10px rgba(0, 229, 255, 0.3);
    }
}

@keyframes textShadowPulse {
    0% {
        text-shadow: 0 0 5px rgba(0, 229, 255, 0.5), 0 0 10px rgba(0, 229, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(0, 229, 255, 0.8), 0 0 20px rgba(0, 229, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 5px rgba(0, 229, 255, 0.5), 0 0 10px rgba(0, 229, 255, 0.3);
    }
}

@keyframes blink {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.6;
    }
}

@keyframes typing {
    0% { width: 0 }
    100% { width: 100% }
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* タイピングインジケーター */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    width: fit-content;
    border-top-left-radius: 0;
    align-self: flex-start;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.6;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ポイントカードのアニメーション */
.point-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.point-card.animate-in, .page-loaded .point-card {
    opacity: 1;
    transform: translateY(0);
}

.point-card:nth-child(1) {
    transition-delay: 0.1s;
}

.point-card:nth-child(2) {
    transition-delay: 0.2s;
}

.point-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* メッセージカテゴリのアニメーション */
.message-category {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.message-category.animate-in, .page-loaded .message-category {
    opacity: 1;
    transform: translateX(0);
}

.message-category:nth-child(1) {
    transition-delay: 0.1s;
}

.message-category:nth-child(2) {
    transition-delay: 0.2s;
}

.message-category:nth-child(3) {
    transition-delay: 0.3s;
}

/* QRコンテナのアニメーション */
.qr-container {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.qr-container.animate-in, .page-loaded .qr-container {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .led-display-mock {
        height: 300px;
    }

    .qr-container {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--dark-overlay);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 999;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-connector {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .led-display-mock {
        height: 250px;
    }

    .point-card {
        min-width: 100%;
    }
}