:root {
    --primary-color: #e65100; /* Deep Orange */
    --primary-light: #ff9800; /* Rich Orange */
    --accent-color: #ffb74d; /* Light Orange */
    --text-color: #472B01; /* Deep Brown as requested */
    --text-light: #7a5a40; /* Harmonious light brown */
    --bg-color: #ffffff;
    --bg-alt: #fffbf0; /* Light Warm Beige */
    --white: #ffffff;
    --black: #472B01;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1200px;
    --header-height: 80px;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

    font-size: 14px;
    }
}

.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Header */
header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: transparent;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

header.scrolled .logo-main {
    color: var(--primary-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary-color);
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: -2px;
}

.nav-desktop ul {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-desktop a {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-desktop a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
}

.btn-nav:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
}

/* Mobile Nav */
.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-mobile.active {
    right: 0;
}

.nav-mobile ul {
    text-align: center;
}

.nav-mobile li {
    margin-bottom: 30px;
}

.nav-mobile a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-btn-bottom {
    position: absolute;
    bottom: 120px; /* Moved up slightly */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.btn-entry {
    display: inline-block;
    background: var(--primary-light);
    color: var(--white);
    padding: 20px 60px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    box-shadow: 0 15px 35px rgba(230, 81, 0, 0.3);
    transition: var(--transition);
}

.btn-entry:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .hero .btn-entry {
        white-space: nowrap;
        padding: 18px 40px;
        font-size: 1rem;
    }
}

/* Section Header */
.section-header {
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    padding-top: 40px;
}

.en-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    color: rgba(230, 81, 0, 0.05);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

.main-title {
    position: relative;
    z-index: 2;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: var(--primary-color);
    display: inline-flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
}

.main-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--primary-light);
    display: block;
    border-radius: 2px;
}

.section-title-deco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.section-title-deco span {
    position: relative;
    padding: 0 15px;
}

.section-title-deco span::before,
.section-title-deco span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 10px;
    height: 1px;
    background: var(--primary-light);
}

.section-title-deco span::before { left: -5px; }
.section-title-deco span::after { right: -5px; }

