@charset "utf-8";
/* 共通CSS */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --green1: #4CAF81;
  --green2: #45B6B6;
  --green3: #47A0A0;
  --green4: #4CAF56;
  --green5: #A1BF3A;
  --green6: #D0EDDF;
  --gray1: #515151;
  --gray2: #777777;
  --gray3: #919191;
  --white: #fff;
}

body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: #fff;
  color: var(--gray1);
  font-family: 'Roboto','Noto Sans JP', sans-serif;
  font-size: 100%;
  font-weight: 500;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --sb-track-color: #d0eddf;
  --sb-thumb-color: #4caf81;
  --sb-size: 12px;
}

body:has(.is-active) {
  overflow: hidden;
}

body::-webkit-scrollbar {
  width: var(--sb-size);
}

body::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 6px;
}

body::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 6px;
  border: 2px solid #d0eddf;
}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  }
}

a {
  position: relative;
  color: var(--green2);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .3s;
}

a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1em;
  background: transparent url(../img/icon_link_blue.svg) bottom right / 0.88em auto no-repeat;
}

@media (hover: hover) {
  a:hover,
  a:focus {
    color: var(--green1);
    font-weight: 700;
  }

  a[target="_blank"]:hover::after,
  a[target="_blank"]:focus::after {
    background-image: url(../img/icon_link_green.svg);
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  overflow: auto;
  display: flex;
  flex-direction: column;
  width: max(300px, 20.8vw);
  min-height: 100vh;
  padding: max(70px, 4%) max(32px, 2.1%) max(95px, 5.8%);
  background-color: var(--green1);
  --sb-track-color: #d0eddf;
  --sb-thumb-color: #4caf81;
  --sb-size: 12px;
}

header::-webkit-scrollbar {
  width: var(--sb-size);
}

header::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 6px;
}

header::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 6px;
  border: 2px solid #d0eddf;
}

@supports not selector(::-webkit-scrollbar) {
  header {
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  }
}

.header__logo img {
  width: 90%;
  margin: 0 auto;
}

.hamburger {
  display: none;
}

.menu__wrapper {
  flex: 1;
  display: grid;
  align-items: center;
  padding: max(40px, 2.1vw) 0;
}

.menu__list {
  position: relative;
  display: grid;
  gap: max(40px, 2.1vw);
  width: 100%;
}

.menu__item a {
  display: block;
  padding: 0.25em 0 0.2em;
  color: var(--white);
  font-size: max(1.125rem, 1.04vw);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.menu__item a span {
  display: block;
  font-size: max(0.875rem, 0.832vw);
  font-weight: 500;
}

.menu__magic-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: max(3.5rem, 3.28vw);
  border-top: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  pointer-events: none;
  transition: transform 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.menu__list li:nth-child(2).current ~ .menu__magic-line {
  transform: translateY(max(6rem, 5.38vw));
}

.menu__list li:nth-child(3).current ~ .menu__magic-line {
  transform: translateY(max(12rem, 10.72vw));
}

.menu__list li:nth-child(4).current ~ .menu__magic-line {
  transform: translateY(max(18rem, 16.14vw));
}

main {
  position: relative;
  z-index: 998;
  display: block;
  min-height: 100vh;
  padding-left: max(300px, 20.8vw);
  border-bottom: max(3.3rem, 2.75vw) solid var(--green6);
}

.content {
  overflow: hidden;
  min-height: 100vh;
  padding-bottom: 120px;
  background: transparent url(../img/bg_pc.svg) center top / 100% auto repeat-y;
}

p {
  font-size: max(1rem, 0.936vw);
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 1001;
  width: max(300px, 20.8vw);
  background-color: var(--green6);
}

footer::after {
  content: "";
  position: absolute;
  top: min(-49px, -2.55vw);
  left: 11px;
  width: max(50px, 2.6vw);
  height: max(50px, 2.6vw);
  background: transparent url(../img/footer.svg) center center / 100% auto no-repeat;
}

footer small {
  display: block;
  padding: 0.8em;
  color: var(--gray3);
  font-size: max(0.75rem, 0.624vw);
  line-height: 1.4;
  text-align: center;
}

@media all and (max-width: 1600px) {
  .header__logo img {
    width: 100%;
  }
}

@media all and (max-width: 1366px) {
  footer::after {
    top: -39px;
    left: 15px;
    width: 40px;
    height: 40px;
  }
}

@media all and (max-width: 1024px) {
  header {
    bottom: auto;
    width: 100%;
    min-height: auto;
    padding: 11.25px 15px;
  }

  .header__logo a {
    display: block;
    width: 178px;
  }

  .hamburger {
    position: absolute;
    top: 12px;
    right: 12px;
    display: block;
    width: 36px;
    height: 36px;
    background-color: var(--white);
    border-radius: 50%;
    color: var(--green1);
    font-size: 0.5rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
  }

  .hamburger::after {
    content: "MENU";
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
  }

  .hamburger span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--green1);
    border-radius: 2px;
    transition: top .3s, transform .3s;
  }

  .hamburger span:nth-child(1) {
    top: 8px;
  }

  .hamburger span:nth-child(2) {
    top: 13px;
  }

  .hamburger span:nth-child(3) {
    top: 18px;
  }

  .hamburger.is-active::after {
    content: "CLOSE";
  }

  .hamburger.is-active span:nth-child(1) {
    top: 13px;
    transform: translateX(-50%) rotate(45deg);
  }

  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-active span:nth-child(3) {
    top: 13px;
    transform: translateX(-50%) rotate(-45deg);
  }

  .menu__wrapper {
    position: fixed;
    top: 59px;
    left: 0;
    bottom: 0;
    overflow: auto;
    width: 100%;
    height: calc(100vh - 59px);
    padding: 15px 15px 30px;
    background-color: var(--green1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .menu__wrapper.is-active {
    opacity: 1;
    visibility: visible;
  }

  main {
    min-height: calc(100vh - 52.8px);
    padding-top: 60px;
    padding-left: 0;
    border-bottom: none;
  }

  footer {
    position: relative;
    width: 100%;
  }
}

@media all and (max-width: 767px) {
  .content {
    min-height: calc(100vh - 52.8px);
    padding-bottom: 80px;
    background-image: url(../img/bg_sp.svg);
  }

  p {
    font-size: 0.875rem;
  }
}

/* TOPページ */
.mv__wrapper {
  position: relative;
  display: grid;
  place-items: center;
  padding: 15.6vw 0;
  background: #BAE7B8 url(../img/mv_tree.svg) center top / auto 100% no-repeat;
}

.mv__wrapper::before,
.mv__wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 115%;
  background: transparent url(../img/mv_tree_dot1_pc.svg) left top / auto 100% no-repeat;
  pointer-events: none;
}

