/* YouTube動画の埋め込みにスタイルを適用 */
.contents .embedded-youtube-video {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    aspect-ratio: 16/9;
    max-width: 756px;
    padding-top: 1rem;
}
/* タイトルのある画像を中央揃え */
.contents p:has(> img:first-child):has(> br):has(> img + br) {
    text-align: center;
    margin: 0 auto;
    max-width: 756px;
}
/* ページ説明のテキストを見やすく */
.v-application .page-header-headings > .caption {
    color: #aaa !important;
}
/* モバイルでページ説明が程よく折り返されるように */
.v-application .page-col-content.is-page-header {
    padding-right: 16px;
}
/* .links-listの説明テキストを見やすく */
.v-main .contents ol.links-list li > a > em,
.v-main .contents ul:not(.tabset-tabs).links-list li > a > em {
    color: #b3d0e8;
}
/* h3をそれ以下の見出しと差別化 */
.theme--dark .v-main .contents h3 {
    color: #aaa;
}
/* figcaptionに折り返し可の横並びのスタイルを設定 */
.contents .images-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-evenly;
    padding-block-start: 1rem;
}
.contents .images-row figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.contents .images-row img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}
.contents .images-row figcaption {
    text-align: center;
    padding-block-start: 4px;
}
/* 画像の拡大プレビュー機能 */
dialog {
    position: fixed;
    background-color: transparent;
    border: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    color: white;
}
dialog img {
    max-width: 90vw;
    max-height: 90svh;
}
dialog menu {
    display: flex;
    flex-direction: row;
}
dialog menu li {
    list-style: none;
}
dialog menu li button {
    padding: 4px;
    outline: none;
}
dialog menu li button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
::backdrop {
    position: fixed;
    background-color: black;
    opacity: 0.5;
}
