/* 内容のまとまりに合わせた、コンパクトな間隔。本文の行間は元の1.6を維持。 */
:root{
 --link-thickness:.9px;
 --table-rule-thickness:1.2px;
 --body-leading:1.6;
 --paragraph-gap:.6em;
 --profile-gap:1.25rem;
 --biography-section-gap:1.25rem;
 --bio-row-gap:.15em;
 --table-cell-y:.35em;
 --table-cell-x:.5em;
 --article-heading-top:2.8rem;
 --article-title-gap:.2em;
 --article-header-gap:.6rem;
 --article-description-image-gap:1.25rem;
 --article-image-body-gap:2.8rem;
 --article-image-offset:0rem;
 --article-image-scale:100;
 --image-gap:1.25rem;
 --col-gap:2rem;               /* PCの日英間：元の値 */
 --list-leading:1.35;          /* 箇条書き内の行間 */
 --list-item-gap:.35em;        /* 箇条書きの項目間 */
 --heading-gap:.55em;          /* 見出しと内容の間 */
 --language-gap:.85rem;        /* 携帯の日英間 */
 --section-gap:1.25rem;        /* 別項目との間 */
 --header-gap:.8rem;           /* 名前・連絡先とプロフィールの間 */
 --bio-gap:1em;                /* 年号と本文の間：約全角1文字 */
}
.content{gap:var(--language-gap)}
.content>div,#library .columns>div{min-width:0}
@media(min-width:700px){
 .content,#library .columns{gap:var(--col-gap)}
 .content>div,#library .columns>div{width:calc((100% - var(--col-gap))/2);flex:0 0 calc((100% - var(--col-gap))/2)}
}
.header{margin:0 0 var(--header-gap)}
.section{margin-bottom:var(--section-gap)}
/* 最後の段落の余白とセクション余白が二重にならないようにする。 */
.content>div>p:last-child,#library .columns>div>p:last-child{margin-bottom:0}
h3,#library h3{margin:0 0 var(--heading-gap)}
#library{margin-top:0}
#library .columns{gap:var(--language-gap)}
@media(min-width:700px){#library .columns{gap:var(--col-gap)}}
/* 年号列は必要な幅だけ。本文の折り返しは同じ左端に揃える。 */
.biography{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:var(--bio-gap);margin:0;line-height:var(--list-leading);row-gap:var(--bio-row-gap)}
.biography>div{display:contents}.biography dt,.biography dd{margin:0}
/* マーカーを除去し、本文の左端に揃える。 */
ul.hanging-list li{margin:0 0 var(--list-item-gap);padding:0;text-indent:0;line-height:var(--list-leading)}
ul.hanging-list li:last-child{margin-bottom:0}
ul.hanging-list li::before{content:none;margin:0}
/* 下線は常時表示。線の太さはパネルで調整。 */
a,a:hover,a:focus-visible{text-decoration:underline;text-decoration-thickness:var(--link-thickness);text-underline-offset:.15em}
a[href]::after{content:none}
.book-table tbody tr:hover td:first-child{text-decoration:none}
.book-table tbody tr:hover a:hover{text-decoration:underline}
/* 表の外側・最初のセルは通常の段落と同じ左端。 */
.book-table{margin:0;border-spacing:0}
.book-table th:first-child,.book-table td:first-child{padding-left:0}
.book-table th:last-child,.book-table td:last-child{padding-right:0}
.article-column{min-width:0}.article-column h1{font:inherit;margin:0 0 var(--article-title-gap)}
.article-column .summary{margin:0 0 .6em}.article-body p{white-space:pre-wrap;line-break:strict;overflow-wrap:anywhere}
.article-body h2{margin:var(--article-heading-top) 0 var(--heading-gap)}.article-body figure{margin:var(--image-gap) 0}.article-body img{display:block;width:100%;height:auto}.article-body figcaption{margin-top:.3em}.article-footer{margin-top:var(--section-gap)}
.hover-preview img{max-height:85vh;object-fit:contain}

body{line-height:var(--body-leading)}
p{margin-bottom:var(--paragraph-gap)}
.profile-section{margin-bottom:var(--profile-gap)}
.biography-section{margin-bottom:var(--biography-section-gap)}
.book-table th,.book-table td{padding:var(--table-cell-y) var(--table-cell-x)}
.book-table th:first-child,.book-table td:first-child{padding-left:0}
.book-table th:last-child,.book-table td:last-child{padding-right:0}
.book-table th{border-bottom-width:var(--table-rule-thickness)}
.book-table th:hover,.book-table th[data-dir="asc"],.book-table th[data-dir="desc"]{text-decoration-thickness:var(--link-thickness)}

/* サイト名はリンクでも下線を付けない。 */
a.site-name{text-decoration:none}

.site-path{white-space:nowrap}
a.site-name:hover,a.site-name:focus-visible{text-decoration:underline;text-decoration-thickness:var(--link-thickness);text-underline-offset:.15em}

/* パス全体へポインターを合わせても、ドメイン部分だけに下線を出す。 */
.header .site-path:hover a.site-name,.header .site-path a.site-name:focus-visible{
 text-decoration-line:underline;
 text-decoration-thickness:var(--link-thickness);
 text-underline-offset:.15em;
}
/* 携帯ではサイト名を一度だけ表示し、言語・階層の接尾辞を省略する。 */
@media(max-width:699px){
 .header .content>.english{display:none}
 .header .site-path>span{display:none}
}

/* 導入文の後の写真は日本語側だけ。次の本文は日英で開始位置を揃える。 */
.article-lead{margin:0 0 var(--article-description-image-gap)}
.article-lead figure{margin:0}
.article-lead img{display:block;width:100%;height:auto}
@media(max-width:699px){.article-lead>.english{display:none}}

/* 記事冒頭専用の間隔。本文中の見出し設定とは独立。 */
.article-page .header{margin-bottom:var(--article-header-gap)}
.article-intro .article-column>.summary{margin-bottom:0}
.article-page .article-columns{margin-top:var(--article-image-body-gap)}
.article-page .article-columns .article-body>h2:first-child{margin-top:0}
/* 100%でトップのホバー写真と同じ28vw（横長は42vw）。本文幅は上限だけに使う。 */
.article-lead figure{width:min(calc(28vw * var(--article-image-scale) / 100),100%);position:relative;top:var(--article-image-offset)}
.article-lead figure.is-landscape{width:min(calc(42vw * var(--article-image-scale) / 100),100%)}
.article-lead img{max-height:85vh;object-fit:contain;object-position:left top}
@media(max-width:699px){
 .article-lead figure,.article-lead figure.is-landscape{width:min(calc(100% * var(--article-image-scale) / 100),100%)}
}
