@charset "UTF-8";

/* CSSカスタムプロパティ */
:root {
  --font-mincho: "yu-mincho-pr6n", "Yu Mincho", "YuMincho", 'ＭＳ Ｐ明朝', 'MS PMincho', serif;
  --font-brush-mincho: "dnp-shuei-4go-std", "yu-mincho-pr6n", "Yu Mincho", "YuMincho", 'ＭＳ Ｐ明朝', 'MS PMincho', serif;
  --font-gothic: "a-otf-gothic-bbb-pr6n", 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro', "メイリオ", sans-serif;
}

.footer {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #000;
    text-align: center;
    font-family: "tbchibirgothicplusk-pro", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
    font-style: oblique;
    font-size: 1em;
}

/* 他CSSファイルの影響排除 */
h1::after {
  display: none;
}

/* user agent stylesheet の影響排除 */
q::after,
q::before,
blockquote::after,
blockquote::before {
  content: none;
}

/* ここから当該CSS本体↓ */
body {
  font-family: var(--font-mincho);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  /* 見出しは［DNP 秀英四号かな Std］優先 */
  font-family: var(--font-brush-mincho);
}

/*
 * レイアウト↓
 * .chapter-header: H1を含むヘッダ部分
 * .chapter-body: 本文＋目次部分
 * .chapter-content: 本文部分
 * .chapter-toc: 目次部分
 */
.chapter-header {
  width: 100%;
  height: 180px;
  background: #3c5d8a;
  text-align: center;
}

.chapter-meta {
  display: flex;
  justify-content: center;
  gap: 1.2em;
}

.chapter-header p {
  display: inline;
  margin: 40px 0 0;
}

.chapter-header h1 {
  color: #fff;
  margin: 0
}

.chapter-body {
  max-width: 1280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-areas: "content toc";
  gap: 20px;
  margin: 0 auto;
  padding: 20px;
}

.chapter-content {
  grid-area: content;
}

/* この目次の配下については次項［目次］参照 */
.chapter-toc {
  grid-area: toc;
  position: sticky;
  align-self: start;
  top: 0;
  width: 280px;
  border: 1px solid #e5e5e5;
}

/* レイアウト↑ */

/* 目次↓ */
.toc-title {
  display: block;
  text-align: center;
  font-size: 1em;
  line-height: 35px;
  height: 35px;
  font-family: var(--font-gothic);
  background: #67abd4;
  color: #fff;
  padding: 10px;
  margin: 0;
}

.chapter-toc ul {
  text-align: left;
  margin-top: 10px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
}

.chapter-toc ul li {
  list-style: none;
  border-bottom: 1px dotted #e5e5e5;
  font-family: var(--font-gothic);
  font-size: 1em;
  line-height: 1.8em;
}

.chapter-toc ul li:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  background-size: 100%;
  position: relative;
  background-repeat: no-repeat;
  background-image: url(../img/arrow.png);
}

.chapter-toc ul li a {
  text-decoration: none;
}

.chapter-toc ul li a:visited {
  color: #000;
}

.chapter-toc ul li a:link {
  color: #000;
  transition: .3s ease;
}

.chapter-toc ul li a:hover {
  color: #5fafe0;
}

.toc-toggle {
  display: none;
}

/* 目次↑ */

/* section[id]↓ 各節(H2)のレイアウト定義及び、節内要素のCSS定義 */
.chapter-content>section[id] {
  border: 1px solid #e5e5e5;
  padding: 0 0 20px;
  margin: 0 0 30px;
}

.chapter-content>section[id]>h2 {
  color: #fff;
  background: #699bc5;
  font-size: 1.8em;
  font-weight: 400;
  text-align: center;
  margin: 0 0 20px;
}

.chapter-content>section.section--screened-heading>h2 {
  color: #20516f;
  background-color: #e8eef4;
  background-image:
    repeating-linear-gradient(-45deg,
      rgba(60, 93, 138, 0.12) 0,
      rgba(60, 93, 138, 0.12) 1px,
      transparent 1px,
      transparent 4px);
  border-top: 1px solid #b8c7d6;
  border-bottom: 1px solid #b8c7d6;
}

.chapter-content .section-body {
  margin: 0 20px;
}

.chapter-content p {
  text-indent: 1em;
  font-size: 1.1em;
  margin: 0;
}

.chapter-content h3,
.chapter-content h4 {
  font-family: var(--font-brush-mincho);
  font-size: 1.3em;
  line-height: 1em;
  font-weight: 400;
  color: #20516f;
}

.chapter-content h4 {
  font-size: 1.2em;
}

/* 割注 */
.warichu {
  font-size: 0.75em;
  line-height: 1em;
  display: inline-block;
  padding: 0 0.5em 0 .3em;
  vertical-align: -0.35em;
  text-indent: 0;
}

/* 斜め書き（十干十二支や云云）↓ */
.diagonal-pair {
  display: inline-block;
  position: relative;
  width: 1.6em;
  height: 1.6em;
  margin: 0 0.2em 0 0.3em;
  vertical-align: -0.35em;
  font-size: 0.75em;
  line-height: 1;
  text-indent: 0;
  text-align: left;
}

.diagonal-pair>span {
  position: absolute;
  display: block;
  width: 1em;
  height: 1em;
  line-height: 1;
  text-align: center;
  text-indent: 0;
}

.diagonal-pair>span:first-child {
  top: 0;
  left: 0;
  transform: translate(-0.15em, -0.05em);
}

