:root {
    /* Color Palette - White & Black Luxury */
    --color-bg: #ffffff;
    --color-text: #111111;
    --color-primary: #c5a059;
    /* Gold */
    --color-secondary: #008cba;
    /* Muted Blue-Green */
    --color-surface: #f8f9fa;
    --color-surface-border: #e0e0e0;
    --color-header-bg: rgba(255, 255, 255, 0.95);

    /* Typography */
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;

    /* Spacing - Optimized */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    /* Balanced for mobile/desktop */
}

@media (min-width: 768px) {
    :root {
        --spacing-xl: 8rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-jp);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    -webkit-font-smoothing: antialiased;
    /* Smoother fonts */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-jp);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1100px;
    /* Slightly tighter for better readability */
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 0;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: var(--font-jp);
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #111;
    color: #fff;
    border: 1px solid #111;
}

.btn-primary:hover {
    background: #d4b06a;
    border-color: #d4b06a;
    color: #fff;
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 320px;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-header-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 70px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    letter-spacing: 2px;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: #000;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #fff;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.nav.active {
    transform: translateX(0);
}

.nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.nav a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }

    .nav {
        position: static;
        height: auto;
        background: none;
        padding: 0;
        transform: none;
        width: auto;
    }

    .nav ul {
        flex-direction: row;
        gap: 2.5rem;
    }

    .nav a {
        font-size: 0.95rem;
    }

    .desktop-only {
        display: inline-block;
    }

    .btn-lg {
        width: auto;
        align-items: center;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    color: #000;
    padding: 0 1rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-bg-cool.png') no-repeat center center/cover;
    z-index: 0;
    animation: zoomEffect 20s infinite alternate ease-in-out;
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 1;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: #000;
    padding: 0 1rem;
}

.hero-title .block {
    display: block;
}

.hero-subtitle {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
        font-weight: 300;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Sections General */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    color: #000;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--color-primary);
    margin: 1.5rem auto 0;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
}

/* Problem Section */
.problem {
    background: #fff;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.problem-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.problem-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.problem-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.problem-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.problem-card p {
    color: #666;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Solution Section */
.solution {
    background: #111;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Add subtle pattern to dark section */
.solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.solution-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.solution .section-title {
    color: #fff;
}

.section-desc {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.05rem;
    color: #ccc;
    line-height: 2;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-left: 3px solid var(--color-primary);
    border-radius: 0 10px 10px 0;
}

.feature-list .check {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-right: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-list .check::before {
    content: '';
    display: block;
    width: 10px;
    height: 16px;
    border-right: 3px solid var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    transform: rotate(45deg);
}

.feature-list strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}

.feature-list p {
    color: #aaa;
}

/* About Section - old styles removed, now using .about-profile and .about-gallery */

/* Services Section */
.services {
    background: #fcfcfc;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #000;
    position: relative;
    display: inline-block;
}

.service-card h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--color-primary);
    margin: 10px auto 0;
}

.service-card p {
    color: #666;
}

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Flow Section */
.flow {
    background: #fff;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flow-step {
    background: #fcfcfc;
    padding: 2rem;
    border: 1px solid #eee;
    position: relative;
    text-align: center;
}

.step-number {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(197, 160, 89, 0.2);
    /* Faded Gold */
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.flow-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.flow-step p {
    font-size: 0.9rem;
    color: #666;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .flow-steps {
        flex-direction: row;
        justify-content: space-between;
    }

    .flow-step {
        flex: 1;
    }
}

/* FAQ Section */
.faq {
    background: #f8f9fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #eee;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-jp);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111;
}

.faq-question .icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-question.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: #555;
    font-size: 0.95rem;
}

.faq-detail-list {
    list-style: none;
    padding: 0 0 1rem 0;
    margin: 0;
}

.faq-detail-list li {
    padding: 0.5rem 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.8;
    padding-left: 1rem;
    position: relative;
}

.faq-detail-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.9rem;
}

.faq-detail-list li strong {
    color: #333;
}

/* Contact Section */
.contact {
    text-align: center;
    background: #111;
    color: #fff;
    padding: 6rem 0;
}

.contact .section-title {
    color: #fff;
}

.contact-desc {
    font-size: 1.1rem;
    margin-bottom: 4rem;
    line-height: 2;
    color: #ccc;
}

.contact .btn-primary {
    background: #c5a059;
    color: #fff;
    border: none;
}

.contact .btn-primary:hover {
    background: #d4b06a;
    color: #fff;
}

.note {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #666;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 2rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.floating-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .floating-cta {
        display: none;
        /* Hide on desktop if preferred, or keep */
    }
}

/* Footer */
.footer {
    background: #000;
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: 3px;
}

.copyright {
    font-size: 0.8rem;
    color: #555;
    font-family: var(--font-en);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Problem Section Images */
.image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.problem-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.problem-card:hover .problem-image {
    transform: scale(1.1);
}

.problem-card .icon {
    display: none;
    /* Hide original icons */
}

/* Diagnostic Tools */
.diagnostic-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.tool-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.5);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    text-align: center;
}

.tool-item strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
}



/* About Profile */
.about-profile {
    text-align: center;
    margin-bottom: 3rem;
}

.about-profile .name {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

.about-profile .title {
    display: block;
    font-size: 0.9rem;
    font-family: var(--font-en);
    color: var(--color-primary);
    margin: 0.5rem 0 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-profile .bio {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    line-height: 2;
}

/* Photo Gallery */
.about-gallery-container {
    width: 100%;
    position: relative;
}

.about-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.about-gallery::-webkit-scrollbar {
    display: none;
}

.gallery-img {
    height: 250px;
    width: auto;
    border-radius: 8px;
    scroll-snap-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    object-fit: cover;
}

.scroll-hint {
    text-align: center;
    color: #999;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-family: var(--font-en);
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

@media (min-width: 768px) {
    .gallery-img {
        height: 480px;
    }
}

@media (max-width: 768px) {

    .about-profile .name {
        font-size: 1.6rem;
    }

    .diagnostic-tools {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .tool-item {
        width: 100%;
    }

    .footer {
        padding-bottom: 100px;
    }

    .about-gallery-container {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding: 0 1rem;
    }

    .feature-list li {
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-list .check {
        margin-right: 0;
        margin-bottom: 0.8rem;
    }

    .section-desc {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .hero {
        min-height: 80vh;
        padding-top: 70px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 1.6rem;
        padding: 0;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        padding: 0;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .flow-step {
        padding: 1.5rem;
    }

    .contact {
        padding: 4rem 0;
    }

    .contact-desc {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    .floating-cta {
        left: 20px;
        right: 20px;
        text-align: center;
        bottom: 15px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}