/* @import url(http://fonts.googleapis.com/earlyaccess/notosansjp.css); */

.news-grid-body {
  padding: 1em 0px 0px 0px;
  display: flex;
  justify-content: space-around;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
  width: 100%;
}

.news-post {
  border: 3px solid var(--color-main);
  border-top-left-radius: 5px 5px;
  border-top-right-radius: 30px 30px;
  border-bottom-right-radius: 40px 40px;
  border-bottom-left-radius: 40px 40px;
  color: var(--gray-7);
  padding: 1em;
  flex-basis: 31%;
  position: relative;
  transition: opacity .3s;

  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-post:hover {
  border: 3px solid rgba(151, 244, 164, 0);
  background: rgba(151, 244, 164, 0);
}

.news-post .caption {
  font-weight: 500;
  font-size: 130%;
  text-align: center;
  padding-top: 110px;
  color: var(--color-sub2);
}

.news-post .mask {
  width: 100%;
  height: 100%;
  position: absolute;
  /* 絶対位置指定 */
  top: 0;
  left: 0;
  opacity: 0;
  /* マスクを表示しない */

  /* マスクは半透明 */
  background-color: rgba(79, 139, 194, 0.6);

  border-top-left-radius: 5px 5px;
  border-top-right-radius: 30px 30px;
  border-bottom-right-radius: 40px 40px;
  border-bottom-left-radius: 40px 40px;

  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.news-post:hover .mask {
  opacity: 1;
  /* マスクを表示する */
}

.news-post a:hover {
  color: #777777;
}

.news-post dt {
  margin-bottom: 10px;
  font-size: 1em;
  font-weight: 700;
}

.news-post dd {
  font-size: 0.8em;
  font-weight: 500;
}

.news-post dd a {
  font-weight: 500;
  color: var(--gray-7);
}

.news-post dd a:hover {
  color: var(--color-sub2);
}

@media screen and (width <=1023px) {
  .news-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    width: 95%;
  }

  .smartphone-none {
    display: none;
  }

  /* .news-post dt {
    font-size: 1.2em;
  } */

  .news-post dt {
    /* font-size: 1.2em; */
    font-size: 32px;
  }

  .news-post dd {
    /* font-size: 1.2em; */
    font-size: 28px;
  }

}

/* =========================
   Pop: News Grid
   ========================= */
body.page-index .news-post {
  background: rgba(255, 255, 255, 0.90);
  border: 2px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transition: transform .18s ease, box-shadow .18s ease;
}

body.page-index .news-post:hover {
  transform: translateY(-6px) rotate(-0.25deg);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

/* body.page-index .news-post .mask{
  background: linear-gradient(120deg, rgba(53,167,255,0.65), rgba(0,209,178,0.55), rgba(255,217,61,0.45));
} */

body.page-index .news-post .caption {
  /* color: var(--pop-pink); */
  text-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

/* tape corners */
body.page-index .news-post::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 14px;
  width: 70px;
  height: 26px;
  background: rgba(255, 217, 61, 0.65);
  transform: rotate(-6deg);
  border-radius: 8px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.10));
}


/* =========================
   Thesis: YouTube Video Cards
   ========================= */
.thesis-video-grid {
  width: min(100%, 980px);
  margin: 18px auto 64px;
}

.thesis-video-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(240px, 0.9fr);
  align-items: stretch;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 247, 255, 0.94));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.thesis-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16);
  border-color: rgba(79, 139, 194, 0.18);
}

.thesis-video-card:focus-visible {
  outline: 3px solid rgba(79, 139, 194, 0.45);
  outline-offset: 4px;
}

.thesis-video-card__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 220px;
  background: #dfeffc;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.thesis-video-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.26));
}

.thesis-video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.thesis-video-card:hover .thesis-video-card__thumb img {
  transform: scale(1.04);
}

.thesis-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.thesis-video-card__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--color-main);
}

.thesis-video-card__duration {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.64);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

.thesis-video-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 4px 4px 4px 0;
}

.thesis-video-card__eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(79, 139, 194, 0.12);
  color: var(--color-main);
  font-family: 'Fredoka-Medium', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  letter-spacing: .04em;
}

