/*
  CSSの`@import`は、複数ファイルの読み込みが遅いなどの理由で非推奨になっている
  ここでは1つのファイルだけを読み込む目的で使用することにする

  複数ファイルを読み込む場合は、

  - Sassの`@use`を使う
  - Frontmaterで複数のCSSファイルを指定できるようにする

  などの代替案を検討すること
*/
@import url("/assets/css/markdown.css");

@media screen and (min-width: 520px) {
  main {
    grid-template-columns:
      minmax(30px, 1fr)
      minmax(auto, 1080px)
      minmax(30px, 1fr);
  }
}

h1 {
  display: none;
}

/* ------------------------------
p, span
------------------------------ */

p {
  margin-bottom: 10px;
  font-size: 14px;
  color: #101010;
}

p span {
  color: #101010;
  font-size: 13px;
  font-weight: normal;
  margin: 0 0 0 10px;
}
p.profile {
  display: inline-block;
  margin: 8px 0 20px;
  font-size: 13px;
  text-decoration: underline;
  color: #47525d;
  cursor: pointer;
}

/* ------------------------------
.membersContainer
------------------------------ */

.membersContainer {
  display: flex;
  flex-flow: row wrap;
  row-gap: 24px;
  column-gap: 6.5%;
}
@media screen and (min-width: 520px) {
  .membersContainer {
    row-gap: 21px;
    column-gap: 6.5%;
  }
}
.memberBlock {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media screen and (min-width: 520px) {
  .memberBlock {
    width: 29%;
  }
}
.memberBlock .member-summary {
  width: 80%;
}
@media screen and (min-width: 520px) {
  .memberBlock .member-summary {
    width: 100%;
  }
}
.memberBlock p.bio {
  white-space: pre-line; /* /_data/members.yml の改行を反映 */
  font-size: 13px;
}
.memberBlock img {
  width: 100%;
}

/* 名前と肩書 */
.member-title {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 10px;
}
.member-name {
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  justify-content: center;
  column-gap: 0.2em;
}
@media screen and (min-width: 520px) {
  .member-name {
    font-size: 22px;
  }
}
.member-name ruby {
  display: inline flex;
  flex-direction: column;
  row-gap: 0.2em;
}
.member-name ruby[data-ruby]::before {
  content: attr(data-ruby);
  text-align: center;
  font-size: 0.5em;
  font-weight: normal;
}
.member-name ruby[data-ruby] rt {
  display: none;
}

/* 肩書き */
.member-title span.role {
  display: block;
  font-size: 13px;
}
/* プロフィール内容について */
.bio-box p {
  line-height: 1.5;
  color: #47525d;
}
