@charset "UTF-8";

/*======================================
||| wrap
======================================*/
html,
body {
  height: 100%;
}
.under_body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  color: #8B83FF;
  line-height: 1.6;
}
.under_body main {
  flex-grow: 1;
}
.under_body h2 {
  font-size: var(--fontSize_l);
}
.under_body h3 {
  font-size: 2rem;
}

/*======================================
||| header , footer
======================================*/
header,
footer {
  padding-top: 8px;
  padding-bottom: 8px;
  background: linear-gradient(to right, #B4EFFF, #958DFF);
  box-shadow: 0px 10px 10px -6px rgba(0, 0, 0, 0.1);
  color: #fff;
}
header a {
  width: 120px;
  margin: auto;
  padding: 0 8px;
}
footer {
  padding: 16px;
  text-align: center;
}
@media screen and (min-width:768px) {
  margin: auto;
  padding: 8px 16px;
  header a {
    width: 160px;
}
}

/*======================================
||| main
======================================*/
.main_wrap {
  width: min(94%, 460px);
  margin-right: auto;
  margin-left: auto;
  padding: 24px 0;
}
h1 {
  color: var(--color_bl);
  font-size: 2rem;
  letter-spacing: .2rem;
  text-align: center;
}
@media screen and (min-width:768px) {
  h1 {
    font-size: 3rem;
}
  .main_wrap {
  width: min(90%, 1000px);
}
}

/*======================================
||| お知らせ
======================================*/
.pg_info .main_wrap {
  width: min(92%, 460px);
}
.pg_info .intro,
.pg_info .top_text {
  margin-top: var(--gap_section);
}
.pg_info p {
  margin-top: 8px;
}
.pg_info ul {
  margin-top: 16px;
}
.pg_info ol {
  margin-top: 12px;
  padding-left: 40px;
}
.pg_info a {
  color:#ffffff;
  font-size: var(--fontSize_s);
  overflow-wrap: anywhere;
  text-decoration: none;
}
.pg_info .end_text {
  margin-top: 40px;
  padding-left: 0;
}
li {
  width: 100%;
  margin-top: 24px;
  padding: 24px 24px;
  border-radius: 4px;
  background: #958DFF;
  list-style-type: none;
}
a > p {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 16px;
  text-align: right;
}

/*======================================
  ページ送りボタン最小化（詰め）
  - fullwidth: ボタン間のgapを狭く（多ページ時）
  - .pagination button: 通常時サイズ指定
======================================*/
.pagination.fullwidth {
  gap: 8px !important;              /* 多ページ時の間隔を狭く */
  justify-content: center !important;
}

.pagination button {
  min-width: 60px !important;       /* 初期幅（下で幅ごとに上書きあり） */
  height: 36px !important;
  padding: 0 12px !important;
  font-size: 1.00rem !important;
  margin: 0 8px;
}

/*--------------------------------------
  前へ・次へボタンはやや幅広を維持
--------------------------------------*/
.pagination-prev button,
.pagination-next button {
  min-width: 56px !important;
  padding: 0 6px !important;
}

/*--------------------------------------
  メディアクエリ（中画面向け）
--------------------------------------*/
@media screen and (min-width:568px) {
  .pg_info .main_wrap {
    width: min(85%, 980px);
  }
}

/*--------------------------------------
  ページ送りボタンレスポンシブ（スマホ向け）
--------------------------------------*/
@media (max-width: 980px) {
  .pagination button {
    font-size: 0.98rem;
    height: 32px !important;
    min-width: 40px !important;
    padding: 0 8px !important;
    margin: 0px;
  }
  .pagination-prev button, .pagination-next button {
    min-width: 44px !important;
  }
}

@media (max-width: 600px) {
  .pagination button {
    font-size: 0.98rem;
    height: 32px !important;
    min-width: 16px !important;
  }
  .pagination-prev button, .pagination-next button {
    min-width: 24px !important;
  }
}

/*======================================
  ページ送りボタン本体・状態指定
  - active, focus, disabled, hover状態も下で指定
======================================*/
.pagination button, .pagination button[disabled] {
  border: none !important;
}

.pagination button, .pagination li.active button {
  background: #f7f6fb !important;
}

.pagination-wrap {
  width: 100%;
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.pagination {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  background: none;
}

.pagination li {
  background: none !important;
  margin: 0;
  padding: 0;
  border-radius: 12px;
}

.pagination button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 48px;
  padding: 0 26px;
  font-size: 1.08rem;
  font-weight: bold;
  color: #b9a2f5;
  background: #fff;
  border: 2px solid #f3f2f8;
  border-radius: 14px;
  box-shadow: 0 8px 30px 0 rgba(190, 183, 235, 0.12);
  transition: background 0.17s, color 0.17s, border-color 0.17s, box-shadow 0.17s;
  cursor: pointer;
  letter-spacing: 0.03em;
  outline: none;
  gap: 8px;
  opacity: 1;
}

.pagination li.active button,
.pagination button:focus {
  background: #958DFF !important;
  color: #fff !important;
  border-color: #ece7fc;
  box-shadow: 0 10px 36px 0 rgba(170, 160, 230, 0.09);
}

.pagination button[disabled] {
  background: #faf9fe;
  color: #d3c5fa;
  border-color: #f3f2f8;
  cursor: not-allowed;
  opacity: 1;
}

.pagination-prev button, .pagination-next button {
  font-size: 1.01rem;
  min-width: 104px;
  padding: 0 16px;
}

@media (max-width: 600px) {
  .pagination {
    gap: 10px;
  }
  .pagination button {
    font-size: 0.98rem;
    height: 36px;
    min-width: 36px;
    padding: 0 10px;
  }
  .pagination-prev button, .pagination-next button {
    font-size: 0.93rem;
    min-width: 56px;
    padding: 0 6px;
  }
}

.pagination li.active button:hover {
  background: #958DFF !important;
  color: #fff !important;
}

/*======================================
||| お知らせ詳細ページ専用
======================================*/
body {
  margin: 0;
  padding: 0;
}
.news-detail {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5em 5em 2.5em 5em;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 12px 0 #d6d6ef;
  font-size: 1.2rem;
  line-height: 1.8;
}
.news-detail h1 {
  margin-bottom: 0.5em;
  color: #564fff;
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  text-align: center;
}
.news-date {
  margin-bottom: 1.5em;
  font-size: 0.95em;
  text-align: right;
}
.news-detail article {
  margin-top: 1.4em;
  margin-bottom: 0.7em;
  color: #605cc2;
  font-size: 1.2rem;
  font-weight: bold;
}
.news-detail p {
  margin-bottom: 2em;
  color: #958DFF;
  font-size: 2rem;
}
.news-detail a {
  color: #958DFF;
}
.news-detail figure {
  margin: 2em 0 1em 0;
  text-align: center;
}
.news-detail figure img {
  max-width: 96%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 #e1e1ef40;
}
.news-detail figcaption {
  margin-top: 0.3em;
  color: #958DFF;
  font-size: 0.93em;
}
@media (max-width: 600px) {
  .news-detail {
    padding: 2em 2em;
}
  .news-detail h1 {
  font-size: 1.5rem;
}
  .news-video iframe {
  height: 200px;
}
}

/* 詳細ページの日付フォントサイズ調整 */
.news-detail .news-date {
  font-size: 14px !important;
  text-align: right !important;
}
/* target="_blank" リンクサイズ調整 */
a[target="_blank"] {
  font-size: 2.5rem !important;
  line-height: 1.5;
  padding: 4px 8px;
  color: #564fff;
}
/* 16:9 アスペクト比を維持するための設定 */
.news-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* 9/16 */;
}
.news-video iframe,
.news-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* レスポンシブ最終調整：h1 > link > p > date の比率維持しつつ文字を大きめに */
@media (max-width: 600px) {
  .news-detail h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  a[target="_blank"] {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }
  .news-detail article p {
    font-size: 1.25rem !important;
    line-height: 1.6;
  }
  .news-detail .news-date {
    font-size: 1.125rem !important;
    line-height: 1.4;
  }
  .news-detail figure figcaption,
  .news-detail }
/* Center images and prevent upscaling in detail page */
.news-detail img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
