@charset "utf-8";

/* About page tweaks on top of style_v2.css */
.hero-sub{

  position: relative;

  height: 40vh;

  background-image: url("../images/hero_space.jpg");
  background-size: cover;
  background-position: center;

  display:flex;
  align-items:center;
}

.hero-sub::before{

  content:"";

  position:absolute;
  top:0;
  left:0;

  width:100%;
  height:100%;

  background:rgba(0,0,0,0.55);
}

.hero-sub .container{

  position:relative;
  color:white;
}

/* 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 18px;
}
.subnav a{
  text-decoration:none;
  font-size: 13px;
  font-weight: 800;
  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 */
.about-content{
  color: var(--fg);
}

/* Headings inside legacy content */
.about-content h2{
  margin: 0 0 12px;
  font-size: 20px;
}
.about-content h3{
  margin: 22px 0 10px;
  font-size: 18px;
  letter-spacing: .01em;
}

/* Make old section labels (strong.color1) look like subheaders */
.about-content .color1{
  display: block;
  margin-top: 6px;
  padding-bottom: 4px;
  color: var(--fg);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.about-content a .color1{ display: inline; border: 0; color: inherit; }

/* Turn paragraphs into cards-ish blocks */
.about-content p{
  margin: 10px 0 0;
  color: var(--muted);
}

/* Make bullet-like "・" lines easier to scan */
.about-content p br{ line-height: 1.2; }

/* Legacy <font> cleanup / styling */
.about-content font[color="black"]{ color: var(--fg) !important; }
.about-content font[size="2"], .about-content font[size=2]{
  color: rgba(100,116,139,.98);
  font-size: 13px;
}
.about-content b{ color: var(--fg); }

/* Give each member line a bit of breathing room */
.about-content p strong + br{ display:block; margin-top: 8px; }

/* Blockquote (Twitter) */
.about-content blockquote.twitter-tweet{
  margin: 14px 0 0;
  border-radius: 16px;
  overflow: hidden;
}

/* Links */
.about-content a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
}
.about-content a:hover{ text-decoration: underline; }

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

/* Cards */
.about-content .card{ padding: 22px 24px; margin-bottom: 20px; }
.about-content > br{ display: none; }
.about-content .card > h3:first-child{
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 19px;
  border-bottom: 2px solid var(--fg);
}

/* 教員 */
.staff-head{ margin-bottom: 10px; }
.staff .staff-name{
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
}
.staff-kana{ font-size: 13px; font-weight: 400; color: var(--muted); }
.staff .staff-role{ margin: 0; font-size: 14px; color: var(--muted); }
.staff .staff-links{ margin: 6px 0 0; font-size: 14px; }
.staff-links a + a{ margin-left: 14px; }
.staff .staff-bio{ color: var(--fg); line-height: 1.85; }
.staff h4{
  margin: 22px 0 6px;
  font-size: 15px;
  color: var(--fg);
}
.cv{
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 16px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.cv dt, .cv dd{
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.cv dt{ color: var(--muted); font-variant-numeric: tabular-nums; }
.cv dd{ color: var(--fg); }

.map{
  position: relative;
  margin-top: 16px;
  aspect-ratio: 4 / 3;
  max-width: 560px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* X */
.sns .twitter-tweet{ max-width: 100%; }

/* Mobile */
@media (max-width: 640px){
  .subnav{
    top: 64px;
    border-radius: 18px;
  }
  .about-content .card{ padding: 18px 16px; }
  .cv{ column-gap: 12px; font-size: 13.5px; }
  .map{ aspect-ratio: 1 / 1; }
  .about-content p{ font-size: 14px; }
}
