@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@700&display=swap');

:root {
    --primary-color: #d4a017;
    /* Mastered Yellow/Gold */
    --secondary-color: #8b5d33;
    /* Light Brown */
    --accent-color: #e67e22;
    /* Orange */
    --bg-color: #fdfbf7;
    /* Off-white */
    --text-color: #3e2723;
    /* Dark Brown */
    --white: #ffffff;

    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;

    --section-margin-sp: 80px;
    --section-margin-pc: 120px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

h1,
h2,
h3,
.serif {
    font-family: var(--font-serif);
    font-weight: 700;
}

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

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

/* Utils */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

.section-margin {
    margin-bottom: var(--section-margin-sp);
}

@media (min-width: 768px) {
    .section-margin {
        margin-bottom: var(--section-margin-pc);
    }
}

/* Section Title Updated */
.section-header {
    width: 100%;
    margin: 0 auto 60px;
    text-align: center;
}

.section-header .title {
    display: block;
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 5px;
    font-family: var(--font-serif);
}

@media (min-width: 768px) {
    .section-header .title {
        font-size: 2.25rem;
    }
}

.section-header .subtitle {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 0;
    font-weight: 500;
    display: inline-block;
    transition: 0.3s;
}

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

.btn-accent {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 12px 30px;
    border-radius: 9999px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(212, 160, 23, 0.3);
}

.btn-accent:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4);
}

/* CTA Styles Updated */
.cta-section {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.btn-cta {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 30px;
    font-size: 1.15rem;
    font-weight: 700;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
    width: 100%;
    max-width: 400px;
}

@media (min-width: 768px) {
    .btn-cta {
        padding: 20px 60px;
        font-size: 1.75rem;
        width: auto;
    }
}

.btn-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-cta:hover::before {
    left: 0;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

@media (min-width: 768px) {
    .cta-flex {
        flex-direction: row;
        gap: 40px;
    }
}

.cta-item a {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Swiper FV */
.fv-swiper {
    width: 100%;
    height: auto;
}

.fv-swiper img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* Sticky CTA SP */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 1000;
}

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

.sticky-cta a {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

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

.sticky-cta .web {
    background-color: var(--accent-color);
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 99;
    cursor: pointer;
}

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

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

@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1002;
    transform: translateX(100%);
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin: 20px 0;
}

.mobile-menu a {
    font-size: 1.25rem;
    font-family: var(--font-serif);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Header SP Center Fix */
@media (max-width: 767px) {
    header .container {
        position: relative;
        display: block !important;
        height: 80px;
        /* Match h-20 */
    }

    .logo {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        z-index: 10;
        margin: 0 !important;
        transition: none !important;
        animation: none !important;
        white-space: nowrap;
        font-size: 1.1rem;
        letter-spacing: 0.01em;
    }

    .logo a {
        pointer-events: auto;
        display: inline-block;
        transition: none !important;
        animation: none !important;
    }

    .header-controls {
        position: absolute;
        right: 15px;
        top: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 20;
    }

    .hamburger {
        z-index: 20;
        margin: 0 !important;
    }
}

/* Map SP Ratio */
@media (max-width: 767px) {
    .map-container {
        aspect-ratio: 1 / 1;
        width: 100vw;
        margin-left: -15px;
        /* offset container padding */
        min-height: auto !important;
    }

    .access-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100vw !important;
        max-width: none !important;
    }

    .gallery-img {
        width: 85% !important;
        margin: 0 auto;
    }
}

/* SP Break Only */
.mobile-only {
    display: none;
}

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

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