.diagonal-pair>span:last-child {
  right: 0;
  bottom: 0;
  transform: translate(0.15em, 0);
}

/* 斜め書き（十干十二支や云云）↑ */

/* 図表 */
figure {
  margin: 1em 40px;
}

figure img {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  margin: 0 auto;
}

figcaption {
  display: block;
  font-family: var(--font-gothic);
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.5rem;
  text-align: center;
  padding-top: 0.5rem;
}

.photo-set {
  margin: 1.5em 40px;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8em;
}

.photo-row.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.photo-row > figure {
  margin: 0;
}

.photo-row > figure > img,
.photo-row > img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-row figcaption,
.photo-set figcaption {
  margin: 0;
}

/* その他 */
cite {
  display: inline;
  font-style: normal;
}


/*
 * 引用部及び引用ブロック
 * - gokingen: 御金言、日寛上人御指南等
 * - ougen: 誑言（宗門・学会の明らかに仏法違背の言辞等）
 * - press: 報道、新聞記事等
 * - speech: 講演、演説、スピーチ等
 * - official: 公式文書、声明、告示、通達、条文、行政文書等
 * - document: 一般書籍、論文、資料等
 * - historical: 歴史的文書、古文書、古記録等
 */
/*
 -inline の使い方。
 |　そこには「引用文」と記載がある。
 というような文章（完全に文中にある）場合は <q> を使って、
 　そこには<q><span class="quote-mark">「</span>引用文<span class="quote-mark">」</span></q>と記載がある。
 とするが、
 |　そこには、
 |　「引用文」と記載がある。
 というように、段落を分けて引用文が開始している場合は、xxx-inlineを使って以下のようにコーディングする。
 <blockquote class="xxx-inline">
  <p><span class="quote-mark">「</span>引用文<span class="quote-mark">」</span></p>
 </blockquote>
 <p>と記載がある。</p><!-- 次の<p>はInlineになる -->
*/
blockquote:is(.gokingen, .gokingen-inline, .ougen, .ougen-inline, .press, .press-inline, .speech, .speech-inline, .official, .official-inline, .document, .document-inline, .historical, .historical-inline) {
  display: block;
  background: none;
}

blockquote:is(.gokingen, .gokingen-inline, .ougen, .ougen-inline, .press, .press-inline, .speech, .speech-inline, .official, .official-inline, .document, .document-inline, .historical, .historical-inline) p {
  text-indent: 1em;
}

blockquote:is(.gokingen-inline, .ougen-inline, .press-inline, .speech-inline, .official-inline, .document-inline, .historical-inline),
blockquote:is(.gokingen-inline, .ougen-inline, .press-inline, .speech-inline, .official-inline, .document-inline, .historical-inline)+p,
blockquote:is(.gokingen-inline, .ougen-inline, .press-inline, .speech-inline, .official-inline, .document-inline, .historical-inline) p {
  display: inline;
  margin: 0 !important;
  text-indent: 0;
}

/*連続する.xxx-inlineの先頭、もしくは単一の.xxx-inline */
blockquote.gokingen-inline:not(blockquote.gokingen-inline + blockquote.gokingen-inline),
blockquote.ougen-inline:not(blockquote.ougen-inline + blockquote.ougen-inline),
blockquote.press-inline:not(blockquote.press-inline + blockquote.press-inline),
blockquote.speech-inline:not(blockquote.speech-inline + blockquote.speech-inline),
blockquote.official-inline:not(blockquote.official-inline + blockquote.official-inline),
blockquote.document-inline:not(blockquote.document-inline + blockquote.document-inline),
blockquote.historical-inline:not(blockquote.historical-inline + blockquote.historical-inline) {
  padding-left: 1em;
}

/* section[id]↑ */

/* 以下、スタイル調整系 */
.chapter-content p.para {
  margin-top: 1.5em !important;
}

.right {
  text-align: right;
}

.small {
  font-size: 0.75em;
  vertical-align: 0.1em;
}

.bold,
strong,
q,
blockquote {
  font-family: var(--font-gothic);
  font-style: normal;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

.figure--framed img {
  border: 1px solid #000;
  box-sizing: border-box;
}

.date-signature {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-indent: 0;
  margin: 1em 0;
}

/* 御金言用フォント指定 */
.gokingen-inline,
.gokingen-inline strong,
.gokingen,
.gokingen strong {
  font-family: var(--font-brush-mincho);
}

.gokingen-inline strong,
.gokingen strong,
strong.underline {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* これはfont-family指定の中では最後に書く */
.normal,
.quote-mark {
  color: #000;
  font-family: var(--font-mincho);
  font-style: normal;
  font-weight: normal;
}

/* 本文と同じスタイルの番号付きリスト（ol, 一、二、三、…） */
.text-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: text-list;
}

.text-list>li {
  counter-increment: text-list;
  line-height: inherit;
  font-family: inherit;
  text-indent: 1em;
  font-size: 1.1em;
  margin: 0;
}


.text-list>li::before {
  content: counter(text-list, cjk-ideographic) "、";
}

.text-list.bold>li,
.text-list.bold>li::before {
  font-family: var(--font-gothic);
  font-weight: 500;
}

/* 画面には表示しないがスクリーンリーダーには読ませる */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.chapter-content>section[id]>h2.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: none;
}

.chapter-content>section.chapter-intro {
  padding-top: 20px;
}