/* Desktop layout for the Japanese renewal home. */
@media screen and (min-width: 1000px) {
  html { scrollbar-width: auto; }
  html::-webkit-scrollbar { display: revert; }
  @media (forced-colors: none) {
    html::-webkit-scrollbar { width: 14px; }
    html::-webkit-scrollbar-track:vertical { background: #f0f3ef; }
    html::-webkit-scrollbar-thumb:vertical {
      border: 2px solid #f0f3ef;
      border-radius: 8px;
      background: #536e64;
    }
    html::-webkit-scrollbar-thumb:vertical:hover { background: #354e46; }
  }

  .renewal-b #main { padding-top: 0; }
  .renewal-b .hero-stage { height: 100svh; min-height: 640px; max-height: none; }
  .renewal-b .site-header:not(.is-solid) {
    background: transparent; color: #fff; border-bottom-color: transparent;
  }
  .renewal-b .site-header:not(.is-solid)::before {
    display: block; inset: 0 0 -60px;
  }
  .renewal-b .site-header:not(.is-solid) > .logo,
  .renewal-b .site-header:not(.is-solid) .desktop-nav {
    visibility: hidden; pointer-events: none;
  }
  .renewal-b .hero-message { left: 10%; bottom: 92px; gap: 32px; }
  .renewal-b .hero-message h1 { font-size: 46px; line-height: 1.65; letter-spacing: .15em; }
  .renewal-b .hero-subtitle { font-size: 26px; line-height: 1.65; margin-top: 18px; }
  .renewal-b .hero-descriptor { font-size: 22px; line-height: 1.75; letter-spacing: .1em; margin-top: 18px; height: 280px; }
  .renewal-b {
    --home-width: 1200px;
    --home-gutter: max(clamp(40px, 6vw, 84px), calc((100% - var(--home-width)) / 2));
    --home-gap: clamp(28px, 4.5vw, 72px);
    --home-section: clamp(54px, 5vw, 78px);
  }
  .renewal-b #main > .section { max-width: none; padding-inline: var(--home-gutter); }
  #main > .section > .section-intro { max-width: none; margin: 0 0 26px; padding: 0; text-align: left; }
  #main > .section .section-label { margin-bottom: 9px; font-size: .875rem; line-height: 1.5; }
  #main > .section .section-title h2 { font-size: clamp(1.875rem, 2.55vw, 2.55rem); line-height: 1.5; }
  #main > .section :is(.text-link, .button) { min-height: 48px; font-size: 1rem; }
  #main > .section .text-link { padding-block: 8px; gap: 12px; line-height: 1.65; }
  #main > .section .text-link .arrow { width: 36px; height: 36px; }
  #main > .section > .section-links { max-width: 360px; margin: 20px 0 0; }
  .renewal-b #main .entry-pending { opacity: 1; transform: none; transition: none; }

  /* Keep the opening photograph and typography. Tighten the four benefits beneath it. */
  #hero {
    --home-width: 1160px;
    --home-gutter: max(clamp(40px, 5vw, 72px), calc((100% - var(--home-width)) / 2));
  }

  #hero .hero-facts {
    padding: 20px var(--home-gutter) 24px;
  }

  #hero .stay-highlights {
    max-width: var(--home-width);
  }
  #hero .stay-highlights li:is(:nth-child(2), :nth-child(3)) { background: transparent; }

  #hero .stay-highlights .highlight-content {
    padding: 12px 10px;
    line-height: 1.5;
  }

  #hero .stay-highlights .feature-icon {
    margin-bottom: 2px;
  }

  #hero .stay-highlights strong {
    font-size: 1.625rem;
    line-height: 1.4;
  }

  #hero .highlight-note {
    min-height: 0;
    font-size: 1rem;
    line-height: 1.5;
  }

  .renewal-b #main > #features {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 12px var(--home-gap);
    padding: 48px calc(var(--home-gutter) / 2) 36px;
  }
  #features .feature-landscape { display: contents; }
  #features .feature-landscape .section-intro {
    grid-area: 1 / 2;
    align-self: end;
    margin: 0;
    padding: 18px 0 0;
    text-align: left;
  }
  #features > .walking-friends {
    display: block;
    grid-area: 2 / 2;
    width: clamp(102px, 12vw, 180px);
    margin: 0 0 12px;
  }
  #features .section-title h2 {
    writing-mode: horizontal-tb;
    font-size: clamp(2rem, 3.05vw, 3rem);
    line-height: 1.7;
    letter-spacing: .11em;
  }
  #features .section-title .phrase { display: block; }
  #features .features-scene { grid-area: 1 / 1 / 3 / 2; width: 100%; min-height: 0; }
  #features .features-scene img { width: 100%; height: 100%; aspect-ratio: 1.6; object-fit: cover; object-position: center; }
  #features .home-feature-access {
    grid-area: 2 / 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-self: center;
    justify-self: end;
    width: min(54%, 220px);
    margin: 0 0 12px;
  }

  .renewal-b #main > :is(#rooms, #facility, #access) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 24px var(--home-gap);
  }
  #main > :is(#rooms, #facility, #access) > .section-intro { grid-area: 1 / 1; margin: 0; }
  #main > :is(#rooms, #facility, #access) > .section-links {
    grid-area: 1 / 2;
    margin: 0;
    align-self: end;
  }
  .renewal-b #main > #rooms {
    --room-edge: clamp(16px, 2.15vw, 36px);
    grid-template-columns:
      var(--home-gutter)
      [content-start] minmax(0, 1fr)
      [link-start] auto
      [content-end] var(--home-gutter);
    gap: 0;
    padding: 30px 0 var(--home-section);
  }
  #main > #rooms > .section-intro { grid-area: 1 / content-start / 2 / link-start; margin-inline-end: var(--home-gap); }
  #main > #rooms > .section-links { grid-area: 1 / link-start / 2 / content-end; }
  #rooms .section-label { justify-content: flex-start; }
  #rooms > .room-gallery { grid-column: 1 / -1; margin: 24px var(--room-edge) 0; }
  #rooms > .room-commitments { grid-column: content-start / content-end; }
  #facility > .tenant-gallery, #access > :is(.kyoto-overview, .journey-explorer) { grid-column: 1 / -1; }
  #rooms .room-comfort { display: none; }
  #rooms .room-commitments { max-width: none; margin: 48px 0 0; padding: 0; }
  .home-room-promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .home-room-promises > article { padding: 30px; border: 0; background: #f6f3ef; }
  #rooms .room-connectivity {
    display: block;
    margin: 16px 0 0;
    padding: 30px;
  }
  #rooms .commitment-heading { display: flex; align-items: center; margin-bottom: 5px; }
  #rooms .commitment-heading > svg { flex: 0 0 28px; margin: 0; }
  #rooms .commitment-heading h3 { font-size: 1.25rem; }
  #rooms .home-room-promises .phrase { display: inline-block; }
  #rooms .room-connectivity .phrase { display: inline; }

  /* Keep the original links available with scripts off. */
  #main > :is(#rooms, #facility) > .room-gallery { padding: 0; }
  #main :is(#room-track, #tenant-track) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.3vw, 22px);
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  #main :is(#room-track, #tenant-track) > [aria-hidden="true"],
  #main > #rooms > .room-gallery > :is(.room-photo-controls, .gallery-count) { display: none; }
  #main > :is(#rooms, #facility) > .room-gallery .room-card img:not(.tenant-logo) { min-height: 0; aspect-ratio: 3 / 2; }
  #rooms .room-card-link { display: flex; flex-direction: column; align-items: stretch; height: 100%; }
  #rooms .room-copy { display: flex; flex: 1; flex-direction: column; padding: 18px 8px 0; }
  #rooms .room-card-top { margin-bottom: 5px; }
  #rooms .room-copy h3 { margin-bottom: 8px; font-size: clamp(1.25rem, 1.85vw, 1.7rem); line-height: 1.5; letter-spacing: .04em; }
  #rooms .room-title .room-name, #rooms .room-description-line { white-space: normal; }
  #rooms .home-room-detail { display: flex; margin-top: auto; padding-block: 8px; }
  #rooms .room-description { margin-bottom: 14px; }
  #rooms .room-card-link:hover .home-room-detail .arrow { background: var(--ink); color: #fff; }

  #main > #spa {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px var(--home-gap);
    padding-block: var(--home-section);
    background: var(--tone-blue);
  }
  #main > #spa > .section-intro { grid-area: 1 / 1; align-self: end; margin: 0; }
  #main > #spa > .section-links { grid-area: 1 / 2; align-self: end; margin: 0; }
  #spa .spa-list {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 3.5vw, 54px);
    max-width: none;
    padding: 0;
  }
  #spa .spa-list > article {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: "main ." "main copy" "main detail" "main .";
    gap: 10px clamp(26px, 4.3vw, 66px);
    align-items: start;
  }
  #spa .spa-list > article:nth-child(2) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    grid-template-areas: ". main" "copy main" "detail main" ". main";
    width: 100%;
  }
  #spa .spa-visual { display: contents; }
  #spa .spa-list .spa-main { grid-area: main; width: 100%; align-self: center; margin: 0; }
  #spa .spa-list .spa-detail { grid-area: detail; width: min(92%, 340px); margin: 0; }
  #spa .spa-list > article:nth-child(2) .spa-detail { width: 100%; }
  #spa .spa-list > article:nth-child(2) .spa-copy { padding: 0; }
  #spa .spa-visual img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
  #spa .spa-list .spa-copy { grid-area: copy; margin: 0; padding: 0; }
  #spa .area-badge { margin: 0; color: #536b5e; font-size: 1rem; line-height: 1.5; }
  #spa .spa-copy h3 { margin: 0; font-size: clamp(1.5rem, 2.15vw, 2rem); line-height: 1.5; }

  #main > #breakfast {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 21px var(--home-gap);
    padding-block: var(--home-section);
  }
  #main > #breakfast > .section-intro { grid-area: 1 / 1; align-self: end; margin: 0; }
  #breakfast .breakfast-details { grid-area: 1 / 2; align-self: end; margin: 0; padding: 0; max-width: none; }
  #breakfast .breakfast-details > .section-links { margin: 0; }
  #main > :is(#breakfast, #facility, #access) .section-title h2 > .phrase { display: block; }
  #breakfast .breakfast-gallery {
    grid-column: 1 / -1;
    grid-template-columns: repeat(20, minmax(0, 1fr));
    grid-template-rows: repeat(12, minmax(0, 1fr));
    aspect-ratio: 2.04;
    gap: 0;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  #breakfast .breakfast-gallery > figure { width: 100%; margin: 0; }
  #breakfast .breakfast-gallery > figure:first-child { grid-area: 1 / 1 / 13 / 15; }
  #breakfast .breakfast-gallery > figure:nth-child(2) { grid-area: 1 / 16 / 7 / 21; }
  #breakfast .breakfast-gallery > figure:last-child {
    grid-area: 6 / 14 / 13 / 21;
    align-self: end;
    z-index: 1;
    outline: 5px solid var(--paper);
  }
  #breakfast .breakfast-gallery > figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }

  #main > #facility { padding-block: 60px var(--home-section); }
  #facility.is-fade-ready > .tenant-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }
  #facility.is-fade-ready .home-tenant-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    grid-area: 1 / 1;
  }
  .home-tenant-choices > button {
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid #a3b0a7;
    background: #fff;
    color: #263b33;
    font: 1rem/1.4 var(--sans);
  }
  .home-tenant-choices > button:hover { background: #edf1ed; }
  .home-tenant-choices > [aria-pressed="true"] { border-color: #3c594e; background: #3c594e; color: #fff; }
  #facility > .tenant-gallery > :is(.room-photo-controls, .gallery-count) { display: none; }
  #facility.is-fade-ready .tenant-gallery > .room-photo-controls {
    display: flex;
    position: static;
    grid-area: 1 / 2;
    gap: 48px;
    width: auto;
    min-height: 0;
    padding: 0;
    aspect-ratio: auto;
  }
  #facility.is-fade-ready .tenant-gallery > .gallery-count {
    display: flex;
    position: static;
    grid-area: 1 / 2;
    justify-self: center;
    gap: 5px;
  }
  #facility .gallery-count-current { font-size: 1.25rem; }
  #facility .room-photo-controls button::before { content: none; }
  #facility .room-photo-controls button:hover { background: #edf1ed; }
  #facility .room-photo-controls button::after {
    width: 8px;
    height: 8px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    background: none;
    mask: none;
    transform: rotate(45deg);
  }
  #facility .room-photo-controls .room-prev::after { transform: rotate(-135deg); }
  #facility.is-fade-ready #tenant-track { display: block; position: relative; grid-area: 2 / 1 / 3 / -1; }
  #facility .tenant-card > .room-card-link { display: block; height: auto; }
  #facility.is-fade-ready .tenant-card > .room-card-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.67fr);
    align-items: center;
    gap: var(--home-gap);
  }
  #facility.is-fade-ready .room-card-link > .photos { grid-area: 1 / 2; }
  #facility.is-fade-ready .room-card-link > .room-copy { grid-area: 1 / 1; padding: 0; }
  #facility.is-fade-ready .tenant-card img:not(.tenant-logo) { aspect-ratio: 1.65; }
  #facility .tenant-card.is-departing { position: absolute; inset: 0; pointer-events: none; }
  #facility .tenant-card.is-departing .room-copy { visibility: hidden; }
  #facility .tenant-card.is-incoming .photos { z-index: 1; }
  #facility .tenant-card .tenant-brand-heading {
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    padding: 0;
    margin-bottom: 12px;
    background: transparent;
  }
  #facility .tenant-card .tenant-brand-inline { gap: 12px; }
  #facility .tenant-card .tenant-name {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: clamp(1.375rem, 2vw, 1.875rem);
    line-height: 1.5;
  }
  #facility .tenant-card .tenant-brand-inline .tenant-name { margin: 0; }
  #facility .tenant-card .tenant-logo { max-height: 54px; }
  #facility .home-tenant-detail { display: flex; margin-top: 12px; }
  #facility .room-card-link:hover .home-tenant-detail .arrow { background: var(--ink); color: #fff; }

  .home-photo-window {
    display: block;
    position: relative;
    height: 500px;
    scroll-margin-top: var(--header);
    overflow: hidden;
    background: #415d50;
  }
  .home-photo-window > span {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center 58%;
    transition: opacity .8s ease;
  }
  .home-photo-window > span:first-child { background-image: url("/assets/v2/c/assets/kyoto-river.webp"); }
  .home-photo-window > .is-visible { opacity: 1; }

  #main > #access { padding-block: var(--home-section); }
  #access .kyoto-overview { max-width: none; margin: 0; padding: 30px 80px; }
  #access .kyoto-timeline { height: 142px; max-width: none; margin: 0; }
  #access .journey-explorer { --journey-panel-color: #eef1eb; max-width: none; margin: 0; padding: 0; }
  #access .journey-tabs {
    display: flex;
    gap: 0;
    width: min(100%, 600px);
    max-width: none;
    margin: 0 auto;
    border: 0;
  }
  #access .journey-tab {
    flex: 1;
    min-height: 80px;
    padding: 10px 16px;
    border: 0;
    box-shadow: inset 0 -1px #aab8ae;
    font-size: 1rem;
    white-space: nowrap;
  }
  #access .journey-tab:hover { background: #f4f6f2; }
  #access .journey-tab[aria-selected="true"] { box-shadow: inset 0 2px #3c594e; background: var(--journey-panel-color); }
  #access .journey-panel {
    grid-template-columns: minmax(0, 2.45fr) minmax(0, 1fr);
    gap: clamp(18px, 3.2vw, 44px);
    padding: clamp(22px, 2.5vw, 36px);
    background: var(--journey-panel-color);
  }
  #access .journey-visual figure { grid-area: 1 / 1; }
  #access .journey-visual img { width: 100%; aspect-ratio: 1.8; }
  #access .journey-visual figcaption { margin: 6px 0 0; font-size: .875rem; }
  #access .journey-visual h3 { font-size: clamp(1.375rem, 2.15vw, 1.875rem); line-height: 1.65; }
  #access .journey-visual .phrase { display: block; }

  #access #journey-business { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  #access #journey-business .journey-business-visual {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    padding: 0;
  }
  #access #journey-business .journey-business-visual img {
    width: min(100%, 184px);
    margin: 0 auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
  #main #access #journey-business figcaption {
    margin: 0;
    color: var(--ink);
    font: 600 clamp(1.625rem, 2.5vw, 2.125rem)/1.6 var(--serif);
    text-align: center;
  }
  #access #journey-business h3 { margin: 0; text-align: left; }

  #main > #faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
    grid-template-rows: auto 1fr;
    gap: 20px var(--home-gap);
    padding-block: clamp(48px, 4.3vw, 64px);
    background: var(--tone-blue);
  }

  #main > #faq > .section-intro {
    grid-area: 1 / 1;
    margin: 0;
    padding-top: 8px;
  }

  #main > #faq > .section-links {
    grid-area: 2 / 1;
    align-self: start;
    margin: 0;
  }

  #faq .questions {
    grid-area: 1 / 2 / 3 / 3;
  }

  #faq .questions > details:first-child {
    border-top: 0;
  }

  #faq .questions > details:last-child {
    border-bottom: 1px solid var(--line);
  }

  #faq .questions summary {
    min-height: 56px;
    padding: 14px 0;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.65;
  }

  #faq .questions :is(details > p, .accordion-body > p) {
    max-width: 44em;
    font-size: 1rem;
    line-height: 1.85;
  }

  #main > #news {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px var(--home-gap);
    padding-block: clamp(48px, 4.3vw, 64px) var(--home-section);
    background: #fff;
  }

  #main > #news > .section-intro { grid-area: 1 / 1; margin: 0; }
  #main > #news > .section-links {
    grid-area: 1 / 2;
    align-self: end;
    margin: 0;
  }
  #news .news-list { grid-column: 1 / -1; }
  #news .news-list > li:last-child { border-bottom: 1px solid var(--line); }

  #news .news-list a {
    grid-template-columns: 8em minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 60px;
    padding: 14px 0;
    font-size: 1rem;
    line-height: 1.65;
  }

  #news .news-list time {
    font-size: .875rem;
  }

  #news .news-copy {
    text-wrap: pretty;
  }

  @media (max-width: 1280px) {
    .home-photo-window > span:first-child { background-image: url("/assets/v2/c/assets/kyoto-river-1280.webp"); }
  }
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .home-photo-window > span { background-attachment: fixed; }
  }
  @media (prefers-reduced-motion: reduce) {
    .home-photo-window > span { transition: none; }
  }

  #main > #reservation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    gap: 20px var(--home-gap);
    align-items: center;
    padding-block: 48px 56px;
    background: #f4f6f2;
  }

  #main > #reservation > .section-intro {
    grid-area: 1 / 1;
    margin: 0;
  }

  #main > #reservation > .section-links {
    grid-column: 2;
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    gap: 16px;
  }

  #reservation .section-links .button {
    min-height: 74px;
    padding: 12px 18px;
  }

  #reservation .phone-call-label {
    font-size: 1rem;
  }
}
@media screen and (min-width: 1000px) and (max-width: 1199px) {
  .renewal-b .hero-message { left: 4%; }
}
