:root {
    --primary: #8BC34A;
    --primary-dark: #689F38;
    --primary-light: #F1F8E9;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-gray: #f9f9f9;
    --transition: all 0.3s ease;
    --container-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sp-only {
    display: none;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    font-size: 16px; /* PC Default */
    user-select: none; /* Disable selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none; /* Disable callout on mobile */
}

@media (max-width: 768px) {
    body {
        font-size: 14px; /* SP Default */
    }
}

h1, h2, h3, .en-title, .logo {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
}

ul {
    list-style: none;
}

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

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.logo span {
    color: var(--primary);
    margin-left: 4px;
}

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

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

.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
}

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

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

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Loader / Entry Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    animation: fadeLoader 1.5s cubic-bezier(0.45, 0, 0.55, 1) forwards 0.5s;
    pointer-events: none;
}

@keyframes fadeLoader {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Sections */
section {
    padding: 100px 0;
}

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

.section-header.centered {
    text-align: center;
}

.en-title {
    display: block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Hero */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/FV.jpeg') no-repeat center center/cover;
    z-index: -1;
    opacity: 0;
    transform: scale(1.08);
    animation: fvImageEntrance 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.8s;
}

@keyframes fvImageEntrance {
    0% {
        opacity: 0;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: -1;
}

.hero-content {
    width: 100%;
}

.hero-text {
    max-width: 650px;
}

.fv-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: fvFadeInUp 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.delay-1 { animation-delay: 1.8s; }
.delay-2 { animation-delay: 2.1s; }
.delay-3 { animation-delay: 2.4s; }

@keyframes fvFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.main-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

.main-title span {
    color: var(--primary);
}

.btn-large {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(139, 195, 74, 0.3);
}

.btn-large:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 195, 74, 0.4);
}

