/* ==================================================
 共通
================================================== */
.Title {
  background-color: #000000;
  width: 100%;
  text-align: center;
  padding-top: 2px;
  padding-bottom: 2px;
  color: #FFFFFF;
  margin-bottom: 20px;
}
body {
  background-color: #f0f9ff !important;
}

.main-content {
  padding-top: 85px;
}
h4 {
  width: 100%;
  text-align: center;
}
.content-body {
  padding: 20px;
}
.form-control,
.form-select {
  background-color: #d8ffaf !important;
}
.form-select:disabled {
  background-color: #DDDDDD !important;
}

.flash-message {
  width: auto;
  position: fixed !important;
  right: 0;
  z-index: 999;
}
.sp-only {
  display: none;
}
.pc-only {
  display: block;
}
.sp-only-table {
  display: none;
}
.pc-only-table {
  display: table;
}

@media (max-width: 991px){
  .sp-only {
    display: block;
  }
  .pc-only {
    display: none;
  }
  .sp-only-table {
    display: table;
  }
  .pc-only-table {
    display: none;
  }
}

/* ヘッダー */
.Header {
  position: fixed;
  display: flex;
  height: 85px;
  border-bottom: 1px solid #000000;
  background-color: #f0f9ff;
  width: 100%;
  z-index: 999;
}
.Header .user-info {
  border: #000000 1px solid;
  width: 330px;
  min-width: 330px;
}
.Header .user-name {
  border: #BBBBBB 1px solid;
  background-color: #BBBBBB;
  color: #FFFFFF;
  margin: 3px 3px 0 3px;
}
.Header .user-info .furiwake,
.Header .user-info .answer {
  height: 54px;
}
.Header .user-info .furiwake .black,
.Header .user-info .answer .black{
  background-color: #000000;
  color: #FFFFFF;
  margin-top: 15px;
  width: 70px !important;
  height: 25px;
}
.Header .user-info .head-permissions {
  width: 100px;
  flex-grow: 1;
  overflow: hidden;
}
.Header .user-info .head-permission {
  font-size: 9px;
  font-weight: bold;
  line-height: 1;
  overflow: hidden;
}
.Header .user-info .head-none {
  font-size: 12px;
  padding-top: 16px;
}
.Header .header-buttons{
  display: flex;
  justify-content: end;
  flex-wrap: wrap;
  align-items: start;
}
.Header .header-buttons a {
  padding: 5px 5px !important;
  background-color: #64ab16;
  border: 1px solid #000000;
  height: 25px;
  width: 115px;
  line-height: 1;
  margin: 0 5px;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 1px;
}
.Header .permission-image {
  width: 18px;
}
.Header .menu {
  display: none;
}
.Header .menu img{
  width: 50px;
}

@media  (max-width: 1400px) {
  .Header {
    justify-content: center;
  }
  .header-logo,
  .header-buttons,
  .right-user-names{
    display: none !important;
  }

  .Header .user-info {
    margin: 0 auto !important;
  }

  .Header .menu {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 50px;
  }

}

/* ヘッダー ハンバーガーメニュー */

.Header .offcanvas {
  background-color: #f0f9ff;
}
.Header .nav-item:first-child {
  border-top: 1px solid #000000;
}
.Header .nav-item {
  border-bottom: 1px solid #000000;
}

@media (max-width: 991px) {
  .Header .offcanvas {
    width: 100% !important;
  }
}

/* フッター */
footer {
  position: fixed;
  bottom: 0;
  height: 35px;
  text-align: center;
  color: #8f7666;
  width: 100%;
  background-color: #000000;
  font-size: 15px;
  padding-top: 5px;
}
/* パンくず */
.pankuzu {
  width: 100%;
  background-color: #CCCCCC;
  padding-top: 5px;
  padding-bottom: 5px;
}
.pankuzu a{
  color: #CC2222;
}
/* サイズ調整 */
.w-5 {
  width: 5% !important;
}

.w-10 {
  width: 10% !important;
}

.w-15 {
  width: 15% !important;
}

.w-20 {
  width: 20% !important;
}

.w-25 {
  width: 25% !important;
}

.w-27 {
  width: 27% !important;
}

.w-30 {
  width: 30% !important;
}
.w-32 {
  width: 32% !important;
}

.w-35 {
  width: 35% !important;
}

.w-38 {
  width: 38% !important;
}

