/*
 * Shared refinements for Breathe Hakone.
 * This file intentionally loads after the page-level styles so the whole
 * multilingual site shares the same readable type and responsive navigation.
 */

body {
  font-weight: 400 !important;
  line-height: 1.78;
}

nav.nav-desktop,
.mobile-nav,
.nav-book,
.btn,
.tour-link {
  font-weight: 500;
}

header .logo {
  flex: 0 0 auto;
}

.hero p,
.pagehero .sub,
.cta p,
.trust,
footer {
  font-weight: 400 !important;
}

.hero p,
.pagehero .sub {
  opacity: 1 !important;
  color: #f3f5ef;
  text-shadow: 0 1px 18px rgba(12, 34, 27, 0.34);
}

header,
.mobile-nav,
.cta,
footer {
  color: #f3f5ef;
}

.trust,
footer p,
footer a,
.cta p,
.cta small {
  color: #e2ebdc;
}

.hero .eyebrow,
.pagehero .eyebrow {
  color: #e2ebdc !important;
}

.journey .time,
.pagehero .stars,
.card.feature .qstars,
.trust .gold {
  color: #70cbff !important;
}

:focus-visible {
  outline: 3px solid #70cbff !important;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.25rem;
  background: #f3f5ef;
  color: #17322a;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.factbar-cta {
  align-self: center;
  margin-left: auto;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(243, 245, 239, 0.75);
  border-radius: 2rem;
  color: #f3f5ef;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.factbar-cta:hover {
  background: #f3f5ef;
  color: #1f3d33;
}

.review-summary-link {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(243, 245, 239, 0.7);
  border-radius: 2rem;
  color: #f3f5ef;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.review-summary-link:hover {
  background: #f3f5ef;
  color: #1f3d33;
}

.page-intro {
  max-width: 44rem;
  margin: 0 0 clamp(3rem, 7vw, 5rem);
}

.page-intro h1,
.fig-head h1 {
  margin: 0.65rem 0 1.1rem;
  color: #17322a;
  font-family: var(--display);
  font-size: clamp(2.25rem, 1.35rem + 3vw, 4rem);
  font-weight: 500;
  line-height: 1.18;
  text-wrap: balance;
}

.page-intro p:last-child {
  max-width: 38rem;
  color: #4a6157;
}

.direct-price {
  margin-top: 0.8rem;
  color: #4a6157;
  font-size: 0.88rem;
}

.direct-price strong {
  color: #17322a;
}

.journal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.mobile-nav .langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
}

.mobile-nav .langs a {
  min-width: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(243, 245, 239, 0.45);
  border-radius: 2rem;
  text-align: center;
}

.mobile-nav .langs a[aria-current="true"] {
  background: #f3f5ef;
  color: #1f3d33;
}

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

  .nav-toggle {
    display: flex !important;
  }

  .mobile-nav {
    display: flex !important;
  }
}

