:root {
    --primary: #4b7f91;
    --secondary: #b89b72;
    --accent: #4a4a4a;
    --bg-light: #fcfaf7;
    --white: #ffffff;
}

html {
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    color: var(--accent);
    background-color: var(--bg-light);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

/* --- Utilities --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* --- Header --- */
header {
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.scrolled {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.fv-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.fv-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 6s ease;
}

.swiper-slide-active img {
    transform: scale(1);
}

.fv-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    color: white;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* --- Section Title --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .subtitle {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.3em;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 3.6rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

/* --- About Collage --- */
.about-collage {
    position: relative;
    height: 500px;
}

.about-img-item {
    position: absolute;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
    border: 8px solid white;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-img-item:hover {
    transform: scale(1.03) !important;
    z-index: 10 !important;
}

.about-img-1 {
    top: 0;
    left: 0;
    width: 70%;
    height: 70%;
    z-index: 1;
}

.about-img-2 {
    bottom: 0;
    right: 0;
    width: 65%;
    height: 65%;
    z-index: 2;
}

.about-deco-frame {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 60%;
    height: 60%;
    border: 1px solid var(--secondary);
    opacity: 0.3;
    z-index: 0;
}

.about-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.about-text-card {
    background: #4b7f9114;
    backdrop-filter: blur(10px);
    padding: 3rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 30px 60px rgba(75, 127, 145, 0.05);
}

/* --- Service Card --- */
.service-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 3rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 40px rgba(75, 127, 145, 0.03);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(75, 127, 145, 0.08);
}

.service-number {
    position: absolute;
    top: -30px;
    left: 20px;
    font-family: serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--secondary);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.service-deco-border {
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    border: 1px solid rgba(184, 155, 114, 0.1);
    pointer-events: none;
}

.service-img-wrapper {
    position: relative;
    z-index: 2;
}

.service-img-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--secondary);
    opacity: 0.2;
    z-index: -1;
}

.md\:flex-row-reverse .service-img-wrapper::after {
    left: auto;
    right: -20px;
}

/* --- Message Glass Card --- */
.message-glass-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 3.5rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.message-glass-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 24px;
    font-size: 10rem;
    line-height: 1;
    font-family: serif;
    color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.message-portrait {
    position: relative;
    display: inline-block;
}

.message-portrait::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(184, 155, 114, 0.5);
    border-radius: 50%;
    z-index: 0;
}

.message-portrait img {
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 4px solid rgba(255, 255, 255, 0.4);
}

.message-signature {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* --- Access Card --- */
.access-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.access-info-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(75, 127, 145, 0.1);
}

.access-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.access-label {
    min-width: 100px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
}

.access-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    margin-right: 0.75rem;
}

.access-map-wrapper {
    position: relative;
    padding: 15px;
}

.access-map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    border: 1px solid var(--secondary);
    opacity: 0.3;
    z-index: 0;
}

.access-map-frame {
    position: relative;
    z-index: 1;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

/* --- Recommend Section --- */
.recommend-img-portal {
    position: relative;
    padding: 20px;
}

.recommend-img-portal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 110%;
    border: 1px solid var(--secondary);
    opacity: 0.4;
    z-index: 0;
}

.recommend-img-frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 160px 160px 40px 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 8px;
}

.recommend-img-frame img {
    border-radius: 152px 152px 32px 32px;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Price Collage --- */
.price-collage-container {
    position: relative;
    height: 600px;
    width: 100%;
}

.price-img-item {
    position: absolute;
    overflow: hidden;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.1);
    border: 6px solid white;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.price-img-item:hover {
    transform: scale(1.05) translateZ(0) !important;
    z-index: 10 !important;
}

.price-img-1 {
    top: 0;
    right: 0;
    width: 80%;
    height: 65%;
    z-index: 1;
}

.price-img-2 {
    bottom: 0;
    left: 0;
    width: 70%;
    height: 55%;
    z-index: 2;
}

.price-deco-frame {
    position: absolute;
    top: 10%;
    left: 15%;
    width: 50%;
    height: 50%;
    border: 1px solid var(--secondary);
    opacity: 0.3;
    z-index: 0;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

@keyframes scrollDown {
    0% { transform: translateY(-100%); opacity: 0; }
    30% { opacity: 1; }
    60% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

.scroll-line {
    animation: scrollDown 2.5s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

/* --- Mobile Specific --- */
@media (max-width: 767px) {
    .hide-on-sp {
        display: none;
    }

    .message-glass-card,
    .service-card,
    .about-text-card {
        padding: 40px 15px;
    }

    .access-card {
        padding: 1.5rem;
    }

    .access-info-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .access-label {
        min-width: auto;
    }

    .price-collage-container {
        height: 400px;
        margin-bottom: 2rem;
    }
}

/* --- Swiper Overrides --- */
.gallery-swiper .swiper-slide {
    width: 300px;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
}

#gallery-modal.show {
    display: flex;
}