.w-40 {
  width: 40% !important;
}
.w-45 {
  width: 45% !important;
}
.w-49 {
  width: 49% !important;
}
.w-80 {
  width: 80% !important;
}
.w-100 {
  width: 100% !important;
}

.wi-10 {
  width: 10px !important;
}
.wi-15 {
  width: 15px !important;
}
.wi-20 {
  width: 20px !important;
}
.wi-25 {
  width: 25px !important;
}
.wi-30 {
  width: 30px !important;
}
.wi-35 {
  width: 35px !important;
}
.wi-40 {
  width: 40px !important;
}
.wi-45 {
  width: 45px !important;
}
.wi-50 {
  width: 50px !important;
}
.wi-60 {
  width: 60px !important;
}
.wi-70 {
  width: 70px !important;
}
.wi-80 {
  width: 80px !important;
}
.wi-90 {
  width: 90px !important;
}

.wi-100 {
  width: 100px !important;
}

.wi-120 {
  width: 120px !important;
}
.wi-130 {
  width: 130px !important;
}
.wi-140 {
  width: 140px !important;
}
.wi-150 {
  width: 150px !important;
}

.wi-160 {
  width: 160px !important;
}
.wi-170 {
  width: 170px !important;
}
.wi-180 {
  width: 180px !important;
}
.wi-190 {
  width: 190px !important;
}

.wi-200 {
  width: 200px !important;
}
.wi-210 {
  width: 210px !important;
}
.wi-220 {
  width: 220px !important;
}
.wi-230 {
  width: 230px !important;
}
.wi-240 {
  width: 240px !important;
}
.wi-250 {
  width: 250px !important;
}
.wi-280 {
  width: 280px !important;
}
.wi-290 {
  width: 290px !important;
}
.wi-300 {
  width: 300px !important;
}
.wi-350 {
  width: 350px !important;
}
.wi-360 {
  width: 360px !important;
}
.wi-370 {
  width: 370px !important;
}
.wi-375 {
  width: 375px !important;
}
.wi-400 {
  width: 400px !important;
}
.wi-420 {
  width: 420px !important;
}
.wi-440 {
  width: 440px !important;
}
.wi-460 {
  width: 460px !important;
}
.wi-480 {
  width: 480px !important;
}
.wi-500 {
  width: 500px !important;
}
.wi-550 {
  width: 550px !important;
}


/* max-width */
.max-100 {
  max-width: 100px !important;
}
.max-120 {
  max-width: 120px !important;
}
.max-140 {
  max-width: 140px !important;
}
.max-150 {
  max-width: 150px !important;
}
.max-160 {
  max-width: 160px !important;
}
.max-170 {
  max-width: 170px !important;
}
.max-180 {
  max-width: 180px !important;
}
.max-185 {
  max-width: 185px !important;
}
.max-200 {
  max-width: 200px !important;
}
.max-220 {
  max-width: 220px !important;
}
.max-240 {
  max-width: 240px !important;
}
.max-250 {
  max-width: 250px !important;
}
.max-260 {
  max-width: 260px !important;
}
.max-280 {
  max-width: 280px !important;
}
.max-300 {
  max-width: 300px !important;
}
.max-300 {
  max-width: 300px !important;
}
.max-320 {
  max-width: 320px !important;
}
.max-330 {
  max-width: 330px !important;
}
.max-340 {
  max-width: 340px !important;
}
.max-350 {
  max-width: 350px !important;
}
.max-360 {
  max-width: 360px !important;
}
.max-370 {
  max-width: 370px !important;
}
.max-380 {
  max-width: 380px !important;
}
.max-390 {
  max-width: 390px !important;
}
.max-400 {
  max-width: 400px !important;
}
.max-440 {
  max-width: 440px !important;
}
.max-450 {
  max-width: 450px !important;
}
.max-500 {
  max-width: 500px !important;
}
/* チェックボックス */
input[type=checkbox] {
  display: none;
}
.checkbox {
  position: relative;
  width: auto;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  padding: 3px 0 3px 40px;
}
.checkbox::before {
  background: #d8ffaf;
  border: 2px solid #DDDDDD;
  border-radius: 3px;
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  left: 16px;
  margin-top: 0;
  position: absolute;
  top: 7px;
}
.checkbox::after {
  border-right: 4px solid #000;
  border-bottom: 4px solid #000;
  content: '';
  display: block;
  width: 9px;
  height: 18px;
  top: 4px;
  left: 23px;
  margin-top: 0;
  opacity: 0;
  position: absolute;
  transform: rotate(45deg);
  z-index: 100;
}
input[type=checkbox]:checked+.checkbox::after {
  opacity: 1;
}

