/* ============= 基本文字サイズ ============= */

body, tr, td, ul, p, ol, dl, dt, dd {
  font-size: 12px;
}

pre {
  font-size: 11px;
}

/* 見出しデザイン */
h3 {
  border-bottom: double 5px #CCCCFF;
  font-size: 0.8rem;
  max-width: 770px;   /* ← 追加、chapter-title と同じ最大幅 */
  width: 100%;        /* ← 親要素に応じて伸びる */
  font-weight: normal;
  margin-bottom: 0.3em;
}

  dl dd table {
    margin-top: 0; /* table 上の余白をゼロにする */
  }

/* ============= 写真・Tooltip 関連 ============= */

div.imagebox {
  float: right;
}

.tooltip2 {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.tooltip2 p {
  margin: 0;
  padding: 0;
}

.description2 {
  display: none;
  position: absolute;
  padding: 10px;
  font-size: 12px;
  line-height: 1.6em;
  color: #fff;
  border-radius: 5px;
  background: #000;
  width: 200px;
}

.description2:before {
  content: "";
  position: absolute;
  top: 0%;
  right: 95%;
  border: 15px solid transparent;
  border-top: 15px solid #000;
  margin-left: -15px;
  transform: rotateZ(90deg);
}

.tooltip2:hover .description2 {
  display: inline-block;
  top: 0px;
  left: 80px;
}

dl.a {
  margin: 0;
}

/* 25/12/04追加 ST. */
dl, dt {
  margin: 0;
  padding: 0;
}

dd {
  margin: 0 0 0 40px; /* ← 左の40pxインデントだけ復活 */
  padding: 0;
}

dd pre {
  margin: 0;
  padding: 0;
}

/* 25/12/04追加 EN. */

/* ============= レイアウト制御（空白をなくす） ============= */

/* 下部フレーム全体（左 + 中央） */
.frame-container {
  flex: 1;
  display: flex;
  width: 100%;      /* ★ブラウザ幅いっぱい */
  margin: 0;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

/* 左 + 中央フレームを包むラッパ（全幅） */
.content-wrapper {
  display: flex;
  width: 100%;      /* ★必ず全幅 */
  flex: 1;
  margin: 0;
  padding: 0;
  max-width: none;  /* ★最大幅制限を完全解除 */
  box-sizing: border-box;
}

/* 左側フレーム */
nav {
  flex: 0.8;
  background-color: #eee;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* 中央フレーム */
main {
  flex: 4;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* iframe を完全フィット */
iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
/* 画像回り込み文字列 */
figure {
  margin: 0 15px 15px 0;
}

/* 25/12/06 width→max-width */
figure img {
  max-width: 100%;
  height: auto;
  display: block;
}



.float-left {
  float: left;
  margin: 0 15px 15px 0;
}


.float-right {
  float: right;
  margin-left: 15px;   /* テキストとの隙間 */
  margin-bottom: 10px;
}


.no-shrink img {
  max-width: none;
}

.table-figure {
  margin-left: 15px;
  margin-bottom: 10px;
  display: inline-block; /* ← これがポイント */
}


.table-figure img {
  width: auto;
  max-width: none;
  display: block;
  height: auto;
}

figcaption {
  font-size: 0.9em;
  color: #555;
  text-align: center;
  margin-top: 4px;
}

.wrap-text {
  max-width: 700px;
}

.wrap-text2 {
  max-width: 300px;   /* テーブル内でレイアウトが崩れない幅 */
  display: inline-block;
}

.clearfix {
  clear: both;
}
/* ===== figure 横並び・間隔調整 ===== */
/* ===== 画像＋キャプション用テーブル ===== */
.figure-table {
  border-collapse: collapse;
}

/* 画像行：下端揃え */
.figure-table .image-row td {
  vertical-align: bottom;   /* ★核心 */
  padding: 0 4px;
}

/* キャプション行 */
.figure-table .caption-row td {
  vertical-align: top;
  padding-top: 1px;
}

/* 画像 */
.figure-table img {
  display: block;
  max-width: 300px;
}
.figure-table figcaption {
  text-align: left;
}

