@charset "UTF-8";

/* Base Styles */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-image: url('./parts/bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
}

/* Header Styles */
.global-header {
    width: 100%;
    background-color: #303030 !important;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.header-inner {
    width: 100%;
    max-width: 780px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 0;
    position: relative;
    /* Context for children if needed */
}

.tel-btn-container {
    position: relative;
    width: 100%;
    line-height: 0;
}

.tel-btn-container img {
    width: 100%;
    height: auto;
    display: block;
}

.header-link {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 1010;
    /* Above the header bar */
    cursor: pointer;
}

.header-link.left {
    left: 0;
}

.header-link.right {
    right: 0;
}

/* LP Container */
.lp-container {
    width: 100%;
    max-width: 780px;
    /* 390px base * 2 logic, or just max width */
    margin: 0 auto;
    background-color: #fff;
    /* Container background */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 50px;
    /* Updated to 50px as requested */
}

/* Image Tile Structure */
.image-tile {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
    /* Remove gap */
}

.tile-content {
    width: 100%;
    position: relative;
}

.tile-content img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -1px;
    margin-bottom: -1px;
}

#section-map {
    background-color: #383838 !important;
    padding: 5px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.map-wrapper {
    width: 100%;
    max-width: 780px;
}

#section-map iframe {
    width: 100%;
    height: 300px;
    display: block;
    border: 0;
}

/* PC adjustment for Map height */
@media screen and (min-width: 1025px) {
    #section-map iframe {
        height: 450px;
    }
}

/* Page Top Button Styles */
.page-top {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 40px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    border: 0;
    background: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}

.page-top p {
    writing-mode: vertical-lr;
    text-decoration: none;
    text-transform: uppercase;
    height: 70px;
    margin: 0;
    letter-spacing: 5px;
    text-align: right;
    position: relative;
    font-size: 9px;
    font-weight: 100;
    color: #bebebecc;
}

.page-top p:before {
    content: "";
    position: absolute;
    top: -1px;
    left: 7px;
    width: 1px;
    height: 16px;
    background: #bebebecc;
    transform: skewX(30deg);
}

.page-top p:after {
    content: "";
    position: absolute;
    bottom: 1px;
    left: 2px;
    width: 1px;
    height: 70px;
    background: #bebebecc;
}

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

/* PC: bottom 10%, 1.5x size */
@media screen and (min-width: 1025px) {
    .page-top {
        bottom: 10%;
        top: auto;
    }

    .page-top p {
        height: 105px;
        font-size: 14px;
        letter-spacing: 8px;
    }

    .page-top p:before {
        height: 24px;
        left: 10px;
    }

    .page-top p:after {
        height: 105px;
        left: 3px;
    }
}

/* iPad/SP: bottom 10% */
@media screen and (max-width: 1024px) {
    .page-top {
        bottom: 10%;
        right: 2.5%;
    }
}

/* Sticky Reservation Button Styles */
.sticky-reservation-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.sticky-reservation-container.is-active {
    opacity: 1;
    visibility: visible;
}

.sticky-reservation-container.is-hidden-by-final {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.sticky-reserve-btn {
    display: block;
    width: 100%;
    background-color: #9b0506;
    /* Updated to requested color */
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 13px 0;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 19px;
    transition: opacity 0.3s, transform 0.2s;
    border-radius: 0;
    /* Flush with edges */
}

.sticky-reserve-btn:hover {
    opacity: 0.9;
}

/* PC specific adjustment for Sticky Button */
@media screen and (min-width: 1025px) {
    .sticky-reservation-container {
        top: 15%;
        bottom: auto;
        left: auto;
        right: 0;
        width: 70px;
        border-radius: 8px 0 0 8px;
        overflow: hidden;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    }

    .sticky-reserve-btn {
        width: 100%;
        height: 160px;
        padding: 15px 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        writing-mode: vertical-rl;
        text-orientation: upright;
        letter-spacing: 0.1em;
        font-size: 15px;
        border-radius: 0;
    }
}

/* Footer Styles */
.global-footer {
    width: 100%;
    background-color: #333 !important;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    position: relative;
    /* Context for full-link */
    cursor: pointer;
}

.footer-full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.footer-inner {
    width: 90%;
    max-width: 780px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.footer-logo {
    width: 50%;
    max-width: 250px;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.hidden {
    display: none;
}

/* Floor Plan Triggers */
.floor-plan-triggers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.floor-plan-trigger {
    position: absolute;
    cursor: pointer;
    pointer-events: auto;
    border-radius: 4px;
    background-color: transparent;
}

.floor-plan-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.trigger-1f {
    top: 72%;
    left: 5.5%;
    width: 43%;
    height: 2.5%;
}

.trigger-2f {
    top: 72%;
    right: 5%;
    width: 41%;
    height: 2.5%;
}

.trigger-3f {
    top: 75%;
    left: 5.5%;
    width: 43%;
    height: 2.7%;
}

.trigger-roofbalcony {
    top: 75%;
    right: 4.5%;
    width: 40%;
    height: 2.5%;
}

/* Popup Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-overlay.is-open {
    display: flex;
}

/* Modal Container - remove overflow:hidden to allow close button to sit outside if needed, 
   or keep it and move close button strictly within the top-right corner more cleanly */
.modal-container {
    width: 90%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    /* We'll keep this to clip images, and move button inside but better */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.3s ease-out;
    padding-top: 45px;
    /* Added space to ensure button doesn't overlap image */
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    /* Reduced size slightly */
    height: 30px;
    /* Reduced size slightly */
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    /* Ensure it's above the image */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: #ddd;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background-color: #333;
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

.modal-content {
    width: 100%;
}

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-desc {
    padding: 20px;
    background-color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    border-top: 1px solid #eee;
}