@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500&display=swap");
@font-face {
  font-family: "Aahgb";
  src: url("../font/Aahgb.woff2") format("woff2");
}
@font-face {
  font-family: "kmpr6nm-sub";
  src: url("../font/kmpr6nm_sub.woff2") format("woff2");
}
@font-face {
  font-family: "HannariMin";
  src: url("../font/HannariMincho-Regular.woff2") format("woff2");
}

:root {
  --base-width: 1280px;
  --sidebar-width: 240px;
  --block-left-width: 240px;
  --text-font-size: 11px;
  --text-line-height: 18px;
  --text-text-weight: 400;
  --base-text-color: #3e3a39;
  --blue-text-color: #2ea9dd;
  --orange-text-color: #da9e61;
  --green-text-color: #67a880;
  --hover-text-color: #989898;
  --gray-zone-color: #f5f5f5;
}

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

html {
  scroll-behavior: smooth;
}
body {
  background-color: white;
  font-family: "Hiragino Kaku Gothic ProN W3", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "ヒラギノ角ゴ Pro", "ヒラギノ角ゴシック", "Noto Sans JP",
    sans-serif;
}

/* ページ全体でリンクの下線除去&ホバー時に下線アニメ*/
a:link,
a:visited {
  position: relative;
  left: 0;
  top: 0;
  text-decoration: none;
  color: var(--base-text-color);
}

/* メインコンテンツ */
main {
  background-color: white;
  width: 100%;
  /* max-width: var(--base-width); */
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  font-weight: var(--text-text-weight);
}
section {
  width: calc(100% - var(--sidebar-width));
  max-width: var(--base-width);
  margin-top: 0px;
  margin-left: var(--sidebar-width);
}
@media screen and (hover: none), (pointer: coarse), (pointer: none) {
  section {
    width: 100%;
    margin-left: 0;
  }
}
hr.partition-bar {
  border: solid 1px #cdcdcd;
  margin-top: 14px;
  margin-bottom: 40px;
}
hr.partition-bar.under-map-text {
  margin-top: 22px;
}
div.head-title {
  width: calc(100% - var(--sidebar-width));
  max-width: var(--base-width);
  margin-top: 23px;
  margin-bottom: 16px;
  font-size: 30px;
  font-weight: bold;
}
div.head-title > img {
  width: 100%;
  max-width: 520px;
}
span.title-num {
  font-size: 0.9em;
  font-family: "Aahgb";
}
span.title-word {
  font-family: "kmpr6nm-sub";
  display: inline-flex;
  transform: translate(0.1em, 0.2em);
  margin-top: 80px;
}
@media screen and (max-width: 930px) {
  div.head-title {
    width: 100%;
  }
  span.title-text {
    font-size: 24px;
  }
  span.title-num {
    font-size: 22px;
  }
  span.title-word {
    font-size: 24px;
  }
}
/* 二列用コンテナ */
div.block-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 1em;
}
div.block-left {
  width: var(--block-left-width);
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 17px;
  color: #3e3a39;
}
div.block-right {
  width: calc(100% - var(--block-left-width));
  margin-top: 17px;
}
@media screen and (max-width: 930px) {
  div.block-left,
  div.block-right {
    width: 100%;
  }
}
@media screen and (hover: none), (pointer: coarse), (pointer: none) {
  div.block-left,
  div.block-right {
    width: 100%;
    margin: 1em 1em;
  }
}
/* 見出し */
span.head-blue,
span.head-green,
span.head-orange {
  font-size: 11px;
  line-height: 20px;
}
span.head-blue {
  color: var(--blue-text-color);
}
span.head-green {
  color: var(--green-text-color);
}
span.head-orange {
  color: var(--orange-text-color);
}
/* 本文 */
p {
  max-width: 680px;
}
/* 右ブロック内のaタグリンク下にホバー時だけ下線を出す */
div.block-right a::after {
  position: absolute;
  left: 0;
  content: "";
  width: 100%;
  height: 1px;
  background: #a58f60;
  bottom: -1px;
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform 0.3s;
}
div.block-right a:hover::after {
  transform: scale(1, 1);
  transform-origin: left top;
}
div.block-right a {
  color: #231815;
}
div.block-right a:hover {
  color: #989898;
}
/* 出したくないとき用 */
div.block-right a.no-underline-anime::after {
  opacity: 0;
}

