/* Pages layer: index.php specific rules */
body.top-page {
  padding-top: 0;
}

body.top-page .is-hidden {
  display: none;
}

body.top-page .center-news--blog {
  margin-top: 40px;
  position: relative;
}

body.top-page .news-link-corner {
  text-align: right;
  margin-top: 0.5rem;
}

@media screen and (max-width: 980px) {
  body.top-page .video-hero,
  body.top-page .video-hero video {
    display: none !important;
  }

  body.top-page .overlay-header {
    display: none !important;
  }

  body.top-page .default-header {
    display: flex !important;
    background-color: #fff !important;
    color: #333 !important;
    position: static !important;
  }

  body.top-page {
    padding-top: 0 !important;
  }

  body.top-page .center-news {
    margin-top: 0.75rem;
  }

  body.top-page .default-header nav,
  body.top-page .default-header .menu-toggle,
  body.top-page .menu-overlay {
    display: none !important;
  }
}

/* --- スマホ用ナビグリッド --- */
body.top-page .sp-nav-grid {
  display: none;
}

@media screen and (max-width: 980px) {
  body.top-page .sp-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    background: #e8830a;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
  }

  body.top-page .sp-nav-grid .sp-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.4rem;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    background: linear-gradient(180deg, #f5a623 0%, #e8830a 40%, #d5700a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: background 0.15s;
  }

  body.top-page .sp-nav-grid .sp-nav-item:active {
    background: linear-gradient(180deg, #d5700a 0%, #c06008 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  }
}

/* --- スマホ用カード表示（デスクトップでは非表示） --- */
body.top-page .schedule-cards {
  display: none;
}

@media screen and (max-width: 768px) {
  body.top-page .schedule {
    overflow: visible;
  }

  body.top-page .schedule-table {
    display: none;
  }

  body.top-page .schedule-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.25rem;
  }

  body.top-page .schedule-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  body.top-page .schedule-card-day {
    background: #ef7a00;
    color: #fff;
    margin: 0;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
  }

  body.top-page .schedule-card-row {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f0e8e0;
  }

  body.top-page .schedule-card-row:last-child {
    border-bottom: none;
  }

  body.top-page .schedule-card-time {
    font-weight: 700;
    font-size: 0.85rem;
    color: #ef7a00;
    margin-bottom: 0.3rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px dashed #ffd7b6;
  }

  body.top-page .schedule-card-doc {
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.15rem 0;
    text-align: left;
  }

  body.top-page .schedule-card-doc span {
    display: inline;
    font-size: 0.78rem;
    color: #888;
    margin-left: 0.3rem;
  }

  body.top-page .news-link-corner {
    position: static;
    margin-top: 1rem;
    text-align: center;
  }
}

body.top-page .video-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
}

body.top-page .video-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.top-page .news {
  padding: 2rem;
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.top-page .news-inner {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.top-page .news h2 {
  margin-bottom: 1rem;
}

body.top-page .link-right {
  text-align: right;
  margin-top: 1rem;
}

body.top-page .about-carousel {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

body.top-page .slick-carousel {
  width: 100%;
}

body.top-page .slick-slide {
  width: 50% !important;
  box-sizing: border-box;
  padding: 0 10px;
}

body.top-page .slick-track {
  display: flex;
}

body.top-page .slick-carousel .image-wrapper {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.top-page .slick-carousel .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.top-page .slick-carousel p {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  color: #333;
}

body.top-page .slick-prev:before,
body.top-page .slick-next:before {
  color: #ef7a00;
  font-size: 32px;
}

body.top-page .schedule {
  padding: 3rem 1rem;
  background: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
}

body.top-page .schedule h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

body.top-page .schedule-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
  color: #333;
}

body.top-page .schedule-table th,
body.top-page .schedule-table td {
  border: 1px solid #ccc;
  padding: 0.8rem 0.5rem;
  text-align: center;
  vertical-align: middle;
  line-height: 1.4;
  background-color: #fff;
}

body.top-page .schedule-table thead th,
body.top-page .schedule-table tbody th {
  background-color: #fdf2e9;
  font-weight: bold;
}

body.top-page .schedule-table .small-text {
  font-size: 0.8rem;
  color: #666;
}

body.top-page .schedule .note {
  font-size: 0.9rem;
  color: #444;
  text-align: center;
  line-height: 1.8;
  margin-top: 1rem;
}

body.top-page .schedule .closed {
  color: #d32f2f;
  font-weight: bold;
}

body.top-page .access-section {
  background-color: #ffffff;
  padding: 3rem 1rem;
}

body.top-page .access-section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

body.top-page .access-section .section-en {
  color: #ef7a00;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
  letter-spacing: 1px;
}

body.top-page .access-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
  gap: 2rem;
}

body.top-page .map-box {
  flex: 1 1 400px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
}

body.top-page .map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  flex-grow: 1;
  border-radius: 8px;
  border: none;
  display: block;
}

body.top-page .access-info {
  flex: 1 1 400px;
  background-color: #fff8f0;
  padding: 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.top-page .access-info h3 {
  color: #ef7a00;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

@media screen and (max-width: 768px) {
  body.top-page .about-carousel {
    padding: 1rem 0.5rem;
    max-width: 100%;
  }

  body.top-page .access-container {
    flex-direction: column;
    align-items: center;
  }

  body.top-page .map-box,
  body.top-page .access-info {
    width: 100%;
  }

  body.top-page .map-box iframe {
    height: 300px;
  }
}