/* Problem Section Adjustments */
.problem {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.problem-deco {
    position: absolute;
    top: 50%;
    left: -250px;
    width: 900px;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    transform: translateY(-50%) rotate(-10deg);
}

.problem-list {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.problem-item {
    background: #fdfdfd;
    padding: 35px;
    border-radius: 24px;
    border: 1px solid rgba(230, 81, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(230, 81, 0, 0.05);
    border-color: var(--primary-light);
}

.service-info p {
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

.problem-item p {
    font-size: 1rem;
    font-weight: 500;
}

.highlight {
    position: relative;
    display: inline;
    background: linear-gradient(transparent 60%, rgba(255, 152, 0, 0.25) 60%);
}

@media (max-width: 850px) {
    .problem-list {
        grid-template-columns: 1fr;
    }
}

/* ABOUT Section Adjustments */
.about {
    background: var(--bg-alt); /* Match Service background */
    position: relative;
    overflow: hidden;
}

.problem-deco {
    position: absolute;
    top: 40%; /* Moved up slightly */
    left: -250px;
    width: 900px;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    transform: translateY(-50%) rotate(-10deg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.img-about-main {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(230, 81, 0, 0.1);
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Service Section */
.service {
    background: var(--white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    overflow: hidden; /* For image corners */
    padding: 0; /* Reset padding to allow full-width image */
}

.service-image {
    width: 100%;
    height: 200px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 30px;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.service-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* Support Section */
.support {
    position: relative;
    background-image: url('../img/FV.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.support::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6); /* Reduced opacity as requested */
    z-index: 1;
}

.support .container {
    position: relative;
    z-index: 2;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.support-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid var(--primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.support-item h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.support-item li::before {
    background: var(--primary-light);
}

@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
}

/* Greeting Section */
.greeting {
    background: var(--bg-alt);
}

.greeting-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.greeting-text {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.greeting-text p {
    margin-bottom: 20px;
}

.greeting-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .greeting-box {
        padding: 40px 20px;
    }
}

/* FAQ Section */
.faq {
    position: relative;
    overflow: hidden;
}

.faq-deco {
    position: absolute;
    top: 50%;
    left: -250px; /* Moved to left */
    width: 900px;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
    transform: translateY(-50%) rotate(-10deg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-item {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 15px;
    margin-bottom: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

/* Access Section */
.access {
    background: var(--black); /* Brown background */
    color: var(--white);
}

.access .main-title {
    color: var(--white);
}

.access .en-title {
    color: rgba(255, 255, 255, 0.05);
}

.access .section-title-deco {
    color: var(--accent-color);
}

.access .section-title-deco span::before,
.access .section-title-deco span::after {
    background: var(--accent-color);
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--white); /* White card as requested */
    color: var(--text-color); /* Brown text on white card */
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    padding: 60px;
}

.access-info dt {
    color: var(--primary-color); /* Use primary color for DT on white */
    font-weight: 700;
    margin-bottom: 5px;
}

.access-info dd {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .access-content {
        grid-template-columns: 1fr;
    }
    .access-info { order: 1; }
    .access-map { order: 2; }
}

/* Footer Cleanup */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-top {
    display: none; /* Removed as requested */
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.slide-left { transform: translateX(-50px); }
.scroll-reveal.slide-right { transform: translateX(50px); }
.scroll-reveal.zoom-in { transform: scale(0.9); }

.scroll-reveal.visible.slide-left,
.scroll-reveal.visible.slide-right,
.scroll-reveal.visible.zoom-in {
    transform: translate(0) scale(1);
}

/* Section Action Buttons */
.section-cta {
    padding: 60px 0;
    background: var(--bg-alt);
}

@media (max-width: 768px) {
    .section-cta {
        display: none;
    }
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    min-width: 260px;
    text-align: center;
    font-size: 1.1rem;
}

.btn-tel {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(230, 81, 0, 0.2);
}

.btn-inquiry {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(230, 81, 0, 0.15);
}

.btn-tel:hover {
    background: var(--primary-light);
    color: var(--white);
}

.btn-inquiry:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-icon svg {
    width: 24px;
    height: 24px;
}

.tel-link {
    color: var(--primary-color);
    font-weight: 700;
    transition: var(--transition);
}

.tel-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .section-cta {
        padding: 40px 0;
    }
    .cta-btns {
        gap: 15px;
    }
    .btn-action {
        width: 100%;
        max-width: 400px;
    }
}

/* Floating CTA for SP */
.sp-floating-cta {
    display: none;
}

@media (max-width: 768px) {
    .sp-floating-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: var(--white);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .btn-sp-cta {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-weight: 700;
        font-size: 0.95rem;
        color: var(--white);
        text-align: center;
        border: none;
    }

    .btn-sp-cta.btn-tel {
        background: var(--primary-color);
    }

    .btn-sp-cta.btn-inquiry {
        background: var(--primary-light);
    }

    .btn-sp-cta .btn-icon svg {
        width: 18px;
        height: 18px;
    }

    .footer {
        padding-bottom: 80px;
    }

    .back-to-top {
        bottom: 85px;
    }

    .access-content {
        padding: 40px 0 0 0;
    }

    .access-info {
        padding: 0 20px 40px 20px;
    }

    .access-map {
        height: 400px !important;
        width: 100%;
        margin: 0;
        border-radius: 0 0 30px 30px;
    }
}

/* Mobile Nav Close Button */
.nav-mobile-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.nav-mobile-close span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
}

.nav-mobile-close span:nth-child(1) {
    transform: rotate(45deg);
}

.nav-mobile-close span:nth-child(2) {
    transform: rotate(-45deg);
}