/* INFOページ お知らせ */
#announce div.ac-article {
  margin-bottom: 80px;
}
/* 日付とタイトル */
#announce span.ac-date,
#announce span.head-text {
  font-weight: bold;
}
/* 本文内テーブル */
#announce table {
  margin-left: 1em;
}
#announce table > tbody > tr > td {
  vertical-align: top;
}
#announce table > tbody > tr > td.chr-3 {
  width: 3em;
}
#announce table > tbody > tr > td.chr-4 {
  width: 4em;
}
#announce table > tbody > tr > td.chr-5 {
  width: 5em;
}
/* 添付ファイル */
#announce a.ac-file {
  margin-left: 1em;
}

/* INFOページ　学科ごとの囲み */
div.subject {
  margin-top: 80px;
}
/* INFOページ　ブロック内テーブル */
table.tbl-in-block {
  max-width: 680px;
  display: table;
  margin: 0;
}
table.tbl-in-block > tbody > tr > td {
  vertical-align: top;
  padding: 3px 0px 3px 5px;
}
/* INFOページ　出願手続きテーブルの一列目セルの横幅 */
table.application > tbody > tr > td:first-child {
  width: 10em;
}
/* INFOページ　入学試験テーブルの一行列セルの横幅 */
table.entexam > tbody > tr > td:first-child {
  width: 5em;
}
td.subject {
  width: 5em;
}

/* INFOページ オルガン　ディスポジション */
div.disposition {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
}
div.disposition ul {
  width: 160px;
  list-style: none;
  margin-right: 30px;
  margin-bottom: 30px;
}
div.disposition li > div {
  display: inline-block;
}
div.disposition li > div:nth-child(1) {
  width: 120px;
}
/* 一行目 */
div.disposition li:first-child > div:nth-child(1) {
  width: 100%;
  border-bottom: 1px solid var(--base-text-color);
}
div.disposition li > div:nth-child(2) {
  width: 30px;
  text-align: right;
}

/* INFOページ 出版物バックナンバー */
div.pub-container {
  max-width: 580px;
  margin-bottom: 1em;
}
p.publication-lastyear {
  margin-top: 1em;
}
p.publication {
  max-width: 580px;
  word-wrap: break-word;
  margin-top: 1em;
  margin-bottom: 20px;
}
a.pub-title:link,
a.pub-title:visited {
  line-height: 2em;
  color: var(--orange-text-color);
}
img.image-monograph,
img.image-jbscom {
  float: left;
  width: 80px;
  height: 80px;
  overflow: hidden;
  margin-right: 40px;
  margin-bottom: 2em;
}
br.clear {
  clear: both;
}

/* 英語ページ */
h2.eng-title {
  color: var(--blue-text-color);
  font-size: 1em;
  margin-top: 3em;
}
span.eng-info {
  display: inline-block;
  width: 10em;
}
div.eng-images {
  margin-top: 40px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
}

/* アクセスページ　連絡先項目　*/
div.acc-item {
  margin-bottom: 1.2em;
}
/* アクセスページ　メールフォーム　*/
form.mail {
  margin-top: 1.2em;
}
div.mail-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 0.8em;
}
div.mail-wrap > div:first-child {
  width: 9.2em;
}
/* アクセスページ　地図　*/
img.acc-map {
  width: 95%;
  width: calc(100% - 20px);
  max-width: 600px;
  margin-left: 10px;
}

/* サイトマップ リンクリスト */
ul.list-con {
  list-style: none;
  margin-left: 2em;
  margin-bottom: 1em;
}
ul.list-con ul {
  list-style: none;
  margin-left: 2em;
}
ul.list-etc {
  list-style: none;
}
/* 左一文字マージン */
.ml1em {
  margin-left: 1em;
}

/* トップへ戻るボタン */
div.btn-pagetop {
  width: 45px;
  margin-top: 40px;
  margin-bottom: 80px;
  margin-left: auto;
  margin-right: 80px;
}
@media screen and (max-width: 930px) {
  div.btn-pagetop {
    margin-right: 30px;
  }
}
div.btn-pagetop div {
  width: 42px;
  margin: 0 auto 5px auto;
}
div.btn-pagetop div:first-child {
  height: 14px;
}
div.btn-pagetop div:first-child {
  background-image: url("../images/cmn_pagetop_arrow.png");
}
div.btn-pagetop:hover div:first-child {
  background-image: url("../images/cmn_pagetop_arrow_hover.png");
  transition: transform 0.3s ease-out;
  transform: translateY(-6px);
}
div.btn-pagetop div:nth-child(2) {
  height: 7px;
}
div.btn-pagetop div:nth-child(2) {
  background-image: url("../images/cmn_pagetop_text.png");
}
div.btn-pagetop:hover div:nth-child(2) {
  background-image: url("../images/cmn_pagetop_text_hover.png");
}