/* Hero Badges */
.hero-badges {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: var(--primary-dark);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(139, 195, 74, 0.15);
    border: 1.5px solid var(--primary);
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.hero-badge:hover {
    transform: translateY(-3px);
    background: var(--white);
    box-shadow: 0 12px 25px rgba(139, 195, 74, 0.25);
}

/* About */
.about {
    background: #fdfdf5; /* 暖かみのある薄いベージュ/クリーム色 */
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text .section-header {
    margin-bottom: 30px;
}

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

.about-image {
    flex: 1;
}

.about-image-box {
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Concept */
.concept {
    background: url('../img/Concept.jpeg') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.concept::before {
    display: none;
}

.concept-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.concept-content {
    max-width: 800px;
    margin: 0 auto;
}

.concept-content p {
    margin-bottom: 20px;
}

/* Points */
.points {
    background: var(--white);
}

.points-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.point-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.point-row.reverse {
    flex-direction: row-reverse;
}

.point-img {
    flex: 1.2;
}

.point-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.point-text {
    flex: 0.8;
}

.point-head {
    margin-bottom: 25px;
}

.point-num {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.point-text h3 {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 700;
}

.point-text p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

@media (max-width: 992px) {
    .point-row, .point-row.reverse {
        flex-direction: column;
        gap: 30px;
    }
    
    .point-img img {
        height: 300px;
    }
    
    .point-text {
        text-align: center;
    }
}

/* CTA */
.cta {
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.cta-box h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.cta-box p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.btn-tel-wrap {
    display: flex;
    flex-direction: column;
    background: var(--white);
    color: var(--primary);
    padding: 10px 30px;
    border-radius: 50px;
    text-align: center;
    line-height: 1.2;
    transition: var(--transition);
}

.tel-label {
    font-size: 0.75rem;
    font-weight: 700;
}

.tel-num {
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-cta {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
}

.btn-tel-wrap:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.btn-cta:hover {
    background: #558B2F;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.address {
    margin-bottom: 30px;
    opacity: 0.7;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Message Section */
.message {
    background: var(--white);
    text-align: center;
    position: relative;
}

.message-box {
    max-width: 800px;
    margin: 0 auto;
}

.highlight {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-light), #fff);
    border-left: 5px solid var(--primary);
    color: var(--primary-dark);
    padding: 12px 30px;
    border-radius: 0 50px 50px 0;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 25px;
    box-shadow: 5px 5px 15px rgba(139, 195, 74, 0.1);
}

.sub-title {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 30px;
}

.message-box .text {
    margin-bottom: 40px;
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
}

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

/* Services */
.services {
    background: var(--bg-gray);
    position: relative;
    z-index: 1; /* Ensure z-index context for badge */
}

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.link-more {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.link-more::after {
    content: '→';
    transition: var(--transition);
}

.link-more:hover::after {
    transform: translateX(5px);
}

/* Access */
.access {
    background: var(--white);
}

.access-flex {
    display: flex;
    gap: 50px;
    align-items: center;
}

.access-info {
    flex: 1;
}

.access-map {
    flex: 1.2;
}

.access-info dl dt {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 20px;
}

.access-info dl dd {
    font-size: 1.1rem;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.access-info dl dd:last-child {
    border-bottom: none;
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* Floating Badges */
.badge-wrap {
    position: absolute;
    z-index: 10;
}

.badge-message {
    bottom: 120px;
    right: 20%;
}

.badge-services {
    bottom: 150px;
    left: 2%; /* Further left */
    z-index: 1;
}

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

.floating-badge {
    width: 350px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
}

.badge-services .floating-badge {
    opacity: 0.6; /* More transparent */
}

.badge-fly-right {
    animation: flyInRight 2s ease-out forwards;
}

.badge-fly-left {
    animation: flyInLeft 2s ease-out forwards;
}

@keyframes flyInRight {
    0% {
        opacity: 0;
        transform: translate(100px, -50px) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0);
    }
}

@keyframes flyInLeft {
    0% {
        opacity: 0;
        transform: translate(-100px, -50px) rotate(10deg);
    }
    100% {
        opacity: 0.6; /* Matched to badge-services opacity */
        transform: translate(0, 0) rotate(0);
    }
}

@media (max-width: 768px) {
    .sp-only {
        display: block;
    }
    
    .floating-badge {
        width: 150px;
    }
    .badge-message {
        bottom: 80px;
        right: -10px;
        width: 180px !important;
    }
    .badge-services {
        top: 60px; /* Moved down */
        right: -10px;
        left: auto;
        bottom: auto;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .about-flex {
        flex-direction: column-reverse;
    }
    
    .concept-card {
        padding: 40px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .access-flex {
        flex-direction: column;
    }
    
    .access-info, .access-map {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        align-items: flex-end;
        padding: 100px 0 60px;
    }

    .hero-text {
        text-align: left !important;
        max-width: 100%;
    }

    .main-title {
        font-size: 26px !important;
        text-align: left;
    }

    .hero-badges {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }

    .hero-badge {
        padding: 8px 20px;
        font-size: 0.9rem;
        width: fit-content;
    }

    .sub-title, .section-header h2, .point-text h3, .service-card h3, .cta-box h2 {
        font-size: 20px !important;
    }
    
    .highlight {
        font-size: 1.1rem;
        padding: 10px 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-desktop {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        padding: 100px 40px;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    }

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

    /* Loader / FV Motion */
    .loader {
        display: none; /* Already handled by global loader */
    }

    @keyframes fadeLoader {
        to {
            opacity: 0;
            visibility: hidden;
        }
    }

    /* SP Text Alignment */
    .section-header.centered, 
    .section-header, 
    .about-text, 
    .concept-card, 
    .concept-content, 
    .point-text, 
    .blog-content,
    .cta-box,
    .access-info {
        text-align: left !important;
    }

    .section-header.centered {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-tel-wrap, .btn-cta {
        width: 100%;
        text-align: center;
    }
    
    .blog-btn-wrap {
        text-align: center;
    }

    .nav-desktop ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .nav-desktop ul li {
        width: 100%;
    }

    .nav-desktop a {
        font-size: 1.2rem;
        font-weight: 500;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .btn-primary {
        display: inline-block;
        margin-top: 20px;
        text-align: center;
    }

    /* Fixed Bottom Nav */
    .fixed-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        z-index: 1001;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    }

    .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        gap: 4px;
    }

    .nav-call {
        background: var(--primary);
    }

    .nav-form {
        background: var(--primary-dark);
        border-left: 1px solid rgba(255,255,255,0.2);
    }

    .nav-item svg {
        width: 22px;
        height: 22px;
    }

    body {
        padding-bottom: 70px;
    }
}

/* Blog */
.blog {
    background: url('../img/Concept.jpeg') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    color: var(--text);
}

.blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    z-index: -1;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pc-only {
    display: none;
}

@media (min-width: 993px) {
    .pc-only {
        display: block;
    }
}

.blog-lead {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.blog-content p {
    margin-bottom: 15px;
}

.blog-btn-wrap {
    margin-top: 40px;
}

/* SNS Icons */
.sns-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.sns-icons a {
    width: 50px;
    height: 50px;
    background: var(--bg-gray);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid #eee;
}

.sns-icons a svg {
    width: 24px;
    height: 24px;
}

.sns-icons a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 195, 74, 0.2);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px; /* Raised to avoid fixed nav */
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

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

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