@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Shippori+Mincho&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');


* {
    font-family: 'Shippori Mincho', sans-serif;
    line-height: 1.6;
}

body {
    background-color: #f7f5f4;
}

h1,
.section-title {
    color: #5c524c;
    letter-spacing: -0.03rem;
    font-size: 62px;
    line-height: 1.3;
    font-family: 'Cormorant', 'Shippori Mincho';
}

p,
a,
tr,
th,
td,
li,
span,
label {
    font-size: 15px;
    color: #5c524c;
    letter-spacing: 0.07rem;
    line-height: 1.8;
    font-family: 'Noto Sans JP', sans-serif;
}

h2 {
    color: #5c524c;
    font-size: 26px;
    margin-top: 10px;
    margin-bottom: 20px;
}

header {
    width: 100%;
    position: fixed;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 40px;
    z-index: 10000000000;
    transition: all .6s;
}

header:not(.scrolled) a.label {
    color: #fffffff1;
}

header .header-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header.scrolled {
    background-color: #f8f8f8;
    height: 64px;
    border-bottom: 1px solid #b7afab;
}

header.scrolled a.background {
    border: 1.4px solid #ccc;
}

header.active {
    color: #111;
}

header nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

header a.background {
    border-radius: 100px;
    padding: 5px 19px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1.4px solid #cccccc00;
    color: #111;
    display: flex;
    align-items: center;
    gap: 6px;
}

header.active a.background {
    background-color: rgba(153, 153, 153, 0.2);
}

#slider {
    width: 100%;
    height: 88vh;
    overflow: hidden;
    position: relative;
    color: #fff;
}

#slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease;
    filter: brightness(0.7) contrast(0.8);
}

#slider img.active {
    opacity: 1;
    animation: zoomOut 8s linear forwards;
    z-index: 1;
}

/* ズームアウトのキーフレーム */
@keyframes zoomOut {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

#slider h1 {
    position: absolute;
    z-index: 1000;
    font-size: 30px;
    top: 50%;
    left: 50px;
}

.caption {
    position: absolute;
    bottom: 78px;
    right: 38px;
    font-size: 1rem;
    border-radius: 5px;
    transition: opacity 0.5s ease;
    opacity: 0;
    z-index: 100;
    font-size: 18px;
}

.caption.show {
    opacity: 0.8;
}

#slider a {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 100;
}

main {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: auto;
}

.container:not(#top, #concept) {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    padding: 100px 50px;
}

#concept {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: calc(100% - 36px);
    height: 80vh;
    margin: 18px;
}

#concept .title {
    padding-left: 70px;
    width: 1000px;
}

#concept .title h2 {
    color: #f5f5f5ed;
    font-size: 28px;
}

#concept p {
    color: #f5f5f5ed;
    line-height: 2;
    margin-top: 40px;
}

#concept img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: -1;
}

article {
    width: 100%;
    position: relative;
}

article img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.3s ease;
}

article p {
    padding: 10px;
}

article .button {
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 80px;
    height: 80px;
    padding: 15px;
    transition: all 0.3s ease;
}

article:hover .button {
    padding: 10px;
}

article .button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

article:hover img {
    transform: scale(0.98);
}

section#top a {
    background: #212121;
    padding: 10px 21px;
    border-radius: 50px;
}

table {
    width: 100%;
    height: fit-content;
}

table tr {
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
    width: 100%;
}

table td {
    padding: 30px;
}

#notification {
    background: #f2f0eb;
}

#notification .wrapper {
    margin-top: 30px;
}

a.button {
    background-color: rgb(40, 40, 37);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    color: #fff;
    margin-top: 30px;
    width: fit-content;
}

.border {
    position: absolute;
    bottom: 0px;
    color: #ffffffe2;
    padding: 36px;
    font-size: 18px;
    width: 100%;
    text-align: left;
    z-index: 100000;
    display: flex;
    gap: 14px;
    flex-direction: column;
}

.border>div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.border .scroll-container img {
    width: 28px;
}

.border p {
    color: #fff;
}

.border img {
    width: 34px;
}

section#top {
    position: relative;
}

#reservation {
    background: #F6F4F3;
}

#reservation-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

#reservation .wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

#access {
    background: #f2f0eb;
}

#access iframe {
    border: 1px solid #aaa;
}

#access .item {
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    background-color: #ffffff94;
    padding: 30px 30px;
}

#access .middle-border {
    background-color: #5c5c5c53;
    width: 100%;
    height: 1px;
    margin-bottom: 10px;
}

#access .item a {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

