* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#MradiTopics {
  position: relative;
  width: 100%;
  background-color: #F7F8F8;
}

#MradiTopics .MradiTopics_inner {
  position: relative;
  padding: 0rem 0;
  padding-top:5rem;
  width: 73.2%;
  height: 100%;
  margin: 0 auto;
}

#MradiTopics .MradiTopics_inner h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 6.2rem;
  color: #00A0DA;
  letter-spacing: .075em;
  line-height: .8;
}

#MradiTopics h2.page {
  font-size: clamp(2rem, 1.4228rem + 2.1477vw, 4rem);
  padding-bottom: 6rem;
}

#MradiTopics h2 .h2sml {
  font-size: 2.2rem;
  color: #333333;
  letter-spacing: .05em;
  font-weight: 700;
  font-family: "Noto Sans JP";
}

#MradiTopics h2 .h2sml_sp {
  display: none;
}

/* コンテナの基本設定 */
#MradiTopics .tab-container {
  width: 100%;
  margin: 4.4rem auto;
}

/* ラジオボタンを画面から隠す */
#MradiTopics .tab-container input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* タブボタンエリアの設定 */
#MradiTopics .tab-buttons {
  display: flex;
  letter-spacing: .01em;
  background-color: #00A0DA;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

/* 各タブボタンのデザイン */
#MradiTopics .tab-buttons label {
  padding: 16px 28px;
  cursor: pointer;
  background-color: #ffffff;
  color: #00A0DA;
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: .01em;
  transition: all 0.3s ease;
  user-select: none;
  position: relative;
  width: calc(100% / 4);
  /* border: 2px solid #00A0DA; */
  text-align: center;
  max-height: 5.6rem;
  border-top: 2px solid #00A0DA;
  border-bottom: 2px solid #00A0DA;
  border-left: 2px solid #00A0DA;

}

#MradiTopics .tab-buttons label:last-of-type {
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}

#MradiTopics .tab-buttons label:first-of-type {
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

#MradiTopics .tab-buttons label:hover {
  background-color: #e3f2fd;
  color: #00A0DA;
}

/* アクティブなタブボタンのスタイル */
#tab1:checked~.tab-buttons label[for="tab1"],
#tab2:checked~.tab-buttons label[for="tab2"],
#tab3:checked~.tab-buttons label[for="tab3"],
#tab4:checked~.tab-buttons label[for="tab4"] {
  background-color: #00A0DA;
  color: white;
  box-shadow: 0 -2px 8px rgba(33, 150, 243, 0.3);
  border-radius: 1.5rem 1.5rem 0 0;
  font-size: 2.2rem;
  transform: translateY(-2rem);
  padding-top: 2.4rem;
  margin-right: -2px;

}

/* コンテンツエリアの設定 */
#MradiTopics .tab-contents {
  border-top: none;
  position: relative;
  padding: 6rem 0;
}

#MradiTopics .tab-content {
  display: none;
  /* padding: 30px; */
  animation: fadeIn 0.4s ease;
}

#tab1:checked~.tab-contents #content1,
#tab2:checked~.tab-contents #content2,
#tab3:checked~.tab-contents #content3,
#tab4:checked~.tab-contents #content4 {
  display: block;
}

/* コンテンツ */
.contents_inner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, calc((100% - 3.8rem * 2) / 3));
  gap: 3.8rem;
  justify-content: space-between;
}

.pages .contents_inner {
  row-gap: 4rem;
}

#MradiTopics .card_outer {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 2.5rem;
  box-shadow: 0 5px 11px rgba(68, 68, 68, 0.14);
  background-color: #fff;
  line-height: 1.4em;
  overflow: hidden;
}

#MradiTopics .card_outer a {
  text-decoration: none;
  color: #333333;
}

#MradiTopics .card:hover {
  cursor: pointer;
}

#MradiTopics .exlink a {
  color: #FF00C0;
  text-decoration: underline;
  padding-top: 2rem;
  display: block;
  font-size: clamp(1rem, 0.8268rem + 0.6443vw, 1.6rem);
}

#MradiTopics .card_outer a:hover,
#MradiTopics .card_outer a:visited {
  text-decoration: none;
  color: #333333;
}

#MradiTopics .exlink a:hover,
#MradiTopics .exlink a:visited {
  color: #FF00C0;
}

#MradiTopics .card_texts {
  position: relative;
  padding: 2rem 2rem 2.6rem 2rem;
}

/* --- ここから：背景ぼかしと画像配置--- */

#MradiTopics .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 480 / 300;
  /* カードの比率を固定 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
}

/* ぼかし背景 */
#MradiTopics .thumb::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(1);
  z-index: 1;
}

