@charset "utf-8";

/* Students page tweaks on top of style_v2.css */

/* ページ上部の背景 (このページだけ) */
.hero-sub.hero-lab{ background-image: url("../images/PMR1.jpg"); }

/* Subnav */
.subnav{
  position: sticky;
  top: 72px;
  z-index: 10;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.10);
  backdrop-filter: blur(10px);
  margin: 0 0 22px;
}
.subnav a{
  text-decoration:none;
  font-size: 13px;
  font-weight: 750;
  color: rgba(15,23,42,.72);
  padding: 8px 10px;
  border-radius: 999px;
}
.subnav a:hover{
  background: rgba(59,130,246,.12);
  color: rgba(15,23,42,.92);
}

/* Content */
.students-content{ color: var(--fg); }
.students-content p{
  margin: 12px 0 0;
  color: var(--fg);
  line-height: 1.9;
}
.students-content a{ color: var(--accent); }
.students-content b, .students-content strong{ color: var(--fg); }

/* Cards */
.students-content .card{ padding: 24px 28px; margin-bottom: 22px; }
.students-content .card > h2{
  margin: 0 0 4px;
  padding-bottom: 8px;
  font-size: 20px;
  letter-spacing: .01em;
  border-bottom: 2px solid var(--fg);
}
.students-content h3{
  margin: 24px 0 0;
  font-size: 16px;
}

/* Bullets */
.bullets{
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--fg);
}
.bullets li{ margin: 4px 0; line-height: 1.7; }

/* テーマ例: 実験と観測を左右に */
.theme-cols{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 6px;
}
.theme-cols h4{
  margin: 10px 0 0;
  padding-bottom: 4px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.theme-cols h4 a{ color: var(--fg); text-decoration: none; }
.theme-cols h4 a::after{ content: " →"; color: var(--muted); font-weight: 400; }
.theme-cols h4 a:hover{ color: var(--accent); }
.theme-cols p{ font-size: 14px; line-height: 1.8; color: var(--muted); }
.theme-cols .bullets{ font-size: 14.5px; }

/* 研究室での生活 */
.facts{
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 20px;
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
}
.facts dt, .facts dd{
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt{ font-weight: 700; }
.facts dd{ color: var(--fg); }

/* 目標: 卒研 → 修士 → 博士 */
.steps{
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  font-size: 14px;
  line-height: 1.75;
}
.steps li{
  padding: 0 18px;
  border-left: 1px solid var(--line);
}
.steps li:first-child{ padding-left: 0; border-left: 0; }
.step-name{
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
}
.step-note{
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.step-note::before{ content: "→ "; }

/* 補足の一文 */
.students-content .aside{
  margin-top: 18px;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* Links */
.linklist{ margin:0; padding-left: 18px; color: var(--muted); }
.linklist li{ margin: 6px 0; }
.linklist a{ text-decoration: none; color: var(--accent); font-weight: 650; }
.linklist a:hover{ text-decoration: underline; }

/* Anchor offset for sticky header */
:target{ scroll-margin-top: 140px; }

/* Mobile */
@media (max-width: 640px){
  .subnav{
    position: static;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-radius: 14px;
    scrollbar-width: none;
  }
  .subnav::-webkit-scrollbar{ display: none; }
  .subnav a{ white-space: nowrap; }

  .students-content .card{ padding: 18px 16px; }
  .students-content p{ font-size: 14.5px; line-height: 1.85; }
  .theme-cols{ grid-template-columns: 1fr; gap: 6px; }
  .facts{ grid-template-columns: 1fr; font-size: 14px; }
  .facts dt{ padding-bottom: 0; border-bottom: 0; }
  .facts dd{ padding-top: 2px; }
  .steps{ grid-template-columns: 1fr; }
  .steps li{
    padding: 10px 0 10px 14px;
    border-left: 2px solid var(--line);
  }
  .steps li:first-child{ padding-left: 14px; border-left: 2px solid var(--line); }
}

/* 写真 (小さく横に並べる。押すと拡大) */
.photos{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.photos a{ display: block; width: 210px; }
.photos img{
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}
.photos a:hover img{ opacity: .9; }
.photos figcaption{
  flex-basis: 100%;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 640px){
  .photos a{ width: calc((100% - 16px) / 3); }
  .photos-2 a{ width: calc((100% - 8px) / 2); }
}
