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


.scroll-container::-webkit-scrollbar {
  width: 1px;
 
}

.scroll-container:hover::-webkit-scrollbar {
  width: 1px;

}

.scroll-container::-webkit-scrollbar-thumb {
  background: transparent;
  min-height: 40px;

}

.scroll-container:hover::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  min-height: 40px;

}

::-webkit-scrollbar-track {
  background: transparent;
}

::selection {
  background-color: var(--color);
  color: var(--backgroundcolor);
  font-weight: var(--fontw6);
}




body {
  margin: 0;
  font-size: 16px;
  font-family: "IBM Plex Sans", "IBM Plex Sans JP", sans-serif;


  background: var(--backgroundcolor);
  color: var(--color);
  height: 100dvh;
  display: flex;
  flex-direction: column;
overflow: hidden;
}




p {
  color: var(--color);
}

a {
  color: var(--link-color);
}

button {
  color: var(--link-color);
}


.menu button:hover,
.btn:hover {
  color: var(--color);
}

.scroll-top-btn {
  background: var(--backgroundcolor);
  border: 1px dotted var(--btn-color) !important;
   background-color: var(--backgroundcolor);
  width: 28px;
  height: 28px;
  top: 80px;
  border-radius: 50%;
  font-size: 1.2em;
  font-weight: var(--fontw1);
  text-indent: -1px;
  line-height: 28px !important;
   margin-top: 6px;
   color: ver(--btn-color);
   transform: scale(1,1) !important;
   text-indent: 1px;
}
.scroll-top-btn:hover{
  border: 1px solid var(--btn-color) !important;
  color: ver(--btn-color);
  font-weight: var(--fontw3) !important;
}

.text-links a:hover {
  color: var(--backgroundcolor);
font-weight: var(--fontw3);
}

header {
  height: 80px;
  display: flex;
  flex-direction: column;
  /* background: #3b3b3b; */
  /* background-image: url("img/background6.png"); */
  background-size: 100%;
  border-bottom: 1px solid var(--background-border-color);
}

.head1 {
  display: flex;
  border-bottom: 1px solid var(--background-border-color);
  /* padding-right: 40px; */
}

.site-title {
  height: 40px;
  /* width: auto; */

}

.rogo {
  height: 30px;
  width: 210px;
  margin-top: 5px;
  margin-left: 37px;
  stroke-width: 3px;
  background: url('../img/rogo_1.svg');
  background-repeat: no-repeat;
  background-size: contain;

}

.rogo:hover {
  height: 30px;
  margin-top: 5px;
  margin-left: 37px;
  stroke-width: 3px;
  background: url('../img/rogo_2.png');
  background-repeat: no-repeat;
  background-size: contain;
}

.rogoyoko {


  background-size: contain;

}

.rogoyoko img {
  height: 30px;
  margin-top: 5px;

}

.youtube {
  line-height: 40px;

  letter-spacing: 0.1rem;
  margin: 0 30px 0 auto;
}

.youtube a {
  line-height: 24px;
  text-decoration: none;
  display: inline-block;
  border: 1px solid var(--a-border-color);
  border-radius: 13px;
  padding: 0 7px 0 10px;
  /* font-family: "IBM Plex Serif", serif; */
  font-style: italic;
  color: var(--color);
  font-weight: var(--fontw3);
  font-size: 1em;
}

.youtube a:hover {
  color: var(--backgroundcolor);
  background-color: var(--color);
  border: 1px solid var(--color);
}

/* 電光掲示板css↓ */
.ebb {
  /* width: calc(40% - 40px); */
  width: 40%;
  height: 40px;
  font-size: 1em;
  line-height: 40px;
  text-decoration: none;
  overflow: hidden;
  border-left: 1px solid var(--background-border-color)
}


.ebb ul {
  display: inline-block;
  margin: 0;
  padding-left: 100%;
  white-space: nowrap;
  animation: SlideSample 24s linear infinite;
}

.ebb ul li {
  display: inline-block;
  color: #e1e1e1;
  letter-spacing: 0.35rem;
  transform: scale(0.9, 1);
}

.space {
  width: 300px;
}

.ebb a {
  text-decoration: none;
  color: #e1e1e1;
  letter-spacing: 0.3rem;
}

