body {
	margin-bottom:6rem;
}
/* 報告書タイトルブロック用のスタイル */
.report-title-block {
    border: 2px solid #333;      /* 枠線の太さと色 */
    padding: 2em;                /* 枠線の内側の余白 */
    margin-bottom: 3em;          /* ブロック下部の余白 */
    background-color: #eeeeee;   /* ほんの少し背景に色を付けると公文書感が出ます（不要なら削除可） */
}

.report-title-block h1 {
    font-size: 1.6em;
    text-align: left;
    margin-top: 0;
    margin-bottom: 1.5em;
    line-height: 1.4;
    border: none;
}

.report-title-meta {
    text-align: right;
    font-size: 0.95em;
    font-weight: bold;
}

.report-title-meta p {
    margin: 0.3em 0;
    text-align: right;
    width: 100%;
}
a:link {
  color:dodgerblue;
}
#contents {
  line-height:1.5em;
  width:80%;
  margin-left:auto;
  margin-right:auto;
}
p {
  text-align:justify;
  text-indent:1em;
}
p.mid-flow, p.no-indent {
  text-indent:0em;
}
h1 {
  padding:0.5em 0em 0.5em 0.5em;
  border-width:0px 0px 1px 5px;
  border-style:solid;
  border-color:silver;
  line-height:1.25em;
}
h2 {
  padding:0.5em 0em 0.5em 0.0em;
  border-width:0px 0px 3px 0px;
  border-style:solid;
  border-color:silver;
  width: fit-content;
  padding-right: 1em;
}
h3 {
  /*
  padding:0.5em 0em 0.5em 0.5em;
  border-width:2px 0px 0px 0px;
  border-style:solid;
  border-color:silver;
  width:11.5em;
  padding-right: 1em;
  */
  width: fit-content;
}
h5 {
	margin-top:0em;
	margin-bottom:0em;
}
h5 + ul {
	margin-top:0em;
	margin-bottom:0em;
}
.title {
  text-indent:0em;
  font-weight: bold;
}
.warning {
  font-size:1.5em;
  font-weight: bold;
  color:#ff0000;
}
.strong {
  font-weight: bold;
}
.strikethrough {
	text-decoration: line-through;
	color:darkgray;
}
img{
  border:none;
}
.external:after {
  content:url('link-icon_external.gif');
}
ul.nomark {
  list-style-type:none;
  padding-left:1rem;
}

.tag {
  display:inline;
  font-size:0.75em;
}
blockquote {
  border-style:solid;
  border-width:1px;
  border-color:silver;
  padding:4px;
}
.footnote{
  margin-left:4em;
  margin-right:4em;
  color:gray;
  font-size:0.75em;
}
.mid-footnote{
  font-size:0.75em;
  color:gray;
}
.footer {
  list-style-type:none;
  line-height:1.5em;
}
.left{
  float:left;
}
.right{
  float:right;
}
.center {
  text-align:center;
}
.cancel {
  text-decoration:line-through;
  text-decoration-style: double;
}
.image-mergin {
  margin:1em;
}
.clear {
  clear:both;
}
.container {
  overflow: auto;
}
.after-clear::after {
  clear:both;
}
.black {
  color:black;
}
.red {
	color:red;
}
.pink {
	color:pink;
}
.gray {
	color:gray;
}
span.link {
  color:dodgerblue;
}
figcaption {
	font-size: 0.7em;
}
blockquote.caution {
	background-color: #ff9372;
	color: black;
	border-radius: 10px;
	padding-left:1em;
	padding-right:1em;
}
blockquote.code {
	background-color:whitesmoke;
	border-radius: 10px;
	padding-left:1em;
	padding-right:1em;
}
/* 親の div 要素に float を指定 */
div.right::after {
	clear:both;
}
div.right {
  float: right;
  margin-left: 1em;
}

/* figure 要素のスタイル（必要に応じて） */
div.right > figure {
  display: inline-block;
  text-align: left;
  width:512px;
}

div.right > figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

div.right > figure figcaption {
  width: 100%;
}
/* figure 要素のスタイル（必要に応じて） */
div.left::after {
	clear:both;
}
div.left > figure {
  display: inline-block;
  text-align: left;
  width:512px;
}

div.left > figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

div.left > figure figcaption {
  width: 100%;
}

.glossary-container > dl > dt {
	font-weight:bold;
}
ul.quote {
	list-style-type: "> ";
}
/* 画面幅が768px以下（スマホ・タブレット）の場合の調整 */
@media screen and (max-width: 768px) {

  /* メインコンテンツの幅を広げて画面を有効活用する */
  #contents {
    width: 95%;
  }

  /* 左右の浮き出し（float）を解除して縦並びにする */
  div.right,
  div.left {
    float: none;
    margin-left: 0;
    margin-right: 0;
    text-align: center; /* 画像を中央に寄せる */
  }

  /* 512px固定だった幅を、画面いっぱいに広がるように変更 */
  div.right > figure,
  div.left > figure {
    width: 100%;      /* 親要素に対して100%の幅にする */
    max-width: 512px; /* 元のサイズより大きくならないように制限 */
    margin: 1em 0;    /* 上下に少し隙間を作る */
  }

  /* YouTubeなどの動画も幅に合わせて調整 */
  .youtube {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; /* 元の 512:384 の比率を維持 */
  }
}

/* 印刷用のスタイル設定 */
@media print {
    .page-break {
        break-before: page; /* ここで強制改ページ（旧：page-break-before: always;） */
    }
}
/* --- 年表セクション専用スタイル --- */

/* 全体のボックスサイズ計算を統一（ズレ防止） */
.timeline, .timeline * {
  box-sizing: border-box;
}

.timeline {
  position: relative;
  max-width: 800px; /* 384pxだと狭すぎるので広げました */
  margin: 50px auto;
  padding: 40px 0;
}

/* 中央の垂直線 */
.timeline::after {
  content: '';
  position: absolute;
  width: 4px; /* 少し太くして見やすく */
  background-color: #ccc;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px; /* 線の幅の半分戻して真ん中に */
  z-index: 0;
}

/* 各エピソードのコンテナ */
.tl-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* 線上のドット */
.tl-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px; /* 線の上に配置 */
  background-color: white;
  border: 4px solid #ff9f55;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* 左側のアイテムの配置 */
.tl-left {
  left: 0;
}

/* 右側のアイテムの配置 */
.tl-right {
  left: 50%;
}

/* 右側アイテムのドット位置調整 */
.tl-right::after {
  left: -10px;
}

/* エピソード内容のボックス */
.tl-content {
  padding: 20px;
  background-color: #f9f9f9;
  position: relative;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-align: left; /* ここで文字を左寄せに固定 */
}

/* 既存の p タグのインデント設定を年表中だけ解除する */
.tl-content p {
  text-indent: 0;
  margin-top: 0.5em;
}

/* --- レスポンシブ設定（スマホ用） --- */
@media screen and (max-width: 600px) {
  /* 線を左側に寄せる */
  .timeline::after {
    left: 31px;
  }
  /* アイテムを全幅にする */
  .tl-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  /* ドットを線の位置に合わせる */
  .tl-item::after {
    left: 21px;
  }
  /* 右側アイテムも左寄せにする */
  .tl-right {
    left: 0%;
  }
}