.mv__wrapper::after {
  background-image: url(../img/mv_tree_dot2_pc.svg);
  background-position: right top;
}

.mv__title {
  width: 100%;
}

.mv__title img {
  width: max(min(70%, 780px), 51.5%);
  margin: 0 auto;
}

.catch__wrapper {
  position: relative;
  padding: max(80px, 4.18vw) 0 max(140px, 7.7vw);
  background: transparent url(../img/catch_pc.svg) bottom center / max(1200px, 100%) auto no-repeat;
  font-size: max(1.25rem, 1.25vw);
  text-align: center;
}

.catch__wrapper p {
  max-width: 48em;
  margin: 0 auto;
  line-height: 1.375;
  letter-spacing: 0.01em;
}

.catch__wrapper p:nth-child(2) {
  max-width: 43em;
  margin-top: 1em;
  letter-spacing: 0.025em;
}

.catch__wrapper span {
  display: inline-block;
}

.catch__wrapper + .content {
  min-height: auto;
}

.information-list li {
  display: flex;
  gap: 1em;
  font-size: max(1rem, 0.936vw);
}

.information-list li:not(:last-child) {
  padding-bottom: 0.6em;
}

.information-list time {
  color: var(--gray3);
  word-break: keep-all;
}

@media all and (max-width: 1024px) {
  .mv__wrapper {
    min-height: 350px;
  }

  .mv__title img {
    width: 80%;
    max-width: 570px;
  }

  .catch__wrapper {
    padding: 60px 0 calc(60px + 5.3vw);
    background-size: 100% auto;
  }
}

@media all and (max-width: 767px) {
  .catch__wrapper {
    padding: 40px 0 calc(40px + 7.5vw);
    background-image: url(../img/catch_sp.svg);
    font-size: 1rem;
  }

  .information-list li,
  .information-list time {
    display: block;
    font-size: 0.875rem;
  }
}

@media all and (max-width: 520px) {
  .mv__wrapper::before,
  .mv__wrapper::after {
    height: 120%;
    background-image: url(../img/mv_tree_dot1_sp.svg);
  }

  .mv__wrapper::after {
    background-image: url(../img/mv_tree_dot2_sp.svg);
  }

  .catch__wrapper {
    background-image: url(../img/catch_sp.svg);
  }
}

/* 共通パーツ・下層ページ */
.inner {
  padding: 0 max(32px, 4.2vw);
}

