html {
    scroll-behavior: smooth;
    /* background-color: rgb(221, 250, 255); */
    
}


body {
    background-color:white;
    margin: 0%;
    overflow-x: hidden;
    /* font-family: 'DotGothic16', sans-serif; */
}

.header {
    background-color: rgba(118,92,74,0.77);
    width:100%;
    height: 60px;
    z-index: 10;
    position: fixed;
    top: 0;
    opacity: 0.5;
    backdrop-filter: blur(5px);
}

.image_icon {
    padding:1vh 1vw;
    height:3vh;
    align-items: center;
}

nav {
	overflow: hidden;
    display: inline-block;
}

nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: inline-block;
}

nav ul li {
    display: inline-block;
}
/* own */

nav ul li:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

nav ul li a {
	display: block;
	color: black;
	text-align: center;
	padding: 14px 16px;
	text-decoration: none;
}

nav ul li ul {
	display: none;
	position: fixed;
	background-color: #765c4a;
	min-width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
}

nav ul li ul li {
    display: block;
}

nav ul li ul li a {
	color: black;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	text-align: left;
}

nav ul li:hover ul {
	display: block;
}

.main {
    margin-top:5vh;
}

.main_img {
    width:100%;
}

.no_uc {
    text-decoration: none;
    color: black;
}

.now {
    text-decoration: underline;
}

#mini-message {
    position: absolute;
    bottom: 120px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 999;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    opacity: 0;
  transform: translateY(20px);
    animation: slidefadeIn 1s ease-out forwards;
  }
#mini-message a {
  color: white;             
  text-decoration: none;      
}