/* モバイル用ヘッダー */
#header {
  display: flex;
  position: -webkit-fixed;
  position: fixed;
  top: 0;
  left: 0;
  /* 幅はメッセージ表示用に最初は広げておくが、JS内で1pxに縮める */
  width: 100%;
  height: 62px;
  background-color: rgba(255, 255, 255, 0);
  z-index: 20;
  font-size: 9px;
  text-shadow: white 0 0 10px;
  font-family: "游明朝", "YuMincho", "Hiragino Mincho ProN W3",
    "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "MS P明朝",
    "MS 明朝", serif;
}
#header.pc {
  display: none;
  font-size: 14px;
}
/* ハンバーガーメニューボタン */
#menu-btn-check {
  display: none;
}
label.menu-btn {
  position: fixed;
  top: 5px;
  left: calc(100vw - 75px);
  display: block;
  height: 45px;
  width: 45px;
  justify-content: center;
  align-items: center;
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
}
label.menu-btn span.bar,
label.menu-btn span.bar:before,
label.menu-btn span.bar:after {
  content: "";
  position: absolute;
  display: block;
  height: 1px;
  width: 22px;
  background-color: rgba(55, 55, 55, 1);
  position: absolute;
}
label.menu-btn span.bar {
  top: 24px;
  left: 12px;
  transition: background-color 0.3s 0s;
  background-color: rgba(55, 55, 55, 1);
}
label.menu-btn span.bar:before {
  transition: bottom 0.3s 0s, transform 0.3s 0s;
  bottom: 6px;
  transform: rotate(0);
}
label.menu-btn span.bar:after {
  transition: top 0.3s 0s, transform 0.3s 0s;
  top: 6px;
  transform: rotate(0);
}
/* メニューオープン時　真ん中の線を透明にし、残り２本を傾けてXにする */
#menu-btn-check:checked ~ label.menu-btn span.bar {
  transition: background-color 0.2s 0s;
  background-color: rgba(55, 55, 55, 0);
}
#menu-btn-check:checked ~ label.menu-btn span.bar::before {
  transition: bottom 0.5s 0s, transform 0.5s 0s;
  bottom: 0px;
  transform: rotate(45deg);
}
#menu-btn-check:checked ~ label.menu-btn span.bar::after {
  transition: bottom 0.5s 0s, transform 0.5s 0s;
  top: 0px;
  transform: rotate(-45deg);
}

/* サイドバー */
#sidebar,
#sidebar-dummy {
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  min-height: 100vh;
  position: fixed;
  display: none;
}
#sidebar-dummy {
  z-index: 12;
}
#sidebar {
  z-index: 10;
  flex-flow: column;
  justify-content: start;
  align-items: start;
  background-color: rgba(255, 255, 255, 0.9);
}
#sidebar.pc {
  width: var(--sidebar-width);
}
#sidebar-dummy.pc {
  width: calc(var(--sidebar-width) / 3 * 2.8);
}
#sidebar:hover {
  display: flex;
}

/* 2秒目に消え始めて4秒目で消える */
#sidebar.fade-out {
  animation: 2s ease-in 2s 1 forwards sidebar-fadeout;
}
@keyframes sidebar-fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
/* サイドバーを右へ動かす */
#sidebar.fade-in {
  animation: 1s ease-in-out 0s 1 forwards sidebar-rightin;
}
@keyframes sidebar-rightin {
  from {
    transform: translateX(calc(var(--sidebar-width) * -1));
  }
  to {
    transform: translateX(0);
  }
}
/* サイドバーを左へ動かす */
#sidebar.left-out {
  animation: 500ms ease-in-out 100ms 1 forwards sidebar-leftout;
}
@keyframes sidebar-leftout {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(var(--sidebar-width) * -1));
  }
}

img.menu-top-jbs {
  margin-left: 0;
  margin-right: auto;
}

#sidebar > .up {
  margin-left: 30px;
  flex-grow: 1;
}
#sidebar.pc > .up {
  width: 210px;
}

/* サイドバー共通 */
#sidebar ul {
  list-style-type: none;
  flex-flow: row wrap;
  font-family: "游明朝", "YuMincho", "Hiragino Mincho ProN W3",
    "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "MS P明朝",
    "MS 明朝", serif;
}
#sidebar.pc ul {
  flex-flow: column;
}
#sidebar a {
  text-decoration: none;
}
#sidebar a:link,
#sidebar a:visited {
  color: #281815;
}
#sidebar a:hover {
  color: #989898;
}
#sidebar span.text-cont-number {
  font-weight: bold;
  font-family: "Aahgb";
  font-size: 10px;
  letter-spacing: -0.5px;
  vertical-align: 15%;
}
#sidebar span.text-Aahgb {
  font-family: "Aahgb";
  font-weight: bold;
  font-size: 12px;
  letter-spacing: -0.5px;
  color: #281815;
}

