/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    position: absolute;
    left: 0;
    transition: 0.3s;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
        position: relative;
        z-index: 1100;
    }

    /* Footer Text Break */
    .footer-branding p {
        white-space: normal !important;
    }

    .footer-text-break {
        display: block !important;
        height: 0.3em;
        width: 0;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 50%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 80px 30px 30px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        font-size: 1rem;
        padding: 16px 0;
        color: var(--text-color);
        transition: color 0.2s;
    }

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

    body.menu-open {
        overflow: hidden;
    }

    /* Hero Adjustments */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        margin: 0 auto 30px;
    }

    /* Feature Blocks */
    .feature-block {
        flex-direction: column;
        gap: 30px;
    }

    .feature-block.reverse {
        flex-direction: column;
    }

    /* Feature Images - Horizontal Scroll on Mobile */
    .feature-img {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        justify-content: flex-start !important;
        padding-bottom: 10px;
        margin: 0 -20px !important;
        padding-left: 20px;
        padding-right: 20px;
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
    }

    .feature-img::-webkit-scrollbar {
        height: 4px;
    }

    .feature-img::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }

    .feature-img::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }

    .feature-img-item {
        scroll-snap-align: start;
        flex-shrink: 0 !important;
        min-width: 280px !important;
        max-width: 280px !important;
        width: 280px !important;
    }

    /* Story Timeline Mobile */
    .story-timeline::before {
        left: 20px;
    }

    .story-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        margin-right: 0 !important;
    }

    .story-marker {
        left: 20px;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-content .footer-links {
        gap: 24px !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        display: flex !important;
    }

    .footer-content .footer-column:first-child {
        margin-right: 0 !important;
        padding-right: 0 !important;
    }

    .footer-content .footer-column:last-child {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .footer-content .footer-column {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        flex-shrink: 1 !important;
    }

    .footer-content .footer-column:first-child {
        margin-right: 0 !important;
        padding-right: 0 !important;
    }

    .footer-content .footer-column:last-child {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .footer-column h4 {
        font-size: 0.9rem;
        white-space: nowrap !important;
        margin-bottom: 15px;
    }

    .footer-column ul {
        white-space: nowrap !important;
    }

    .footer-column li {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .footer-column a {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Pricing Mobile */
    .pricing-container {
        flex-direction: column;
        align-items: center;
    }

    /* Pricing Matrix Mobile */
    .pricing-matrix-container {
        margin: 20px -20px;
        padding: 0 20px;
    }

    .pricing-matrix {
        font-size: 0.9rem;
    }

    .pricing-matrix th.feature-col {
        width: 140px;
        padding: 15px 10px;
        font-size: 0.85rem;
    }

    .plan-header {
        padding: 20px 15px;
    }

    .plan-header .plan-name {
        font-size: 1rem;
    }

    .plan-header .plan-price {
        font-size: 1.5rem;
    }

    .plan-header .plan-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .pricing-matrix td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }

    /* Company List Mobile */
    .company-list-header {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .company-list-date {
        margin-right: 0;
    }

    /* 1列表示に変更 */
    .company-list-items {
        grid-template-columns: 1fr !important;
    }

    .company-item {
        padding: 8px 6px !important;
        border-right: none !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        gap: 4px !important;
    }

    .company-item:nth-child(odd) {
        border-right: none !important;
        padding-right: 6px !important;
    }

    .company-item:nth-child(even) {
        padding-left: 6px !important;
    }

    .company-code {
        min-width: 55px !important;
        font-size: 0.85rem;
        padding-right: 2px;
    }

    .company-name {
        flex: 1;
        font-size: 0.85rem;
        min-width: 0;
    }

    .company-stores {
        min-width: 45px !important;
        font-size: 0.85rem;
        padding-right: 4px;
    }

    /* Update Detail Mobile */
    .update-detail-title {
        font-size: 1.5rem;
    }

    .update-detail-content {
        font-size: 0.95rem;
    }

    /* Updates List Mobile */
    .update-list-link {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 16px 20px !important;
    }

    .update-list-date {
        min-width: auto !important;
        width: 100% !important;
        white-space: normal !important;
        order: 1;
    }

    .update-list-title {
        min-width: auto !important;
        width: 100% !important;
        white-space: normal !important;
        order: 2;
    }

    .update-list-excerpt {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        width: 100% !important;
        order: 3;
    }

    /* Terms Box Mobile */
    .terms-box {
        margin-top: 40px;
        padding: 24px 20px;
        border-radius: 12px;
    }

    .terms-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .terms-section {
        margin-bottom: 24px;
    }

    .terms-section-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .terms-section p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .terms-footer {
        margin-top: 24px;
        padding-top: 20px;
        font-size: 0.9rem;
    }
}