#mini-message a:hover {
  color: #ddd;               
}

  @media (max-width: 1000px) {
    #mini-message {
      bottom: 120px; 
      font-size: 16px;
      
    }

  }

  
  /* フェードイン用（任意） */
  @keyframes slidefadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  #logo-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    gap: 10px; 
    animation: slideFadeIn 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
  }
  #logo-KIT{
    position: fixed;
  bottom: 20px;
  left: 20px;
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 999;

  }
  #logo {
    position: fixed;
    bottom: 70px;
    left: 20px;
    width: 50px;
    height: 50px;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
  }

  .header nav {
    display: flex;
    align-items: center;
    
  }
  
  .header-logo {
    height: 55px; 
    margin-right: 20px;
  }
  
  .nav-list {
    display: flex;
    flex-grow: 1;
    justify-content: space-evenly;
    align-items: center;
    list-style: none;
  }
  
  .nav-list li {
    display: flex;
     flex: 1;
    align-items: center;
    justify-content: center;
  height: 100%;
  }

  .nav-list li a {
    color: white;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    font-size: 20px;
    padding: 10px 20px;
    display: inline-block;
  text-align: center;
  }
  
  
  .nav-list li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    line-height: 1.5;
  }

  .nav-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .logo-with-border {
    position: relative;
  }

  .logo-with-border::after {
  content: "";
  position: absolute;
  top: 10%;                  /* 線の上端位置 */
  right: 0;                  /* 右端に固定 */
  width: 1px;                /* 線の太さ */
  height: 100%;               /* 線の長さ */
  background-color: rgba(255, 255, 255, 0.6);   /* 線の色 */
}
  

  .logo-img {
    height: 80px !important;
  width: auto;
  padding-left: 20px;
  object-fit: contain;
  }
  .bottom-left-logo {
    position: absolute;
    bottom: 100px;
    left: 20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    z-index: 10;
    letter-spacing:  0.5em;
  }
  
  .university-name {
    font-family: 'Noto Sans JP','Inter', sans-serif;
    font-weight: lighter;
    font-size: 30px;
    margin: 0 0 -20px 35px;
  }
  
  .bottom-left-logo img {
    width: 300px;
    height: auto;
  }

  @media (max-width: 1000px) {
    .bottom-left-logo {
    position: absolute;
    top: 10vh;
    right: 2vw;
    transform: none;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 100px; 
      z-index: 1;
    }
  
    .bottom-left-logo img {
      width: 100vw; 
      margin-top: 4px; 
    }
  
    .bottom-left-logo .university-name {
      text-align: center;
      font-size: 40px;
      color: white;
      font-weight: lighter;
    }
  }
  
  #intro-screen {
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #cecece;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1s ease;
    pointer-events: auto;
  }
  #intro-screen.hidden {
  opacity: 0;
  pointer-events: none; /* 非表示状態ではクリックも無効に */
}

  .intro-text{

    position: fixed;
    font-size: 15px;
    font-weight: lighter;
    z-index: 9999;
    top: -120; left: 0;
    width: 100vw;
    height: 100vh;
    color: azure;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1s ease;
  }
  #intro-logo {
    width: 300px;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }

  .below-contact-link {
    width: 100%; 
    text-align: center; 
    margin-top: 40px;
    margin-bottom: 60px;
  }
 
  .below-contact-link a {
    display: inline-block; 
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: rgba(255, 255, 255,1 );
    background-color: rgba(118, 92, 74, 0.77);
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
  }
  @media (max-width: 1000px) {
    .below-contact-link a {

      font-size: 1.0rem;  
       padding: 0.5rem 1.2rem;
    }

  }
  
  
  .below-contact-link a:hover {
    background-color: #868484;
    color: white;
  }
  
  
  .more-box {
    width: 100%;
    max-width: 600px;
    margin: auto;
    text-align: left;
  }
  
  .more-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none; /* 初期状態は非表示 */
  margin-top: 20px;
  display: block; /* ボタン押下で開く */
  }
  
  .more-details.open {
    max-height: 10000px;
    opacity: 1;
  }
  .intro-title-wrapper {
    position: relative;
    z-index: 2; 
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeInTitle 2s ease-out forwards;
  }
  
  .intro-title {
    font-size: 5vh;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
  }
  
  .intro-whatPMC {
    font-size: 10vh;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
  }
  @media (max-width: 1000px) {
    .intro-title {
    font-size: 4.5vw;
    text-align: center;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
  }
    .intro-whatPMC {
      font-size: 7vh;
      color: white;
      font-weight: bold;
      text-shadow: 0 0 10px rgba(0,0,0,0.7);
      opacity: 0;
      animation: fadeIn 2s ease-in-out forwards;
    }

  }
  
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .scroll-arrow {
    margin-top: 20px;
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: arrowFadeIn 1s ease-in-out forwards;
    animation-delay: 2s;
    animation-fill-mode: forwards;
  }
  
  /* アニメーションの定義 */
  @keyframes arrowFadeIn {
    to {
      opacity: 1;
    }
  }

  #toggleButton {
    background-color: rgba(118,92,74,0.77); 
    color: #fff;
    padding: 12px 24px;
    font-size: 1.2rem;
    border: 2px solid rgba(118,92,74,0.77);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); 
    font-weight: bold;
    letter-spacing: 1px;
  }
  
  #toggleButton:hover {
    background-color: #ffffff30;
    border-color: #fff;
    transform: scale(1.05);
  }
  
  #toggleButton:active {
    transform: scale(0.98);
    background-color: #ffffff50;
  }

  #hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
  }
        #photo {
          width: 100vw;
          height: 100vh;
          overflow: hidden;
          position: fixed;
          top: 0;
          left: 0;
          z-index: -1;
          display: flex;
        }
        #photo::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
  }
  #photo.dark::after {
    opacity: 1;
  }
  
        #photo .slide-container {
          display: flex;
          transition: transform 1s ease-in-out;
          width: 300vw;
        }
  
        #photo .slide-img {
          width: 100vw;
          height: 100vh;
          object-fit: cover;
        }.access-content p {
      color: white;
      font-size: 20px;
    }
    @media screen and (max-width: 768px) {
    html, body {
      overflow-x: hidden;
      width: 100%;
    }
  
    #photo {
      position: fixed; 
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      overflow: hidden;
    }
  
    #photo .slide-container {
      width: 300%;
      display: flex;
      transition: transform 1s ease-in-out;
    }
  
    #photo .slide-img {
      width: 100%;
      flex: 0 0 100%;
      height: 100vh;
      object-fit: cover;
    }
  }
  
  .time-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    gap: 20px; 
  }
  
  .time-text {
    flex: 1;
  }
  
  .time-image {
    width: 40%; 
    height: auto;
    object-fit: cover;
  }

.pmc-vertical-button {
  writing-mode: vertical-rl;
  text-orientation: upright;
  position: fixed;
  bottom: 0;
  right: 0;
  background-color: rgba(118,92,74,0.77);
  color: white;
  font-size: 3vh;
  padding: 12px 12px;
  text-decoration: none;
   border-top-left-radius: 10px;
  z-index: 9999;
  opacity: 0;                
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;     
} 

.pmc-vertical-button:hover {
  background-color: #868484;
}

.pmc-vertical-button.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;      
}