/* 2025/09/19 17993-1 B3 YDS */
main {
  width: 100%;
  max-width: 1130px;
  margin: 1em auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8em;
}

h2 {
  text-align: center;
  margin: 3em 0 2em 0;
}

h2 img {
  width: 100%;
}

.introduction {
  width: 55%;
  margin-left: 5%;
  float: left;
  box-sizing: border-box;
  padding-right: 20px;
}

.introduction p {
  margin-top: 2em;
}

.interviewdate {
  text-align: right;
  margin-top: 20px;
  margin-bottom: 40px;
  color: #3b4b58;
}

.contents {
  margin-top: 2em;
  float: right;
  width: 35%;
  margin-right: 5%;
  padding: 0em 15px;
  box-sizing: border-box;
  position: relative;
  background-color: #fff;
  overflow: visible;
  border: 20px solid transparent;
  border-image-source: url('/newtemp/useful/img/obstetricsandgynecology/sdm/sdm-frame.png');
  border-image-slice: 30 fill;
  border-image-repeat: stretch;
}

.contents::before {
  content: "";
  position: absolute;
  top: -3em;
  left: -2em;
  width: 60px;
  height: 60px;
  background: url('/newtemp/useful/img/obstetricsandgynecology/sdm/sdm-tape.png') no-repeat center center;
  background-size: contain;
  z-index: 2;
}

.contents h3 {
  color: #ff9900;
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 0.3em;
  text-align: left;
  position: relative;
  z-index: 3;
}

.contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contents ul li {
  margin-bottom: 0.2em;
  padding-left: 30px;
  position: relative;
  color: #3b4b58;
  font-size: 1em;
}

.contents ul li a {
  color: #3b4b58;
  text-decoration: none;
}

.contents ul li a:hover {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.contents ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background: url('/newtemp/useful/img/obstetricsandgynecology/sdm/sdm-list-checked.png') no-repeat center center;
  background-size: contain;
}

section::after {
  content: "";
  display: block;
  clear: both;
}

.authorprofile {
  clear: both;
  font-style: normal;
  margin: 20px 5%;
}

.authorprofile h3 {
  position: relative;
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  padding-left: 28px;
  display: flex;
  align-items: center;
}

.authorprofile h3::before {
  content: '●';
  font-size: 18px;
  color: #b3b3b3;
  position: absolute;
  left: 0;
}

.authorprofile h3::after {
  content: '';
  display: block;
  height: 2px;
  background: #bbb;
  flex: 1;
  margin-left: 12px;
  margin-top: 1px;
}

.authorprofile .authorname {
  font-size: 1.5em;
  font-weight: bold;
  margin: 12px 0 0 0;
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
}

.authorprofile .authornamekana {
  font-size: medium;
  font-weight: normal;
  margin-left: 8px;
  color: #222;
}

.authorprofile .belong {
  font-size: medium;
  margin: 4px 0 0 0;
  color: #222;
}

.authorprofile .biography {
  font-size: medium;
  margin: 4px 0 0 0;
  color: #222;
}

/* Article Sections */
article section {}

article section.maindata h3 {
  border-radius: 5px;
  padding: 7px 1em;
  background-color: #fff0d0;
  font-size: 2em;
  color: #3b4b58;
  margin-top: 1em;
  margin-bottom: 0.5em;
  clear: both;
  line-height: 1.2em;
}

article section h4 {
  padding: 7px 1em 7px 2.1em;
  background: url('/newtemp/useful/img/obstetricsandgynecology/sdm/sdm-obstetricsandgynecology-icon.png') no-repeat left center;
  background-size: contain;
  font-size: 1.5em;
  color: #f39900;
  margin-left: 0.5em;
  margin-bottom: 0.5em;
	margin-top: 1em;
	clear:both;
}

article section p {
  margin: 0 2em 0.5em 2em;
  line-height: 1.8em;
}

article section p.complement {
	font-size:small;
	margin-left:2em;
	text-indent:-1em;
	padding-left:2em;
}

span.refer {
  color: #f1a600;
  font-weight: bold;
}

