@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 2rem;
  overflow-x: hidden;
  color: #222222;
  background: #ffffff;
  font-family: YakuHanJP, "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.newsbox {
  display: block;
  width: 100%;
  margin: 0 0 3rem;
  padding: 0 0 3rem;
  border-bottom: 1px solid #cac8bc;
  background: #ffffff;
}

.newsbox:last-of-type {
  margin-bottom: 0;
}

.news0 {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.news1,
.news2 {
  margin: 0;
}

.news1 {
  color: #222222;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
}

.news2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.news2 span {
  display: inline-block;
  min-width: 0;
  padding: 0.6rem 1.5rem;
  border-radius: 3px;
  background: #f782b7;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

/* WordPressのカテゴリースラッグ別ラベル色 */
.news2 span.category-news { /* お知らせ */
  background: #f782b7;
}

.news2 span.category-recruit { /* 求人情報 */
  background: #f6aa00;
}

.news2 span.category-events { /* イベント */
  background: #54bce5;
}

.news2 span.category-updates { /* 更新情報 */
  background: #27844a;
}

.news3 {
  width: 100%;
  margin: 0 0 1.5rem;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.news3:empty {
  display: none;
}

.news4 {
  width: 100%;
  color: #222222;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

/* リセットCSSで均一化されたWordPressの見出しサイズを記事本文内だけ復元する。 */
.news4 h1,
.news4 h2,
.news4 h3,
.news4 h4,
.news4 h5,
.news4 h6 {
  margin: 1.4em 0 0.6em;
  font-weight: 700;
  line-height: 1.5;
}

.news4 h1:first-child,
.news4 h2:first-child,
.news4 h3:first-child,
.news4 h4:first-child,
.news4 h5:first-child,
.news4 h6:first-child {
  margin-top: 0;
}

.news4 h1 {
  font-size: 1.75em;
}

.news4 h2 {
  font-size: 1.5em;
}

.news4 h3 {
  font-size: 1.3em;
}

.news4 h4 {
  font-size: 1.15em;
}

.news4 h5 {
  font-size: 1.05em;
}

.news4 h6 {
  font-size: 1em;
}

.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: #f05c9d;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* PC側の新着欄はiframe内幅が約705pxになるため、600px以下だけをスマホ表示にする。 */
@media screen and (max-width: 600px) {
  body {
    padding: 0 0.2rem 1.8rem;
  }

  .newsbox {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .news0 {
    grid-template-columns: max-content minmax(0, 1fr);
    margin-bottom: 1rem;
  }

  .news1 {
    font-size: 1.5rem;
  }

  .news2 span {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
  }

  .news3 {
    margin-bottom: 1.5rem;
    font-size: 1.7rem;
  }

  .news4 {
    font-size: 1.4rem;
    line-height: 1.7;
  }
}
