/* ==================================================
   お知らせ・院長ブログ・メディア情報 共通
================================================== */

.news-hub {
  width: 100%;
  max-width: 100%;
  color: #1F3656;
  background: var(--news-page-bg);
  background-position: center top;
  overflow-x: hidden;
}

.news-hub *,
.news-hub *::before,
.news-hub *::after {
  box-sizing: border-box;
  min-width: 0;
}

.news-hub--blog {
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.news-hub--media {
  background-repeat: repeat;
  background-size: auto;
}

.news-inner {
  width: 1200px;
  max-width: 92%;
}


/* ==================================================
   MV・導入文
================================================== */

.news-mv {
  background-color: #FFFFFF;
}

.news-intro {
  padding-top: 80px;
}

.news-intro__text {
  max-width: 760px;
  color: #1F3656;
  line-height: 1.9;
}

.news-intro__text p {
  margin: 0;
}

/* ==================================================
   一覧切り替え
================================================== */

.news-list-section {
  padding: 120px 0;
}

.news-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.news-switcher a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 14px 20px;
  color: #2E5EA7;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #AFC9EA;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.news-switcher a.is-current {
  color: #FFFFFF;
  background-color: #4F8FD4;
  border-color: #4F8FD4;
}

.news-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -32px 0 56px;
}

.news-category-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 16px;
  color: #555555;
  background-color: rgba(255, 255, 255, 0.86);
  border: 1px solid #CBD6EA;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.news-category-nav a.is-current {
  color: #FFFFFF;
  background-color: #2E5EA7;
  border-color: #2E5EA7;
}

.news-category-nav span {
  color: #4F8FD4;
  font-size: 12px;
}

.news-category-nav a.is-current span {
  color: #FFFFFF;
}


/* ==================================================
   記事カード
================================================== */

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
}

.news-card {
  min-width: 0;
  overflow: hidden;
  background-color: #FFFFFF;
  border: 1px solid rgba(79, 143, 212, 0.16);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(31, 54, 86, 0.08);
}

.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.news-card__thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #E3F0FA;
}

.news-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #4F8FD4;
  background: linear-gradient(135deg, #FFFFFF 0%, #E3F0FA 100%);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 32px;
}

.news-card__meta,
.news-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: #555555;
  font-size: 14px;
  line-height: 1.5;
}

.news-card__type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.news-card__type--news {
  color: #2E5EA7;
  background-color: #E3F0FA;
}

.news-card__type--blog {
  color: #876D35;
  background-color: #F4F0EA;
}

.news-card__type--media {
  color: #555555;
  background-color: #EEEEEE;
}

.news-card__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.news-card__terms li {
  color: #c6a86a;
  font-size: 13px;
  line-height: 1.5;
}



.news-card__title {
  margin: 20px 0 0;
  color: #0C3D7D;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.news-card__excerpt {
  margin: 16px 0 0;
  color: #555555;
  font-size: 16px;
  line-height: 1.9;
}

.news-card__more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
  color: #2E5EA7;
  font-size: 15px;
  font-weight: 700;
}

.news-card__more span {
  color: #878CCF;
  font-size: 20px;
  font-weight: 400;
}

.news-empty {
  padding: 56px 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  text-align: center;
}


/* ==================================================
   ページ送り
================================================== */

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 72px;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 8px 14px;
  color: #2E5EA7;
  background-color: #FFFFFF;
  border: 1px solid #AFC9EA;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.news-pagination .current {
  color: #FFFFFF;
  background-color: #4F8FD4;
  border-color: #4F8FD4;
}


/* ==================================================
   詳細ページ
================================================== */

.news-single__section {
  min-height: 600px;
  padding: 120px 0;
}

.news-single__section > .news-single__inner {
  width: 1000px;
  max-width: 92%;
}

.news-single__article {
  width: 100%;
  max-width: 100%;
  padding: 64px;
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(31, 54, 86, 0.08);
}

.news-single__header {
  padding-bottom: 36px;
  border-bottom: 1px solid #CBD6EA;
}

.news-single__header .news-card__terms {
  margin-top: 16px;
}

.news-single__title {
  margin: 24px 0 0;
  color: #0C3D7D;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.55;
}

.news-single__content {
  margin-top: 48px;
  color: #1F3656;
  line-height: 2;
}

.news-single__content > * + * {
  margin-top: 24px;
}

