html, body{
  margin: 0;
  padding: 0;
  font-family: 
    "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Noto Sans JP",
    Meiryo,
    sans-serif;
}
html{
  scroll-snap-type: y proximity;            /* 強めにしたいなら mandatory */
  scroll-padding-top: var(--header-h, 0px); /* 固定ヘッダー分 */
}
.members-toolbar{
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 18px;
}
.lang-btn{
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.lang-btn:hover{
  background: rgba(0,0,0,0.06);
}
/* 置き場の基準を作る：section-hero の直後に来る slot を重ねる */
.lang-slot{
  position: relative;
  height: 0;                /* ← これで縦方向の押し下げゼロ */
}
/* ボタン本体：帯の下・右 */
.lang-pill{
  position: absolute;
  right: 0;
  top: 10px;                /* ←「帯の直下」感。好みで調整 */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 50;     
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: rgba(205,205,205,0.95);
  color: #757575;            /* 好みの色に */
  transition: 
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

/* hover/focus */
.lang-pill:hover{
  color: #F8FEFF;
  background-color: #757575;
  border-color: #757575;
}
.lang-pill:focus-visible{
  outline: 2px solid rgba(31,59,217,0.35);
  outline-offset: 2px;
}
/* BODY */
body {
  background: #F8FEFF;
}
.container{
width: 100%;
margin-left: auto;
margin-right: auto;
max-width: 1200px;
padding: 0px 24px 56px;
--gutter: 24px;
background: #F8FEFF;
padding-inline: var(--gutter);
box-sizing: border-box;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/* 共通：フェードイン対象 */
.fade-in{
  opacity: 0;
  transform: translateY(12px);          /* ちょい上品に */
  transition: opacity 5s ease, transform 5s ease;
  will-change: opacity, transform;
}
.fade-in.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.fade-now{ opacity: 1; transform: none; }
.fade-opacity{
  opacity: 0;
  transition: opacity 4s ease;   /* 好みで 3〜5s */
  will-change: opacity;
}
.fade-opacity.is-visible{
  opacity: 1;
}


/* HEADER */
.header{
  height: auto;
  width: 100%;
  max-width: none;
  background-color: transparent;
  color:#F8FEFF;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;  
  gap: 0;
  padding-top: 0px;
  padding-left: 0px;
  padding-right: 0px;
  padding-bottom: 10px;
  border-bottom: none;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 4s ease;
}
.header .logo,
.header .lab-info,
.header .nav {
  opacity: 0;
  transition: opacity 4s ease; /* お好みで 0.6〜1.2s */
  will-change: opacity;
}
body.is-loaded .header .logo,
body.is-loaded .header .lab-info,
body.is-loaded .header .nav {
  opacity: 1;
}
.header-top {
  display: flex;
  align-items: center;
}
.header-inner{
  max-width: none;
  margin: 0 auto;
  width: 100%;
  padding-inline: 24px;
  box-sizing: border-box;
}
@media (max-width: 799px){
  .header{
    position: static;
  }
  .header,
  .header *{
    backdrop-filter: none !important;
  }
}

body.is-loaded .header{
  opacity: 1;
}
.lab-info {
  display: flex;
  flex-direction: column;
  margin-left: auto;
  margin-right: 10px;
  text-align: right;
  color: #F8FEFF;
  font-size: 14px;
  line-height: 1.4;
}
.lab-line{
  white-space: normal;      /* ← これ重要 */
  word-break: normal;
  overflow-wrap: anywhere;  /* 念のため */
}
.logo img {
  width: 180px;
  height: auto;
  max-height: none;
}
/* ===== Header nav: equal-width items ===== */
.header-bottom .nav{
  max-width: 80%;          /* ← 全体の横幅（好みで 900–1100px） */
  margin: 0 auto;            /* ← 中央寄せ */
}
.header-bottom .nav .menu{
  display: flex;
  gap: 0;                 /* 区切りが欲しければ後述 */
  padding: 0;
  margin: 0;
  list-style: none;
}
.header-bottom .nav .menu > li{
  flex: 1 1 0;            /* ← これで均等幅 */
  min-width: 0;
}
.header-bottom .nav .menu > li > a{
  display: flex;          /* 中央揃え */
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  white-space: nowrap;    /* 折り返し防止 */
  padding: 12px 8px;      /* 好みで */
}
.nav{
  margin-left: auto;
  margin-right: auto;
}
.nav ul{
  display:flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav ul li a{
  display:block;
  padding: 0;
  background:none;
  color:#F8FEFF;
  border:none;
  margin:0;
  line-height:1;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav ul li a:hover{
  color:#777;
}
.bg_1{
  width: 100%;
  position: relative;
  isolation: isolate;
  background: transparent;
}
.bg_1::before{
  content:"";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url("../img/background.jpg")
      center clamp(75%, calc(87% + 1vw), 87%) / cover no-repeat;
  opacity: 0;                     /* 最初は透明 */
  transition: opacity 4s ease 0.4s; /* 好みで調整 */
  will-change: opacity;
}
body:not(.index-page) .bg_1.is-loaded::before{
  opacity:1;
}
body.index-page .bg_1::before{
  content: none;   /* ← これが決定打 */
}
.bg_1 > *{
  position: relative;
  z-index: 1;
}
.bg_1.is-loaded::before{
  opacity: 1;
}
/* 狭い幅になったら1行目を非表示 */
@media (max-width: 800px){
  .lab-info .lab-line:first-child{
    display: none;}
  .lab-info .lab-line:nth-child(2){
    display: none;}
  .header .header-bottom{
    display: none;
  }
  }

/* ===== Floating Hamburger ===== */
.fab-menu{
  position: fixed;
  top: 8px;
  right: 8px;
  width: 64px;
  height: 48px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  z-index: 9999999;
  background: rgba(177,183,184,0.5);
  position: fixed;
}
.fab-menu:hover span{
  background: #000;
}
.fab-menu span{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: transform .25s ease, opacity .2s ease;
}
.fab-menu{ --bar-gap: 10px; }
.fab-menu span:nth-child(1){ transform: translate(-50%, calc(-50% - var(--bar-gap))); }
.fab-menu span:nth-child(2){ transform: translate(-50%, -50%); }
.fab-menu span:nth-child(3){ transform: translate(-50%, calc(-50% + var(--bar-gap))); }
body.is-fab-open .fab-menu span:nth-child(1){ transform: translate(-50%, -50%) rotate(45deg); }
body.is-fab-open .fab-menu span:nth-child(2){ opacity: 0; }
body.is-fab-open .fab-menu span:nth-child(3){ transform: translate(-50%, -50%) rotate(-45deg); }
.fab-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(78vw, 150px);
  background: rgba(248,254,255,0.98);
  z-index: 9998;
  transform: translateX(100%);
  transition: transform .28s ease;
  padding: 96px 20px 24px;
}
body.is-fab-open .fab-drawer{ transform: translateX(0); }
.fab-drawer ul{ list-style: none; padding: 0; margin: 0; }
.fab-drawer a{
  display: block;
  padding: 14px 8px;
  color: #222;
  text-decoration: none;
  font-size: 1.05rem;
}
.fab-drawer a:hover{ background: rgba(0,0,0,.06); }
.fab-overlay{
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: rgba(0,0,0,.35);
}
@media (min-width: 800px){
  .fab-menu,
  .fab-drawer,
  .fab-overlay{
    display: none !important;
  }
}

/* INDEX */
body.index-page::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      rgba(0,0,0,0.5),
      rgba(0,0,0,0.5)
    ),
    url("../img/background.jpg") center / cover no-repeat;
  opacity: 0;                 /* ← 背景だけ最初は見えない */
  transform: scale(1);     /* ← 最初から拡大しない */
  transition: opacity 4s ease 0.4s;
}
body.index-page .bg_1{
  background: transparent;
}
body.index-page.is-loaded::before{
  opacity: 1;
  filter: brightness(1);
}
body.index-page .hero-banner{
  background: transparent;
  position: relative;
  min-height: 100vh;          /* 高さはここで調整 */
  padding: 75px 50px 75px;  display: flex;
  align-items: center;
  justify-content: center;
}
.header-wrap{
  position: sticky;
  width: 100%;
  z-index: 999999;
  left: 0;
}
#header-container { position: relative; z-index: 5000; }

@media (min-width: 800px){
  body:not(.index-page){
    padding-top: 0;
  }
  body:not(.index-page) #header-container{
    height: var(--header-h, 160px);
  }
  body.index-page.is-index-scrolled .header .nav ul li a:hover{
    color: rgba(155,155,155,0.75); /* 白寄りにして変化を見せる */
  }
  body.index-page.is-index-scrolled .header{
    background: rgba(0,0,0,0.7);
    transition: background-color 900ms ease;
  }
  .header-wrap{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4000;
    background: rgba(0,0,0,0.0);
    backdrop-filter: blur(0px);
    transition: background-color 900ms ease, backdrop-filter 900ms ease, transform 900ms ease;
    will-change: background-color, backdrop-filter, transform;
  }
  body.index-page.is-scrolled .header-wrap{
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(10px);
  }
}

/* 表示状態 */
.hero-banner.is-loaded{
  opacity: 1;
  filter: brightness(1);
}

/* 文字をフィルターより前に */
.hero-overlay{
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translateY(-10px);
}

.hero-overlay__title{
  margin-bottom: 32px;
  color: #F8FEFF;
  font-size: clamp(2rem, 2.6vw, 4rem);
  font-weight: 600;
}

.hero-overlay__subtitle{
  font-size: clamp(1.5rem, 2vw, 2.5rem);
  color: #F8FEFF;
}

/* 必要なら nav 等も少し濃く/見やすく（任意） */
body.index-page.is-index-scrolled .header .nav ul li a,
body.index-page.is-index-scrolled .header .lab-info{
  color: #F8FEFF;
}
/* タブレット以下 */
@media (max-width: 700px){
  .hero-overlay__title{
    font-size: 1.3rem;
    line-height: 1.5;
    max-width: 400px;
    padding-right: 0px;
    padding-left: 0px;
  }
  .hero-overlay__subtitle{
    font-size: 1.1rem;
    max-width: 480px;
  }
  body.index-page .hero-banner{
  background: transparent;
  position: relative;
  min-height: 70vh;          /* 高さはここで調整 */
  padding: 75px 50px 75px;  display: flex;
  align-items: center;
  justify-content: center;
  }
}
@media (min-width: 700px) and (max-width: 1200px) {
  .hero-overlay__title{
    font-size: 2rem;
    line-height: 1.5;
    max-width: 600px;
    padding-right: 0px;
    padding-left: 0px;
  }
  body.index-page .hero-banner{
  background: transparent;
  position: relative;
  min-height: 80vh;          /* 高さはここで調整 */
  padding: 75px 50px 75px;  display: flex;
  align-items: center;
  justify-content: center;
}
}
.welcome{
  padding: 40px 0;
  background: #F8FEFF;
}
.welcome__content p{
  font-size: 1.125rem;
  color: #000;
  line-height: 1.8;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  /*text-align: center;*/
  margin-left: 40px;
  margin-right: 40px;
  white-space: normal;
}
.section__title{
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding: .15em .6em;     /* ← 背景を文字の周りに出す */
  line-height: 3;
  isolation: isolate;      /* ← これが効きます（背面に潜り事故防止） */
}
/* タイトル帯（背景を画面端まで） */
.section-hero{
  position: relative;
  padding: 12px 0;
  background: #5e6e88;
  box-shadow: 0 0 0 100vmax #5e6e88;
  clip-path: inset(0 -100vmax);
}
/* タイトル文字（ズラし禁止。幅100%で中央寄せ） */
.section-hero .section__title{
  margin: 0;
  padding: 0;
  line-height: 1.2;
  display: block;
  width: 100%;
  text-align: center;
  color: #F8FEFF;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  /* 以前のズラし指定が残ってても無効化 */
  left: auto;
  transform: none;
  /* 1行固定したいなら nowrap、折り返したいなら消す */
  /* white-space: nowrap; */
}
.Home .container {
  max-width: 1200px;
  padding: 24px 24px 56px;
  box-sizing: border-box;
}
.btn-primary:hover {
  background: #F8FEFF;     /* ← ホバー時の色 */
  border-color: #F8FEFF;   /* ← 境界線の色（任意） */
  color: #999;
}
.underline-btn {
  text-decoration: underline;
  color: #F8FEFF;
}

/* HOME */
.Home {
  background: #F8FEFF;
  height: 100%;
  width: 100%;
  padding-top: 30px;
  padding-bottom: 80px;
  --card-w: 400px;
}
.home-scroll{
  position: relative;
}
:root{
  --card-w: 400px;
}
.Home .home-card {
  display: flex;
  flex-wrap: nowrap;
  text-align: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scroll-padding-left: 24px;
  scroll-padding-right: 24px;
  padding: 0 24px;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: none;
  background: #F8FEFF;
}
.Home .home-card::-webkit-scrollbar {
  display: none;
}
.home-card-panel {
  background: #e6eaed;
  border-radius: 24px;
  height: 100%;
  opacity: 0;
  will-change: transform;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease; /* ← ここが“出現スピード” */
}
.home-card-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.home-card__image {
  height: 200px;              /* ← 少し小さく */
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-card__image img {
  margin-top: 30px;
  width: 100%;
  height: 100%;
  object-fit: contain;        /* ← 全体を表示 */
}
.home-card__body {
  padding: 20px 20px 24px;
}
.home-card__body h2 {
  position: relative;
  margin: 0 0 18px 0;
}
.home-card__body h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  opacity: 1;              /* ← 消えない */
}
.home-card__body p {
  margin: 0;
  line-height: 1.7;
}
.home-card-link {
  flex: 0 0 clamp(400px, 36vw, 600px);
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 2px;  
  scroll-snap-align: center;
  scroll-snap-stop: always; 
}

@media (max-width: 700px) {
  .Home .home-card{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 16px;
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
  }
  .home-card-link{
    flex: 0 0 calc(100vw - 32px);
    scroll-snap-align: start;
  }
  .scroll-hotzone{
    display: none;
  }
}
.home-card__title.bold {
  font-weight: 700; /* または bold */
}
/* スクロールバーを目立たせない（任意） */
.home-card::-webkit-scrollbar{
  height: 10px;
}
.home-card::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.25);
}
.home-card-link:hover .home-card-panel{
  background: #d5dde3;              /* ← 好きな色に */
  transform: translateY(-4px);      /* 少し浮く */
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}
/* 自動スクロール中はスナップを切る */
.home-card.is-autoscrolling{
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.scroll-hotzone{
  position: absolute;
  inset: 0 auto 0 auto;
  top: 0;
  bottom: 0;
  width: 150px;           /* タッチしやすい幅に */
  z-index: 9999;
  cursor: pointer;
  pointer-events: auto;
}
.scroll-hotzone--left{ left: 0; }
.scroll-hotzone--right{ right: 0; }
.scroll-hotzone--left,
.scroll-hotzone--right{
  background: transparent;
}

/* MEMBER */
.container_member{
  max-width: 1200px;
  width: 100%;
  margin: 56px auto;
  padding: 24px 24px 56px; /* ← 上に 24px の余白を“padding”で持たせる */
  box-sizing: border-box;
}

.teachers h2, .students h2{
  margin-bottom: 32px;
  color: #000;
  font-size: 2rem;
  font-weight: 600;
  position: relative;
}
.teacher_wrapper{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.member.teacher{
  background: #e6eaed;
  border-radius: 24px;
  padding: 24px;
  font-size: 1.2rem;
  font-weight: 500;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}
.member.teacher::before{
  content: '';
  position: absolute;
  background: #e6eaed;
  border-radius: 24px 24px 0 0;
}
.member.teacher:hover{
  transform: translateY(-2px);
  border-color: #000;
  text-decoration: none;
  color: inherit;
}
.member.teacher img{
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: block;
  border: 4px solid #000;
}
.member.teacher .member_content{
  text-align: center;
}
.member.teacher p{
  margin: 0 0 16px 0;
  color: #000;
  font-size: 1.2rem;
  font-weight: 500;
  background: #e6eaed;
  padding: 6px 12px;
  border-radius: 24px;
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.member.teacher .member_content a:hover{
  background: #000;
  color: F8FEFF;
  transform: translateY(-2px);
}
.external_link{
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border: 2px solid #000;
  border-radius: 24px;
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-top: 8px;
}
.external_link:hover{
  background: #777;
  color: black;
  transform: translateY(-2px);
}

/* profile */
.teacher_profile{
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  padding: 30px;
  background: #F8FEFF;
  border-radius: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #000;
}
.teacher_image img{
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.teacher_info h2{
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
  margin: 0 0 10px 0;
}
.teacher_content{
  background: #F8FEFF;
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #F8FEFF;
}
.teacher_content h3{
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
}
.teacher_content p{
  color: #4a5568;
  line-height: 1.6;
  margin: 0 0 20px 0;
}
.grade_section {
  margin-bottom: 32px;
}
.grade_section h3{
  color: #000;
  border-bottom: 2px solid #000;
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  font-weight: 600;
}
.student_wrapper{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.member.student{
  background: #e6eaed;
  border-radius: 24px;
  padding: 10px;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}
.member.student:hover{
  transform: translateY(-2px);
}
.member.student h1{
  margin: 0 0 5px 0;
  color: #000;
  font-size: 1.2em;
  font-weight: 600;
}
.member.student p{
  display: inline-block;
  background: #000;
  color: #F8FEFF;
  padding: 2px 8px;
  border-radius: 24px;
  font-size: 0.8em;
  font-weight: bold;
  margin-bottom: 5px;
}
/* Membersページだけ左寄せに寄せる（JP/ENどちらも） */
#membersEn, #membersJp { text-align: left; }
/* Teachers と Students の間を広げる */
#membersEn .teachers,
#membersJp .teachers{
  margin-bottom: 72px;   /* ← 40〜72pxくらいで好み調整 */
}
/* Teachers/Students 見出しも左寄せ */
#membersEn .teachers h2, 
#membersEn .students h2,
#membersJp .teachers h2, 
#membersJp .students h2{
  text-align: left;
}
/* 教員カード内も左寄せ（いまcenter指定があるので上書き） */
#membersEn .member.teacher .member_content,
#membersJp .member.teacher .member_content{
  text-align: left;
}
/* 教員カードの p も左寄せ（いまcenter指定があるので上書き） */
#membersEn .member.teacher p,
#membersJp .member.teacher p{
  text-align: left;
}
.member.teacher:hover,
.member.student:hover{
  transform: translateY(-2px);
}
/* Teachers も Students も 1列にする */
#membersEn .teacher_wrapper,
#membersJp .teacher_wrapper,
#membersEn .student_wrapper,
#membersJp .student_wrapper{
  grid-template-columns: 1fr;   /* 1列固定 */
}
/* もし student_wrapper が将来 flex になっても縦に落ちるよう保険 */
#membersEn .student_wrapper,
#membersJp .student_wrapper{
  display: grid;               /* 念のため明示 */
}
/* Teachers を “職名 + 名前” のテキスト表示に */
#membersEn .member.teacher,
#membersEn .member.student,
#membersJp .member.teacher,
#membersJp .member.student{
  background: transparent;
  border-radius: 0;
  padding: 6px 0;
}
#membersEn .member.teacher .member_content,
#membersJp .member.teacher .member_content{
  text-align: left;
}
/* 浮く動きを無効化 */
#membersEn .member.teacher:hover,
#membersEn .member.student:hover,
#membersJp .member.teacher:hover,
#membersJp .member.student:hover{
  transform: none;
}
/* 名前 + Profile を同じ行に並べる */
#membersEn .name_row,
#membersJp .name_row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
/* 名前 */
/* 本文（名前/住所の太字） */
#membersEn .name_text,
#membersJp .name_text{
  font-weight: 600;
}
/* Profileリンク（右側） */
#membersEn .student_profile_link,
#membersJp .student_profile_link{
  color: #0f1fd2;
  font-size: 0.95rem;
  text-decoration: none;
  padding-bottom: 2px;
  opacity: 0.9;
}
/* hoverは“色だけ変える”（浮かせない） */
#membersEn .student_profile_link:hover,
#membersJp .student_profile_link:hover{
  color: #333;
  opacity: 1;
}
.profile-page .member.student {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.profile-page .member,
.profile-page .student,
.profile-page .member_content,
.profile-page .member_name,
.profile-page .member_other{
  transition: none !important;
}
.profile-page .member:hover,
.profile-page .student:hover{
  transform: none !important;
  box-shadow: none !important;
}
/* もしリンクや行全体に hover 演出がある場合も止める */
.profile-page a:hover,
.profile-page .name_row:hover{
  transform: none !important;
  box-shadow: none !important;
}
.profile-photo{
  margin: 16px 0 28px;
  text-align: center;
}
.profile-photo img{
  width: 70%;
  height: Auto;
  object-fit: cover;
  display: inline-block;
}
.profile-toolbar{
  display: flex;
  justify-content: flex-start;
  margin: 10px 0 18px;
}
.profile-back{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.profile-back:hover{
  color: #757575;
}
/* ===== Profile: external link hover (color only) ===== */
.profile-link{
  color: #1f3bd9;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.profile-link:hover{
  color: #0f2aa8; /* 好きな色に変更OK */
}
.profile-page .ach-section h4{
  font-weight: 700;
  border-bottom: 1.5px solid #000;
  display: inline-block;
}
.profile-page .ach-title{
  font-weight: 400 !important;
}
.profile-page .author-self{
  text-underline-offset: 3px;   /* 文字との距離 */
  text-decoration-thickness: 1px;
  color: #180cc8;
}
.profile-page .paper-name{
  text-underline-offset: 3px;   /* 文字との距離 */
  text-decoration-thickness: 1px;
  color: #fa8525;
}
.profile-page .paper-award{
  text-underline-offset: 3px;   /* 文字との距離 */
  text-decoration-thickness: 1px;
  color: #fa2525;
}

/* RESEARCH */
.container_research{
  max-width: 1200px;
  width: 100%;
  background: #F8FEFF;
  margin: 56px auto;
  padding: 24px 24px 56px;
  box-sizing: border-box;
}

/* ACHIEVEMENT */
.achievements > h2{
  margin-bottom: 32px;
  color: #000;
  font-size: 2rem;
  font-weight: 600;
  text-align: left;
  position: relative;
}
/* 論文タイトル：長文対応 */
.ach-item .ach-title{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.7;
  white-space: normal;
  overflow-wrap: normal;
  word-break: auto-phrase;
  line-break: strict;
}
/* 著者など */
.ach-item .ach-authors{
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}
/* バッジ類（任意） */
.ach-item .ach-meta{
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ach-item .ach-badge,
.ach-item .ach-org{
  font-size: 0.85rem;
  color: #333;
}
#awardsEn .ach-title{
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
}
/* Awards 見出し＝MembersのTeachersと同じ “左寄せ” */
#awardsEn { text-align: left; }
#awardsEn .grade_section { margin-top: 18px; }
/* 年(2025等)＝MembersのD3等と同じ扱い（左・下線） */
#awardsEn .grade_section h3{
  color: #000;
  border-bottom: 2px solid #000;
  padding-bottom: 5px;
  margin: 18px 0 12px 0;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  font-weight: 600;
}
/* 縦リスト（横並びを完全に殺す） */
#awardsEn .member_list{
  list-style: none;
  padding: 0;
  margin: 0;
}
/* 1行＝Membersの名前行っぽく */
#awardsEn .member_row{
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column; /* metaがあるときだけ下に出す */
  gap: 6px;
}
/* 箇条書きの “・” を付ける（Membersの先生と同じ雰囲気） */
#awardsEn .member_row::before{
  display: inline-block;
  margin-right: 8px;
  transform: translateY(1px);
}
/* タイトル本文（左寄せ・太め） */
#awardsEn .member_text{
  font-weight: 600;
  color: #000;
  line-height: 1.45;
}
/* もし authors/award/org が分かれて入るようになったら小さめ表示 */
#awardsEn .ach_meta{
  font-size: 0.95rem;
  color: rgba(0,0,0,0.65);
  line-height: 1.45;
  padding-left: 1.2em; /* ・の分だけ字下げっぽく */
}
/* Achievementsページだけ：見出しをMembersのTeachersと同じ左寄せに */
body.achievements-page .teachers h2{
  text-align: left;
  margin-left: 0;
}

