@charset "UTF-8";
/* ==========================================================================
   淡路市立サンシャインホール - 施設ご利用状況ページ
   ========================================================================== */

/* ==========================================================================
   ページ全体
   ========================================================================== */
.p-schedule {
  padding: 4rem 0 12rem;
}

.p-schedule__body {
  display: flex;
  gap: 5rem;
  align-items: flex-start;
}

/* ==========================================================================
   左サイドバー（スティッキー）
   ========================================================================== */
.p-schedule__sidebar {
  width: 22rem;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - 2rem);
  overflow-y: auto;
}

.p-schedule-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.p-schedule-nav__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e5;
  text-decoration: none;
  color: #333;
  transition: opacity 0.2s;
}

.p-schedule-nav__item:first-child {
  border-top: 1px solid #e5e5e5;
}

.p-schedule-nav__item:hover {
  opacity: 0.7;
}

.p-schedule-nav__item.is-active .p-schedule-nav__dot {
  background: #337D8A;
}

.p-schedule-nav__img {
  width: 5.5rem;
  height: 3.9rem;
  object-fit: cover;
  flex-shrink: 0;
}

.p-schedule-nav__name {
  flex: 1;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: #333;
  line-height: 1.3;
}

.p-schedule-nav__dot {
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
}

/* ==========================================================================
   右メインコンテンツ
   ========================================================================== */
.p-schedule__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ==========================================================================
   イントロテキスト
   ========================================================================== */
.p-schedule__intro {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 5rem;
}

.p-schedule__intro p {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: #333;
  line-height: 1.9;
}

.p-schedule__intro-note {
  background: #f7f4f0;
  border-radius: 0.4rem;
  padding: 1.6rem 2rem;
}

.p-schedule__intro-link {
  color: #337D8A;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.p-schedule__intro-link:hover {
  opacity: 0.7;
}

/* ==========================================================================
   各施設セクション
   ========================================================================== */
.p-schedule__section {
  padding-bottom: 6rem;
  margin-bottom: 6rem;
  border-bottom: 1px solid #e5e5e5;
  /* アンカーリンクのオフセット（ヘッダー分） */
  scroll-margin-top: 14rem;
}

.p-schedule__section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.p-schedule__section-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 3.2rem;
  color: #333;
  letter-spacing: 0.05em;
  line-height: 1;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #d8d8d8;
  margin-bottom: 3.2rem;
}

/* ==========================================================================
   凡例
   ========================================================================== */
.p-schedule-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
  margin-bottom: 1.2rem;
}

.p-schedule-legend__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.p-schedule-legend__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.p-schedule-legend__icon--empty {
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #aaa;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.p-schedule-legend__icon--triangle {
  background: #F6BE28;
  color: #fff;
}

.p-schedule-legend__icon--full {
  background: #D40101;
  color: #fff;
}

.p-schedule-legend__label {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: #333;
  white-space: nowrap;
}

/* ==========================================================================
   カレンダーエリア
   ========================================================================== */
.p-schedule-calendar {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 0.8rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.p-schedule-calendar img {
  width: 100%;
  height: auto;
  display: block;
}

/* Googleカレンダー埋め込み用（将来の差し替え用） */
.p-schedule-calendar iframe {
  width: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   お問い合わせ情報
   ========================================================================== */
.p-schedule-contact {
  display: flex;
  align-items: flex-start;
  gap: 2.4rem;
}

.p-schedule-contact__label {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #333;
  white-space: nowrap;
  flex-shrink: 0;
}

.p-schedule-contact__info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.p-schedule-contact__text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: #333;
  line-height: 1.6;
}

.p-schedule-contact__link {
  display: inline-flex;
  align-items: center;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: #337D8A;
  text-decoration: underline;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.p-schedule-contact__link:hover {
  opacity: 0.7;
}

/* ==========================================================================
   SP対応 (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

  .p-schedule {
    padding: 2.4rem 0 8rem;
  }

  .p-schedule__body {
    flex-direction: column;
    gap: 3.2rem;
  }

  /* SP時はサイドバーをスティッキー解除・4列折り返しナビに */
  .p-schedule__sidebar {
    width: 100%;
    position: static;
  }

  .p-schedule-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;
  }

  .p-schedule-nav__item {
    width: 25%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 0.8rem;
    border-top: none;
    border-left: none;
    border-bottom: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
  }

  .p-schedule-nav__item:first-child {
    border-top: none;
    border-left: none;
  }

  .p-schedule-nav__img {
    width: 5.5rem;
    height: 3.9rem;
  }

  .p-schedule__section {
    scroll-margin-top: 8rem;
    padding-bottom: 4rem;
    margin-bottom: 4rem;
  }

  .p-schedule__section-title {
    font-size: 2.4rem;
    margin-bottom: 2rem;
  }

  .p-schedule-legend {
    flex-wrap: nowrap;
    gap: 1.2rem;
  }

  .p-schedule-legend__item {
    gap: 0.4rem;
  }

  .p-schedule-legend__icon {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1rem;
  }

  .p-schedule-legend__label {
    font-size: 1.1rem;
  }

  .p-schedule-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
}