.ad a {
  color: var(--color);
}

/* スクロールさせるアニメーション */
@keyframes SlideSample {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-100%)
  }
}

/* 電光掲示板css↑ */

main {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 4fr 4fr;
  height: 100%;

}

.menu {
  height: 40px;
  display: flex;
  gap: 30px;
  margin-left: 40px;
}

.menu span {
  transform: scale(0.9, 1);
}

button {
  font-family: "IBM Plex Sans", "IBM Plex Sans JP", sans-serif;
  cursor: pointer
}

.menu button {
  background: none;
  border: none;
  font-size: 1em;
  color: var(--menu-color);
  font-weight: var(--fontw3);
}

.btn {
  background: none;
  border: none;
  font-size: 1em;
  font-family: "IBM Plex Sans", "IBM Plex Sans JP", sans-serif;
  line-height: 40px;
  text-decoration: none;
  color: var(--menu-color);
  font-weight: var(--fontw3);
}

.aboutbtn {
  background: none;
  border: none;
  font-size: 1em;
  font-family: "IBM Plex Sans", "IBM Plex Sans JP", sans-serif;
  line-height: 40px;
  text-decoration: none;
  font-weight: var(--fontw6);
}


.list-area button,
.list-area p {
  background: none;
  border: none;
  font-size: 1em;
  font-family: "IBM Plex Sans", "IBM Plex Sans JP", sans-serif;
  line-height: 40px;
  text-decoration: none;
  font-weight: var(--fontw3);
  transform: scale(0.9,1);
}

.list-area button {
  margin-bottom: 40px;
  color:var(--menu-color);
}

.list-container button:hover {

  color: var(--color);
  font-weight: var(--fontw4);
}

.list-item {

  font-weight:var(--fontw3);
}

/* リスト用 */
.list-item.active .list-title {
  color: var(--color);
  font-weight:var(--fontw6);
  letter-spacing: 0.5rem;
}

.active:hover {
  font-weight: var(--fontw6) !important;
  letter-spacing: 0.5rem;
}


.member p {
  font-size: 1em;
  font-family: "IBM Plex Serif", serif;
  font-style: italic;
}

.peoples {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
}

.peoples button {
  margin-bottom: 0;
}

.people {
  margin-left: 10px;
  display: flex;
}

.mobile-nav-wrapper {
  position: relative;
  width: 100%;
}

/* メインエリア */

.list-area,
.image-area,
.text-area {


  display: flex;


  background: repeating-linear-gradient(to bottom,
      transparent,
      transparent 39px,
      var(--background-border-color) 39px,
      var(--background-border-color) 40px);

  width: 100%;
  /* overflow-y: auto; 各エリアを縦スクロール可能に */
  height: calc(100dvh - 81px);
  ;
  /* 親要素内で高さを固定 */
  box-sizing: border-box;
  /* パディングを含めて高さを計算 */
  position: relative;
  /* ← タイトル固定用に基準設定 */

}

.area-title {
  position: sticky;
  top: 0;
  left: 0;
  height: 38px;
  width: 100%;
  z-index: 10;
  box-sizing: content-box;
  margin: 0 auto 0 0;
}

.area-title h1 {
  color: var(--area-title-color);
  font-size: 1.3em;
  line-height: 40px;
  padding-left: 40px;
  font-family: "Baskervville", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: var(--fontw5);
  transform: scale(1, 0.95);
}

.list-container,
.image-container,
.text-container {
  overflow-y: auto;
  overflow-x: hidden;
}


.list-area {
  /* padding-bottom: 40px; */
   border-right:var(--area-border);
  display: flex;
  flex-direction: column;
  /* ←縦並びにする！ */
  align-items: flex-start;
  /* ←左寄せ */
  justify-content: flex-start;
  /* ←上寄せ */
  position: relative;
}

.list-container {
  width: 100%;
  height: 100%;
  padding-left: 35px;
  padding-right: 40px;
}

.list-item {
  font-size: 1em;
  cursor: pointer;
  transition: 0.2s;
  line-height: 40px;
  margin-bottom: 40px;
  transform: scale(0.9, 1);
  letter-spacing: 0.3rem;
}

