/* ==========================================
   Blue Beryl
   ARCHIVES
========================================== */

.archives-page {
  min-height: 100vh;
  padding: 40px 20px 90px;

  background-color: #fffef8;
  background-image:
    url("/images/decorations/ribbon-corners.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;

  color: #08256e;
}

.archives-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* ==========================================
   パンくず
========================================== */

.archives-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 42px;
  font-size: 13px;
  font-weight: 600;
  color: #1358da;
}

.archives-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.archives-breadcrumb a:hover {
  text-decoration: underline;
}

/* ==========================================
   見出し
========================================== */

.archives-heading {
  position: relative;
  margin-bottom: 38px;
  text-align: center;
}

.archives-heading__en {
  margin: 0 0 10px;
  color: #1765ed;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.archives-heading h1 {
  display: inline-block;
  position: relative;
  margin: 0;
  padding: 0 12px 12px;
  color: #061d68;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.4;
}

.archives-heading h1::after {
  content: "";
  position: absolute;
  left: 5%;
  bottom: 2px;
  width: 90%;
  height: 9px;
  background: #fff08b;
  border-radius: 50%;
  z-index: 0;
}

.archives-heading__description {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.9;
}

.archives-heading__star {
  position: absolute;
  color: #ffd843;
  pointer-events: none;
}

.archives-heading__star--one {
  top: 5px;
  left: 12%;
  font-size: 36px;
}

.archives-heading__star--two {
  top: 35px;
  right: 13%;
  font-size: 28px;
  color: #1261ef;
}

/* ==========================================
   年フィルター
========================================== */

.archives-filter {
  margin-bottom: 28px;
}

.archives-filter__select {
  min-width: 190px;
  padding: 13px 20px;
  border: 2px solid #1765ed;
  border-radius: 50px;
  background: #fff;
  color: #08256e;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================
   年月一覧
========================================== */

.archives-years {
  display: grid;
  gap: 24px;
}

.archives-year {
  padding: 24px;
  border: 1px solid rgba(173, 213, 250, 0.35);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(63, 145, 215, 0.1);
}

.archives-year[hidden] {
  display: none;
}

.archives-year__title {
  margin: 0 0 16px;
  font-size: 26px;
  color: #06256d;
}

.archives-year__months {
  display: grid;
  gap: 12px;
}

.archives-month {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 17px 24px;
  border: 1px solid rgba(157, 204, 245, 0.25);
  border-radius: 14px;
  background: #edf7ff;
  color: #06256d;
  text-decoration: none;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.archives-month:hover {
  transform: translateX(5px);
  border-color: #1261ef;
  background: #f0f7ff;
}

.archives-month__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #1765ed;
  font-size: 36px;
  border-right: 1px dashed #b7d2ff;
  padding-right: 15px;
}

.archives-month__date {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.archives-month__date small {
  font-size: 14px;
  font-weight: 700;
}

.archives-month__date strong {
  font-size: 30px;
  line-height: 1;
}

.archives-month__link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  color: #0962ef;
  font-size: 14px;
  font-weight: 700;
}

/* ==========================================
   月別ページ
========================================== */

.archives-heading--month {
  text-align: left;
}

.archives-heading--month h1 {
  padding-left: 0;
}

.archives-heading--month h1::after {
  left: 0;
}

.archives-back {
  display: block;
  width: fit-content;
  margin-top: 20px;
  color: #0962ef;
  font-weight: 700;
  text-decoration: none;
}

.archives-back:hover {
  text-decoration: underline;
}

/* ==========================================
   イベントカード
========================================== */

.archives-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.archives-event-card {
  overflow: hidden;
  border: 1px solid #e0e9f7;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(9, 47, 122, 0.08);
}

.archives-event-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e7f0ff;
}

.archives-event-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
object-position: center;
}

.archives-event-card__status {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 19px;
  border: 1px solid #fff;
  border-radius: 30px;
  background: #687b9e;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.archives-event-card__body {
  padding: 24px;
}

.archives-event-card__date {
  margin: 0 0 10px;
  color: #0c5be4;
  font-size: 14px;
  font-weight: 700;
}

.archives-event-card__title {
  margin: 0 0 12px;
  color: #061d68;
  font-size: 24px;
  line-height: 1.5;
}

