@charset "UTF-8";

/*
Theme Name: hnabarwp
Description: 三重県立名張高等学校 WP テーマ
 */

/* === 全体にかかる設定 =============== */

:root {
  --accent_color01: #b90443;
  --base_color02: #eeeeec;
  /* ニュースカテゴリー */
  --news_cat01: #8dc25b;
  --news_cat02: #d8843b;
  --news_cat03: #2d95da;

  --accent_color01_hover: #df155b;

  /* ボタンの角丸 */
  --btn_rad: 5px;
}

/* 基本設定 */
html {
  font-size: 16px;
}

body {
  color: #111;
  font-weight: 400;
  font-style: normal;
  font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
  line-height: 1.6;
}

/* ラッパー */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.swiper-slide {
  overflow: hidden;
  border-radius: 20px;
}

/* コンテナの左右の余白 */
.container {
  padding: 0 15px;
}

main .container {
  margin-bottom: 3rem;
}

/* 画像の幅 */
img {
  width: 100%;
  margin: 0 auto;
}

img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.capt {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
}
/* リスト */
ul li {
  text-indent: -1rem;
  list-style: none;
  margin-left: 1rem;

}

ul li::before {
  display: inline-block;
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50vh;
  background-color: var(--accent_color01);
  margin: auto 10px 3px 0;
}

ol li {
  text-indent: -1.8rem;
  margin-left: 1.8rem;
  list-style: none;
  counter-reset: unset;
  counter-increment: cnt;
}

ol li::before {
  content: counter(cnt)".";
  margin-right: 10px;
  color: var(--accent_color01);
  font-weight: 600;
  font-size: 1.2rem;
}

/* pdfアイコン */

.pdf_icon01::after,
.pdf_icon02::after {
  display: inline-block;
  content: "";
  width: 0.9rem;
  height: 1rem;
  background: url(images/pdf_icon01.svg) no-repeat center;
  margin: auto 0 -1px 5px;
}

.pdf_icon02::after {
  background: url(images/pdf_icon02.svg) no-repeat center;
}

/* 外部リンクアイコン */

.gaibulink_icon01::after,
.gaibulink_icon02::after {
  display: inline-block;
  content: "";
  width: 0.9rem;
  height: 1rem;
  background: url(images/link_icon01.svg) no-repeat center;
  margin: auto 0 -1px 5px;
}

.gaibulink_icon02::after {
  background: url(images/link_icon02.svg) no-repeat center;
}

/* === ヘッダー =============== */

/* ヘッダー */
.header_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header_container div:first-child {
  padding: 1rem 0;
  width: 70%;
  max-width: 340px;
}

/* わかりやすいように色をつけてみた */
header {
  background-color: #fff;
}

header div {
  background-color: #fff;
}


/* サイト名 */
.site_name a {
  display: inline-block;
  padding: 15px;
  font-size: 1.6rem;
}

/* サブメニュー */
.sub_menu {
  display: none;
}

.sub_menu ul {
  margin: 0;
  list-style: none;
  text-align: right;
  font-size: 0;
  line-height: 0;
}

.sub_menu li {
  display: inline-block;
  margin: 0;
  margin-left: 1rem;
  text-indent: 0;
}

.sub_menu li::before {
  display: none;
}

.sub_menu li:not(:last-child) {
  margin-right: 13px;
}


.sub_menu a {
  display: inline-block;
  border-radius: 50vh;
  font-size: 0.9rem;
  line-height: 1;
  font-feature-settings: "palt";
  letter-spacing: 0.05rem;
  position: relative;
  font-weight: 500;
}

.sub_menu a:link,
.sub_menu a:visited {
  color: #333;
}

.sub_menu a:hover,
.sub_menu a:active {
  color: #aaa;
}

.sub_menu a::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  background: url(images/sub_menu_icon.svg) no-repeat center;
  margin-right: 5px;
}

.sub_menu li:last-child a {
  background-color: var(--accent_color01);
  color: #fff;
  padding: 0.6rem 0.8rem;
  font-weight: 400;
}

.sub_menu li:last-child a::before {
  display: none;
}

.sub_menu li:last-child a:link,
.sub_menu li:last-child a:visited {
  color: #fff;
}

.sub_menu li:last-child a:hover {
  background-color: var(--accent_color01_hover);
  color: #fff;
  transition: all 0.3s ease 0s;
}

/* === メインメニュー =========== */
.main_menu {
  margin-bottom: 1rem;
  display: none;
}

