/* =========================================================
   お知らせ一覧
========================================================= */

.topicsList {
  width: 100%;
  max-width: 970px;
  margin: 0 auto;
  padding: 40px 20px 100px;
}

/* -------------------------------------
   一覧
-------------------------------------- */

.topicsList__list {
  border-top: 1px solid var(--border);
}

/* 1件 */

.topicsList__item {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) 3.25rem;
  align-items: center;
  gap: 1.5rem;

  min-height: 95px;
  padding: 18px 0;

  border-bottom: 1px solid var(--border);

  color: var(--text);
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

/* 日付 */

.topicsList__date {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

/* タイトル */

.topicsList__itemTitle {
  min-width: 0;

  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

/* -------------------------------------
   矢印
-------------------------------------- */

.topicsList__arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 1.75rem;
  height: 1.75rem;
  padding-bottom: 0.2em;

  border-radius: 50%;

  background-color: #000;
  color: #fff;

  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

/* hover */

.topicsList__item:hover {
  background-color: var(--bg);
}

.topicsList__item:hover .topicsList__arrow {
  transform: translateX(4px);
}

/* キーボード操作 */

.topicsList__item:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* -------------------------------------
   お知らせなし
-------------------------------------- */

.topicsList__empty {
  margin: 0;
  padding: 60px 20px;

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);

  color: var(--text);

  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
}

/* =========================================================
   ページャー
========================================================= */

.topicsPager {
  margin-top: 55px;
}

.topicsPager__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin: 0;
  padding: 0;

  list-style: none;
}

/* ページ番号 */

.topicsPager__link {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 8px;

  border: 1px solid var(--border);
  border-radius: 50%;

  background-color: var(--surface);
  color: var(--text);

  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;

  text-decoration: none;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

/* 現在ページ */

.topicsPager__link.is-current {
  border-color: #000;

  background-color: #000;
  color: #fff;
}

/* hover */

a.topicsPager__link:hover {
  background-color: var(--text);
  color: var(--surface);
}

/* focus */

a.topicsPager__link:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* … */

.topicsPager__ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 1.5rem;
  height: 2.75rem;

  color: var(--text);

  font-size: 1rem;
}
.topicsList__count {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: right;
}
/* =========================================================
   閲覧支援：配色変更
========================================================= */

html:is(.contrast-black, .contrast-yellow, .contrast-blue) .topicsList__arrow {
  border: 1px solid var(--border);

  background-color: var(--text);
  color: var(--surface);
}

html:is(.contrast-black, .contrast-yellow, .contrast-blue)
  .topicsList__item:hover {
  background-color: var(--text);
  color: var(--surface);
}

html:is(.contrast-black, .contrast-yellow, .contrast-blue)
  .topicsList__item:hover
  .topicsList__arrow {
  border-color: currentColor;

  background-color: var(--surface);
  color: var(--text);
}

html:is(.contrast-black, .contrast-yellow, .contrast-blue)
  .topicsPager__link.is-current {
  border-color: var(--border);

  background-color: var(--text);
  color: var(--surface);
}

/* =========================================================
   SP
========================================================= */