/* メイン画像（正方形でも全体を表示） */
#MradiTopics .thumb img {
  position: relative;
  z-index: 2;
  width: auto;
  height: 100% !important;
  max-width: 100%;
  object-fit: contain !important;
  /* 縦横比を維持して収める */
  transition: transform 0.3s ease;
  border-radius: 0 !important;
  /* 親で角丸を制御するためリセット */
}

/* ホバー時のメイン画像のみ拡大 */
#MradiTopics .card_outer:hover .thumb img {
  transform: scale(1.1);
}



.card_flex {
  display: flex;
  column-gap: .8rem;
  align-items: center;
  padding-bottom: 1.4rem;
}

#MradiTopics .category {
  font-size: 1.6rem;
  color: #fff;
  padding: .5rem .6rem;
  border-radius: 2.3rem;
  line-height: 1.2;
}

#MradiTopics .category.time_table {
  background-color: #EC6941;
}

#MradiTopics .category.event {
  background-color: #13B5B1;
}

#MradiTopics .category.program {
  background-color: #448ACA;
}

#MradiTopics .category.other {
  background-color: #9932B1;
}

#MradiTopics .date {
  color: #00A0DA;
  font-size: 1.6rem;
}

#MradiTopics .title {
  font-size: 2.214rem;
  font-weight: 500;
  line-height: 1.09em;
}

#MradiTopics .text {
  padding-top: 1.2rem;
  font-size: 1.6rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* //////NEWバッジ//////////////// */
.card_container {
  position: relative;
}

.new_badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  background-color: #fff200;
  border-radius: 50%;
  position: absolute;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  top: -1.8rem;
  z-index: 100;

}

/* 疑似要素で「NEW」を表示 */
.new_badge::before {
  content: "NEW";
  color: #1B1B1B;
  letter-spacing: 0;
  line-height: 1;
}

/* 本文テキスト制御 */
#MradiTopics .text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.6;
  max-height: 10rem;
  word-break: break-all;

}

/* 一覧ボタン */
/* ///////////////ボタン */
/* ボタン全体のコンテナ */
#MradiTopics .tab-contents .tab-content .list_btn {
  position: relative;
  /* width: 18%; */
  height: 7.5rem;
  overflow: visible;
  /* .0pxはみ出しても隠れないようにする */
  margin-top: 5rem;
  position: absolute;
  right: 0;
}

#MradiTopics .tab-contents .tab-content .list_btn img {
  height: 100%;
}

/* 【固定】土台の画像：これは動きません */
#MradiTopics .tab-contents .tab-content .list_btn img:first-of-type {
  width: 100%;
  display: block;
  transition: none;
  /* 動きを完全に無効化 */
}

/* 【移動対象】矢印を包むコンテナだけを動かす */
#MradiTopics .tab-contents .tab-content .list_btn .arrow_wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  /* 右への移動アニメーション */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 矢印画像（通常・ホバー）の重なり設定 */
#MradiTopics .tab-contents .tab-content .list_btn .arrow_wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* ふわっと切り替わるフェードアニメーション */
  transition: opacity 0.5s ease;
}

/* 初期状態 */
.arrow_normal {
  opacity: 1;
}

.arrow_hover {
  opacity: 0;
}

/* 何もない時はcomiong soon */
.coming_soon {
  width: 100%;
  text-align: center;
  padding: 4rem 0;
  font-size: clamp(1.4rem, 1.232rem + 0.64vw, 2rem);
  font-weight: bold;
  color: #999;
  letter-spacing: 0.1em;
  grid-column: 2/3;
}

/* -----------------------------------------
   ホバー時のアクション
------------------------------------------ */

/* 矢印の「箱」だけを右に20px移動させる */
#MradiTopics .tab-contents .tab-content a:hover .arrow_wrapper {
  transform: translateX(20px);
}

/* 通常の矢印を消し、ホバー用を出す（ふわっと切り替え） */
#MradiTopics .tab-contents .tab-content a:hover .arrow_normal {
  opacity: 0;
}

#MradiTopics .tab-contents .tab-content a:hover .arrow_hover {
  opacity: 1;
}

/* ボタン全体を少し暗くする（任意） */
#MradiTopics .tab-contents .tab-content a:hover {
  opacity: .9;
}


