img.custom-item-image {
  object-fit: contain;
  aspect-ratio: 1.1;
}

.news_content h2,
.case_content h2 {
  font-size: 18px;
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 40px;
}

.news_content h2::before,
.case_content h2::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #CCCCCC;
}

.news_content h2::after,
.case_content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 1px;
  background: #990000
}

.news_content h3,
.case_content h3 {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 20px;
}

.news_content h4,
.case_content h4 {
  font-weight: bold;
  margin-bottom: 20px;
}

.news_content ul,
.case_content ul {
  padding-left: 1em !important;
  text-indent: -1em;
  margin-bottom: 20px;
}

.news_content ul li::before,
.case_content ul li::before {
  content: "・";
}

.news_content ol,
.case_content ol {
  padding-left: 1.2em;
  margin-bottom: 20px;
  list-style-type: decimal;
}

.news_content,
.case_content {
  margin-bottom: 80px;
}

.news_content p,
.case_content p {
  margin-bottom: 20px;
}

.news_content strong,
.case_content strong {
  font-weight: bold;
}

.news_content a,
.case_content a{
  color: #990000;
  text-decoration: underline;
}

/* For Contact */
.cf-row {
  font-size: 16px;
  border-bottom: 1px solid #ccc;
}

.cf-row:last-child {
  border: none;
}

span.cf-require {
  color: #990000;
  margin-left: 5px;
}

div.cf-col {
  display: flex;
  padding: 10px 0;
}

label.cf-label {
  display: flex;
  align-items: center;
  vertical-align: middle;
  text-align: left;
  width: 30%;
  padding-right: 5px;
}

.cf-wrap {
  width: 70%;
}

.cf-control-wrp input,
.cf-control-wrp select {
  font-size: inherit;
  line-height: inherit;
}

.cf-control-wrp input[type="text"],
.cf-control-wrp input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
}

.cf-control-wrp textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  height: 120px;
}

.cf-control-wrp select {
  background: #fff;
  height: 48px;
  width: 100%;
  border-radius: 5px;
  position: relative;
  z-index: 1;
  border: 1px solid #ccc;
  padding: 12px;
}

.cf-control-wrp select::after {
  position: absolute;
  content: '';
  width: 8px;
  height: 8px;
  right: 10px;
  top: 50%;
  -webkit-transform: translateY(-50%) rotate(45deg);
  transform: translateY(-50%) rotate(45deg);
  border-bottom: 2px solid #000;
  border-right: 2px solid #000;
  z-index: -1;
  box-sizing: border-box;
}

.cf-control-wrp input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
}

.cf-wrap.contact {
  width: 100%;
}

.cf-radio label {
  margin-right: 1em;
}

.b-0 {
  border: 0;
}

.px-2_5 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.text-prewrap {
  white-space: pre-wrap;
}

.cf-form input,
.cf-form textarea {
  font-family: 'Noto Sans JP';
  font-size: 1rem;
}

.cf-message {
  display: block;
  text-align: center;
}

.cf-control-error-message,
.cf-message-error {
  color: #990000;
}

.cf-message-success {
  color: #009900;
}

@media only screen and (max-width: 500px) {
  .cf-row {
    font-size: 14px;
  }

  .cf-radio label {
    display: block;
    margin-right: 0;
  }

  label.cf-label {
    width: 40%;
  }

  .cf-wrap {
    width: 60%;
  }
}

.off-screen {
  position: absolute;

  left: -5000px;
}

/* End Contact */