.list-area .active {
  color: var(--color);
  font-weight: var(--fontw6);
}



.list-item span {
  display: inline-block;
  transition: letter-spacing 0.3s ease;
}

.list-item:hover {
  color: var(--color);
}


.image-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
  box-sizing: content-box;

  border-right:var(--area-border);
  position: relative;

}

.image-container {
  width: 100%;
  height: 100%;
  padding-left: 20%;
  padding-right: 20%;


}

.caption {
  font-size: 0.8em;
  color: var(--caption-color);
  line-height: 40px;
  margin-bottom: 45px;
  transform: scale(1, 0.9);
  letter-spacing: 0.25rem;
  margin-top: -5px;
}



.image-area img,
.image-area video,
.image-area iframe {
  border: 1px solid var(--background-border-color);
  margin-bottom: 40px;
  background-color: var(--backgroundcolor);
  display: block;
}

.image-area img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-sizing: content-box;
}

.member-slider {
  position: relative;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.member-slider img.frame {
  position: absolute;
  top: 0;
  left: 50%;
  /* 親の中央を基準 */
  transform: translateX(-50%);
  /* 中央揃え */
  width: auto;
  /* 高さに合わせて調整 */
  height: 100%;
  /* 親の高さに合わせる */
  opacity: 0;
  z-index: 0;
}



.member-slider img.frame.active {
  opacity: 1;
  z-index: 1;
}


.hover-overlay {
  pointer-events: none;
  z-index: 100;
}

.image-area iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 0px 0 39px 0;
  border: 1px solid var(--background-border-color);
  box-sizing: content-box;
}

/* 最後のエリアは右のボーダーなし */
.text-area {
  display: flex;
  flex-direction: column;
  /* 必須：縦並び */
  overflow-y: auto;
  /* スクロール可能 */
  position: relative;
}

.text-area a {
  margin: 0 5px;
}

.text-container {
  padding: 0 30px;
  display: block;
  position: relative;
}

.lang-toggle-btn {
   width: fit-content;
   padding: 0px 7px;
  border: 1px dotted var(--btn-color);
  background: none;
  cursor: pointer;
   line-height: 18px;
border-radius: 9px;
  font-size: 0.8em;
  font-weight: var(--fontw3);
  position: absolute;
  top: 52px;
  right: 75px;
  color: var(--btn-color);
  background-color: var(--backgroundcolor);
  z-index: 999;
}

.lang-toggle-btn:hover {
  color: var(--btn-color);
  background-color: var(--backgroundcolor);
  border: 1px solid var(--btn-color);
  font-weight: var(--fontw3);
}

.text-area p {
  font-size: 1em;
  line-height: 40px;
  /* flex-shrink: 0; 高さ縮小防止 */
  transform: scale(0.9, 1);
  font-weight: var(--fontw3);
  margin-left: -15px;
}

.text-ja {
  margin: 0;
  padding-bottom: 80px;
  margin-left: -5px;
}

.text-ja p {
  letter-spacing: 0.3rem;
}

.text-en {
  padding-bottom: 40px;
  margin-left: -5px;
}

.text-en p {
  letter-spacing: 0.2rem;
}

.text-credit {
  margin-top: 40px;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 10px;
  margin-top: 7px;
  padding-bottom: 47px;
}

.text-links a {
  line-height: 24px;
  text-decoration: none;
  display: inline-block;
  border: var(--border-light);
  border-radius: 13px;
  padding: 0 9px 0 10px;
  /* font-family: "IBM Plex Serif", serif; */
  font-style: italic;
  color: var(--color);
  font-weight: var(--fontw2);
  font-size: 1em;
}

.text-links a:hover {
  background-color:  var(--color);
  border: 1px solid  var(--color);
}



/* 初期状態では内容を非表示に */
.list-area::before,
.image-area::before,
.text-area::before {
  content: "";
  display: block;
}

.scroll-extra {
  display: block !important;
  /* 横並び防止 */
  width: 100% !important;
  /* 横幅確保 */
  height: 80px;
  flex-shrink: 0;
}

.list-area,
.image-area,
.text-area {
  position: relative;
  /* ボタンの absolute 基準 */
}