/*===============================================
●style.css 画面の横幅が1024pxまで
===============================================*/
@media screen and (max-width: 1024px) {
  #MradiTopics .MradiTopics_inner {
    width: 94.3%;
  }

  #MradiTopics h2 .h2sml_sp {
    display: none;
  }

  #MradiTopics .MradiTopics_inner h2 {
    font-size: 5rem;
  }

  #MradiTopics .tab-buttons {
    flex-wrap: wrap;
  }


  #MradiTopics .tab-buttons label {
    width: calc(100% / 2);
    /* border-right: 2px solid #00A0DA; */
    height: 6rem;
    max-height: 6rem;
    border: solid 2px #00A0da;
  }


  #MradiTopics .tab-buttons {
    display: flex;
    letter-spacing: .01em;
    background-color: #00A0DA;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    line-height: 1.6;
  }

  #tab1:checked~.tab-buttons label[for="tab1"],
  #tab2:checked~.tab-buttons label[for="tab2"],
  #tab3:checked~.tab-buttons label[for="tab3"],
  #tab4:checked~.tab-buttons label[for="tab4"] {
    margin-right: 0;
  }



  #MradiTopics .tab-buttons label:first-of-type {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  #MradiTopics .tab-buttons label:first-of-type,
  #MradiTopics .tab-buttons label:nth-of-type(2) {
    border-bottom: none;

  }

  #MradiTopics .tab-buttons label:nth-of-type(2),
  #MradiTopics .tab-buttons label:last-of-type {
    border-left: none;
  }

  #MradiTopics .tab-buttons label:last-of-type {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  /* カード */
  #MradiTopics .card_outer {
    border-radius: 1.25rem;
  }

  .contents_inner {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 3rem;

  }

  .card {
    display: grid;
    position: relative;
    width: 100%;
    padding: 2rem 1.6rem;
    grid-template-columns: 40% auto;
    column-gap: 1.6rem;
  }

  #MradiTopics .thumb {
    position: relative;
  }

  .new_badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    font-size: 1.2rem;
    top: -2rem;
    z-index: 100;
  }

  #MradiTopics .thumb {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: .4rem;
  }

  #MradiTopics .card_texts {
    padding: 0;
  }

  #MradiTopics .date {
    font-size: 1.4rem;
    border-left: 1px solid #00a0da;
    padding-left: 1rem;
  }

  #MradiTopics .category {
    font-size: 1.2rem;
    font-weight: 500;
  }

  #MradiTopics .title {
    font-size: 1.4rem;
    font-weight: 700;
  }

  #MradiTopics .text,
  .exlink {
    font-size: 1.4rem;
    font-weight: 400;
  }

  #MradiTopics .text {
    display: block;
    -webkit-box-orient: inherit;
    overflow: visible;
    /* line-height: 1.6; */
    word-break: normal;
    line-height: 1.3;
  }

  #MradiTopics .tab-contents .tab-content .list_btn {
    height: auto;
    width: 40%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
  }

  #MradiTopics .exlink a {

    padding-top: 1rem;

  }

  #MradiTopics .text {
    padding-top: 1rem;
  }

  .coming_soon {
    grid-column: auto;
  }
}

/*===============================================
●style.css 画面の横幅が500pxまで
===============================================*/
@media screen and (max-width: 500px) {

#MradiTopics .MradiTopics_inner h2 {
   font-size: 3.6rem;
}
  #MradiTopics h2 .h2sml {
    display: none;
  }

  #MradiTopics h2 .h2sml_sp {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #333333;
    letter-spacing: 0.1rem;

  }

  #MradiTopics .MradiTopics_inner {
    position: relative;
    padding: 4rem 0;
  }

  #MradiTopics .tab-buttons {
    line-height: 2;
  }

  #MradiTopics .text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.6;
    max-height: 7rem;
    word-break: break-all;
  }

  #MradiTopics .tab-contents {
    border-top: 2px solid #00a0da;
    width: 100vw;
    margin-left: -3%;
  }

  #MradiTopics .tab-content {
    width: 94.3%;
    margin-left: auto;
    margin-right: auto;
  }

  #MradiTopics .tab-buttons label {
    font-size: 1.4rem;
    border-bottom: none;
  }

  #tab1:checked~.tab-buttons label[for="tab1"],
  #tab2:checked~.tab-buttons label[for="tab2"],
  #tab3:checked~.tab-buttons label[for="tab3"],
  #tab4:checked~.tab-buttons label[for="tab4"] {
    font-size: 1.5rem;
  }

  #MradiTopics .category.time_table {
    letter-spacing: -1.2px;

  }

  #MradiTopics .tab-contents .tab-content .list_btn {
    height: 4.5rem;
    transform: translateX(0);
    position: relative;
    margin-top: 4rem;
    margin-left: auto;
    margin-right: auto;
  }

  #MradiTopics .text,
  .exlink {
    font-size: 1.2rem;
  }
}