.content_body h2 {
  text-align: center;
  font-size: 2rem;
}

.thanks_card_page_title {
  margin-top: 2rem;
}

.likeit {
  display: inline-block;
  color: #dc0032;
}

.list-group .list-group-item,
.list-group .list-group-item a {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.list-group .list-group-item.loading_box {
  justify-content: center;
}

.list-group .list-group-item span.list_icon {
  display: flex;
  align-items: center;
}

.list-group .list-group-item span.list_bookmark {
  display: inline-block;

  margin-right: 0.3rem;
}

.list-group .list-group-item span.status {
  display: inline-block;
  background-color: rgb(47 104 193);
  color: #ffffff;
  padding: 0 0.3rem;
  margin-left: 0.3rem;
}

.list-group .list-group-item span.status.unread {
  background-color: rgb(229 85 136);
}

.list-group .list-group-item span.status.reply {
  background-color: #9e9e9e;
}

#digital-thanks article.declaration {
  margin: 0;
  padding: 0;
  text-align: left;
}

.list_sended {
  white-space: nowrap;
}

.list_message {
  display: inline-block;
  width: 25rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.save_delete_btn {
  padding: 0.2rem 1rem;
}

#sendwaiting_box .list-group-item:hover,
#sendwaiting_box .list-group-item a:hover,
#sending_box .list-group-item:hover,
#sending_box .list-group-item a:hover,
#receive_box .list-group-item:hover,
#receive_box .list-group-item a:hover {
  color: #2f68c1;
}

.list_bookmark {
  cursor: pointer;
}

.list_bookmark.active {
  color: #dc0032;
}

.sp_spacer {
  display: none;
}

#thanks_point_area {
  display: flex;
  align-items: start;
}

#thanks_point_area table {
  border-top: 0.2rem solid #fff;
  border-left: 0.2rem solid #fff;
  border-bottom: 0.2rem solid #fff;
  margin-left: 2rem;
}

#data-download-button {
  float: right;
  border-radius: 0.2rem;
  border-style: none;
  background-color: #dcf0fa;
  padding: 0.2rem 0.8rem;
  color: #333;
}

#data-download-button:hover {
  opacity: 0.9;
}

@media screen and (max-width: 800px) {
  .list_message {
    width: 20rem;
  }

  .sp_spacer {
    height: 1rem;
    display: block;
  }

  #thanks_point_area {
    display: block;
  }

  #thanks_point_area table {
    margin-left: 0;
  }

  #thanks_point_area .sp_flex {
    display: flex;
    flex-wrap: wrap;
  }

  #thanks_point_area .sp_flex span {
    line-height: 3rem !important;
  }

  #thanks_point_area .sp_flex a {
    margin-top: 0 !important;
    margin-left: 1.2rem;
  }

  #data-download-button {
    float: none;
    margin-top: 0.5rem;
  }
}

#receive_card_modal,
#sending_card_modal,
#sendwaiting_card_modal,
#download_form_modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  /* display: none; */
  overflow: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

#receive_card_modal #receive_card_body,
#sending_card_modal #sending_card_body,
#sendwaiting_card_modal #sending_card_body {
  line-height: 1.8rem;
  border-radius: 0.5rem;
  margin: 2rem 4rem;
  padding: 0;
}

#receive_card_modal #receive_card_body {
  margin: 0 4rem 2rem;
}

#receive_card_modal #receive_card_body a,
#sending_card_modal #sending_card_body a,
#sendwaiting_card_modal #sending_card_body a {
  text-decoration: underline;
}

.mark_btn {
  cursor: pointer;
}

.mark_btn.active {
  background-color: #f7fe70;
}

#receive_card_modal #receive_card_body a#confirm_btn:hover {
  opacity: 0.8;
}

#receive_card_modal.modal_wrap .dialog_base {
  max-width: 900px;
  width: 90%!important;
  margin: 10px auto;
}


.mark_icon {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: transparent;
}

.mark_point {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  margin: 0.2rem;
  background-image: url("/images/thanks/240923 thanks point logo.png");
  background-repeat: no-repeat;
  background-color: transparent;
  background-size: cover;
  background-position: center;
}

#receive_card_modal #receive_card_body .mark_icon,
#sending_card_modal #sending_card_body .mark_icon {
  width: 6rem;
  height: 4rem;
  text-decoration: none;
  border-radius: 6px;
  margin: 0 0.8rem;
}

