/* PC用・基本テーブルデザイン */
.table-hyou {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  font-family: "Hiragino Kaku Gothic ProN","Meiryo",sans-serif;
}

.table-hyou th,
.table-hyou td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.table-hyou th {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #333;
}

.table-hyou tr:nth-child(even) {
  background-color: #fafafa;
}

.table-hyou caption {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
}

/* スマホ用・縦並び自動変換 */
@media (max-width: 600px) {
  .table-hyou {
    font-size: 14px;
  }

  /* captionは必ず表示 */
  .table-hyou caption {
    display: block !important;
    caption-side: top;
  }

  /* theadは非表示 */
  .table-hyou thead {
    display: none;
  }

  /* trをブロック化 */
  .table-hyou tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
  }

  /* tdをブロック化してラベル＋値を縦に */
  .table-hyou td {
    display: block;
    padding: 8px;
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    text-align: left;
  }

  /* td::beforeでdata-labelを表示 */
  .table-hyou td::before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
  }

  /* 最後のtdの下線は消す */
  .table-hyou td:last-child {
    border-bottom: 0;
  }
}



/* 横デザインPC・基本テーブルデザイン */
.table-yokohyou {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

.table-yokohyou th, 
.table-yokohyou td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.table-yokohyou th {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #333;
}

.table-yokohyou tr:nth-child(even) {
  background-color: #fafafa;
}

.table-yokohyou caption {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
}

/* スマホ用（横スクロール型） */
@media (max-width: 600px) {
  .table-yokohyou-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-yokohyou {
    width: 800px; /* 必要に応じて調整 */
    font-size: 14px;
  }

  .table-yokohyou caption {
    font-size: 18px; /* captionを大きく表示 */
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
  }

  .table-yokohyou thead {
    display: table-header-group; /* ヘッダー表示 */
  }

  .table-yokohyou tr {
    display: table-row;
    border: 1px solid #ddd;
    border-radius: 0;
    margin: 0;
    background-color: #fff;
  }

  .table-yokohyou td, .table-yokohyou th {
    display: table-cell;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
  }
}

/* =========================
   エリア目次 最強安定版
========================= */
.area-nav {
  margin-bottom: 20px;
  font-family: "Noto Sans JP", sans-serif;
  overflow: visible; /* 折り返しても消えない */
  text-align: left;
}

.area-nav p {
  margin: 0 0 10px 0;
  font-weight: bold;
}

/* ULの基本リセット */
.area-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;           /* 折り返しOK */
  justify-content: flex-start;
  gap: 0;
  border: none !important;   /* 縦線の原因を除去 */
  overflow: visible !important;
}

.area-nav li {
  display: flex;
  align-items: center;
  line-height: 1.6;
  padding-right: 0.25em;
  min-width: auto;
  white-space: nowrap;
  border: none !important;   /* 長い縦線を完全除去 */
  background: none !important;
	 overflow: visible;      /* 消え防止 */
}

/* -------------------------
   PC表示：横並び＋縦棒
------------------------- */
@media screen and (min-width: 769px) {
  .area-nav li:not(:last-child)::after {
    content: "|";
    display: inline-block;
    margin-left: 0.25em;
    color: #4b2e1e;
    font-weight: 500;
    font-size: 1em;
    line-height: 1;
  }
}

/* -------------------------
   リンク文字色・装飾
------------------------- */
.area-nav a {
  text-decoration: none !important;
  color: #4b2e1e !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.area-nav a:hover {
  color: #7a4f3a !important;
  text-decoration: underline !important;
}

/* -------------------------
   スマホ表示：縦並び＋左インデント
------------------------- */
@media screen and (max-width: 768px) {
  .area-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .area-nav li {
    display: block;
    padding-left: 15px; /* 左インデント */
    padding-right: 0;
    white-space: normal;
  }

  /* スマホは縦棒非表示 */
  .area-nav li::after {
    content: "";
  }
}


/* -------------------------
  査定一覧リンク文字色・装飾
------------------------- */
.page-toc li,
.page-toc a {
  border: none !important;        /* 左線がborderなら消える */
}


.page-toc a {
	display: block;
  margin-bottom: 2px;/* ← 余白を小さくする（0でもOK） */
  text-decoration: none !important;
  color: #4b2e1e !important;
  font-weight: 500;
  text-align: left;
	
  writing-mode: horizontal-tb !important;
  white-space: nowrap;          /* 改行禁止 */
  overflow: hidden;             /* はみ出し隠す */
  text-overflow: ellipsis;      /* 省略記号表示 */
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.page-toc ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.page-toc li {
  margin: 0 !important;
  padding: 0 !important;
}

.page-toc a {
  display: block;
  margin: 0 !important;
  padding: 2px 0 !important;   /* ← 少しだけ上下に余裕を入れる */
  line-height: 1.4 !important; /* ← 行の高さを指定 */
}

