/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   全体レイアウト
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

body {
  margin: 0;                /* ← 左マージン消す */
  padding: 0;
  /* line-height: 1.8; */
  /* font-size: 14px; */
  color: #333;
}

/* 左メニュー＋本文を横並びにする外枠 */
.layout {
  display: flex;
  align-items: flex-start;
  width: 100%;              /* ← 横幅フル */
  max-width: none;          /* ← 制限解除！ */
  margin: 0;                /* ← 中央寄せも解除 */
}

/* sidebar は今の CSS のままでOK（menu.css 側） */

/* 本文側 */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 0px 10px 10px;  /* 左右の余白はここで調整 */
  box-sizing: border-box;
}

/* 段落ブロック（既存） */
.mein {
  margin-left: 0;           /* ← いったん揃える */
  margin-bottom: 35px;
  line-height: 1.8;
  font-size: 14px;
  color: #333;
  max-width: 100%;
}

.mein2 {
  margin-left: 20px;        /* ちょっとだけインデントしたい用 */
}

.memo {
  color: #a08a81;/*文字色*/
  font-weight: bold;
  padding: 0 0.5em;
  margin-left: 0.5em;
  margin-right: 0.5em;
  border-left: 7px dotted #a08a81;
  background-color: #ffffff;
  outline: 3px solid #a08a81;
  outline-offset: 0.5em;
  position: relative;
}
.memo::after {
  content: '';
  position: absolute;
  right: calc(-0.5em - 3px);
  top: calc(-0.5em - 3px);
  border-width: 0 20px 20px 0;
  border-style: solid;
  border-color: #815a5a #fff #815a5a;
  box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15);
}



.line {
  color: #a08a81;/*文字色*/
  /*線の種類（点線）2px 線色*/
  border-bottom: dashed 2px #a08a81;
}


/* ――――――――――――――――キャラシ画像のCSSS―――――――――――――――― */



.charactersheet {
  display: block;
  margin-left: 40px;       /* 上下余白 & 中央寄せ */
  width: 90%;              /* レスポンシブに対応 */
  max-width: 800px;        /* 最大幅の制限 */
  border-radius: 8px;      /* 角を少し丸く */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* ソフトな影 */
}



a:link {
  color: #b98141; /* 通常のリンク色 */
}

a:visited {
  color: #5a3e3e; /* 訪問済みリンク色 */
}

a:hover {
  color: #b75a5a; /* マウスホバー時の色 */
  text-decoration: underline;
}

a:active {
  color: #bb1818; /* クリック中の色 */
}


/* ――――――――――――――――テーブルのCSSS―――――――――――――――― */

/* ------------------ 共通部分 ------------------ */
table.table-default,
table.table-brown {
  border-collapse: collapse;
  width: 100%;
  max-width: 1000px;
  margin: 1em 0;
  font-size: 15px;
  table-layout: fixed;
  color: #3a2d2d;
}

table.table-default th, table.table-default td,
table.table-brown th, table.table-brown td {
  border: 1px solid #d5bfb3;
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
}

/* brown テーマのセル境界を上書き */
table.table-brown th,
table.table-brown td {
  border-color: #8aa0b8;
}


table.table-default {
  background-color: #f9f7f5;
  border: 1px solid #a08a81;
}

table.table-default th {
  background-color: #eae3df;
}

table.table-brown {
  background-color: #f5f9ff;            /* 背景を青みベージュに */
  border: 1px solid #8aa0b8;            /* 外枠も青系に */
}

table.table-brown th {
  background-color: #dfe7f2;            /* 見出しの色 */
}



/* 列幅 */
table.table-default th:nth-child(1),
table.table-default td:nth-child(1),
table.table-brown th:nth-child(1),
table.table-brown td:nth-child(1) {
  width: 25%;
}

table.table-default th:nth-child(2),
table.table-default td:nth-child(2),
table.table-brown th:nth-child(2),
table.table-brown td:nth-child(2) {
  width: 75%;
}


.memo2 {
    color: #9c0101;
    font-size: 35px;
    font-weight: bold;
    padding: 0 0.5em;
    margin-left: 0.5em;
    margin-right: 0.5em;
    border-left: 7px dotted #a08a81;
    background-color: #ffffff;
    outline: 3px solid #a08a81;
    outline-offset: 0.5em;
    position: relative;
    text-align: center;
}

.meinbig {
    font-size: 30px;
    margin-left: 30px;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 100px;
}




/* 
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
アコーディオン設定
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.accordion  {
  margin: 30px auto;
}

.accordion_title {
  position: relative;
  border: none;
  display: block;
  list-style: none;
  width: 800px;
  cursor: pointer;
  background: #ffffff;
  border: 2px solid #d8d8d8;
  padding: 0.5em 1em 0.5em;
  line-height: 1.6em;
}

summary.accordion_title::-webkit-details-marker {
  display:none;
}

.accordion_title:after {
  content: "+";
  position: absolute;
  top: calc(50% - 0.5em);
  right: 20px;
  line-height: 1;
  padding: 0;
  pointer-events: none;
}

.accordion::details-content {
  opacity: 0;
  block-size: 0;
  transition: .3s;
  transition-property: display, opacity, block-size, padding;
  transition-behavior: allow-discrete;
  line-height: 1.6em;
}

.accordion .accordion_content {
  padding: 0 2em 0 3em;
}

.accordion .accordion_content > *:first-of-type {
  margin-top: 0;
}

.accordion .accordion_content > *:last-of-type {
  margin-bottom: 0;
}

.accordion[open]::details-content {
  opacity: 1;
  block-size: auto;
  block-size: calc-size(auto, size);
}

.accordion[open] .accordion_content {
  padding: 1.4em 2em 1.4em 3em;
}

.accordion[open] .accordion_title:after {
  content: "-";
}