@media (max-width: 750px) {
  .topicsList {
    padding: 30px 24px 80px;
  }

  /* -----------------------------------
     一覧
  ------------------------------------ */

  .topicsList__item {
    grid-template-columns: minmax(0, 1fr) 2.75rem;
    grid-template-areas:
      "date arrow"
      "title arrow";

    gap: 5px 15px;

    min-height: 0;
    padding: 18px 0;
  }

  .topicsList__date {
    grid-area: date;

    font-size: 0.875rem;
  }

  .topicsList__itemTitle {
    grid-area: title;

    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .topicsList__arrow {
    grid-area: arrow;
    align-self: center;

    width: 2.75rem;
    height: 2.75rem;

    font-size: 1.5rem;
  }

  /* -----------------------------------
     ページャー
  ------------------------------------ */

  .topicsPager {
    margin-top: 40px;
  }

  .topicsPager__list {
    gap: 8px;
  }

  .topicsPager__link {
    min-width: 2.5rem;
    height: 2.5rem;

    font-size: 0.875rem;
  }

  .topicsPager__ellipsis {
    min-width: 1rem;
    height: 2.5rem;
  }
}

/* =========================================
   Event Detail
========================================= */

.topicsDetail {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 30px 100px;
}
@media (max-width: 750px) {
  .topicsDetail {
    padding: 50px 20px 80px;
  }
}

/* =========================================
   Event Detail Header
========================================= */

.topicsDetail__header {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 50px;
}

/* タイトル
----------------------------------------- */

.topicsDetail__title {
  position: relative;

  margin: 0;
  padding-bottom: 20px;

  border-bottom: 1px solid #ccc;

  color: var(--text);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* 長いグレー線に重なる短い緑線 */
.topicsDetail__title::after {
  content: "";

  position: absolute;
  bottom: -2px;
  left: 0;

  width: 50px;
  height: 4px;

  background-color: #00a88f;
}

/* カテゴリ・開催日・時間
----------------------------------------- */

.topicsDetail__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 25px;

  margin: 0;
  padding-top: 25px;
}

.topicsDetail__category,
.topicsDetail__date,
.topicsDetail__time {
  margin: 0;
}

/* カテゴリ */

.topicsDetail__category {
  display: inline-block;

  padding: 0.35em 1em;

  background-color: #00a089;
  color: #fff;

  font-size: 0.875rem;
  line-height: 1.4;
}

/* 開催日・時間 */

.topicsDetail__date,
.topicsDetail__time {
  display: flex;
  align-items: center;
  gap: 0.5em;

  color: var(--text);

  font-size: 1rem;
  line-height: 1.7;
}

/* Font Awesome */

.topicsDetail__metaIcon {
  flex-shrink: 0;

  color: #00a88f;
}

/* =========================================
   閲覧支援
========================================= */

/* 装飾用の緑ラインは非表示 */
html:is(.contrast-black, .contrast-yellow, .contrast-blue)
  .topicsDetail__title::after {
  display: none;
}

/* 長い下線は残す */
html:is(.contrast-black, .contrast-yellow, .contrast-blue)
  .topicsDetail__title {
  border-bottom-color: var(--border);
}

/* カテゴリ */
html:is(.contrast-black, .contrast-yellow, .contrast-blue)
  .topicsDetail__category {
  border: 1px solid var(--border);
  background-color: var(--text);
  color: var(--surface);
}

/* 日付・時間のアイコン */
html:is(.contrast-black, .contrast-yellow, .contrast-blue)
  .topicsDetail__metaIcon {
  color: var(--text);
}

/* =========================================
   SP
========================================= */

@media (max-width: 750px) {
  .topicsDetail__header {
    margin-bottom: 35px;
  }

  .topicsDetail__title {
    padding-bottom: 15px;
    font-size: 1.75rem;
  }

  .topicsDetail__title::after {
    width: 40px;
  }

  .topicsDetail__meta {
    gap: 10px 20px;
    padding-top: 20px;
  }
}
/* =========================================
   Event Detail Images
========================================= */

.topicsDetail__images {
  display: flex;
  flex-direction: column;
  gap: 40px;

  width: 100%;
  max-width: 850px;
  margin: 50px auto;
}

.topicsDetail__image {
  width: 100%;
  margin: 0;
  text-align: center;
}

.topicsDetail__image img {
  display: inline-block;
  max-width: 100%;
  width: auto;
  height: auto;
}
/* SP
----------------------------------------- */

@media (max-width: 750px) {
  .topicsDetail__images {
    gap: 25px;
    margin: 35px auto;
  }
}
/* =========================================
   Event Detail Body
========================================= */

.topicsDetail__body {
  width: 100%;
  max-width: 850px;
  margin: 50px auto;

  color: var(--text);

  font-size: 1rem;
  line-height: 2;
  overflow-wrap: anywhere;
  word-break: break-all;
}
@media (max-width: 750px) {
  .topicsDetail__body {
    margin: 35px auto;
    line-height: 1.8;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}
/* =========================================
   Event Detail Documents
========================================= */

.topicsDetail__documents {
  width: 100%;
  max-width: 850px;
  margin: 50px auto;
}

.topicsDetail__subTitle {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
}

.topicsDetail__documentList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topicsDetail__document {
  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  padding: 16px 20px;

  border: 1px solid var(--border);

  background-color: var(--surface);
  color: var(--link);

  line-height: 1.6;
  text-decoration: none;
}

.topicsDetail__document:hover {
  text-decoration: underline;
}

.topicsDetail__document:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.topicsDetail__pdf {
  flex-shrink: 0;

  padding: 0.2em 0.55em;
  border-radius: 0.4em;

  background-color: #000;
  color: #fff;

  font-size: 0.75rem;
  line-height: 1.2;
}

.topicsDetail__documentName {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 閲覧支援
----------------------------------------- */

html:is(.contrast-black, .contrast-yellow, .contrast-blue) .topicsDetail__pdf {
  border: 1px solid var(--text);
  background-color: var(--text);
  color: var(--surface);
}

/* SP
----------------------------------------- */

@media (max-width: 750px) {
  .topicsDetail__documents {
    margin: 35px auto;
  }

  .topicsDetail__document {
    padding: 14px 15px;
  }
}
/* =========================================
   Event Detail External Link
========================================= */

.topicsDetail__links {
  width: 100%;
  max-width: 850px;
  margin: 50px auto;
}

.topicsDetail__externalLink {
  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  padding: 16px 20px;

  border: 1px solid var(--border);

  background-color: var(--surface);
  color: var(--link);

  line-height: 1.6;
  text-decoration: none;
}

.topicsDetail__externalLink:hover {
  text-decoration: underline;
}

.topicsDetail__externalLink:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.topicsDetail__externalIcon {
  flex-shrink: 0;
  margin-left: auto;
}

/* 閲覧支援
----------------------------------------- */

html:is(.contrast-black, .contrast-yellow, .contrast-blue)
  .topicsDetail__externalIcon {
  display: none;
}

/* SP
----------------------------------------- */

@media (max-width: 750px) {
  .topicsDetail__links {
    margin: 35px auto;
  }

  .topicsDetail__externalLink {
    padding: 14px 15px;
  }
}