.main_menu ul {
  padding: 0 15px 1rem;
  display: flex;
  margin: 10px auto 30px;
  max-width: 1200px;
  list-style: none;
}

.main_menu li {
  flex: 1 1 205px;
  margin: 0;
  text-align: center;
  text-indent: 0;

}

.main_menu li::before{
  display: none;
}


.main_menu a {
  font-weight: 500;
  padding: 0 0 5px;
  color: #000 !important;
  line-height: 1;
  letter-spacing: 0.1rem;
  font-size: 0.9em;
  font-feature-settings: "palt";
  border-right: 2.5px dotted #ccc;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
}

.main_menu a span {
  display: block;
  width: fit-content;
  margin: auto auto 0;
  position: relative;
}

/* .main_menu a span::before {
  display: block;
  position: absolute;
  content: "";
  width: 0;
  height: 2px;
  border-radius: 2px;
  background-color: var(--accent_color01);
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s;
} */

.main_menu li:first-child a {
  border-left: 2.5px dotted #ccc;
}

/* アイコン */
.main_menu img {
  width: 90%;
  height: 55px;
  display: block;
  margin: 10px auto 0.6rem;

}

.main_menu .seikatu_icon,
.main_menu .bukatu_icon {
  height: 65px;
}

.main_menu .sinro_icon {
  height: 75px;
  margin-top: 0;
}


/* メインメニュー　リンク背景 */
/* .main_menu a:hover span::before {
  width: 100%;
} */

/*=== ハンバーガーメニュー ======================*/

.hmg_memu {
  position: fixed;
  inset: 0;
  background-color: #fff;
  z-index: 9990;
  display: none;
}

.hmg_memu ul {
  margin: 70px auto 0;
  list-style: none;
  text-align: center;
  padding: 0 15px;
  max-width: 700px;
}

.hmg_memu ul li {
  margin-left: 2rem;
  text-indent: 0;
}

.hmg_memu ul li::before{
  display: none;
}

.hmg_memu li a {
  display: block;
}

/* メイン */

.hmg_memu ul:first-child {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;

}

.hmg_memu ul:first-child li {
  margin: 0;
}

.hmg_memu ul:first-child a {
  display: block;
  background-color: #fff;
  height: 100%;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 10px 10px;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 10px;
}

.hmg_memu ul:first-child a img {
  display: block;
  margin: 0 auto 0.5rem;
  width: 70%;
  height: 50px;
}

/* サブ */

.hmg_memu ul:last-child {
  margin-top: 35px;
}

.hmg_memu ul:last-child li {
  margin: 0 0 1rem 0;
}