/* Figure */
figure {
  width: 80%;
  margin: 2em auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.caption {
  display: flex;
  align-items: stretch;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  font-weight: bold;
  background: #e6e7e8;
}

.ref-block {
  background: #f1a600;
  color: #fff;
  font-size: 1em;
  font-weight: bold;
  padding: 2px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 0 0 0;
  white-space: nowrap;
  max-width: 5.5em;
}

.ref-title {
  font-size: 1em;
  color: #333;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  word-break: break-all;
}


figure.reference figcaption.caption span.fctitle {
  display: inline-block;
  margin-left: 5em;
  float: right;
}

figure img {
  width: 100%;
  height: auto;
  border: none;
  display: block;
  margin-bottom: 0px;
}

figure p.explanation {
  font-size: 0.9em;
  margin-top: 5px;
}

figure p.source {
  width: 100%;
  text-align: right;
  margin-top: 6px;
  font-size: 0.9em;
  color: #333;
  margin-bottom: 1em;
}

/* Floating Contents */
p.for_contentsimage_float {
  width: 68%;
  float: left;
}

figure.contentsimage {
  width: 25%;
  float: right;
}

/* Outpatient Sample */
div.outpationtsample {
  margin: 1em;
  border-radius: 10px;
  background-color: #e6f3f3;
  padding: 2em;
}

div.outpationtsample figure {
  margin-top: 1em;
}

div.outpationtsample figure .caption {
  background: white;
}

div.outpationtsample figure.contentsimage {
  padding-left: 1em;
}

div.outpationtsample ul {
  list-style: none;
  padding-left: 0.5em;
}

div.outpationtsample li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.5em;
}

div.outpationtsample li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.1em;
  height: 1.1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpolygon points='50,10 60,40 90,50 60,60 50,90 40,60 10,50 40,40' fill='%23F1A600'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  vertical-align: middle;
}

div.outpationtsample li strong{
  color:#F1A600;
}

div.outpationtsample li:last-child {
  margin-bottom: 0;
}

/* Take Home Message */
article section.takehomemessage {
  padding: 0;
  margin-top: 5em;
}

article section.takehomemessage h3 {
  border: 0px;
  background-color: transparent;
  font-size: 2em;
  color: #3b4b58;
  clear: both;
  line-height: 1.2em;
  position: relative;
  left: 15px;
  top: 6px;
  margin: 0;
  padding: 5px 0 5px 3em;
  background: url('/newtemp/useful/img/obstetricsandgynecology/sdm/sdm-home.png') no-repeat left bottom;
  background-size: contain;
}

article section.takehomemessage .takehomemessagebox {
  border: 20px solid transparent;
  border-image-source: url('/newtemp/useful/img/obstetricsandgynecology/sdm/sdm-frame.png');
  border-image-slice: 30 fill;
  border-image-repeat: stretch;
}

article section.takehomemessage .takehomemessagebox h4 {
  background: none;
  font-size: 1.5em;
  color: black;
  padding: 0;
  margin: 1em 1em 0.5em 1em;
}

.mark-underline {
  position: relative;
  font-weight: bold;
}

.mark-underline::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.08em;
  width: 100%;
  height: 0.6em;
  background: #f7f0d2;
  z-index: -1;
  border-radius: 4px;
}

.takehomemessagebox ul {
  margin-left: 2em;
  margin-bottom: 1em;
}

.takehomemessagebox ul li {
  margin-bottom: 0.2em;
  padding-left: 30px;
  position: relative;
  font-size: 1em;
}

.takehomemessagebox ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background: url('/newtemp/useful/img/obstetricsandgynecology/sdm/sdm-light.png') no-repeat center center;
  background-size: contain;
}

/* Contents Footer */
section.contentsfooter h3 {
  color: #000;
  font-size: 1em;
  margin-top: 2em;
  margin-bottom: 0.3em;
  text-align: left;
  background-color: transparent;
}

section.contentsfooter ol {
  margin-left: 2em;
  font-size: 0.9em;
  list-style: none;
  counter-reset: list;
}

section.contentsfooter ol > li {
  counter-increment: list;
  position: relative;
  padding-left: 2em;
}

section.contentsfooter ol > li::before {
  content: counter(list) ') ';
  position: absolute;
  left: 0;
}