header>div {
    max-width: 1000px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* overlay-styles.css */
header:not(.scrolled) .hamburger-overlay__line {
    background-color: #fff;
}

.hamburger-overlay.active .hamburger-overlay__line {
    background-color: #333 !important;
}

.hamburger-overlay {
    z-index: 100000000;
    width: 48px;
    height: 48px;
    border: none;
    position: absolute;
    right: 20px;
    top: 7px;
    background: transparent;
    cursor: pointer;
}

.hamburger-overlay__line {
    position: absolute;
    left: 11px;
    width: 26px;
    height: 2px;
    background-color: #333;
    transition: all .6s;
}

.hamburger-overlay__line:nth-of-type(1) {
    top: 14px;
}

.hamburger-overlay__line:nth-of-type(2) {
    top: 23px;
}

.hamburger-overlay__line:nth-of-type(3) {
    top: 32px;
}


.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(1) {
    transform: translateY(9px) rotate(-45deg);
}

.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(2) {
    opacity: 0;
}

.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(3) {
    transform: translateY(-9px) rotate(45deg);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f7f5f4;
    visibility: hidden;
    opacity: 0;
    transition: all .6s;
    z-index: 900;
}

.nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.nav-overlay__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.nav-overlay__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-overlay__item {
    opacity: 0;
    transform: translateY(20px);
    transition: all .6s;
}

.nav-overlay.active .nav-overlay__item {
    opacity: 1;
    transform: translateY(0);
}

.nav-overlay.active .nav-overlay__item:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-overlay.active .nav-overlay__item:nth-child(2) {
    transition-delay: 0.2s;
}

.nav-overlay.active .nav-overlay__item:nth-child(3) {
    transition-delay: 0.3s;
}

.nav-overlay.active .nav-overlay__item:nth-child(4) {
    transition-delay: 0.4s;
}

.nav-overlay__link {
    display: inline-block;
    padding: 20px;
    font-size: 24px;
    text-decoration: none;
    transition: color .3s;
}

header .mobile .header-container {
    padding: 0;
}

header .mobile nav {
    gap: 2px;
}

.villas-container {
    display: flex;
    gap: 6px;
    width: 100%;
    padding: 0px 20px;
    height: fit-content;
    margin-bottom: 60px;
}

#access .item-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding-top: 0;
}


@media (max-width: 768px) {
    .desktop {
        display: none !important;
    }

    .mobile {
        display: inherit;
    }

    header .mobile {
        width: 100%;
        display: block !important;
    }

    .villas-container {
        flex-direction: column;
        gap: 30px;
        padding: 0px 20px;
        margin-bottom: 30px;
    }

    #access .item {
        width: 100%;
    }

    #access .item-container {
        flex-direction: column;
        padding: 30px 20px;
        width: 100%;
    }

    .link-container {
        flex-direction: column;
        gap: 20px;
    }

    p,
    a,
    tr,
    th,
    td,
    li,
    span,
    label {
        font-size: 14px;
        font-family: 'Noto Sans JP', sans-serif;
    }

    header {
        height: 60px;
        padding: 0px 16px;
    }

    header.scrolled {
        height: 60px;
    }

    header a.background {
        padding: 5px 12px;
        font-size: 12px;
    }

    header a.background img {
        width: 14px;
    }

    header .label {
        font-size: 14px !important;
        text-align: center;
        width: 100%;
    }

    header button.hamburger-overlay {
        transform: scale(0.85);
        transform-origin: center right;
        margin-left: -5px;
    }

    /* --- New mobile optimizations --- */

    .container:not(#top, #concept) {
        padding: 50px 20px;
    }

    #concept {
        margin: 10px;
        width: calc(100% - 20px);
        height: 60vh;
        min-height: 400px;
    }

    #concept .title {
        padding: 24px;
        width: 100%;
    }

    #concept .title h2 {
        font-size: 24px;
    }

    #concept p {
        font-size: 14px;
    }

    h1,
    .section-title {
        font-size: 44px;
        margin-bottom: 0px;
    }

    h1 span,
    .section-title span {
        font-size: 16px !important;
    }

    table td {
        padding: 15px 10px;
    }

    #reservation-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .border {
        flex-direction: column;
        padding: 26px 20px;
        gap: 10px;
        font-size: 14px;
    }

    section#list .title {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    a.button {
        justify-content: center;
    }

    .caption {
        bottom: 50px;
        right: 20px;
    }

    .nav-bar {
        position: fixed;
        bottom: 10px;
        left: 0;
        width: calc(100% - 20px);
        margin: 0 10px;
        height: 60px;
        background-color: #fff;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 100000000;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-bar a {
        text-align: center;
        line-height: 1.1;
        width: 100%;
        border-right: 1px solid #eee;
    }

    .nav-bar a:last-child {
        border-right: none;
    }

    .nav-bar span {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .desktop {
        display: inherit;
    }

    .mobile {
        display: none;
    }

    .nav-bar.desktop {
        position: fixed;
        bottom: 10px;
        right: 10px;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        z-index: 100000000;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-bar.desktop a {
        border-bottom: 1px solid #5c524c3e;
        padding: 13px 34px;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 17px;
    }

    .nav-bar.desktop span {
        opacity: 0.8;
        font-size: 14px;
    }

    .nav-bar.desktop a:last-child {
        border-bottom: none;
    }

}

footer {
    background-color: rgb(40, 40, 37);
}

footer * {
    color: rgb(226, 226, 226);
}

.link-container {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.link-container>div {
    width: 40%;
}

.link-container a {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 2;
}

.scroll-container {}