@charset "UTF-8";

.top-page,
.subspace-top-pattern {
    margin: 0;
    color: var(--brand-text);
    background: var(--white);
    font-family: var(--font-base, "Noto Sans JP", sans-serif);
    font-size: 16px;
}

.top-page-main,
.subspace-top-pattern {
    overflow: hidden;
}

.subspace-top-pattern,
.subspace-top-pattern * {
    box-sizing: border-box;
}

.subspace-top-pattern :where(.wp-block-group, .wp-block-image) {
    margin-block-start: 0;
    margin-block-end: 0;
}

.top-page-main :where(h1, h2, h3, p, ul, dl, dd, figure),
.subspace-top-pattern :where(h1, h2, h3, p, ul, dl, dd, figure) {
    margin-top: 0;
}

.top-container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

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

.top-section-head {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
    gap: 72px;
    align-items: end;
    margin-bottom: 48px;
}

.top-section-head > * {
    margin-bottom: 0;
}

.top-eyebrow {
    margin-bottom: 12px;
    color: var(--brand-accent);
    font-family: var(--font-accent, "Playfair Display", serif);
    font-size: 0.875rem;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.top-section-title {
    margin-bottom: 0;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    line-height: 1.35;
}

.top-section-copy {
    max-width: 640px;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.85;
}

.top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
}

.top-action-wrap {
    margin-bottom: 0;
}

.top-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: 1px solid var(--brand-text);
    border-radius: 4px;
    color: var(--brand-text);
    background: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.top-button--dark {
    color: var(--white);
    background: var(--brand-text);
}

.top-button--light {
    border-color: var(--white);
    color: var(--brand-text);
    background: var(--white);
}

.top-button:hover,
.top-button:focus-visible {
    border-color: var(--brand-accent);
    color: var(--white);
    background: var(--brand-accent);
}

.top-inline-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    color: var(--brand-text);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.top-inline-link span {
    transition: transform 0.2s ease;
}

.top-inline-link:hover span,
.top-inline-link:focus-visible span {
    transform: translateX(4px);
}

.top-inline-link--light {
    color: var(--white);
}

.top-button:focus-visible,
.top-inline-link:focus-visible,
.top-room-action a:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 4px;
}

/* Hero */
.top-hero {
    position: relative;
    min-height: calc(100svh - var(--header-height, 80px));
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: var(--white);
    background: var(--brand-dark);
}

.top-hero-image,
.top-hero-image::after {
    position: absolute;
    inset: 0;
}

.top-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
}

.top-hero-image img {
    object-fit: cover;
    object-position: center 60%;
}

.top-hero-image::after {
    content: "";
    background:
        linear-gradient(90deg, rgba(14, 16, 18, 0.76) 0%, rgba(14, 16, 18, 0.38) 50%, rgba(14, 16, 18, 0.08) 80%),
        linear-gradient(0deg, rgba(14, 16, 18, 0.52) 0%, transparent 50%);
}

.top-hero-content {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
    padding: 72px 0 128px;
}

.top-hero-eyebrow {
    color: var(--white);
    text-transform: none;
}

.subspace-top-pattern h1.top-hero-title {
    max-width: 780px;
    margin-bottom: 24px;
    color: var(--white);
    font-size: clamp(3.25rem, 5.2vw, 4.5rem);
    letter-spacing: 0.015em;
    line-height: 1.2;
}

.top-hero-title span {
    display: block;
}

.top-hero-title span:nth-child(3) {
    margin-top: 8px;
}

.top-hero-lead {
    max-width: 600px;
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.8;
}

/* Rooms */
.top-rooms {
    background: var(--white);
}

.top-room-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.top-room-card {
    min-width: 0;
    color: inherit;
}

.top-page .top-room-card {
    position: relative;
}

.top-room-image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 20px;
    background: var(--brand-section);
}

.top-room-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.top-room-card:hover .top-room-image img,
.top-room-card:focus-within .top-room-image img {
    transform: scale(1.025);
}

