@charset "utf-8";

:root {
  --main-color: #1f6fb2;
  --main-txt-color: #1f4f7a;
  --main-bg-color: #eaf4ff;
  --grayscale-color: #3b484a;
  --grayscale-color-dark: #444;
  --grayscale-bg-color: #f7f7f7;
  --base-bd-color: #777;
  --base-bd-color-right: #ccc;
  --base-bg-color: #f3f3f3;
  --link-color: #2451c6;
  --link-visited: #7c169e;
  --notice-color: #fcc800;
  --text-color: #333;

  --contents-width: 1200px;
  --header-height: 96px;
  --footer-height: 94px;
  --padding-spase: 40px;
  --contents-height: calc(100vh - var(--header-height) - var(--footer-height));
}


/* Base */
html {
  font-size: 16px;
  min-width: 200px;
  width: 100%;
}

body {
  background: #fff;
  color: var(--text-color);
  font-family: "Avenir Next", Verdana, "Hiragino Kaku Gothic Pro", "Yu Gothic", Meiryo, Osaka, sans-serif;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

a {
  color: var(--link-color);
  transition: all .3s;
}

a:hover {
  text-decoration: none;
}

a:visited {
  color: var(--link-visited);
}

code {
  background: var(--base-bg-color);
  border-radius: 2px;
  display: inline-block;
  padding: 0 4px;
}

em {
  font-family: "Avenir Next", Verdana, "Hiragino Kaku Gothic Pro", "Yu Gothic", Meiryo, Osaka, sans-serif;
  font-style: italic;
}

img {
  max-width: 100%;
}

mark {
  background: var(--notice-color);
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  line-height: 1.33;
  margin: 24px 0 8px;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: .9375rem;
}

hr {
  border: 0;
  border-bottom: 1px solid var(--base-bd-color);
}

p {
  margin: 1em 0;
}

pre {
  display: block;
}

ul,
ol {
  margin: 16px 0 16px 16px;
  padding: 0 0 0 16px;
}

ul ul,
ul ol,
ol ul,
ol ol {
  margin: 8px 0;
}

li {
  margin: 8px 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  text-align: left;
}

blockquote {
  background: var(--base-bg-color);
  margin: 16px 0;
  padding: 16px 24px;
}

blockquote p {
  margin: 8px 0;
}

blockquote footer {
  font-size: .875rem;
}

small {
  font-size: .875rem;
}

/* */
.btn-base {
  background: var(--main-color);
  border: var(--main-color) 1px solid;
  border-radius: 2px;
  box-shadow: inset rgba(#fff, .5) 0 1px 1px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: .94rem;
  font-weight: normal;
  line-height: 1.33;
  padding: 8px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: all .3s;
  vertical-align: bottom;
  zoom: 1;
}

.btn-base:hover {
  background: var(--main-txt-color);
  box-shadow: 0 1px 1px rgba(#000, .3), inset 1px 1px 1px rgba(#000, .5);
}

.btn-base:active {
  color: var(--grayscale-bg-color);
  top: 1px;
}

.w-harf {
  width: 50%;
}

.w-tri {
  width: 33%;
}

.w-quad {
  width: 25%;
}

.w-sm {
  width: 20%;
}

.w-min {
  width: 15%;
}

.w-xmin {
  width: 10%;
}

/* Flame */
.screen {
  padding-top: 96px;
  text-align: center;
}

.mainhd {
  background: rgb(255 255 255 / 0.9);
  box-sizing: border-box;
  border-bottom: 1px solid var(--text-color);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.mainhd-wrap {
  box-sizing: border-box;
  display: flex;
  margin: auto;
  height: var(--header-height);
  padding: 0 20px;
  text-align: left;
  max-width: var(--contents-width);
}

.mainhd-logo {
  align-self: center;
  box-sizing: border-box;
  display: flex;
  margin-top: 8px;
}

.mainhd-logo > a {
  box-sizing: border-box;
  display: block;
  margin-right: clamp(4px, 1vw, 16px);
  max-width: 8vw;
  min-width: 48px;
}

.mainhd-logo-img {
  align-self: center;
  display: block;
  max-height: 60px;
  max-width: 8vw;
  min-width: 48px;
}

.mainhd-logo-title {
  align-self: center;
  font-size: clamp(.825rem, 3vw, 1.3rem);
  font-weight: bold;
  line-height: 1.2em;
}

.mainhd-logo-title a {
  color: var(--text-color);
  text-decoration: none;
}

.mainhd-bdy {
  align-self: flex-end;
  flex-basis: 488px;
  flex-grow: 1;
  text-align: right;
}

.mainhd-nav {
  display: inline-flex;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.mainhd-nav-item {
  margin: 0 0 0 8px;
}

.mainhd-nav-item-link {
  border-bottom: 2px solid transparent;
  color: var(--text-color);
  display: block;
  font-weight: bold;
  font-size: .875em;
  padding: 8px 4px 0;
  position: relative;
  text-decoration: none;
}

.mainhd-nav-item-link::after {
  background: var(--main-color);
  bottom: -6px;
  content: '';
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  transition: .2s;
  width: 0;
}

.mainhd-nav-item-link.is-active,
.mainhd-nav-item-link:hover,
.mainhd-nav-item-link:visited:hover {
  color: var(--main-color);
  border-bottom: 2px solid transparent;
}

.mainhd-nav-item-link:visited {
  color: var(--text-color);
}

.mainhd-nav-item-link.is-active::after,
.mainhd-nav-item-link:hover::after {
  width: 100%;
}

.mob-head-menu-btn {
  background: var(--grayscale-color-dark);
  border: 1px solid var(--grayscale-color-dark);
  box-sizing: border-box;
  display: none;
  font-size: 10.5px;
  text-align: center;
  position: fixed;
  right: 16px;
  top: 20px;
  height: 44px;
  width: 44px;
  padding: 0;
  z-index: 100;
}

.menubar {
  background: #fff;
  content: "";
  display: block;
  height: 2px;
  margin: 14px auto 10px;
  position: relative;
  width: 26px;
}

.menubar::before {
  background: #fff;
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  top: -7px;
  left: 0;
  width: 26px;
  transition: all .3s;
}

.menubar::after {
  background: #fff;
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  top: 7px;
  left: 0;
  width: 26px;
  transition: all .3s;
}

.is-headmenu-active .menubar{
  background: transparent;
}

.is-headmenu-active .menubar::before {
  transform: rotate(45deg);
  top: 0;
}

.is-headmenu-active .menubar::after {
  transform: rotate(-45deg);
  top: 0;
}

.menutxt {
  display: block;
}

.mob-head-menu-btn:hover {
  background:var(--grayscale-color-dark);
  box-shadow: 0 1px 1px rgba(#000, .3), inset 1px 1px 1px rgba(#000, .5);
}

.mob-head-menu-btn:active {
  top: 16px;
}

.menutxt {
  white-space: nowrap;
}

/* Mainbody */
.mainbody {
  box-sizing: border-box;
  margin: auto;
  max-width: var(--contents-width);
  padding: var(--padding-spase) 20px;
  text-align: left;
  min-height: var(--contents-height);
}

.gridwrap {
  display: grid;
  gap: 40px;
  grid-template-areas: 'sidenav content';
  grid-template-columns: 260px auto;
}

/* Side Navigation */
.sidenav-wrap {
  grid-area: sidenav;
}

.mob-side-menu-btn {
  display: none;
  margin: 0;
  width: 100%;
}

.mob-side-menu {
  box-sizing: border-box;
  border: 1px solid var(--base-bd-color-right);
  display: block;
  max-height: var(--contents-height);
  min-height: 640px;
  overflow: auto;
}

.sidenav-title {
  display: block;
  font-size: 1.38rem;
  font-weight: bold;
  margin-top: 32px;
}

.input-select {
  border: 1px solid var(--text-color);
  box-sizing: border-box;
  font-family: inherit;
  font-size: .94em;
  letter-spacing: inherit;
  line-height: 1.33;
  margin: 0;
  padding: 8px;
  vertical-align: bottom;
  width: 100%;
}

.sidenav {
  background: #fff;
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}

.sidenav-item {
  margin: 0;
}

.sidenav-item-link {
  border-bottom: 1px solid var(--base-bd-color-right);
  box-sizing: border-box;
  color: var(--text-color);
  display: block;
  font-weight: bold;
  padding: 16px 16px 4px 8px;
  position: relative;
  text-decoration: none;
}

.sidenav-item-link:visited {
  color: var(--text-color);
}

.sidenav-item-link.is-active,
.sidenav-item-link.is-active:visited {
  border-bottom: 1px solid var(--main-color);
  background: #1f6fb2;
  color: #ffffff;
}

.sidenav-item-link:hover {
  background: #f0f8ff;
  color: var(--text-color);
}

.sidenav-item-link.is-active::after,
.sidenav-item-link:hover::after {
  border: 4px solid transparent;
  border-top: 4px solid var(--main-color);
  border-right: 4px solid var(--main-color);
  display: block;
  content: "";
  height: 0;
  position: absolute;
  right: 8px;
  top: 50%;
  width: 0;
  transform: rotate(45deg);
}

.sidenav-child {
  border-left: 1px dotted var(--base-bd-color-right);
  list-style: none;
  margin: 0 0 0 6px;
  padding: 0;
}

.sidenav-child .sidenav-item-link {
  font-weight: normal;
}

/* Contents */
.maincnt {
  grid-area: content;
}

.page h1 {
  border-bottom: 10px solid var(--main-color);
}

.page > h1:first-child {
  margin-top: 0;
}

.page h2 {
  border-bottom: 2px solid var(--main-color);
  margin-top: 32px;
}

.page h3 {
  color: var(--main-txt-color);
}

.page h5 {
  color: var(--grayscale-color);
}

.page a[target="_blank"] {
  padding-right: 22px;
  background: no-repeat right 2px center / 1em auto url(/manual/webifmanual/commons/img/icon-window.svg);
}

.page table {
  margin: 16px 0;
  width: 100%;
}

.page th,
.page td {
  border: 1px solid var(--base-bd-color);
  padding: 12px 12px 8px;
  vertical-align: top;
}

.page thead th {
  background: var(--main-bg-color);
  color: var(--main-color);
  font-weight: normal;
  text-align: center;
  white-space: nowrap;
}

.page tbody th {
  background: var(--base-bg-color);
  font-weight: normal;
  text-align: left;
  white-space: nowrap;
}

#detail td a {
  margin-right: 1em;
  text-decoration: none;
}

#detail td a:hover {
  text-decoration: underline;
}

.page pre {
  background: var(--base-bg-color);
  border: 1px solid var(--base-bd-color);
  padding: 8px;
  white-space: pre-wrap;
  word-break: break-all;
}

.scrolltable-wrap {
  overflow: auto;
}

.scrolltable-wrap table {
  min-width: 940px;
}

.page .annotation {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page .annotation li {
  padding-left: 2.5em;
  text-indent: -2.5em;
}

.depth1 {
  background: var(--main-bg-color);
  border: 1px solid var(--base-bd-color-right);
}

.depth2,
.depth3,
.depth4,
.depth5,
.depth6,
.depth7,
.depth8,
.depth9,
.depth10 {
  border-left: 1px solid var(--base-bd-color-right);
  margin-left: 8px;
}

.depth2,
.depth4,
.depth6,
.depth8,
.depth10 {
  background: rgb(31 111 178 / 0.1);
}

.depth3,
.depth5,
.depth7,
.depth9 {
  background: rgb(256 256 256 / 0.5);
}

.alllist table {
  margin: 0;
}

.alllist table th,
.alllist table td {
  border-bottom: 0;
  border-left: 0;
  border-top: 1px solid var(--base-bd-color-right);
  border-right: 1px dotted var(--base-bd-color-right);
}

.alllist table th:last-child,
.alllist table td:last-child {
  border-right: 0;
}

.alllist table td:nth-child(1),
.alllist table td:nth-child(2) {
  font-weight: bold;
}

.alllist table th:nth-child(2),
.alllist table td:nth-child(2) {
  width:  180px;
}

.alllist table th:nth-child(n+3):nth-child(-n+5),
.alllist table td:nth-child(n+3):nth-child(-n+5) {
  text-align: center;
  width: 80px;
}

.alllist table th:nth-child(6),
.alllist table td:nth-child(6) {
  width: 200px;
}

.alllist table th:nth-child(7),
.alllist table td:nth-child(7) {
  width: 80px;
}

/* 列数5個 */
.alllist.alllist-five table th:nth-child(5),
.alllist.alllist-five table td:nth-child(5) {
  text-align: left;
  width: 280px;
}

/* 列数7個 */
.alllist.alllist-seven table th:nth-child(2),
.alllist.alllist-seven table td:nth-child(2) {
  width: 160px;
}

.bkg-white {
  background: #fff;
}

.highlight {
  background: #b4d0ed;
}

.is-view-journalarticle,
.is-view-journalarticle-str,
.is-view-researchdata,
.is-view-researchdata-str,
.is-view-elearning,
.is-view-elearning-str,
.is-view-bookreport,
.is-view-bookreport-str,
.is-view-generalpurpose,
.is-view-generalpurpose-str {
  display: none;
  visibility: hidden;
}

.journal_article .is-view-journalarticle,
.research-data .is-view-researchdata,
.e-learning .is-view-elearning,
.book_report .is-view-bookreport,
.general-purpose .is-view-generalpurpose {
  display: block;
  visibility: visible;
}

.journal_article .is-view-journalarticle-str,
.research-data .is-view-researchdata-str,
.e-learning .is-view-elearning-str,
.book_report .is-view-bookreport-str,
.general-purpose .is-view-generalpurpose-str {
  display: inline;
  visibility: visible;
}

.view-anno {
  cursor: help;
  display: inline-block;
  padding: 0 2px;
  text-decoration: underline;
  position: relative;
}

.view-anno:hover {
  background: var(--base-bg-color);
  text-decoration: none;
}

.anno-tips {
  box-sizing: border-box;
  bottom: 1.5em;
  display: block;
  left: -90px;
  position: absolute;
  width: 200px;
  z-index: 100;
}

.anno-tips-text {
  animation: .3s linear 0s 1 normal fadein;
  background: var(--text-color);
  border-radius: 4px;
  color: #fff;
  display: inline-block;
  font-size: 10px;
  line-height: 1.3;
  text-align: left;
  opacity: .9;
  padding: 4px 8px;
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: .9;
  }
}

/* 履歴 */
.history-wrap {
  border-bottom: 1px solid var(--base-bd-color);
  max-height: 640px;
  overflow: auto;
}

.history {
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-li {
  border-bottom: 1px solid var(--base-bd-color);
  display: flex;
  flex-wrap: wrap;
}

.history-li:last-child {
  border-bottom: 0;
}

.history-date {
  box-sizing: border-box;
  flex-basis: 120px;
  flex-grow: 1;
  padding: 4px;
}

.history-body {
  box-sizing: border-box;
  flex-basis: 560px;
  flex-grow: 3;
  padding: 4px;
}

/* Footer*/
.mainft-wrap {
  background: var(--base-bg-color);
  text-align: center;
  height: 44px;
}

.mainft-bd {
  margin: auto;
  max-width: 96%;
  text-align: center;
  width: var(--contents-width);
}

.mainft-nav {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: inline-flex;
}

.mainft-nav-item {
  margin: 0 16px;
}

.mainft-nav-item a {
  font-size: .875rem;
  color: var(--text-color);
  text-decoration: none;
}

.mainft-label {
  background: var(--text-color);
  box-sizing: border-box;
  color: #fff;
  font-size: .8rem;
  height: 50px;
  padding: 16px 0;
}

.totop {
  background: var(--base-bd-color-right);
  bottom: 16px;
  content: "";
  display: block;
  height: 48px;
  opacity: .8;
  position: fixed;
  right: 16px;
  width: 48px;
  z-index: 100;
}

.totop::after {
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  content: "";
  display: block;
  height: 18px;
  position: absolute;
  top: 20px;
  left: 14px;
  transform: rotate(45deg);
  width: 18px;
}

.totop:hover,
.totop:active {
  box-shadow: 1px 1px 1px rgb(0 0 0 / .2);
  opacity: .9;
}


@media screen and (max-width: 1200px) {
  .gridwrap {
    gap: 32px;
  }

  /* 列数7個 */
  .alllist.alllist-seven table th:nth-child(2),
  .alllist.alllist-seven table td:nth-child(2) {
    width: 120px;
  }

  .alllist.alllist-seven table th:nth-child(3),
  .alllist.alllist-seven table td:nth-child(3) {
    width: 56px;
  }

  .alllist.alllist-seven table th:nth-child(6),
  .alllist.alllist-seven table td:nth-child(6) {
    width: 160px;
  }
}

@media screen and (max-width: 960px) {
  .mainhd-wrap {
    padding: 0 64px 0 16px;
  }

  .mainhd-bdy {
    position: fixed;
  }

  .mainhd-nav-wrap {
    background: var(--main-bg-color);
    box-sizing: border-box;
    box-shadow: 0 0 3px rgb(0 0 0 / 0.3);
    height: 100vh;
    padding-top: 90px;
    position: fixed;
    right: -240px;
    top: 0;
    transition: all .3s;
    width: 240px;
    z-index: 11;
  }

  .is-headmenu-active .mainhd-nav-wrap {
    right: 0;
  }

  .mainhd-nav {
    display: block;
    text-align: left;
  }

  .mainhd-nav-item {
    margin: 16px;
  }

  .mob-head-menu-btn {
    display: block;
  }

  .mainbody {
    padding: 16px;
  }

  .gridwrap {
    display: block;
  }

  .sidenav-wrap {
    background: var(--base-bg-color);
    margin: 16px 0 40px;
    padding: 16px;
  }

  .mob-side-menu-btn {
    display: block;
  }

  .mob-side-menu {
    display: none;
    max-height: 50vh;
    min-height: auto;
  }

  .is-sidemenu-open {
    display: none;
  }

  .is-sidemenu-active .is-sidemenu-open {
    display: block;
  }

  .is-sidemenu-active .is-sidemenu-close {
    display: none;
  }

  .is-sidemenu-active .mob-side-menu {
    display: block;
  }

  .mainft-wrap {
    height: auto;
    padding: 8px 0;
  }

  .mainft-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .mainft-nav-item {
    margin: 0;
    flex-basis: 50%;
    flex-grow: 1;
    text-align: left;
  }

  .alllist table,
  .alllist tbody {
    box-sizing: border-box;
    display: block;
  }

  .alllist table {
    border-top: 1px solid var(--base-bd-color-right );
    font-size: .875rem;
    margin: 0 0 4px;
  }

  .alllist table tr {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .alllist table tr td {
    border: 0;
    border-bottom: 1px solid var(--base-bd-color-right);
    box-sizing: border-box;
    display: block;
    padding: 4px 8px;
    text-align: left !important;
    width: 100% !important;
  }

  .alllist table tr td:nth-child(1) {
    grid-column: 1 / 4;
    grid-row: 1;
  }

  .alllist table tr td:nth-child(2) {
    grid-column: 1 / 4;
    grid-row: 2;
  }

  .alllist table tr td:nth-child(2)::before {
    content: "属性：";
    font-weight: bold;
    font-size: 11px;
  }

  .alllist table tr td:nth-child(1):empty,
  .alllist table tr td:nth-child(2):empty {
    display: none;
  }

  .alllist table tr td:nth-child(3) {
    border-right: 1px solid var(--base-bd-color-right);
    grid-column: 1 / 2;
    grid-row: 3;
  }

  .alllist table tr td:nth-child(3)::before {
    content: "繰返：";
    font-weight: bold;
    font-size: 11px;
  }

  .alllist table tr td:nth-child(4) {
    border-right: 1px solid var(--base-bd-color-right);
    grid-column: 2 / 3;
    grid-row: 3;
  }

  .alllist table tr td:nth-child(4)::before {
    content: "JaLC設定必須：";
    font-weight: bold;
    font-size: 11px;
  }

  .alllist table tr td:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 3;
  }

  .alllist table tr td:nth-child(5)::before {
    content: "Crossref設定必須：";
    font-weight: bold;
    font-size: 11px;
  }

  .alllist table tr td:nth-child(6) {
    grid-column: 1 / 4;
    grid-row: 4;
  }

  .alllist table tr td:nth-child(6)::before {
    content: "説明：";
    font-weight: bold;
    font-size: 11px;
  }


  .alllist.alllist-five table tr td:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 3;
  }

  .alllist.alllist-five table tr td:nth-child(5)::before {
    content: "説明：";
    font-weight: bold;
    font-size: 11px;
  }

  .alllist.alllist-seven table tr td:nth-child(6) {
    border-right: 1px solid var(--base-bd-color-right);
    grid-column: 1 / 3;
    grid-row: 4;
  }

  .alllist.alllist-seven table tr td:nth-child(7) {
    grid-column: 3 / 4;
    grid-row: 4;
  }

  .alllist.alllist-seven table tr td:nth-child(7)::before {
    content: "Crossref送付対象：";
    font-weight: bold;
    font-size: 11px;
  }


  .alllist .head {
    display: none;
  }

  .anno-tips {
    left: auto;
    max-width: 120px;
    right: 0;
  }

  .totop {
    height: 40px;
    width: 40px;
  }

  .totop::after {
    height: 14px;
    top: 16px;
    left: 12px;
    width: 14px;
  }

  .related-content {
    border: 1px solid var(--base-bd-color);
    border-bottom: 0;
    font-size: .9375em;
    position: relative;
  }

  .related-content thead {
    position: sticky;
    top: 97px;
    z-index: 1;
  }

  .related-content tr {
    display: grid;
    grid-template-columns: 40px repeat(2, 1fr) 56px 88px;
  }

  .related-content tr th,
  .related-content tr td {
    border: 0;
    border-bottom: 1px solid var(--base-bd-color);
    border-right: 1px solid var(--base-bd-color);
    padding: 4px 4px 2px;
    white-space: wrap;
    width: auto;
  }

  .related-content tr th:nth-child(1),
  .related-content tr td:nth-child(1) {
    box-sizing: border-box;
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  .related-content tr th:nth-child(2),
  .related-content tr td:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .related-content tr th:nth-child(3),
  .related-content tr td:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }

  .related-content tr th:nth-child(4),
  .related-content tr td:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
  }

  .related-content tr th:nth-child(5),
  .related-content tr td:nth-child(5) {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
  }

  .related-content tr th:nth-child(6),
  .related-content tr td:nth-child(6) {
    border-right: 0;
    grid-column: 5 / 6;
    grid-row: 1 / 3;
  }
}

@media screen and (max-width: 560px) {
  .mainhd-wrap {
    padding: 0 58px 0 12px;
  }

  .mob-head-menu-btn {
    right: 12px;
  }

  .mainbody {
    padding: 12px;
  }


  .related-content {
    font-size: .875em;
  }


  .related-content tr {
    display: grid;
    grid-template-columns: 40px 1fr 40px 64px;
  }

  .related-content tr th:nth-child(1),
  .related-content tr td:nth-child(1) {
    box-sizing: border-box;
    grid-column: 1 / 2;
    grid-row: 1 / 4;
  }

  .related-content tr th:nth-child(2),
  .related-content tr td:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .related-content tr th:nth-child(3),
  .related-content tr td:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .related-content tr th:nth-child(4),
  .related-content tr td:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

  .related-content tr th:nth-child(5),
  .related-content tr td:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 1 / 4;
  }

  .related-content tr th:nth-child(6),
  .related-content tr td:nth-child(6) {
    border-right: 0;
    grid-column: 4 / 5;
    grid-row: 1 / 4;
  }
}

/* ================================
   Layout images (figure) / 長い画像対策
   ================================ */
.layout-image{
  margin: 1.5rem 0;
}

.layout-image img{
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  cursor: zoom-in;
}

.layout-image figcaption{
  margin-top: 0.5rem;
  font-size: 0.9em;
  color: #555;
}

/* 画像を原寸寄りで見せたい場合のスクロール枠（任意） */
.layout-scroll{
  border: 1px solid var(--base-bd-color-right);
  background: #fff;
  padding: 8px;
  overflow: auto;
  max-height: 75vh;
}
.layout-scroll img{
  max-width: none;
  height: auto;
}

/* ================================
   Side menu follow (sticky) - PC/SP両対応
   ================================ */
:root{
  --sticky-gap: 16px;
}

/* PC（960px超）：左メニューを追従 */
@media screen and (min-width: 961px){
  .sidenav-wrap{
    position: sticky;
    top: calc(var(--header-height) + var(--sticky-gap));
    align-self: start; /* gridで伸びるのを抑制 */
  }

  /* メニューが長い場合は枠内スクロール */
  .mob-side-menu{
    max-height: calc(100vh - var(--header-height) - (var(--sticky-gap) * 2));
    min-height: auto; /* 640px固定を解除 */
    overflow: auto;
  }
}

/* SP（960px以下）：折りたたみメニューを上部に残す */
@media screen and (max-width: 960px){
  .sidenav-wrap{
    position: sticky;
    top: calc(var(--header-height) + 8px);
    z-index: 9;
  }

  .mob-side-menu{
    max-height: calc(100vh - var(--header-height) - 140px);
    overflow: auto;
  }
}

/* 固定ヘッダー分だけアンカー位置を下げる（#site_id 等） */
h1[id], h2[id], h3[id]{
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* ================================
   Headings (h1-h5) - hierarchy polish
   ================================ */

/* アンカー位置調整：h4/h5 も対象にする */
.page h1[id],
.page h2[id],
.page h3[id],
.page h4[id],
.page h5[id]{
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* 見出し全体の余白を少し整える（読みやすさ優先） */
.page h1, .page h2, .page h3, .page h4, .page h5{
  margin: 28px 0 10px;
}

/* 既存色を踏襲しつつ、階層ごとの「形」を足す */
.page h1{
  border-bottom: 10px solid var(--main-color);
  padding-bottom: 6px;
}

.page h2{
  border-bottom: 2px solid var(--main-color);
  padding-bottom: 4px;
}

.page h3{
  color: var(--main-txt-color);
  border-left: 6px solid var(--main-color);
  padding: 2px 0 2px 10px;
}

.page h4{
  color: var(--main-txt-color);
  border-left: 4px solid rgb(31 111 178 / 0.35);
  padding: 2px 0 2px 10px;
  font-size: 1.1rem; /* h3(1.25rem)とh5(1rem)の中間として少し強め */
}

.page h5{
  color: var(--grayscale-color);
  border-left: 3px solid var(--base-bd-color-right);
  padding: 2px 0 2px 10px;
  font-size: 1rem;
}

/* ================================
   Table (2-col) - align header column width
   ================================ */

/* ページ内の通常テーブルは列幅を安定させる
   ※ .alllist / .related-content は後段で個別指定が多いので大きく崩れにくい */
.page table{
  table-layout: fixed;
}

/* th（見出し列）の幅を固定し、項目ごとの揺れを抑える */
.page tbody th{
  width: 12.5rem;      /* PCで見やすい固定幅 */
  white-space: nowrap; /* 既存踏襲 */
}

/* td は折り返しで崩れにくく */
.page tbody td{
  overflow-wrap: anywhere;
}

/* 画面が狭いときは th を少し縮める */
@media screen and (max-width: 960px){
  .page tbody th{
    width: 10rem;
  }
}

@media screen and (max-width: 560px){
  .page tbody th{
    width: 8.5rem;
  }
}

/* アンカージャンプ時のフォーカス枠を非表示 */
[tabindex="-1"]:focus {
  outline: none;
}
