@charset "utf-8";
/* メンバのページ（member.html）だけで使う．名前のふりがな（ruby）と，名前を並べる表 */

/* body {
  line-height: 160%;
  text-align: justify;
} */

ruby[data-ruby] {
  position: relative;
}

ruby[data-ruby]::before {
  content: attr(data-ruby);
  position: absolute;
  line-height: 100%;
  text-align: center;
  left: -3em;
  right: -3em;
  transform-origin: bottom center;

  /* ルビの文字サイズを親文字に対する比率で指定 */
  transform: scale(0.5);

  /* 100%を越える部分が親文字とルビとのスペースになる。単位は親文字に対する比率 */
  bottom: 100%;

  /* デバッグ用 */
  /*background-color: rgba(255, 0, 0, 0.2);*/
}

ruby[data-ruby] rt {
  display: none;
}

table {
  margin-left: auto;
  margin-right: auto;
}

.centering {
  display: block;
  padding: 10px 0px 60px;
  /* background: #f2f2f2; */
  /* border: 1px solid #999; */
  /* color: #333; */
  /* width: 200px; */
  /*コレ*/
  margin: auto;
  text-align: center;
  /* border: 1px solid #999; */
  /* padding: 10px; */
  /* background: #fff9cc; */
  margin-top: 10px;
}

img {
  object-fit: cover;
  aspect-ratio: 1/1;
}

.table {
  border-collapse: collapse;
  margin: 0 auto;
  width: 70%;
  table-layout: auto;
}

@media print {
  .element-that-contains-table {
    overflow: visible !important;
  }
}

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

  table,
  thead,
  tbody,
  th {
    text-align: center;
    display: block;
    border-collapse: collapse;
    margin: 0 auto;
    width: 100%;
  }

  tr {
    display: inline;
  }

  td {
    /* Behave  like a "row" */
    display: inline-block;
    /* border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 0%; */
    margin-bottom: 8px;
  }

  td:before {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
  }
}

/* 見出しを左寄せにしたので，名前の一覧も左に寄せる（scripts/members.py が class="member-list" を付ける） */
.member-list {
  text-align: left;
}

.member-list .table,
.member-list table,
.member-list tbody,
.member-list th {
  margin: 0;
  width: auto;
  text-align: left;
}

.member-list dd {
  margin-left: 0;
}
