@charset "utf-8";

:root {
  --text-color :#2D2D2D; /* 文字色 */
  --text-color2 :#5e5e5e;
  --ac-color :#9B001B; /* 見出し文字色 */
  font-size: 62.5%; /* 文字サイズルート指定*/
}
html {
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-scroll-behavior: smooth;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}
body {
  min-width: 100vw;
  position: relative;
  overflow-x: hidden;
  font-size: 1.6rem;
  font-family: "Noto Sans JP", serif;
  color :var(--text-color);
  letter-spacing: 1px;
  line-height: 1.6;
}
/* TB以上文字スタイル調整 */
@media screen and (min-width: 768px),print {
  body {
    font-size: 1.8rem;
    letter-spacing: 0.8px;
  }
}

/* ===== フェードイン ===== */
[data-aos="fade"] {
  opacity: 0;
  transition: opacity 2s ease;
}
[data-aos="fade"].aos-animate {
  opacity: 1;
}

/* 上に戻るボタン*/
.pagetop {
  position: fixed;
  right: 3%;
  bottom: 8%;
  z-index: 100;
  opacity: 1;
  transition: opacity 0.8s;
}
.pagetop__text {
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  font-size: 1.4rem;
  font-weight: bold;
}
.pagetop__text::before {
  content: "";
  display: inline-block;
  border-bottom: 2px solid var(--ac-color);
  width: 20px;
  transform: rotate(120deg);
  position: absolute;
  left: 15px;
  top: -31px;
}
.pagetop__text::after {
  content: "";
  display: inline-block;
  border-bottom: 2px solid var(--ac-color);
  width: 100px;
  transform: rotate(90deg);
  position: absolute;
  left: -20px;
  bottom: 48px;
}
.pagetop-visible {
  opacity: 1;
} 
@media screen and (max-width: 820px),print {
.pagetop__text::before {
  width: 20px;
  left: 15px;
  top: -29px;
}
.pagetop__text::after {
  width: 90px;
  left: -15px;
  bottom: 50px;
}
.pagetop {
  right: 9vw;
  bottom: 5vh;
}
}


/* 共通グローバルナビゲーション */
#header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 5;
  height: 70px;
   background-color: var(--ac-color);
}
.global-navi {
  display: flex;
  align-items: center;
  padding: 2%;
  position: relative;
}
.global-navi__logo {
  display: flex;
}
.logo {
  width: 10%;
}
.global-navi__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70%;
}
.university_logo {
  width: 12%;
}
.anniversary_text{
  font-size: 1.4rem;
  color: #fff;
  margin-left: -2em;
}
#hamburger__btn {
  display: block;
}
/* ハンバーガーメニューボタン */
#hamburger__btn {
  position: absolute;
  top: 10%;
  right: 8%;
  width: calc(100% / 8);
  height: 80%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  cursor: pointer;
}
#hamburger__btn > span {
  display: block;
  background-color: #fff;
  border-radius: 10px;
  width: 60%;
  height: 2px;
  transition: all 0.5s ease;
}
#hamburger__btn.on > span:nth-of-type(1) {
  transform: translateY(calc(50% + 12px)) rotate(45deg);
}
#hamburger__btn.on > span:nth-of-type(2) {
  opacity: 0;
  transform: scale(0);
}
#hamburger__btn.on > span:nth-of-type(3) {
  transform: translateY(calc(-50% - 11px)) rotate(-45deg);
}
#global-navi__menu {
  position: absolute;
  width: 60vw;
  height: 100%;
  top: 70px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction:column-reverse;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 8% 0 0 8%;
  transition: all 0.5s ease;
  right: -500px;
}
#global-navi__menu.on {
  right: 0;
}
.global-navi__list {
  width: 100%;
  display: flex;
  font-size: 1.9rem;
  justify-content: center;
  flex-direction: column;
}
.global-navi__item + .global-navi__item {
  margin-top: 30px;
}

  /* iPad以上 */
@media only screen and (min-width: 768px)  {
#hamburger__btn {
  display: none;
}

.global-navi__logo {
  width: fit-content;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 0 5%;
}
.university_logo > img {
  width: 80%;
}
.global-navi__title {
  width: fit-content;
  height: fit-content;
  margin: 0 8%;
  padding: 0;
  flex-direction: row;
  justify-content: left;
}

.anniversary_text {
  color: var(--ac-color);
  font-size: 1.7rem;
  font-weight: bold;
}
.anniversary_text > span {
  font-size: 2.6rem;
}
#header {
  height: 80px;
  position: fixed;
  background-color: #fff;
}
.global-navi {
  padding:0;
  position: fixed;
  top: 0;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}
#global-navi__menu {
  font-weight: bold;
  position: static;
  width: 150%;
  height: 80px;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  /* margin-right: 4%; */
}
.global-navi__list {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 10%;
  margin: 0;
  width: min(400px, 100%);
  font-size: 1.9rem;
}
.global-navi__item + .global-navi__item {
  margin: 0;
}
.global-navi__item > a > .global-navi__items{
  padding: 0;
  width: max-content;
  min-width: 120px;
  text-align: center;
}
.global-navi__items::before {
  content: "■";
  color: var(--ac-color);
  margin-right: 8px;
}
.global-navi__item {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.global-navi__item:last-child {
  padding-right: 40px;
}
.dropdown__lists {
  width: 100%;
  position: absolute;
  top: 70px;
  left: -50px;
  padding-left: 20px;
  visibility: hidden;
  opacity: 0;
  transition: all .3s;
}
.global-navi__item:hover .dropdown__lists {
  visibility: visible;
  opacity: 1;
}
.dropdown__list {
  transition: all .3s;
  width: max(100%, 300px);
  display: block;
  padding-left: 16px;
  background-color: #fff;
  position: relative;
  border-bottom: 1px solid #7e7e7e;
}
.dropdown__list:nth-child(5) span {
  padding-left: 1em;
}
.dropdown__list:hover {
  background-color: #e9e9e9;
}
.dropdown__list a {
  width: inherit;
  padding: 8px 0;
}
}