section.contentsfooter p.contentscode {
  margin: 1em 0 2em 0;
  padding-right: 1em;
  display: inline-block;
  text-align: right;
  float: right;
}

section.contentsfooter p.createdate {
  margin-top: 1em;
  margin-bottom: 1em;
  display: inline-block;
  float: left;
}

/* Related Content */
section.relatedcontent ul li {
  display: inline-block;
  width: 30%;
  padding: 3px;
}

section.relatedcontent ul li a {
  color: black;
  font-size: 0.9em;
}

section.relatedcontent ul li a:hover {
  opacity: 0.7;
  transition: opacity 0.2s;
}

section.relatedcontent ul li img {
  width: 100%;
  height: auto;
  margin-bottom: 2px;
}

/* Figure reference adjustments */
#sdm01-reference01 figcaption {
  position: relative;
  top: 9px;
}

#sdm01-reference04 figcaption {
  position: relative;
  top: 15px;
}

/* Media Queries */
@media screen and (min-width: 768px) {
#sdm01-reference06 figcaption{
		clear:both;
		margin-top:1.5em;
}

  div.forimageblock {
    position: relative;
  }

  #section2 {
    margin-top: 5em;
  }

  figure.contentsimage {
    position: absolute;
    right: 0;
    top: 0;
    width: 25%;
    margin: 0;
    text-align: center;
  }

  figure.contentsimage img {
    width: 90%;
  }
}

@media screen and (max-width: 767px) {

  div.outpationtsample li:last-child {
    margin-bottom: 2em;
  }

  li.liafterfig {
    clear: both;
  }

  .introduction {
    float: none;
    width: 100%;
    padding: 0 2.5em 1em 1em;
    margin-top: 1em;
  }

  .contents {
    float: none;
    width: 80%;
    padding: 1em;
    margin: 0 auto 2em auto;
  }

  .contents::before {
    content: "";
    position: absolute;
    top: -3em;
    left: -2em;
    width: 60px;
    height: 60px;
    background: url('/newtemp/useful/img/obstetricsandgynecology/sdm/sdm-tape.png') no-repeat center center;
    background-size: contain;
    z-index: 2;
  }

  .contents ul li {
    margin-bottom: 0.5em;
  }

  article section h4 {
    padding: 7px 1em 7px 3.2em;
    background: url('/newtemp/useful/img/obstetricsandgynecology/sdm/sdm-obstetricsandgynecology-icon.png') no-repeat left center;
    background-size: 2.8em;
    font-size: 1.5em;
    color: #f39900;
    margin-left: 0.5em;
		margin-bottom: 0.5em;
		min-height:3em;
  display: flex;
  align-items: center;
  }

  figure {
    width: 96%;
    margin: 1em auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  p.for_contentsimage_float {
    float: none;
    width: 90%;
  }

  div.outpationtsample {
    margin: 1em 5px;
    border-radius: 10px;
    background-color: #e6f3f3;
    padding: 1em 0;
  }

  div.outpationtsample .star-list {
    clear: both;
  }

  figure.contentsimage {
    width: 100%;
    float: right;
  }

  figure.contentsimage img {
    width: 60%;
    margin: 0 auto;
  }

  article section.takehomemessage h3 {
    border: 0px;
    background-color: transparent;
    font-size: 1.5em;
    color: #3b4b58;
    clear: both;
    line-height: 1.2em;
    position: relative;
    left: 15px;
    top: 7px;
    margin: 0;
    padding: 5px 0 5px 2.5em;
    background: url('/newtemp/useful/img/obstetricsandgynecology/sdm/sdm-home.png') no-repeat left bottom;
    background-size: contain;
  }

  article section.takehomemessage .takehomemessagebox h4 {
    font-size: 1.2em;
    margin: 1em 0 0.5em 0;
  }

  section.relatedcontent ul li {
    display: inline-block;
    width: 96%;
    padding: 3px 3px 3px 5px;
  }

  figure p.explanation {
    margin-bottom: 2em;
  }

  h2 {
    margin: 1.5em 0 1em 0;
  }

  #sdm01-reference01 figcaption {
    position: relative;
    top: 4px;
  }

  #sdm01-reference04 figcaption {
    position: relative;
    top: 6px;
  }
}