.list-item.sub {
  font-size: 0.9em;
  opacity: 0.8;
  cursor: pointer;
}

.list-item.sub:hover {
  opacity: 1;
}

.mobile-nav-btn {
  display: none;
}


@media screen and (max-width: 768px) {


  body {
    font-size: 15px;
overflow: auto;
  }

  ::-webkit-scrollbar {
    width: 0px;

  }

  header {
    height: 107px;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 9999;
    background-color: var(--backgroundcolor)
  }


  .head1 {
    display: grid;
    grid-template-columns: 160px auto auto;
    /* width: 300px; */
  }

  .head1 .h:last-child {
    grid-column: 1 / -1;
  }


  .site-title {
    height: 35px;
  }

  .rogo {
    height: 27px;
    width: 160px;
    margin-top: 6px;
    margin-left: 10%;
    stroke-width: 3px;
    background-repeat: no-repeat;
    background-size: contain;
  }

   .rogo:hover {
    height: 27px;
    width: 160px;
    margin-top: 6px;
    margin-left: 15px;
    stroke-width: 3px;
background: url('../img/rogo_1.svg');
    background-repeat: no-repeat;
    background-size: contain;
  }

  .rogoyoko {
    margin-left: 20px;
    background-size: contain;
  }

  .rogoyoko img {
    height: 29px;
    margin-top: 3px;
  }

  .youtube {
    line-height: 35px;
    letter-spacing: 0.1rem;
    margin: 0 0 0 auto;
    padding-right: 10px;
  }

  .youtube a {
    line-height: 18px;
    border-radius: 10px;
    padding: 0 5px 0 5px;
    /* font-family: "IBM Plex Serif", serif; */
    font-style: italic;
    font-size: 15px;
    border: 1px solid var(--a-border-color);
  }

  .youtube a:hover {
    color: var(--color);
    background-color: var(--backgroundcolor);
  }



  .menu {
    height: 35px;
    display: flex;
    gap: 30px;
    margin-left: 20px;
  }

  .btn {
    background: none;
    border: none;
    font-size: 1em;
    font-family: "IBM Plex Sans", "IBM Plex Sans JP", sans-serif;
    line-height: 35px;
    text-decoration: none;
    color: var(--menu-color);
  }

  .aboutbtn {
    background: none;
    border: none;
    font-size: 1em;
    font-family: "IBM Plex Sans", "IBM Plex Sans JP", sans-serif;
    line-height: 35px;
    text-decoration: none;
    color: var(--color);
    font-weight: var(--fontw6);
  }

  .ebb {
    /* width: calc(40% - 40px); */
    width: 100vw;
    height: 35px;
    font-size: 1em;
    line-height: 35px;
    text-decoration: none;
    overflow: hidden;
    border-left: 0px;
    border-top: 1px solid var(--background-border-color);
    /* margin: 0 0 0 auto; */
  }

  main {
    grid-template-columns: none;
    overflow-y: hidden;
    position: relative;
    top: 107px;
    display: block;
  }

  .scroll-top-btn {
    width: 20px;
    height: 60px;
    top: 251px;

    line-height: 28px !important;
    letter-spacing: 0 !important;
    border-radius: 13px;
    font-size: 1.5em;
    font-weight: var(--fontw1);
    text-indent: 0px;


  }

    .scroll-top-btn:hover{
  border: 1px dotted var(--btn-color);
}

  .list-area,
  .image-area,
  .text-area {
    display: flex;
    background: repeating-linear-gradient(to bottom,
        transparent,
        transparent 34px,
        var(--background-border-color) 34px,
        var(--background-border-color) 35px);
    /* background: #454c50; */
    width: 100%;
    /* overflow-y: auto; 各エリアを縦スクロール可能に */
    height: calc(100dvh - 106px);
    ;
    /* 親要素内で高さを固定 */
    box-sizing: border-box;
    /* パディングを含めて高さを計算 */
    position: relative;
    /* ← タイトル固定用に基準設定 */
    border-right: 0;
    overflow-x: hidden;
  }

  .list-container,
  .image-container,
  .text-container {

    background: repeating-linear-gradient(to bottom,
        var(--backgroundcolor),
        var(--backgroundcolor) 34px,
        var(--background-border-color) 34px,
        var(--background-border-color) 35px);
    background-attachment: local;
  }


  .list-area button,
  .list-area p {
    line-height: 35px;
  }

  .list-area button {
    margin-bottom: 35px;
  }

  .peoples {
    margin-bottom: 35px;
  }

  .people {
    margin-left: 5px;
    display: flex;
  }

  .peoples button {
    margin-bottom: 0;
    width: max-content;
  }

  /*  */
  .area-title {
    font-weight: 400;

    height: 34px;
    line-height: 35px;
    margin: 0 auto 0 0;
    border-bottom: 1px solid var(--background-border-color);
  }

  .area-title-imagetext {
    margin-left: 23px;
  }

  .area-title h1 {
    padding-left: 20px;
    line-height: 35px;
  }

  .list-area {
    /* padding-bottom: 30px; */
    border-right: 0px;
  }

  .list-container {
    width: 100%;
    height: 100%;
    padding-left: 30px;
    padding-right: 10px;

  }

  .list-item {
    line-height: 35px;
    margin-bottom: 35px;
    transform: scale(0.9, 1);
    letter-spacing: 0.3rem;
  }


  .image-container {
    padding-left: 45px;
    padding-right: 45px;

  }

  /* 最後のエリアは右のボーダーなし */


  .text-container {
    padding: 0 10px 210px 40px;
  }

  .text-area p {
    font-size: 1em;
    line-height: 35px;
    margin-left: 0px;
  }

  .text-area a {
    line-height: 20px;
    margin-top: 7px;
  }

  .lang-toggle-btn {
    
    top: 77px;
    right: 30px;
    color: var(--btn-color);
    
    
  }

  .lang-toggle-btn:hover {
   border: 1px dotted var(--btn-color);

  }

  .text-ja {
    margin: 0;
    margin-left: -13px;
  }

  .text-ja p {
    letter-spacing: 0.3rem;
  }

  .text-en {

    margin-bottom: 30px;
    margin-left: -13px;
  }

  .text-en p {
    letter-spacing: 0.2rem;
  }

  .text-credit {
    margin-top: 35px;
  }

  .mobile-jp-title {
    font-weight: var(--fontw6) !important;
    letter-spacing: 0.6rem !important;


  }

  .mobile-en-title {
    font-weight: var(--fontw6) !important;
    letter-spacing: 0.4rem !important;
    font-size: 1.1em !important;

  }

  .text-links {

    gap: 13px 15px;
    line-height: 35px;
    display: flex;
    letter-spacing: 0.1rem;
    margin: 0 30px 40px auto;
    padding-bottom: 0;
  }

  .text-links a {
    margin-top: 7px;
    line-height: 20px;
    text-decoration: none;

    display: inline-block;
    border: var(--border-light);
    border-radius: 11px;
    padding: 0 7px 0 10px;

    font-weight: var(--fontw3);
    font-size: 15px;
  }

  @keyframes linkanime {

    0%,
    100% {
      background-color: var(--color);
      color: var(--backgroundcolor);

    }

    98% {
      background-color: var(--backgroundcolor);
      color: var(--color);
    }

  }

  .text-links a,
  .youtube a {
    animation: linkanime 4s step-start infinite;

    animation-name: linkanime;
  }


  /* ボタン */
  .mobile-nav-btn {
    position: absolute;
    top: 107px;
    height: 105px;
    width: 35px;
    z-index: 999;
    background-color: var(--backgroundcolor);
    writing-mode: vertical-rl;
    text-decoration: none;
   color: var(--color);
    font-family: "Baskervville", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: var(--fontw5);
    font-size: 17px;
    line-height: 35px;
    display: none;

  }

  .mobile-nav-btn-text {
    color: var(--area-title-color);
    font-weight: var(--fontw5);
    font-size: 1.2em;
  }

  /* 左右に配置 */
  .prev {
    left: 0px;
    border: none;
    border-right: 1px solid var(--background-border-color);
    border-bottom: 1px solid var(--background-border-color);
  }

  .next {
    right: 0px;
    border: none;
    border-left: 1px solid var(--background-border-color);
    border-bottom: 1px solid var(--background-border-color);
  }

}