.check-btn:checked + label {
  opacity: 1;
}
.check-btn + label {
  opacity: 0.5;
}

/* ラジオボタン */
input[type=radio] {
  display: none;
}

.radio {
  position: relative;
  width: auto;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  padding: 3px 30px 3px 40px;
}

.radio::before {
  background: #d8ffaf;
  border: 2px solid #DDDDDD;
  border-radius: 50%;
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  left: 16px;
  position: absolute;
  top: 7px;
}

.radio::after {
  background: #000;
  border-radius: 50%;
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  top: 12px;
  left: 21px;
  opacity: 0;
  position: absolute;
  z-index: 100;
}

input[type=radio]:checked + .radio::after {
  opacity: 1;
}

/* ボタン */
.btn-primary {
  background-color: #64ab16 !important;
  padding: 3px 8px !important;
  border: #64ab16 !important;
}
.btn-primary:hover {
  opacity: 0.7;
}
.btn-primary img{
  height: 15px;
}
.nocursor{
  cursor: default !important;
}

/* ==================================================
 一覧画面共通
================================================== */
/* 検索 */
.search-area {
  background-color: #DDDDDD;
  padding: 10px;
  width: 100%;
}
.search-area .search-column {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 25px;
}
.search-area .search-content {
  padding: 1px 5px;
  border: 1px solid #000000;
  background-color: #FFFFFF;
}
.search-area .search-content input::placeholder{
  font-size: 12px;
}
@media (max-width: 991px){
  .search-area .search-column,
  .search-area .search-content {
    width: 100% !important;
  }

  .search-area input[type=submit] {
    margin: 5px auto !important;
  }

}

/* 展開ボタン */
.open-button {
  background-color: #000000;
  cursor: pointer;
  width: 32px;
  height: 44px;
}
.open-button img{
  position: relative;
  top: 6px;
}

.open-menu {
  display: none;
}
/* ページャー */
.page-count {
  text-align: center;
  color: #FF0000;
  font-weight: bold;
}
.custom-pager .pagination{
  justify-content: center;
}

/* テーブル */
.list-table {
  width: 100%;
  border-collapse: collapse;
}
.list-table th{
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
  vertical-align: middle;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
}
.list-table td{
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
  vertical-align: middle;
  background-color: #FFFFFF;
  border: 1px solid #000000;
}

@media (max-width: 991px){
  .list-table {
    width: 100%;
  }
  .list-table tr:first-child td{
    border-top: 3px solid #000000;
  }
  .list-table tr:first-child th{
    border-top: 3px solid #FFFFFF;
  }
  .last-tr td{
    border-bottom: 3px solid #000000;
  }
  .last-tr th{
    border-bottom: 3px solid #FFFFFF;
  }
}

/* ==================================================
 詳細画面共通
================================================== */
.form dt {
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
  vertical-align: middle;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
}
/* .form dd {
  padding-top: 5px;
  padding-bottom: 5px;
  vertical-align: middle;
  border: 1px solid #000000;
  margin-bottom: 0 !important;

}
.form dd .input-area {
  align-items: center;
  display: flex;
  height: auto;
} */

.form dd {
  display: flex;
  align-items: center; /* 上下中央揃え */
  padding-top: 5px;
  padding-bottom: 5px;
  border: 1px solid #000000;
  margin-bottom: 0 !important;
}

/* 入力エリアとエラーメッセージをグループ化 */
.input-wrapper {
  display: flex;
  flex-direction: column; /* 縦に並べる */
  align-items: flex-start; /* 左揃え */
  width: 100%;
}

/* 入力エリア */
.input-area {
  display: flex;
  align-items: center;
}

/* エラーメッセージ */
.error {
  color: red;
  font-size: 14px;
  margin-top: 4px;
}

.form-buttons {
  width: 100%;
  text-align: center;
}
.required {
  color: #FFFFFF;
  padding: 2px;
  background-color: #FF0000;
  margin-left: 3px;
}
.error {
  width: 100% !important;
  color: #FF0000;
}







