:root {
  --margin-section: 3em;
}

.main_content__panel {
  padding: 0;
}
.main_content__panel__head {
  margin-bottom: 0;
  position: relative;
  padding: 70px 80px 0;
  box-shadow: 0 1px 0 0 #a2a2a2;
  z-index: 50;
}
@media screen and (max-width: 899px) {
  .main_content__panel__head {
    padding: 14px 14px 0;
  }
}
.main_content__panel__body {
  padding-top: 40px;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  background-color: #f8f8f8;
}
.main_content__panel__body .potarl_login {
  padding-left: 80px;
  padding-right: 80px;
  padding-bottom: 70px;
}
@media screen and (max-width: 899px) {
  .main_content__panel__body .potarl_login {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 80px;
  }
}
.main_content__panel__body .potarl_mypage__1, .main_content__panel__body .potarl_mypage__2 {
  padding-left: 60px;
  padding-right: 60px;
}
@media screen and (max-width: 899px) {
  .main_content__panel__body .potarl_mypage__1, .main_content__panel__body .potarl_mypage__2 {
    padding-left: 14px;
    padding-right: 14px;
  }
}
.main_content__panel__body .potarl_mypage__2 {
  padding-bottom: 50px;
}
.main_content__panel__body .bbpress-wrapper .bbp-template-notice.info {
  margin-left: 60px !important;
  margin-right: 60px !important;
}
@media screen and (max-width: 899px) {
  .main_content__panel__body .bbpress-wrapper .bbp-template-notice.info {
    margin-left: 14px !important;
    margin-right: 14px !important;
  }
}
.main_content__panel__body .bbpress-wrapper .bbp-topics,
.main_content__panel__body .bbpress-wrapper .bbp-pagination,
.main_content__panel__body .bbpress-wrapper .bbp-topic-form {
  padding-left: 60px !important;
  padding-right: 60px !important;
  box-sizing: border-box;
}
@media screen and (max-width: 899px) {
  .main_content__panel__body .bbpress-wrapper .bbp-topics,
  .main_content__panel__body .bbpress-wrapper .bbp-pagination,
  .main_content__panel__body .bbpress-wrapper .bbp-topic-form {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
.main_content .pbtn {
  background-color: #12678f;
  min-height: 54px;
  min-width: 156px;
  box-sizing: border-box;
  outline: none;
  border: 1px solid transparent;
  padding: 5px 15px;
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s;
}
.main_content .pbtn:hover {
  background-color: #f8f8f8;
  color: #12678f;
  border: 1px solid #12678f;
}
.main_content input {
  cursor: pointer;
}

.potarl_login__head {
  margin-bottom: clamp(30px, 4vw, 44px);
}
.potarl_login__head h2 {
  line-height: 1.5;
  font-weight: bold;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
  text-align: center;
}
.potarl_login__body {
  width: 100%;
  max-width: 348px;
  margin: 0 auto;
}
.potarl_login .input_frame {
  box-shadow: 3px 3px 15px 2px rgba(211, 211, 204, 0.25);
  margin-bottom: clamp(20px, 3vw, 30px);
  position: relative;
}
.potarl_login .input_frame::before {
  content: "";
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.potarl_login .input_frame._mail::before {
  background: url("../img/portal/icon_mail.webp") 0 0 no-repeat transparent;
  background-size: contain;
  width: 18px;
  height: 14px;
  left: 16px;
}
.potarl_login .input_frame._pass::before {
  background: url("../img/portal/icon_pass.webp") 0 0 no-repeat transparent;
  background-size: contain;
  width: 14px;
  height: 22px;
  left: 18px;
}
.potarl_login .input_frame input {
  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  background-color: #ffffff;
  outline: none;
  border: none;
  padding: 5px 15px 5px 50px;
  font-size: 1rem;
}
.potarl_login .input_frame input::-moz-placeholder {
  color: rgba(51, 51, 51, 0.5);
}
.potarl_login .input_frame input::placeholder {
  color: rgba(51, 51, 51, 0.5);
}
.potarl_login .login_btn_box {
  margin-bottom: 1.25rem;
}
.potarl_login .login_btn_box .btn_submit {
  width: 100%;
  box-shadow: 3px 3px 15px 2px rgba(211, 211, 204, 0.25);
}
.potarl_login .text_box {
  text-align: center;
  margin-bottom: 0.6rem;
}
.potarl_login .text_box .forget_text {
  color: #12678f;
  margin-bottom: 1.65rem;
  display: inline-block;
}
.potarl_login .text_box .forget_text:hover {
  text-decoration: underline;
}
.potarl_login .register_btn_box .btn_register {
  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  background-color: #f8f8f8;
  outline: none;
  border: 1px solid #12678f;
  color: #12678f;
  padding: 5px 15px;
  font-size: 1rem;
  transition: all 0.2s;
}
.potarl_login .register_btn_box .btn_register:hover {
  background-color: #12678f;
  color: #f8f8f8;
  border: 1px solid transparent;
}

.potarl_mypage__1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: clamp(20px, 4vw, 40px);
  margin-bottom: 40px;
}
.potarl_mypage .forum_box {
  background-color: #12678f;
}
.potarl_mypage .forum_box a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
.potarl_mypage .forum_box a img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.potarl_mypage .profile_box {
  background-color: #ffffff;
  padding: 28px 33px 22px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 215px;
  box-sizing: border-box;
  box-shadow: 3px 3px 15px 2px rgba(211, 211, 204, 0.25);
  position: relative;
}
.potarl_mypage .profile_box__1 {
  display: flex;
  -moz-column-gap: 20px;
  column-gap: 20px;
  padding-right: 10px;
}
.potarl_mypage .profile_box__1 .img_wrap {
  border-radius: 50%;
  width: 98px;
  height: 98px;
  position: relative;
}
.potarl_mypage .profile_box__1 .img_wrap img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}
.potarl_mypage .profile_box__1 .text_wrap {
  padding-top: 5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #333333;
}
.potarl_mypage .profile_box__1 .text_wrap .name {
  font-size: 1.375rem;
}
.potarl_mypage .profile_box__2 {
  display: flex;
  justify-content: space-between;
  -moz-column-gap: 15px;
  column-gap: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #333333;
  font-size: 1rem;
}
.potarl_mypage .profile_box__2 .hospital {
  display: flex;
  align-items: center;
  -moz-column-gap: 5px;
  column-gap: 5px;
}
.potarl_mypage .profile_box__2 .register .label {
  margin-right: 5px;
}
.potarl_mypage .profile_box__2 .register .date {
  font-family: Roboto, sans-serif;
  font-weight: 700;
}
.potarl_mypage .profile_box .edit_link {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 50px;
  height: 50px;
  transition: opacity 0.2s, transform 0.2s;
}
.potarl_mypage .profile_box .edit_link img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.potarl_mypage .profile_box .edit_link:hover {
  opacity: 0.6;
  rotate: -5deg;
}
.potarl_mypage .news_area {
  background-color: #ffffff;
  box-shadow: 3px 3px 15px 2px rgba(211, 211, 204, 0.25);
  padding: 55px clamp(20px, 5vw, 50px) 75px;
}
.potarl_mypage .news_area__head {
  padding-left: 10px;
  box-sizing: border-box;
}
.potarl_mypage .news_area__head h2 {
  margin-bottom: 50px;
  padding-bottom: 0;
  border-bottom: none;
}
.potarl_mypage .news_area__head h2 .h2_ja {
  display: block;
  width: 140px;
  height: 26px;
  margin-bottom: 10px;
}
.potarl_mypage .news_area__head h2 .h2_en {
  display: block;
  width: 140px;
  height: 15px;
}
.potarl_mypage .news_area__head h2 img {
  height: 100%;
  display: block;
}

#bbpress-forums {
  margin-bottom: 0 !important;
}

