/* Custom CSS to add the original aesthetic back */
:root {
  --bg-main: #faf7f2;
  --bg-section: #fdf0e2;
  --text-brand: #a57b27;
  --text-on-brand: #ffffff;
}

body {
  background-color: var(--bg-main);
  color: var(--text-brand); /* Set default text color to the brand color */
  font-family: 'Inter', 'Noto Serif JP', sans-serif;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Set headings and other brand elements to the brand color */
h1, h2, h3, h4, h5, h6, .eyebrow {
  font-family: 'Playfair Display', 'Noto Serif JP', serif;
  color: var(--text-brand);
}

.jp-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
}

.jp-body {
   font-family: 'Noto Serif JP', serif;
}

/* --- Hero Section --- */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-on-brand); /* Text on video is white */
  padding: 1rem;
}

.hero-section h1 {
   color: var(--text-on-brand); /* Explicitly set hero h1 to white */
   font-size: 2.25rem;
   line-height: 1.25;
   margin-bottom: 2rem;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  animation: fadeIn 2s ease-in-out;
}

.hero-logo {
  max-width: 250px;
}

.hero-button {
  background-color: transparent;
  color: #ffffff !important; /* Forcibly sets the text color to white */
  text-decoration: none !important; /* Forcibly removes the underline */
  border: 2px solid var(--text-on-brand);
  transition: background-color 0.3s, color 0.3s;
  display: inline-block;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
}

.hero-button:hover {
  background-color: var(--text-on-brand);
  color: var(--text-brand) !important; /* Add !important here */
}

/* --- Intro Section --- */
.intro-section {
  text-align: center;
  padding: 5rem 1rem;
}
.intro-content {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}
.intro-content h2 {
  font-size: 2.25rem;
  line-height: 1.5; /* Adjusted line-height for better readability */
  margin-bottom: 2rem;
}
.intro-content .jp-body {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.intro-content .jp-body p:not(:last-child) {
  margin-bottom: 1.5rem;
}

/* --- Content Sections --- */
.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "text image"; /* Explicitly define the grid areas */
  align-items: center;
  gap: 2rem;
  min-height: 80vh;
  padding: 6rem 5%;
  max-width: 100%; /* Ensure the section does not overflow body */
  box-sizing: border-box; /* Include padding in the width calculation */
}

.content-section.bg-alt {
  background-color: var(--bg-section);
}

.content-section.reverse {
 grid-template-areas: "image text";
}

.content-section .text-content {
  grid-area: text;
  padding: 2rem;
}

.content-section .image-content {
  grid-area: image;
  border-radius: 0.75rem;
  overflow: hidden;
  height: 70vh;
  position: relative; 
}

.content-section h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.content-section p {
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 2rem;
}

.content-section .image-content img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

.content-section:hover .image-content img {
  transform: scale(1.05);
}

.content-section .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.content-section .content-link {
  display: inline-block;
  color: var(--text-brand);
  border: 2px solid var(--text-brand);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s, color 0.3s;
}
.content-section .content-link:hover {
  background-color: var(--text-brand);
  color: var(--text-on-brand);
}

/* --- Bento Grid / Facilities --- */
#facilities {
  background-color: var(--bg-main);
  padding: 5rem 1rem;
}
.section-header {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 4rem;
}
.section-header h2 {
  font-size: 2.25rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 1.25rem;
  padding: 0 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out, opacity 0.4s;
}

.bento-item:hover img {
  transform: scale(1.05);
}

.bento-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--text-on-brand); /* Text on bento images is white */
}

.bento-item-content h3 {
   color: var(--text-on-brand); /* Explicitly set bento h3 to white */
   font-size: 1.25rem;
}
.bento-item.col-span-2 .bento-item-content h3 {
   font-size: 1.5rem;
}

.bento-item.col-span-2 { grid-column: span 2 / span 2; }
.bento-item.row-span-2 { grid-row: span 2 / span 2; }

/* --- Access Section --- */
#access {
  background-color: var(--bg-section);
  padding: 5rem 1rem;
}
.access-grid {
  display: grid;
  max-width: 72rem;
  margin: 0 auto;
  gap: 3rem;
  align-items: center;
}
#access strong {
  color: var(--text-brand);
  font-weight: 700;
}
#access .access-text h2 {
  margin-bottom: 2rem;
}
#access .access-text .jp-body p:not(:last-child) {
  margin-bottom: 1rem;
}
#access a {
  font-weight: 700;
}
#access a:hover {
  text-decoration: underline;
}
.access-map {
  height: 24rem;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
}

/* --- Footer --- */
footer {
  background-color: var(--bg-main);
  padding: 3rem 1rem;
}
.footer-content {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
  opacity: 0.7;
}
.footer-logo {
  height: 2rem;
  margin: 0 auto 1.5rem;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Media Queries for Responsive Utilities */
@media (min-width: 768px) {
  .hero-section h1 { font-size: 3.75rem; }
  .intro-section { padding-top: 8rem; padding-bottom: 8rem; }
  .intro-content h2 { 
      font-size: 3.75rem;
      line-height: 1.3; /* Adjusted line-height for large font */
  }
  .intro-content .jp-body { font-size: 1.25rem; }
  .content-section h2 { font-size: 3rem; }
  #facilities { padding-top: 8rem; padding-bottom: 8rem; }
  .section-header h2 { font-size: 3.75rem; }
  #access { padding-top: 8rem; padding-bottom: 8rem; }
  .access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-map { height: 100%; min-height: 24rem; }
}

/* Responsive adjustments for custom components */
@media (max-width: 1024px) {
  .content-section, .content-section.reverse {
      grid-template-columns: 1fr;
      grid-template-areas: "text" "image";
      min-height: auto;
      padding: 4rem 5%;
  }
   .content-section .image-content {
      height: 50vh;
  }
  .bento-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bento-grid {
      grid-template-columns: 1fr;
      grid-auto-rows: 250px;
  }
  .bento-item.col-span-2 { grid-column: span 1; }
  .bento-item.row-span-2 { grid-row: span 1; }
}
