/* ===== PAGE TOP SPACER ===== */
.page-top {
  height: clamp(80px, 14vw, 120px);
  background: var(--sand);
}

/* ===== ABOUT SECTION ===== */
.about-hero-wrap {
  margin: 0 auto;
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
.about-hero-img {
  width: 100%;
  min-width: calc(100vw); 
  margin-left: 50%;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
@media (max-width: 768px) {
  .about-hero-img { height: clamp(320px, 70vw, 480px); }
}
@media (min-width: 1200px) {
  .about-hero-img { height: 40vw; }
}

.about-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 60px) clamp(48px, 8vw, 80px);
}

.about-body {
  display: flex; flex-direction: column; gap: 28px;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.about-body p {
  font-size: clamp(.82rem, 1.4vw, .95rem);
  text-align: center; line-height: 2.05;
  font-weight: 500; color: var(--text);
  margin-bottom: 1.8em;
}
.about-body p:last-child { margin-bottom: 0; }
.about-body .en-text {
  font-family: var(--font-en);
  font-size: clamp(.8rem, 1.3vw, .9rem);
  line-height: 2;
}
.about-body .en-text p {
  color: var(--gold);
  font-family: var(--font-en);
  font-size: clamp(.8rem, 1.3vw, .9rem);
  line-height: 2;
}

.btn-oval-wrap { text-align: center; margin-bottom: clamp(48px, 8vw, 80px); }
.btn-oval {
  display: inline-block; position: relative;
  font-family: var(--font-ja); font-size: .9rem; font-weight: 500;
  padding: 12px 44px; letter-spacing: .1em;
}
.btn-oval svg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 160px; height: auto;
  pointer-events: none; overflow: visible;
}
.btn-oval .oval-btn {
  fill: none; stroke: var(--gold); stroke-width: 1.5px;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-dashoffset .5s ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  .btn-oval:hover .oval-btn       { stroke-dashoffset: 0 !important; }
  .profile-link:hover .oval-profile { stroke-dashoffset: 0 !important; }
}

/* ===== RESEARCH SECTION ===== */
.research-section {
  padding-bottom: clamp(48px, 8vw, 80px);
  z-index: 3;
}
.research-inner {
  padding: 0;
}
.research-grid {
  display: flex; flex-wrap: nowrap;
  overflow-x: auto; overflow-y: hidden; gap: 20px;
  margin-bottom: 36px; padding-bottom: 16px;
  padding-left:  clamp(24px, 5vw, 64px);
  padding-right: clamp(24px, 5vw, 64px);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.research-grid::-webkit-scrollbar        { height: 4px; }
.research-grid::-webkit-scrollbar-track  { background: transparent; }
.research-grid::-webkit-scrollbar-thumb  { background: var(--sand-dark); border-radius: 2px; }

/* ===== RESEARCH SCROLL BUTTONS ===== */
.research-scroll-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: -20px;
  margin-bottom: 28px;
}

.research-scroll-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer;
  color: var(--gold); font-size: 1rem;
  transition: transform 0.2s, color 0.2s;
}

.research-scroll-btn:hover {
  color: var(--gold);
}

.research-scroll-btn[data-disabled="true"] {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
  transform: none;
}

.scroll-btn-arrow {
  width: 22px;
  height: 16px;
  display: block;
  fill: currentColor;
  pointer-events: none;
}

@media (max-width: 768px) {
  .research-section {
    margin-bottom: 10vw;
  }
  .research-scroll-controls {
    display: none;
  }
  .btn-oval {
  margin-top: 6vw;
}
  .btn-oval svg {
  width: 140px; 
}
}

/* カード */
.research-card {
  background: var(--white);
  border: 1px solid;
  border-radius: 14px 14px 0 14px; overflow: hidden;
  flex: 0 0 650px;
  display: flex; flex-direction: column;
  padding: 30px; gap: 18px;
}
.research-card-title {
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 500; line-height: 1.7;
  color: var(--text); letter-spacing: .03em;
  min-height: calc(1rem * 1.7 * 2);
  text-align: center;
}
.research-card-body {
  display: flex; flex-direction: row;
  gap: 36px; align-items: stretch;
}
.research-card-img,
.img-placeholder {
  flex: 1; min-width: 0;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  flex-shrink: 1;
  align-self: stretch;
  aspect-ratio: unset;
}
.research-card-text {
  flex: 1; min-width: 0;
  font-size: .82rem;
  text-align: justify;
  line-height: 2.05; font-weight: 500;
}
.research-other-wrap { text-align: center; }
.research-other {
  display: inline-block; text-align: center;
  font-size: clamp(.78rem, 1.2vw, .88rem);
  font-weight: 500; line-height: 2.1;
  padding: 0 clamp(24px, 5vw, 64px);
}