@media (min-width: 1181px) {
  nav.nav-desktop {
    display: flex !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .journal-grid {
    grid-template-columns: 1fr !important;
  }

  .mobile-nav a {
    padding: 0.78rem 0;
  }

  .factbar-cta {
    width: 100%;
    margin: 0.25rem 0 0;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

/*
 * Launch accessibility and performance pass — 1 August 2026.
 * The page-level styles are retained for layout, while this final layer owns
 * the readable type scale, tap targets, colour contrast and responsive media.
 */
:root {
  --accent: #004aad;
  --accent-on-dark: #70cbff;
  --moss: #46654f;
  --fs-micro: 0.875rem;
  --fs-meta: 1rem;
  --fs-cta: 1.0625rem;
  --display: "Iowan Old Style", "Palatino Linotype", "Hiragino Mincho ProN",
    "Yu Mincho", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Noto Sans CJK SC", "Noto Sans CJK TC", sans-serif;
}

html {
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

/* 14px is the absolute floor: kickers, badges and legal notes only. */
.eyebrow,
.certified,
footer h4,
.foot-note,
.fact-label,
.factbar dt,
.factbar strong,
.route-tag,
.badge,
.wave-sub,
.season .best,
.q .qt {
  font-size: var(--fs-micro) !important;
  line-height: 1.45;
  letter-spacing: 0.08em !important;
}

/* Decision-making copy must remain comfortably readable. */
.trust,
.tour-meta,
.tour-descriptor,
.post p,
.cta small,
.science-quote cite,
.direct-price,
.factbar-inner,
.factbar-inner > span,
.response-note,
.price-note,
.source-note,
.note,
.tmeta,
.meetcard .walks-served,
.fact span,
.leg p,
.total,
.season p,
.opt,
.quick a,
.ws-card p,
.sense p,
.sense .jp,
figcaption,
footer,
footer a,
.langs a {
  font-size: var(--fs-meta) !important;
  line-height: 1.55;
}

/* Booking and onward-action controls share one clear conversion scale. */
.btn,
.tour-link,
.nav-book,
.factbar-cta,
.review-summary-link,
.text-link,
.maction {
  font-size: var(--fs-cta) !important;
  letter-spacing: 0.04em !important;
}

nav.nav-desktop a {
  font-size: 1rem !important;
}

.tour-link {
  font-weight: 700;
}

/* The brand blue is accessible on light panels; pale blue is used on cedar. */
.science .eyebrow,
.science .text-link,
.cta .text-link {
  color: var(--accent-on-dark) !important;
}

.science-quote {
  border-left-color: var(--accent-on-dark) !important;
}

.science .text-link {
  border-bottom-color: rgba(112, 203, 255, 0.62) !important;
}

/* Dark caution panels use light text, never the dark brand blue. */
.caution .eyebrow {
  color: #c9e6dc !important;
  font-weight: 700 !important;
}

.caution h2 {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Responsive images replace eager full-size card backgrounds. */
picture.tour-photo,
picture.post-img,
picture.guide-photo {
  display: block;
  overflow: hidden;
}

.tour-photo img,
.post-img img,
.guide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img {
  background-image: image-set(
    url("../images/responsive/hero-ground-rest-1600.webp?v=20260803d") type("image/webp"),
    url("../images/responsive/hero-ground-rest-1600.jpg?v=20260803d") type("image/jpeg")
  ) !important;
}

.cta {
  background-image: linear-gradient(rgba(31, 61, 51, 0.78), rgba(31, 61, 51, 0.82)),
    image-set(
      url("../images/responsive/cta-forest-1200.webp?v=20260803d") type("image/webp"),
      url("../images/responsive/cta-forest-1200.jpg?v=20260803d") type("image/jpeg")
    ) !important;
}

/* Shared 48px minimum hit area for the 50+ guest audience. */
.nav-toggle {
  width: 3rem !important;
  height: 3rem !important;
}

header .logo {
  min-height: 3rem;
}

.langs a,
.factbar-cta,
.review-summary-link,
button,
summary {
  min-width: 3rem;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
}

.factbar-cta,
.review-summary-link {
  justify-content: center;
}

footer a {
  display: flex !important;
  align-items: center;
  min-height: 3rem;
  margin-bottom: 0 !important;
  padding: 0.65rem 0;
}

.mobile-booking-bar {
  position: fixed;
  z-index: 80;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  min-height: 4.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem max(1rem, env(safe-area-inset-right))
    calc(0.55rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: #17322a;
  color: #f3f5ef;
  box-shadow: 0 -5px 24px rgba(12, 34, 27, 0.24);
  transition: transform 0.2s ease, visibility 0.2s ease;
}

.mobile-booking-bar.is-hidden {
  visibility: hidden;
  transform: translateY(110%);
}

.mobile-booking-summary {
  flex: 1 1 auto;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
}

.mobile-booking-action {
  min-height: 3rem;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #f3f5ef;
  color: #17322a;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .hero-img {
    background-image: image-set(
      url("../images/responsive/hero-ground-rest-800.webp?v=20260803d") type("image/webp"),
      url("../images/responsive/hero-ground-rest-800.jpg?v=20260803d") type("image/jpeg")
    ) !important;
  }

  body.has-mobile-booking-bar {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }

  .mobile-booking-bar {
    display: flex;
  }

  .tour + .tour {
    border-top: 2px solid rgba(31, 61, 51, 0.28) !important;
  }

  .mobile-nav > a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.7rem 0 !important;
  }
}

/* Phone-width overflow protection for long contact actions and travel routes. */
.method {
  min-width: 0;
}

.method .maction {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .access table,
  .access tbody,
  .access tr,
  .access td {
    display: block;
    width: 100%;
  }

  .access table {
    border: 0;
  }

  .access tr:first-child {
    display: none;
  }

  .access tr {
    margin: 0 0 1rem;
    border: 1px solid rgba(31, 61, 51, .16);
    background: var(--washi);
  }

  .access td {
    padding: .75rem 1rem;
    border: 0;
    border-top: 1px solid rgba(31, 61, 51, .12);
    overflow-wrap: anywhere;
  }

  .access td:first-child {
    border-top: 0;
    padding-top: 1rem;
  }

  .access td:nth-child(2)::before,
  .access td:nth-child(3)::before,
  .access td:nth-child(4)::before {
    display: block;
    margin-bottom: .2rem;
    color: var(--moss);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .access td:nth-child(2)::before { content: "From"; }
  .access td:nth-child(3)::before { content: "Time"; }
  .access td:nth-child(4)::before { content: "Good to know"; }
}

@media (max-width: 700px) {
  .journal-grid {
    grid-template-columns: 1fr !important;
  }

  .tour-link {
    width: 100%;
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.2rem;
    padding: 0.75rem 1rem;
    border: 0 !important;
    border-radius: 0.35rem;
    background: var(--cedar);
    color: var(--washi) !important;
    text-align: center;
    text-decoration: none;
  }

  .tour--3 .tour-link,
  .tour--4 .tour-link {
    background: var(--washi);
    color: var(--cedar) !important;
  }

  .text-link,
  .guide a:not(.signature),
  main p > a,
  section p > a,
  section li > a,
  .quick a {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    padding-block: 0.55rem;
  }
}

@media (min-width: 1600px) {
  .wrap {
    max-width: 84rem;
  }

  body {
    font-size: 1.25rem;
  }

  .measure {
    max-width: 44rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-booking-bar {
    transition: none;
  }
}

/*
 * Desktop and laptop composition pass — 1 August 2026.
 * The original pages were composed around a narrow reading measure and their
 * mobile spacing was carrying too far into laptop layouts. These rules keep
 * the comfortable phone treatment while giving larger screens their own
 * navigation, image crops, margins and editorial rhythm.
 */
header {
  padding-inline: clamp(1.5rem, 3vw, 3.5rem) !important;
  gap: 1.25rem;
}

nav.nav-desktop {
  gap: clamp(0.55rem, 0.8vw, 0.9rem) !important;
  letter-spacing: 0.025em !important;
}

nav.nav-desktop a {
  font-size: 0.8rem !important;
  font-weight: 550;
}

nav.nav-desktop .nav-book {
  padding-inline: 0.9rem;
}

nav.nav-desktop .langs {
  gap: 0.05rem;
  margin-left: 0.35rem;
}

nav.nav-desktop .langs a {
  min-width: 2.15rem;
  min-height: 2.5rem;
  justify-content: center;
  padding-inline: 0.35rem;
}

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

  .nav-toggle {
    display: flex !important;
  }

  .mobile-nav {
    display: flex !important;
  }
}

@media (min-width: 1321px) {
  nav.nav-desktop {
    display: flex !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .mobile-nav {
    display: none !important;
  }
}

.hero-img {
  background-image:
    linear-gradient(180deg, rgba(31, 61, 51, 0.5) 0%, rgba(31, 61, 51, 0.12) 36%, rgba(31, 61, 51, 0.86) 100%),
    image-set(
      url("../images/responsive/hero-ground-rest-1600.webp?v=20260803d") type("image/webp"),
      url("../images/responsive/hero-ground-rest-1600.jpg?v=20260803d") type("image/jpeg")
    ) !important;
  background-position: center, center 76% !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat !important;
}

.hero-inner {
  padding-inline: clamp(2rem, 8vw, 9rem) !important;
}

.hero-inner > * {
  max-width: 38rem;
}

.trust {
  column-gap: clamp(1.25rem, 2.6vw, 2.75rem) !important;
  row-gap: 0.65rem;
}

.thesis {
  padding-block: clamp(3.5rem, 7vh, 5.5rem) !important;
}

.thesis .measure {
  max-width: 64rem;
}

.thesis .lead {
  max-width: 47rem;
}

.thesis .measure > p:not(.eyebrow):not(.lead) {
  max-width: 52rem;
}

/* Text articles gain a wider canvas, with readable line lengths inside it. */
body > article > .wrap {
  max-width: 70rem !important;
}

body > article > .wrap > p:not(.pull):not(.note),
body > article > .wrap > h2,
body > article > .wrap > h3,
body > article > .wrap > ul,
body > article > .wrap > ol,
body > article > .wrap > .byline {
  max-width: 52rem;
}

body > article > .wrap > .lede {
  max-width: 56rem;
}

.editorial-photo,
.editorial-gallery {
  margin: clamp(2rem, 5vw, 4rem) 0;
}

.editorial-photo picture,
.editorial-photo img,
.editorial-gallery picture,
.editorial-gallery img {
  display: block;
  width: 100%;
}

.editorial-photo img,
.editorial-gallery img {
  height: 100%;
  object-fit: cover;
}

.editorial-photo--wide picture {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.editorial-photo--portrait picture {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.editorial-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.5rem);
}

.editorial-gallery figure {
  min-width: 0;
}

.editorial-gallery picture {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.editorial-gallery .portrait picture {
  aspect-ratio: 4 / 5;
}

.editorial-photo figcaption,
.editorial-gallery figcaption {
  max-width: 42rem;
  margin-top: 0.75rem;
}

.profile-photo {
  display: block;
  overflow: hidden;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reasons .reason {
  max-width: 68rem !important;
}

.reasons .reason .rbody {
  max-width: 52rem !important;
}

.reasons .quietbox {
  max-width: 56rem;
}

@media (min-width: 821px) and (max-width: 1500px) {
  .wrap,
  .pagehero .inner {
    padding-inline: clamp(2.5rem, 4vw, 4rem) !important;
  }

  .thesis {
    padding-block: 4rem !important;
  }

  .pagehero .inner {
    padding-bottom: clamp(2.75rem, 5vh, 4rem) !important;
  }
}

@media (max-width: 820px) {
  .hero-img {
    background-image:
      linear-gradient(180deg, rgba(31, 61, 51, 0.5) 0%, rgba(31, 61, 51, 0.12) 36%, rgba(31, 61, 51, 0.86) 100%),
      image-set(
        url("../images/responsive/hero-ground-rest-800.webp?v=20260803d") type("image/webp"),
        url("../images/responsive/hero-ground-rest-800.jpg?v=20260803d") type("image/jpeg")
      ) !important;
    background-position: center, 55% 76% !important;
  }

  .hero-inner {
    padding-inline: var(--pad) !important;
  }

  .editorial-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .thesis {
    padding-block: 3.5rem !important;
  }

  .editorial-photo--wide picture,
  .editorial-gallery picture,
  .editorial-gallery .portrait picture {
    aspect-ratio: 4 / 3;
  }
}

/* Keep interior-page hero labels comfortably below the fixed brand bar. */
@media (min-width: 821px) {
  .pagehero {
    min-height: calc(52svh - var(--header-h)) !important;
  }

  .pagehero .inner {
    padding-top: clamp(2.25rem, 4vw, 3.75rem) !important;
  }
}

@media (max-width: 820px) {
  .pagehero .inner {
    padding-top: 1.75rem !important;
  }
}

/* Crawlable, visible orientation for deeper tour and journal pages. */
.site-breadcrumbs {
  background: #edf1e9;
  border-bottom: 1px solid rgba(31, 61, 51, 0.12);
  color: #405a50;
  font-size: 0.875rem;
  line-height: 1.45;
}

.site-breadcrumbs .wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  overflow: hidden;
  white-space: nowrap;
}

.site-breadcrumbs a {
  color: #28493e;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-breadcrumbs span[aria-current="page"] {
  overflow: hidden;
  text-overflow: ellipsis;
}

.privacy-consent {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 58rem;
  margin-inline: auto;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(226, 235, 220, 0.35);
  border-radius: 0.85rem;
  background: #1f3d33;
  box-shadow: 0 0.75rem 2.5rem rgba(16, 36, 29, 0.25);
  color: #f3f5ef;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.privacy-consent strong { display: block; margin-bottom: 0.2rem; }
.privacy-consent p { margin: 0; color: #e2ebdc; }
.privacy-consent a { text-decoration: underline; text-underline-offset: 0.18em; }
.privacy-consent__actions { display: flex; gap: 0.55rem; flex: none; }
.privacy-consent button {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #a8c4ae;
  border-radius: 999px;
  background: transparent;
  color: #f3f5ef;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.privacy-consent button[data-consent="accept"] { background: #f3f5ef; color: #1f3d33; }
.privacy-consent button:focus-visible { outline: 3px solid #7fc8ff; outline-offset: 2px; }

@media (max-width: 680px) {
  .privacy-consent { align-items: stretch; flex-direction: column; gap: 0.85rem; }
  .privacy-consent__actions { flex-wrap: wrap; }
  .privacy-consent button { flex: 1 1 9rem; }
}