.mark_icon span {
  display: none;
}

.thumb_up {
  background-image: url(/images/thanks/selcect_push1.png);
}

.favorite {
  background-image: url(/images/thanks/selcect_push2.png);
}

.sentiment_very_satisfied {
  background-image: url(/images/thanks/selcect_push3.png);
}

.sentiment_very_dissatisfied {
  background-image: url(/images/thanks/selcect_push4.png);
}

.sentiment_sad {
  background-image: url(/images/thanks/selcect_push5.png);
}

.thumb_up.active,
a.thumb_up:hover {
  background-image: url(/images/thanks/selcect_push1on.png);
}

.favorite.active,
a.favorite:hover {
  background-image: url(/images/thanks/selcect_push2on.png);
}

.sentiment_very_satisfied.active,
a.sentiment_very_satisfied:hover {
  background-image: url(/images/thanks/selcect_push3on.png);
}

.sentiment_very_dissatisfied.active,
a.sentiment_very_dissatisfied:hover {
  background-image: url(/images/thanks/selcect_push4on.png);
}

.sentiment_sad.active,
a.sentiment_sad:hover {
  background-image: url(/images/thanks/selcect_push5on.png);
}

.impression_notice {
  line-height: 2.5;
}

.bookmark_notice .active .icon {
  color: #dc0032;
}

.btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-group .btn-group-item {
  display: none;
  flex-direction: column;
  justify-content: center;
  border: 0.2rem solid transparent;
  opacity: 0.6;
}

.btn-group .btn-group-item.active {
  opacity: 1;
  display: flex;
  align-items: flex-end;
}

.btn-group .btn-group-item span.mark_cnt {
  text-align: center;
  background-color: transparent;
  border-radius: 1rem;
  width: 3rem;
  display: flex;
  justify-content: center;
  margin-bottom: 0.6rem;
  position: relative;
}

.btn-group .btn-group-item.active span.mark_cnt {
  background-color: rgb(229 85 136);
  color: #ffffff;
}

.btn-group .btn-group-item span.mark_cnt:after {
  content: "";
  height: 0.5rem;
  width: 0.8rem;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  right: 50%;
  background-color: transparent;
}

.btn-group .btn-group-item.active span.mark_cnt:after {
  background-color: rgb(229 85 136);
}

#receive_card_modal .senderinfo,
#sending_card_modal .senderinfo,
#sendwaiting_card_modal .senderinfo {
  margin-top: 1rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  background-color: aliceblue;
  font-size: 1.4rem;
}

#receive_card_modal .senderinfo .senderorg,
#sending_card_modal .senderinfo .senderorg,
#sendwaiting_card_modal .senderinfo .senderorg {
  display: block;
  /* align-items: center; */
}

.sp_nodisplay {
  display: none;
}

#receive_card_modal .senderinfo .senderorg .from_company,
#sending_card_modal .senderinfo .senderorg .to_company,
#sendwaiting_card_modal .senderinfo .senderorg .to_company {
  margin-right: 1rem;
}

#download_form.dtc-form {
  /* スクショの淡い水色パネル */
  background: #dff1fb;
  border: 1px solid #b9dff1;
  border-radius: 10px;
  padding: 18px 18px 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  max-width: 980px;
  /* お好みで */
}

/* 1行ごとの間隔 */
#download_form.dtc-form .form_row {
  margin: 0 0 12px 0;
}

/* ラベル（年度/送信時期選択） */
#download_form.dtc-form label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #0b4f8a;
  /* 青寄り */
}

#download_form.dtc-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  height: 3.4rem;
  padding: 6px 34px 6px 12px;
  border-radius: 8px;
  border: 1px solid #9fc9df;
  background: #ffffff;
  color: #083a66;
  font-size: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  outline: none;
  position: relative;

  /* ▼矢印（疑似） */
  background-image:
    linear-gradient(45deg, transparent 50%, #2f6fbf 50%),
    linear-gradient(135deg, #2f6fbf 50%, transparent 50%),
    linear-gradient(to right, #ffffff, #ffffff);
  background-position:
    calc(100% - 18px) 14px,
    calc(100% - 12px) 14px,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
}

#download_form.dtc-form select:focus {
  border-color: #2f6fbf;
  box-shadow: 0 0 0 3px rgba(47, 111, 191, 0.18);
}

#download_form.dtc-form select:disabled {
  background: #f1f6fb;
  color: #7a9bb4;
  border-color: #c8d9e6;
  cursor: not-allowed;
  opacity: 0.95;
}