/* 縦書き見出し */
.index1 {
  background-color: var(--ac-color);
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  color: #fff;
  line-height: 2.0;
}
/* 下線見出し1 */
.index2 {
    width: fit-content;
  position: relative;
}
.index2::after {
  content: "";
  display: block;
  width: 50%;
  position: absolute;
  right: 25%;
  bottom: -2vh;
  border-bottom: 2px solid var(--ac-color);
}
/* 下線見出し2 */
.index3 {
  color: var(--ac-color);
  font-weight: 600;
  border-bottom: 1px solid var(--ac-color);
}

/* 共通背景 */
.main-background {
  background-image: url("../image/bg.jpg");
  background-size: 160px auto;
}
.container {
  width: 90vw;
  max-width: 1200px;
  margin: 0 auto;
}


/* 共通ボタン */
.btn {
  border: 2px solid var(--ac-color);
  color: var(--ac-color);
  width: fit-content;
  padding: 1% 5% 1% 2.5%;
  font-weight: bold;
  position: relative;
  cursor: pointer;
  transition: background-color 1s, color 1s;
  display: flex;
  align-items: center;
}
.btn::after, .btn::before{
  content: "";
  display: block;
  border-bottom: 2px solid var(--ac-color);
  position: absolute;
  width: 18%;
  top: 55%;
  right: 10%;
  transition: border-bottom-color 1s ease-in-out 0.2s;
}
.btn::before {
  width: 6%;
  top: 48%;
  transform: rotate(30deg);
 transition: border-bottom-color 1s ease-in-out 0.2s;
}
.btn:hover {
  background-color: var(--ac-color);
  color: #fff;
}
.btn:hover::before,
.btn:hover::after {
   border-bottom: 2px solid #fff;
}

@media screen and (max-width: 1024px),print {
  .btn {
    width: 50%;
  }
}
@media screen and (max-width: 767px),print {
  .btn {
    width: 100%;
  }
}

/* テキストスタイル（改行brタグ省略、右揃え） */
.text-style {
  white-space: pre-line;
  text-align: justify;
}
.--pc {
  display: block;
}
.--sp {
  display: none;
}
@media screen and (max-width: 767px),print {
  .btn {
    width: 100%;
  }
  .--pc {
    display: none;
  }
  .--sp {
    display: block;
  }
}

/* パンくずリスト */
.breadcrumbs {
  margin: 160px auto 16px 16px;
  font-size: 1.3rem;
}
.breadcrumbs__list {
  display: flex;
  padding-left: 0;
}
.breadcrumbs__item {
  display: flex;
}
.breadcrumbs__item:not(:first-child) {
  margin-left: 8px;
}
.breadcrumbs__item:not(:last-child)::after {
  content: ">";
  display: block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  color: var(--ac-color);
}
.breadcrumbs__item a {
  text-decoration: underline;
}
@media screen and (max-width: 767px),print {
.breadcrumbs {
  width: 90vw;
  margin: 100px auto 8px;
}
.breadcrumbs__list {
  flex-wrap: wrap;
}
}

/* モーダル */
.modal__item {
  position: relative;
}
.btn__example {
  width: fit-content;
  border: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
}
.btn__example:hover {
  cursor: pointer;
}
.modal__image {
  width: 100%;
  max-height: 400px;
}
.--cover {
  object-fit: cover;
}
.--contain {
  object-fit: contain;
}
.--none {
  object-fit: none;
}
.modal__caption {
  text-align: center;
}
.modal__imagebox {
  text-align: center;
}
.modal__icon {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 0;
  box-shadow: 1px 1px 1px 0px rgba(178, 178, 178, 0.7);
}

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7); 
  transition: all 1s linear;
}
.modal__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* height: fit-content; */
  height: 80vh;
  max-height: 1000px;
}
.modal__container-img {
  width: 100%;
  height: min(90%, 1000px);
  object-fit: contain;
  margin-bottom: 16px;
}
.modal__content {
  background-color: #fff;
  overflow-y: auto;
  padding: 1%;
  width: min(70vw, 1500px);
  height: 90vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: show .3s linear 0s;
  display: flex;
  flex-direction: column;
  justify-content: start;
}
.modal__top {
  display: inline-block;
  position: absolute;
  right: 5px;
  top: 5px;
}

.modal__close {
  color: var(--text-color);
  font-size: 3.2rem;
  padding: 0 8px;
}
.modal__close:hover, .modal__close:focus {
  cursor: pointer;
}
.modal__txt {
  text-align: center;
}
@keyframes show {
  from{
    opacity: 0;
  }
}

@media screen and (max-width: 1024px),print {
.modal__image {
  height: 200px;
  margin-bottom: 4px;
}
.modal__caption {
  font-size: 1.4rem;
}
.modal__container {
  height: auto;
}
.modal__content {
  width: min(90vw, 1000px);
  height: 70vh;
  display: flex;
  justify-content: center;
}
.modal__container-img {
  width: min(90%, 800px);
  height: auto;
  max-height: 60vh;
}
}



/* フッター */
.footer {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 1% 0;
  text-align: center;
  justify-content: flex-end;
  position: relative;
  z-index: 0;
  background-color: #fff;
}
.footer__logo > a > img {
  width: min(100%, 200px);
  margin: 0 auto 16px;
}
.footer__copyright {
  color: #B5B5B5;
}
@media screen and (max-width: 767px),print {
.footer__copyright {
  font-size: 1.0rem;
}
}