.archives-event-card__description {
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.8;
}

.archives-event-card__sample {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 30px;
  background: #fff2a6;
  color: #08256e;
  font-size: 12px;
  font-weight: 700;
}

/* ==========================================
   前月・次月
========================================== */

.archives-pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 45px;
}

.archives-pagination a,
.archives-pagination__disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 13px 24px;
  border: 2px solid #1765ed;
  border-radius: 40px;
  color: #1765ed;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

.archives-pagination a:hover {
  background: #1765ed;
  color: #fff;
}

.archives-pagination__disabled {
  border-color: #ddd;
  background: #eee;
  color: #aaa;
}

/* ==========================================
   注記
========================================== */

.archives-month-note {
  margin: 20px 0 0;
  color: #50658d;
  font-size: 13px;
  text-align: center;
}

/* ==========================================
   CTA
========================================== */

.archives-cta {
  margin-top: 65px;
  padding: 35px 20px;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 239, 130, 0.4),
      transparent 35%
    ),
    #eaf6ff;
  text-align: center;
}

.archives-cta p {
  margin: 0 0 18px;
  color: #061d68;
  font-size: 20px;
  font-weight: 800;
}

.archives-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 40px;
  border-radius: 50px;
  background: linear-gradient(90deg, #0860f4, #008cf9);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 7px 20px rgba(0, 98, 255, 0.2);
}

.archives-cta a:hover {
  opacity: 0.88;
}

/* ==========================================
   アクセシビリティ
========================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================
   スマホ
========================================== */

@media (max-width: 767px) {
  .archives-page {
    background-size: 150% auto;
    background-position: center top 40px;
  }

  .archives-breadcrumb {
    margin-bottom: 30px;
  }

  .archives-heading {
    margin-bottom: 28px;
  }

  .archives-heading h1 {
    font-size: 29px;
  }

  .archives-heading__description {
    font-size: 14px;
  }

  .archives-heading__star--one {
    left: 0;
    font-size: 24px;
  }

  .archives-heading__star--two {
    right: 0;
    font-size: 20px;
  }

  .archives-year {
    padding: 15px;
  }

  .archives-year__title {
    font-size: 23px;
  }

  .archives-month {
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
  }

  .archives-month__icon {
    width: 40px;
    height: 40px;
    font-size: 27px;
    padding-right: 8px;
  }

  .archives-month__date strong {
    font-size: 25px;
  }

  .archives-month__link {
    width: 100%;
    justify-content: flex-end;
    font-size: 13px;
  }

  .archives-event-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .archives-event-card__body {
    padding: 18px;
  }

  .archives-event-card__title {
    font-size: 21px;
  }

  .archives-pagination {
    gap: 10px;
  }

  .archives-pagination a,
  .archives-pagination__disabled {
    min-width: 0;
    flex: 1;
    padding: 12px;
    font-size: 13px;
  }

  .archives-cta {
    margin-top: 45px;
    padding: 30px 16px;
  }

  .archives-cta p {
    font-size: 17px;
  }

  .archives-cta a {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }
}

/* ========================================
   ARCHIVES フォント統一
======================================== */

