@charset "UTF-8";

:root {
  color-scheme: only light;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  background: #ffffff;
}

body {
  min-width: 0;
  margin: 0;
  padding: 0 1rem 2.4rem;
  overflow-x: hidden;
  color: #222222;
  background: #ffffff;
  font-family: YakuHanJP, "Noto Sans JP", sans-serif;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.newsbox {
  display: block;
  width: 100%;
  padding: 2.4rem 1.8rem;
  border-bottom: 1px solid #dceff4;
  background: #ffffff;
}

.newsbox:last-of-type {
  border-bottom: 0;
}

.news0 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin: 0 0 1rem;
}

.news1,
.news2 {
  margin: 0;
}

.news1 {
  color: #000000;
  font-weight: 500;
  line-height: 1.5;
}

.news2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.news2 span {
  display: inline-block;
  min-width: 0;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background: #005bac;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

/* WordPressのカテゴリースラッグに合わせて背景色を指定する */
.news2 span.category-news { /* お知らせ */
  background: #005bac;
}

.news2 span.category-recruit,
.news2 span.category-jobs { /* 求人情報 */
  background: #f6aa00;
}

.news2 span.category-events { /* イベント */
  background: #d58a00;
}

.news2 span.category-updates { /* 更新情報 */
  background: #27844a;
}

.news3 {
  width: 100%;
  margin: 0 0 1.5rem;
  color: #222222;
  font-weight: 500;
  line-height: 1.4;
}

.news3:empty {
  display: none;
}

.news4 {
  width: 100%;
  color: #222222;
  font-weight: 400;
  line-height: 1.7;
}

.news4 p {
  margin: 0 0 1.2rem;
}

.news4 p:last-child {
  margin-bottom: 0;
}

.news4 img,
.news4 video,
.news4 iframe {
  max-width: 100%;
  height: auto;
}

.news4 table {
  max-width: 100%;
}

.news4 a {
  color: #2f789d;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  border-bottom: none;
}

/* PCの新着エリア（外枠約878px）では、iframe内も751px以上となるためPC用文字サイズを使う。 */
@media screen and (min-width:751px) {
  .news1,
  .news2 span {
    font-size: 1.3rem;
  }

  .news3 {
    font-size: 2rem;
  }

  .news4 {
    font-size: 1.6rem;
  }
}

@media screen and (max-width:750px) {
  body {
    padding: 0 0.2rem 1.8rem;
  }

  .newsbox {
    padding: 1.8rem 0.8rem;
  }

  .news0 {
    gap: 1rem;
    margin-bottom: 0.7rem;
  }

  .news1 {
    font-size: 1.2rem;
  }

  .news2 span {
    padding: 0.35rem 1rem;
    font-size: 1.15rem;
  }

  .news3 {
    margin-bottom: 0.6rem;
    font-size: 1.6rem;
  }

  .news4 {
    font-size: 1.4rem;
    line-height: 1.75;
  }
}
