.any-archive-year-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin: 28px 0 34px;
}

.any-archive-year-nav__btn {
  appearance: none;
  min-width: 92px;
  padding: 11px 18px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.any-archive-year-nav__btn:hover {
  border-color: #222;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.any-archive-year-nav__btn.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.any-archive-year-panel {
  display: none;
  animation: anyArchiveFade 0.25s ease;
}

.any-archive-year-panel.is-active {
  display: block;
}

.any-archive-year-title {
  position: relative;
  margin: 0 0 24px;
  padding: 0 0 13px;
  color: #222;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.04em;
}

.any-archive-year-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: #111;
  transform: translateX(-50%);
}

.any-archive-empty {
  margin: 30px 0;
  color: #555;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

@keyframes anyArchiveFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 767px) {
  .any-archive-year-nav {
    gap: 8px;
    margin: 22px 0 28px;
  }

  .any-archive-year-nav__btn {
    min-width: 76px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .any-archive-year-title {
    margin-bottom: 20px;
    font-size: 22px;
  }
}

.any-archive-year-panel {
  display: none;
  width: 100%;
}

.any-archive-year-panel.is-active {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 3.5%;
  align-items: stretch;
}

.any-archive-year-title {
  width: 100%;
  flex: 0 0 100%;
}

/* PC：3カラム */
.any-archive-year-panel.is-active .index_event_box_arcive {
  width: 31%;
  margin: 0 0 40px;
}

/* 画像が暴れないように */
.any-archive-year-panel .index_event_thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* タブは横幅いっぱい使わせる */
.any-archive-year-nav {
  width: 100%;
}

/* タブ下の年見出し */
.any-archive-year-title {
  margin: 0 0 28px;
  padding: 0 0 14px;
  text-align: center;
}

/* SP：1カラム */
@media screen and (max-width: 767px) {
  .any-archive-year-panel.is-active {
    display: block;
  }

  .any-archive-year-panel.is-active .index_event_box_arcive {
    width: 100%;
    margin: 0 0 28px;
  }
}

/* アーカイブ全体の横幅制限 */
.index_event_container {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

/* 年別パネル */
.any-archive-year-panel {
  display: none;
  width: 100%;
}

/* 表示中の年だけ3カラム */
.any-archive-year-panel.is-active {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 3.5%;
  align-items: stretch;
  width: 100%;
}

/* 年見出しは1行使う */
.any-archive-year-title {
  width: 100%;
  flex: 0 0 100%;
  margin: 0 0 28px;
  padding: 0 0 14px;
  text-align: center;
}

/* PC：3カラム */
.any-archive-year-panel.is-active .index_event_box_arcive {
  width: 31%;
  margin: 0 0 40px;
}

/* 画像 */
.any-archive-year-panel .index_event_thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 年ボタンも中央に収める */
.any-archive-year-nav {
  width: min(1120px, calc(100% - 40px));
  margin: 28px auto 34px;
}

/* タブレット：2カラム */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .index_event_container {
    width: min(860px, calc(100% - 32px));
  }

  .any-archive-year-nav {
    width: min(860px, calc(100% - 32px));
  }

  .any-archive-year-panel.is-active {
    gap: 32px 4%;
  }

  .any-archive-year-panel.is-active .index_event_box_arcive {
    width: 48%;
  }
}

/* SP：1カラム */
@media screen and (max-width: 767px) {
  .index_event_container {
    width: calc(100% - 24px);
  }

  .any-archive-year-nav {
    width: calc(100% - 24px);
    margin: 22px auto 28px;
  }

  .any-archive-year-panel.is-active {
    display: block;
  }

  .any-archive-year-panel.is-active .index_event_box_arcive {
    width: 100%;
    margin: 0 0 28px;
  }
}

/* 年別アーカイブ：横幅と3カラム強制 */
.page_content.page_event .index_event_container {
  width: min(1080px, calc(100% - 40px)) !important;
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

.page_content.page_event .any-archive-year-panel {
  display: none !important;
  width: 100% !important;
}

.page_content.page_event .any-archive-year-panel.is-active {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 40px 32px !important;
  width: 100% !important;
}

.page_content.page_event .any-archive-year-title {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 0 0 24px !important;
  padding: 0 0 14px !important;
  text-align: center !important;
}

.page_content.page_event .any-archive-year-panel.is-active .index_event_box_arcive {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}

.page_content.page_event .any-archive-year-panel .index_event_thumb {
  width: 100% !important;
}

.page_content.page_event .any-archive-year-panel .index_event_thumb img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}

@media screen and (max-width: 1024px) {
  .page_content.page_event .any-archive-year-panel.is-active {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media screen and (max-width: 767px) {
  .page_content.page_event .index_event_container {
    width: calc(100% - 24px) !important;
  }

  .page_content.page_event .any-archive-year-panel.is-active {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* 年別ボタン・年別パネル自体に横幅制限をかける */
.page_content.page_event .any-archive-year-nav,
.page_content.page_event .any-archive-year-panel {
  width: min(1080px, calc(100% - 40px)) !important;
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 非表示 */
.page_content.page_event .any-archive-year-panel {
  display: none !important;
}

/* 表示中：3カラム */
.page_content.page_event .any-archive-year-panel.is-active {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 40px 32px !important;
}

/* 年見出しは3カラム全部使う */
.page_content.page_event .any-archive-year-title {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 0 0 24px !important;
  padding: 0 0 14px !important;
  text-align: center !important;
}

/* イベントカード */
.page_content.page_event .any-archive-year-panel .index_event_box_arcive {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}

/* サムネイル */
.page_content.page_event .any-archive-year-panel .index_event_thumb {
  width: 100% !important;
}

.page_content.page_event .any-archive-year-panel .index_event_thumb img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}

/* タブレット */
@media screen and (max-width: 1024px) {
  .page_content.page_event .any-archive-year-nav,
  .page_content.page_event .any-archive-year-panel {
    width: min(860px, calc(100% - 32px)) !important;
  }

  .page_content.page_event .any-archive-year-panel.is-active {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* スマホ */
@media screen and (max-width: 767px) {
  .page_content.page_event .any-archive-year-nav,
  .page_content.page_event .any-archive-year-panel {
    width: calc(100% - 24px) !important;
  }

  .page_content.page_event .any-archive-year-panel.is-active {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* SP：アーカイブカードの横幅・画像サイズ調整 */
@media screen and (max-width: 767px) {

  .page_content.page_event .any-archive-year-nav,
  .page_content.page_event .any-archive-year-panel {
    width: calc(100% - 32px) !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page_content.page_event .any-archive-year-panel.is-active {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .page_content.page_event .any-archive-year-title {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    text-align: center !important;
  }

  .page_content.page_event .any-archive-year-panel .index_event_box_arcive {
    display: block !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto 30px !important;
    float: none !important;
  }

  .page_content.page_event .any-archive-year-panel .index_event_thumb {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto 12px !important;
  }

  .page_content.page_event .any-archive-year-panel .index_event_thumb img {
    display: block !important;
    width: 100% !important;
    max-width: 360px !important;
    height: auto !important;
    object-fit: cover !important;
  }

  .page_content.page_event .any-archive-year-panel .index_event_text {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .page_content.page_event .any-archive-year-panel .index_event_text h3 {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .page_content.page_event .any-archive-year-panel .index_event_category {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }
}