/* =============================
   移动版专用样式
   Mobile-specific styles
   ============================= */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.mobile-body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.mobile-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 100%;
}

/* Mobile Logo */
.mobile-logo a {
    text-decoration: none;
    color: white;
    display: block;
}

.mobile-logo .company-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
}

.mobile-logo .store-name {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: white;
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 1px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
}

.mobile-nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-nav-container {
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Close Button */
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Mobile Navigation */
.mobile-nav {
    margin-top: 80px;
    flex: 1;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-item {
    margin: 0 0 8px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-nav-link i {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #3498db;
}

/* Language Selector */
.mobile-language-selector {
    margin: 30px 0 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-language-title {
    display: flex;
    align-items: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.mobile-language-title i {
    margin-right: 8px;
    color: #3498db;
}

.mobile-language-form {
    margin: 0;
}

.mobile-language-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-language-option {
    display: flex;
    align-items: center;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: left;
}

.mobile-language-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-language-option.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.lang-flag {
    margin-right: 8px;
    font-size: 16px;
}

/* Version Switch */
.mobile-version-switch {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-desktop-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-desktop-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.mobile-desktop-link i {
    margin-right: 8px;
    color: #3498db;
}

/* Mobile Contact Info */
.mobile-contact-info {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 12px 0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.mobile-contact-item:hover {
    color: white;
}

.mobile-contact-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: #3498db;
}

/* Main Content */
.mobile-main {
    margin-top: 70px; /* Header height */
    min-height: calc(100vh - 70px);
}

/* Mobile Sections */
.mobile-section {
    padding: 30px 20px;
    background: white;
    margin-bottom: 2px;
}

.mobile-section-header {
    text-align: center;
    margin-bottom: 25px;
}

.mobile-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.mobile-section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.mobile-section-subtitle {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Mobile Cards */
.mobile-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mobile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.mobile-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.mobile-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.mobile-card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Mobile Buttons */
.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 44px; /* Touch-friendly size */
    background: none;
}

.mobile-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.mobile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.mobile-btn-outline {
    border-color: #3498db;
    color: #3498db;
}

.mobile-btn-outline:hover {
    background: #3498db;
    color: white;
}

.mobile-btn i {
    margin-left: 8px;
    font-size: 12px;
}

/* Mobile Grid */
.mobile-grid {
    display: grid;
    gap: 16px;
}

.mobile-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Mobile Hero Section */
.mobile-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #3498db 100%);
}

.mobile-hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    padding: 20px;
}

.mobile-hero-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-hero-subtitle {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.mobile-hero-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.8;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.mobile-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* Mobile Image Gallery */
.mobile-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.mobile-gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-gallery-item:hover {
    transform: scale(0.98);
}

.mobile-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Footer */
.mobile-footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0 0 0;
    margin-top: 40px;
}

.mobile-footer-content {
    padding: 0 20px 20px 20px;
}

.mobile-footer-section {
    margin-bottom: 25px;
}

.mobile-footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.mobile-footer-store {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.mobile-footer-address {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

.mobile-footer-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #3498db;
}

.mobile-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.mobile-footer-link:hover {
    color: white;
}

.mobile-footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-footer-contact {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.mobile-footer-contact:hover {
    color: white;
}

.mobile-footer-contact i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    color: #3498db;
}

.mobile-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    text-align: center;
}

.mobile-footer-copyright {
    font-size: 12px;
    opacity: 0.7;
}

/* Back to Top Button */
.mobile-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.mobile-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.mobile-back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Mobile-specific Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* Mobile Contact Form */
.mobile-form {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.mobile-form-group {
    margin-bottom: 20px;
}

.mobile-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.mobile-form-input,
.mobile-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px; /* Prevents zoom on iOS */
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: white;
}

.mobile-form-input:focus,
.mobile-form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.mobile-form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Loading States */
.mobile-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error/Success Messages */
.mobile-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.mobile-alert-success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.mobile-alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Responsive Adjustments for very small screens */
@media screen and (max-width: 360px) {
    .mobile-section {
        padding: 20px 15px;
    }
    
    .mobile-hero-title {
        font-size: 24px;
    }
    
    .mobile-section-title {
        font-size: 20px;
    }
    
    .mobile-card {
        padding: 15px;
    }
    
    .mobile-footer-content {
        padding: 0 15px 20px 15px;
    }
}