.hmg_memu ul:last-child li a {
  display: block;
  padding: 10px;
  background: linear-gradient(0deg, #fff 1px, transparent 1px);
  position: relative;
}

.hmg_memu ul:last-child li a::after {
  display: block;
  content: "";
  width: 20px;
  height: 1rem;
  background: url(images/arrow01.svg) no-repeat center;
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
}

.hmg_memu ul:last-child li a:link,
.hmg_memu ul:last-child li a:visited {
  color: #fff;
}

.hmg_memu ul:last-child li a:hover {
  opacity: 0.7;
}

/* お問い合わせ・アクセス */
.hmg_memu ul:last-child li:last-child {
  margin-top: 3rem;
}

.hmg_memu ul:last-child li:last-child a {
  background: #fff;
  border-radius: 50vh;
}

.hmg_memu ul:last-child li:last-child a::after {
  background: url(images/arrow02.svg) no-repeat center;
  right: 20px;
}

.hmg_memu ul:last-child li:last-child a:link,
.hmg_memu ul:last-child li:last-child a:visited {
  color: #111;
}

.hmg_memu ul:last-child li:last-child a:hover {
  color: #aaa;
  opacity: 1;
}


/* ハンバーガーボタン */
.hmg_btn {
  position: absolute;
  z-index: 9995;
  top: 0;
  right: 0;
  padding: 20px 15px;
}

.hmg_btn span {
  display: block;
  background-color: #333;
  width: 40px;
  height: 2px;
  border-radius: 2px;
  padding-top: 2px;
  margin-bottom: 10px;
}

.hmg_btn span:not(:nth-child(2)) {
  transition: all 0.3s ease;
}

.hmg_btn span:last-child {
  margin-bottom: 0;
}

/* クリックされたら */
.hmg_memu.clicked {
  display: block;
  background-color: var(--accent_color01);
}

.hmg_btn.clicked {
  position: fixed;

}

.hmg_btn.clicked span {
  background-color: #fff;
}

.hmg_btn.clicked span:nth-child(1) {
  transform: rotate(30deg);
  width: 43px;
  position: relative;
  left: 1px;
  top: 12px;
}

.hmg_btn.clicked span:nth-child(2) {
  visibility: hidden;
}

.hmg_btn.clicked span:nth-child(3) {
  transform: rotate(-30deg);
  width: 43px;
  position: relative;
  left: 1px;
  bottom: 13px;
}



/* === パンくずリスト =============== */

.breadcrumbs ol {
  margin: 0.2rem 0 1.5rem -0.7rem;
  list-style: none;
  font-size: 0;
  line-height: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-block;
  margin-left: 0;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0;
  color: #666;
  text-indent: 0;
}

.breadcrumbs li::before{
  display: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "／";
  color: #bbb;
}

.breadcrumbs li:last-child {
  padding: 0.5rem 0.5rem;
}

.breadcrumbs a {
  display: inline-block;
  padding: 0 0.5rem;
  color: #999!important;
}

/* === 本文（メインコンテンツ部分） =============== */

/* 見出し */
h1 {
  margin: 0 -15px;
  padding: 2rem 0;
  font-size: min(7vw, 2.2rem);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.07em;
  background: var(--base_color02);
}

h2 {
  margin: 2rem 0;
  padding: 0.5rem 1rem 0.3rem 1.2rem;
  font-size: 1.4rem;
  font-weight: 500;
  border-bottom: 2px solid #aaa;
  letter-spacing: 0.05em;
  position: relative;
}

h2::after {
  display: block;
  content: "";
  width: 6px;
  height: 60%;
  background-color: var(--accent_color01);
  border-radius: 50vw;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

h3 {
  color: var(--accent_color01);
  margin: 1rem 0;
  font-size: 1.4rem;
  font-weight: 500;
}

h4 {
  margin: 1rem 0;
  font-size: 1.2rem;
  font-weight: 500;
}

/* 強調 */
strong {
  color: #333;
  font-weight: bold;
  background-image: linear-gradient(transparent 40%, #a8fade 40%);
  padding: 0 5px 2px;
  font-size: 1.05em;
}

/* 導入文 */
.lead {
  font-size: 1.1rem;
}

/* 囲み */
.kakomi {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border: 1px solid #ccc;
}

.kakomi h5 {
  margin: 0 0 1rem 0;
}

.kakomi p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.kakomi p:last-child {
  margin-bottom: 0;
}

/* 注釈 */
.hosoku {
  margin-bottom: 2rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.hosoku ul {
  margin: 2rem 0;
  list-style: none;
}

.hosoku li {
  margin-left: 1rem;
  margin-bottom: 0.3rem;
  text-indent: -1rem;
}

.hosoku li::before {
  content: '※';
  margin-right: 0.2rem;
}

/* テーブル */
table {
  width: 100%;
  margin-bottom: 3rem;
  border-collapse: collapse;
  border: none;
}

th,
td {
  padding: 1rem 0.5rem;
  font-size: 0.9rem;
  border: none;
  border-bottom: 1px solid #d3afbb;
}

th {
  background-color: transparent;
  text-align: left;
  vertical-align: top;
  font-weight: bold;
  color: var(--accent_color01);
  font-weight: 500;
}

/* 幅狭の表 */
.s_table table {
  max-width: 500px;
  margin: 0 auto 3rem;
}

.s_table table th {
  width: 120px;
}

.bunkatsu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.text_center {
  text-align: center;
}

.text_end {
  text-align: right;
}

.align_items_center {
  display: flex;
  align-items: center;
}

.align_items_flex_end {
  display: flex;
  align-items: flex-end;
}

.img_fluid {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

/* リストの中のリンクがpdfの時 */

.link_area li a[href$=".pdf"]::after {
  content: "";
  display: inline-block;
  width: 15px;
  height: 1rem;
  background: url(images/pdf_icon03.svg) no-repeat center;
  margin: auto 0 -1px 5px;
}

.link_area li a[href$=".pdf"]:hover::after {
  background: url(images/pdf_icon04.svg) no-repeat center;
}

/* ボタンエリア */
.btn_area ul {
  list-style: none;
}

.btn_area li {
  margin: 0 0 2rem;
  padding: 0;
  text-indent: 0;
}

.btn_area li::before {
  display: none;
}

.btn_area li a {
  
  display: block;
  padding: 10px 35px 10px 15px;
  border-radius: var(--btn_rad);
  position: relative;
}


.btn_area li a::after {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  content: "";
  display: block;
  width: 15px;
  height: 1rem;
  background: url(images/arrow04.svg) no-repeat center;
}

/* PDFファイルだったら */

.btn_area li a[href$=".pdf"]::after {
  width: 16px;
  height: 1.1rem;
  background: url(images/pdf_icon03.svg) no-repeat center;
}

.btn_area li a:link,
.btn_area li a:visited {
  border: 1px solid var(--accent_color01);
  color: var(--accent_color01);
}

.btn_area li a:hover {
  border: 1px solid var(--accent_color01_hover);
  color: var(--accent_color01_hover);
}
/* PDFファイルだったら */
.btn_area li a[href$=".pdf"]:hover::after {
  background: url(images/pdf_icon04.svg) no-repeat center;
}



/* === ホームボタン =============== */

.home_btn {
  text-align: center;
  margin: 3rem 0;
}

.home_btn a {
  display: inline-block;
  margin: 0;
  padding: 1.1rem 1.8rem;
  line-height: 1;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* === お知らせ ======= */
.news_area {
  background-color: #fff;
  padding: 3rem 20px 2rem;
  line-height: 1.6;
  margin: 15px 0;
}

.news_container {
  border-top: 1px solid #ccc6a8;
}

.news_item {
  display: grid;
  gap: 3px 0;
  grid-template-columns: 95px auto;
  grid-template-rows: 30px auto;
  border-bottom: 1px solid #ccc6a8;
  padding: 1rem 0;
}

/* 日付 */
.news_item>div:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  color: #928c89;
  font-size: 0.95rem;
}

/* カテゴリー */
.news_item>div:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

/* テキスト */
.news_item>div:nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}

.news_item .cat {
  text-align: center;
  height: 1.5rem;
  font-size: 0.9rem;
  display: inline-block;
  width: 100%;
  color: #fff;
  background-color: #999;
  width: 90px;
  background-color: #e15c8b;
}

/* 
.news_item .cat.oshirase {
  background-color: var(--news_cat01);
}

.news_item .cat.topic {
  background-color: var(--news_cat02);
}

.news_item .cat.kekka {
  background-color: var(--news_cat03);
} */

.news_item a {
  display: inline-block;
  padding: 0;
  color: #333;
}

.news_item a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ニュース ページ */

:root {
  --news_page: 30px;
}

.news_pagenation {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.news_pagenation span {
  display: inline-block;
  width: fit-content;
  height: var(--news_page);
  min-width: var(--news_page);
  text-align: center;
  margin: 0 3px;
  position: relative;
}

.news_pagenation span a::after {
  position: absolute;
  content: "";
  z-index: 1;
  inset: 0;
}
.news_pagenation .prev,
.news_pagenation .next {
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.2;
}

.news_pagenation .prev img,
.news_pagenation .next img {
  display: block;
  width: calc(var(--news_page) * 0.5);
}

.news_pagenation .prev {
  margin-right: 5px;
  transform: scale(-1, 1);
}

.news_pagenation .number {
  background-color: var(--accent_color01);
  color: #fff;
}

.news_pagenation .number:has(a) {
  background-color: transparent;
}

.news_pagenation .number a:hover {
  color: #333;
}

.news_pagenation .prev:has(a),
.news_pagenation .next:has(a) {
  opacity: 1;
}

.news_pagenation span:has(a):hover,
.news_pagenation span:has(a):hover {
  opacity: 0.5;
}


/* リンク有りのお知らせ */
.news_item:has(a) div:last-child {
  padding-right: 50px;
  position: relative;
}

.news_item:has(a) div:last-child::after {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  content: "";
  display: block;
  width: 15px;
  height: 1rem;
  background: url(images/arrow03.svg) no-repeat center;
}

/* お知らせ一覧へのボタン */
.news_list_btn {
  margin-top: 2rem;
  text-align: center;
  
}

.news_list_btn a {
  display: inline-block;
  padding: 10px 20px;
  color: #333;
  border: 1px solid var(--accent_color01);
  border-radius: 50px;
}

.news_kiji {
  max-width: 700px;
  margin: 0 auto;
}

.news_kiji img {
  margin-bottom: 2rem;
}

/* === フッター =============== */
footer {
  background-color: #452a2a;
  color: #fff;
  padding: 30px 0 35px 0;
  margin-top: auto;
}

.bunkatsu_footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.logo_item {
  flex: 0 1 20%;
}

.address_item {
  flex: 0 1 auto;
}

.address_item h4 {
  font-size: 1.1rem;
  margin: 0;
  padding: 0;
}

address {
  margin: 1rem 0 0;
  padding: 0;
}

.copyright_item {
  text-align: center;
  flex: 0 1 100%;
  margin: 30px 0 0 0;
  opacity: 0.5;
}

.address_item p,
.copyright_item p {
  margin: 0;
  padding: 0;
  line-height: 1.4;
  font-size: 0.9em;
}


/* === リンク色 =============== */

/* 標準 */
a:link {
  color: var(--accent_color01);
  text-decoration: none;
  transition: all 0.3s ease 0s;
}

.container a:link {
  text-decoration: none;
  transition: all 0.3s ease 0s;
}

a:visited {
  color: var(--accent_color01);
}

a:hover {
  color: var(--accent_color01_hover);
}

a:active {
  color: var(--accent_color01_hover);
}

/* 黒いリンク文字 */
.site_name a:link,
.main_menu a:link,
.home_btn a:link {
  color: #333;
  text-decoration: none;
}

.site_name a:visited,
.main_menu a:visited,
.home_btn a:visited {
  color: #666;
}

.site_name a:hover,
.main_menu a:hover,
.home_btn a:hover {
  color: #36f;
}

.site_name a:active,
.main_menu a:active,
.home_btn a:active {
  color: #f30;
}

/* ボタン ホバー時 */

.home_btn a:hover {
  color: #fff;
  background-color: #ccc;
}

/* ボタン */
.btn {
  text-align: center;
}

/* 四角いボタン */
.btn a {
  display: inline-block;
  line-height: 1.6;
  padding: 1rem 1.5rem;
  color: #fff;
  background-color: #333;
  border-radius: 50px;
}

.btn a:hover {
  background-color: #666;
  transition: all 0.3s ease 0s;
}

.btn a:active {
  background-color: #ed6d46;
  transition: unset;
}

/* hoverで下にラインが出る */

.linear_line span {
  position: relative;
}

.linear_line span::before {
  display: block;
  position: absolute;
  content: "";
  width: 0;
  height: 2px;
  border-radius: 2px;
  background-color: var(--accent_color01);
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s;
} 

.linear_line:hover span::before {
  width: 100%;
}

/* === 学校行事 =============== */

.event {
  width: 80%;
  margin: 0 auto 2rem;
}

.event span {
  font-size: 3em;
}

.event h3 {
  line-height: 1;
  margin-bottom: 1rem;
}

.event img {
  display: block;
  border-radius: 1rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.event div:has(img) {
  margin: 0 auto 1rem;
}

/* === 校訓・校章・校歌 =============== */

.kokun_bun2 img {
  margin-bottom: 1rem;
}

.kouka {
  width: 100%;
  margin: 2rem 0 3rem;
}

.kokun_bun3 {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding-right: 30px;
}


/* === メディアクエリ =============== */

@media (min-width:400px) {
  .logo_item {
    flex: 0 1 70px;
  }

  .address_item {
    flex: 0 1 auto;
  }
}

@media (min-width:600px) {
  body {
    line-height: 2;
  }

  .news_item {
    gap: 0 20px;
  }
}

@media (min-width:750px) {

  .header_container div:first-child {
    width: 100%;
  }

  /* フッター */
  .bunkatsu_footer {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    justify-content: center;
  }

  .logo_item {
    flex: initial;
  }

  .address_item {
    flex: initial;
  }

  .address_item h4 {
    font-size: 1.2rem;
  }

  .copyright_item {
    text-align: end;
    grid-column: 3;
    grid-row: 1;
    margin-top: auto;

  }

  .copyright_item br {
    display: none;
  }

  /* ボタンエリア */
  .btn_area ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 20px;
    margin-bottom: 0;
  }

  /* 2列ボタン */
  .btn_area.b02 ul {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 1列ボタン */
  .btn_area.b01 ul {
    display: block;
  }

  /* 1列ボタン */
.btn_area.b01 li a {
  display: block;
  width: fit-content;
  padding: 10px 45px 10px 20px;
  margin-left: auto;
  margin-right: auto;
}

/* === パンくずリスト =============== */

.breadcrumbs ol {
  margin-bottom: 2rem;
}


    /* === 学校行事 =============== */

    .event {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0 30px;
    }

    .event div:has(img) {
    margin: 0 0 1rem;
    }

    .event h3 {
      margin-top: 0;
    }

    /* === 校訓・校章・校歌 =============== */

    .kokun_bun2 {
      display: flex;
      justify-content: space-between;
      align-items: center;

    }

    .kokun_bun2>div {
      flex-basis: 48%;
    }

    .kokun_bun3 {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-right: 0;
}


    /* === 沿革=============== */

    .sekihi { 
      margin-bottom: 2rem;   
      display: flex;
      gap: 30px;
      justify-content: center;
    }

    .sekihi>:is(p,div,img) {
      flex-basis: 31%;
    }

    .sekihi p {
      margin-bottom: 0;
    }
    

    

}

@media (min-width:992px) {
   /* === メインメニュー =========== */
  .main_menu {
    display: block;
  }

  /* サブメニュー */
  .sub_menu {
    display: block;
  }

  /*=== ハンバーガーメニュー ======================*/
  /* ハンバーガーボタン */
  .hmg_btn {
    display: none;
  }

  /* === 校訓・校章・校歌 =============== */

.kokun_bun3 {
  display: flex;
  justify-content: space-between;
  align-items: center;

}

.kokun_bun3 p {
  flex-basis: 31%;
}
}

@media (min-width:1025px) {

  /* 見出し */
h1 {
  margin-top: -10px;
  margin-left: calc((-100vw + 995px) / 2);
  margin-right: calc((-100vw + 995px) / 2);
}

  .main_menu a {
    font-size: 0.9rem;
  }
  .container {
    width: 1025px;
    margin: 0 auto;
  }

  header .container,
  footer .container {
    width: 100%;
    max-width: 1200px;
  }


  .banner_container {
    margin: 10px auto;
  }

  /* === お知らせ ======= */

  .news_item {
    grid-template-columns: 100px 95px auto;
    grid-template-rows: auto;
    gap: 0;
    padding: 1.5rem 0;
  }

  /* 日付 */
  .news_item>div:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  /* カテゴリー */
  .news_item>div:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  /* テキスト */
  .news_item>div:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }

  .news_title {
  margin: 0 0 0 1rem;
}

}

/* Alignments */
.alignleft {
  /*rtl:ignore*/
  float: left;
  /*rtl:ignore*/
  margin-right: 1rem;
}

@media only screen and (min-width: 768px) {
  .alignleft {
    /*rtl:ignore*/
    margin-right: calc(2 * 1rem);
  }
}

.alignright {
  /*rtl:ignore*/
  float: right;
  /*rtl:ignore*/
  margin-left: 1rem;
}

@media only screen and (min-width: 768px) {
  .alignright {
    /*rtl:ignore*/
    margin-left: calc(2 * 1rem);
  }
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* POST META */

.post-meta-single-top .post-meta {
	justify-content: center;
}

.post-meta-wrapper {
	margin-top: 2rem;
	margin-right: auto;
	margin-left: auto;
	padding-bottom: 2rem;
	max-width: 58rem;
	width: 100%;
}

.post-meta {
	color: #6d6d6d;
	display: flex;
	flex-wrap: wrap;
	font-size: 1.5rem;
	font-weight: 500;
	list-style: none;
	margin: -1rem 0 0 -2rem;
}

.post-meta li {
	flex-shrink: 0;
	letter-spacing: -0.016875em;
	margin: 1rem 0 0 2rem;
	max-width: calc(100% - 2rem);
}

.post-meta a {
	color: inherit;
	text-decoration: none;
}

.post-meta a:focus,
.post-meta a:hover {
	text-decoration: underline;
}

.post-meta .meta-wrapper {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
}

.post-meta .meta-icon {
	flex-shrink: 0;
	margin-right: 1rem;
}

.sticky .post-sticky {
	color: inherit;
}

.post-meta .post-author .meta-icon svg {
	width: 1.6rem;
	height: 1.8rem;
}

.post-meta .post-categories .meta-icon svg {
	width: 1.8rem;
	height: 1.7rem;
}

.post-meta .post-comment-link .meta-icon svg {
	width: 1.8rem;
	height: 1.8rem;
}

.post-meta .post-date .meta-icon svg {
	width: 1.7rem;
	height: 1.8rem;
}

.post-meta .post-edit .meta-icon svg {
	width: 1.8rem;
	height: 1.8rem;
}

.post-meta .post-sticky .meta-icon svg {
	width: 1.5rem;
	height: 1.8rem;
}

.post-meta .post-tags .meta-icon svg {
	width: 1.8rem;
	height: 1.8rem;
}

.post-meta svg * {
	fill: currentColor;
}