.thesis-video-card__title {
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  font-weight: 700;
  line-height: 1.45;
  color: #222222;
}

.thesis-video-card__text {
  font-size: 0.98rem;
  line-height: 1.85;
  color: #4a4a4a;
}

.thesis-video-card__cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-main), #73a9db);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(79, 139, 194, 0.28);
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 28, 0.76);
  backdrop-filter: blur(6px);
}

.video-modal__dialog {
  position: relative;
  width: min(92vw, 1120px);
  margin: 4vh auto;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.video-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: #333333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.video-modal__title {
  padding-right: 56px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: #222222;
}

.video-modal__description {
  margin-top: 8px;
  margin-bottom: 16px;
  color: #555555;
  line-height: 1.8;
}

.video-modal__player {
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-modal__player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

body.is-video-modal-open {
  overflow: hidden;
}

@media screen and (width <=1023px) {
  .thesis-video-grid {
    width: 100%;
    margin-bottom: 48px;
  }

  .thesis-video-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 24px;
  }

  .thesis-video-card__thumb {
    min-height: 180px;
  }

  .thesis-video-card__play {
    width: 72px;
    height: 72px;
  }

  .thesis-video-card__play::before {
    border-width: 14px 0 14px 22px;
  }

  .video-modal__dialog {
    width: min(94vw, 1120px);
    margin: 3vh auto;
    padding: 16px;
    border-radius: 24px;
  }

  .thesis-video-card__eyebrow,
  .thesis-video-card__title,
  .thesis-video-card__cta {
    font-size: 28px;
    margin-left: 12px;
  }
}





/* 2026年3月23日追加　ここから */
/* .news-grid {
  align-items: stretch;
}

.news-post a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.news-post dt {
  line-height: 1.65;
}

@media screen and (width <= 1023px) {
  .news-grid-body {
    padding-top: 0;
  }

  .news-grid {
    gap: 14px;
    padding: 12px 4px 10px;
  }

  .news-post {
    padding: 14px;
    border-radius: 28px;
  }

  .news-post::before {
    width: 58px;
    height: 22px;
    left: 12px;
    top: -9px;
  }

  .news-post dt {
    font-size: 0.98rem;
    margin-bottom: 2px;
  }

  .news-post .caption {
    padding-top: 0;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
  }

  .thesis-video-grid {
    margin-top: 4px;
    margin-bottom: 40px;
  }

  .thesis-video-card__body {
    gap: 8px;
  }

  .thesis-video-card__text {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .thesis-video-card__cta {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .video-modal__title {
    line-height: 1.45;
  }

  .video-modal__description {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

@media screen and (width <= 767px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 0 8px;
  }

  .news-post {
    padding: 12px;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  }

  .news-post dt {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .news-post .mask {
    background-color: rgba(79, 139, 194, 0.5);
  }

  .thesis-video-grid {
    width: 100%;
    margin: 8px auto 28px;
  }

  .thesis-video-card {
    padding: 12px;
    gap: 12px;
    border-radius: 20px;
  }

  .thesis-video-card__thumb {
    min-height: 160px;
    border-radius: 18px;
  }

  .thesis-video-card__play {
    width: 62px;
    height: 62px;
  }

  .thesis-video-card__play::before {
    border-width: 12px 0 12px 20px;
  }

  .thesis-video-card__duration {
    right: 12px;
    bottom: 12px;
    font-size: 12px;
    padding: 5px 10px;
  }

  .thesis-video-card__eyebrow {
    font-size: 12px;
    padding: 5px 10px;
  }

  .thesis-video-card__title {
    font-size: 1.12rem;
    line-height: 1.5;
  }

  .thesis-video-card__text {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .thesis-video-card__cta {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }

  .video-modal__dialog {
    width: calc(100vw - 16px);
    margin: 8px auto;
    padding: 14px;
    border-radius: 20px;
  }

  .video-modal__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .video-modal__title {
    padding-right: 44px;
    font-size: 1.05rem;
  }

  .video-modal__description {
    margin-top: 6px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .video-modal__player {
    border-radius: 16px;
  }
} */
/* 2026年3月23日追加　ここまで */