/* ==================================================
 各画面
================================================== */
/* ホーム */
.home .counts{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.home .counts .count{
  width: 20%;
}
.home .counts .count .title,
.home .counts .count .body{
  border: 1px solid #000000;
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
}
.home .counts .count .title{
  color: #FFFFFF;
}
.home .border {
  border: 1px solid #DDDDDD;
}

.home .kind-button {
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}
@media (max-width: 991px){
  .home .counts .count{
    width: 100%;
  }
}

/* 各種設定 */
.settings .buttons{
  text-align: center;  
  justify-content: center;
}
.settings .buttons div{
  background-color: #DDDDDD;
  height: 50px;
  width: 300px;
  padding-top: 10px;
}
/* 各種設定 */
.users .permission-image {
  width: 30px;
}
/* エリア管理 */

@media (max-width: 991px){
  .areas .area-dd {
    width: 50%;
  }
}
/* アラートメール */
.alerts .inquiry-sorting {
  padding: 5px;
  background-color: #ff4c4c;
  color: #FFFFFF;
}
.alerts .inquiry-answer{
  padding: 5px;
  background-color: #007018;
  color: #FFFFFF;
}

/* アップローダ */

.upload {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.upload .container {
border: 5px solid red;
background-color: #004068;
width: 455px;
height: 340px;
padding: 10px;
position: relative;
margin: 15px; /* 余計な外側の余白を削除 */
overflow: hidden;
}

.upload .gray-box {
position: absolute;
bottom: 10px;
left: 10px;
color: white;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 14px;
width: 130px;
height: 140px;
text-align: center;
}

.upload .container::before {
content: "";
position: absolute;
top: 52%;
left: 29%;
transform: translate(-50%, -50%);
background: url('../images/drop_down.png') no-repeat center;
background-size: 60px 60px;
width: 60px;
height: 60px;
}

.upload .container::after {
content: "ここにファイルを\Aドロップできます。";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: rgba(255, 255, 255, 0.2);
font-size: 20px;
text-align: center;
pointer-events: none;
white-space: pre;
}

.upload .title {
background: black;
color: white;
padding: 10px;
font-size: 20px;
width: 35%;
position: absolute;
top: -5px;
left: -5px;
display: inline-block; /* コンテンツに応じて幅を調整 */
}

.upload .pdf-box {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 165px;
margin-right: 295px;
padding: 5px; /* 内側の余白を追加 */
}

.upload .pdf-box img {
width: 100px;
}

.upload .drop-text {
color: white;
font-size: 12px;
text-align: center;
margin-top: 15px;
}
.upload .btn-primary {
  z-index: 10;
  color: white; 
}


.container { 
  cursor: pointer;
}

.drop-text {
  cursor: pointer;
}


/* レスポンシブデザイン */
@media (max-width: 768px) {
  .upload {
    flex-direction: column;
    align-items: center;
  }

  .upload .container {
    width: 90%;
    max-width: 400px;
    height: 300px;
  }

  .upload .title {
    font-size: 18px;
    width: 50%;
  }

  .upload .pdf-box {
    margin-top: 160px;
    margin-right: 257px;
    align-items: center;
    text-align: center;
  }

  .upload .pdf-box img {
    width: 65px;
  }

  .upload .drop-text {
    font-size: 14px;
  }

  .upload .container::before {
  top: 52%;
  left: 27%;
  }

  .upload .gray-box {
  width: 110px;
  height: 110px;
  }
}

@media (max-width: 480px) {
  .upload .container {
    width: 100%;
    max-width: 320px;
    padding: 5px;
  }

  .upload .title {
    font-size: 16px;
    padding: 5px;
  }

  .upload .pdf-box {
    margin-top: 172px;
    margin-right: 190px;
  }

  .upload .pdf-box img {
    width: 60px;
  }

  .upload .drop-text {
    font-size: 10px;
  }

  .upload .container::before {
  top: 50%;
  left: 21%;
  }
  .upload .gray-box {
  width: 100px;
  height: 100px;
  }
}

/* 案件検索 */
.inquiries .btn.disabled{
  background-color: #CCCCCC !important;
}

.inquiries .alert td {
  background-color: #ffa0c9;
}
.inquiries .answer td {
  background-color: #c6ffc4;
}

@media (min-width: 992px){
  
  .inquiries .sorting-column {
    font-size: 13px;
  }
  .inquiries .answer-column {
    font-size: 13px;
  }
  .inquiries .status-btn {
    width: 90px;
  }
  .inquiries .list-table td {
    text-align: left;
    padding-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
  }
}
.inquiries .dummy{
  width: 74px;
}

@media (max-width: 991px){
  .inquiries .checkboxes .d-flex {
    flex-wrap: wrap;
  }
  .inquiries .checkboxes .checkbox-div{
    width: 100% !important;
  }
  .inquiries .list-table td {
    text-align: left;
    padding-left: 20px;
  }
}

/* 案件詳細 */
.inquiry-detail-view {
  width: 66.66666667%;
}
.inquiry-detail-content {
  width: 66.66666667%;
}
.log-title {
  text-align: center;
  background-color: #005682;
  padding-top: 7px;
  padding-bottom: 7px;
  color: #FFFFFF;
  font-weight: bold;
}

.log-content {
  display: none;
}

.inquiry-detail .closeBtn {
  display: none;
}

@media (max-width: 991px){
  .log-content dd,
  .log-content dt {
    width: 100%;
  }
}

/* 案件修正 */
.change-type {
  padding: 10px;
  border: 2px solid #DDDDDD;
  margin-bottom: 20px;
}
.change-type .checkbox-div{
  width: 280px !important;
  margin: 0 auto;
}

/* 案件振分 */
.inquiry-sorting .search-wrap{
  border-top:    1px solid #000000;
  border-bottom: 1px solid #000000;
  padding: 10px 0;
}
.inquiry-sorting .search-result-list{
  height: 300px;
  overflow-y: scroll;
}
.inquiry-sorting .search-result-list .result-user{
  width: 100%;
  border: 2px solid #7eafff;
  background-color: #dae8ef;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 5px;
  cursor: pointer;
}
.inquiry-sorting .search-result-list .result-user.active{
  color: #FFFFFF;
  background-color: #1976a0;
}
.inquiry-sorting .search-result-list .result-user .division{
  width: 200px;
  display: inline-block;
}

.inquiry-sorting .mails {
  padding: 10px;
}
.inquiry-sorting .mails .address{
  width: 100%;
  padding: 5px 0;
  border-bottom: 1px solid #000000;
}

/* 案件回答 */

#fixedModal .modal-dialog {
  max-width: 90%;
  height: 90%;
  margin: 0 auto;
  margin-top: 10px;
}
#fixedModal .modal-body {
  padding: 0 !important;
}
#fixedModal .modal-content {
  background-color: #f0f9ff;
  width: 100%;
  height: 100%;
}
#fixedModal .modal-content dl{
  height: calc(90vh - 110px);
  overflow: scroll;
}
#fixedModal .modal-content dt{
  position: relative;
}
.inquiry-answer .insert {
  position: absolute;
  top: 2px;
  right: 2px;
  cursor: pointer;
  width: 50px;
}
.inquiry-answer .answer-upload {
  height: 150px;
  padding: 5px;
}

