:root {
  --color-bg: #FBFAF8;
  --color-surface: #FFFFFF;
  --color-text: #2C2C2C;
  --color-muted: #6E6E6E;
  --color-accent: #6B8E7A;
  --color-accent-dark: #557A63;
  --color-lead: #2E5077;
  --color-border: #E8E6E1;
  --color-shadow: rgba(0, 0, 0, 0.04);

  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Yu Gothic", "游ゴシック", sans-serif;
  --max-width: 680px;
  --radius: 14px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

a:hover,
a:focus {
  border-bottom-color: var(--color-accent-dark);
}

/* Banner */
.banner {
  position: relative;
  width: 100%;
  margin: 0;
}

.banner img {
  width: 100%;
  height: 70vh;
  min-height: 120px;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 45%, rgba(0, 0, 0, 0.05) 100%); */
  padding: var(--spacing-md);
}

.banner-title {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  color: #FFFFFF;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.45;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.95);
}

.banner-title:empty::before {
  content: "Loading…";
  color: rgba(255, 255, 255, 0.85);
}

/* Lead */
.site-lead {
  margin: 0;
  padding: var(--spacing-md) var(--spacing-sm);
  text-align: center;
  color: var(--color-lead);
  background-color: var(--color-bg);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* Main */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm) var(--spacing-xl);
}

/* Hero */
.hero-body {
  text-align: center;
}

.hero-body p {
  margin: 0 0 var(--spacing-sm);
  font-size: 1rem;
  line-height: 1.9;
}

.hero-body p:last-child {
  margin-bottom: 0;
}

/* Content sections */
.content-section,
.guide-body {
  background-color: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--spacing-lg) var(--spacing-md);
  box-shadow: 0 2px 16px var(--color-shadow);
  margin-bottom: var(--spacing-md);
}

.content-section p,
.guide-body p {
  margin: 0 0 var(--spacing-sm);
  font-size: 1.0rem;
}

.content-section p:last-child,
.guide-body p:last-child {
  margin-bottom: 0;
}

.section-label {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 var(--spacing-md);
  color: var(--color-text);
}

/* Guide section */
.guide {
  display: flex;
  flex-direction: column;
  /* gap: var(--spacing-md); */
}

.guide-label {
  margin-bottom: 0;
  /* line-height: 1.2; */
}

.guide-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px var(--color-shadow);
  flex-shrink: 0;
}

.guide-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.guide-body {
  flex: 1;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-sm);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.8125rem;
}

.site-footer p {
  margin: 0 0 var(--spacing-xs);
}

.site-footer p:last-child {
  margin-bottom: 0;
}

/* Loading placeholder for JS-free fallback */
#title:empty::before,
#lead:empty::before,
#hero:empty::before,
#welcome:empty::before,
#guide:empty::before,
#guide-content:empty::before {
  content: attr(id);
  color: var(--color-muted);
  text-transform: capitalize;
}

/* Floating Reserve Now button */
.reserve-fab {
  position: fixed;
  right: var(--spacing-sm);
  bottom: var(--spacing-sm);
  z-index: 1000;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.23);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.reserve-fab.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reserve-fab:hover,
.reserve-fab:focus {
  filter: brightness(0.92);
  outline: none;
}

/* Responsive: tablets and up */
@media (min-width: 640px) {
  .banner-title {
    font-size: 2.25rem;
  }

  .site-lead {
    font-size: 1.125rem;
  }

  .section-label {
    font-size: 1.25rem;
  }
}

/* Carousel styling */
.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    gap: 16px;

    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE */
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel img {
    flex: 0 0 100%;

    width: 100%;
    /* max-height: 500px; */
    height: auto;
    object-fit: cover;
    scroll-snap-align: center;
    border-radius: 8px;
}

