.room-hero {
    --room-hero-finish-width: 1680px;
    --room-hero-aspect: 1105 / 546;
    --room-hero-black: #000;
    --room-hero-ivory: #f8f4ec;
    --room-hero-text: #FFEEC8;
}

.room-hero *,
.room-hero *::before,
.room-hero *::after {
    box-sizing: border-box;
}

.room-hero img,
.room-hero video {
    display: block;
    max-width: 100%;
}

.room-hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--room-hero-aspect);
    overflow: hidden;
    background-color: var(--room-hero-black);
}

.room-hero__stage {
    display: flex;
    align-items: center; /* flex-end → center */

    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.room-hero__visual {
    position: relative;
    flex: 0 0 auto;
    width: 100vw;
    height: auto;
    aspect-ratio: var(--room-hero-aspect);
    overflow: hidden;
    will-change: width;
}

.room-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center; /* center bottom → center */
}

.room-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgb(0 0 0 / 0.3);
    pointer-events: none;
}

.room-hero__title {
    position: absolute;
    z-index: 1;
    margin: 0;
    color: var(--room-hero-text);
    font-weight: 400;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.32);
}

.room-hero__title--left {
    top: 50%;
    left: clamp(32px, 3.65vw, 70px);
    transform: translateY(-50%);
}

.room-hero__title--center {
    top: 84%;
    left: 50%;
    width: min(90%, 1600px);
    text-align: center;
    transform: translate(-50%, -50%);
}

.js .room-hero__title--center {
    visibility: hidden;
    opacity: 0;
}

.room-hero__title-en,
.room-hero__title-ja {
    display: block;
}

.room-hero__title-en {
    font-family: var(--font-family02);
    font-size: clamp(24px, 3.15vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 300;
    transform: scaleY(1.2);
}

.room-hero__title-ja {
    margin-top: .6em;
    font-family: var(--font-family01);
    font-size: var(--font-size18);
    line-height: 1.6;
    letter-spacing: 0.13em;
}

/* Room detail: reservation plan link placed after the amenity list. */
.c-room-reservation {
    margin-top: clamp(30px, 5.2vw, 60px);
}

.c-room-reservation__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    padding: 1.5em 3em;
    overflow: hidden;
    border-radius: 0;
    background-color: var(--color-font);
    color: var(--color-font-light);
    font-family: var(--font-family01);
    font-size: var(--font-size18);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: .12em;
    text-decoration: none;
}

a.c-room-reservation__button {
    transition: opacity .3s ease, background-color .3s ease;
}

a.c-room-reservation__button:hover {
    opacity: .82;
    background: var(--color-font-light);
    outline: 1px solid var(--color-font);
    color: var(--color-font);
}

.c-room-reservation__icon {
    position: absolute;
    top: 50%;
    right: 1em;
    width: 1.5em;
    height: 1.5em;
    transform: translateY(-50%);
    mask-image: url(/wp-content/uploads/icon-usagi.svg);
    mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    background-color: var(--color-font-light);
}
a.c-room-reservation__button:hover .c-room-reservation__icon {
    background-color: var(--color-font);
}

@media (max-width: 767px) {
    .room-hero {
        height: 100svh;
        min-height: 560px;
        aspect-ratio: auto;
    }

    .room-hero__visual {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
    }

    .room-hero__image {
        object-fit: cover;
    }

    .room-hero__title--left {
        top: auto;
        right: 24px;
        bottom: 52px;
        left: 24px;
        transform: none;
    }

    .room-hero__title-en {
        font-size: clamp(28px, 7.2vw, 48px)
    }

    .room-hero__title-ja {
        margin-top: 10px;
        font-size: 10px;
    }



    .c-room-reservation__button {
        min-height: 104px;
        padding: 20px 70px 20px 20px;
        font-size: var(--font-size24);
    }

    .c-room-reservation__icon {
        right: 22px;
        width: 42px;
        height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
