/* FOMUS PARURE - iPhone 16 Optimized Mobile Design */
/* iPhone 16: 393px × 852px (標準), 430px × 932px (Pro Max) */

/* ===== DESKTOP STYLES (Mobile Enhancement Base) ===== */

/* Models Grid - Desktop */
@media (min-width: 769px) {
    .models__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 60px;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

.model-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.model-card:hover {
    transform: translateY(-5px);
}

.model-card__image {
    position: relative;
    overflow: hidden;
}

.model-card__img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    object-position: center;
}

.model-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.model-card__text {
    color: white;
}

.model-card__title {
    font-size: 28px;
    margin-bottom: 12px;
}

.model-card__desc {
    opacity: 0.9;
    font-size: 16px;
}

/* Products Grid - Desktop */
@media (min-width: 769px) {
    .products__grid {
        display: flex;
        flex-direction: column;
        gap: 60px;
        margin-top: 80px;
    }

    .product-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
        background: white;
        padding: 60px;
        border-radius: 20px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
}

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

.product-card--premium {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}

.product-card__image {
    width: 100%;
}

.product-card__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
}

.product-card__img--premium {
    border: 2px solid #ffd700;
}

.product-card__title {
    font-size: 36px;
    margin-bottom: 20px;
}

.product-card__title--mori {
    color: #27ae60;
}

.product-card__title--ten {
    color: #667eea;
}

.product-card__title--kiwami {
    color: #ffd700;
}

