.hosho {
  color: #333;
  line-height: 1.7;
}

.hosho-title {
  background: url("/images/hosho/bg_hosho.png") no-repeat center/cover;
  padding: 32px 0;
}

.hosho-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hosho-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hosho-date {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  margin-bottom: 12px;
}

.hosho-lead {
  margin: 20px 0;
  font-weight: bold;
}

.hosho-legend {
  padding: 20px;
  background: #f7f7f7;
  border-radius: 10px;
}

.hosho-subtitle {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ccc;
  color: #222;
}

.hosho-legend-item {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 5px;
}

.hosho-legend-item p {
  display: inline;
  margin: 0;
}

.hosho-legend-item p+p {
  margin-left: 8px;
}

.hosho-legend-title {
  display: inline-block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 2px 10px;
  margin-right: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.hosho-section-note {
  font-size: 12px;
  color: #475569;
  margin: 0;
}

.hosho-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

/* 表の枠（ボーダー・背景）は表だけを囲む内側に付与＝右余白は枠の外になる */
.hosho-table-wrap__inner {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  display: inline-block;
  min-width: 100%;
}

.hosho-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  table-layout: fixed;
}

.hosho-table th,
.hosho-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
  background: #fff;
}

.hosho-table thead th {
  background: #f7f7f7;
  font-weight: 700;
  color: #222;
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: center;
}

.hosho-table thead th.brand-kuriyama {
  background: rgba(215, 0, 15, 0.12);
  color: #d7000f;
}

.hosho-table thead th.brand-truskey {
  background: rgba(1, 127, 63, 0.14);
  color: #017f3f;
}

.hosho-table thead th.brand-onepra {
  background: rgba(1, 113, 193, 0.14);
  color: #0171c1;
}

/* カテゴリー：サブタイトルとして表示 */
.hosho-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 1.25rem 0 0.5rem;
  padding-bottom: 4px;
}

.hosho-subtitle:first-of-type {
  margin-top: 0.5rem;
}

.hosho-category-note {
  color: #666;
  font-weight: normal;
  margin-left: 2px;
}

.hosho-subtitle+.hosho-table-wrap {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.hosho-item {
  text-align: left;
  min-width: 180px;
}

.hosho-table tbody tr:nth-child(even) th.hosho-item {
  background: #fafafa;
}

/* 保証対象外でないセルに背景色 */
.hosho-table tbody td:not(.is-exempt) {
  background: #fafafa;
}

.hosho-table tbody td.is-exempt {
  background: #fff;
}

/* 栗山（hosho-col-0）：ブランド色。保証対象外は黒・通常 */
.hosho-table tbody td.hosho-col-0:not(.is-exempt) {
  color: #d7000f;
  font-weight: 700;
}

.hosho-table tbody td.hosho-col-0.is-exempt {
  color: #111;
  font-weight: normal;
}

/* トラスキー（hosho-col-1, 2）：ブランド色。保証対象外は黒・通常 */
.hosho-table tbody td.hosho-col-1:not(.is-exempt),
.hosho-table tbody td.hosho-col-2:not(.is-exempt) {
  color: #017f3f;
  font-weight: 700;
}

.hosho-table tbody td.hosho-col-1.is-exempt,
.hosho-table tbody td.hosho-col-2.is-exempt {
  color: #111;
  font-weight: normal;
}

/* ワンプラ（hosho-col-3）：ブランド色。保証対象外は黒・通常 */
.hosho-table tbody td.hosho-col-3:not(.is-exempt) {
  color: #0171c1;
  font-weight: 700;
}

.hosho-table tbody td.hosho-col-3.is-exempt {
  color: #111;
  font-weight: normal;
}

/* 標準的な販売店（hosho-col-4）：保証対象外以外は太字、保証対象外はnormal */
.hosho-table tbody td.hosho-col-4:not(.is-exempt) {
  color: #222;
  font-weight: 700;
}

.hosho-table tbody td.hosho-col-4.is-exempt {
  color: #111;
  font-weight: normal;
}

.hosho-table td.hosho-merged {
  vertical-align: middle;
}

/* 表：隣接同値マージ＋説明文表示 */
.hosho-table-merged .hosho-cell-desc {
  line-height: 1.5;
  text-align: left;
  padding: 10px 12px;
  vertical-align: middle;
  max-width: 280px;
}

.hosho-table-merged {
  min-width: 900px;
}

.hosho-table-legend {
  text-align: left;
  padding: 14px 16px !important;
  background: #f7f7f7;
  border-top: 2px solid #e5e7eb;
  font-size: 13px;
  line-height: 1.8;
  color: #333;
}

.hosho-legend-inline {
  display: inline-block;
  margin-right: 1.2em;
}

.hosho-table-legend strong {
  color: #222;
}

.hosho-exclude {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  margin-top: 24px;
  padding: 12px 12px 0;
}

.hosho-exclude-note {
  padding: 6px 0 0;
  color: #444;
}

.hosho-exclude-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 12px;
}