.top-room-number {
    margin-bottom: 5px;
    color: var(--text-light);
    font-family: var(--font-accent, "Playfair Display", serif);
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.top-room-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.top-room-purpose {
    min-height: 3.4em;
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.7;
    transition: color 0.2s ease;
}

.top-room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid var(--brand-border);
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
}

.top-room-meta span::before {
    content: "/";
    margin-right: 12px;
    color: var(--brand-border);
}

.top-room-action {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    font-size: 0.875rem;
    font-weight: 700;
}

.top-room-action a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-page .top-room-action a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.top-room-action a span {
    transition: transform 0.2s ease;
}

.top-room-card:hover .top-room-action a span,
.top-room-card:focus-within .top-room-action a span {
    transform: translateX(4px);
}

.top-room-card:hover .top-room-content h3,
.top-room-card:hover .top-room-purpose,
.top-room-card:hover .top-room-action a,
.top-room-card:focus-within .top-room-content h3,
.top-room-card:focus-within .top-room-purpose,
.top-room-card:focus-within .top-room-action a {
    color: var(--brand-accent);
}

@media (min-width: 701px) {
    .top-room-card {
        display: flex;
        width: 100%;
        height: 100%;
        flex-direction: column;
    }

    .top-room-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .top-room-action {
        margin-top: auto;
        padding-top: 14px;
    }
}

/* Charter */
.top-charter,
.top-booking {
    color: var(--white);
    background: var(--brand-dark);
}

.top-charter .top-eyebrow,
.top-booking .top-eyebrow,
.top-booking-index {
    color: var(--brand-accent-on-dark, #cdb797);
}

.subspace-top-pattern .top-hero-title,
.subspace-top-pattern .top-charter .top-section-title,
.subspace-top-pattern .top-booking .top-section-title,
.subspace-top-pattern .top-booking-option h3 {
    color: var(--white);
}

.top-charter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 72px;
    align-items: center;
}

.top-charter-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin: 0;
    background: #343a40;
}

.top-charter-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.top-charter-copy p:not(.top-eyebrow) {
    margin-bottom: 28px;
    line-height: 1.85;
}

.top-charter-copy .top-section-title {
    margin-bottom: 16px;
}

.top-charter-copy .top-action-wrap {
    margin-bottom: 0;
}

/* Essentials */
.top-essentials {
    background: var(--brand-base);
}

.top-fact-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-block: 1px solid var(--brand-border);
    list-style: none;
}

.top-fact-list li {
    min-width: 0;
    padding: 24px 20px;
    border-right: 1px solid var(--brand-border);
}

.subspace-top-pattern .top-fact-list > li + li {
    margin-top: 0;
}

.top-fact-list li:first-child {
    border-left: 1px solid var(--brand-border);
}

.top-fact-list strong,
.top-fact-list span {
    display: block;
}

.top-fact-list strong {
    margin-bottom: 8px;
    font-size: 1rem;
}

.top-fact-list span {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
}

.top-section-link {
    margin: 28px 0 0;
    text-align: right;
}

/* Access */
.top-access {
    background: var(--white);
}

.top-access-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 80px;
    align-items: center;
}

.top-access-list {
    margin: 0 0 32px;
    border-top: 1px solid var(--brand-border);
}

.top-access-copy .top-section-title {
    margin-bottom: clamp(28px, 3vw, 40px);
}

.top-access-list .top-access-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--brand-border);
}

.top-access-list dt,
.top-access-term {
    color: var(--text-light);
}

.top-access-list dd,
.top-access-term,
.top-access-value {
    margin: 0;
}

.top-access-visual {
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
}

.top-access-visual img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
}

/* Booking */
.subspace-top-pattern .top-booking-note {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.875rem;
    line-height: 1.75;
}

.top-booking-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.top-booking-note + .top-booking-grid {
    margin-top: 32px;
}

.top-booking-option {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.32);
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.top-booking-option:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.top-booking-index {
    margin-bottom: 16px;
    color: var(--brand-accent-on-dark, #cdb797);
    font-family: var(--font-accent, "Playfair Display", serif);
    font-size: 0.875rem;
    letter-spacing: 0.12em;
}

.top-booking-option h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    line-height: 1.5;
}

