/* ==========================================================================
   Top page (index.html) — page-specific styles.
   Reuses tokens/utilities from css/style.css: .section, .eyebrow,
   .section-heading, .page-title, .body-text, .btn-primary, .btn-secondary,
   .link-arrow, .card, .rounded-photo, .icon-arrow, .fade-in.
   ========================================================================== */

/* ---------- Hero ----------
   Full-bleed video again, with a dot-pattern texture + a warm color-tint
   overlay (instead of a plain dark scrim or a per-letter shadow/blur) to
   keep light text readable across every frame of the loop. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 600px;
  overflow: hidden;
  padding-block: 64px;
}
@media (min-width: 768px) {
  .hero {
    min-height: 720px;
    padding-block: 96px;
  }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Brighten the footage itself a touch so the whole photo reads as an
     open, sunlit campsite rather than a dim forest — the tint below then
     only needs to darken the left side for text contrast. */
  filter: brightness(1.08) saturate(1.05);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

/* Subtle halftone-style dot texture over the whole frame. */
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1.3px);
  background-size: 7px 7px;
  opacity: 0.3;
  mix-blend-mode: soft-light;
}

/* Warm color filter — darkens only the left side where the copy sits,
   fading out toward the right so the tent/lawn stay bright and natural.
   No flat dark box over the whole frame. */
.hero__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(32, 22, 12, 0.62) 0%, rgba(32, 22, 12, 0.4) 30%, rgba(32, 22, 12, 0.16) 56%, rgba(32, 22, 12, 0.04) 78%, rgba(32, 22, 12, 0) 100%);
  mix-blend-mode: multiply;
}
/* Soften the white-header → photo cut by lifting just the very top edge. */
.hero__tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 16%);
}

.hero__container {
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero__container {
    /* Pull the copy block off dead-center toward ~22% from the left edge. */
    padding-left: clamp(80px, 21vw, 300px);
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 620px;
}
@media (min-width: 768px) {
  .hero__content {
    gap: 26px;
  }
}

.hero__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 380px;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.16px;
  color: #fff;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .hero__eyebrow {
    font-size: 13px;
    letter-spacing: 2.34px;
  }
}

.hero__eyebrow-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
}

.hero__title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.32;
  text-shadow: 0 2px 18px rgba(20, 13, 6, 0.4);
  margin-block: 2px 0;
}
.hero__title-strong {
  font-weight: 800;
}
@media (min-width: 768px) {
  .hero__title {
    font-size: 54px;
    line-height: 1.24;
  }
}

.hero__lead {
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 12px rgba(20, 13, 6, 0.4);
}
@media (min-width: 768px) {
  .hero__lead {
    font-size: 18px;
    line-height: 30px;
    margin-top: 2px;
  }
}

.hero__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
@media (min-width: 768px) {
  .hero__actions {
    justify-content: flex-start;
    margin-top: 16px;
  }
}
.hero__actions .btn-primary,
.hero__actions .btn-secondary {
  border-radius: 8px;
  padding: 13px 28px;
  font-size: 15px;
}
.hero__actions .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}
.hero__actions .btn-secondary:hover {
  background: #fff;
  color: var(--color-text-primary);
  border-color: #fff;
}
@media (min-width: 768px) {
  .hero__actions .btn-primary,
  .hero__actions .btn-secondary {
    padding: 14px 30px;
    font-size: 16px;
  }
}

/* ---------- Scroll indicator ----------
   Simple, standalone: a small arrow over "SCROLL", parked at the
   bottom-left of the hero, independent of the copy/CTA stack above it. */
.hero__scroll {
  display: none;
}
@media (min-width: 768px) {
  .hero__scroll {
    position: absolute;
    left: var(--container-pad);
    bottom: 28px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .hero__scroll-arrow {
    width: 14px;
    height: 7px;
    color: rgba(255, 255, 255, 0.85);
  }
  .hero__scroll-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
  }
}

/* ---------- Intro sections (Concept / Facilities / Reservation) ---------- */
.intro__grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
@media (min-width: 768px) {
  .intro__grid {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
}

.intro__media {
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  /* Stacked mobile layout: heading → photo → description → button. */
  order: 1;
}
@media (min-width: 768px) {
  .intro__media {
    height: 380px;
    flex: 1;
    order: 0;
  }
}

.intro__body {
  /* Mobile: dissolve this wrapper into .intro__grid's own flex layout so
     its children (copy vs. the CTA button) can be reordered independently
     around .intro__media, instead of the whole body moving as one block. */
  display: contents;
  gap: 24px;
}
@media (min-width: 768px) {
  .intro__body {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
  }
}
/* Mobile order across the now-flattened .intro__grid: eyebrow + heading
   (default order 0) → photo (.intro__media, order 1) → body text
   (.intro__grid > .body-text, order 2) → CTA button (order 3). */
.intro__body > .body-text {
  order: 2;
}
@media (min-width: 768px) {
  .intro__body > .body-text {
    order: 0;
  }
}

.intro__link-mobile {
  order: 3;
}
@media (min-width: 768px) {
  .intro__link-mobile {
    order: 0;
  }
}

/* Facilities Intro: two copies of the same photo — one inline in the text
   column (mobile only), one as the full-height side column (desktop only) —
   because the mobile layout nests the image inside the text flow while the
   desktop layout puts it in its own flex column. */
.intro__media--mobile {
  display: block;
  /* .intro__body is flattened (display: contents) on mobile, so this competes
     directly with the other flattened children — same slot as .intro__media
     in the plain intro sections: after the heading, before the body text. */
  order: 1;
}
@media (min-width: 768px) {
  .intro__media--mobile {
    display: none;
  }
}
.intro__media--desktop {
  display: none;
}
@media (min-width: 768px) {
  .intro__media--desktop {
    display: block;
  }
}

.intro__link-desktop {
  display: none;
}
@media (min-width: 768px) {
  .intro__link-desktop {
    display: inline-flex;
  }
}

.intro__link-mobile {
  width: 100%;
  justify-content: center;
}
@media (min-width: 768px) {
  .intro__link-mobile {
    display: none;
  }
}

/* ---------- Access preview ---------- */
.access-preview__heading {
  margin-top: 12px;
}

.access-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .access-grid {
    flex-direction: row;
    gap: 64px;
    height: 488px;
  }
}