/* メインメニュー */
#sidebar div.map-link {
  display: none;
}
#sidebar.pc div.map-link {
  display: block;
  width: calc(100% - 25px);
  margin-left: 25px;
}

/* 大項目 */
input.side-btn-check {
  display: none;
}
div.sidemenu-box {
  /* -webkit-backface-visibility: hidden;
  backface-visibility: hidden; */
  transform: translateZ(0);
  transition: all 0.3s;
}
label.page-title {
  width: 100%;
  margin-left: 10px;
  font-family: "游明朝", "YuMincho", "Hiragino Mincho ProN W3",
    "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "MS P明朝",
    "MS 明朝", serif;
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 18px;
}
/* 中項目 */
div.sidemenu-box {
  width: 100%;
  height: 0;
  overflow: hidden;
  font-size: 8px;
  line-height: 18px;
}
div.sidemenu-box > ul {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  flex-flow: row wrap;
}
#sidebar.pc div.sidemenu-box > ul {
  margin-left: 25px;
  width: 100%;
  flex-flow: column;
}
/* 中項目を開閉 */
input.side-btn-check:checked + label.page-title + div.sidemenu-box {
  height: auto;
  transition: all 0.3s;
}
#sidebar.pc
  input#block-01.side-btn-check:checked
  + label.page-title
  + div.sidemenu-box {
  height: calc(18px * 14 + 40px);
}
#sidebar.pc
  input#block-02.side-btn-check:checked
  + label.page-title
  + div.sidemenu-box {
  height: calc(18px * 7 + 40px);
}
#sidebar.pc
  input#block-03.side-btn-check:checked
  + label.page-title
  + div.sidemenu-box {
  height: calc(18px * 5 + 40px);
}
#sidebar.pc
  input#block-11.side-btn-check:checked
  + label.page-title
  + div.sidemenu-box {
  height: calc(18px * 6 + 40px);
}
#sidebar.pc
  input#block-12.side-btn-check:checked
  + label.page-title
  + div.sidemenu-box {
  height: calc(18px * 6 + 40px);
}
#sidebar.pc
  input#block-13.side-btn-check:checked
  + label.page-title
  + div.sidemenu-box {
  height: calc(18px * 3 + 40px);
}
div.sidemenu-box > ul > li {
  width: 90px;
  position: relative;
}
#sidebar.pc div.sidemenu-box > ul > li {
  width: 100%;
}

/* 小項目 */
/* モバイルでは常時出す */
.accordion {
  display: block;
  position: relative;
  top: 0;
  left: 1em;
  z-index: 11;
}
/* PCではマウスホバー時だけ出す */
#sidebar.pc .accordion {
  display: none;
  position: absolute;
  width: 95px;
  height: 180px;
  top: 0;
  left: 90px;
}
#sidebar.pc .hover-switch:hover .accordion {
  display: block;
}
.accordion:hover {
  display: block;
}
/* 無理やりマージンを取るためのdiv */
div.space {
  width: 100%;
  height: 0;
}
#sidebar.pc div.space {
  height: 40px;
}
#sidebar.pc input#block-03.side-btn-check:checked ~ div.space {
  height: 0;
}
/* サイドバー下部 */
#sidebar > .down {
  text-align: center;
  flex-grow: 0;
}

/* フッター */
footer {
  width: 100%;
  text-align: center;
  margin-top: 160px;
  margin-bottom: 80px;
}
ul.list-footer {
  display: flex;
  justify-content: center;
  list-style-type: none;
  font-family: "HannariMin", "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E",
    "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 16px;
  margin-bottom: 80px;
}
ul.list-footer a:link,
ul.list-footer a:visited {
  color: #281815;
}
ul.list-footer a:link:hover,
ul.list-footer a:visited:hover {
  color: #989898;
}
ul.list-footer > li {
  margin: 2em;
}
span.copylight {
  font-family: "HannariMin", "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E",
    "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  font-size: 7px;
  letter-spacing: 2px;
  color: #989898;
}
/* モバイルや縦長ブラウザ */
@media screen and (max-width: 780px) {
  ul.list-footer {
    flex-direction: column;
    margin-top: 1em;
    margin-bottom: 1em;
  }
  ul.list-footer > li {
    margin-top: 0.5em;
    margin-bottom: 0;
  }
}