/* NewS */
.news-list {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
}
.news-list li {
  padding: 12px 0;
  border-bottom: 1px solid #ccc;
}
.label {
  margin-left: 8px;
  font-size: 0.8rem;
  color: #999;
}

/* ACCESS */
.access-page .access-wrap{
  text-align: left;
}
/* 見出し（Teachersと同じ “左寄せ” に強制） */
.access-page .teachers{
  text-align: left !important;
}
.access-page .teachers > h2{
  text-align: left !important;
  margin-left: 0 !important;
}
/* セクション間（Address と Contact の間） */
.access-page .access-section-gap{
  margin-top: 72px;
}
/* 本文（名前/住所の太字） */
.access-page .access_main{
  font-weight: 600;
  color: #000;
  line-height: 1.45;
}
/* その他（日本語名/メール等） */
.access-page .access_sub{
  margin-top: 6px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(0,0,0,0.75);
}

/* FOOTER */
footer {
  background-color: #F8FEFF;
  color: #F8FEFF;
  padding: 20px 15px;
}
.footer-top {
  text-align: center;
  justify-content: center;
}
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-menu a {
  color: #F8FEFF;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}
.footer-menu a:hover {
  color: #000;
}
.footer-middle {
  text-align: center;
  margin: 20px 0;
  font-size: 12px;
  color: #777;
  line-height: 1.4;
}
.footer-middle p {
  white-space: normal;
}
.copyright-break {
  display: inline;
}
/* ある幅以下で改行させる */
@media (max-width: 700px) {
  .copyright-break {
    display: block;
    margin-top: 4px; /* 行間が欲しければ */
  }
}

a:link,
a:visited,
a:hover,
a:active {
  color: inherit;
}
.page-top{
  position: fixed;
  right: -8px;
  bottom: 0px;
  z-index: 2000;
  width: 64px;
  height: 180px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,0);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
}
.page-top__icon{
  font-size: 20px;
  line-height: 1;
}
/* 横向き文字のまま縦に積む */
.page-top__label{
  writing-mode: vertical-rl;     /* 縦方向に並べる */
  text-orientation: upright;     /* 英数字を回転させず“正立”で積む */
  white-space: nowrap;
  line-height: 1;
  letter-spacing: .08em;         /* ここで間隔を微調整 */
  font-size: 12px;
  font-weight: 700;
}
/* 初期は隠す */
#pageTop.page-top{
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
/* スクロール後に出す */
#pageTop.page-top.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* ホバー時：背景・文字色を変える */
.page-top:hover{
  background: rgba(0,0,0,0);
}
.page-top:hover .page-top__icon,
.page-top:hover .page-top__label{
  color: #777;
}