.access-map {
  position: relative;
  height: 280px;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 20px;
}
@media (min-width: 768px) {
  .access-map {
    height: 100%;
    flex: 1;
  }
}

.access-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.access-map__badge {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 12px;
  border: 1px solid var(--color-divider);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
  pointer-events: none;
}
@media (min-width: 768px) {
  .access-map__badge {
    left: 50%;
    right: auto;
    bottom: 21px;
    width: 520px;
    transform: translateX(-50%);
    padding: 16px;
  }
}

.access-map__addr {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
}
@media (min-width: 768px) {
  .access-map__addr {
    font-size: 16px;
  }
}

.access-map__addr-en {
  font-size: 11px;
  color: var(--color-text-secondary);
}
@media (min-width: 768px) {
  .access-map__addr-en {
    font-size: 13px;
  }
}

.access-card {
  display: flex;
  width: 100%;
  flex-shrink: 0;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
}
@media (min-width: 768px) {
  .access-card {
    height: 100%;
    flex: 1;
    justify-content: space-between;
    gap: 23px;
    padding: 40px;
  }
}

.access-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .access-list {
    gap: 16px;
  }
}

.access-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.access-item__icon {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--color-surface-accent);
  color: var(--color-text-primary);
}
@media (min-width: 768px) {
  .access-item__icon {
    display: flex;
  }
}
.access-item__icon svg {
  width: 20px;
  height: 20px;
}

.access-item__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.access-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.access-item__line {
  font-size: 12px;
  line-height: 20px;
  color: var(--color-text-secondary);
}
@media (min-width: 768px) {
  .access-item__line {
    font-size: 14px;
    line-height: 24px;
  }
}

/* ---------- Instagram ---------- */
.instagram__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
@media (min-width: 768px) {
  .instagram__inner {
    gap: 36px;
  }
}

.instagram__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
@media (min-width: 768px) {
  .instagram__heading {
    gap: 12px;
  }
}

.instagram-grid {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
@media (min-width: 768px) {
  .instagram-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
  }
}

.instagram-card {
  width: 100%;
  max-width: 300px;
}

.instagram-fallback {
  display: flex;
  aspect-ratio: 1 / 1;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--color-divider);
  background: var(--color-surface-accent);
  color: var(--color-text-secondary);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.instagram-fallback:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.instagram-fallback svg {
  width: 32px;
  height: 32px;
}
.instagram-fallback span {
  font-size: 13px;
  font-weight: 600;
}

/* ---------- GREENTOPIA FOREST promo band ----------
   Full-bleed photo band with a bottom-weighted dark overlay and a centered
   white-text block, matching the gf トップ page's own "camp promo band"
   section (there, it promotes km; here, it promotes gf back). */
.gf-promo {
  position: relative;
  display: flex;
  min-height: 380px;
  width: 100%;
  align-items: center;
  overflow: hidden;
  background: var(--color-accent-dark);
}
@media (min-width: 768px) {
  .gf-promo {
    min-height: 480px;
  }
}
.gf-promo__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.gf-promo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 26, 18, 0.15),
    rgba(30, 26, 18, 0.35) 55%,
    rgba(30, 26, 18, 0.68)
  );
}
/* Fine dot-halftone filter, matching gf's own promo band — softens busy
   photo detail behind the white text without flattening the photo into a
   solid overlay. */
.gf-promo__dots-filter {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.2;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(8, 14, 9, 0.9) 0.5px, transparent 0.9px);
  background-size: 3px 3px;
}
.gf-promo__content {
  position: relative;
  z-index: 10;
  margin-inline: auto;
  display: flex;
  width: 100%;
  max-width: 760px;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px 24px;
  text-align: center;
}
@media (min-width: 768px) {
  .gf-promo__content {
    padding-inline: 80px;
  }
}
.gf-promo__eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
  opacity: 0.85;
}
.gf-promo__heading {
  margin: 0;
  font-family: var(--font-shippori);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}
@media (min-width: 768px) {
  .gf-promo__heading {
    font-size: 34px;
  }
}
.gf-promo__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
}
@media (min-width: 768px) {
  .gf-promo__text {
    font-size: 16px;
  }
}
.gf-promo__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding-inline: 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  background: #fff;
  color: var(--color-primary);
  transition: background-color 0.2s ease;
}
.gf-promo__button:hover {
  background: var(--color-background);
}

/* `background-attachment: fixed` breaks badly on many mobile browsers
   (content/viewport can render at a fraction of its real size). Desktop
   keeps the parallax feel; mobile falls back to a normal scrolling
   background. */
@media (max-width: 767px) {
  /* The label is long enough that its nowrap width (~413px) overflowed a
     375px screen on both sides — let it wrap inside the content column. */
  .gf-promo__button {
    max-width: 100%;
    height: auto;
    min-height: 52px;
    padding: 12px 24px;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
  }
  .gf-promo__bg {
    background-attachment: scroll;
    /* The worker stands at the far left of this landscape photo — a
       centered portrait crop cut them in half. */
    background-position: 12% center;
  }
}