.inquiry-answer .answer-upload {
  background-color: #004068;
  padding: 10px;
  position: relative;
  }
  
  .inquiry-answer .answer-upload .gray-box {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: 130px;
    height: 140px;
    text-align: center;
  }
  
  .inquiry-answer .answer-upload::before {
    content: "";
    position: absolute;
    top: 52%;
    left: 29%;
    transform: translate(-50%, -50%);
    background: url('../images/drop_down.png') no-repeat center;
    background-size: 60px 60px;
    width: 60px;
    height: 60px;
  }
  
  .inquiry-answer .answer-upload::after {
    content: "ここにファイルを\Aドロップできます。";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.2);
    font-size: 20px;
    text-align: center;
    pointer-events: none;
    white-space: pre;
  }

  #previewArea {
    display: flex;
    gap: 5px;
    background-color: rgba(90, 90, 90, 0.5);
  }

  .preview-file {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 5px 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 14px;
      width: 90px;
      height: 120px;
  }

  .preview-file img {
    width: 60px;
    position: absolute;
    left: 20px;
    top: 5px;
  }

  .preview-file .file-name {
    width: 100%;
    position: absolute;
    left: 0px;
    top: 65px;
    text-align: center;
    color: #FFFFFF;
    font-size: 12px;
  }

  .preview-file .remove-file {
    position: absolute;
    right: 5%;
    top: 87px;
    padding: 0px !important;
    cursor: pointer;
    color: #FFFFFF;
    font-weight: bold;
    width: 90%;
    text-align: center;
  }

  