* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
}

body {
  color: #333;
  background-color: #fff;
}

.navbar {
  background: #111;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: white;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #009c94;
}

img.logo {
  height: 4em;
}

#hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

#hero .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#hero .slide.active {
  opacity: 1;
}

#about p {
  text-align: center;
  padding: 2rem;
  ;
}

#countdown {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #444;
}

#countdown .time {
  font-size: 2rem;
  color: #00b49c; /* Match the primary button color */
  margin: 0 0.25rem;
  font-family: 'Courier New', Courier, monospace; /* A monospaced font for numbers */
}

.day-divider-boy, .day-divider-girl {
      position: relative; /* Required for positioning the pseudo-element */
      height: 80px; /* A few lines high */
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.5rem;
      font-weight: bold;
      color: #444;
      background-color: #f7f7f7;
      border: 1px solid #ddd;
      margin: 3rem 0;
      gap: 1.5rem;
    }
    .day-divider-boy::before {
      content: '';
      width: 60px;
      height: 60px;
      background: url('images/boy.png') no-repeat center center / contain;
      border-radius: 50%; /* Makes the container circular, creating a portrait effect */
    }

    .day-divider-girl::before {
      content: '';
      width: 60px;
      height: 60px;
      background: url('images/girl.png') no-repeat center center / contain;
      border-radius: 50%; /* Makes the container circular, creating a portrait effect */}


/* Hamburger Menu Button */
.menu-btn {
  display: none;
  /* Hidden on desktop */
  position: relative;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: all .5s ease-in-out;
  z-index: 1001;
  /* Ensure it's above other content */
}

.menu-btn__burger {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 5px;
  transition: all .5s ease-in-out;
}

.menu-btn__burger::before,
.menu-btn__burger::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 5px;
  transition: all .5s ease-in-out;
}

.menu-btn__burger::before {
  transform: translateY(-8px);
}

.menu-btn__burger::after {
  transform: translateY(8px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  #hero {
    height: 33vh;
    min-height: 150px;
  }

  #hero .slide {
    /* To prevent the wide banner from being cropped horizontally on narrow screens,
       we change the background-size. '100% auto' scales the image to fit the
       width of the container, adjusting the height automatically. */
    background-size: 100% auto;
    /* We position the image to the top to avoid cutting off heads in banners. */
    background-position: center top;
  }

  img.logo {
    height: 3em;
    /* Adjust logo height for smaller screens */
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: flex;
  }

  /* Animate Hamburger to X */
  .menu-btn.open .menu-btn__burger {
    transform: translateX(-50px);
    background: transparent;
  }

  .menu-btn.open .menu-btn__burger::before {
    transform: rotate(45deg) translate(35px, -35px);
  }

  .menu-btn.open .menu-btn__burger::after {
    transform: rotate(-45deg) translate(35px, 35px);
  }

  #countdown {
    font-size: 1rem;
    margin-top: 1.5rem;
  }

  #countdown .time {
    font-size: 1.5rem;
  }

  .promo-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  #greeting-promo .promo-img {
    width: 120px;
    height: auto;
  }

  section p {
    text-align: left;
  }

  .day-divider-boy,
  .day-divider-girl {
    font-size: 1.25rem;
    margin: 1.5rem 0; /* Reduce vertical margin for a tighter layout on mobile */
  }

  .card,
  .kikaku-card {
    /* Make cards take full width on mobile to prevent overflow */
    width: 100%;
  }

  .link-buttons {
    /* On mobile, stack buttons vertically for easier tapping */
    flex-direction: column;
    align-items: stretch; /* Make buttons fill the container's width */
  }

  /* On mobile, the hero image can leave whitespace below it.
   * This rule removes the top padding from the section immediately
   * following the hero to reduce the total gap.
   */
  #hero + section {
    padding-top: 0;
  }

  /* Additionally, remove the top margin from the first element
   * (like a .day-divider) inside that section to fully close the gap. */
  #hero + section > :first-child {
    margin-top: 0;
  }
}

#links {
  padding: 3rem 1rem;
  text-align: center;
  background-color: #f4f4f4;
}

#links h2 {
  margin-bottom: 2rem;
}

.link-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.btn {
  background-color: #00b49c;
  padding: 0.8rem 2rem;
  border: none;
  color: #111;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover {
  background-color: #009c8a;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:active {
  background-color: #008a79;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Secondary button style for different colors */
.btn-secondary {
  background-color: #4a90e2; /* A pleasant blue */
  color: #fff; /* White text for contrast */
}

.btn-secondary:hover {
  background-color: #357abd; /* A darker blue for hover */
  color: #fff;
}

.btn-secondary:active {
  background-color: #2a6496; /* An even darker blue for active state */
}

/* Promo section for linking to other pages like greetings */
#greeting-promo {
  padding: 3rem 1rem;
}

.promo-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.promo-img {
  width: 150px;
  height: auto;
  border-radius: 8px; /* A soft radius for a modern look */
}

section {
  padding: 2rem 2rem;
  text-align: center;
}

section p {
  text-align: left;

}

section h2 {
  margin-bottom: 1rem;
}

.card-holder {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.card {
  background: #ffffff;
  padding: 2rem;
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

/* Modifier to make a card span the full width of its container */
.card.full-width {
  width: 100%;
}



.card p {
  display: block;
}

.card h3 {
  margin-bottom: 1rem;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-name {
  text-align: right;
  margin-top: 1rem;
  font-weight: bold;
  font-style: italic;
  color: #666;
}

.kikaku-card {
  display: flex;
  flex-direction: column;
}

.card-button-wrapper {
  margin-top: auto;
  text-align: center;
}


footer {
  text-align: center;
  padding: 2rem;
  background: #111;
  color: white;
}

/* Styles for the custom "kikaku" card */
.kikaku-card {
  background: #B9FFE5;
  width: 345px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  overflow: hidden;
  /* To make the image corners conform to the card's border-radius */
  text-align: left;
  /* Override the centered text from the parent section */
}

.kikaku-card:hover {
  transform: translateY(-5px);
}

.kikaku-card .card-img {
  width: 100%;
  /* Make image responsive to card width */
  height: auto;
  aspect-ratio: 1 / 1; /* Maintain a square shape */
  object-fit: cover;
  /* Crop image to fit, preserving aspect ratio */

  /* Reset conflicting styles from the generic .card-img class */
  border-radius: 0;
  margin-bottom: 0;
  border: none;
  box-shadow: none;
}

.kikaku-card h3 {
  margin: 1.5rem 1.5rem 0.5rem;
}

.kikaku-card p {
  margin: 0 1.5rem 1.5rem;
}

/* Video Player Styles */
.video-wrapper {
  max-width: 800px; /* Prevents video from being too wide on large screens */
  margin: 0 auto 2rem auto; /* Centers the wrapper and adds space below */
  background: #fdfdfd;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left; /* Overrides the text-align: center from the parent section */
}

.video-wrapper h3 {
  margin-bottom: 0.5rem;
}

.video-wrapper p {
  margin-bottom: 1rem;
  color: #666;
}

.video-wrapper video {
  width: 100%; /* Makes the video responsive */
  height: auto;
  border-radius: 5px;
}

.kikaku-card .kikaku-type {
  font-weight: bold;
  text-align: center;
}

#timetable img {
      max-width: 100%;
      height: auto;
      display: block; /* Allows the use of margin: auto for centering */
      margin: 0 auto 2rem; /* Centers the image horizontally and adds space below */
    }