/* ===== index: 縦スクロールをスナップさせる ===== */
body.index-page{
  scroll-padding-top: var(--header-h, 0px);
}

/* 矢印の見た目 */
.scroll-hotzone::after{
  content: "";
  pointer-events: none;
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 3px solid rgba(0,0,0,0.9);
  border-right: 3px solid rgba(0,0,0,0.9);
  transform: translateY(-50%) rotate(45deg);
  opacity: 1;
  transition: opacity .12s;
}
html,body{
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--header-h, 160px);
}
body.index-page .Home{
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: var(--header-h, 160px);
}
.scroll-hotzone--left::after{
  left: 22px;
  transform: translateY(-50%) rotate(225deg);  /* 左向き固定 */
}
.scroll-hotzone--right::after{
  right: 22px;
  transform: translateY(-50%) rotate(45deg);   /* 右向き固定 */
}

.profile-page .profile-header{
  display: flex;
  align-items: center;
  gap: clamp(24px, 10vw, 200px);    /* 画像と名前の間隔を広げる */
  margin: 40px 0 40px 0;
}

.profile-page .profile-photo{
  margin: 0;
  text-align: left;
  flex: 0 0 clamp(180px, 22vw, 240px);
}

.profile-page .profile-photo img{
  width: clamp(180px, 22vw, 240px);
  height: clamp(180px, 22vw, 240px);
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.profile-page .profile-name{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-page .profile-name h2{
  margin: 0;
  line-height: 1.4;
}

.profile-page .profile-name h2:first-child{
  margin-bottom: 12px;
}

.profile-page .name-en{
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
}

.profile-page .name-ja{
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 700;
}

.fit-picture {
  width: 600px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}