.title {
  margin: max(80px, 4.18vw) 0 max(40px, 2.09vw);
  padding: 1.15em 0 0 2.5em;
  background: transparent url(../img/title.svg) center left / 2.18em auto no-repeat;
  color: var(--gray3);
  font-size: max(1.5rem, 1.665vw);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.title span {
  display: block;
  font-size: max(1.25rem, 1.25vw);
  font-weight: 500;
  letter-spacing: 0.025em;
}

.subtitle {
  margin: max(80px, 4.18vw) 0 0.5em;
  padding: 0 max(32px, 4.2vw) 1.75em max(48px, 5.66vw);
  background: transparent url(../img/subtitle_pc.svg) bottom left / max(1024px, 100%) auto no-repeat;
  font-size: max(1.25rem, 1.46vw);
}

hr {
  margin: max(80px, 4.18vw) 0;
  padding: max(32px, 2.35vw) 0;
  background: transparent url(../img/hr_pc.svg) center center / max(1024px, 100%) auto no-repeat;
  border: none;
}

.link-list li {
  font-size: max(1.125rem, 1.04vw);
}

.link-list li:not(:last-child) {
  padding-bottom: 1em;
}

.link-list a {
  display: inline-block;
  padding: 0.15em 0 0.15em 2em;
  background: transparent url(../img/icon_link_list.svg) top left / 1.6em auto no-repeat;
  color: var(--green1);
  font-weight: 700;
  line-height: 1.375;
  text-decoration: none;
  transition: transform .3s;
}

.link-list a[target="_blank"]::after {
  background-image: url(../img/icon_link_green.svg);
}

.faculty-list li {
  position: relative;
  padding-left: 1.15em;
  font-size: max(1.25rem, 1.25vw);
  font-weight: 700;
  line-height: 1.375;
}

.faculty-list li:not(:last-child) {
  padding-bottom: 1em;
}

.faculty-list li::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background-color: var(--green1);
}

.faculty-list li a {
  display: block;
  width: fit-content;
  margin-top: 0.2em;
  font-size: max(1rem, 0.936vw);
  font-weight: 500;
}

.faculty-list li a br {
  display: none;
}

.caution {
  color: var(--gray3);
  font-size: max(0.875rem, 0.832vw);
  font-weight: 400;
  line-height: 1.25;
}

.faculty-list + .caution {
  margin-top: max(1.25rem, 1.25vw);
}

.thesis-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 1.1em;
  color: var(--gray2);
  font-size: max(1.125rem, 1.04vw);
}

.thesis-list span:nth-child(2) {
  width: calc(100% - 6em);
  color: var(--gray1);
  font-size: max(1.25rem, 1.25vw);
  font-weight: 700;
}

.tag-doctor,
.tag-master,
.tag-bachelor {
  display: inline-block;
  margin-right: 0.5em;
  margin-bottom: 0.25em;
  padding: 0.15em 0.75em 0;
  background-color: var(--green3);
  border-radius: 100vmax;
  color: var(--white);
}

.tag-master {
  background-color: var(--green4);
}

.tag-bachelor {
  background-color: var(--green5);
}

.text-email {
  margin: 1em 0 0.25em;
  word-break: break-all;
}

.access-dl dt {
  color: var(--gray3);
  font-size: max(1.125rem, 1.04vw);
  font-weight: bold;
}

.access-dl dd {
  margin-bottom: 1.3em;
  font-size: max(1rem, 0.936vw);
}

.access-dl + .link-list {
  margin-top: 2em;
}

.caution + .caution {
  margin-top: 0.3em;
}

@media (hover: hover) {
  .link-list a:hover,
  .link-list a:focus {
    transform: translateX(0.6em);
  }
}

@media all and (max-width: 1366px) {
  .faculty-list li span {
    display: block;
  }
}

@media all and (max-width: 1024px) {
  .title {
    margin: 60px 0 30px;
  }

  .subtitle {
    margin-top: 60px;
  }

  hr {
    margin: 60px 0;
  }
}

@media all and (max-width: 767px) {
  .inner {
    padding: 0 15px;
  }

  .title {
    margin: 40px 0 24px;
  }

  .subtitle {
    margin: 40px 0 16px;
    padding: 0 15px 4.25vw 32px;
    background-image: url(../img/subtitle_sp.svg);
    background-size: 100% auto;
  }

  hr {
    margin: 40px 0;
    padding: 4.6vw 0;
    background-image: url(../img/hr_sp.svg);
    background-size: 100% auto;
  }

  .link-list li {
    font-size: 1rem;
  }

  .faculty-list li {
    font-size: 1.125rem;
  }

  .faculty-list li::before {
    top: 0.3em;
  }

  .faculty-list li a {
    font-size: 0.875rem;
  }

  .faculty-list + .caution {
    margin-top: 1.125rem;
  }

  .thesis-list li {
    margin-bottom: 1.25rem;
    font-size: 1rem;
  }

  .thesis-list span:nth-child(2) {
    font-size: 1.125rem;
  }

  .access-dl dt {
    font-size: 1rem;
  }

  .access-dl dd {
    font-size: 0.875rem;
  }

  .caution {
    font-size: 0.75rem;
  }
}

@media all and (max-width: 520px) {
  .faculty-list li a br {
    display: inline;
  }
}

/* 写真表示用 */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 24px;
  height: 2px;
  background-color: #fff;
}

.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
