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

:root {
    --blue: #003a61;
    --gold: #c3a165;
    --white: #ffffff;
    --text-dark: #333333;
    --section-margin-sp: 60px;
    --section-margin-pc: 100px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

h1,
h2,
h3,
.serif {
    font-family: 'Noto Serif JP', serif;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease;
    margin: 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Noto Serif JP', serif;
    color: var(--blue);
    letter-spacing: 0.1em;
}

/* Sticky header doesn't need body padding offset */

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

.fv-swiper {
    width: 100%;
    height: auto;
}

.fv-swiper .swiper-slide {
    height: auto;
}

.fv-swiper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Common */
section {
    margin-bottom: 0;
}

.section-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
    padding-top: 20px;
}

.section-title-main {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--blue);
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    margin-bottom: 0px;
}

.section-title-sep {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 5px 0;
}

.section-title-sub {
    font-size: 1rem;
    color: #666;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* Buttons */
.btn-gold {
    background-color: var(--blue);
    color: #fff;
    padding: 14px 28px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(195, 161, 101, 0.3);
}

.btn-gold:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Staff & Message Image Decoration */
.staff-img-wrapper,
.message-img-wrapper {
    position: relative;
    padding: 15px;
}

.staff-img-wrapper::before,
.staff-img-wrapper::after,
.message-img-wrapper::before,
.message-img-wrapper::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--gold);
    pointer-events: none;
    z-index: 1;
}

.staff-img-wrapper::after,
.message-img-wrapper::after {
    top: 0px;
    left: 0px;
    right: 10px;
    bottom: 10px;
}

.staff-img-wrapper img,
.message-img-wrapper img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 10px 10px 0 rgba(195, 161, 101, 0.1);
}

.staff-title-badge {
    position: absolute;
    bottom: -10px;
    right: 30px;
    background: var(--blue);
    color: #fff;
    padding: 10px 20px;
    font-size: 0.9rem;
    z-index: 3;
    font-family: 'Noto Serif JP', serif;
}

/* Table Style for Access */
.access-table {
    width: 100%;
    border-collapse: collapse;
}

.access-table th,
.access-table td {
    padding: 15px 0;
    border-bottom: 1px solid rgba(195, 161, 101, 0.2);
    text-align: left;
    vertical-align: top;
}

.access-table th {
    width: 1%;
    white-space: nowrap;
    padding-right: 30px;
    font-weight: 700;
    color: var(--blue);
    font-size: 0.9rem;
}

.access-table td {
    width: auto;
    font-size: 0.95rem;
    color: #555;
}

/* Stunning Backgrounds */
.bg-soft-blue {
    background-color: #f4f9fc;
}

.bg-soft-gold {
    background-color: #fcfaf4;
}

.bg-marble {
    background: url('../img/fixed-scaled.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Lightbox Nav Fix */
.lightbox-nav {
    display: flex !important;
    /* Force show */
    opacity: 1 !important;
}

/* Parallax Background */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* SP specific parallax fix */
@media (max-width: 1023px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

/* Voice Card */
.voice-card {
    background: #fff;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.voice-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.5s ease;
}

.voice-text.expanded {
    -webkit-line-clamp: unset;
}

.read-more-btn {
    color: var(--gold);
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
    display: inline-block;
}

/* Top Button */
#top-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--blue);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

#top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* New CTA Style */
.new-cta {
    background: url('../img/fixed-scaled.jpg') no-repeat center center fixed;
    background-size: cover;
    padding: 70px 20px;
    text-align: center;
}

.new-cta .cta-lead {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0px;
    letter-spacing: 0.1em;
}

.new-cta .cta-tel {
    color: var(--blue);
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
    text-decoration: none;
    line-height: 1.2;
}

.new-cta .cta-tel svg {
    width: clamp(30px, 6vw, 45px);
    height: auto;
}

.new-cta .cta-info {
    font-size: 1rem;
    color: #555;
    margin-bottom: 5px;
}

.new-cta .cta-btn {
    background-color: var(--blue);
    color: #fff;
    padding: 15px 0;
    width: 100%;
    max-width: 800px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border-radius: 4px;
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: 700;
    margin-top: 20px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(195, 161, 101, 0.3);
}

.new-cta .cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* SP Fixed CTA */
.sp-fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    z-index: 1000;
}

@media (min-width: 1024px) {
    .sp-fixed-cta {
        display: none;
    }
}

.sp-fixed-cta a {
    padding: 15px 0;
    text-align: center;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.bg-call {
    background-color: var(--blue);
}

.bg-web {
    background-color: var(--blue);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hamburger */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 58, 97, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.menu-overlay.active {
    transform: translateY(0);
}

.menu-overlay a {
    color: #fff;
    font-size: 1.5rem;
    margin: 15px 0;
    font-family: 'Noto Serif JP', serif;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.menu-cta-tel {
    color: #fff !important;
    font-size: 1.4rem !important;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    line-height: 1.2;
    border: 1.5px solid #fff;
    padding: 12px 20px;
    border-radius: 50px;
    width: 100%;
    max-width: 280px;
    margin: 5px 0;
}

.menu-cta-tel svg {
    width: 24px;
    height: 24px;
}

.menu-cta-btn {
    background-color: #fff;
    color: var(--blue) !important;
    padding: 14px 20px;
    width: 100%;
    max-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    font-size: 1.1rem !important;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    margin: 5px 0;
}

/* Service Image Decoration */
.service-img-wrapper {
    position: relative;
    padding: 15px;
    margin-bottom: 30px;
}

.service-img-wrapper::before,
.service-img-wrapper::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--gold);
    pointer-events: none;
    z-index: 1;
}

.service-img-wrapper::after {
    top: 0px;
    left: 0px;
    right: 10px;
    bottom: 10px;
}

.service-img-wrapper img {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.point-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gold);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    padding: 5px;
}

.point-badge::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid var(--gold);
    border-radius: 3px;
}

.point-label {
    font-size: 10px;
    color: var(--gold);
    font-weight: bold;
    line-height: 1;
}

.point-num {
    font-size: 20px;
    font-family: 'Noto Serif JP', serif;
    color: var(--gold);
    line-height: 1;
    margin-top: 2px;
}

.flower-deco {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    z-index: 4;
    color: #4dcde5;
    /* Original light blue for contrast or use gold */
    opacity: 0.6;
}

/* Gallery Section Margin Fix */
#gallery {
    margin-top: 80px;
}

/* Lightbox Professional Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 5000;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 3px solid #fff;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 5010;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--gold);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 5010;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Gallery Slider image size fix */
.gallery-swiper img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 32px;
    }
}