.news-single__content h2 {
  margin-top: 64px;
  padding-bottom: 14px;
  color: #0C3D7D;
  border-bottom: 2px solid #CBD6EA;
  font-size: 28px;
  line-height: 1.55;
}

.news-single__content h3 {
  margin-top: 48px;
  color: #2E5EA7;
  font-size: 23px;
  line-height: 1.6;
}

.news-single__content ul,
.news-single__content ol {
  padding-left: 1.5em;
}

.news-single__content ul {
  list-style: disc;
}

.news-single__content ol {
  list-style: decimal;
}

.news-single__content a {
  color: #2E5EA7;
  text-underline-offset: 4px;
}

.news-single__content img {
  max-width: 100%;
  height: auto;
}

.news-single__content iframe,
.news-single__content video {
  display: block;
  width: 100%;
  max-width: 100%;
}

.news-single__content iframe[src*="youtube.com"],
.news-single__content iframe[src*="youtube-nocookie.com"] {
  height: auto;
  aspect-ratio: 16 / 9;
}

.news-single__content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.news-single__content pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
}

.news-single__navigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
  margin-top: 48px;
}

.news-single__navigation > div:last-child {
  text-align: right;
}

.news-single__navigation a {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.news-single__back {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  color: #FFFFFF;
  background-color: #4F8FD4;
  border-radius: 14px;
  text-align: center;
}


/* ==================================================
   Hover
================================================== */

@media (hover: hover) and (pointer: fine) {

  .news-switcher a:hover {
    color: #FFFFFF;
    background-color: #4F8FD4;
    border-color: #4F8FD4;
  }

  .news-category-nav a:hover {
    color: #FFFFFF;
    background-color: #2E5EA7;
    border-color: #2E5EA7;
  }

  .news-category-nav a:hover span {
    color: #FFFFFF;
  }

  .news-card__link:hover .news-card__image {
    transform: scale(1.04);
  }

  .news-card__link:hover .news-card__title,
  .news-single__navigation a:hover {
    color: #4F8FD4;
  }

}


/* ==================================================
   Tablet
   768px - 1024px
================================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

  .news-hub {
    font-size: 17px;
  }

  .news-list-section,
  .news-single__section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .news-intro {
    padding-top: 80px;
  }

  .news-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .news-card__body {
    padding: 28px;
  }

  .news-single__article {
    padding: 48px 40px;
  }

}


/* ==================================================
   Smartphone
   767px以下
================================================== */

@media screen and (max-width: 767px) {

  .news-hub {
    font-size: 16px;
  }

  .news-inner {
    width: auto;
    max-width: none;
    margin-right: 20px;
    margin-left: 20px;
  }

  .news-single__section > .news-single__inner {
    width: auto;
    max-width: none;
    margin-right: 20px;
    margin-left: 20px;
  }

  .news-list-section,
  .news-single__section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .news-intro {
    padding-top: 80px;
  }

  .news-switcher {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 48px;
  }

  .news-switcher a {
    min-height: 56px;
    font-size: 16px;
  }

  .news-category-nav {
    gap: 8px;
    margin: -24px 0 40px;
  }

  .news-card-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .news-card__body {
    padding: 28px 20px;
  }

  .news-card__title {
    font-size: 20px;
  }

  .news-card__excerpt {
    font-size: 16px;
  }

  .news-pagination {
    margin-top: 48px;
  }

  .news-single__article {
    padding: 40px 20px;
    border-radius: 18px;
  }

  .news-single__title {
    font-size: 26px;
  }

  .news-single__content {
    margin-top: 36px;
  }

  .news-single__content h2 {
    margin-top: 48px;
    font-size: 23px;
  }

  .news-single__content h3 {
    margin-top: 40px;
    font-size: 20px;
  }

  .news-single__navigation {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }

  .news-single__navigation .news-single__back {
    grid-column: 1 / -1;
    grid-row: 1;
  }

}


/* ==================================================
   Small Smartphone
   374px以下
================================================== */

@media screen and (max-width: 374px) {

  .news-inner {
    margin-right: 16px;
    margin-left: 16px;
  }

  .news-single__section > .news-single__inner {
    margin-right: 16px;
    margin-left: 16px;
  }

  .news-card__body,
  .news-single__article {
    padding-right: 16px;
    padding-left: 16px;
  }

  .news-card__meta,
  .news-single__meta {
    gap: 8px;
  }

  .news-pagination .page-numbers {
    min-width: 42px;
    min-height: 42px;
    padding-right: 11px;
    padding-left: 11px;
  }

}