.bbp-template-notice.info ul > li::before {
  display: none !important;
}

.bbp-topics {
  border: none !important;
}
.bbp-topics .bbp-body > ul {
  background-color: #ffffff !important;
  padding: clamp(20px, 3.5vw, 25px) clamp(20px, 4.5vw, 32px) !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.04em;
  min-height: 110px !important;
  box-shadow: 3px 3px 15px 2px rgba(211, 211, 204, 0.25);
}
@media screen and (max-width: 699px) {
  .bbp-topics .bbp-body > ul {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column !important;
  }
}
.bbp-topics .bbp-body > ul:not(:last-of-type) {
  margin-bottom: 20px !important;
}
.bbp-topics .bbp-body > ul > li {
  float: none !important;
  clear: unset !important;
}
.bbp-topics .bbp-body > ul .bbp-topic-title {
  width: 70% !important;
}
@media screen and (max-width: 699px) {
  .bbp-topics .bbp-body > ul .bbp-topic-title {
    width: 100% !important;
  }
}
.bbp-topics .bbp-body > ul .bbp-topic-permalink {
  display: block;
  color: #343234;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 1.25rem !important;
}
@media screen and (max-width: 699px) {
  .bbp-topics .bbp-body > ul .bbp-topic-permalink {
    font-size: 1.063rem;
  }
}
.bbp-topics .bbp-body > ul .bbp-topic-content {
  padding: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 50px;
}
.bbp-topics .bbp-body > ul .bbp-topic-content p {
  color: rgba(80, 82, 83, 0.8) !important;
  font-size: 0.938rem;
}
.bbp-topics .bbp-body > ul .bbp-topic-meta {
  margin: 0 !important;
  line-height: 1 !important;
}
.bbp-topics .bbp-body > ul .bbp-topic-meta .bbp-author-link {
  text-decoration: none;
}
.bbp-topics .bbp-body > ul .bbp-topic-meta .bbp-author-link .bbp-author-name {
  font-size: 0.875rem;
  color: #8e8e8e !important;
}
.bbp-topics .bbp-body > ul .custom-count-box {
  display: flex;
}
.bbp-topics .bbp-body .bbp-topic-freshness {
  width: auto;
  text-align: right;
  position: relative;
  align-self: stretch !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}
