.body {
  font-family:"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",Osaka, "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  padding-bottom: 100px;
  position: relative;
}

.body p {
  margin: 0;
  padding: 0;
}
body.modal-open {
  overflow: hidden;
}
.l-lg {
  display: block !important;
}

.l-sm {
  display: none !important;
}

@media screen and (max-width:767px) {
  .l-lg {
    display: none !important;
  }

  .l-sm {
    display: block !important;
  }
}

.container, .container-fluid, .container-xxl, .container-xl,
.container-lg, .container-md, .container-sm {
  --bs-gutter-x: 0 !important;
}

td {
  vertical-align: middle;
}

/* header */
.l-header {
  background-color: #F0F0F0;
  box-sizing: border-box;
  display: block;
  padding: 15px;
  width: 100%;
}

.l-header .siteLogo {
  font-size: unset;
  margin: 0;
  width: fit-content;
}

.l-header .siteLogo:hover {
  opacity: .7;
}

/* コンテンツ部分 */
.contents-area {
  border: 2px solid #D9D9D9;
  box-sizing: border-box;
  margin-top: 20px;
  padding: 30px;
  width: 100%;
}

.contents-area .item-search {
  align-items: center;
  display: flex;
  width: 100%;
  --bs-gutter-x: 0;
}

.contents-area .item-search:not(:first-child) {
  margin-top: 20px;
}

.contents-area .item-search .label-box {
  display: block;
  margin: 0;
  padding: 0;
  width: 160px;
}

