/* =========================================================
   MINICO INC. JAPAN - MAIN STYLESHEET
   Corporate | Premium | Mobile-First | Scalable
   FULL RED THEME VERSION
========================================================= */

/* =========================================================
   1. RESET & BASE
========================================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #222222;
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* =========================================================
   2. ROOT VARIABLES
========================================================= */
:root {
    --primary-dark: #0F1E3D;        /* dark for headers / text */
    --primary-red: #E60012;         /* MINICO logo red */
    --primary-light: #FFE5E8;       /* subtle red accents */
    --light-bg: #F8F8F8;            /* secondary background */
    --text-dark: #111111;
    --text-light: #555555;
    --white: #ffffff;

    --container-width: 1200px;

    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease;

    --shadow-light: 0 10px 30px rgba(0,0,0,0.05);
}

/* =========================================================
   3. LAYOUT SYSTEM
========================================================= */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

.section-light {
    background: var(--light-bg);
}

.section-dark {
    background: var(--primary-dark);
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* =========================================================
   4. TYPOGRAPHY SYSTEM
========================================================= */
h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--primary-red);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.jp-text {
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 1px;
}

/* =========================================================
   5. BUTTON SYSTEM
========================================================= */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background: #b5000f;
}

.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: 4px;
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--primary-red);
    color: #fff;
}

/* =========================================================
   6. HEADER
========================================================= */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eee;
    z-index: 999;
    transition: 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

.logo img {
    height: 70px; /* bigger for desktop */
    width: auto;
    transition: 0.3s ease;
}

@media(max-width: 991px) {
    .logo img {
        height: 45px; /* tablet */
    }
}

@media(max-width: 576px) {
    .logo img {
        height: 38px; /* mobile */
    }
}

.desktop-nav {
    display: none;
}

.desktop-nav ul {
    display: flex;
    gap: 28px;
}

.desktop-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.desktop-nav a:hover {
    color: var(--primary-red);
}

.right-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.language-switch {
    font-size: 0.85rem;
    opacity: 0.8;
}

.language-switch span {
    margin: 0 5px;
}

.small-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: block;
    }

    .hamburger {
        display: none;
    }
}

/* =========================================================
   7. HAMBURGER
========================================================= */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-dark);
    transition: var(--transition-fast);
}

/* =========================================================
   8. MOBILE MENU
========================================================= */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.05);
    padding: 100px 30px;
    transition: var(--transition-fast);
    z-index: 998;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
}

.mobile-language {
    margin-top: 30px;
    opacity: 0.8;
}

.mobile-cta {
    margin-top: 30px;
}

/* =========================================================
   9. HERO SECTION
========================================================= */
.hero {
    background: linear-gradient(rgba(230,0,18,0.8), rgba(230,0,18,0.8)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 120px 0;
}

.hero h1 {
    color: var(--white);
    max-width: 700px;
}

.hero p {
    color: #dddddd;
    max-width: 600px;
}

/* =========================================================
   10. GRID SYSTEM
========================================================= */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 6px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s, border-top 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    border-top: 4px solid var(--primary-red);
}

/* =========================================================
   11. ANIMATION SYSTEM
========================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   12. FOOTER
========================================================= */
.footer {
    background: var(--primary-red);
    color: #ffffff;
    padding: 30px 0 15px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 0.85rem;
}

.footer-left strong {
    color: #ffffff;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    color: #ffe5e8;
    font-size: 0.85rem;
}

.footer-right a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 20px;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* =========================================================
   13. TABLET BREAKPOINT
========================================================= */
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   14. DESKTOP BREAKPOINT
========================================================= */
@media (min-width: 992px) {
    .desktop-nav {
        display: block;
    }

    .header-cta {
        display: block;
        margin-left: 20px;
    }

    .hamburger {
        display: none;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================================
   LINKS & CTA
========================================================= */
a {
    color: var(--primary-red);
}

a:hover {
    color: #ff9239;
}

.about-cta {
    background: var(--primary-red);
    color: #fff;
}

.about-cta a.btn-primary {
    background: #fff;
    color: var(--primary-red);
}

.about-cta a.btn-primary:hover {
    background: var(--primary-light);
}

/* =========================================================
   PRODUCTS PAGE
========================================================= */
.product-card .price {
    color: var(--primary-red);
}