@media screen and (max-width: 699px) {
  .bbp-topics .bbp-body .bbp-topic-freshness {
    flex-direction: row;
    align-self: auto !important;
    align-items: center;
    -moz-column-gap: 10px;
    column-gap: 10px;
    justify-content: flex-end;
    width: 100%;
    padding-top: 10px;
  }
}
.bbp-topics .bbp-body .bbp-topic-freshness > a {
  font-size: 1rem !important;
  color: #12678f;
  text-decoration: none;
  margin-top: -10%;
}
@media screen and (max-width: 699px) {
  .bbp-topics .bbp-body .bbp-topic-freshness > a {
    margin-top: 0;
    font-size: 0.875rem !important;
  }
}
.bbp-topics .bbp-body .bbp-topic-freshness .custom-count-box {
  position: absolute;
  bottom: -3px;
  right: 0;
  display: flex;
  justify-content: flex-end;
  -moz-column-gap: 8px;
  column-gap: 8px;
}
@media screen and (max-width: 699px) {
  .bbp-topics .bbp-body .bbp-topic-freshness .custom-count-box {
    position: static;
  }
}
.bbp-topics .bbp-body .bbp-topic-freshness .custom-count-box .bbp-topic-voice-count,
.bbp-topics .bbp-body .bbp-topic-freshness .custom-count-box .bbp-topic-reply-count {
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  color: rgba(52, 50, 52, 0.4);
}
.bbp-topics .bbp-body .bbp-topic-freshness .custom-count-box .bbp-topic-voice-count::before,
.bbp-topics .bbp-body .bbp-topic-freshness .custom-count-box .bbp-topic-reply-count::before {
  content: "";
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.bbp-topics .bbp-body .bbp-topic-freshness .custom-count-box .bbp-topic-voice-count {
  padding-left: 27px;
}
.bbp-topics .bbp-body .bbp-topic-freshness .custom-count-box .bbp-topic-voice-count::before {
  background: url("../img/portal/icon_human.webp") 0 0 no-repeat transparent;
  background-size: contain;
  width: 24px;
  height: 16px;
}
.bbp-topics .bbp-body .bbp-topic-freshness .custom-count-box .bbp-topic-reply-count {
  padding-left: 19px;
}
.bbp-topics .bbp-body .bbp-topic-freshness .custom-count-box .bbp-topic-reply-count::before {
  background: url("../img/portal/icon_chat.webp") 0 0 no-repeat transparent;
  background-size: contain;
  width: 17px;
  height: 19px;
}

.bbp-pagination {
  padding-top: 30px;
  padding-bottom: 35px;
  float: none !important;
  clear: unset !important;
  text-align: center;
}
.bbp-pagination > * {
  float: none !important;
  clear: unset !important;
}
.bbp-pagination .bbp-pagination-links {
  display: inline-block;
}
.bbp-pagination .bbp-pagination-links .page-numbers:not(.next):not(.prev) {
  line-height: 37px !important;
  color: #ffffff !important;
  text-align: center;
  background-color: #116890 !important;
  font-weight: bold;
  box-sizing: border-box;
  display: block;
  width: 40px;
  height: 40px;
  padding-left: 4px;
  padding-right: 4px;
  font-size: 1rem !important;
}
.bbp-pagination .bbp-pagination-links .page-numbers:not(.next):not(.prev).current {
  background-color: #68a879 !important;
}
.bbp-pagination .bbp-pagination-links .page-numbers.prev, .bbp-pagination .bbp-pagination-links .page-numbers.next {
  font-size: 0 !important;
  position: relative;
  width: 40px;
  height: 40px;
  border: none !important;
}
.bbp-pagination .bbp-pagination-links .page-numbers.prev::before {
  content: "";
  display: block;
  background: url("../img/icon/arrow/pager.png") 0 0 no-repeat transparent;
  background-size: 40px 40px;
  width: 40px;
  height: 40px;
  left: 13px;
  transform: rotate(180deg);
}
.bbp-pagination .bbp-pagination-links .page-numbers.next::before {
  content: "" !important;
  display: block;
  background: url("../img/icon/arrow/pager.png") 0 0 no-repeat transparent;
  background-size: 40px 40px;
  width: 40px;
  height: 40px;
  right: 13px;
}

.bbp-topic-form {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  background-color: #ededed;
  border-top: 1px solid #a2a2a2;
}
.bbp-topic-form .bbp-form {
  padding: 0 !important;
  margin-bottom: 0 !important;
}
.bbp-topic-form .bbp-form > legend {
  font-size: 1.375rem;
  color: #343234;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  padding: 0 !important;
}
.bbp-topic-form .bbp_topic_title,
.bbp-topic-form .bbp_topic_title_2 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  display: inline-block;
  margin-bottom: 0.5rem !important;
}
.bbp-topic-form .custom_topic_title_input {
  max-width: 630px;
  min-height: 44px;
  height: 44px !important;
  width: 100%;
  border: none;
  box-sizing: border-box;
}
.bbp-topic-form .wp-editor-container {
  max-width: 630px;
  margin-bottom: 40px !important;
}
@media screen and (max-width: 699px) {
  .bbp-topic-form .wp-editor-container {
    margin-bottom: 30px !important;
  }
}
.bbp-topic-form .bbp-submit-wrapper {
  text-align: left;
  float: none !important;
  clear: unset !important;
}
.bbp-topic-form .bbp-submit-wrapper .button {
  background-color: #12678f;
  min-height: 54px;
  min-width: 156px;
  box-sizing: border-box;
  outline: none;
  border: 1px solid transparent;
  padding: 5px 15px;
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s;
}
.bbp-topic-form .bbp-submit-wrapper .button:hover {
  background-color: #f8f8f8;
  color: #12678f;
  border: 1px solid #12678f;
}