/* ページ全体：読みやすいゴシック体 */
.archives-page {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

/* メイン見出し・年見出し・イベント名 */
.archives-heading h1,
.archives-year__title,
.archives-event-card__title {
  font-family: "Noto Serif JP", "Yu Mincho",
    "Hiragino Mincho ProN", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* 英語の見出し */
.archives-heading__en {
  font-family: Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.2em;
}

/* 説明文・日付・イベント情報 */
.archives-heading__description,
.archives-event-card__date,
.archives-event-card__description,
.archives-month-note {
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-weight: 400;
  line-height: 1.8;
}

/* 年月一覧 */
.archives-month__date,
.archives-month__link {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-weight: 600;
}

/* ボタン・リンク */
.archives-back,
.archives-pagination a,
.archives-cta a {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* フィルター */
.archives-filter__select {
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-weight: 500;
}

/* スマホ */
@media (max-width: 767px) {
  .archives-heading h1,
  .archives-year__title,
  .archives-event-card__title {
    letter-spacing: 0.03em;
  }
}

/* ========================================
   アーカイブ：イベント開催バナー
======================================== */
.archives-banner {
  width: 100%;
  max-width: 1200px;

  margin: 100px auto 64px;
}

.archives-banner a {
  display: block;
}

.archives-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

.archives-banner a:hover img {
  opacity: 0.85;
}

@media (max-width: 767px) {
  .archives-banner {
    margin: 56px auto 40px;
  }
}


/* アーカイブページ固定CTA */
.archive-fixed-cta {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 1000;

  display: block;
  width: min(760px, calc(100% - 32px));
  text-decoration: none;

  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.archive-fixed-cta img {
  display: block;
  width: 100%;
  height: auto;
}

/* ページ最下部で折りたたむ */
.archive-fixed-cta.is-collapsed {
  transform: translate(-50%, 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ホバー */
@media (hover: hover) {
  .archive-fixed-cta:not(.is-collapsed):hover {
    filter: brightness(1.08);
  }
}

/* スマホ */
@media (max-width: 767px) {
  .archive-fixed-cta {
    bottom: 10px;
    width: calc(100% - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .archive-fixed-cta {
    transition: none;
  }
}


/* 月別アーカイブ：背景が途中で途切れないようにする */
.archives-page {
  background-image: url("/images/decorations/ribbon-corners.png");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center top;
}

/* 詳細を見るボタン */
.archive-month-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 28px;
  margin-top: 18px;

  border: 2px solid #0758f7;
  border-radius: 999px;

  background: #ffffff;
  color: #0758f7;

  font-size: 15px;
  font-weight: 700;
  text-decoration: none;

  transition: all 0.25s ease;
}

/* ホバー時 */
.archive-month-detail-link:hover {
  background: #0758f7;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(7, 88, 247, 0.15);
}

/* スマホ */
@media (max-width: 767px) {
  .archive-month-detail-link {
    padding: 11px 22px;
    font-size: 14px;
  }
}

/* 月別アーカイブ：年月一覧へ戻るボタン */
.archive-month-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 28px;
  border: 2px solid #0758f7;
  border-radius: 999px;

  background: #ffffff;
  color: #0758f7;

  font-size: 15px;
  font-weight: 700;
  text-decoration: none;

  transition: all 0.25s ease;
}

/* ホバー時 */
.archive-month-back-button:hover {
  background: #0758f7;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(7, 88, 247, 0.15);
}

/* スマホ */
@media (max-width: 767px) {
  .archive-month-back-button {
    padding: 11px 22px;
    font-size: 14px;
  }
}

/* 年月一覧へ戻るボタンの配置 */
.archive-month-back {
  display: block;
  width: 100%;
  margin-top: 28px;
  margin-bottom: 40px;
  text-align: left;
}

/* アーカイブ一覧下部のバナー */
.archives-cta-banner {
  width: 100%;
  max-width: 1200px;
  margin: 100px auto 64px;
}

.archives-cta-banner a,
.archives-cta-banner img {
  display: block;
  width: 100%;
}

.archives-cta-banner img {
  height: auto;
  border-radius: 12px;
}

@media (max-width: 767px) {
  .archives-cta-banner {
    margin: 56px auto 40px;
  }
}

/* ARCHIVES：下からふわっと登場 */
.archives-page .archive-reveal,
.events-page .archive-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.archives-page .archive-reveal.is-visible,
.events-page .archive-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .archives-page .archive-reveal,
  .events-page .archive-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* CTAバナーはアニメーションさせない */
.archives-page .archives-cta-banner,
.archives-page .archives-banner {
  opacity: 1 !important;
  filter: none !important;
}


/* アーカイブのカレンダー画像 */
.archives-month__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 180px;
  width: 180px;
  height: 150px;
  margin: 0;
  padding-right: 20px;
  border-right: 1px dashed #b7d2ff;
}

.archives-month__icon img {
  display: block;
  width: 145px;
  height: 145px;
  max-width: 100%;
  object-fit: contain;
}

/* スマホ */
@media (max-width: 767px) {
  .archives-month__icon {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    padding-right: 10px;
  }

  .archives-month__icon img {
    width: 80px;
    height: 80px;
  }
}