/* ===== MEMBERS SECTION ===== */
.members-section {
  max-width: 1100px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) clamp(60px, 10vw, 100px);
}
.members-category       { margin-bottom: 40px; }
.members-category-label {
  display: inline-block;
  border: 1px solid;
  border-radius: 5px 5px 5px 0;
  background-color: rgb(255, 255, 255);
  padding: 4px 20px;
  font-family: var(--font-en);
  font-size: .8rem; letter-spacing: .1em;
  margin-bottom: 20px;
}
.professor-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.professor-info { display: flex; align-items: baseline; gap: 16px; }
.member-name-jp { font-family: var(--font-ja); font-weight: 500; }
.member-name-en { font-family: var(--font-en); font-size: .88em; }

.profile-link {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .05em;
  display: inline-block; position: relative;
  padding: 4px 16px;
}
.profile-link svg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 108%; height: auto;
  pointer-events: none; overflow: visible;
}
.profile-link .oval-profile {
  fill: none; stroke: var(--gold); stroke-width: 1.2px;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-dashoffset .5s ease-in-out;
}

.members-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px 12px;
}
.member-item {
  display: flex; align-items: baseline; gap: 8px;
  font-size: clamp(.72rem, 1.1vw, .82rem);
  padding: 8px 0; font-weight: 500;
}

/* ===== WAVY LINES ==== */
body { position: relative; isolation: isolate; overflow-x: clip; }
.wavy-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.wavy-path {
  fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 0.1 11;
}
.wavy-L1 { stroke: var(--gold); stroke-width: 4.0;  }
.wavy-L2 { stroke: var(--gold); stroke-width: 3.4; }
.wavy-L3 { stroke: var(--gold); stroke-width: 2.8; }
.wavy-R1 { stroke: var(--gold); stroke-width: 4.0;  }
.wavy-R2 { stroke: var(--gold); stroke-width: 3.4;  }
.wavy-R3 { stroke: var(--gold); stroke-width: 2.8;  }

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
  .section-title {
    padding-left:  clamp(48px, 10vw, 80px);
    padding-right: clamp(48px, 10vw, 80px);
  }
  .about-wrap      { padding-left: 15vw; padding-right: 15vw; }
  .members-section { padding-left: 15vw; padding-right: 15vw; }
  .research-other-wrap { text-align: center; }
  .research-other  { display: inline-block; text-align: left; }
}

@media (max-width: 768px) {
  .research-inner { padding: 0; }
  .research-grid {
    flex-direction: column; overflow-x: visible;
    padding-left:  15vw;
    padding-right: 15vw;
  }
  .research-other-wrap { text-align: center; }
  .research-other {
    display: inline-block; text-align: left;
    padding-left: 0; padding-right: 0;
  }
  .research-card { flex: 0 0 auto; width: 100%; }
  .research-card-body {
    flex-direction: column; gap: 16px;
  }
  .research-card-img,
  .img-placeholder {
    width: 100%; aspect-ratio: 4 / 3; height: auto;
    align-self: auto;
  }
  .research-card-title {
    font-size: clamp(.82rem, 2vw, 1rem);
    min-height: unset;
  }
  .research-card-text { font-size: clamp(.72rem, 1.8vw, .82rem); }
  .members-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section-title {
    padding-left:  clamp(52px, 13vw, 72px);
    padding-right: clamp(52px, 13vw, 72px);
  }
  .about-wrap {
    padding-left:  clamp(52px, 13vw, 72px);
    padding-right: clamp(52px, 13vw, 72px);
  }
  .members-section {
    padding-left:  clamp(52px, 13vw, 72px);
    padding-right: clamp(52px, 13vw, 72px);
  }
}

@media (max-width: 480px) {
  .research-card { padding: 18px 14px 22px; }
  .research-card-body { flex-direction: column !important; }
  .research-card-img,
  .img-placeholder {
    width: 100% !important; min-width: unset !important;
    aspect-ratio: 4 / 3; height: auto; min-height: unset;
  }
  .members-list { grid-template-columns: 1fr; }
  .professor-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .profile-link svg { display: none; }
  .profile-link { padding: 0; }
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in         { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .wavy-svg {
    position: fixed;
    height: 100vh;
  }
}

@media (max-width: 640px) {
  .wavy-L1,
  .wavy-R1 { display: none; }
}