.contents-area .item-search .label-box .label {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.contents-area .item-search .form-box {
  display: flex;
  padding: 0;
  width: fit-content;
}

.contents-area .item-search input::placeholder{
  color: #a7a7a7;
}

.contents-area .item-search .form-box .form-item:first-child {
  width: 220px;
}

.contents-area .item-search .form-box .form-item:nth-child(n+2) {
  margin-left: 20px;
  width: 360px;
}

.contents-area .item-search .form-box .form-item:first-child.single {
  width: 360px;
}

.contents-area .item-search .select-box {
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
  width: 415px;
}

.contents-area .item-search .select-box:before {
  content: "";
  position: absolute;
  right: 10px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #ccc;
  border-left: 2px solid #ccc;
  margin-top: 5px;
  transform: translateY(-50%) rotate(-135deg);
}

.contents-area .flex-box {
  align-items: center;
  justify-content: space-between;
  display: flex;
}

.contents-area .flex-box .form {
  display: block;
  width: 75%;
}

.contents-area .flex-box .form .item-search .form-box .form-item {
  width: 49%;
}

.contents-area .flex-box .image {
  align-items: center;
  /* border: 1px solid #dfdfdf; */
  display: flex;
  height: 180px;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  width: 22%;
}

.contents-area .flex-box .image img {
  height: 90%;
  object-fit: cover;
  width: auto;
}

.contents-area .check-box {
  display: flex;
  margin-top: 20px;
  padding: 0;
  width: 100%;
  --bs-gutter-x: 0;
}

.contents-area .check-box input {
  margin-right: 8px;
}

.contents-area .check-box div {
  padding: 0;
  width: fit-content;
}

.contents-area .check-box div:not(:first-child) {
  margin-left: 20px;
}

.contents-area .flex-box ~ .check-box {
  margin-top: -10px;
}

.contents-area .flex-box ~ .check-box.no-margin {
  margin-top: 10px;
}

.contents-area .flex-box ~ .check-box.three {
  margin-top: 0px;
}

.contents-area .flex-box .form-box {
  justify-content: space-between;
  width: calc(100% - 170px);
}

.contents-area .table-box {
  border-top: 1px solid #D9D9D9;
  margin-top: 30px;
  padding-top: 30px;
}

.contents-area .table-box table {
  margin-top: 0
}

.contents-area .table-box table th {
  padding: 10px 7px;
  text-align: center;
  vertical-align: middle;
  width: calc(100% / 7);
}

.contents-area .table-box table th .th-box {
  display: flex;
  flex-direction: column;
}

.contents-area .table-box table th .caption {
  font-size: 10px;
  line-height: 1.2;
}

.contents-area .table-box table td {
  --bs-table-bg-type: unset;
  padding: 15px;
  text-align: center;
}

.contents-area .table-box table td a {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  text-decoration: none;
  width: fit-content;
}

.contents-area .table-box table td a:hover {
  cursor: pointer;
}

.contents-area .table-box .nine th:nth-child(1),
.contents-area .table-box .nine th:nth-child(3),
.contents-area .table-box .nine th:nth-child(4),
.contents-area .table-box .nine th:nth-child(6),
.contents-area .table-box .nine th:nth-child(8) {
  width: fit-content;
}

.contents-area .table-box table .image .item-frame {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contents-area .table-box table .image .item-frame .name {
  font-size: 13px;
  letter-spacing: -1px;
  margin-top: 10px;
}

.contents-area .table-box table .table-body .item-box .detail-box .category {
  display: none;
}

@media screen and (min-width:1280px) {
  .contents-area {
    width: 1178px;
  }
}

@media screen and (max-width:1279px) {
  .contents-area {
    max-width: none;
    width: 90%;
  }
}

@media screen and (max-width:1179px) {
  .contents-area .item-search .label-box {
    width: 80px;
  }

  .contents-area .flex-box .form-box {
    width: calc(100% - 110px);
  }
}

@media screen and (max-width:1049px) {
  .contents-area .flex-box {
    flex-direction: column;
  }

  .contents-area .flex-box .form {
    order: 2;
    margin-top: 30px;
    width: 100%;
  }

  .contents-area .flex-box .image img 
  {
    width: 200px;
    height: 100%;
  }

  .contents-area .flex-box .image {
    height: unset;
    order: 1;
    width: 100%;
    text-align: center;
  }

  .contents-area .flex-box ~ .check-box,
  .contents-area .flex-box ~ .check-box.three {
    margin-top: 20px;
  }

  .contents-area .flex-box .form .item-search .form-box .form-item {
    width: 49%;
  }

  .contents-area .item-search .form-box {
    justify-content: space-between;
    width: calc(100% - 80px);
  }

  .contents-area .item-search .form-box .form-item {
    width: 48% !important;
  }

  .contents-area .item-search .form-box .form-item:last-child {
    margin-left: 0;
  }
}

@media screen and (max-width:840px) {
  .contents-area .table-box {
    border: none;
    padding-top: 0;
  }

  .contents-area .table-box table .table-head {
    display: none;
  }

  .contents-area .table-box table .table-body {
    display: block;
  }

  .contents-area .table-box table .table-body .item-box {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
  }

  .contents-area .table-box table .table-body .item-box .detail-box {
    display: block;
    padding: 0;
    width: calc(100% / 2);
  }

  .contents-area .table-box table .table-body .item-box .detail-box .category {
    align-items: center;
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    font-size: 13px;
    font-weight: 600;
    height: 30px;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  /* .contents-area .table-box table .table-body .item-box:nth-child(2n) .detail-box .category {
    background: #f2f2f2;
  } */

  .contents-area .table-box table .table-body .item-box .detail-box .item-frame {
    align-items: center;
    display: flex;
    height: calc(100% - 30px);
    justify-content: center;
    padding: 15px 15px;
  }

  .contents-area .table-box table .table-body .item-box .detail-box .item-frame.image {
    height: 80%;
    margin-top: 10px;
  }

  .contents-area .table-box table .table-body .item-box .detail-box .item-frame.button {
    height: auto;
    margin-top: 15px;
    padding: 0 15px 15px;
  }

  .contents-area .table-box table .table-body .item-box .detail-box:nth-child(n+3) {
    border-top: 1px solid #D9D9D9;
  }

  .contents-area .table-box table .table-body .item-box .detail-box:last-child {
    width: 100%;
  }

  .contents-area .table-box table .table-body .item-box.six .detail-box:nth-child(n+3):nth-child(-n+5) {
    width: calc(100% / 3);
  }

  .contents-area .table-box table .table-body .item-box.four .detail-box {
    width: 50% !important;
  }

  .contents-area .table-box table .image .item-frame {
    flex-direction: unset;
  }

  .contents-area .table-box table .image .item-frame .name {
    margin: 0 0 0 20px;
  }

  .contents-area .table-box table .table-body .item-box:nth-child(n+2) {
    margin-top: 30px;
  }
}

@media screen and (max-width:767px) {
  .contents-area {
    margin-top: 30px;
    max-width: unset;
    padding: 20px;
    width: 90%;
  }

  .contents-area .item-search {
    align-items: unset;
    flex-direction: column;
  }

  .contents-area .item-search .label-box {
    flex: unset;
  }

  .contents-area .item-search .select-box {
    margin-top: 10px;
    width: 100%;
  }

  .contents-area .item-search .form-box {
    justify-content: space-between;
    width: 100%;
  }

  .contents-area .item-search .form-box .form-item {
    margin-top: 10px;
    width: calc(100% / 2.08) !important;
  }

  .contents-area .item-search .form-box .form-item:last-child {
    margin-left: 0;
  }

  .contents-area .check-box {
    flex-direction: column;
  }

  .contents-area .check-box div:last-child {
    margin-left: 0;
    margin-top: 10px;
  }
}

@media screen and (max-width:600px) {
  .contents-area .table-box table .table-body .item-box .detail-box .item-frame.image {
    flex-direction: column;
  }

  .contents-area .table-box table .image .item-frame .name {
    margin: 10px 0 0;
  }
}

.contents-area .button-box {
  display: flex;               /* 横並び */
  align-items: center;         /* 垂直中央揃え */
  gap: 10px;                   /* ボタンとアラートの間隔（任意） */
  margin-top: 20px;
  width: fit-content;
  --bs-gutter-x: 0;
}

.contents-area .button-box .btn {
  align-items: center;
  background-color: #D7EFF3;
  border: 2px solid #B4D4DA;
  display: flex;
  justify-content: center;
  line-height: 1;
  padding: 7px 0;
  width: 170px;
}

.contents-area .button-box .btn span {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 0 27%;
}

.contents-area .button-box .btn svg {
  height: 25px;
  margin-left: auto;
  margin-right: 20px;
  width: 26px;
  padding-top: 2px;
}

@media screen and (max-width:767px) {
  .contents-area .button-box {
    margin: 30px auto 0;
  }
}

.contents-area .button-box .btn:hover {
  background-color: #fff;
}

/* モーダルの背景 */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

/* 表示中 */
.modal-container.active {
  display: flex;
}

/* モーダル本体 */
.modal-body {
  width: 90%;
  max-width: 1176px;
  max-height: 90vh;
  /* overflow-y: auto; */
  position: relative;
  animation: fadeIn 0.3s ease;
}

/* モーダルのフェードイン */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 開くボタン */
.modal-open,
.modal-trap-open {
  background-color: #FBFBFB;
  border: 2px solid #D3D3D3;
  border-radius: 6px;
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  margin: 0 auto;
  padding: 13px 5px;
  width: 100%;
}

.modal-open:hover,
.modal-trap-open:hover {
  background-color: #fff;
  cursor: pointer;
}

.modal-open.reason {
  background-color: unset;
  border: none;
  color: #0a58ca;
  font-size: 14px;
  text-align: center;
}

/* 閉じるボタン */
.modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  position: absolute;
  top: -20px;
  right: 0;
  z-index: 10;
}

.modal-content {
  background-color: #fff;
  height: 83vh;
  margin-top: 30px;
  overflow: hidden;
}

/* タイトル */
.modal-content .title {
  background-color: #E9E9E9;
  font-size: 18px;
  padding: 13px 15px;
}

/* コンテンツの調整 */
.modal-content .item-list,
.modal-content .item-box {
  margin: 1em auto 0;
  padding: 0;
  width: 95%
}

.modal-content .select-item {
  align-items: center;
  display: flex;
  margin-bottom: 1.5em;
}

.modal-content .label {
  font-weight: bold;
  margin-bottom: 0;
}

.modal-content .form-box {
  margin-left: 30px;
  width: 220px;
}

.modal-content .form-box .number {
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 1.2em;
  margin: 0;
  padding: 0.5em;
}

.modal-content.illust {
  align-items: center;
  box-sizing: border-box;
  height: auto;
  justify-content: center;
  margin: 30px auto 0;
  padding: 30px;
  min-height: 60vh;
  /*
  width: 70%;
  */
}

.modal-content.illust .item-box {
  width: fit-content;
}

.image-box__frame img {
  width: 100%;
}

@media screen and (max-width:840px) {
  .modal-open {
    width: 50%;
  }

  .modal-content {
    height: 80vh;
  }
}

/* モーダル内テーブル */
.table-wrapper {
  border: 1px solid #dee2e6;
  border-left: none;
  max-height: 60vh;
  overflow-y: auto;
}

@media screen and (max-height:580px) {
  .table-wrapper {
    max-height: 50vh;
  }
}

/* theadを固定 */
.trap-table thead.table-head {
  box-shadow: 0px 0px 10px -5px #777777;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

/* テーブル基本設定 */
.trap-table {
  border-collapse: collapse;
  margin-bottom: 0;
  table-layout: fixed;
  width: 100%;
}

.trap-table th,
.trap-table td {
  padding: 0.8em;
  border: 1px solid #dee2e6;
  text-align: left;
  word-break: break-word;
}

.table-wrapper.reason {
  max-height: 68vh;
}

.trap-table .table-contents.reason td {
  width: 20%;
}

.trap-table .table-contents.reason .item-box .number {
  width: 20%;
}

.trap-table .table-contents.reason .item-box .detail {
  width: 80%;
}


/* 画像調整 */
.modal-content .item-box td .trap-image {
  display: inline-block;
  vertical-align: middle;
  margin-right: 20px;
}

@media screen and (max-width:1249px) {
  .modal-body {
    max-width: unset;
    margin: 0 20px;
  }
}

@media screen and (max-width:1100px) {
  .modal-body {
    width: 90%;
  }
}

@media screen and (max-width:767px) {
  .modal-content .item-box .image {
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .modal-content .item-box .image .trap-image {
    margin: 0 0 10px 0;
  }
}

.contents-area.padding {
  padding: 0;
}

.contents-area.padding .panel-heading {
  background-color: #E9E9E9;
  font-size: 18px;
  font-weight: 600;
  padding: 10px 30px;
}

.contents-area.padding .panel-body {
  padding: 30px;
}

.form-check-label {
  cursor: pointer;
}

.selectBtn_hd{
  font-size: 14px;
}
.selectBtn{
  font-size: 11px;
}
.hc_caption{
  font-size: 9px;
}