/* Reset & Base Styles */
:root {
    --primary-color: #d4a373;
    /* Warm Brown */
    --secondary-color: #ccd5ae;
    /* Soft Green */
    --accent-color: #e9edc9;
    /* Light Green */
    --text-color: #4a4a4a;
    --bg-color: #fdfbf7;
    /* Off-white/Cream */
    --white: #ffffff;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-heading: 'Zen Maru Gothic', sans-serif;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    padding-bottom: 60px;
    /* Space for sticky footer on mobile */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: bold;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    color: var(--text-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    display: none;
    /* Hidden on mobile, shown on desktop if needed */
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('fs_rin_hero.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
    /* Header is fixed overlay */
}

.hero-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    display: inline-block;
}

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

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

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

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

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1rem;
}

/* Services Section */
.services {
    background-color: var(--white);
}

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

.service-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.service-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.service-card p {
    font-size: 0.9rem;
}

/* Access Section */
.access-content {
    margin-top: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.access-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.access-info dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
}

.access-info dt {
    font-weight: bold;
    color: var(--primary-color);
}

.access-info dd {
    margin: 0;
}

.access-map-placeholder {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.contact-box {
    flex: 1;
    background: var(--white);
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-color);
}

.contact-box h3 {
    margin-bottom: 15px;
}

.contact-box p {
    margin-bottom: 25px;
}

.contact-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    color: var(--white);
}

.phone-btn {
    background-color: var(--primary-color);
}

.mail-btn {
    background-color: var(--secondary-color);
}

.contact-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: #333;
    color: #eee;
    padding: 40px 0 100px;
    /* Extra padding bottom for sticky footer space */
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.footer-nav a {
    color: #bbb;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--white);
}

.copyright {
    font-size: 0.8rem;
    color: #888;
    margin-top: 20px;
}

/* Sticky Footer (Mobile) */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    display: flex;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.sticky-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: var(--text-color);
    font-size: 0.8rem;
    border-top: 3px solid transparent;
}

.sticky-btn i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.sticky-btn.phone {
    background-color: var(--bg-color);
    color: var(--primary-color);
    border-top-color: var(--primary-color);
}

.sticky-btn.mail {
    background-color: var(--primary-color);
    color: var(--white);
    border-top-color: var(--primary-color);
}

/* Responsive Design */
@media (min-width: 769px) {
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .sticky-footer {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

    .footer {
        padding-bottom: 40px;
    }

    .header-cta {
        display: block;
    }

    .btn-phone {
        background-color: var(--primary-color);
        color: var(--white);
        padding: 8px 20px;
        border-radius: 20px;
        font-weight: bold;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        padding-bottom: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid #eee;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
    }

    .header-cta {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .access-info dl {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .access-info dt {
        margin-top: 10px;
    }
}