@charset "UTF-8";

#schedule {
  min-height: 100svh;
}

.heading-lg {
  padding-bottom: 56px;
}

@media screen and (max-width: 768px) {
  .heading-lg {
    padding-bottom: 24px;
  }
}

.category-list-wrapper {
  container: catlist / inline-size;
  position: sticky;
  padding-block: 10px;
  top: 80px;
  z-index: 700;
  background-color: var(--white-80);
  backdrop-filter: blur(5px);
}

/* category-list */
.category-list {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.category-list-item {
  flex: 1;
}

.category-list-item a {
  position: relative;
  display: block;
  width: -webkit-fill-available;
  width: -moz-available;
  width: stretch;
  padding: 6px;
  border: 1px solid var(--powder-aqua);
  background: var(--white);
  color: var(--marine-blue);
  text-align: center;
  font-family: Figtree;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.7px;
  z-index: 1;
}

.category-list-item.active a {
  background: var(--marine-blue);
  box-shadow: 3px 3px 10px 2px rgba(22, 23, 38, 0.25) inset;
  color: var(--white);
}

/* category-hover ↓*/

.category-link-text {
  position: relative;
  z-index: 2;
}

.c-category-link-btn {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: background-color 1s;
}

.category-link-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background-color: var(--off-white);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: -1;
  transition: all 0.75s ease-out;
}

.child-category .category-link-effect {
  width: 200px;
  height: 200px;
  transition: all 0.5s ease-out;

}

@media (hover: hover) {

  .category-list-item:not(.active) .c-category-link-btn:hover .category-link-effect,
  .child-category li:not(.active) a:hover .category-link-effect {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* category-hover ↑*/

/* Media */
.parent-category.category-list-item a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: -webkit-fill-available;
  width: -moz-available;
  width: stretch;
  padding: 6px;
}

.parent-category.category-list-item a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--marine-blue);
  transition: transform 0.3s ease-out;
  z-index: 10;
}

.parent-category.category-list-item a.child-open::after {
  transform: rotate(180deg);
}

.parent-category.category-list-item.active a::after {
  border-top: unset;
  border-bottom: 6px solid var(--white);
}

@container catlist (max-width:751px) {
  .category-list {
    display: flex;
    width: 100%;
  }

  .category-list-item {
    width: 100%;
  }

  .category-list-item a {
    min-width: 100px;
  }

  .category-list-item a:last-of-type {
    min-width: 100px;
  }
}

/* child-category */

.child-category-area {
  display: block;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
  -moz-transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}


.child-category-area:has(.child-category.child-category-open) {
  max-height: 240px;
  opacity: 1;
}

.child-category {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.child-category li {
  flex: 1;
  display: flex;
  height: 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 2px;
  border: 1px solid var(--phantom-gray, #CCD4D7);
  background: var(--white, #FFF);
}

.child-category li a {
  position: relative;
  display: block;
  flex: 1;
  text-align: center;
  padding: 4px 24px;
  color: var(--ocean-slate, #3A6471);
  font-family: Figtree;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.6px;
  text-wrap: nowrap;
  overflow: hidden;
  z-index: 1;
}

/* 共通：トランジションは両状態に書く（重要） */
.child-category,
.child-category-open {
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out,
    display 0.5s allow-discrete;
  /* display を「最後に」切り替える */
}

/* 子カテゴリ側の並び */
.child-category {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  /* スクロール自体はできる */
}

.child-category::-webkit-scrollbar {
  width: 0;
  /* Chrome/Safari */
  height: 0;
}

.child-category li {
  flex: 1;
  display: flex;
  height: 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 2px;
  border: 1px solid var(--phantom-gray, #CCD4D7);
  background: var(--white, #FFF);
}

.child-category li a {
  display: block;
  flex: 1;
  text-align: center;
  padding: 4px 24px;
  color: var(--ocean-slate, #3A6471);
  font-family: Figtree;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.6px;
  text-wrap: nowrap;
}

/* 共通：トランジションは両状態に書く（重要） */
.child-category,
.child-category-open {
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out,
    display 0.5s allow-discrete;
  /* display を「最後に」切り替える */
}

/* 閉じている状態 */
.child-category {
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  background: var(--off-white, #EFEFEF);
  width: 100%;
  padding: 10px 8px;
  margin-block: 8px;
}

/* 開く状態 */
.child-category-open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.child-category-open>li.active {
  background-color: var(--marine-blue);
}

.child-category-open>li.active a {
  color: var(--white);
}

@container catlist (max-width:751px) {

  .child-category {
    flex-wrap: nowrap;
  }

  .child-category-open {
    width: max-content;
    padding: 10px 8px;
  }

  .child-category li {
    width: fit-content;
  }
}

/* schedule-list */
.schedule-list-item {
  display: flex;
  padding: 30px 32px 30px 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
  border-bottom: 1px solid var(--powder-aqua, #ECF4EB);
}

.schedule-list-item .flexbox {
  display: flex;
  align-items: center;
  gap: 12px;
}

.schedule-list-date {
  width: fit-content;
  font-size: 1.4rem;
  color: var(--ymd-color);
  font-family: "figtree", sans-serif;
}

.schedule-list-color {
  display: flex;
  min-width: 100px;
  padding: 4px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--marine-blue);
  font-family: "figtree", sans-serif;
  letter-spacing: 0.05em;
}

.no-data {
  margin-block: calc(100dvh / 4);
  font-size: 2rem;
  text-align: center;
  font-family: "Figtree", sans-serif;
}