.top-booking-option > p:not(.top-booking-index) {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.8;
}

.top-booking-option .top-button {
    width: 100%;
}

.top-booking-action {
    width: 100%;
    margin-top: auto;
}

@media (max-width: 1180px) {
    .top-room-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 48px;
    }

    .top-room-card {
        grid-column: span 2;
    }

    .top-room-card:nth-child(4) {
        grid-column: 2 / span 2;
    }
}

@media (max-width: 960px) {
    .top-section-head,
    .top-charter-grid,
    .top-access-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .top-section-head {
        margin-bottom: 40px;
    }

    .top-charter-copy,
    .top-access-copy {
        max-width: 680px;
    }

    .top-booking-grid {
        grid-template-columns: 1fr;
    }

    .top-booking-option,
    .top-booking-option:first-child {
        border-left: 1px solid rgba(255, 255, 255, 0.32);
    }
}

@media (max-width: 700px) {
    .top-container,
    .top-hero-content {
        width: min(100% - 48px, 1200px);
    }

    .top-section {
        padding: 64px 0;
    }

    .top-section-head {
        gap: 24px;
        margin-bottom: 36px;
    }

    .top-section-title {
        font-size: 1.9rem;
    }

    .top-hero {
        min-height: 0;
        display: block;
    }

    .top-hero-image {
        position: relative;
        inset: auto;
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .top-hero-image img {
        object-fit: cover;
        object-position: center;
    }

    .top-hero-image::after {
        display: block;
        top: auto;
        right: 0;
        bottom: -1px;
        left: 0;
        height: 100px;
        background: linear-gradient(180deg, rgba(33, 37, 41, 0) 0%, rgba(33, 37, 41, 0.58) 58%, var(--brand-dark) 100%);
    }

    .top-hero-content {
        width: 100%;
        margin: -1px 0 0;
        padding: 32px 24px 48px;
        background: var(--brand-dark);
    }

    .subspace-top-pattern h1.top-hero-title {
        margin-bottom: 20px;
        font-size: clamp(2rem, 8.5vw, 2.15rem);
        letter-spacing: 0;
        line-height: 1.3;
    }

    .top-hero-title span:nth-child(3) {
        margin-top: 8px;
    }

    .top-hero-lead {
        margin-bottom: 28px;
    }

    .top-hero-actions,
    .top-hero-actions .top-button {
        width: 100%;
    }

    .top-hero-actions {
        align-items: stretch;
    }

    .top-hero-actions .top-inline-link {
        justify-content: center;
    }

    .top-room-grid {
        display: block;
    }

    .top-room-card {
        padding: 20px 0;
        border-top: 1px solid var(--brand-border);
    }

    .top-room-card:last-child {
        border-bottom: 1px solid var(--brand-border);
    }

    .top-room-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }

    .top-room-image {
        aspect-ratio: 4 / 3;
        margin-bottom: 0;
    }

    .top-room-number {
        margin-bottom: 2px;
    }

    .top-room-content h3 {
        margin-bottom: 6px;
        font-size: 1.125rem;
    }

    .top-room-purpose {
        min-height: 0;
        margin-bottom: 8px;
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .top-room-meta {
        padding-top: 8px;
    }

    .top-room-action {
        margin-top: 8px;
    }

    .top-charter-image {
        aspect-ratio: 4 / 3;
    }

    .top-fact-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-block: 1px solid var(--brand-border);
    }

    .top-fact-list li,
    .top-fact-list li:first-child {
        padding: 18px 12px;
        border-top: 0;
        border-right: 0;
        border-bottom: 1px solid var(--brand-border);
        border-left: 0;
    }

    .top-fact-list li:nth-child(odd) {
        border-right: 1px solid var(--brand-border);
    }

    .top-fact-list li:last-child {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 0;
    }

    .top-section-link {
        text-align: left;
    }

    .top-access-copy .top-button {
        width: 100%;
    }

    .top-booking-grid {
        margin-top: 36px;
    }

    .top-booking-option {
        padding: 28px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-button,
    .top-inline-link span,
    .top-room-image img,
    .top-room-action span {
        transition: none;
    }
}
