@charset "utf-8";

/* フォント（新サイトのテーマと同じ Noto Sans JP + YakuHanJP） */
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/NotoSansJP-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'YakuHanJP';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/YakuHanJPs-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../font/NotoSansJP-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'YakuHanJP';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../font/YakuHanJPs-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/NotoSansJP-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'YakuHanJP';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/YakuHanJPs-Bold.woff2') format('woff2');
}

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

html {
  -webkit-text-size-adjust: 100%;
  font-family: 'YakuHanJP', 'Noto Sans JP', "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
  font-weight: 400;
}
body {
  background-color: #F0EFEC;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.read_main {
  min-height: 100vh;
}
.read_in {
  width: 100%;
  max-width: 800px;
  margin: auto;
  padding-top: 20vh;
}
h1 {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.h1sub {
  text-align: center;
  margin-top: 0.3em;
}
.box50 {
  display: flex;
  width: 100%;
  flex-direction: row;
  margin-top: 50px;
}
.box50block {
  width: 50%;
  padding: 0 10px 20px;
}
/* 画像もリンクにする（押せる範囲を広げる） */
.thumb {
  display: block;
}
.thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.linkHs,
.linkJr {
  padding: 0.5em 1.5em;
  color: #FFF;
  font-weight: 500;
  border-radius: 2em;
  border: 3px double #fff;
  display: table;
  width: auto;
  text-decoration: none;
  margin: 5px auto;
}
/* 高校＝えんじ */
.linkHs {
  background: #810D31;
}
/* 中学＝紺 */
.linkJr {
  background: #1E4184;
}
.p-copyright {
  width: 100%;
  text-align: center;
  padding: 20vh 16px 40px;
  background-color: #F0EFEC;
}

/* スマホ・タブレット */
@media screen and (max-width: 800px) {
  .read_in {
    width: 85vw;
    max-width: 400px;
    padding-top: 10vh;
  }
  h1 {
    font-size: 1.5em;
    letter-spacing: 0;
  }
  .linkJr,
  .linkHs {
    font-size: 0.9em;
  }
  .box50 {
    flex-direction: column;
    text-align: center;
    margin: 30px auto;
  }
  .box50block {
    width: 100%;
    padding: 0 0 30px;
  }
  .p-copyright {
    padding-top: 10px;
    font-size: 0.8em;
  }
}

/* 404ページ */
.nf-code {
  text-align: center;
  font-weight: 700;
  font-size: 4.5em;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #810D31;
  margin-bottom: 0.3em;
}
.nf-sp {
  display: none;
}
.nf-text {
  text-align: center;
  margin-top: 1.6em;
  line-height: 1.9;
}
.nf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 40px;
}
.nf-links a {
  margin: 0;
}
.nf-top {
  text-align: center;
  margin-top: 36px;
}
.nf-top a {
  color: #333;
}
@media screen and (max-width: 800px) {
  .nf-sp {
    display: inline;
  }
  .nf-text {
    text-align: left;
    font-size: 0.9em;
  }
  .nf-text br {
    display: none;
  }
}