.product-card__description {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-card__description--premium {
    color: rgba(255,255,255,0.9);
}

.product-card__btn--primary {
    background: #27ae60;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.product-card__btn--primary:hover {
    background: #229954;
    transform: translateY(-2px);
}

.product-card__btn--kiwami {
    background: #ffd700;
    color: #1a1a1a;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.product-card__btn--kiwami:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

/* ===== iPhone 16 CORE OPTIMIZATIONS ===== */

/* Safe Area & Viewport */
:root {
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --mobile-padding: 20px;
    --mobile-gap: 16px;
    --touch-target-size: 48px;
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {

    /* Smooth Scrolling & Performance */
    html {
        scroll-behavior: smooth;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    body {
        -webkit-tap-highlight-color: rgba(39, 174, 96, 0.1);
        touch-action: manipulation;
        overscroll-behavior-y: contain;
    }

    /* Container Optimization */
    .container {
        padding: 0 var(--mobile-padding);
        max-width: 100%;
    }

    /* ===== ENHANCED NAVIGATION ===== */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
        z-index: 9999;
        padding-top: var(--safe-area-inset-top);
    }

    .nav {
        padding: 16px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav__logo-text {
        font-size: 20px;
        font-weight: 500;
        letter-spacing: 0.1em;
    }

    /* Hamburger Menu Enhancement */
    .nav__toggle {
        width: var(--touch-target-size);
        height: var(--touch-target-size);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: transparent;
        border: none;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 10000;
    }

    .nav__toggle:active {
        transform: scale(0.95);
        background: rgba(212, 175, 55, 0.1);
    }

    .nav__toggle span {
        width: 24px;
        height: 2px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Mobile Menu */
    .nav__menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        padding: calc(80px + var(--safe-area-inset-top)) 30px 30px;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9998;
        overflow-y: auto;
    }

    .nav__menu.active {
        transform: translateX(0);
    }

    .nav__list {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .nav__link {
        display: block;
        padding: 16px 20px;
        font-size: 18px;
        font-weight: 500;
        color: #1a1a1a;
        background: rgba(248, 248, 248, 0.5);
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-height: var(--touch-target-size);
        display: flex;
        align-items: center;
    }

    .nav__link:active {
        transform: scale(0.98);
        background: rgba(212, 175, 55, 0.1);
    }

    /* Language Selector Mobile */
    .nav__language {
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .language-selector__toggle {
        width: 100%;
        padding: 16px 20px;
        background: rgba(248, 248, 248, 0.8);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 16px;
        min-height: var(--touch-target-size);
    }

    .language-selector__dropdown {
        position: static;
        margin-top: 16px;
        border-radius: 16px;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .language-option {
        padding: 14px 20px;
        min-height: var(--touch-target-size);
        display: flex;
        align-items: center;
        gap: 12px;
        border-radius: 12px;
        margin: 4px;
        transition: all 0.3s ease;
    }

    .language-option:active {
        transform: scale(0.98);
        background: rgba(212, 175, 55, 0.1);
    }

    /* ===== HERO SECTION ===== */
    .hero {
        margin-top: calc(60px + var(--safe-area-inset-top));
        padding: 24px 0 40px;
        min-height: auto;
    }

    .hero__container {
        flex-direction: column;
        gap: 24px;
        padding: 0 var(--mobile-padding);
        min-height: auto;
    }

    .hero__content {
        text-align: center;
        padding: 24px 20px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }

    .hero__brand-mark {
        font-size: 10px;
        letter-spacing: 0.15em;
        margin-bottom: 16px;
    }

    .hero__brand-mark::after {
        display: none;
    }

    .hero__title-main {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 16px;
        font-weight: 700;
    }

    .hero__subtitle-text {
        font-size: 15px;
        line-height: 1.6;
        margin: 6px 0;
    }

    .hero__badge {
        font-size: 10px;
        padding: 8px 16px;
        margin-bottom: 24px;
    }

    .hero__image-wrapper {
        width: 100%;
        max-width: 100%;
        order: -1;
    }

    .hero__img {
        width: 100%;
        height: auto;
        max-height: 280px;
        object-fit: cover;
        border-radius: 16px;
    }

    /* ===== BUTTONS ===== */
    .btn {
        width: 100%;
        max-width: 100%;
        padding: 14px 24px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 12px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn:active {
        transform: scale(0.98);
    }

    .btn--large {
        padding: 16px 32px;
        font-size: 16px;
    }

    /* ===== PHILOSOPHY SECTION ===== */
    .philosophy {
        padding: 40px 0;
    }

    .philosophy__title {
        font-size: 24px;
        margin-bottom: 16px;
        line-height: 1.3;
        font-weight: 600;
    }

    .philosophy__tagline p {
        font-size: 18px;
        line-height: 1.4;
    }

    .philosophy__tagline p::before,
    .philosophy__tagline p::after {
        display: none;
    }

    .philosophy__description,
    .philosophy__values p,
    .philosophy__closing p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    /* ===== MODELS SECTION ===== */
    .models {
        padding: 40px 0;
    }

    .models__grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 24px !important;
        grid-template-columns: none !important;
    }

    .model-card {
        border-radius: 12px !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    }

    .model-card__image {
        position: relative !important;
        height: 240px !important;
    }

    .model-card__img {
        height: 240px !important;
        object-fit: cover !important;
    }

    .model-card__overlay {
        padding: 16px !important;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%) !important;
    }

    .model-card__title {
        font-size: 16px !important;
        margin-bottom: 4px !important;
        font-weight: 600 !important;
    }

    .model-card__desc {
        font-size: 12px !important;
        line-height: 1.3 !important;
        opacity: 0.9 !important;
    }

    /* ===== PRODUCTS SECTION ===== */
    .products {
        padding: 40px 0;
    }

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

    .section-title {
        font-size: 24px;
        margin-bottom: 10px;
        line-height: 1.3;
        font-weight: 600;
    }

    .section-subtitle {
        font-size: 13px;
        line-height: 1.4;
        padding: 0 10px;
        color: #666;
    }

    /* Product Cards - Compact Card Style */
    .products__grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        margin-top: 24px !important;
    }

    .product-card {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08) !important;
        background: white !important;
    }

    .product-card__image {
        width: 100% !important;
        height: 180px !important;
        overflow: hidden !important;
        display: block !important;
    }

    .product-card__img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .product-card__content {
        padding: 16px 14px !important;
        text-align: left !important;
        background: transparent !important;
    }

    .product-card__title {
        font-size: 17px !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
    }

    .product-card__description {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 14px !important;
        color: #666 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .product-card__actions {
        width: 100% !important;
    }

    .product-card__btn {
        width: 100% !important;
        padding: 11px 18px !important;
        font-size: 14px !important;
        min-height: 42px !important;
        border-radius: 8px !important;
        display: block !important;
        text-align: center !important;
        font-weight: 600 !important;
    }

    .product-card--premium {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    }

    .product-card--premium .product-card__title {
        color: #ffd700 !important;
    }

    .product-card--premium .product-card__description {
        color: rgba(255,255,255,0.85) !important;
    }

    /* ===== GIFT EXPERIENCE SECTION ===== */
    .gift-experience {
        padding: 40px 0;
    }

    .gift-experience__main {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        margin-bottom: 32px !important;
        text-align: center;
    }

    .gift-experience__main-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .gift-experience__main-description {
        font-size: 14px;
        line-height: 1.5;
        color: #666;
    }

    .gift-experience__image-main,
    .gift-experience__image-main img {
        height: 160px !important;
        border-radius: 12px;
    }

    .gift-experience__features {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        margin-bottom: 32px !important;
    }

    .gift-feature {
        padding: 0;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }

    .gift-feature__image,
    .gift-feature__image img {
        height: 140px !important;
        border-radius: 0;
    }

    .gift-feature__content {
        padding: 12px 16px !important;
    }

    .gift-feature__title {
        font-size: 16px;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .gift-feature__description {
        font-size: 13px;
        line-height: 1.5;
        color: #666;
    }

    .gift-experience__cta {
        padding: 24px 20px !important;
        border-radius: 12px;
        background: rgba(212, 175, 55, 0.05) !important;
        border: 1px solid rgba(212, 175, 55, 0.2) !important;
    }

    .gift-experience__cta-title {
        font-size: 18px;
        margin-bottom: 10px;
        line-height: 1.3;
        font-weight: 600;
    }

    .gift-experience__cta-description {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 20px;
        color: #666;
    }

    .gift-experience__actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .gift-experience__actions .btn {
        width: 100%;
        max-width: 100%;
    }

    /* ===== FOOTER ===== */
    .footer {
        padding: 40px 0 calc(24px + var(--safe-area-inset-bottom));
    }

    .footer__content {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
        text-align: center;
    }

    .footer__section {
        padding: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    .footer__title {
        font-size: 18px;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .footer__subtitle {
        font-size: 15px;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .footer__list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .footer__list a {
        padding: 10px;
        display: block;
        border-radius: 8px;
        transition: all 0.3s ease;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    .footer__list a:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.1);
    }

    /* ===== ENHANCED INTERACTIONS ===== */

    /* Touch Feedback */
    a, button, .btn, .nav__link, .language-option, .product-card__btn {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.15);
        tap-highlight-color: rgba(212, 175, 55, 0.15);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    /* Loading Animation */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Stagger Animation for Cards */
    .product-card,
    .model-card,
    .gift-feature {
        animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    }

    .product-card:nth-child(1) { animation-delay: 0.1s; }
    .product-card:nth-child(2) { animation-delay: 0.2s; }
    .product-card:nth-child(3) { animation-delay: 0.3s; }

    /* ===== ACCESSIBILITY ===== */

    /* Focus States */
    *:focus-visible {
        outline: 3px solid rgba(212, 175, 55, 0.5);
        outline-offset: 2px;
        border-radius: 4px;
    }

    /* Reduced Motion */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }

    /* Dark Mode Support */
    @media (prefers-color-scheme: dark) {
        .header {
            background: rgba(30, 30, 30, 0.98);
        }

        .nav__menu {
            background: rgba(30, 30, 30, 0.98);
        }

        .hero__content {
            background: rgba(40, 40, 40, 0.9);
        }

        .product-card,
        .gift-feature__image {
            background: rgba(40, 40, 40, 0.95);
        }
    }
}

/* ===== VERY SMALL SCREENS (iPhone SE, etc.) ===== */
@media (max-width: 375px) {
    :root {
        --mobile-padding: 16px;
        --mobile-gap: 12px;
    }

    .hero__title-main {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .product-card__title {
        font-size: 20px !important;
    }

    .btn {
        padding: 16px 24px;
        font-size: 15px;
    }
}

/* ===== LANDSCAPE MODE ===== */
@media (max-width: 932px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }

    .hero__container {
        flex-direction: row;
        gap: 40px;
    }

    .hero__image-wrapper {
        flex: 0 0 45%;
    }

    .hero__content {
        flex: 1;
        text-align: left;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* GPU Acceleration */
.nav__menu,
.hero__content,
.product-card,
.btn {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Image Optimization */
img {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

/* Scroll Optimization */
.products,
.gift-experience {
    content-visibility: auto;
}