#download_form.dtc-form .form_row:nth-of-type(2),
#download_form.dtc-form .form_row:nth-of-type(5) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #b9dff1;
  /* スクショの濃い青帯 */
  color: #fff;
}

#download_form.dtc-form input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#download_form.dtc-form .dtc-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 1.3rem;
}

#download_form.dtc-form .dtc-radio:hover {
  background: rgba(255, 255, 255, 0.7);
}

#download_form.dtc-form .dtc-radio .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #1b5aa7;
  box-sizing: border-box;
  position: relative;
}

#download_form.dtc-form .dtc-radio.is-checked {
  background: #ffffff;
  color: #1b5aa7;
  border-color: rgba(255, 255, 255, 0.75);
}

#download_form.dtc-form .dtc-radio.is-checked .dot {
  border-color: #1b5aa7;
}

#download_form.dtc-form .dtc-radio.is-checked .dot::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: #1b5aa7;
}

#download_form.dtc-form label.term br {
  display: none;
}

@media screen and (max-width: 800px) {
  #receive_card_modal #receive_card_body,
  #sending_card_modal #sending_card_body,
  #sendwaiting_card_modal #sending_card_body {
    margin: 2rem;
  }

  #receive_card_modal #receive_card_body {
    margin-top: 0;
  }

  #receive_card_modal .senderinfo,
  #sending_card_modal .senderinfo,
  #sendwaiting_card_modal .senderinfo {
    font-size: 1.3rem;
  }

  #receive_card_modal .senderinfo .senderorg,
  #sending_card_modal .senderinfo .senderorg,
  #sendwaiting_card_modal .senderinfo .senderorg {
    display: block;
  }

  #receive_card_modal .senderinfo .senderorg br,
  #sending_card_modal .senderinfo .senderorg br,
  #sendwaiting_card_modal .senderinfo .senderorg br {
    display: none;
  }

  .sp_nodisplay {
    display: none;
  }

  #download_form.dtc-form label.term {
    display: block;
  }

  #download_form.dtc-form label.term br {
    display: block;
  }

  #download_form.dtc-form select[name="year_to"]{
    margin-left: 4rem;
    margin-top: 0.6rem;
  }
  #download_form.dtc-form select[name="year_from"]{
    margin-left: 0.9rem;
  }
}

#receive_card_modal .close_btn.close span,
#sending_card_modal .close_btn.close span,
#sendwaiting_card_modal .close_btn.close span {
  font-size: 1.8rem;
}

#receive_card_modal .close_btn.btn,
#sending_card_modal .close_btn.btn,
#sendwaiting_card_modal .close_btn.btn {
  border: none;
  background-color: #e5e5e5;
}

#receive_card_modal #receive_card_dl_btn,
#sending_card_modal #sending_card_dl_btn,
#download_form_modal #data_dl_btn {
  font-size: 1.2rem;
  background-color: rgb(129 192 235);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

#receive_card_modal #receive_card_dl_btn:hover,
#sending_card_modal #sending_card_dl_btn:hover,
#sendwaiting_card_modal #sending_card_dl_btn:hover,
#receive_card_modal .close_btn.btn:hover,
#sending_card_modal .close_btn.btn:hover,
#sendwaiting_card_modal .close_btn.btn:hover {
  opacity: 0.7;
}

#sending_card_modal div.senderinfo {
  max-height: 21rem;
  overflow-y: auto;
}

#sending_card_modal div.senderinfo hr {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  border-top: 0.2rem solid rgb(129 192 235);
}

.sender_popup.modal-dialog.dialog_base,
.recipient_popup.modal-dialog.dialog_base {
  border-radius: 0.4rem;
  border: 1px solid #9e9e9e;
  width: auto;
  padding: 0.6rem;
  background-color: #eee;
  position: absolute;
  /* top:0; */
  display: none;
  top: -2rem;
  color: black;
  z-index: 9999;
}

.sender_popup.modal-dialog.dialog_base ul,
.recipient_popup.modal-dialog.dialog_base ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