.hosho-exclude-block h3 {
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}

.hosho-exclude-block ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.hosho-exclude-notes {
  margin: 0;
  padding: 0 12px 14px;
  list-style: none;
  color: red;
  line-height: 1.6;
  font-weight: bold;
}

.hosho-exclude-notes li {
  margin-top: 6px;
  scroll-margin-top: 1em;
}

/* ページ内リンク（※1など） */
.hosho-note-ref {
  color: #2563eb;
  text-decoration: underline;
}
.hosho-note-ref:hover {
  color: #1d4ed8;
}

@media (max-width: 960px) {
  .hosho-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hosho-title {
    font-size: 22px;
  }

  .hosho-exclude-grid {
    grid-template-columns: 1fr;
  }

  /* スマホ：スクロール領域を右端いっぱいまで広げる（親の右パディングを打ち消す） */
  .hosho-table-wrap {
    -webkit-overflow-scrolling: touch;
    width: calc(100% + 1rem);
    margin-right: -1rem;
  }

  /* スクロールする中身に右余白＝右端までスクロールしたときだけ、表の外（枠の外）に余白 */
  .hosho-table-wrap__scroll {
    display: inline-block;
    min-width: 100%;
    padding-right: 1rem;
    box-sizing: content-box;
  }

  /* スマホ：thead を不透明にして横スクロール時に下が透けないようにする */
  .hosho-table-merged thead th {
    background-color: #f7f7f7 !important;
    border: 1px solid #ddd;
    z-index: 2;
    isolation: isolate;
  }

  .hosho-table-merged thead th.brand-kuriyama {
    background-color: #fce8e9 !important;
  }

  .hosho-table-merged thead th.brand-truskey {
    background-color: #e6f4ec !important;
  }

  .hosho-table-merged thead th.brand-onepra {
    background-color: #e6f2fc !important;
  }

  .hosho-table-merged thead tr:first-child th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 100px;
    width: 100px;
    background: #f7f7f7 !important;
    border: 1px solid #ddd;
    border-right: 1px solid #ddd;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
  }

  .hosho-table-merged tbody th.hosho-item {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 100px;
    width: 100px;
    background: #fff !important;
    border: 1px solid #ddd;
    border-right: 1px solid #ddd;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
    isolation: isolate;
  }

  .hosho-table-merged tbody tr:nth-child(even) th.hosho-item {
    background: #fafafa !important;
  }

  /* tbody の td も不透明にして、スクロール時の透けを防ぐ */
  .hosho-table-merged tbody td {
    background: #fafafa !important;
  }

  .hosho-table-merged tbody td.is-exempt {
    background: #fff !important;
  }
}


.header {
  min-height: 10.5rem;
  display: flex;
  padding: 1rem;
  background: url("/images/hosho/bg_hosho.jpg") no-repeat 50% 100%/cover;
  border-bottom: 1px solid #eee;
  position: relative;
  display: flex;
  flex-flow: column;
}

.header_title {
  font-weight: bold;
  flex: 1;
  display: flex;
  align-items: center;
  line-height: 1.4;
}

@media (min-width: 1000px) {
  .header_title {
    font-size: 32px;
  }
}

@media (max-width: 999px) {
  .header_title {
    font-size: 20px;
  }
}

.header_image {
  margin: 0 0 0 auto;
}

.header_image img {
  height: 100%;
  width: auto;
}

.title_sec {
  margin: 1.5rem 0;
}

.box_padding {
  padding-bottom: 2rem;
}