/* 全体のスタイル */
  html, body {
    height: 100%;
    margin: 0;
  }
  
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: scroll;
    font-family:Nunito, "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", "Meiryo", "Osaka", sans-serif;
  }


a:link {
  color: inherit;
  text-decoration: none;
}

a:visited {
  color: inherit;
  text-decoration: none;
}

/* ヘッダーのスタイル */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 95px;
    background-color: rgba(0, 0, 139, 0.6);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
  
.header-overlay h3 {
  margin: 15px 0 0 40px;
  padding: 0;
  text-align: left;
  font-size: 18px;
  color: #fff;
  font-family: Nunito, "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", "Meiryo", "Osaka", sans-serif;
  font-weight: 300;
  flex: none;
  text-decoration: none;
}
  
.header-overlay h1 {
  margin: 0 0 0 40px;
  padding: 0;
  text-align: left;
  font-size: 30px;
  color: #fff;
  font-family: Nunito, "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", "Meiryo", "Osaka", sans-serif;
  font-weight: 600;
  flex: none;
  line-height: 1.5;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 95px;
  background-color: rgba(0, 0, 139, 0.6);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.header-overlay h3 {
margin: 15px 0 0 40px;
padding: 0;
text-align: left;
font-size: 18px;
color: #fff;
font-family: Nunito, "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", "Meiryo", "Osaka", sans-serif;
font-weight: 300;
flex: none;
text-decoration: none;
}

.header-overlay h1 {
margin: 0 0 0 40px;
padding: 0;
text-align: left;
font-size: 30px;
color: #fff;
font-family: Nunito, "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", "Meiryo", "Osaka", sans-serif;
font-weight: 600;
flex: none;
line-height: 1.5;
}

.header-overlaye {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 95px;
  background-color: rgba(0, 0, 139, 0.6);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.header-overlaye h3 {
margin: 15px 0 0 40px;
padding: 0;
text-align: left;
font-size: 16px;
color: #fff;
font-family: Nunito, "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", "Meiryo", "Osaka", sans-serif;
font-weight: 300;
flex: none;
text-decoration: none;
}

.header-overlaye h1 {
margin: 0 0 0 40px;
padding: 0;
text-align: left;
font-size: 28px;
color: #fff;
font-family: Nunito, "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", "Meiryo", "Osaka", sans-serif;
font-weight: 600;
flex: none;
line-height: 1.5;
}

.header-overlay h1 a,
.header-overlay h3 a {
  text-decoration: none;
  color: #fff;
}
  
.header-overlay h1 a:hover,
.header-overlay h3 a:hover {
  text-decoration: none;
  color: #fff;
}
  
.header-overlay2 {
  position: absolute;
  bottom: 55px;
  left: 0;
  right: 0;
  height: 65px;
  z-index: 1;
  background-color: rgba(0, 0, 139, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
} 

.header-overlay2 h1 {
  padding: 0;
  text-align: center;
  font-size: 26px;
  color: #f0f8ff;
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", "Meiryo", "Osaka", sans-serif;
  font-weight: 300;
}

.header-overlay3 {
  position: absolute;
  bottom: 55px;
  left: 0;
  right: 0;
  height: 65px;
  z-index: 1;
  background-color: rgba(0, 0, 139, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
} 

.header-overlay3 h1 {
  padding: 0;
  text-align: center;
  font-size: 18px;
  color: #f0f8ff;
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", "Meiryo", "Osaka", sans-serif;
  font-weight: 300;
}

.header-container {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  background-color:#00008B;
  z-index: 1;
}

header {
  position: relative;
  text-align: center;
  padding-bottom: calc(81.1% / 254.3 * 100%); /* 縦横比を維持したまま高さを調整 */
  background-image: url("header-image.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;  
  z-index: 0;
  box-sizing: border-box;
  border: 3px solid rgba(0, 0, 139, 1); /* 枠線を追加 */    
}
  
header img {
    display: block;
    max-width: 100%;
    height: auto;
    width: 100%;
}

.switch-lang {
  position: absolute;
  bottom: 20px;
  right: 60px;
  z-index: 999;
}

.switch-lang a {
  position: relative;
  color: white;
}

.switch-lang a:hover {
  color: white;
}

.switch-lang a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: white;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.switch-lang a:hover::before {
  transform: scaleX(1);
}

.switch-lang span {
  color: #fff;
}

/* ナビバーのスタイル */
nav {
  display: flex;
  position: static;
  top: 0;
  left: 0;
  width: 100%;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ddd;
  background-color: #00008b;
  z-index: 1000;
}  
  
/* ヘッダーが表示されている間はナビバーを表示する */
.header-container:hover nav {
    display: flex;
    position: sticky;
    top: 100px; /* ヘッダーと重ならないようにtopの値を設定 */
}

/* ヘッダーが表示されている間はナビバーを非表示にする */
.header-container:hover ~ nav {
    display: none;
}

  
  nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
  }
  
  nav li {
    margin: 0 7px;
    padding: 0; /* 追加 */
    position: relative;
    width: 110px; /* 例えば100pxに幅を固定 */
    border: 0px solid #fff;
    height: 40px;
  }
  
  
  nav a {
    color: #fff;
    font-size: 17px;
    font-family: Nunito, "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", "Meiryo", "Osaka", sans-serif;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 1;
    border: 0px solid #fff;
    box-sizing: border-box;
    transition: .3s;
    perspective: 1000px;
    perspective-origin: 50% 50%;
    vertical-align: bottom;
    overflow: hidden;
    height: 40px;
    line-height: 40px;
    width: 100%; /* 追加 */
  }
  
  nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 85%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s;
  }
  
  nav a:hover::before {
    width: 95%;
  }
  
  nav a span {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    background: #333;
    padding: 18px 30px;
    display: inline-block;
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    bottom: 10%;
    transform-origin: 50% 0%;
    transform-style: preserve-3d;
    transition: .4s;
  }

main {
  background-color: #f8f8ff;
  padding: 20px 60px 0 60px; /* 上右下左 */
  margin-bottom: 00px; /* フッターとの余白を60pxに指定 */
  flex-grow: 1;
  border: 0px solid red;
}

section.about > p {
    margin-left: 45px;
    margin-right: 40px;
    margin-bottom: 10px;
    text-align: justify;
    text-indent: 0em;
  }

  
/* New & Topicsのスタイル */

section h2 {
  margin-left: 20px;
  border-bottom: 1px solid #404040;
}

.news-ul li {
  list-style: none;
}
    
.news-ul li span.date {
  font-size: 15px;
  color: #444;
  margin-right: 10px;
}
  
.news-ul li a {
  color: #333333;
  font-weight: bold;
  text-decoration: none;
  font-family: Nunito, "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", "Meiryo", "Osaka", sans-serif;
  font-weight: 600;
}

.news-ul li span + a {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  color: #000;
}

.news-ul li hr {
  margin-top: 15px; /* 区切り線の上に10pxのマージンを追加 */
  margin-bottom: 30px; /* 区切り線の下に20pxのマージンを追加 */
  border: none; /* 枠線を削除 */
  border-top: 1px solid #ddd; /* 上側に1pxのグレーの実線を追加 */
}
  
/* メンバー */
.member-wrapper {
  display: flex;
  flex-direction: column;
}
  
.member {
  margin-left: 40px;
  background-color: #E3F2FF; /* 薄い青色に設定 */
  padding: 10px 20px 20px 20px; /* 適宜調整してください */
  margin: 1px 60px 30px 30px;
}
  
h2.mt0 {
  color: #777;
  font-size: 14pt;
  border-bottom: none;
  margin-left: 35px;
}
  
h2.mt1 {
  color: #00008b;
  font-size: 14pt;
  border-bottom: none;
  margin-left: 35px;
}

.member p {
  margin-bottom: 0px;
  font-size: 14px;
  line-height: 1.0; /* 行間を狭くする */
}
  
.member .name {
  font-weight: bold;
  font-size: 18px;
}
  
/* メインのh1のスタイル */
.main-container {
  height: 100%;
  text-align: center;
}
  
.coming {
  display: inline-block;
  vertical-align: middle;
  margin-top: 30px;
}
  
/* タイルのスタイル */
.tile-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 20px 20px 40px 20px;
  margin-left: 10px;
}

.tile {
  background-color: #E9E9E9;
  aspect-ratio: 4 / 3.5;
  flex: 1 1 calc(100% - 16px);
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
  border: 0px solid red;
  padding: 16px;
  box-sizing: border-box;
  position: relative;
}

.tile img {
  width: 90%;
  height: auto;
  border: 10px solid white;
}

.image-title {
  position: relative;
  left: 0;
  width: 100%;
  padding: 00px;
  margin-top: 10px;
  box-sizing: border-box;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

/* マスク用のdiv要素のスタイル */
.mask {
  background-color: rgba(0, 0, 128, 0.7); /* 半透明のグレー */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease-in-out;
  align-items: center;
  justify-content: center;
  display: flex;
}

/* タイルにマウスオーバー時のスタイル */
.tile:hover .mask {
  visibility: visible;
  opacity: 1;
}

/* "detail"テキストのスタイル */
.detail-text {
  font-size: 24px;
  font-weight: bold;
  color: white;
  background-color: transparent;
  padding: 7px;
  outline: 1px solid white;
  outline-offset: 9px;
  transition: .3s;
}

.mask:hover .detail-text {
  animation: light 1.0s infinite;
}

@keyframes light {
  100% { 
    outline-color: transparent;
    outline-offset: 38px;
  }
}

@media screen and (min-width: 900px) {
.tile {
  flex: 1 1 calc(50% - 32px);
  max-width: calc(50% - 32px);
  margin: 0 8px 16px;
}
.image-description p {
  margin: 0;
  font-size: 16px;
}
}

.topic-image {
  background-color: #E9E9E9;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  margin: 40px 48px 40px 48px;
}

.topic-image img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
}

.topic-image figcaption {
  color: black;
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px;
}

.banner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.banner-container img {
  height: 30px;
  margin-right: 30px;
  margin-left: 30px;
}

.banner-container img:last-child {
  margin-right: 0;
}

.pub {
  padding-left: 65px;
  margin-bottom: 60px;
}

.pub li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 20px;
}

.pub a::after {
  content: "\f08e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  margin-left: 5px;
}


iframe {
  display: block;
  margin: 0 auto;
}

.box {
  width: 170px;
  height: 40px;
  background: rgba(0, 0, 139, 1);
  color: white;
  text-align: center;
  font-size: 16px;
  line-height: 40px;
  text-shadow: none;
  padding: 0 5px; /* 左右に20pxの余白を持たせる */
  margin-left: 25px;
}

.event {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}
.event p {
  margin-left: 40px; /* 左に10pxずらす */
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: -5px;
}

.event .separator {
  border-top: 1px dashed #ccc;
  margin-top: 20px;
  margin-bottom: 30px;
  margin-left: 30px; /* 左に10pxずらす */
}



#pagetop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #00008b;
  color: #fff;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 9999;
}

#pagetop.show {
  display: block;
}


footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px; /* 高さを設定 */
  background-color: #333;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box; /* 追加 */
}
.scroll {
    height: 400px; /* お好みで調整 */
    overflow-y: auto; /* 縦スクロール */
    border: 1px solid #ccc;
    padding: 10px;
}

.news-ul {
    list-style: none;
    padding: 0;
}

    .news-ul li {
        margin-bottom: 20px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 15px;
    }
    .news-ul img {
        max-width: 100%; /* 親の幅に収める */
        height: auto; /* 縦横比キープ */
        display: block;
        margin-top: 10px;
        max-height: 400px;
    }

.scroll-large {
    height: 600px;
    overflow-y: auto; /* 縦スクロール */
    border: 1px solid #ccc;
    padding: 10px;
}

.scroll-small {
    height: 200px;
}