/* =========================================
   Nobby Design - Main Style
   POP, Stylish, Glassmorphism, Dynamic
   ========================================= */

/* --- Variables & Theme Settings --- */
:root {
    --primary-color: #FF3366;
    /* Vibrant Pink/Red */
    --secondary-color: #00BFFF;
    /* Bright Blue */
    --accent-color: #FF9933;
    /* Energetic Orange */
    --bg-light: #f4f7fA;
    /* Soft White/Light Blue-Gray */
    --text-dark: #1e293b;
    /* Deep Slate */
    --text-muted: #64748b;
    /* Medium Slate */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --gradient-1: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-2: linear-gradient(135deg, var(--secondary-color), #bc00dd);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Base Reset & Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
.logo,
.logo-footer {
    font-family: var(--font-heading);
    font-weight: 900;
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

/* --- 3D Background Canvas --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* Ensures it stays behind all content */
    opacity: 0.8;
}

/* --- Utility Classes --- */
.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-light);
    box-shadow: 0 4px 15px rgba(51, 204, 255, 0.4);
    transform: translateY(-3px);
}

.btn-primary.large,
.btn-secondary.large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

.btn-primary.full-width {
    width: 100%;
    text-align: center;
}


/* --- Header --- */
header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0 5%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-radius: 50px;
}

.logo {
    font-size: 1.8rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    font-weight: 700;
    font-size: 1rem;
    position: relative;
}

nav ul li a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

nav ul li a:not(.btn-primary):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-content {
    max-width: 1000px;
}

.headline {
    font-size: 2.3rem;
    /* Further reduced from 3rem */
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    word-break: keep-all;
    /* better Japanese wrapping */
    overflow-wrap: break-word;
}

.headline-eng {
    font-size: 1.6rem;
    /* Further reduced from 2.2rem */
    font-weight: 700;
}

.hero-content .sub-headline {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* --- About Section --- */
.about-section {
    padding: 80px 0;
}

.about-section .glass-panel {
    padding: 60px;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Services Section --- */
.services-section {
    padding: 100px 5%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(51, 204, 255, 0.2);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
}


/* --- Pricing Section --- */
.pricing-section {
    padding: 100px 5%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.pricing-card {
    padding: 50px 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 51, 102, 0.15);
    z-index: 2;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.pricing-card.popular:hover {
    transform: translateY(-10px) scale(1.05);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.3);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.pricing-card .price span {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.pricing-card .price .tax {
    font-size: 0.9rem;
    margin-left: 5px;
    white-space: nowrap;
}

.pricing-card .features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.pricing-card .features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-dark);
    font-size: 1rem;
    position: relative;
    padding-left: 25px;
}

.pricing-card .features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.pricing-card a.btn-primary,
.pricing-card a.btn-secondary {
    margin-top: auto;
    width: 100%;
}

/* Graphic Design Menu List */
.menu-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px 30px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.menu-item:hover {
    background: rgba(255, 51, 102, 0.05);
    border-radius: 8px;
    border-bottom: 1px solid transparent;
}

.menu-item span:first-child {
    font-weight: 700;
    color: var(--text-dark);
}

.menu-item .menu-price {
    font-weight: 900;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.special-pack {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: rgba(255, 153, 51, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 10px;
    border: 1px solid var(--accent-color);
}

.pack-badge {
    background: var(--gradient-1);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 15px;
}


/* --- Portfolio Section --- */
.portfolio-section {
    padding: 100px 5%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-item {
    overflow: hidden;
    padding: 15px;
    border-radius: 25px;
    transition: var(--transition-smooth);
}

.portfolio-item:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 51, 102, 0.15);
}

.img-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-item:hover .img-wrapper img {
    transform: scale(1.08);
}

.portfolio-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.portfolio-info p {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 5%;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    padding: 30px;
    border-radius: 20px;
    text-align: left;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.1);
}

.faq-item h3.question {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    line-height: 1.4;
}

.faq-item h3.question .q-mark {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.faq-item p.answer {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.faq-item p.answer .a-mark {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 5%;
    margin-bottom: 50px;
}

.contact-section .glass-panel {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background: #f0f4f8;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.2);
}

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.3);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Privacy Policy Accordion --- */
.legal-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.privacy-accordion {
    width: 100%;
    max-width: 600px;
    text-align: center;
    overflow: hidden;
}

.accordion-header {
    background: transparent;
    border: none;
    width: 100%;
    padding: 15px 10px;
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.accordion-header:hover {
    color: var(--primary-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-header.active+.accordion-content {
    max-height: 1000px;
    /* Arbitrary large number to allow css transition */
}

.accordion-body {
    padding: 0 10px 20px 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.8;
    text-align: left;
    background-color: transparent;
}

.accordion-body p {
    margin-bottom: 15px;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

.logo-footer {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    opacity: 0.5;
}


/* --- Animations & Interactions --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Classes applied by JS */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Layouts --- */
@media (max-width: 991px) {
    .headline {
        font-size: 3.5rem;
    }

    .hero-content .sub-headline {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 20px;
        border-radius: 20px;
    }

    nav ul {
        display: none;
    }

    /* Hide for simple mobile mock */

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        width: 25px;
        height: 3px;
        background: var(--text-dark);
        border-radius: 3px;
    }

    .headline {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-section .glass-panel,
    .contact-section .glass-panel {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 2.2rem;
    }
}